hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL ( - + 30 ) * + - MAX( ALL - 16 )
----
-480

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL ( - + 30 ) * + - MAX ( ALL - 16 )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT DISTINCT + CASE + 41 WHEN - 57 * + + 90 - + 15 THEN - ( + 49 ) * + 15 END / ( - 53 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT + CASE + 41 WHEN - 57 * + + 90 - + 15 THEN - ( + 49 ) * + 15 END / ( - 53 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT + COUNT( * ) DIV - - 9 * - 85 + - 93 + - 71 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT + COUNT ( * ) / - - 9 * - 85 + - 93 + - 71 AS col0
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT ALL 15 DIV 32 + 64 * + 37 - - 12
----
2380

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL 15 / 32 + 64 * + 37 - - 12
----
2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4
SELECT ALL - 71 DIV CAST( + - 8 AS SIGNED ) + - COUNT( ALL - + 19 ) * - 78 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - 71 / CAST ( + - 8 AS INTEGER ) + - COUNT ( ALL - + 19 ) * - 78 AS col2
----
86

query I rowsort
SELECT 17 * + - 48
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT COUNT( 96 ) * 67 col2
----
67

skipif mysql # not compatible
query I rowsort label-6
SELECT COUNT ( 96 ) * 67 col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT DISTINCT COALESCE ( - 50, + + ( COUNT( * ) ), CAST( NULL AS SIGNED ) ) * CASE + 29 WHEN + 76 THEN COUNT( * ) WHEN - 30 THEN + ( CASE - 34 WHEN 99 THEN + 32 END ) ELSE NULL END + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT COALESCE ( - 50, + + ( COUNT ( * ) ), CAST ( NULL AS INTEGER ) ) * CASE + 29 WHEN + 76 THEN COUNT ( * ) WHEN - 30 THEN + ( CASE - 34 WHEN 99 THEN + 32 END ) ELSE NULL END + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - + 47 * + 0 + - - 83 - - CASE 72 WHEN 95 * - CASE CASE + - NULLIF ( + 90, + 17 ) WHEN + 84 + + 35 * + 56 THEN - 46 * 7 WHEN 41 THEN NULL END WHEN - 24 THEN COUNT( * ) END - + 36 THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT - + 47 * + 0 + - - 83 - - CASE 72 WHEN 95 * - CASE CASE + - NULLIF ( + 90, + 17 ) WHEN + 84 + + 35 * + 56 THEN - 46 * 7 WHEN 41 THEN NULL END WHEN - 24 THEN COUNT ( * ) END - + 36 THEN 68 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - NULLIF ( - 98, 70 ) + - + SUM( + + 56 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - NULLIF ( - 98, 70 ) + - + SUM ( + + 56 ) AS col1
----
42

query II rowsort
SELECT 2 - + 53 AS col1, + 51
----
-51
51

query II rowsort
SELECT + 33 * 29, 24 AS col0
----
957
24

query I rowsort
SELECT DISTINCT ( + 69 ) * 14
----
966

query I rowsort
SELECT ALL 16 + 50 - - 65
----
131

query I rowsort
SELECT ALL + - 7 * + 51 * - + ( - - 84 ) AS col1
----
29988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT 69 * + NULLIF ( - 21, - - 89 ) + - 41 / - - COUNT( * ) - MIN( ALL CAST( NULL AS SIGNED ) ) - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT 69 * + NULLIF ( - 21, - - 89 ) + - 41 / - - COUNT ( * ) - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + 2
----
NULL

query I rowsort
SELECT + 66 * - + 21
----
-1386

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT ALL - 72 * + 79 AS col1, COUNT( * )
----
-5688
1

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL - 72 * + 79 AS col1, COUNT ( * )
----
-5688
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT 41 DIV - - 67 * ( 84 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT 41 / - - 67 * ( 84 ) AS col1
----
0

query I rowsort
SELECT 28 * 8 AS col1
----
224

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + - 44, - 30, + - 42 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT - NULLIF ( - 14, COUNT( + COALESCE ( + + 21, - ( + 89 ), + 27 ) ) ) * + 18 AS col1
----
252

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - NULLIF ( - 14, COUNT ( + COALESCE ( + + 21, - ( + 89 ), + 27 ) ) ) * + 18 AS col1
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-24
SELECT CASE - + 55 WHEN - 17 - + - CAST( NULL AS DECIMAL ) * - - 0 * - 39 THEN NULL WHEN ( - 53 ) - + CAST( NULL AS SIGNED ) THEN + - 62 * 34 ELSE ( + 1 ) END * COALESCE ( - 46 * COUNT( * ), + COUNT( DISTINCT 97 ) * - COUNT( * ), 72 * 83, + 22 * + 83 + 2 )
----
-46

skipif mysql # not compatible
query I rowsort label-24
SELECT CASE - + 55 WHEN - 17 - + - CAST ( NULL AS REAL ) * - - 0 * - 39 THEN NULL WHEN ( - 53 ) - + CAST ( NULL AS INTEGER ) THEN + - 62 * 34 ELSE ( + 1 ) END * COALESCE ( - 46 * COUNT ( * ), + COUNT ( DISTINCT 97 ) * - COUNT ( * ), 72 * 83, + 22 * + 83 + 2 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-25
SELECT 91, 48 * + 88 * COUNT( * ) * + 25 + + - 0 * - 42 * + 20 + - ( - 6 ) DIV + 55 AS col1
----
91
105600

skipif mysql # not compatible
query II rowsort label-25
SELECT 91, 48 * + 88 * COUNT ( * ) * + 25 + + - 0 * - 42 * + 20 + - ( - 6 ) / + 55 AS col1
----
91
105600

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL - ( - + COUNT( * ) ) + MIN( - NULLIF ( - + 73, - 63 * + 70 + 49 ) )
----
74

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - ( - + COUNT ( * ) ) + MIN ( - NULLIF ( - + 73, - 63 * + 70 + 49 ) )
----
74

query I rowsort
SELECT 98 - + ( - 36 ) AS col1
----
134

query I rowsort
SELECT ALL + ( - 79 ) * - - 70
----
-5530

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL + 56 * - 74 * + + MAX( DISTINCT - 84 ) * 58
----
20189568

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + 56 * - 74 * + + MAX ( DISTINCT - 84 ) * 58
----
20189568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT 27 DIV COALESCE ( - 12, + ( - - MIN( DISTINCT - 39 ) ) * + 1 + + + ( - 31 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-31
SELECT 27 / COALESCE ( - 12, + ( - - MIN ( DISTINCT - 39 ) ) * + 1 + + + ( - 31 ) ) AS col0
----
-2

query I rowsort
SELECT ALL + 83 + + 96
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + - 6 + - + COUNT( DISTINCT + NULLIF ( - - 36, + 44 * CAST( NULL AS SIGNED ) * + + 44 * - 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - 6 + - + COUNT ( DISTINCT + NULLIF ( - - 36, + 44 * CAST ( NULL AS INTEGER ) * + + 44 * - 83 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-34
SELECT ALL + SUM( ALL + + 53 ) * + 61 AS col1, - 32
----
3233
-32

skipif mysql # not compatible
query II rowsort label-34
SELECT ALL + SUM ( ALL + + 53 ) * + 61 AS col1, - 32
----
3233
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL - 83 + COUNT( * ) - + + 81
----
-163

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - 83 + COUNT ( * ) - + + 81
----
-163

query I rowsort
SELECT ALL + ( - 90 ) * + + 27
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-37
SELECT - 86 DIV + COUNT( * ) + + 5 + + 40 + 10 * CAST( - - 81 AS SIGNED ) + 56 AS col1
----
825

skipif mysql # not compatible
query I rowsort label-37
SELECT - 86 / + COUNT ( * ) + + 5 + + 40 + 10 * CAST ( - - 81 AS INTEGER ) + 56 AS col1
----
825

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

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - CAST ( + + 0 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT ALL - CAST( + 35 AS SIGNED ) + - + 2 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - CAST ( + 35 AS INTEGER ) + - + 2 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-40
SELECT ( 54 ) - - 65 + COUNT( * ) DIV - 99 - - 17 * 93 col0
----
1700

skipif mysql # not compatible
query I rowsort label-40
SELECT ( 54 ) - - 65 + COUNT ( * ) / - 99 - - 17 * 93 col0
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + + 88 - COUNT( * ) col0
----
87

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + + 88 - COUNT ( * ) col0
----
87

query I rowsort
SELECT DISTINCT + 37 * + 56 - + 91 AS col2
----
1981

query I rowsort
SELECT DISTINCT + 26 - - 70
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL ( + 40 ) * - ( - 34 ) * - + COUNT( * ) + 67 - - - 58 + + + 29
----
-1322

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL ( + 40 ) * - ( - 34 ) * - + COUNT ( * ) + 67 - - - 58 + + + 29
----
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + COUNT( DISTINCT 50 ) + + - 76 col0
----
-75

skipif mysql # not compatible
query I rowsort label-45
SELECT + COUNT ( DISTINCT 50 ) + + - 76 col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT - ( CAST( + 49 AS SIGNED ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-46
SELECT - ( CAST ( + 49 AS INTEGER ) ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 76 * + - 39 AS col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + - MIN( - + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-48
SELECT + - MIN ( - + 93 ) AS col1
----
93

query I rowsort
SELECT + - NULLIF ( + 5, - - ( + - 51 ) )
----
-5

query I rowsort
SELECT 63 * + 9 AS col1
----
567

query II rowsort
SELECT + 47 AS col0, - 45 + + - 71
----
47
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT DISTINCT + - COALESCE ( + COUNT( * ), - MIN( - - CAST( 36 AS SIGNED ) ) ) * ( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + - COALESCE ( + COUNT ( * ), - MIN ( - - CAST ( 36 AS INTEGER ) ) ) * ( 31 )
----
-31

query II rowsort
SELECT ALL - 55 AS col2, + 98
----
-55
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT DISTINCT - ( - CASE - + 77 WHEN + - ( CASE 31 WHEN + CAST( NULL AS SIGNED ) THEN - + 35 END ) THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT - ( - CASE - + 77 WHEN + - ( CASE 31 WHEN + CAST ( NULL AS INTEGER ) THEN - + 35 END ) THEN - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL MAX( DISTINCT + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL MAX ( DISTINCT + 92 )
----
92

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

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - CAST ( NULL AS INTEGER ) / + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT + 66 DIV 46 col2
----
1

skipif mysql # not compatible
query I rowsort label-57
SELECT + 66 / 46 col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT COUNT( ALL - + 69 ) + - COUNT( * ) + - 73 * CASE NULLIF ( - - ( + AVG ( + 21 ) ), + 97 * 69 + ( - 74 ) * 45 ) WHEN + SUM( DISTINCT 1 ) THEN - 23 WHEN 67 + - COUNT( * ) THEN NULL ELSE NULL END / - 81 + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT COUNT ( ALL - + 69 ) + - COUNT ( * ) + - 73 * CASE NULLIF ( - - ( + AVG ( + 21 ) ), + 97 * 69 + ( - 74 ) * 45 ) WHEN + SUM ( DISTINCT 1 ) THEN - 23 WHEN 67 + - COUNT ( * ) THEN NULL ELSE NULL END / - 81 + 33
----
NULL

query I rowsort
SELECT 8 + NULLIF ( 75, + - 31 ) + + + 78 - - + 49 col0
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT 43 + + 10 * + - 33 + 37 AS col0, COUNT( DISTINCT - 62 )
----
-250
1

skipif mysql # not compatible
query II rowsort label-61
SELECT 43 + + 10 * + - 33 + 37 AS col0, COUNT ( DISTINCT - 62 )
----
-250
1

query I rowsort
SELECT DISTINCT 97 * + - 17
----
-1649

query I rowsort
SELECT DISTINCT 14 + + 42 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL - COUNT( * ) + 7 + 79 col2
----
85

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL - COUNT ( * ) + 7 + 79 col2
----
85

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

skipif mysql # not compatible
query II rowsort label-65
SELECT - COUNT ( * ), 98 AS col1
----
-1
98

query I rowsort
SELECT - 96 + - 52 * - 33 * - 45 - + + NULLIF ( - + 4, - + 16 - + 75 ) + + 50 - 96 * - 2
----
-77070

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - CASE + COUNT( * ) WHEN + COALESCE ( + AVG ( DISTINCT + 68 ), - ( NULLIF ( - 14, - 74 + + 5 ) ) * 91 * 35 - + 94 - 88 * - COUNT( * ) ) * - 30 - - 94 THEN NULL ELSE + NULLIF ( + COUNT( * ), 73 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-68
SELECT - CASE + COUNT ( * ) WHEN + COALESCE ( + AVG ( DISTINCT + 68 ), - ( NULLIF ( - 14, - 74 + + 5 ) ) * 91 * 35 - + 94 - 88 * - COUNT ( * ) ) * - 30 - - 94 THEN NULL ELSE + NULLIF ( + COUNT ( * ), 73 ) END
----
-1

query I rowsort
SELECT + 83 * 64
----
5312

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT - ( - 85 ) + - 72 + - 6 DIV ( + 40 )
----
13

skipif mysql # not compatible
query I rowsort label-70
SELECT - ( - 85 ) + - 72 + - 6 / ( + 40 )
----
13

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-73
SELECT COALESCE ( - 76, 70 DIV + - 6 * COUNT( * ) ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-73
SELECT COALESCE ( - 76, 70 / + - 6 * COUNT ( * ) ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL + MIN( ALL + 99 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + MIN ( ALL + 99 ) col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT DISTINCT - 31 * + 48 * + 2 + + - COUNT( * ) + - 66 + - CAST( + + 32 AS SIGNED ) * + 77 - + 49 AS col1
----
-5556

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - 31 * + 48 * + 2 + + - COUNT ( * ) + - 66 + - CAST ( + + 32 AS INTEGER ) * + 77 - + 49 AS col1
----
-5556

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT ALL + + 38 AS col0, 7 * - COUNT( * ) + + 74 AS col1
----
38
67

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL + + 38 AS col0, 7 * - COUNT ( * ) + + 74 AS col1
----
38
67

query I rowsort
SELECT ALL - 39 * + 75 + + + 49
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + - NULLIF ( + 74, - 82 * - 15 - - ( + MAX( + 15 ) ) ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-78
SELECT + - NULLIF ( + 74, - 82 * - 15 - - ( + MAX ( + 15 ) ) ) col1
----
-74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT - 18 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT - 18 / + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT - 62 - - COUNT( * ) + 86 - + ( + + CASE 80 WHEN + ( + + COUNT( * ) ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN 31 THEN + 54 END ) + 49 / 42 * - COUNT( + 25 / 85 + 26 ) / ( - COUNT( * ) + - CAST( 80 AS SIGNED ) * - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - 62 - - COUNT ( * ) + 86 - + ( + + CASE 80 WHEN + ( + + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 31 THEN + 54 END ) + 49 / 42 * - COUNT ( + 25 / 85 + 26 ) / ( - COUNT ( * ) + - CAST ( 80 AS INTEGER ) * - 26 ) AS col0
----
NULL

query II rowsort
SELECT + + 78, ( 25 ) col0
----
78
25

query II rowsort
SELECT ALL + 21, 68 * - - 28 AS col2
----
21
1904

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-84
SELECT + + 65 AS col0, CAST( - 34 AS SIGNED ) AS col1
----
65
-34

skipif mysql # not compatible
query II rowsort label-84
SELECT + + 65 AS col0, CAST ( - 34 AS INTEGER ) AS col1
----
65
-34

query I rowsort
SELECT ALL - 90 * 19 AS col2
----
-1710

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

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

query I rowsort
SELECT DISTINCT NULLIF ( ( - + 79 ), ( + 42 ) ) * + 22 + + 40 * + - 30 + 50 + 44 * - 84 - 41 * + 98 * 19
----
-82926

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - 89 * NULLIF ( COALESCE ( + 99, + - 3 + + + 11 ), + - 84 ) - - NULLIF ( - + COUNT( * ), 25 ) * - + 17 - - 49
----
-8745

skipif mysql # not compatible
query I rowsort label-88
SELECT - 89 * NULLIF ( COALESCE ( + 99, + - 3 + + + 11 ), + - 84 ) - - NULLIF ( - + COUNT ( * ), 25 ) * - + 17 - - 49
----
-8745

query II rowsort
SELECT - 9 AS col2, - 27
----
-9
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-90
SELECT + ( - + CASE + 61 WHEN 53 + MIN( - - CAST( NULL AS SIGNED ) ) + + CAST( + COUNT( + CAST( ( + ( - 97 ) ) AS SIGNED ) ) AS SIGNED ) + 40 THEN 46 / COUNT( * ) + + 62 ELSE NULL END ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT + ( - + CASE + 61 WHEN 53 + MIN ( - - CAST ( NULL AS INTEGER ) ) + + CAST ( + COUNT ( + CAST ( ( + ( - 97 ) ) AS INTEGER ) ) AS INTEGER ) + 40 THEN 46 / COUNT ( * ) + + 62 ELSE NULL END ) * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT NULLIF ( 95, - + ( - + 44 ) - + 96 ) + MIN( - 1 )
----
94

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT NULLIF ( 95, - + ( - + 44 ) - + 96 ) + MIN ( - 1 )
----
94

query I rowsort
SELECT ALL 96 + - + 76 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT + MAX( ALL 76 ) + - + 4 + 3 * + 49 AS col1, 33
----
219
33

skipif mysql # not compatible
query II rowsort label-93
SELECT + MAX ( ALL 76 ) + - + 4 + 3 * + 49 AS col1, 33
----
219
33

query I rowsort
SELECT ALL ( 55 ) + - 45 col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-95
SELECT + 8 - + ( CAST( NULL AS DECIMAL ) ) AS col0, 4 * + 35 * COUNT( * ) * - - 79
----
NULL
11060

skipif mysql # not compatible
query II rowsort label-95
SELECT + 8 - + ( CAST ( NULL AS REAL ) ) AS col0, 4 * + 35 * COUNT ( * ) * - - 79
----
NULL
11060

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT + 66 * - ( 32 ) DIV ( - 32 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-96
SELECT + 66 * - ( 32 ) / ( - 32 ) AS col1
----
66

query I rowsort
SELECT + 90 * + 57 AS col1
----
5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT DISTINCT 95 * + NULLIF ( - + 21, - - 15 - - 34 + 34 * + - CAST( + + 49 AS SIGNED ) )
----
-1995

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT 95 * + NULLIF ( - + 21, - - 15 - - 34 + 34 * + - CAST ( + + 49 AS INTEGER ) )
----
-1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT + MAX( ALL + - 15 ) + + 24 DIV 41 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-99
SELECT + MAX ( ALL + - 15 ) + + 24 / 41 AS col2
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL CASE + 91 WHEN - ( 8 ) THEN 58 WHEN - - 97 THEN + MIN( DISTINCT + 87 ) + - + COALESCE ( + COUNT( + 9 ), MAX( DISTINCT 10 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL CASE + 91 WHEN - ( 8 ) THEN 58 WHEN - - 97 THEN + MIN ( DISTINCT + 87 ) + - + COALESCE ( + COUNT ( + 9 ), MAX ( DISTINCT 10 ) ) END AS col0
----
NULL

query I rowsort
SELECT ALL + CASE 55 WHEN + 54 THEN NULL WHEN - 71 THEN NULL WHEN 96 THEN - 26 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT + ( + 1 ) + - MIN( + + 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-103
SELECT + ( + 1 ) + - MIN ( + + 49 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT 82 / + 29 + - - 55 + - - 73 + - + 92 + - 96 - - CASE 36 WHEN + + 28 THEN - 32 WHEN + + CAST( NULL AS SIGNED ) + + 90 THEN NULL WHEN + 33 * NULLIF ( 86, - 98 + 76 * - 6 ) + - ( + 32 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT 82 / + 29 + - - 55 + - - 73 + - + 92 + - 96 - - CASE 36 WHEN + + 28 THEN - 32 WHEN + + CAST ( NULL AS INTEGER ) + + 90 THEN NULL WHEN + 33 * NULLIF ( 86, - 98 + 76 * - 6 ) + - ( + 32 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 19 + - 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - + CASE - - 15 WHEN + + 16 THEN - COUNT( * ) END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT - + CASE - - 15 WHEN + + 16 THEN - COUNT ( * ) END * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + 32 + - ( - SUM( DISTINCT 90 ) )
----
122

skipif mysql # not compatible
query I rowsort label-107
SELECT + 32 + - ( - SUM ( DISTINCT 90 ) )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 37 * CASE - 62 WHEN 58 * + - 60 + - 5 THEN NULL WHEN - - COUNT( * ) THEN + - 80 WHEN - 43 THEN NULL END + - - 56 * - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT - 37 * CASE - 62 WHEN 58 * + - 60 + - 5 THEN NULL WHEN - - COUNT ( * ) THEN + - 80 WHEN - 43 THEN NULL END + - - 56 * - + 20 AS col2
----
NULL

query I rowsort
SELECT + + 5 * - 43
----
-215

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT + 50 DIV - 70 + - 32 * - 40
----
1280

skipif mysql # not compatible
query I rowsort label-110
SELECT + 50 / - 70 + - 32 * - 40
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT - 82 + - 77 + SUM( + 44 ) col1
----
-115

skipif mysql # not compatible
query I rowsort label-111
SELECT - 82 + - 77 + SUM ( + 44 ) col1
----
-115

query I rowsort
SELECT ALL 52 * - - 33 col0
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT + ( CASE 35 WHEN - 54 THEN - 6 WHEN - 8 / + ( - CASE + 83 WHEN + 29 * + 65 * 61 + + 21 THEN NULL ELSE + 74 * + 24 + - 52 END ) * 19 + + 43 * - 51 THEN 18 WHEN 48 * ( 45 ) + - 32 THEN 58 END ) / - 23 + COUNT( DISTINCT ( + 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT + ( CASE 35 WHEN - 54 THEN - 6 WHEN - 8 / + ( - CASE + 83 WHEN + 29 * + 65 * 61 + + 21 THEN NULL ELSE + 74 * + 24 + - 52 END ) * 19 + + 43 * - 51 THEN 18 WHEN 48 * ( 45 ) + - 32 THEN 58 END ) / - 23 + COUNT ( DISTINCT ( + 34 ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 67 * - 97 + - 18
----
6481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-115
SELECT ALL + - NULLIF ( + - 84, + NULLIF ( COUNT( * ), + - ( - 25 ) ) * ( + 94 ) * - 17 + MAX( - + 72 ) ) * - COALESCE ( + 9, 47 ) - 67 + COALESCE ( + 2 + 18 DIV 89, + 88 + + 89 * 30 )
----
-821

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + - NULLIF ( + - 84, + NULLIF ( COUNT ( * ), + - ( - 25 ) ) * ( + 94 ) * - 17 + MAX ( - + 72 ) ) * - COALESCE ( + 9, 47 ) - 67 + COALESCE ( + 2 + 18 / 89, + 88 + + 89 * 30 )
----
-821

query I rowsort
SELECT - 33 * + - ( - 80 ) * 27
----
-71280

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL 63 * + 96 + - + 98 + 18 * + COUNT( * ) * + - 20 * 14 * 27 + - - 31
----
-130099

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 63 * + 96 + - + 98 + 18 * + COUNT ( * ) * + - 20 * 14 * 27 + - - 31
----
-130099

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-118
SELECT DISTINCT + NULLIF ( - CAST( NULL AS DECIMAL ), + 52 - + + 17 / - + 10 ) / + 43 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS REAL ), + 52 - + + 17 / - + 10 ) / + 43 * 99 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT ALL 97 + 64 + 54 DIV - - 81 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL 97 + 64 + 54 / - - 81 AS col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-120
SELECT 37 * COALESCE ( - - COALESCE ( - - ( CASE + + 77 WHEN + - 70 + - + COUNT( * ) THEN 86 END ), + - 92 * - 34 - - 36 * + + MAX( 44 ), 50 * - 87 ), - 26 - + CAST( - SUM( CAST( ( 6 ) AS DECIMAL ) ) + + 47 AS SIGNED ) ) AS col1
----
174344

skipif mysql # not compatible
query I rowsort label-120
SELECT 37 * COALESCE ( - - COALESCE ( - - ( CASE + + 77 WHEN + - 70 + - + COUNT ( * ) THEN 86 END ), + - 92 * - 34 - - 36 * + + MAX ( 44 ), 50 * - 87 ), - 26 - + CAST ( - SUM ( CAST ( ( 6 ) AS REAL ) ) + + 47 AS INTEGER ) ) AS col1
----
174344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT ALL + 24 / + 61 * - CASE - CAST( NULL AS SIGNED ) WHEN - - 47 - - 39 * + - 27 + + - CAST( NULL AS SIGNED ) THEN 53 + COUNT( * ) WHEN + COUNT( * ) THEN - + 80 * - 60 * 17 + + 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + 24 / + 61 * - CASE - CAST ( NULL AS INTEGER ) WHEN - - 47 - - 39 * + - 27 + + - CAST ( NULL AS INTEGER ) THEN 53 + COUNT ( * ) WHEN + COUNT ( * ) THEN - + 80 * - 60 * 17 + + 82 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 11 AS col2, - 41 + - 8
----
11
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-123
SELECT 52 + - + 0 + + - CASE 72 WHEN + + ( + 30 ) THEN - - 37 * - 14 + + CAST( + + ( - NULLIF ( + ( - COUNT( * ) ), + 62 ) ) AS SIGNED ) END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT 52 + - + 0 + + - CASE 72 WHEN + + ( + 30 ) THEN - - 37 * - 14 + + CAST ( + + ( - NULLIF ( + ( - COUNT ( * ) ), + 62 ) ) AS INTEGER ) END / COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT - 70 AS col1, - 2 AS col1
----
-70
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT 33 + COUNT( * ) * + - 54 AS col2, 63 + + - 90
----
-21
-27

skipif mysql # not compatible
query II rowsort label-125
SELECT 33 + COUNT ( * ) * + - 54 AS col2, 63 + + - 90
----
-21
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT 36 - + MAX( - 37 ) + 58 * + NULLIF ( 64, - COUNT( * ) ) * + COUNT( * ) - - - 95 + - 85 + + MIN( DISTINCT - + 62 ) + - 19 * ( 51 * 78 ) * 55 AS col0
----
-4153467

skipif mysql # not compatible
query I rowsort label-126
SELECT 36 - + MAX ( - 37 ) + 58 * + NULLIF ( 64, - COUNT ( * ) ) * + COUNT ( * ) - - - 95 + - 85 + + MIN ( DISTINCT - + 62 ) + - 19 * ( 51 * 78 ) * 55 AS col0
----
-4153467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-127
SELECT DISTINCT 85 AS col1, CAST( NULL AS SIGNED ) + + 41
----
85
NULL

skipif mysql # not compatible
query II rowsort label-127
SELECT DISTINCT 85 AS col1, CAST ( NULL AS INTEGER ) + + 41
----
85
NULL

query II rowsort
SELECT 68 + - ( - 55 ), 8 * - 82 - + + 26 + 51 AS col2
----
123
-631

onlyif mysql # DIV for integer division: 
query II rowsort label-129
SELECT ( + 35 ) + - 32 col1, + 75 DIV 43 * 85 - 74
----
3
11

skipif mysql # not compatible
query II rowsort label-129
SELECT ( + 35 ) + - 32 col1, + 75 / 43 * 85 - 74
----
3
11

query II rowsort
SELECT 36 AS col0, 60 + - 7
----
36
53

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT ALL - 5 DIV + - 61 * + + 66 + + + 98
----
98

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 5 / + - 61 * + + 66 + + + 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-132
SELECT 23 DIV + - 42 * + 9 * COUNT( + - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT 23 / + - 42 * + 9 * COUNT ( + - 44 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT DISTINCT - MIN( ALL - - ( 83 ) ) * - - 89 * + CASE - 31 WHEN 38 THEN + NULLIF ( - NULLIF ( + MAX( DISTINCT - - 4 ), MIN( - 62 ) ), 29 * 67 + + 14 ) WHEN 38 THEN - COUNT( * ) WHEN COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) + 69 ) * 97 THEN 7 * 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - MIN ( ALL - - ( 83 ) ) * - - 89 * + CASE - 31 WHEN 38 THEN + NULLIF ( - NULLIF ( + MAX ( DISTINCT - - 4 ), MIN ( - 62 ) ), 29 * 67 + + 14 ) WHEN 38 THEN - COUNT ( * ) WHEN COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) + 69 ) * 97 THEN 7 * 79 END
----
NULL

query I rowsort
SELECT - + NULLIF ( - 86, + 84 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + CASE + COUNT( * ) WHEN + + ( CASE + 80 WHEN 23 THEN NULL ELSE COUNT( * ) END ) THEN NULL WHEN 32 THEN + 35 END + - 69 + 17 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + CASE + COUNT ( * ) WHEN + + ( CASE + 80 WHEN 23 THEN NULL ELSE COUNT ( * ) END ) THEN NULL WHEN 32 THEN + 35 END + - 69 + 17 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-136
SELECT + CAST( + ( + 53 ) AS SIGNED ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-136
SELECT + CAST ( + ( + 53 ) AS INTEGER ) / - 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT ALL + 45 DIV - 48 + - - 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 45 / - 48 + - - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL - - 83 col1, + COUNT( * ) * 87 * + 11 AS col1
----
83
957

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL - - 83 col1, + COUNT ( * ) * 87 * + 11 AS col1
----
83
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT ALL 22 * + CAST( - 32 AS SIGNED ) AS col1
----
-704

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL 22 * + CAST ( - 32 AS INTEGER ) AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL 27 + + SUM( DISTINCT 6 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL 27 + + SUM ( DISTINCT 6 ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT ALL + + 81 DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + + 81 / - + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-142
SELECT DISTINCT + SUM( DISTINCT NULLIF ( ( 42 ), - - 21 ) ) + + - ( - COUNT( - NULLIF ( CAST( - 16 AS SIGNED ), - NULLIF ( - - 17, + - 87 * - 54 ) + + 12 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + SUM ( DISTINCT NULLIF ( ( 42 ), - - 21 ) ) + + - ( - COUNT ( - NULLIF ( CAST ( - 16 AS INTEGER ), - NULLIF ( - - 17, + - 87 * - 54 ) + + 12 ) ) )
----
43

query I rowsort
SELECT ALL 50 + 5
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT NULLIF ( COALESCE ( 38, 32, + COUNT( ALL NULLIF ( - 52, + 59 ) ) ), + - 53 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-144
SELECT NULLIF ( COALESCE ( 38, 32, + COUNT ( ALL NULLIF ( - 52, + 59 ) ) ), + - 53 ) AS col0
----
38

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

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL + 29 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + + 6 + 24 THEN ( + + COALESCE ( COUNT( ( 97 ) ), + COUNT( 43 ) - + 33 + - COUNT( * ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + + 6 + 24 THEN ( + + COALESCE ( COUNT ( ( 97 ) ), + COUNT ( 43 ) - + 33 + - COUNT ( * ) ) ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT DISTINCT ( + 13 ) + + - 67 DIV 86
----
13

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT ( + 13 ) + + - 67 / 86
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-148
SELECT DISTINCT - - 76 + CAST( NULL AS SIGNED ) + - - 31 * 23, + 11 * - 22 * + + 78 AS col2
----
NULL
-18876

skipif mysql # not compatible
query II rowsort label-148
SELECT DISTINCT - - 76 + CAST ( NULL AS INTEGER ) + - - 31 * 23, + 11 * - 22 * + + 78 AS col2
----
NULL
-18876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT 12 + - 54 + + - CASE + 60 WHEN CASE CASE COALESCE ( + + 35, - CAST( + 57 AS SIGNED ) + - 12 * + NULLIF ( + - 85, 80 / 52 ) * + 37 ) WHEN 35 + 57 THEN - 84 END WHEN 6 * + 9 THEN NULL WHEN ( 62 ) THEN COUNT( * ) END THEN CAST( NULL AS SIGNED ) ELSE NULL END + - 45 / - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT 12 + - 54 + + - CASE + 60 WHEN CASE CASE COALESCE ( + + 35, - CAST ( + 57 AS INTEGER ) + - 12 * + NULLIF ( + - 85, 80 / 52 ) * + 37 ) WHEN 35 + 57 THEN - 84 END WHEN 6 * + 9 THEN NULL WHEN ( 62 ) THEN COUNT ( * ) END THEN CAST ( NULL AS INTEGER ) ELSE NULL END + - 45 / - 82 AS col1
----
NULL

query I rowsort
SELECT ALL - 28 + - 29
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT DISTINCT MAX( - 77 ) * - - ( + NULLIF ( - - CASE - - 67 WHEN + - COUNT( * ) THEN COUNT( * ) ELSE NULL END, - 67 - + 40 ) ) + + 36 / + 37, + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-151
SELECT DISTINCT MAX ( - 77 ) * - - ( + NULLIF ( - - CASE - - 67 WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END, - 67 - + 40 ) ) + + 36 / + 37, + COUNT ( * ) col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT - COALESCE ( - - 53, - 34 ) * - + COUNT( * ) - - - ( - 46 ) - + - COUNT( ALL - 19 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-152
SELECT - COALESCE ( - - 53, - 34 ) * - + COUNT ( * ) - - - ( - 46 ) - + - COUNT ( ALL - 19 ) AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-153
SELECT ALL CASE 33 WHEN - 33 THEN NULL WHEN + + 59 THEN NULL ELSE - 79 DIV - COUNT( * ) * + MIN( ALL - + 52 ) * 2 END * ( 17 ) * + 71 * + CASE + + 47 WHEN + 18 THEN 27 - - 2 ELSE 9 DIV - ( 49 ) END + - MIN( NULLIF ( 9, 5 ) + 5 * + 4 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL CASE 33 WHEN - 33 THEN NULL WHEN + + 59 THEN NULL ELSE - 79 / - COUNT ( * ) * + MIN ( ALL - + 52 ) * 2 END * ( 17 ) * + 71 * + CASE + + 47 WHEN + 18 THEN 27 - - 2 ELSE 9 / - ( 49 ) END + - MIN ( NULLIF ( 9, 5 ) + 5 * + 4 ) AS col2
----
-29

query I rowsort
SELECT COALESCE ( + 32, - 25, - ( - + 66 ) ) * 78 AS col2
----
2496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - SUM( - 43 ) * - ( - 92 ) + - 44
----
3912

skipif mysql # not compatible
query I rowsort label-156
SELECT - SUM ( - 43 ) * - ( - 92 ) + - 44
----
3912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT 71 * COALESCE ( + + 7, - COUNT( - - 48 ), + - 3 * + + 12 + + 89, - 85 * + 36 * - + 79 DIV - 17 - + ( - - 49 ) + - ( - SUM( ALL + 92 ) ) ) * ( MAX( ALL - 63 ) ) AS col0
----
-31311

skipif mysql # not compatible
query I rowsort label-157
SELECT 71 * COALESCE ( + + 7, - COUNT ( - - 48 ), + - 3 * + + 12 + + 89, - 85 * + 36 * - + 79 / - 17 - + ( - - 49 ) + - ( - SUM ( ALL + 92 ) ) ) * ( MAX ( ALL - 63 ) ) AS col0
----
-31311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT DISTINCT + 84 - CAST( - 82 AS SIGNED ) AS col0
----
166

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + 84 - CAST ( - 82 AS INTEGER ) AS col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL + 66 * - SUM( DISTINCT + + 7 )
----
-462

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + 66 * - SUM ( DISTINCT + + 7 )
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT 61 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-160
SELECT 61 / 54
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT ALL + 94 DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + 94 / 25
----
3

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

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

query I rowsort
SELECT ALL 1 * + 96
----
96

query I rowsort
SELECT ALL + 67 * + 1 AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT 51 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-165
SELECT 51 / - 16
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT COUNT( DISTINCT - 23 ) * - - 1
----
1

skipif mysql # not compatible
query I rowsort label-166
SELECT COUNT ( DISTINCT - 23 ) * - - 1
----
1

query I rowsort
SELECT 58 + + 95 + 53 + - 4 * + - 53
----
418

query I rowsort
SELECT 61 * + 17 * 46 AS col1
----
47702

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

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

query I rowsort
SELECT ALL - 60 * - 61 + - 10
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - COUNT( * ) + - 72 - + - 46 * + 15
----
617

skipif mysql # not compatible
query I rowsort label-171
SELECT - COUNT ( * ) + - 72 - + - 46 * + 15
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT + + 87 * + CASE - + 84 WHEN + + MAX( + + ( + 84 ) ) - + 45 + + 19 + - 62 THEN SUM( + + 53 ) * COUNT( * ) * 68 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + + 87 * + CASE - + 84 WHEN + + MAX ( + + ( + 84 ) ) - + 45 + + 19 + - 62 THEN SUM ( + + 53 ) * COUNT ( * ) * 68 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 86 + - 19
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL COUNT( ALL + 97 ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL COUNT ( ALL + 97 ) + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT + + 37 * - CASE 41 WHEN + + 68 THEN + 38 WHEN - 3 * + CASE + - COUNT( * ) WHEN - + 96 + - - COUNT( * ) THEN + 11 WHEN + 19 THEN NULL END + - 13 + - 52 * + 62 - - AVG ( 29 ) THEN NULL ELSE MIN( ALL + 8 ) END + 82
----
-214

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + + 37 * - CASE 41 WHEN + + 68 THEN + 38 WHEN - 3 * + CASE + - COUNT ( * ) WHEN - + 96 + - - COUNT ( * ) THEN + 11 WHEN + 19 THEN NULL END + - 13 + - 52 * + 62 - - AVG ( 29 ) THEN NULL ELSE MIN ( ALL + 8 ) END + 82
----
-214

query I rowsort
SELECT DISTINCT + + 12 + + 75 AS col1
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT 66 * - - 76 * - NULLIF ( - - 67, + 11 * SUM( DISTINCT - + 57 ) + + 56 ) AS col0
----
-336072

skipif mysql # not compatible
query I rowsort label-178
SELECT 66 * - - 76 * - NULLIF ( - - 67, + 11 * SUM ( DISTINCT - + 57 ) + + 56 ) AS col0
----
-336072

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT DISTINCT - MAX( DISTINCT 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - MAX ( DISTINCT 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT MIN( 28 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-181
SELECT MIN ( 28 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL + + ( - - 29 ) * + 56 + + - NULLIF ( + 74, + + COUNT( * ) + + 51 ) + 98
----
1648

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + + ( - - 29 ) * + 56 + + - NULLIF ( + 74, + + COUNT ( * ) + + 51 ) + 98
----
1648

query I rowsort
SELECT - - ( 17 ) * - 82 - - 4 + + 49
----
-1341

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - COUNT( * ) - + 30 + - COUNT( * ) * - + 0
----
-31

skipif mysql # not compatible
query I rowsort label-184
SELECT - COUNT ( * ) - + 30 + - COUNT ( * ) * - + 0
----
-31

query I rowsort
SELECT 3 * - + 79 + - + 71 * + 2 AS col1
----
-379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL - - CAST( NULL AS SIGNED ) * + + COUNT( * ) - + + 35 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - + + 35 / + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 67 * SUM( - 37 )
----
2479

skipif mysql # not compatible
query I rowsort label-187
SELECT - 67 * SUM ( - 37 )
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL - 6 * + + 14 + - COUNT( * ) * - 26 * + - ( - SUM( ALL + 6 ) )
----
72

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - 6 * + + 14 + - COUNT ( * ) * - 26 * + - ( - SUM ( ALL + 6 ) )
----
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT ALL + CAST( NULL AS SIGNED ) * + + 24 - - + 58 - + 88 * + - COUNT( * ) / - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 24 - - + 58 - + 88 * + - COUNT ( * ) / - - 72 AS col0
----
NULL

query I rowsort
SELECT + 91 * + - 60 AS col1
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + 97 * COUNT( DISTINCT - 24 )
----
97

skipif mysql # not compatible
query I rowsort label-192
SELECT + 97 * COUNT ( DISTINCT - 24 )
----
97

query I rowsort
SELECT + 67 * + - 99 * - 52 AS col2
----
344916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT - CAST( NULL AS SIGNED ) * + 91 + - NULLIF ( 4, 35 - 68 * 8 * - 25 - + 59 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT - CAST ( NULL AS INTEGER ) * + 91 + - NULLIF ( 4, 35 - 68 * 8 * - 25 - + 59 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-195
SELECT + 61 + - COUNT( CAST( NULL AS SIGNED ) ) + + 87 * ( - + SUM( DISTINCT - - 56 ) ) AS col2
----
-4811

skipif mysql # not compatible
query I rowsort label-195
SELECT + 61 + - COUNT ( CAST ( NULL AS INTEGER ) ) + + 87 * ( - + SUM ( DISTINCT - - 56 ) ) AS col2
----
-4811

query I rowsort
SELECT + CASE 38 WHEN + + 63 + 21 THEN + ( - 12 ) ELSE + 54 + 69 END
----
123

query I rowsort
SELECT ALL 31 * - CASE + 99 WHEN - 69 THEN NULL ELSE - - 87 END AS col1
----
-2697

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

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

query I rowsort
SELECT - ( 63 ) + - 76
----
-139

query I rowsort
SELECT - COALESCE ( + ( - + 87 ), + 32 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - SUM( ALL + 32 ) + - 15 + - 94 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-201
SELECT - SUM ( ALL + 32 ) + - 15 + - 94 AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - COALESCE ( + NULLIF ( + 67, - 35 ), + + MIN( + 12 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-202
SELECT - COALESCE ( + NULLIF ( + 67, - 35 ), + + MIN ( + 12 ) )
----
-67

query I rowsort
SELECT ALL + 63 + 33 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT - 77 + + + 95 + - MAX( ALL - 94 ) * - 92 col1, COUNT( * ) * - 23
----
-8630
-23

skipif mysql # not compatible
query II rowsort label-204
SELECT - 77 + + + 95 + - MAX ( ALL - 94 ) * - 92 col1, COUNT ( * ) * - 23
----
-8630
-23

query I rowsort
SELECT DISTINCT + 56 + - + 12
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT ALL + - 39 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + - 39 / 81 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT - - 17 * - COUNT( * ) * + + 55 * + + 99 AS col0
----
-92565

skipif mysql # not compatible
query I rowsort label-208
SELECT - - 17 * - COUNT ( * ) * + + 55 * + + 99 AS col0
----
-92565

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT DISTINCT - + 72 + + NULLIF ( + NULLIF ( + NULLIF ( - 33, - MIN( DISTINCT + - 4 ) ), + + 52 ), - 90 * + CASE - 50 WHEN COUNT( * ) * - COUNT( * ) THEN + 2 ELSE NULL END )
----
-105

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - + 72 + + NULLIF ( + NULLIF ( + NULLIF ( - 33, - MIN ( DISTINCT + - 4 ) ), + + 52 ), - 90 * + CASE - 50 WHEN COUNT ( * ) * - COUNT ( * ) THEN + 2 ELSE NULL END )
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT + - 73 DIV + 92 + - + COUNT( - 99 ) * 87 * 97 AS col2
----
-8439

skipif mysql # not compatible
query I rowsort label-210
SELECT + - 73 / + 92 + - + COUNT ( - 99 ) * 87 * 97 AS col2
----
-8439

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

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

query I rowsort
SELECT ALL - 62 + + + 51 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + 88 * - 66 + + 71 - + SUM( DISTINCT 91 ) * 54 * - - 32
----
-162985

skipif mysql # not compatible
query I rowsort label-213
SELECT + 88 * - 66 + + 71 - + SUM ( DISTINCT 91 ) * 54 * - - 32
----
-162985

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT - + 93 * COALESCE ( - NULLIF ( + 29, - 54 * - ( - 23 ) - - 66 DIV - ( + AVG ( ALL + 94 ) ) ), - COALESCE ( CASE 18 WHEN - COUNT( * ) THEN + 64 WHEN 48 + ( 89 ) THEN + 43 - 53 ELSE + COUNT( * ) END, 77 ) ) DIV + 21 - 79 * MAX( DISTINCT 84 ) AS col1
----
-6508

skipif mysql # not compatible
query I rowsort label-215
SELECT - + 93 * COALESCE ( - NULLIF ( + 29, - 54 * - ( - 23 ) - - 66 / - ( + AVG ( ALL + 94 ) ) ), - COALESCE ( CASE 18 WHEN - COUNT ( * ) THEN + 64 WHEN 48 + ( 89 ) THEN + 43 - 53 ELSE + COUNT ( * ) END, 77 ) ) / + 21 - 79 * MAX ( DISTINCT 84 ) AS col1
----
-6508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT + 54 + COUNT( - - 85 ) DIV 22 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT + 54 + COUNT ( - - 85 ) / 22 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT DISTINCT - + CASE - - COALESCE ( COUNT( * ), + + CAST( NULL AS SIGNED ) + COUNT( * ) * 49, + COALESCE ( 88, - 46 * + CASE + + 11 WHEN 9 * + 51 THEN + 84 WHEN - COUNT( - 88 ) THEN NULL ELSE 38 END + 86 ) + + 96 * 34 ) WHEN - 80 / - ( COUNT( * ) ) THEN - 13 WHEN - NULLIF ( - 88, 57 ) + 77 THEN + COUNT( * ) + 80 * + 39 END - 41 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - + CASE - - COALESCE ( COUNT ( * ), + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 49, + COALESCE ( 88, - 46 * + CASE + + 11 WHEN 9 * + 51 THEN + 84 WHEN - COUNT ( - 88 ) THEN NULL ELSE 38 END + 86 ) + + 96 * 34 ) WHEN - 80 / - ( COUNT ( * ) ) THEN - 13 WHEN - NULLIF ( - 88, 57 ) + 77 THEN + COUNT ( * ) + 80 * + 39 END - 41 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 28 AS col1
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-219
SELECT DISTINCT + 52 col2, - CAST( + + 78 AS SIGNED ) AS col1
----
52
-78

skipif mysql # not compatible
query II rowsort label-219
SELECT DISTINCT + 52 col2, - CAST ( + + 78 AS INTEGER ) AS col1
----
52
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-220
SELECT DISTINCT + 47 / - - CAST( - - 3 AS SIGNED ) - - + 33 + CASE + COUNT( * ) WHEN CASE 61 WHEN 44 THEN NULL WHEN + + 40 THEN 40 * - - 81 * + COUNT( * ) + 36 ELSE - 2 END - CAST( + 36 AS DECIMAL ) * COUNT( * ) THEN - 62 - 78 WHEN + 28 * - 15 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT + 47 / - - CAST ( - - 3 AS INTEGER ) - - + 33 + CASE + COUNT ( * ) WHEN CASE 61 WHEN 44 THEN NULL WHEN + + 40 THEN 40 * - - 81 * + COUNT ( * ) + 36 ELSE - 2 END - CAST ( + 36 AS REAL ) * COUNT ( * ) THEN - 62 - 78 WHEN + 28 * - 15 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT ALL + 80 DIV 64 - - - 47
----
-46

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + 80 / 64 - - - 47
----
-46

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT - 11 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - 11 / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - 20 + 11 + 24 * - 34 * - + COUNT( * )
----
807

skipif mysql # not compatible
query I rowsort label-226
SELECT - 20 + 11 + 24 * - 34 * - + COUNT ( * )
----
807

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL - COUNT( DISTINCT - 16 ) * - + COUNT( * ) + + MAX( - 16 )
----
-15

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL - COUNT ( DISTINCT - 16 ) * - + COUNT ( * ) + + MAX ( - 16 )
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + COUNT( * ) * + - ( + MIN( ALL + 20 ) ) * - 20
----
400

skipif mysql # not compatible
query I rowsort label-230
SELECT + COUNT ( * ) * + - ( + MIN ( ALL + 20 ) ) * - 20
----
400

query I rowsort
SELECT DISTINCT 37 * 38 AS col0
----
1406

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT - 1 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT - 1 / + 53
----
0

query I rowsort
SELECT + 7 * - + 57
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + ( COUNT( * ) ) - 29 + - 62 + + + 53 + + + 34 + - + COUNT( * ) * + + 56
----
-59

skipif mysql # not compatible
query I rowsort label-234
SELECT + ( COUNT ( * ) ) - 29 + - 62 + + + 53 + + + 34 + - + COUNT ( * ) * + + 56
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL CAST( NULL AS SIGNED ) * + - 78 * 43 + + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL CAST ( NULL AS INTEGER ) * + - 78 * 43 + + - 9 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - - 62, + - 14, - + 67 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT DISTINCT + 45 * - + COUNT( * ) + 24
----
-21

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + 45 * - + COUNT ( * ) + 24
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + 30 * - COUNT( * ) - + 48 + NULLIF ( - ( - 79 ), - - 64 * - + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + 30 * - COUNT ( * ) - + 48 + NULLIF ( - ( - 79 ), - - 64 * - + 45 ) AS col1
----
1

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

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

query I rowsort
SELECT + 63 + - 46
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT DISTINCT ( SUM( - 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT ( SUM ( - 48 ) )
----
-48

query I rowsort
SELECT - + 5 * + 61 + - 88 + 9 * + - 40
----
-753

query I rowsort
SELECT + + 36 + - COALESCE ( - 70, + 99 ) AS col2
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT DISTINCT + 0 AS col2, - 78 * - COUNT( * )
----
0
78

skipif mysql # not compatible
query II rowsort label-244
SELECT DISTINCT + 0 AS col2, - 78 * - COUNT ( * )
----
0
78

query II rowsort
SELECT ALL - + 94 - 83 * - 92 * + 93 AS col0, + 29 AS col1
----
710054
29

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT DISTINCT - 46 AS col2, + 37 * - 18 + - ( - MAX( ALL - 99 ) ) AS col2
----
-46
-765

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT - 46 AS col2, + 37 * - 18 + - ( - MAX ( ALL - 99 ) ) AS col2
----
-46
-765

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-247
SELECT DISTINCT - + 69 DIV CAST( - 72 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - + 69 / CAST ( - 72 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT 0 - - 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT MIN( 26 ) * - 26
----
-676

skipif mysql # not compatible
query I rowsort label-249
SELECT MIN ( 26 ) * - 26
----
-676

query I rowsort
SELECT ALL - + 19 * + 83 * + + 6 + - - 73
----
-9389

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

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL COUNT ( * ) / - 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT - - 98 AS col1, MAX( DISTINCT + + 76 ) * - 32 AS col1
----
98
-2432

skipif mysql # not compatible
query II rowsort label-252
SELECT - - 98 AS col1, MAX ( DISTINCT + + 76 ) * - 32 AS col1
----
98
-2432

query I rowsort
SELECT - 62 + 78 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - 2 * MAX( - 13 )
----
26

skipif mysql # not compatible
query I rowsort label-254
SELECT - 2 * MAX ( - 13 )
----
26

query II rowsort
SELECT DISTINCT 69, - ( + + 49 ) AS col1
----
69
-49

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

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - - 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT 27 + 20 - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-257
SELECT 27 + 20 - COUNT ( * )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT 62 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-258
SELECT 62 / + 22
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT MAX( + 39 ) + 50 + 90 col0
----
179

skipif mysql # not compatible
query I rowsort label-259
SELECT MAX ( + 39 ) + 50 + 90 col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-260
SELECT CASE + 26 WHEN - 97 * + COUNT( * ) THEN NULL ELSE - + 14 * - 24 * - 42 * + 17 + + 43 + 21 + - 28 * 55 + - 57 * 94 * - - COUNT( * ) + CAST( 88 AS SIGNED ) + COUNT( * ) END - - 75 * 91
----
-239824

skipif mysql # not compatible
query I rowsort label-260
SELECT CASE + 26 WHEN - 97 * + COUNT ( * ) THEN NULL ELSE - + 14 * - 24 * - 42 * + 17 + + 43 + 21 + - 28 * 55 + - 57 * 94 * - - COUNT ( * ) + CAST ( 88 AS INTEGER ) + COUNT ( * ) END - - 75 * 91
----
-239824

query I rowsort
SELECT ALL - 97 * + - 73
----
7081

query II rowsort
SELECT 43 * + 2 AS col2, 3
----
86
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-263
SELECT DISTINCT 67 * CASE + CAST( NULL AS SIGNED ) WHEN + 24 + - - MIN( ALL + 88 ) THEN + CAST( NULL AS DECIMAL ) / AVG ( + + 96 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT 67 * CASE + CAST ( NULL AS INTEGER ) WHEN + 24 + - - MIN ( ALL + 88 ) THEN + CAST ( NULL AS REAL ) / AVG ( + + 96 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT ALL - MIN( ALL 93 ), + 36 - - 18 AS col0
----
-93
54

skipif mysql # not compatible
query II rowsort label-264
SELECT ALL - MIN ( ALL 93 ), + 36 - - 18 AS col0
----
-93
54

query I rowsort
SELECT ALL 84 + 27
----
111

query I rowsort
SELECT 71 + + + 46 * - - 34
----
1635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT ALL - COALESCE ( - COALESCE ( - 87, - COUNT( DISTINCT - - 11 ), 72 * + 26 * - - 9 + 72 DIV - - COUNT( * ) ), + CASE - 51 WHEN + 54 * + - 66 THEN CAST( + - 31 AS SIGNED ) END ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - COALESCE ( - COALESCE ( - 87, - COUNT ( DISTINCT - - 11 ), 72 * + 26 * - - 9 + 72 / - - COUNT ( * ) ), + CASE - 51 WHEN + 54 * + - 66 THEN CAST ( + - 31 AS INTEGER ) END ) AS col0
----
-87

query I rowsort
SELECT DISTINCT - 80 + + + 48 * 22 AS col1
----
976

query I rowsort
SELECT 45 * - + 33
----
-1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT NULLIF ( - 73, CAST( + 62 AS SIGNED ) ) * + 16 + - CASE + 7 WHEN + 84 / - ( + + ( + + 55 ) ) * - COUNT( * ) THEN - 88 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT NULLIF ( - 73, CAST ( + 62 AS INTEGER ) ) * + 16 + - CASE + 7 WHEN + 84 / - ( + + ( + + 55 ) ) * - COUNT ( * ) THEN - 88 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-271
SELECT 87 * + 73, CAST( + 47 AS SIGNED ) col2
----
6351
47

skipif mysql # not compatible
query II rowsort label-271
SELECT 87 * + 73, CAST ( + 47 AS INTEGER ) col2
----
6351
47

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL - 62 + + NULLIF ( - 55, + COUNT( ALL - 40 ) ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - 62 + + NULLIF ( - 55, + COUNT ( ALL - 40 ) ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 71 * + MIN( DISTINCT + 57 )
----
4047

skipif mysql # not compatible
query I rowsort label-273
SELECT 71 * + MIN ( DISTINCT + 57 )
----
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 77 + + 31 + COUNT( * ) * + 95
----
203

skipif mysql # not compatible
query I rowsort label-274
SELECT 77 + + 31 + COUNT ( * ) * + 95
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL COALESCE ( 50, + 22 ) + - SUM( - 28 ) + + ( - + ( 9 ) )
----
69

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL COALESCE ( 50, + 22 ) + - SUM ( - 28 ) + + ( - + ( 9 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT MAX( DISTINCT 93 ) + ( - 90 )
----
3

skipif mysql # not compatible
query I rowsort label-276
SELECT MAX ( DISTINCT 93 ) + ( - 90 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), - 52 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-279
SELECT ALL CASE - + 14 WHEN COUNT( ALL - 50 ) * COUNT( * ) + + COUNT( * ) + CAST( NULL AS SIGNED ) * COUNT( - + 84 ) * - + 67 THEN NULL WHEN + 50 THEN ( - - COUNT( * ) ) + + 89 WHEN + 20 * + CASE - + 24 WHEN NULLIF ( 66, 85 + 35 ) THEN 74 - + 80 * 67 ELSE + COUNT( * ) * + 51 + 0 * + 8 END + 50 THEN NULL END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL CASE - + 14 WHEN COUNT ( ALL - 50 ) * COUNT ( * ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( - + 84 ) * - + 67 THEN NULL WHEN + 50 THEN ( - - COUNT ( * ) ) + + 89 WHEN + 20 * + CASE - + 24 WHEN NULLIF ( 66, 85 + 35 ) THEN 74 - + 80 * 67 ELSE + COUNT ( * ) * + 51 + 0 * + 8 END + 50 THEN NULL END * 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT - 19 * + + 28 + - 9 * - + CASE + + COUNT( * ) WHEN - 80 THEN 12 + NULLIF ( - 1, + CASE SUM( DISTINCT 43 ) WHEN - MAX( 86 ) * + 29 THEN + + 12 ELSE NULL END ) + CASE + 80 WHEN + CAST( NULL AS SIGNED ) THEN 46 + 99 * + ( 63 * + SUM( ALL CASE 37 WHEN + 84 THEN - NULLIF ( + 91, 53 * 72 ) WHEN 4 THEN NULL ELSE NULL END ) ) END WHEN + 65 THEN NULL WHEN + CASE 11 WHEN + 72 THEN NULL ELSE - 5 END * ( - 79 + - 98 * COALESCE ( - ( + 94 ) + - 76, 17 ) ) + - 49 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - 19 * + + 28 + - 9 * - + CASE + + COUNT ( * ) WHEN - 80 THEN 12 + NULLIF ( - 1, + CASE SUM ( DISTINCT 43 ) WHEN - MAX ( 86 ) * + 29 THEN + + 12 ELSE NULL END ) + CASE + 80 WHEN + CAST ( NULL AS INTEGER ) THEN 46 + 99 * + ( 63 * + SUM ( ALL CASE 37 WHEN + 84 THEN - NULLIF ( + 91, 53 * 72 ) WHEN 4 THEN NULL ELSE NULL END ) ) END WHEN + 65 THEN NULL WHEN + CASE 11 WHEN + 72 THEN NULL ELSE - 5 END * ( - 79 + - 98 * COALESCE ( - ( + 94 ) + - 76, 17 ) ) + - 49 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT - 72 * + MIN( 95 )
----
-6840

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - 72 * + MIN ( 95 )
----
-6840

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT COALESCE ( + 84, - + 85 ) AS col2, COUNT( * ) AS col2
----
84
1

skipif mysql # not compatible
query II rowsort label-282
SELECT COALESCE ( + 84, - + 85 ) AS col2, COUNT ( * ) AS col2
----
84
1

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT + 86 * 31 AS col1, 38 + + + COALESCE ( - 22, - - 91 ) + + COUNT( * ) * 70 - - COUNT( * ) AS col1
----
2666
87

skipif mysql # not compatible
query II rowsort label-283
SELECT + 86 * 31 AS col1, 38 + + + COALESCE ( - 22, - - 91 ) + + COUNT ( * ) * 70 - - COUNT ( * ) AS col1
----
2666
87

query I rowsort
SELECT DISTINCT 34 * + 47 AS col0
----
1598

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-285
SELECT COALESCE ( COUNT( * ), 69 * - 19 - + + 97 DIV - 11 ) * + + 7 AS col2, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-285
SELECT COALESCE ( COUNT ( * ), 69 * - 19 - + + 97 / - 11 ) * + + 7 AS col2, COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT COUNT( - 63 ) * + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT COUNT ( - 63 ) * + - 98
----
-98

query II rowsort
SELECT ALL 97 AS col2, 98 + - 12 AS col2
----
97
86

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT DISTINCT + 48 DIV + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT + 48 / + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-289
SELECT ALL - 15 * 81 + - - 29 DIV + - COUNT( ALL 56 ) AS col1
----
-1244

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - 15 * 81 + - - 29 / + - COUNT ( ALL 56 ) AS col1
----
-1244

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT MIN( ALL + NULLIF ( - 79, + 68 ) ) col1, - 32 AS col2
----
-79
-32

skipif mysql # not compatible
query II rowsort label-291
SELECT MIN ( ALL + NULLIF ( - 79, + 68 ) ) col1, - 32 AS col2
----
-79
-32

query II rowsort
SELECT + 8 AS col1, 4
----
8
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT 30 * - + COUNT( * ) + - 7 * 36 * + 15 - + NULLIF ( - + 22, - SUM( - - ( + - 8 ) ) + + - 85 + - 25 * 55 ) - 76 * + 17 - + SUM( ALL 76 ) + ( 26 ) DIV 64 AS col2
----
-5156

skipif mysql # not compatible
query I rowsort label-293
SELECT 30 * - + COUNT ( * ) + - 7 * 36 * + 15 - + NULLIF ( - + 22, - SUM ( - - ( + - 8 ) ) + + - 85 + - 25 * 55 ) - 76 * + 17 - + SUM ( ALL 76 ) + ( 26 ) / 64 AS col2
----
-5156

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT 85 * MAX( - 52 ) + 9 col2
----
-4411

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT 85 * MAX ( - 52 ) + 9 col2
----
-4411

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT SUM( DISTINCT + + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-295
SELECT SUM ( DISTINCT + + 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL - 76 + - COUNT( * ) * 27
----
-103

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - 76 + - COUNT ( * ) * 27
----
-103

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

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

query I rowsort
SELECT 67 * - + 20 AS col1
----
-1340

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT + 78 DIV + 93 + + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-299
SELECT + 78 / + 93 + + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL - NULLIF ( MIN( ALL - - ( + 23 ) ), + 94 )
----
-23

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - NULLIF ( MIN ( ALL - - ( + 23 ) ), + 94 )
----
-23

query I rowsort
SELECT DISTINCT - 49 * - 19
----
931

query I rowsort
SELECT 80 + - - 45 col2
----
125

query I rowsort
SELECT ALL + ( - + 35 ) + 53 col1
----
18

query II rowsort
SELECT ALL - NULLIF ( - 45, 25 ) AS col2, - 33
----
45
-33

query I rowsort
SELECT ALL - NULLIF ( + + 24, + 87 ) + - 93 AS col1
----
-117

query II rowsort
SELECT ALL - 41 AS col1, + 74
----
-41
74

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-311
SELECT ( 75 ) * + - 12 - + 45 + NULLIF ( - - 45, + NULLIF ( 54, + 47 + + 16 ) * + CAST( NULL AS DECIMAL ) + + 58 ) + - CAST( NULL AS SIGNED ) - 23 - - + 40 + + + MAX( DISTINCT - 25 ) * - 74 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT ( 75 ) * + - 12 - + 45 + NULLIF ( - - 45, + NULLIF ( 54, + 47 + + 16 ) * + CAST ( NULL AS REAL ) + + 58 ) + - CAST ( NULL AS INTEGER ) - 23 - - + 40 + + + MAX ( DISTINCT - 25 ) * - 74 * + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT + + 78 * + SUM( 5 ) * 98 AS col0
----
38220

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT + + 78 * + SUM ( 5 ) * 98 AS col0
----
38220

query I rowsort
SELECT - 95 * 12 + - + 73 AS col0
----
-1213

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT + 23 * 19 * + 33 + - + 95 - + ( - COALESCE ( + COUNT( * ), + - 36 - COUNT( * ), + + ( - MIN( ALL 14 ) ) ) )
----
14327

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT + 23 * 19 * + 33 + - + 95 - + ( - COALESCE ( + COUNT ( * ), + - 36 - COUNT ( * ), + + ( - MIN ( ALL 14 ) ) ) )
----
14327

query I rowsort
SELECT - - 84 + 37
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-316
SELECT + - 79 * - ( 30 ) * + CAST( - 58 AS SIGNED ) - + + 70 - 94 + + + 25 AS col2
----
-137599

skipif mysql # not compatible
query I rowsort label-316
SELECT + - 79 * - ( 30 ) * + CAST ( - 58 AS INTEGER ) - + + 70 - 94 + + + 25 AS col2
----
-137599

query II rowsort
SELECT - + ( 64 ) * + 55 AS col2, 31 AS col0
----
-3520
31

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

skipif mysql # not compatible
query I rowsort label-318
SELECT + - COUNT ( * ) / + 21 col1
----
0

query I rowsort
SELECT + 11 + + - 12 + - 13 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL - COUNT( * ) + - + 71
----
-72

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - COUNT ( * ) + - + 71
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-321
SELECT + CASE + 23 WHEN + + 94 - + + 20 + - + 52 THEN + + 12 ELSE 26 END + - 35 - - 12 + 75 + - + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col0, - 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-321
SELECT + CASE + 23 WHEN + + 94 - + + 20 + - + 52 THEN + + 12 ELSE 26 END + - 35 - - 12 + 75 + - + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0, - 12
----
NULL
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL 9 + - CAST( - - 95 AS SIGNED ) + - 10
----
-96

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL 9 + - CAST ( - - 95 AS INTEGER ) + - 10
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT + ( + COALESCE ( + CAST( - 65 AS SIGNED ), 6 + + + CAST( NULL AS SIGNED ) + - 32 ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT + ( + COALESCE ( + CAST ( - 65 AS INTEGER ), 6 + + + CAST ( NULL AS INTEGER ) + - 32 ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 79 + + 36
----
115

query I rowsort
SELECT DISTINCT 14 + - 39 AS col0
----
-25

query I rowsort
SELECT ALL 73 + 53 AS col1
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT - ( - 91 ) col2, SUM( + 47 ) AS col0
----
91
47

skipif mysql # not compatible
query II rowsort label-327
SELECT - ( - 91 ) col2, SUM ( + 47 ) AS col0
----
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL 87 * + 43 + CASE + 97 WHEN + - 72 * - + 48 + + - 73 + + - 96 + - + 40 * + 92 THEN + COUNT( * ) + 85 + - 76 + + 91 + + - 39 * ( + 92 ) * + - 35 WHEN - 98 - 4 THEN 36 WHEN - MAX( 19 ) * + 18 THEN 37 * 57 ELSE - 89 END
----
3652

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL 87 * + 43 + CASE + 97 WHEN + - 72 * - + 48 + + - 73 + + - 96 + - + 40 * + 92 THEN + COUNT ( * ) + 85 + - 76 + + 91 + + - 39 * ( + 92 ) * + - 35 WHEN - 98 - 4 THEN 36 WHEN - MAX ( 19 ) * + 18 THEN 37 * 57 ELSE - 89 END
----
3652

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT ALL 24 * - - 38 / ( + 23 ) + 65 * CAST( NULL AS SIGNED ) / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 24 * - - 38 / ( + 23 ) + 65 * CAST ( NULL AS INTEGER ) / - 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT DISTINCT + 99 DIV - MIN( DISTINCT - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + 99 / - MIN ( DISTINCT - 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL + 40 * COUNT( * ) - 44
----
-4

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 40 * COUNT ( * ) - 44
----
-4

query I rowsort
SELECT - 77 + 0 AS col1
----
-77

query I rowsort
SELECT + COALESCE ( - 52, + 37 ) AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT + - 40 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT + - 40 / + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - 12 * + 22 * - CASE 64 WHEN 81 * - 12 + - - 7 + 42 THEN + 78 * 67 WHEN COALESCE ( - 31, + ( - 82 ) ) + + 99 THEN NULL ELSE + 40 * - 47 END + - + COUNT( * )
----
-496321

skipif mysql # not compatible
query I rowsort label-336
SELECT - 12 * + 22 * - CASE 64 WHEN 81 * - 12 + - - 7 + 42 THEN + 78 * 67 WHEN COALESCE ( - 31, + ( - 82 ) ) + + 99 THEN NULL ELSE + 40 * - 47 END + - + COUNT ( * )
----
-496321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL + CAST( NULL AS SIGNED ) * + + 33 + + ( - 24 ) + + CASE - 16 WHEN - 73 THEN + 70 + - 72 WHEN + COALESCE ( - COUNT( * ), + + 66, + 34 ) * + MIN( 92 ) + 20 * + AVG ( DISTINCT - 85 ) THEN + 7 ELSE NULL END * COALESCE ( - 83, - 30, 42 ) * + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 33 + + ( - 24 ) + + CASE - 16 WHEN - 73 THEN + 70 + - 72 WHEN + COALESCE ( - COUNT ( * ), + + 66, + 34 ) * + MIN ( 92 ) + 20 * + AVG ( DISTINCT - 85 ) THEN + 7 ELSE NULL END * COALESCE ( - 83, - 30, 42 ) * + 26 col0
----
NULL

query I rowsort
SELECT DISTINCT + 38 * - 81
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-339
SELECT DISTINCT + 27 * - - 95, + NULLIF ( + 20, + 39 DIV - - 64 + - 42 ) AS col2, 83 * 6 DIV - - 20 * ( + COUNT( + - 81 ) ) col2
----
2565
20
24

skipif mysql # not compatible
query III rowsort label-339
SELECT DISTINCT + 27 * - - 95, + NULLIF ( + 20, + 39 / - - 64 + - 42 ) AS col2, 83 * 6 / - - 20 * ( + COUNT ( + - 81 ) ) col2
----
2565
20
24

query II rowsort
SELECT ALL + ( + 40 ), + 59 AS col1
----
40
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-341
SELECT - - ( - 34 ) * NULLIF ( COUNT( * ), + + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) + + + 97 - 15 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-341
SELECT - - ( - 34 ) * NULLIF ( COUNT ( * ), + + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) + + + 97 - 15 AS col2
----
48

query I rowsort
SELECT ALL + 94 * 62
----
5828

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-343
SELECT - 92 * - 53 * 87 + + 38 * - + CAST( + 20 AS DECIMAL ) * + 2 * - - 30 - 21 + 99 * - - 89 + - CASE + ( - + SUM( + 80 ) ) WHEN ( + 55 ) THEN - - 74 * + 42 * COUNT( * ) WHEN ( + 83 ) THEN NULL END / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT - 92 * - 53 * 87 + + 38 * - + CAST ( + 20 AS REAL ) * + 2 * - - 30 - 21 + 99 * - - 89 + - CASE + ( - + SUM ( + 80 ) ) WHEN ( + 55 ) THEN - - 74 * + 42 * COUNT ( * ) WHEN ( + 83 ) THEN NULL END / 37
----
NULL

query I rowsort
SELECT - + 8 + + 74 + + 17 + 59 * 51
----
3092

query II rowsort
SELECT ALL ( - 70 ), - 92 AS col1
----
-70
-92

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

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

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

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

query I rowsort
SELECT ALL - 53 + 8 col1
----
-45

query I rowsort
SELECT ALL + - 33 * - 91 AS col2
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT - CASE - - 9 WHEN + 32 THEN 65 - 22 + + 35 * - + CASE - - 10 WHEN 98 + ( + + COALESCE ( 50, + + ( 46 ) ) ) THEN + 71 * + 89 WHEN - 29 THEN NULL ELSE NULL END + + 49 + 1 * - COUNT( * ) ELSE NULL END * MAX( + 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT - CASE - - 9 WHEN + 32 THEN 65 - 22 + + 35 * - + CASE - - 10 WHEN 98 + ( + + COALESCE ( 50, + + ( 46 ) ) ) THEN + 71 * + 89 WHEN - 29 THEN NULL ELSE NULL END + + 49 + 1 * - COUNT ( * ) ELSE NULL END * MAX ( + 67 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 87 + + + 92 AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL ( + + ( - - COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT ALL + 48 + - NULLIF ( + COUNT( * ), + 31 * - 25 * - NULLIF ( - + 85, - 26 * + - 23 + - + 24 * - 9 + - 1 * 59 * + - COALESCE ( 88, - 61 + 55 * - 70 + - 9, ( - 39 ) + + CASE 52 WHEN + 58 * 10 THEN NULL WHEN CASE 41 WHEN + 66 THEN 2 WHEN - 92 / + 64 THEN NULL END THEN NULL WHEN 52 THEN 14 ELSE NULL END ) * 72 ) * + 47 ) * + 38 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL + 48 + - NULLIF ( + COUNT ( * ), + 31 * - 25 * - NULLIF ( - + 85, - 26 * + - 23 + - + 24 * - 9 + - 1 * 59 * + - COALESCE ( 88, - 61 + 55 * - 70 + - 9, ( - 39 ) + + CASE 52 WHEN + 58 * 10 THEN NULL WHEN CASE 41 WHEN + 66 THEN 2 WHEN - 92 / + 64 THEN NULL END THEN NULL WHEN 52 THEN 14 ELSE NULL END ) * 72 ) * + 47 ) * + 38 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT - 93 + + MAX( ALL - 62 ) + - + ( + 19 ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - 93 + + MAX ( ALL - 62 ) + - + ( + 19 ) AS col0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-355
SELECT DISTINCT CAST( NULL AS SIGNED ), 13 + + 90 + + 25 + + 19 * - + 10 * - - ( + CAST( 1 AS SIGNED ) ) * + NULLIF ( ( + - COUNT( + 34 ) ), 21 * + 94 - + 19 ) + + CAST( NULL AS DECIMAL ) + + AVG ( 4 ) * 81
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-355
SELECT DISTINCT CAST ( NULL AS INTEGER ), 13 + + 90 + + 25 + + 19 * - + 10 * - - ( + CAST ( 1 AS INTEGER ) ) * + NULLIF ( ( + - COUNT ( + 34 ) ), 21 * + 94 - + 19 ) + + CAST ( NULL AS REAL ) + + AVG ( 4 ) * 81
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - 55 - + COUNT( 9 ) - - 63
----
7

skipif mysql # not compatible
query I rowsort label-356
SELECT - 55 - + COUNT ( 9 ) - - 63
----
7

query I rowsort
SELECT + 61 * 43
----
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL + 76 + - - ( + CASE + + COUNT( * ) WHEN - 94 + + ( CASE - ( 93 ) WHEN + 10 * 38 THEN - 91 WHEN - 18 THEN NULL END ) + + 54 * + 42 THEN COUNT( * ) + 55 * + 43 - + 54 * - 76 ELSE + 20 + 51 END ) * - 61
----
-4255

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + 76 + - - ( + CASE + + COUNT ( * ) WHEN - 94 + + ( CASE - ( 93 ) WHEN + 10 * 38 THEN - 91 WHEN - 18 THEN NULL END ) + + 54 * + 42 THEN COUNT ( * ) + 55 * + 43 - + 54 * - 76 ELSE + 20 + 51 END ) * - 61
----
-4255

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT DISTINCT MAX( ALL + 45 ) + 43 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT MAX ( ALL + 45 ) + 43 AS col0
----
88

query I rowsort
SELECT ALL 19 - + + 87 * - 44 + 44
----
3891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT ALL + 95 DIV 5 - - + NULLIF ( + 7, 3 + - 11 + + 1 + - + 94 ) + MIN( + + 67 ) DIV + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + 95 / 5 - - + NULLIF ( + 7, 3 + - 11 + + 1 + - + 94 ) + MIN ( + + 67 ) / + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT + ( - 41 ) * - - 60 AS col1
----
-2460

query I rowsort
SELECT - 72 + - + ( 61 ) * + 50 - - 66 AS col0
----
-3056

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT ALL + 18 DIV - - 85 - - + 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + 18 / - - 85 - - + 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT COUNT( * ) * + 21 + + 46 col1
----
67

skipif mysql # not compatible
query I rowsort label-366
SELECT COUNT ( * ) * + 21 + + 46 col1
----
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT COALESCE ( - + 88, ( + 23 ) * - 3 - + + 56 ) * + + 37 + COUNT( * ) DIV - - 44 col2
----
-3256

skipif mysql # not compatible
query I rowsort label-368
SELECT COALESCE ( - + 88, ( + 23 ) * - 3 - + + 56 ) * + + 37 + COUNT ( * ) / - - 44 col2
----
-3256

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

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

query II rowsort
SELECT ALL - 49 AS col1, 20 + - 68 * 14 AS col0
----
-49
-932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-371
SELECT ALL - + 85 / - 88 * + - CAST( NULL AS SIGNED ) - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - + 85 / - 88 * + - CAST ( NULL AS INTEGER ) - - 94 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ALL - - 60 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - - 60 / + - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT - + CASE - - 45 WHEN - + 21 + + COUNT( * ) THEN + CAST( NULL AS SIGNED ) + - 46 + - 36 * - 91 + 40 - COUNT( * ) * 67 * + 99 * - AVG ( - 73 ) * - 0 * 40 ELSE NULL END * + 43 + ( + + AVG ( - 9 ) ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT - + CASE - - 45 WHEN - + 21 + + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + - 46 + - 36 * - 91 + 40 - COUNT ( * ) * 67 * + 99 * - AVG ( - 73 ) * - 0 * 40 ELSE NULL END * + 43 + ( + + AVG ( - 9 ) ) * + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-374
SELECT ALL MAX( ALL - 45 ) + - - 18, + CAST( + - SUM( DISTINCT 61 ) AS SIGNED ) * - ( + - 88 ) + + 88 * NULLIF ( + MIN( - + 5 ), 11 ) AS col1
----
-27
-5808

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL MAX ( ALL - 45 ) + - - 18, + CAST ( + - SUM ( DISTINCT 61 ) AS INTEGER ) * - ( + - 88 ) + + 88 * NULLIF ( + MIN ( - + 5 ), 11 ) AS col1
----
-27
-5808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT ALL ( + 8 ) / - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL ( + 8 ) / - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 49 - + + 45 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT - COUNT( * ) * 67
----
-67

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT - COUNT ( * ) * 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT + 79 / CAST( NULL AS SIGNED ) + - + NULLIF ( - 78, - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + 79 / CAST ( NULL AS INTEGER ) + - + NULLIF ( - 78, - 70 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 90 + 81 AS col0
----
-9

query I rowsort
SELECT 18 - + - 48 AS col2
----
66

query I rowsort
SELECT ALL - 41 + - 96 + - 49
----
-186

query II rowsort
SELECT + 55 AS col2, - 88
----
55
-88

query I rowsort
SELECT ALL - - 76 + - 22 AS col0
----
54

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

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

query I rowsort
SELECT 81 * + + ( + + 98 ) AS col2
----
7938

query I rowsort
SELECT ALL + 44 + + + 0 + + 3 AS col0
----
47

query I rowsort
SELECT 61 + + - 46 + + - 23
----
-8

query II rowsort
SELECT - 51 AS col2, 45 * + 97 - + 58 + - + 61
----
-51
4246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT 71 + - - 6 - + 89 + + COUNT( * ) DIV 32
----
-12

skipif mysql # not compatible
query I rowsort label-389
SELECT 71 + - - 6 - + 89 + + COUNT ( * ) / 32
----
-12

query I rowsort
SELECT ALL 37 - + 2 AS col0
----
35

query I rowsort
SELECT ALL + 45 - + NULLIF ( 57, - - 82 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT 90 + - - 26 * + - 79 * 70 AS col0, COUNT( * )
----
-143690
1

skipif mysql # not compatible
query II rowsort label-392
SELECT 90 + - - 26 * + - 79 * 70 AS col0, COUNT ( * )
----
-143690
1

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT ALL - 17 DIV - + 7
----
2

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - 17 / - + 7
----
2

query I rowsort
SELECT 96 + 67 AS col2
----
163

query II rowsort
SELECT DISTINCT - 0 * - 15, 32 AS col2
----
0
32

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

query II rowsort
SELECT 15 + 75 AS col0, 58 + + + 28
----
90
86

query II rowsort
SELECT ALL 26 AS col1, - 2
----
26
-2

query I rowsort
SELECT 22 * - - 77 AS col2
----
1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT NULLIF ( - - 67, 22 + COUNT( * ) ) * + CASE + 18 WHEN + 60 THEN - 66 WHEN 98 * - 25 + + 27 / - CAST( - + ( - ( + 31 ) ) AS SIGNED ) THEN NULL ELSE NULL END + + 30 + + ( 1 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT NULLIF ( - - 67, 22 + COUNT ( * ) ) * + CASE + 18 WHEN + 60 THEN - 66 WHEN 98 * - 25 + + 27 / - CAST ( - + ( - ( + 31 ) ) AS INTEGER ) THEN NULL ELSE NULL END + + 30 + + ( 1 ) * COUNT ( * )
----
NULL

query II rowsort
SELECT 31 AS col2, + 25 * 88 col1
----
31
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT 12 DIV 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-402
SELECT 12 / 30 AS col0
----
0

query II rowsort
SELECT ALL - + 22 AS col0, - 3 AS col1
----
-22
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-404
SELECT CAST( NULL AS SIGNED ) AS col0, - ( - COUNT( * ) ) - - 81 AS col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-404
SELECT CAST ( NULL AS INTEGER ) AS col0, - ( - COUNT ( * ) ) - - 81 AS col1
----
NULL
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-405
SELECT - COUNT( * ) DIV + COUNT( * ) + - 46 * - 56
----
2575

skipif mysql # not compatible
query I rowsort label-405
SELECT - COUNT ( * ) / + COUNT ( * ) + - 46 * - 56
----
2575

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

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT COUNT( * ) * + 5 DIV 64 * - 34 * 65
----
0

skipif mysql # not compatible
query I rowsort label-407
SELECT COUNT ( * ) * + 5 / 64 * - 34 * 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT + - COUNT( * ) AS col0, NULLIF ( - + COUNT( * ), + - 41 * COUNT( * ) + + + 0 * - - 92 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-408
SELECT + - COUNT ( * ) AS col0, NULLIF ( - + COUNT ( * ), + - 41 * COUNT ( * ) + + + 0 * - - 92 )
----
-1
-1

query I rowsort
SELECT ALL + CASE - 12 WHEN - + 16 - + 9 * - 40 / + - ( 48 ) THEN NULL WHEN - 95 THEN - 68 ELSE NULL END + CASE NULLIF ( 20, - 35 ) WHEN - 69 / + 71 + - - 25 / 14 THEN + 19 ELSE NULL END + 19 + + 38 + - 54 / + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT - COUNT( * ) * + CAST( - 49 AS SIGNED ) + + 99 + + 11 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) * + CAST ( - 49 AS INTEGER ) + + 99 + + 11 AS col1
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT NULLIF ( + 81, + - 76 + 77 DIV - COUNT( * ) - - 84 ) - - 1 * - + 53 DIV + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-411
SELECT NULLIF ( + 81, + - 76 + 77 / - COUNT ( * ) - - 84 ) - - 1 * - + 53 / + COUNT ( * )
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT 64 + - SUM( - 92 ) col1
----
156

skipif mysql # not compatible
query I rowsort label-413
SELECT 64 + - SUM ( - 92 ) col1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT + COUNT( * ) AS col2, 38 * 71 AS col2
----
1
2698

skipif mysql # not compatible
query II rowsort label-414
SELECT + COUNT ( * ) AS col2, 38 * 71 AS col2
----
1
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT - - 99 * - - COUNT( * ) + + 53 + COUNT( * ) + + - 16 * + 47 * + 93
----
-69783

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT - - 99 * - - COUNT ( * ) + + 53 + COUNT ( * ) + + - 16 * + 47 * + 93
----
-69783

query II rowsort
SELECT + + 56 AS col2, 84
----
56
84

query II rowsort
SELECT ALL - 99, 14 AS col1
----
-99
14

query I rowsort
SELECT DISTINCT + 92 + + - 99 AS col2
----
-7

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

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

query I rowsort
SELECT + 45 * 82 + - 13 * ( 26 ) AS col1
----
3352

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT - + 35, COUNT( * ) * + 26 AS col0
----
-35
26

skipif mysql # not compatible
query II rowsort label-421
SELECT - + 35, COUNT ( * ) * + 26 AS col0
----
-35
26

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + CASE COUNT( * ) WHEN + - 4 THEN 67 + 94 END * - ( + - 60 ) + - 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT + CASE COUNT ( * ) WHEN + - 4 THEN 67 + 94 END * - ( + - 60 ) + - 96 col0
----
NULL

query I rowsort
SELECT ( - 97 ) * 11
----
-1067

query I rowsort
SELECT 0 * + 65 * 14 AS col1
----
0

query I rowsort
SELECT ALL 26 * + - 95
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT DISTINCT MAX( - 27 ) * CASE + COALESCE ( 55, + 46 ) WHEN 14 THEN + 49 END * 88 - + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT MAX ( - 27 ) * CASE + COALESCE ( 55, + 46 ) WHEN 14 THEN + 49 END * 88 - + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL 43 * - CASE MAX( ALL - - 93 ) WHEN - AVG ( ALL 59 ) THEN - 28 * MIN( ALL + + 3 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL 43 * - CASE MAX ( ALL - - 93 ) WHEN - AVG ( ALL 59 ) THEN - 28 * MIN ( ALL + + 3 ) END col1
----
NULL

query I rowsort
SELECT DISTINCT 55 * 57
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL - 13 - - + MIN( 75 )
----
62

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - 13 - - + MIN ( 75 )
----
62

query II rowsort
SELECT 87 * 99 AS col1, 70
----
8613
70

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

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

query I rowsort
SELECT DISTINCT 49 * 25
----
1225

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT DISTINCT SUM( - 86 ) AS col0, 45 AS col2
----
-86
45

skipif mysql # not compatible
query II rowsort label-433
SELECT DISTINCT SUM ( - 86 ) AS col0, 45 AS col2
----
-86
45

query I rowsort
SELECT ALL 84 - + 41 - + 74
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-435
SELECT - COUNT( 52 ) col2, + 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-435
SELECT - COUNT ( 52 ) col2, + 53
----
-1
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-437
SELECT 25 * - 73 AS col0, - 79 * + CAST( + 95 AS SIGNED ) AS col0
----
-1825
-7505

skipif mysql # not compatible
query II rowsort label-437
SELECT 25 * - 73 AS col0, - 79 * + CAST ( + 95 AS INTEGER ) AS col0
----
-1825
-7505

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL SUM( 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL SUM ( 94 ) col1
----
94

query I rowsort
SELECT DISTINCT - 42 + 27 + - 54 col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-441
SELECT DISTINCT - - 52 * CAST( - + 69 AS SIGNED ) + 92 AS col1
----
-3496

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - - 52 * CAST ( - + 69 AS INTEGER ) + 92 AS col1
----
-3496

query II rowsort
SELECT + 89 + + 23 AS col0, 35 * - + ( - 24 ) - - 7 AS col1
----
112
847

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT 12 DIV - 38 - - 26 col2
----
26

skipif mysql # not compatible
query I rowsort label-443
SELECT 12 / - 38 - - 26 col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT ALL - 6 * 93 * + - 2 col0, + 18 * - + MIN( 2 )
----
1116
-36

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL - 6 * 93 * + - 2 col0, + 18 * - + MIN ( 2 )
----
1116
-36

query I rowsort
SELECT DISTINCT + - NULLIF ( 86, - 70 + + 48 - - - 45 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT ALL + - 81 * - + 47 * + 29 * - + 4 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + - 81 * - + 47 * + 29 * - + 4 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-447
SELECT ALL - + 14 * - 54 + 36 DIV - 52 + - 30 AS col2, + 56 AS col2
----
726
56

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL - + 14 * - 54 + 36 / - 52 + - 30 AS col2, + 56 AS col2
----
726
56

query I rowsort
SELECT - - 76 + 26 AS col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-449
SELECT ALL ( + + NULLIF ( 72, - COALESCE ( - COUNT( * ), - MAX( ALL COALESCE ( + - ( - - 72 ), 36 + 75 * 78 + - - 24, + + 81 + + - 10 ) ) + + 35 * 41 + NULLIF ( - 82, - 24 ) ) * + + 40 + + 3 * 73 - - 39 ) ) DIV MAX( - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL ( + + NULLIF ( 72, - COALESCE ( - COUNT ( * ), - MAX ( ALL COALESCE ( + - ( - - 72 ), 36 + 75 * 78 + - - 24, + + 81 + + - 10 ) ) + + 35 * 41 + NULLIF ( - 82, - 24 ) ) * + + 40 + + 3 * 73 - - 39 ) ) / MAX ( - 72 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL 1 * + 71 + - COUNT( * ) + ( + 0 )
----
70

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 1 * + 71 + - COUNT ( * ) + ( + 0 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT - NULLIF ( + ( + 60 ), + COUNT( * ) * - 10 * + 87 + + 89 - - 5 * + CAST( NULL AS SIGNED ) ) * - ( - 24 ) - - 75 + - - CAST( + 88 AS SIGNED ) + + - MAX( - 82 ) DIV + - COUNT( * ) AS col1
----
-1359

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - NULLIF ( + ( + 60 ), + COUNT ( * ) * - 10 * + 87 + + 89 - - 5 * + CAST ( NULL AS INTEGER ) ) * - ( - 24 ) - - 75 + - - CAST ( + 88 AS INTEGER ) + + - MAX ( - 82 ) / + - COUNT ( * ) AS col1
----
-1359

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT + COUNT( * ) * 48 * + COUNT( DISTINCT 99 ) * + ( 25 ) + - 55 + - 0 * - 35 + - 22 + - MIN( DISTINCT + 36 ), 15 col2
----
1087
15

skipif mysql # not compatible
query II rowsort label-453
SELECT + COUNT ( * ) * 48 * + COUNT ( DISTINCT 99 ) * + ( 25 ) + - 55 + - 0 * - 35 + - 22 + - MIN ( DISTINCT + 36 ), 15 col2
----
1087
15

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

query I rowsort
SELECT - + 50 * + 5 AS col2
----
-250

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

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

query I rowsort
SELECT + 20 * + 97
----
1940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL 40 * - COUNT( * ) - + + COUNT( * ) * - - 27
----
-67

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL 40 * - COUNT ( * ) - + + COUNT ( * ) * - - 27
----
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-461
SELECT DISTINCT 51 AS col2, 98 * + COUNT( * ) AS col0
----
51
98

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT 51 AS col2, 98 * + COUNT ( * ) AS col0
----
51
98

query I rowsort
SELECT + 78 - 61 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-463
SELECT 51, 10 * + COUNT( DISTINCT + ( 75 ) ) + COUNT( * ) + + COALESCE ( + + 8, - 95 * + 5 + + - NULLIF ( + + COUNT( * ), + 87 * - COUNT( * ) ) + + 50 * - 10 + + 69 * + ( 9 ), + 59 + + 98 * 3 * - - 77 ) + + 82 AS col2
----
51
101

skipif mysql # not compatible
query II rowsort label-463
SELECT 51, 10 * + COUNT ( DISTINCT + ( 75 ) ) + COUNT ( * ) + + COALESCE ( + + 8, - 95 * + 5 + + - NULLIF ( + + COUNT ( * ), + 87 * - COUNT ( * ) ) + + 50 * - 10 + + 69 * + ( 9 ), + 59 + + 98 * 3 * - - 77 ) + + 82 AS col2
----
51
101

query I rowsort
SELECT - ( - - 16 )
----
-16

query I rowsort
SELECT + 66 + - + 38 AS col2
----
28

query I rowsort
SELECT + 72 * 62
----
4464

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

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

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

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL COUNT ( * ) * + + 62 AS col1
----
62

query I rowsort
SELECT + 48 - - - 73 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT + 18 + - - 47 - - 90 AS col1, - COUNT( * ) + + 80
----
155
79

skipif mysql # not compatible
query II rowsort label-470
SELECT + 18 + - - 47 - - 90 AS col1, - COUNT ( * ) + + 80
----
155
79

query I rowsort
SELECT + 36 * - 77 AS col2
----
-2772

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT - ( + CASE - 18 WHEN - - 75 THEN + - CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT - ( + CASE - 18 WHEN - - 75 THEN + - CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

query II rowsort
SELECT + 71 * ( - 47 ), + 67 + 18 col2
----
-3337
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL - CAST( + + 76 AS SIGNED ) + + 0 + SUM( DISTINCT + ( - 9 ) ) * - - SUM( ALL 15 ) AS col1
----
-211

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - CAST ( + + 76 AS INTEGER ) + + 0 + SUM ( DISTINCT + ( - 9 ) ) * - - SUM ( ALL 15 ) AS col1
----
-211

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

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

query I rowsort
SELECT ALL 94 * + + 68
----
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - + COUNT( * ) + - 76 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-478
SELECT - + COUNT ( * ) + - 76 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT + - CAST( 14 AS SIGNED ) * - 58 * + + 51 AS col2
----
41412

skipif mysql # not compatible
query I rowsort label-479
SELECT + - CAST ( 14 AS INTEGER ) * - 58 * + + 51 AS col2
----
41412

query I rowsort
SELECT - + ( + ( + 16 ) ) + + 2 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT ALL - - MAX( - 87 ) + + 66 DIV + 55
----
-86

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - - MAX ( - 87 ) + + 66 / + 55
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL + - ( 1 ) * 65 + - 8 + - 8 * + 47 + 63 * + + MIN( + - 68 )
----
-4733

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + - ( 1 ) * 65 + - 8 + - 8 * + 47 + 63 * + + MIN ( + - 68 )
----
-4733

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL + 99 DIV 65 DIV + 69 + - 6 - - 8 col0
----
2

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + 99 / 65 / + 69 + - 6 - - 8 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT DISTINCT + CASE + - 30 WHEN COUNT( * ) + COUNT( * ) * CASE CAST( NULL AS SIGNED ) WHEN + 12 THEN ( - - 84 ) WHEN + 65 + COUNT( * ) THEN NULL ELSE - 4 * 10 END * - - 45 * - 74 * 59 THEN NULL WHEN - MAX( - - 34 ) THEN NULL ELSE - ( - COALESCE ( + SUM( + - 51 ), - - COUNT( - 78 ) + - 69 ) ) * 56 + 53 END * ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT + CASE + - 30 WHEN COUNT ( * ) + COUNT ( * ) * CASE CAST ( NULL AS INTEGER ) WHEN + 12 THEN ( - - 84 ) WHEN + 65 + COUNT ( * ) THEN NULL ELSE - 4 * 10 END * - - 45 * - 74 * 59 THEN NULL WHEN - MAX ( - - 34 ) THEN NULL ELSE - ( - COALESCE ( + SUM ( + - 51 ), - - COUNT ( - 78 ) + - 69 ) ) * 56 + 53 END * ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - + 39 * + + 60 * 40 + SUM( + 2 ) AS col0
----
-93598

skipif mysql # not compatible
query I rowsort label-487
SELECT - + 39 * + + 60 * 40 + SUM ( + 2 ) AS col0
----
-93598

query I rowsort
SELECT ALL + 34 * - 6 AS col0
----
-204

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

query I rowsort
SELECT - - 79 * - + 59 - 71
----
-4732

query I rowsort
SELECT - 95 * + + 77 + 96 AS col1
----
-7219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT + 74 * - 72 + - - CAST( NULL AS SIGNED ) / 14 * - ( - 9 ) + + + 41 + - + NULLIF ( 48, - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT + 74 * - 72 + - - CAST ( NULL AS INTEGER ) / 14 * - ( - 9 ) + + + 41 + - + NULLIF ( 48, - 42 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL 9 * - 84 + 88 + 29 + - COUNT( + 7 ) * 28 AS col0
----
-667

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL 9 * - 84 + 88 + 29 + - COUNT ( + 7 ) * 28 AS col0
----
-667

query I rowsort
SELECT DISTINCT + - 40 * - 12
----
480

query I rowsort
SELECT ALL + NULLIF ( 63, - 73 * 39 + - + 93 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - MIN( DISTINCT + 10 ) * + 84 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-497
SELECT - MIN ( DISTINCT + 10 ) * + 84 AS col0
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT 49 * - - 17 + - NULLIF ( + 16, + 23 + ( - 80 ) * - 75 + - + CAST( NULL AS SIGNED ) ) AS col0
----
817

skipif mysql # not compatible
query I rowsort label-498
SELECT 49 * - - 17 + - NULLIF ( + 16, + 23 + ( - 80 ) * - 75 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
817

query I rowsort
SELECT COALESCE ( 68, + - 30 ) AS col2
----
68

query I rowsort
SELECT NULLIF ( 69, 78 * 67 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT NULLIF ( CASE + 62 WHEN 56 * + CAST( NULL AS SIGNED ) * - ( - - 35 ) - 20 + + CAST( NULL AS SIGNED ) THEN + COUNT( * ) END, + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT NULLIF ( CASE + 62 WHEN 56 * + CAST ( NULL AS INTEGER ) * - ( - - 35 ) - 20 + + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END, + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT DISTINCT SUM( ALL - 93 ) * ( 34 ), + 77 - + - 2 AS col0
----
-3162
79

skipif mysql # not compatible
query II rowsort label-502
SELECT DISTINCT SUM ( ALL - 93 ) * ( 34 ), + 77 - + - 2 AS col0
----
-3162
79

query I rowsort
SELECT ALL + 96 * 18
----
1728

query I rowsort
SELECT DISTINCT ( - 83 ) + + 22 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT + MAX( 71 ) + + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + MAX ( 71 ) + + 30 AS col0
----
101

query I rowsort
SELECT DISTINCT 24 + + 83
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL CAST( - 79 AS SIGNED ) + - ( 26 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL CAST ( - 79 AS INTEGER ) + - ( 26 ) AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT COALESCE ( COUNT( 67 ), 33 * - NULLIF ( + 22, + 4 * + CASE COUNT( * ) WHEN - 23 THEN + 42 END * MAX( - CAST( NULL AS SIGNED ) ) ) + - 14 * + 89, + 25 * + 83 + + - 73 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT COALESCE ( COUNT ( 67 ), 33 * - NULLIF ( + 22, + 4 * + CASE COUNT ( * ) WHEN - 23 THEN + 42 END * MAX ( - CAST ( NULL AS INTEGER ) ) ) + - 14 * + 89, + 25 * + 83 + + - 73 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT SUM( 37 ) + - 89 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT SUM ( 37 ) + - 89 AS col0
----
-52

query I rowsort
SELECT ALL 10 + + + 74
----
84

query I rowsort
SELECT - 80 - - ( + + ( + 69 ) ) col2
----
-11

query I rowsort
SELECT 39 - - ( 88 ) AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-513
SELECT ALL MAX( + 73 ) AS col1, CASE - - 82 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN 46 THEN + 19 + COALESCE ( - - 71, 90 ) ELSE NULL END AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL MAX ( + 73 ) AS col1, CASE - - 82 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN 46 THEN + 19 + COALESCE ( - - 71, 90 ) ELSE NULL END AS col2
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT - 87 + + 57 + + SUM( 16 ) * - 66 AS col2
----
-1086

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - 87 + + 57 + + SUM ( 16 ) * - 66 AS col2
----
-1086

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - COUNT( * ) * - CASE + 50 WHEN - COUNT( * ) / AVG ( DISTINCT + 2 ) * + 28 * + + 80 THEN - - 23 * - 16 * + 30 - - MIN( ALL + 24 ) + 73 + + 27 * + - 19 * CASE - COUNT( * ) WHEN + 41 - - ( - - 8 ) THEN - 23 END ELSE - + 72 * 40 * 21 + - COUNT( + 35 ) END * 30
----
-1814430

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - COUNT ( * ) * - CASE + 50 WHEN - COUNT ( * ) / AVG ( DISTINCT + 2 ) * + 28 * + + 80 THEN - - 23 * - 16 * + 30 - - MIN ( ALL + 24 ) + 73 + + 27 * + - 19 * CASE - COUNT ( * ) WHEN + 41 - - ( - - 8 ) THEN - 23 END ELSE - + 72 * 40 * 21 + - COUNT ( + 35 ) END * 30
----
-1814430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-516
SELECT DISTINCT 56 + + 37 + - 86 + - 83, COUNT( * ) DIV + 91 AS col0
----
-76
0

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT 56 + + 37 + - 86 + - 83, COUNT ( * ) / + 91 AS col0
----
-76
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT DISTINCT CAST( COUNT( DISTINCT - + COALESCE ( + 59, - + 18 ) ) AS SIGNED ) * - - 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT CAST ( COUNT ( DISTINCT - + COALESCE ( + 59, - + 18 ) ) AS INTEGER ) * - - 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL - CASE + 38 WHEN NULLIF ( + 32, - MAX( - 30 ) ) - - + COUNT( * ) - + COUNT( * ) * - 20 + + COALESCE ( + COUNT( * ), 26 ) * 75 - + 80 THEN - 63 + - + 23 + 39 WHEN + 10 + + + COUNT( * ) + - 21 THEN - + ( + - 1 ) - - 46 / + - 37 + + NULLIF ( + 99 + + 86 * + 86, + 40 ) * 39 WHEN + 6 THEN + COUNT( * ) END - - SUM( DISTINCT + 4 ) * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - CASE + 38 WHEN NULLIF ( + 32, - MAX ( - 30 ) ) - - + COUNT ( * ) - + COUNT ( * ) * - 20 + + COALESCE ( + COUNT ( * ), 26 ) * 75 - + 80 THEN - 63 + - + 23 + 39 WHEN + 10 + + + COUNT ( * ) + - 21 THEN - + ( + - 1 ) - - 46 / + - 37 + + NULLIF ( + 99 + + 86 * + 86, + 40 ) * 39 WHEN + 6 THEN + COUNT ( * ) END - - SUM ( DISTINCT + 4 ) * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-519
SELECT 68 DIV - + 95 * - - ( + 53 ) - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-519
SELECT 68 / - + 95 * - - ( + 53 ) - + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT DISTINCT + 5 * - 36 * - + 78 + - - 76 DIV + 41 col0
----
14041

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT + 5 * - 36 * - + 78 + - - 76 / + 41 col0
----
14041

query I rowsort
SELECT NULLIF ( + 48, 19 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT ALL 40 - - + CAST( + 38 AS SIGNED ) - + COUNT( * ) - + + MIN( DISTINCT + + 35 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL 40 - - + CAST ( + 38 AS INTEGER ) - + COUNT ( * ) - + + MIN ( DISTINCT + + 35 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT DISTINCT - - CASE - 19 WHEN 42 THEN - + NULLIF ( - + 91, - - NULLIF ( - + 51, + CAST( NULL AS SIGNED ) * + COUNT( * ) + 96 ) / 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - - CASE - 19 WHEN 42 THEN - + NULLIF ( - + 91, - - NULLIF ( - + 51, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 96 ) / 68 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL - ( - - CAST( 46 AS SIGNED ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - ( - - CAST ( 46 AS INTEGER ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + ( 38 ) * - + CASE - COUNT( * ) WHEN + - ( + NULLIF ( + 62, + + AVG ( ALL + 63 ) ) ) THEN NULL WHEN + 84 THEN - 96 ELSE 72 END
----
-2736

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + ( 38 ) * - + CASE - COUNT ( * ) WHEN + - ( + NULLIF ( + 62, + + AVG ( ALL + 63 ) ) ) THEN NULL WHEN + 84 THEN - 96 ELSE 72 END
----
-2736

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT 9 + + 61 * + - CASE 58 WHEN 39 THEN COUNT( * ) + - NULLIF ( 87, - 94 + - - 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT 9 + + 61 * + - CASE 58 WHEN 39 THEN COUNT ( * ) + - NULLIF ( 87, - 94 + - - 94 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-528
SELECT 15 * + COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-528
SELECT 15 * + COUNT ( * ) / - 41
----
0

query I rowsort
SELECT 86 - - 87
----
173

query II rowsort
SELECT 38 AS col0, - 83
----
38
-83

query I rowsort
SELECT ALL 25 + + 43 * 6 AS col2
----
283

query I rowsort
SELECT 15 * - + 35
----
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL + 55 + + - 22 DIV + - 53 * 35 DIV 46 + + ( + 22 )
----
77

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + 55 + + - 22 / + - 53 * 35 / 46 + + ( + 22 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL - CAST( + + 46 AS SIGNED ) + + COALESCE ( + ( 99 ), - 58 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - CAST ( + + 46 AS INTEGER ) + + COALESCE ( + ( 99 ), - 58 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT ALL - MIN( ALL 8 ) + + 93 + - + ( + + 59 ) AS col2, 67
----
26
67

skipif mysql # not compatible
query II rowsort label-535
SELECT ALL - MIN ( ALL 8 ) + + 93 + - + ( + + 59 ) AS col2, 67
----
26
67

query I rowsort
SELECT 21 + + - 80 + + 49
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT 30 + - + COUNT( 0 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-537
SELECT 30 + - + COUNT ( 0 ) AS col0
----
29

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

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - + COUNT ( * ) - 81 * + - COUNT ( * )
----
80

query I rowsort
SELECT + 5 + + 9 - + 48 + 51 * + 52 - 59 AS col2
----
2559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT - 14 * + 69 DIV - COUNT( * )
----
966

skipif mysql # not compatible
query I rowsort label-540
SELECT - 14 * + 69 / - COUNT ( * )
----
966

query I rowsort
SELECT - 55 + - 17 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT - COALESCE ( ( - 80 ), + - COUNT( * ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-542
SELECT - COALESCE ( ( - 80 ), + - COUNT ( * ) ) AS col0
----
80

query II rowsort
SELECT + 58 AS col0, 10
----
58
10

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT - 44 DIV - 90 + 23 + + + 33 - - 56 * 17 DIV - 79
----
44

skipif mysql # not compatible
query I rowsort label-544
SELECT - 44 / - 90 + 23 + + + 33 - - 56 * 17 / - 79
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-545
SELECT ALL 13 * - 75 - + - 6, - 16 DIV + 61 - - ( - 90 ) * + + 61 col2
----
-969
-5490

skipif mysql # not compatible
query II rowsort label-545
SELECT ALL 13 * - 75 - + - 6, - 16 / + 61 - - ( - 90 ) * + + 61 col2
----
-969
-5490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT COUNT( ALL - - 17 ) * - ( - - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( ALL - - 17 ) * - ( - - 28 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT ALL - MAX( ALL + ( - CAST( + 97 AS SIGNED ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - MAX ( ALL + ( - CAST ( + 97 AS INTEGER ) ) )
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT COUNT( * ) / - 63 + CASE + 87 WHEN + 95 THEN + 52 * - 6 END + - SUM( ALL - - 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT COUNT ( * ) / - 63 + CASE + 87 WHEN + 95 THEN + 52 * - 6 END + - SUM ( ALL - - 13 ) AS col2
----
NULL

query II rowsort
SELECT ALL + 70, 52 + - - 48 - - 10 AS col1
----
70
110

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT MIN( 78 ) AS col1, + 38 * + + 39 AS col2
----
78
1482

skipif mysql # not compatible
query II rowsort label-552
SELECT MIN ( 78 ) AS col1, + 38 * + + 39 AS col2
----
78
1482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-553
SELECT ALL 8 * + ( 84 ) + + - 82 AS col0, NULLIF ( + 39, CAST( NULL AS SIGNED ) )
----
590
39

skipif mysql # not compatible
query II rowsort label-553
SELECT ALL 8 * + ( 84 ) + + - 82 AS col0, NULLIF ( + 39, CAST ( NULL AS INTEGER ) )
----
590
39

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + NULLIF ( + NULLIF ( 80, + + 23 ), COUNT( * ) * - COUNT( 37 ) + ( COALESCE ( 83, 68 ) ) ) col2
----
80

skipif mysql # not compatible
query I rowsort label-554
SELECT + NULLIF ( + NULLIF ( 80, + + 23 ), COUNT ( * ) * - COUNT ( 37 ) + ( COALESCE ( 83, 68 ) ) ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT ALL - 38 * + CAST( - - ( - 39 ) AS SIGNED ) + + 62 + + + 81 * + MIN( 2 ) - + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) / + + 11 * + 37 + 87 THEN NULL WHEN - + 63 THEN + - COUNT( * ) / - 81 * + ( - + 19 ) / 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - 38 * + CAST ( - - ( - 39 ) AS INTEGER ) + + 62 + + + 81 * + MIN ( 2 ) - + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) / + + 11 * + 37 + 87 THEN NULL WHEN - + 63 THEN + - COUNT ( * ) / - 81 * + ( - + 19 ) / 61 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 57, CASE 35 WHEN + 83 THEN NULL WHEN + 17 THEN NULL ELSE + 21 * - 21 + + ( 27 ) + 70 + - - 18 - + 78 END col1
----
57
-404

query II rowsort
SELECT ALL + 60 AS col2, 96 * + - 96 * 68 * + - 52
----
60
32587776

query I rowsort
SELECT - 45 * 9 + + - 8
----
-413

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

skipif mysql # not compatible
query I rowsort label-559
SELECT MAX ( + 5 )
----
5

query I rowsort
SELECT - 65 + + 93 AS col0
----
28

query I rowsort
SELECT ALL 71 + - 94
----
-23

query I rowsort
SELECT + 77 * + 58 AS col2
----
4466

query I rowsort
SELECT + CASE + ( - 63 ) WHEN 96 THEN - 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT - CASE COUNT( * ) WHEN 54 * - + CAST( NULL AS SIGNED ) * COUNT( * ) * - - COUNT( * ) THEN + 66 + + + 18 WHEN + 70 THEN + 56 ELSE 75 * + - 78 END
----
5850

skipif mysql # not compatible
query I rowsort label-564
SELECT - CASE COUNT ( * ) WHEN 54 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - COUNT ( * ) THEN + 66 + + + 18 WHEN + 70 THEN + 56 ELSE 75 * + - 78 END
----
5850

query II rowsort
SELECT 23 AS col2, 79 * + + 13 * - 84
----
23
-86268

query III rowsort
SELECT - 30 AS col1, + 7 AS col1, + ( - 50 ) col0
----
-30
7
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT + 30 DIV + + 55 * - - 62
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT + 30 / + + 55 * - - 62
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 60, 69 ) AS col0
----
60

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

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - MIN ( - 98 )
----
98

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

query I rowsort
SELECT ALL - + 67 - 73 * 14 + - 61
----
-1150

query II rowsort
SELECT ALL - 58 AS col0, 45 AS col1
----
-58
45

query I rowsort
SELECT - 12 * + 87 * - + 92 * - 84
----
-8068032

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT 37 AS col1, - 61 * - - SUM( - 40 ) AS col0
----
37
2440

skipif mysql # not compatible
query II rowsort label-574
SELECT 37 AS col1, - 61 * - - SUM ( - 40 ) AS col0
----
37
2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT ALL + COUNT( * ) - - CAST( + - 81 AS SIGNED ) + + ( + + 38 ) + - 79 * + 60 * - 78 + 92 * + 87 + - 98 - 7 * CAST( NULL AS SIGNED ) / + - 49 * 12 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + COUNT ( * ) - - CAST ( + - 81 AS INTEGER ) + + ( + + 38 ) + - 79 * + 60 * - 78 + 92 * + 87 + - 98 - 7 * CAST ( NULL AS INTEGER ) / + - 49 * 12 * + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-576
SELECT 75, + COUNT( * ) + NULLIF ( - + COUNT( * ), - 90 * - 28 ) * + + NULLIF ( + 86, 45 + + + 27 + + + 49 ) DIV + 8 AS col0
----
75
-9

skipif mysql # not compatible
query II rowsort label-576
SELECT 75, + COUNT ( * ) + NULLIF ( - + COUNT ( * ), - 90 * - 28 ) * + + NULLIF ( + 86, 45 + + + 27 + + + 49 ) / + 8 AS col0
----
75
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT - COUNT( * ) col0, - 66 * - 12
----
-1
792

skipif mysql # not compatible
query II rowsort label-577
SELECT - COUNT ( * ) col0, - 66 * - 12
----
-1
792

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - + SUM( 0 ) * - 40
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT - + SUM ( 0 ) * - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL - 55 * + - MAX( DISTINCT - 25 ) * + + 72
----
-99000

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - 55 * + - MAX ( DISTINCT - 25 ) * + + 72
----
-99000

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

query I rowsort
SELECT ALL - + 96 * CASE + + 49 WHEN - + 72 THEN NULL WHEN - - 85 THEN - 53 ELSE NULL END + + + 21 AS col1
----
NULL

query I rowsort
SELECT - 14 * + 67
----
-938

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

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

query I rowsort
SELECT ALL - + 21 + + + 24 - - + 12 + - ( 41 ) * 84 AS col0
----
-3429

query I rowsort
SELECT - 72 + - 23 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT 50 DIV - 80 - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-586
SELECT 50 / - 80 - 92 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-587
SELECT - - 39 DIV + - 27 - 98 + 35 AS col1, + 15
----
-64
15

skipif mysql # not compatible
query II rowsort label-587
SELECT - - 39 / + - 27 - 98 + 35 AS col1, + 15
----
-64
15

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ( - + CASE + 84 WHEN - COUNT( * ) + 94 THEN - - 88 WHEN 98 THEN + 24 * + ( - NULLIF ( - - 50, 52 * - 18 ) ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ( - + CASE + 84 WHEN - COUNT ( * ) + 94 THEN - - 88 WHEN 98 THEN + 24 * + ( - NULLIF ( - - 50, 52 * - 18 ) ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT ALL - 60 DIV 50 * + + 38 + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - 60 / 50 * + + 38 + + COUNT ( * )
----
-37

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

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

query I rowsort
SELECT ( CASE - ( + - 64 ) WHEN + + 39 THEN + 39 * - 5 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT - 50 * COUNT( DISTINCT + + 42 ) * + COUNT( * ) + 40 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - 50 * COUNT ( DISTINCT + + 42 ) * + COUNT ( * ) + 40 AS col2
----
-10

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

skipif mysql # not compatible
query I rowsort label-593
SELECT + 48 * - COUNT ( DISTINCT - 94 ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL + CAST( NULL AS SIGNED ) * - - 24 + + + COUNT( * ) * 67 - - CASE - 14 WHEN 86 THEN - CASE WHEN NOT ( NULL ) IS NULL THEN - 39 ELSE - 14 END * - 74 * 52 / - 72 + + COUNT( * ) ELSE - 80 + 18 END * - - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 24 + + + COUNT ( * ) * 67 - - CASE - 14 WHEN 86 THEN - CASE WHEN NOT ( NULL ) IS NULL THEN - 39 ELSE - 14 END * - 74 * 52 / - 72 + + COUNT ( * ) ELSE - 80 + 18 END * - - ( + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT CASE 62 WHEN - AVG ( NULLIF ( + 68, COALESCE ( + 69, + 35 ) ) ) + 85 + + 14 * - + 87 THEN - + ( + + COUNT( * ) ) / - 75 / - COUNT( - COALESCE ( 20, - 96, + 52 ) ) - - 13 WHEN - ( - + 16 ) THEN AVG ( 41 ) * + - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT CASE 62 WHEN - AVG ( NULLIF ( + 68, COALESCE ( + 69, + 35 ) ) ) + 85 + + 14 * - + 87 THEN - + ( + + COUNT ( * ) ) / - 75 / - COUNT ( - COALESCE ( 20, - 96, + 52 ) ) - - 13 WHEN - ( - + 16 ) THEN AVG ( 41 ) * + - 44 END
----
NULL

query II rowsort
SELECT + 54 + + 50, 94 AS col2
----
104
94

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT 65 * 48 + - + 48 + SUM( 3 ), 61 AS col0
----
3075
61

skipif mysql # not compatible
query II rowsort label-597
SELECT 65 * 48 + - + 48 + SUM ( 3 ), 61 AS col0
----
3075
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-598
SELECT ALL 47 * CAST( + 19 AS SIGNED ) - + - 6 + + - COALESCE ( + 18, 36 + - 86, + 48 * - + ( + + 64 ) + + COUNT( * ) + + + 68 * - - 73 ) + + 49 * - MIN( 66 ) * - 76 AS col2, 25 AS col0
----
246665
25

skipif mysql # not compatible
query II rowsort label-598
SELECT ALL 47 * CAST ( + 19 AS INTEGER ) - + - 6 + + - COALESCE ( + 18, 36 + - 86, + 48 * - + ( + + 64 ) + + COUNT ( * ) + + + 68 * - - 73 ) + + 49 * - MIN ( 66 ) * - 76 AS col2, 25 AS col0
----
246665
25

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT CASE - - COALESCE ( + 68, - - 52 ) WHEN - + 14 * - 1 * + - 30 THEN NULL WHEN + 91 THEN - - ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT CASE - - COALESCE ( + 68, - - 52 ) WHEN - + 14 * - 1 * + - 30 THEN NULL WHEN + 91 THEN - - ( COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT + + NULLIF ( - - 64, 19 * 28 * + 14 * - + 78 ) - + 7 AS col1, - ( - 97 ) AS col0
----
57
97

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + ( + + SUM( - 91 ) ) * + MAX( ALL 15 )
----
-1365

skipif mysql # not compatible
query I rowsort label-601
SELECT + ( + + SUM ( - 91 ) ) * + MAX ( ALL 15 )
----
-1365

query I rowsort
SELECT + - 61 + + - 66 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + - 56 - + 64 + + 36 + - COUNT( * ) - - + 40
----
-45

skipif mysql # not compatible
query I rowsort label-603
SELECT + - 56 - + 64 + + 36 + - COUNT ( * ) - - + 40
----
-45

query II rowsort
SELECT - + 81 + + - 61, ( - 32 ) col0
----
-142
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL - ( - + CAST( - 94 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - ( - + CAST ( - 94 AS INTEGER ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT + 17 * + 29 * - COUNT( * ) * - 34 AS col2
----
16762

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 17 * + 29 * - COUNT ( * ) * - 34 AS col2
----
16762

query I rowsort
SELECT - - 6 + + 43
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + COUNT( + + 97 ) + + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-608
SELECT + COUNT ( + + 97 ) + + - 42
----
-41

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

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + 73 * - COUNT ( DISTINCT + 3 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL SUM( ALL + + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL SUM ( ALL + + 93 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT + 1 DIV + + 4 + 89
----
89

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT + 1 / + + 4 + 89
----
89

query I rowsort
SELECT ALL - 43 + 66 + - + 44 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT + + SUM( DISTINCT CAST( + 81 AS SIGNED ) ) * + + 5
----
405

skipif mysql # not compatible
query I rowsort label-613
SELECT + + SUM ( DISTINCT CAST ( + 81 AS INTEGER ) ) * + + 5
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - + 79 + + MAX( + + 16 )
----
-63

skipif mysql # not compatible
query I rowsort label-614
SELECT - + 79 + + MAX ( + + 16 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT - 35 DIV - + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-615
SELECT - 35 / - + 58 AS col2
----
0

query I rowsort
SELECT ALL - 99 + - 61 * - + 73
----
4354

query I rowsort
SELECT ( 8 ) + + 8
----
16

query I rowsort
SELECT 96 + 63
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT 50 + ( COUNT( * ) ) + + 18 + - 45 * + 97 * - 61 AS col0
----
266334

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT 50 + ( COUNT ( * ) ) + + 18 + - 45 * + 97 * - 61 AS col0
----
266334

query I rowsort
SELECT 95 * + ( - 32 ) + ( 89 )
----
-2951

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT COALESCE ( - 79, COUNT( * ) * COALESCE ( + - COUNT( * ), + + ( + - 41 ), COALESCE ( - - 56, - 38, - 21 ), 44 ) * - 4 + - 81 ) * 14 - 38 * + 37 * 1, - 31 AS col0
----
-2512
-31

skipif mysql # not compatible
query II rowsort label-621
SELECT COALESCE ( - 79, COUNT ( * ) * COALESCE ( + - COUNT ( * ), + + ( + - 41 ), COALESCE ( - - 56, - 38, - 21 ), 44 ) * - 4 + - 81 ) * 14 - 38 * + 37 * 1, - 31 AS col0
----
-2512
-31

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

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

query I rowsort
SELECT 14 * 79 AS col1
----
1106

query I rowsort
SELECT 30 + - 6
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - 60 - 38 * CAST( - - 1 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - 60 - 38 * CAST ( - - 1 AS INTEGER )
----
-98

query II rowsort
SELECT ALL - 14 AS col2, 52
----
-14
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-627
SELECT 61 * - 15 * 36 * - 34 + 85 DIV COUNT( * )
----
1120045

skipif mysql # not compatible
query I rowsort label-627
SELECT 61 * - 15 * 36 * - 34 + 85 / COUNT ( * )
----
1120045

query I rowsort
SELECT 30 * - - 69
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + CAST( + 57 AS SIGNED ) * + 92 - + 57 * COUNT( * ) + + - 46 + - 25 + + 50 * - - 37 * + - 68 + + - 18 col2
----
-120702

skipif mysql # not compatible
query I rowsort label-629
SELECT + CAST ( + 57 AS INTEGER ) * + 92 - + 57 * COUNT ( * ) + + - 46 + - 25 + + 50 * - - 37 * + - 68 + + - 18 col2
----
-120702

query I rowsort
SELECT 28 + 90
----
118

query I rowsort
SELECT DISTINCT + 88 * + 31 AS col0
----
2728

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

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

query I rowsort
SELECT 21 * 13
----
273

query I rowsort
SELECT ALL 91 + + 90
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + MIN( DISTINCT - 39 ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-635
SELECT + MIN ( DISTINCT - 39 ) col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - COALESCE ( - 89, + MIN( + - 37 ) * - SUM( ALL + 76 ) * 96 + COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-636
SELECT - COALESCE ( - 89, + MIN ( + - 37 ) * - SUM ( ALL + 76 ) * 96 + COUNT ( * ) ) AS col2
----
89

query I rowsort
SELECT ALL + 94 + + - 60 AS col1
----
34

query I rowsort
SELECT DISTINCT + - 95 + 96 AS col1
----
1

query I rowsort
SELECT + 40 + - 93
----
-53

query II rowsort
SELECT ALL + 21 AS col0, - 2
----
21
-2

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

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

query I rowsort
SELECT - 24 * - 76
----
1824

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT 56 - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + COUNT( - 28 ) / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT 56 - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + COUNT ( - 28 ) / 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT - NULLIF ( 92, - 6 * + 36 ), + 1 * + - 68 * COUNT( DISTINCT - - 80 ) + + 38 col2
----
-92
-30

skipif mysql # not compatible
query II rowsort label-645
SELECT - NULLIF ( 92, - 6 * + 36 ), + 1 * + - 68 * COUNT ( DISTINCT - - 80 ) + + 38 col2
----
-92
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT COUNT( * ) + - 15 AS col1, NULLIF ( 76, 77 )
----
-14
76

skipif mysql # not compatible
query II rowsort label-646
SELECT COUNT ( * ) + - 15 AS col1, NULLIF ( 76, 77 )
----
-14
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL CASE - COUNT( * ) WHEN 24 THEN - COUNT( * ) * + 13 END + + NULLIF ( + CASE + 94 WHEN - - 7 THEN + CAST( NULL AS SIGNED ) END, + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL CASE - COUNT ( * ) WHEN 24 THEN - COUNT ( * ) * + 13 END + + NULLIF ( + CASE + 94 WHEN - - 7 THEN + CAST ( NULL AS INTEGER ) END, + 86 ) AS col2
----
NULL

query II rowsort
SELECT 25 * - 14 AS col0, ( - 10 )
----
-350
-10

query I rowsort
SELECT 34 - - + 29 * + - 85
----
-2431

query II rowsort
SELECT 44 - - 61 col1, + ( + NULLIF ( 42, ( + + 66 ) ) )
----
105
42

query I rowsort
SELECT ( - - 98 ) * - 16
----
-1568

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

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

query II rowsort
SELECT ALL + 74 * - + 12, - 7 AS col2
----
-888
-7

query I rowsort
SELECT 49 * - 65
----
-3185

query I rowsort
SELECT 2 * - 12 + - - 82 * 9
----
714

query II rowsort
SELECT ALL - ( + 6 ), 43 AS col0
----
-6
43

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT MIN( - 6 ) * - - 35
----
-210

skipif mysql # not compatible
query I rowsort label-657
SELECT MIN ( - 6 ) * - - 35
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - ( + 88 ) / - 96 * ( 33 ) + + + 23 * - + 80 * - 10 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - ( + 88 ) / - 96 * ( 33 ) + + + 23 * - + 80 * - 10 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + 57 + - + COUNT( * ) * - + 79 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + 57 + - + COUNT ( * ) * - + 79 AS col0
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT + ( - + COUNT( * ) ) + - 65 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-661
SELECT + ( - + COUNT ( * ) ) + - 65 AS col2
----
-66

query I rowsort
SELECT ALL - 24 + - - 94 * + 10 - + 80
----
836

query I rowsort
SELECT DISTINCT + 65 + - 37
----
28

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

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

query I rowsort
SELECT ALL - 74 * 70 AS col1
----
-5180

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - 38 DIV - 11 - 96 * 67 * 8 * - 42 - 81
----
2161074

skipif mysql # not compatible
query I rowsort label-666
SELECT - 38 / - 11 - 96 * 67 * 8 * - 42 - 81
----
2161074

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT 92 + - COUNT( * ) - - 98
----
189

skipif mysql # not compatible
query I rowsort label-667
SELECT 92 + - COUNT ( * ) - - 98
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + COUNT( * ) + - 64 - - - 8 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-668
SELECT + COUNT ( * ) + - 64 - - - 8 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL CAST( ( + 92 ) AS SIGNED ) + + - NULLIF ( - + 21, - 2 * - + CASE - 36 WHEN 40 * + 53 THEN NULL WHEN + - 7 THEN NULL ELSE + ( + 89 ) * + ( - COUNT( * ) ) + 96 + 70 END * + - 5 + COUNT( * ) ) + + 80 + 83
----
276

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL CAST ( ( + 92 ) AS INTEGER ) + + - NULLIF ( - + 21, - 2 * - + CASE - 36 WHEN 40 * + 53 THEN NULL WHEN + - 7 THEN NULL ELSE + ( + 89 ) * + ( - COUNT ( * ) ) + 96 + 70 END * + - 5 + COUNT ( * ) ) + + 80 + 83
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-670
SELECT - - 77 + CAST( NULL AS SIGNED ) - - 21 / - - 88 + COUNT( * ) col0, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-670
SELECT - - 77 + CAST ( NULL AS INTEGER ) - - 21 / - - 88 + COUNT ( * ) col0, 17
----
NULL
17

query I rowsort
SELECT - COALESCE ( + 88, - 57 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + + NULLIF ( - + 99, 19 - - - 53 + + MAX( ( + 39 ) ) ) + - ( COUNT( * ) ) * + 56 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-672
SELECT + + NULLIF ( - + 99, 19 - - - 53 + + MAX ( ( + 39 ) ) ) + - ( COUNT ( * ) ) * + 56 AS col1
----
-155

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

query I rowsort
SELECT + - 27 + - - 54
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT MAX( + CASE - 69 WHEN + 29 THEN 68 WHEN 47 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT MAX ( + CASE - 69 WHEN + 29 THEN 68 WHEN 47 THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - MAX( - + 53 ) + 4 col1
----
57

skipif mysql # not compatible
query I rowsort label-676
SELECT - MAX ( - + 53 ) + 4 col1
----
57

query I rowsort
SELECT + 61 * - 70
----
-4270

query I rowsort
SELECT + 25 + + 55
----
80

query I rowsort
SELECT ALL 7 * - 10 AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT + 13 DIV 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT + 13 / 18 AS col0
----
0

query II rowsort
SELECT DISTINCT 56 AS col1, + 82 + 57
----
56
139

query I rowsort
SELECT - CASE + 94 WHEN + - 24 THEN NULL ELSE + - 38 END
----
38

query I rowsort
SELECT DISTINCT 54 * - 13 * - 9 * - ( - + 98 ) * ( - + 63 ) AS col1
----
-39007332

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + 83 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-684
SELECT + 83 / 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + MIN( + 73 ) * - MAX( DISTINCT + 32 )
----
-2336

skipif mysql # not compatible
query I rowsort label-685
SELECT + MIN ( + 73 ) * - MAX ( DISTINCT + 32 )
----
-2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-686
SELECT + 53 DIV - + 17 + + 0 + + - 77 * - ( + + NULLIF ( CASE - 63 WHEN - 70 - + 13 + - 62 * - COUNT( * ) DIV - - ( - COUNT( * ) ) * ( - 60 ) + + ( - COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( * ) * 16 * 7 DIV - 53 + + 98 + + - 24 ) ) THEN - NULLIF ( - - COUNT( * ), + + COUNT( * ) DIV - + 73 ) WHEN - - 13 THEN - MIN( ALL 55 ) ELSE CAST( + 35 AS SIGNED ) * 28 END, + ( COUNT( * ) ) * + 47 ) ) * 58 AS col1
----
4376677

skipif mysql # not compatible
query I rowsort label-686
SELECT + 53 / - + 17 + + 0 + + - 77 * - ( + + NULLIF ( CASE - 63 WHEN - 70 - + 13 + - 62 * - COUNT ( * ) / - - ( - COUNT ( * ) ) * ( - 60 ) + + ( - COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) * 16 * 7 / - 53 + + 98 + + - 24 ) ) THEN - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) / - + 73 ) WHEN - - 13 THEN - MIN ( ALL 55 ) ELSE CAST ( + 35 AS INTEGER ) * 28 END, + ( COUNT ( * ) ) * + 47 ) ) * 58 AS col1
----
4376677

query I rowsort
SELECT NULLIF ( + 8, + + 98 * - 69 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT ALL 41 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 41 / - 62 AS col2
----
0

query I rowsort
SELECT - 53 + + 41 * + 45
----
1792

query I rowsort
SELECT + 65 * - - 66 + + ( - 32 )
----
4258

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

query I rowsort
SELECT ALL + - 54 * 19 * - + 11 + - 63
----
11223

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - 42 * MAX( ALL + 11 )
----
-462

skipif mysql # not compatible
query I rowsort label-693
SELECT - 42 * MAX ( ALL + 11 )
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + - SUM( + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-694
SELECT + - SUM ( + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + 9 * + 64 * - NULLIF ( - 9, 91 * + + 11 * + SUM( - 1 ) + - SUM( DISTINCT - 80 ) * 11 )
----
5184

skipif mysql # not compatible
query I rowsort label-695
SELECT + 9 * + 64 * - NULLIF ( - 9, 91 * + + 11 * + SUM ( - 1 ) + - SUM ( DISTINCT - 80 ) * 11 )
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-696
SELECT ALL + - CASE CAST( + - 27 AS SIGNED ) WHEN - 48 DIV 10 + - + MIN( + 16 ) + 62 + - 6 * 90 THEN NULL ELSE 7 DIV - - 25 + 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + - CASE CAST ( + - 27 AS INTEGER ) WHEN - 48 / 10 + - + MIN ( + 16 ) + 62 + - 6 * 90 THEN NULL ELSE 7 / - - 25 + 12 END
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - - ( - ( SUM( DISTINCT 70 ) ) ) * + 68 + + + 79 + - 52
----
-4733

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - - ( - ( SUM ( DISTINCT 70 ) ) ) * + 68 + + + 79 + - 52
----
-4733

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT - + COUNT( * ) * - + ( - - 14 ) - - - 46
----
-32

skipif mysql # not compatible
query I rowsort label-698
SELECT - + COUNT ( * ) * - + ( - - 14 ) - - - 46
----
-32

query I rowsort
SELECT - 15 * + 15 * ( + 11 ) + 37 AS col2
----
-2438

query I rowsort
SELECT ALL - - 86 * - 64
----
-5504

query I rowsort
SELECT - 81 * - 77
----
6237

query I rowsort
SELECT DISTINCT - 29 * ( - 56 )
----
1624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-703
SELECT ALL 25 - 16 * - 12 * - 38 + + CAST( NULL AS DECIMAL ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 25 - 16 * - 12 * - 38 + + CAST ( NULL AS REAL ) - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT - COALESCE ( - CASE - 53 WHEN 7 * + 26 * 21 THEN NULL ELSE 52 - + 12 - + COUNT( * ) END, ( - 57 ), - - 73 - + 32 ) + + 99 col2
----
138

skipif mysql # not compatible
query I rowsort label-704
SELECT - COALESCE ( - CASE - 53 WHEN 7 * + 26 * 21 THEN NULL ELSE 52 - + 12 - + COUNT ( * ) END, ( - 57 ), - - 73 - + 32 ) + + 99 col2
----
138

query I rowsort
SELECT + 67 + - 7
----
60

query I rowsort
SELECT - 37 * + - 1 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT 64 AS col1, + ( - + 50 ) + 10 + - + ( - COUNT( * ) ) * - + 91 AS col0
----
64
-131

skipif mysql # not compatible
query II rowsort label-707
SELECT 64 AS col1, + ( - + 50 ) + 10 + - + ( - COUNT ( * ) ) * - + 91 AS col0
----
64
-131

query I rowsort
SELECT + 2 * + 21
----
42

query I rowsort
SELECT - 14 - + 13 + + - 26 * - + 96 + - 71
----
2398

query II rowsort
SELECT ALL ( - 12 ) AS col0, - 41 AS col0
----
-12
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT DISTINCT + COALESCE ( 15, + ( - 48 ) ) * - CAST( - COUNT( * ) AS SIGNED ) + - - 94
----
109

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + COALESCE ( 15, + ( - 48 ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - - 94
----
109

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

query I rowsort
SELECT + 7 * 62 * - + 51
----
-22134

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL - 1 * + SUM( + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - 1 * + SUM ( + 92 )
----
-92

query I rowsort
SELECT ALL 54 * - 2
----
-108

query I rowsort
SELECT - ( 33 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-717
SELECT - 71 * + 5 AS col0, COUNT( * )
----
-355
1

skipif mysql # not compatible
query II rowsort label-717
SELECT - 71 * + 5 AS col0, COUNT ( * )
----
-355
1

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + 77 * + MAX( DISTINCT - - 69 ) AS col1
----
5313

skipif mysql # not compatible
query I rowsort label-718
SELECT + 77 * + MAX ( DISTINCT - - 69 ) AS col1
----
5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT + NULLIF ( 28, + MAX( + 89 ) * + - 46 * + + 43 ) - - 70 * - CAST( + 77 AS SIGNED ) AS col2
----
-5362

skipif mysql # not compatible
query I rowsort label-719
SELECT + NULLIF ( 28, + MAX ( + 89 ) * + - 46 * + + 43 ) - - 70 * - CAST ( + 77 AS INTEGER ) AS col2
----
-5362

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT + 30 DIV + - ( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-720
SELECT + 30 / + - ( - 29 )
----
1

query I rowsort
SELECT + 41 * 59
----
2419

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT DISTINCT + COUNT( * ) DIV + 75 * 30 + - 17 DIV + 80 + + MAX( DISTINCT + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT + COUNT ( * ) / + 75 * 30 + - 17 / + 80 + + MAX ( DISTINCT + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT ALL 36 DIV - ( + 23 ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 36 / - ( + 23 ) + + - COUNT ( * ) AS col0
----
-2

query II rowsort
SELECT ALL + 16 AS col1, + 84
----
16
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT - 40 * + 35 * - + COUNT( * )
----
1400

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - 40 * + 35 * - + COUNT ( * )
----
1400

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

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

query I rowsort
SELECT 85 + 50 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL + COUNT( * ) + MIN( + 74 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + COUNT ( * ) + MIN ( + 74 ) col1
----
75

query I rowsort
SELECT 16 + 5 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT 62 + - CAST( 2 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-733
SELECT 62 + - CAST ( 2 AS INTEGER ) AS col1
----
60

query II rowsort
SELECT DISTINCT - - 69, - 10 - - 10 + - 55 AS col0
----
69
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL COUNT( * ) - ( - 67 )
----
68

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL COUNT ( * ) - ( - 67 )
----
68

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

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 30 - - MAX ( DISTINCT + - 14 ) AS col2
----
16

query I rowsort
SELECT DISTINCT - + 35 AS col2
----
-35

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

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

query I rowsort
SELECT 24 + + - 92 - + 86 AS col2
----
-154

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

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) / 63 AS col1
----
0

query I rowsort
SELECT 50 * 6 AS col1
----
300

query I rowsort
SELECT 24 + - 55 + - ( - + 76 ) * 5 * + 83 AS col1
----
31509

query I rowsort
SELECT 34 + - 62 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query IIII rowsort label-744
SELECT 40 * + 32, COUNT( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1
----
1280
1
5396
10

skipif mysql # not compatible
query IIII rowsort label-744
SELECT 40 * + 32, COUNT ( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1
----
1280
1
5396
10

query II rowsort
SELECT DISTINCT + 33 * + - 70, 47 AS col2
----
-2310
47

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT ALL + ( + 94 ) DIV 78 * + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + ( + 94 ) / 78 * + 6 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT 30 DIV - 12 col2
----
-2

skipif mysql # not compatible
query I rowsort label-747
SELECT 30 / - 12 col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-749
SELECT ALL + 16 + + + COUNT( * ) DIV - 18 DIV + COALESCE ( - 4, + 1, - NULLIF ( + 2, + - 26 + - 12 + + CAST( COALESCE ( + 61, + 64, - ( COUNT( * ) ) * 78 * - + 1 * 83 * - + CAST( NULL AS SIGNED ) DIV 4 ) AS SIGNED ) DIV + 29 DIV - 2 ) ) + 41 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + 16 + + + COUNT ( * ) / - 18 / + COALESCE ( - 4, + 1, - NULLIF ( + 2, + - 26 + - 12 + + CAST ( COALESCE ( + 61, + 64, - ( COUNT ( * ) ) * 78 * - + 1 * 83 * - + CAST ( NULL AS INTEGER ) / 4 ) AS INTEGER ) / + 29 / - 2 ) ) + 41 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT + ( + COUNT( * ) ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT + ( + COUNT ( * ) ) + - 97
----
-96

query I rowsort
SELECT DISTINCT - 71 + - - 92 - - 94 * 13 AS col1
----
1243

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

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) * 58 + + COUNT ( * ) AS col0
----
60

query II rowsort
SELECT DISTINCT - ( 89 ), 74 AS col2
----
-89
74

query II rowsort
SELECT ALL - ( + + 65 ), 39 * - 94 * + + 57 col0
----
-65
-208962

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + CASE + COUNT( * ) WHEN + + 6 * + - 26 THEN COUNT( * ) * + COUNT( * ) + + 13 WHEN - MAX( ALL 88 ) - 39 THEN - 12 END * + ( - 8 ) * + ( - 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + CASE + COUNT ( * ) WHEN + + 6 * + - 26 THEN COUNT ( * ) * + COUNT ( * ) + + 13 WHEN - MAX ( ALL 88 ) - 39 THEN - 12 END * + ( - 8 ) * + ( - 79 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL 30 - - CAST( - 92 AS SIGNED ) - - COUNT( * ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 30 - - CAST ( - 92 AS INTEGER ) - - COUNT ( * ) col1
----
-61

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

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

query I rowsort
SELECT DISTINCT 15 - + 32 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query III rowsort label-759
SELECT 69 * - + 66 AS col0, - 4 AS col2, - 4 DIV + 60
----
-4554
-4
0

skipif mysql # not compatible
query III rowsort label-759
SELECT 69 * - + 66 AS col0, - 4 AS col2, - 4 / + 60
----
-4554
-4
0

query I rowsort
SELECT ALL - 35 * + COALESCE ( + 62, + 65 )
----
-2170

query II rowsort
SELECT + - ( 57 ), - 74 + 38 AS col1
----
-57
-36

query I rowsort
SELECT - 16 * - 40
----
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT - CASE - CAST( 49 AS SIGNED ) WHEN - - 80 THEN COUNT( + 74 ) + - 80 WHEN + + 70 + SUM( - 32 ) THEN NULL WHEN COUNT( * ) * COUNT( * ) + 62 + - CAST( 49 AS SIGNED ) + + 97 * 25 THEN NULL END * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT - CASE - CAST ( 49 AS INTEGER ) WHEN - - 80 THEN COUNT ( + 74 ) + - 80 WHEN + + 70 + SUM ( - 32 ) THEN NULL WHEN COUNT ( * ) * COUNT ( * ) + 62 + - CAST ( 49 AS INTEGER ) + + 97 * 25 THEN NULL END * + 83 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT - 99 DIV + - 26 + + 50, 5 col1
----
53
5

skipif mysql # not compatible
query II rowsort label-764
SELECT - 99 / + - 26 + + 50, 5 col1
----
53
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT + 1 + - + 0 - - + 29 + - + 3 - + + 40 * CASE 31 WHEN - + 7 * COUNT( * ) * - + 21 THEN - ( + 99 ) WHEN + 8 + + 66 THEN NULL ELSE - 50 END * + + 89
----
178027

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + 1 + - + 0 - - + 29 + - + 3 - + + 40 * CASE 31 WHEN - + 7 * COUNT ( * ) * - + 21 THEN - ( + 99 ) WHEN + 8 + + 66 THEN NULL ELSE - 50 END * + + 89
----
178027

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT ALL SUM( - 81 ) * + COUNT( ALL 23 ) AS col2, + COALESCE ( NULLIF ( - ( 79 ), - MAX( + - 87 ) / + MIN( + 32 ) ), + 76 ) + + 3
----
-81
-76

skipif mysql # not compatible
query II rowsort label-767
SELECT ALL SUM ( - 81 ) * + COUNT ( ALL 23 ) AS col2, + COALESCE ( NULLIF ( - ( 79 ), - MAX ( + - 87 ) / + MIN ( + 32 ) ), + 76 ) + + 3
----
-81
-76

query I rowsort
SELECT 59 - - 25 - + 45 + 48 * ( + 49 ) AS col1
----
2391

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COUNT( * ) + + + 17 + + 24 * + NULLIF ( + 61, 37 )
----
1482

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( * ) + + + 17 + + 24 * + NULLIF ( + 61, 37 )
----
1482

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

query I rowsort
SELECT 75 * + - 33 AS col0
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL MAX( - COALESCE ( + 0, + 66 ) )
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL MAX ( - COALESCE ( + 0, + 66 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT DISTINCT - 57 + - CAST( + 2 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - 57 + - CAST ( + 2 AS INTEGER )
----
-59

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

skipif mysql # not compatible
query I rowsort label-774
SELECT 68 + + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT DISTINCT - 39 + - ( - 18 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL + SUM( + 25 ) * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + SUM ( + 25 ) * + + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT ALL + 12 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + 12 / 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT DISTINCT - 58 + + + 74 * 13 DIV - + 69 + + COUNT( * ) * + 40 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - 58 + + + 74 * 13 / - + 69 + + COUNT ( * ) * + 40 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 49 - + 14 - - 64 col0
----
1

query I rowsort
SELECT - 75 * - + 94 * - + ( - 74 ) + - 5
----
521695

query I rowsort
SELECT ALL 67 * - 49 - - - NULLIF ( - ( - 7 ), 29 )
----
-3290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - COALESCE ( COUNT( - 61 ), - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-783
SELECT - COALESCE ( COUNT ( - 61 ), - 98 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 55 * + + COUNT( - 32 )
----
55

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 55 * + + COUNT ( - 32 )
----
55

query I rowsort
SELECT ALL + CASE WHEN + 22 IS NULL THEN + 80 * - 50 * 36 ELSE + 32 END AS col0
----
32

query I rowsort
SELECT + 47 - - + ( + - 99 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-788
SELECT ALL + - COALESCE ( - COUNT( * ), + 79 DIV + MAX( - 92 ) + + + CAST( 88 AS SIGNED ) * 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + - COALESCE ( - COUNT ( * ), + 79 / + MAX ( - 92 ) + + + CAST ( 88 AS INTEGER ) * 30 ) AS col1
----
1

query I rowsort
SELECT + 88 * - 40 + - + 22
----
-3542

query I rowsort
SELECT 42 * - - 93 + 26 col0
----
3932

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + 83 * + + 27 + - - 5 * CASE + - 60 WHEN + + 50 THEN NULL WHEN - 78 THEN + - COUNT( * ) ELSE - + 32 - COUNT( * ) END * + - 46 + + + 19 AS col1
----
9850

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + 83 * + + 27 + - - 5 * CASE + - 60 WHEN + + 50 THEN NULL WHEN - 78 THEN + - COUNT ( * ) ELSE - + 32 - COUNT ( * ) END * + - 46 + + + 19 AS col1
----
9850

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT + MIN( DISTINCT + - 18 ) * 39
----
-702

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + MIN ( DISTINCT + - 18 ) * 39
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT - 82 * + NULLIF ( + 11, + ( + CASE - + COUNT( * ) WHEN - CASE + 48 WHEN + 13 THEN NULL WHEN ( + + 40 ) * + - 11 * - COUNT( - 33 ) - - 39 + 37 / 32 THEN COUNT( * ) * - COUNT( * ) - - 9 + + + 98 ELSE 73 END THEN - + 20 * + MAX( ALL + 17 ) * COUNT( * ) + - 90 END ) ) + 68 AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT - 82 * + NULLIF ( + 11, + ( + CASE - + COUNT ( * ) WHEN - CASE + 48 WHEN + 13 THEN NULL WHEN ( + + 40 ) * + - 11 * - COUNT ( - 33 ) - - 39 + 37 / 32 THEN COUNT ( * ) * - COUNT ( * ) - - 9 + + + 98 ELSE 73 END THEN - + 20 * + MAX ( ALL + 17 ) * COUNT ( * ) + - 90 END ) ) + 68 AS col2
----
-834

query I rowsort
SELECT ALL 7 * 53 * - + 56 + - ( - 19 )
----
-20757

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + CASE + 55 WHEN - + 73 + - + 93 THEN ( + ( + 78 ) ) ELSE NULLIF ( COUNT( * ), - 93 ) + + 19 END AS col2
----
20

skipif mysql # not compatible
query I rowsort label-795
SELECT + CASE + 55 WHEN - + 73 + - + 93 THEN ( + ( + 78 ) ) ELSE NULLIF ( COUNT ( * ), - 93 ) + + 19 END AS col2
----
20

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

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

query I rowsort
SELECT + ( - - ( 79 ) ) + + 57 + - 67 * - 6 col1
----
538

query I rowsort
SELECT ALL 43 + + 33
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-799
SELECT + 37 * + - ( 37 ) + + 71 AS col1, MAX( DISTINCT + 94 ) * + + 95 + SUM( DISTINCT + 24 ) DIV + COALESCE ( - 67, - CAST( NULL AS SIGNED ) ) * + + 3 col2
----
-1298
8930

skipif mysql # not compatible
query II rowsort label-799
SELECT + 37 * + - ( 37 ) + + 71 AS col1, MAX ( DISTINCT + 94 ) * + + 95 + SUM ( DISTINCT + 24 ) / + COALESCE ( - 67, - CAST ( NULL AS INTEGER ) ) * + + 3 col2
----
-1298
8930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-800
SELECT DISTINCT 78 / - CAST( NULL AS DECIMAL ) * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT 78 / - CAST ( NULL AS REAL ) * 15 col1
----
NULL

query I rowsort
SELECT + 89 + 60
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT COALESCE ( + 30, + - 15 ) + 53 * + COUNT( * ) DIV COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT COALESCE ( + 30, + - 15 ) + 53 * + COUNT ( * ) / COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT - ( 95 ) AS col1, + ( - MIN( DISTINCT + - 38 ) ) * SUM( + 92 ) + + - 6 AS col2
----
-95
3490

skipif mysql # not compatible
query II rowsort label-803
SELECT - ( 95 ) AS col1, + ( - MIN ( DISTINCT + - 38 ) ) * SUM ( + 92 ) + + - 6 AS col2
----
-95
3490

query I rowsort
SELECT - ( - COALESCE ( - 27, - 80, 69 ) )
----
-27

query I rowsort
SELECT ALL 35 * 6 * - - 11 * 23 AS col0
----
53130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-806
SELECT + COALESCE ( + 94, + COUNT( * ) * + + 21 * COUNT( * ) * 70 * + 68 + + ( - 76 ) + AVG ( + 98 ) ) * CAST( NULL AS DECIMAL ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT + COALESCE ( + 94, + COUNT ( * ) * + + 21 * COUNT ( * ) * 70 * + 68 + + ( - 76 ) + AVG ( + 98 ) ) * CAST ( NULL AS REAL ) + 9
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT - ( 11 ) AS col1, + SUM( 10 ) * - CASE - 30 WHEN 23 - - 92 THEN + 83 * 20 - + 54 END - 10 AS col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-808
SELECT - ( 11 ) AS col1, + SUM ( 10 ) * - CASE - 30 WHEN 23 - - 92 THEN + 83 * 20 - + 54 END - 10 AS col2
----
-11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT - 34 + - CAST( - 53 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-809
SELECT - 34 + - CAST ( - 53 AS INTEGER )
----
19

query II rowsort
SELECT + + 39 * 25, 4 AS col2
----
975
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT DISTINCT + MIN( ALL - + 65 ) AS col2, - 81
----
-65
-81

skipif mysql # not compatible
query II rowsort label-812
SELECT DISTINCT + MIN ( ALL - + 65 ) AS col2, - 81
----
-65
-81

query I rowsort
SELECT DISTINCT 52 * + ( 57 ) + - + 43 AS col2
----
2921

query II rowsort
SELECT + 95 + - 7, + 80 AS col2
----
88
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT - 6 DIV 58 + - 51 + NULLIF ( - 96, + ( + + 8 ) ) DIV 64 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-816
SELECT - 6 / 58 + - 51 + NULLIF ( - 96, + ( + + 8 ) ) / 64 AS col1
----
-52

query I rowsort
SELECT + 75 * 9 * - 28 AS col0
----
-18900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-818
SELECT - + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + 97 ) + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT - + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + 97 ) + + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT - - 46 * COUNT( * ) * + 2 * + 34 DIV + COUNT( * ) AS col1
----
3128

skipif mysql # not compatible
query I rowsort label-819
SELECT - - 46 * COUNT ( * ) * + 2 * + 34 / + COUNT ( * ) AS col1
----
3128

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

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - - COUNT ( * ) * ( + 48 ) AS col0
----
48

query I rowsort
SELECT - 25 * - - 38
----
-950

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

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

query I rowsort
SELECT ALL - 5 * 82 + - 55 col1
----
-465

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

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

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

query I rowsort
SELECT NULLIF ( 35, - + AVG ( - 64 ) ) AS col0
----
35

query I rowsort
SELECT NULLIF ( - 49, - 10 )
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( 55, + - 80 * 65 + + 81 )
----
55

query I rowsort
SELECT - 90 * - 66 * - 11 * - 10 * - ( + 90 ) - 62 * + 20
----
-58807240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-830
SELECT CASE - + CAST( 80 AS DECIMAL ) WHEN - - ( 13 ) THEN - 26 * - + 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT CASE - + CAST ( 80 AS REAL ) WHEN - - ( 13 ) THEN - 26 * - + 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL CASE + + 60 WHEN - 17 / + 96 THEN + 83 * + COUNT( * ) END * + + 63 + - - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL CASE + + 60 WHEN - 17 / + 96 THEN + 83 * + COUNT ( * ) END * + + 63 + - - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL 89 * - + CASE COUNT( * ) WHEN 76 + - 98 THEN - 48 * - - 12 + + 23 + - 34 END / - COALESCE ( - 49, + 12 * + COUNT( * ) * + 11 + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 89 * - + CASE COUNT ( * ) WHEN 76 + - 98 THEN - 48 * - - 12 + + 23 + - 34 END / - COALESCE ( - 49, + 12 * + COUNT ( * ) * + 11 + 73 ) AS col0
----
NULL

query I rowsort
SELECT + 95 * - COALESCE ( + 51, - 86 ) AS col2
----
-4845

query I rowsort
SELECT DISTINCT - 12 * + 16 AS col0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT SUM( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-835
SELECT SUM ( DISTINCT - 72 )
----
-72

query I rowsort
SELECT ALL - 94 * + 96 AS col0
----
-9024

query II rowsort
SELECT 58 + + 43 + + - 78, + ( 11 ) + + - 46 col2
----
23
-35

query I rowsort
SELECT 94 - + + 1
----
93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT COUNT( 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT COUNT ( 47 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ( + MAX( ALL + + 15 ) ) col1
----
15

skipif mysql # not compatible
query I rowsort label-843
SELECT ( + MAX ( ALL + + 15 ) ) col1
----
15

query II rowsort
SELECT ALL + 72 col2, 43 + + 70 + - 93 col0
----
72
20

query I rowsort
SELECT - 51 + - 5
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-846
SELECT ALL 53 AS col2, CASE - 55 WHEN - CAST( NULL AS DECIMAL ) + - 10 THEN NULL WHEN - + CAST( + 95 AS SIGNED ) * - MIN( DISTINCT - + 45 ) + + NULLIF ( COUNT( * ), + 47 + - - 32 * - ( 33 ) + ( + 34 ) * + 14 ) + + + 68 - - 65 * - 73 * - 6 * + 6 + - NULLIF ( - 72, + + 97 ) THEN + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX( + 38 + + 83 ) * + 70 END + - 3 * 60 ELSE NULL END * COUNT( - 90 + 47 / + 0 )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-846
SELECT ALL 53 AS col2, CASE - 55 WHEN - CAST ( NULL AS REAL ) + - 10 THEN NULL WHEN - + CAST ( + 95 AS INTEGER ) * - MIN ( DISTINCT - + 45 ) + + NULLIF ( COUNT ( * ), + 47 + - - 32 * - ( 33 ) + ( + 34 ) * + 14 ) + + + 68 - - 65 * - 73 * - 6 * + 6 + - NULLIF ( - 72, + + 97 ) THEN + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX ( + 38 + + 83 ) * + 70 END + - 3 * 60 ELSE NULL END * COUNT ( - 90 + 47 / + 0 )
----
53
NULL

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

query I rowsort
SELECT + ( 87 ) + ( - ( - ( + 69 ) ) ) + + 34
----
190

query I rowsort
SELECT 54 * + + NULLIF ( 43, - 73 ) * + 22 AS col1
----
51084

query I rowsort
SELECT + 43 * + + 58 + + 94
----
2588

query I rowsort
SELECT ALL 13 + - 60 + - - 93 + + 67 * ( - 9 )
----
-557

query I rowsort
SELECT 85 - - + 73 + - 36 * - 86 * - 27 - 75 * 21 col2
----
-85009

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-854
SELECT ALL CAST( NULL AS DECIMAL ) + + 86 + + 24 + + - 1 * + - MIN( ALL - + 23 ) * - 70 + - - 53 / - 80 * - 68 AS col2, - COALESCE ( 11, 85 + - 18 + + CAST( - + 14 AS SIGNED ) ) AS col1
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-854
SELECT ALL CAST ( NULL AS REAL ) + + 86 + + 24 + + - 1 * + - MIN ( ALL - + 23 ) * - 70 + - - 53 / - 80 * - 68 AS col2, - COALESCE ( 11, 85 + - 18 + + CAST ( - + 14 AS INTEGER ) ) AS col1
----
NULL
-11

query I rowsort
SELECT ALL 70 * + 43 col2
----
3010

query I rowsort
SELECT DISTINCT - 53 + NULLIF ( + - 63, + 40 + + - 76 )
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-857
SELECT ALL - + CASE - 21 WHEN - COUNT( * ) THEN - 74 * - - ( 46 ) + - COUNT( * ) + 86 DIV + 31 ELSE ( - 43 ) * - 42 + 61 * - 66 + 17 END + ( + + 74 ) col1
----
2277

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - + CASE - 21 WHEN - COUNT ( * ) THEN - 74 * - - ( 46 ) + - COUNT ( * ) + 86 / + 31 ELSE ( - 43 ) * - 42 + 61 * - 66 + 17 END + ( + + 74 ) col1
----
2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT DISTINCT - CAST( - 21 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) AS col1
----
21

query I rowsort
SELECT DISTINCT 97 + 32 AS col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT + COUNT( * ) * - 79 + - COUNT( * ) + + 81 * - 95 + - - 59 * + 24 + - 50, - 59 AS col2
----
-6409
-59

skipif mysql # not compatible
query II rowsort label-860
SELECT + COUNT ( * ) * - 79 + - COUNT ( * ) + + 81 * - 95 + - - 59 * + 24 + - 50, - 59 AS col2
----
-6409
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - CASE NULLIF ( - + 58, + COUNT( * ) ) WHEN - 16 * + ( - ( 79 ) ) / - 88 + + 14 * + COUNT( * ) + ( NULLIF ( + - 11, + 44 - ( + - 26 ) + - 54 / - 69 * 71 - - 53 ) ) * + - 75 * - 11 * - + SUM( DISTINCT + + 36 ) THEN + 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - CASE NULLIF ( - + 58, + COUNT ( * ) ) WHEN - 16 * + ( - ( 79 ) ) / - 88 + + 14 * + COUNT ( * ) + ( NULLIF ( + - 11, + 44 - ( + - 26 ) + - 54 / - 69 * 71 - - 53 ) ) * + - 75 * - 11 * - + SUM ( DISTINCT + + 36 ) THEN + 43 END col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 55, 8 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - 88 + + 83 + - MIN( 20 )
----
-25

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - 88 + + 83 + - MIN ( 20 )
----
-25

query I rowsort
SELECT ALL + 25 * 41 AS col1
----
1025

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

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT DISTINCT + 71 - - 94 + + 75 * + ( - + COUNT( + 55 ) ) AS col1, + COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-866
SELECT DISTINCT + 71 - - 94 + + 75 * + ( - + COUNT ( + 55 ) ) AS col1, + COUNT ( * )
----
90
1

query I rowsort
SELECT 94 + + 68 * + 70
----
4854

query II rowsort
SELECT - 65 AS col0, 85
----
-65
85

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT - 16 AS col2, + COUNT( * ) + 93 AS col1
----
-16
94

skipif mysql # not compatible
query II rowsort label-869
SELECT - 16 AS col2, + COUNT ( * ) + 93 AS col1
----
-16
94

query I rowsort
SELECT 3 + + 43 + - - 69 * - 10
----
-644

query I rowsort
SELECT 74 * 94 col1
----
6956

query II rowsort
SELECT ALL 29, 92 col2
----
29
92

query I rowsort
SELECT 0 * - 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT - + ( - NULLIF ( 27, - - ( - 61 ) * + 37 * + 15 / CAST( + MAX( - - 39 ) AS SIGNED ) + 91 - - 72 * - MIN( DISTINCT - 6 ) * 15 * - 69 + + CAST( 2 AS SIGNED ) * + 67 / 31 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-874
SELECT - + ( - NULLIF ( 27, - - ( - 61 ) * + 37 * + 15 / CAST ( + MAX ( - - 39 ) AS INTEGER ) + 91 - - 72 * - MIN ( DISTINCT - 6 ) * 15 * - 69 + + CAST ( 2 AS INTEGER ) * + 67 / 31 ) ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT DISTINCT 42 AS col0, 77 DIV - + 89
----
42
0

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT 42 AS col0, 77 / - + 89
----
42
0

query I rowsort
SELECT ( 13 ) + + COALESCE ( + 43, + 87 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT - - 19 * + + 0 * ( - COUNT( * ) ) * 99 DIV NULLIF ( - + COALESCE ( + 68, + - AVG ( ALL - 3 ), + 25, 75 ), - COUNT( * ) + MAX( - + 42 ) + - - 89 DIV + + SUM( DISTINCT + + 54 ) * - CAST( + MIN( DISTINCT 34 ) AS DECIMAL ) + + - 93 + - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - - 19 * + + 0 * ( - COUNT ( * ) ) * 99 / NULLIF ( - + COALESCE ( + 68, + - AVG ( ALL - 3 ), + 25, 75 ), - COUNT ( * ) + MAX ( - + 42 ) + - - 89 / + + SUM ( DISTINCT + + 54 ) * - CAST ( + MIN ( DISTINCT 34 ) AS REAL ) + + - 93 + - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT - COUNT( * ) + ( 46 ) + - 7 DIV + 94 * 62 - + 2 * - 9
----
63

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - COUNT ( * ) + ( 46 ) + - 7 / + 94 * 62 - + 2 * - 9
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT + 18 * - 0 DIV + 48 + COALESCE ( + COUNT( * ), 51 - + 27 + COUNT( ALL - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-879
SELECT + 18 * - 0 / + 48 + COALESCE ( + COUNT ( * ), 51 - + 27 + COUNT ( ALL - 10 ) )
----
1

query II rowsort
SELECT - 71, + 16 * 52 AS col1
----
-71
832

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT - COALESCE ( + - 28, + 94 ) DIV + - COALESCE ( + 21, + + 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-881
SELECT - COALESCE ( + - 28, + 94 ) / + - COALESCE ( + 21, + + 78 ) AS col0
----
-1

query I rowsort
SELECT ALL 97 + - 32 * 4
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL 1 + COUNT( * ) col0
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - 85 - - 90 * - 78 - - COUNT( * ) AS col2
----
-7104

skipif mysql # not compatible
query I rowsort label-884
SELECT - 85 - - 90 * - 78 - - COUNT ( * ) AS col2
----
-7104

query I rowsort
SELECT + 94 + + 98
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL + ( + 39 ) + COALESCE ( + + COUNT( * ), + 83 + COUNT( * ), - + 4 * + 35 ) + + - ( 62 )
----
-22

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + ( + 39 ) + COALESCE ( + + COUNT ( * ), + 83 + COUNT ( * ), - + 4 * + 35 ) + + - ( 62 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT ALL - 49, + 39 * - - COUNT( * ) + - 78 col1
----
-49
-39

skipif mysql # not compatible
query II rowsort label-887
SELECT ALL - 49, + 39 * - - COUNT ( * ) + - 78 col1
----
-49
-39

query I rowsort
SELECT ALL + - 68 * 82 + ( + 16 )
----
-5560

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT MAX( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-889
SELECT MAX ( - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT + - MIN( - 19 ) DIV 41 - - - NULLIF ( 36, - 7 ) + - + 26 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-890
SELECT + - MIN ( - 19 ) / 41 - - - NULLIF ( 36, - 7 ) + - + 26 AS col2
----
-62

query I rowsort
SELECT DISTINCT + + 37 * 60 + 53 AS col1
----
2273

query I rowsort
SELECT - 43 + 9 * ( + + 4 )
----
-7

query I rowsort
SELECT + 19 * + 93 + - 74 AS col1
----
1693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-894
SELECT 52 * + 62 AS col1, - 62 * - NULLIF ( + 11, 47 + - + COUNT( * ) ) + - 37 * - + ( + NULLIF ( - - 74, + 84 ) ) + COUNT( * ) + 65 - ( CAST( NULL AS SIGNED ) ) + - - 89 * - 85 + - + 29
----
3224
NULL

skipif mysql # not compatible
query II rowsort label-894
SELECT 52 * + 62 AS col1, - 62 * - NULLIF ( + 11, 47 + - + COUNT ( * ) ) + - 37 * - + ( + NULLIF ( - - 74, + 84 ) ) + COUNT ( * ) + 65 - ( CAST ( NULL AS INTEGER ) ) + - - 89 * - 85 + - + 29
----
3224
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MIN( ALL - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-895
SELECT MIN ( ALL - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT DISTINCT 25 * NULLIF ( - - 56, - 3 - - + COUNT( * ) / + 82 ) * 74, 6 AS col1
----
103600
6

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT 25 * NULLIF ( - - 56, - 3 - - + COUNT ( * ) / + 82 ) * 74, 6 AS col1
----
103600
6

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT ALL 12 DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL 12 / + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + COALESCE ( 20, 39, + COALESCE ( 17, - 61 + - COUNT( - 87 ) * - NULLIF ( - COUNT( * ), 87 + 62 / - COUNT( * ) / - - CASE 26 WHEN 67 / + + 59 + + - 0 THEN + 30 WHEN + 33 THEN NULL END ) + - COALESCE ( + COUNT( * ), 71 ) ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-898
SELECT + COALESCE ( 20, 39, + COALESCE ( 17, - 61 + - COUNT ( - 87 ) * - NULLIF ( - COUNT ( * ), 87 + 62 / - COUNT ( * ) / - - CASE 26 WHEN 67 / + + 59 + + - 0 THEN + 30 WHEN + 33 THEN NULL END ) + - COALESCE ( + COUNT ( * ), 71 ) ) ) AS col1
----
20

query I rowsort
SELECT 58 * 43 - + 40
----
2454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-900
SELECT ALL 76 DIV - 12 AS col2, - 72 * + - CASE - COUNT( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 DIV - + CAST( + NULLIF ( 1, - NULLIF ( - COUNT( * ), - 7 * + + 31 + + - 33 ) ) AS SIGNED ) + 93 ) WHEN NULLIF ( - 51, 98 * + - ( CAST( - 63 AS SIGNED ) ) ) THEN NULL END
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL 76 / - 12 AS col2, - 72 * + - CASE - COUNT ( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 / - + CAST ( + NULLIF ( 1, - NULLIF ( - COUNT ( * ), - 7 * + + 31 + + - 33 ) ) AS INTEGER ) + 93 ) WHEN NULLIF ( - 51, 98 * + - ( CAST ( - 63 AS INTEGER ) ) ) THEN NULL END
----
-6
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-901
SELECT - ( MAX( CAST( NULL AS DECIMAL ) ) ) - ( - + MIN( + 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT - ( MAX ( CAST ( NULL AS REAL ) ) ) - ( - + MIN ( + 17 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT - 6 DIV + + 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-903
SELECT - 6 / + + 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT 11 + NULLIF ( - ( - COUNT( * ) ), 50 ) * 12
----
23

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT 11 + NULLIF ( - ( - COUNT ( * ) ), 50 ) * 12
----
23

query I rowsort
SELECT - 82 * 28 * - 12
----
27552

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT - 41 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT - 41 / + 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + - COUNT( * ) + + - 46 + - - 56 + 34 + - MAX( ALL CAST( NULL AS SIGNED ) ) - + - 56 * - COUNT( * ) * - 26 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + - COUNT ( * ) + + - 46 + - - 56 + 34 + - MAX ( ALL CAST ( NULL AS INTEGER ) ) - + - 56 * - COUNT ( * ) * - 26 * + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 67 * + 35 col1, 56
----
2345
56

query I rowsort
SELECT + - 16 + + + ( - + 82 ) col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL COUNT( - - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL COUNT ( - - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - SUM( + 83 ) + + 0 + 43
----
-40

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - SUM ( + 83 ) + + 0 + 43
----
-40

query I rowsort
SELECT - 69 + - ( - + 55 ) * + + 15
----
756

query I rowsort
SELECT - - COALESCE ( 41, - ( - + 48 ), + - 50 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - + 12 + + MAX( DISTINCT - 66 ) * + + COUNT( * ) * - ( - - 89 )
----
5862

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - + 12 + + MAX ( DISTINCT - 66 ) * + + COUNT ( * ) * - ( - - 89 )
----
5862

query I rowsort
SELECT ALL 31 + + ( + 42 ) + - 46 col1
----
27

query I rowsort
SELECT + 18 * - 89 col0
----
-1602

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

skipif mysql # not compatible
query I rowsort label-917
SELECT + MAX ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT ALL + COUNT( * ) AS col0, - 33 * COUNT( * ) * - 16 AS col2
----
1
528

skipif mysql # not compatible
query II rowsort label-918
SELECT ALL + COUNT ( * ) AS col0, - 33 * COUNT ( * ) * - 16 AS col2
----
1
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL + 71 DIV - MIN( - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + 71 / - MIN ( - 63 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-920
SELECT + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) - 79
----
-80

query I rowsort
SELECT 62 * + 97 + - 24 col2
----
5990

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT 62 * - 12 + + + COUNT( * ) + - - 29 * + 57 * + COUNT( * ) + - 60 - + - 70 * - - 21 col2
----
2320

skipif mysql # not compatible
query I rowsort label-922
SELECT 62 * - 12 + + + COUNT ( * ) + - - 29 * + 57 * + COUNT ( * ) + - 60 - + - 70 * - - 21 col2
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT + 1 * - CAST( NULL AS SIGNED ) * - 11 * + + 85 * 48 * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT + 1 * - CAST ( NULL AS INTEGER ) * - 11 * + + 85 * 48 * + 3 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + NULLIF ( + - 10, 62 + + + SUM( 64 ) ) + + + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-925
SELECT + NULLIF ( + - 10, 62 + + + SUM ( 64 ) ) + + + COUNT ( * ) AS col1
----
-9

query II rowsort
SELECT DISTINCT + 55, + 89 col2
----
55
89

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

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

query I rowsort
SELECT - ( + 68 ) * - - 88 + + 47 - - - 74 + 83 + - 52
----
-5980

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

query I rowsort
SELECT + 41 + - 73 AS col1
----
-32

query I rowsort
SELECT ALL + 49 * + 33 * 8 + + 98 AS col2
----
13034

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT ALL - 88 * - 26 + - + 70 - + + 9 + 20 DIV - 81 AS col2
----
2209

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - 88 * - 26 + - + 70 - + + 9 + 20 / - 81 AS col2
----
2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT + CAST( NULL AS SIGNED ) * 27 + MAX( ALL - 4 ) * - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT + CAST ( NULL AS INTEGER ) * 27 + MAX ( ALL - 4 ) * - - 24
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT - NULLIF ( - + CAST( - + 17 AS SIGNED ), + + COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-935
SELECT - NULLIF ( - + CAST ( - + 17 AS INTEGER ), + + COUNT ( * ) ) AS col2
----
-17

query I rowsort
SELECT DISTINCT + - 31 * 11 + - NULLIF ( - + 53, 77 ) * - + 28
----
-1825

query II rowsort
SELECT ALL - + 65 * 47 + - - 78 AS col0, + 34 AS col1
----
-2977
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-938
SELECT ALL + + 66 * 88 * - 53 * - 72 + + 96 + + COALESCE ( + 44, 13 DIV COUNT( * ), COUNT( * ) DIV + 29 - - - 45 ) * 73
----
22166636

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + + 66 * 88 * - 53 * - 72 + + 96 + + COALESCE ( + 44, 13 / COUNT ( * ), COUNT ( * ) / + 29 - - - 45 ) * 73
----
22166636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT + - 79 * - 10 + - 10 * CAST( 94 AS SIGNED )
----
-150

skipif mysql # not compatible
query I rowsort label-939
SELECT + - 79 * - 10 + - 10 * CAST ( 94 AS INTEGER )
----
-150

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

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - 74 / + - COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL + + CASE + + 51 WHEN - 19 THEN + 73 * - - 10 END * 52 col1, 45 * COUNT( * ) AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL + + CASE + + 51 WHEN - 19 THEN + 73 * - - 10 END * 52 col1, 45 * COUNT ( * ) AS col0
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT ( - + COUNT( * ) ) + 4 * + 93 + - CAST( NULL AS SIGNED ) + - - 98 * 67 / + 81 + + - ( + 46 ) + + 53 * - - CAST( NULL AS SIGNED ) / - - 84 / COALESCE ( + - ( 80 ), + + MIN( DISTINCT + 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT ( - + COUNT ( * ) ) + 4 * + 93 + - CAST ( NULL AS INTEGER ) + - - 98 * 67 / + 81 + + - ( + 46 ) + + 53 * - - CAST ( NULL AS INTEGER ) / - - 84 / COALESCE ( + - ( 80 ), + + MIN ( DISTINCT + 94 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT COALESCE ( + 22, - - MIN( + 78 ) + + + 86, - + 40 * - - SUM( DISTINCT + 4 ) * + + 8 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT COALESCE ( + 22, - - MIN ( + 78 ) + + + 86, - + 40 * - - SUM ( DISTINCT + 4 ) * + + 8 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT - - ( - - 62 ) / - 35 * + 94 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT - - ( - - 62 ) / - 35 * + 94 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 24 + 81 AS col2
----
57

query I rowsort
SELECT DISTINCT + 66 * - 19
----
-1254

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

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT - - 76 / - COUNT ( * )
----
-76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT ALL + 33 * + + 50 DIV COUNT( * ) * - 20 AS col2
----
-33000

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 33 * + + 50 / COUNT ( * ) * - 20 AS col2
----
-33000

query I rowsort
SELECT NULLIF ( 4, - 1 * ( + 87 ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT DISTINCT - 81 AS col1, + COUNT( * ) * 54 col2
----
-81
54

skipif mysql # not compatible
query II rowsort label-951
SELECT DISTINCT - 81 AS col1, + COUNT ( * ) * 54 col2
----
-81
54

query I rowsort
SELECT DISTINCT COALESCE ( + + 78, - + 76 + + ( - ( 35 ) ) )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL 29, CASE - 5 WHEN + MAX( - 40 ) * + - 26 - + 31 THEN - 14 WHEN - 40 THEN NULL ELSE 89 END * + 34 AS col1
----
29
3026

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL 29, CASE - 5 WHEN + MAX ( - 40 ) * + - 26 - + 31 THEN - 14 WHEN - 40 THEN NULL ELSE 89 END * + 34 AS col1
----
29
3026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT - 51 AS col0, - 83 + CAST( NULL AS SIGNED ) * - 20 AS col1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-954
SELECT - 51 AS col0, - 83 + CAST ( NULL AS INTEGER ) * - 20 AS col1
----
-51
NULL

query I rowsort
SELECT ALL - + 34 - + NULLIF ( 23, + + 26 * 26 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT - 78 + + 43 + 74 + 39 DIV - - 93 * + + NULLIF ( - 82, - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-956
SELECT - 78 + + 43 + 74 + 39 / - - 93 * + + NULLIF ( - 82, - COUNT ( * ) ) AS col0
----
39

query I rowsort
SELECT ALL + 66 * + + 5 AS col0
----
330

query II rowsort
SELECT ALL ( - - 89 ), - 92 * - + 90 AS col2
----
89
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + MAX( DISTINCT - + 44 ) * + - 19 AS col1
----
836

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + MAX ( DISTINCT - + 44 ) * + - 19 AS col1
----
836

query I rowsort
SELECT ALL + 67 * - 38 * - + 45
----
114570

query I rowsort
SELECT 58 * 90 * - 71 AS col0
----
-370620

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT 3 + + COUNT( * ) AS col1, 63
----
4
63

skipif mysql # not compatible
query II rowsort label-962
SELECT 3 + + COUNT ( * ) AS col1, 63
----
4
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL - NULLIF ( - + CAST( - + ( + 63 ) AS SIGNED ), - + 51 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - NULLIF ( - + CAST ( - + ( + 63 ) AS INTEGER ), - + 51 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-964
SELECT ALL SUM( DISTINCT 43 ) + CASE - - 94 WHEN COUNT( * ) + - + 68 THEN + 9 * - - COUNT( * ) + - 42 WHEN 65 THEN + - 50 * 18 END + - - CASE - - 52 WHEN - - 0 THEN - COUNT( * ) ELSE - 89 END + + 42 / + + 50 AS col2, - 63 AS col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL SUM ( DISTINCT 43 ) + CASE - - 94 WHEN COUNT ( * ) + - + 68 THEN + 9 * - - COUNT ( * ) + - 42 WHEN 65 THEN + - 50 * 18 END + - - CASE - - 52 WHEN - - 0 THEN - COUNT ( * ) ELSE - 89 END + + 42 / + + 50 AS col2, - 63 AS col2
----
NULL
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT 3 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT 3 / + 28
----
0

query I rowsort
SELECT ALL ( - + 64 ) + + ( - + 52 ) * - COALESCE ( + - 69, 67 ) * + + 64 AS col2
----
-229696

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

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

query I rowsort
SELECT ALL - 4 + 29 AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT 93 + + 49, + COUNT( * ) AS col0
----
142
1

skipif mysql # not compatible
query II rowsort label-969
SELECT 93 + + 49, + COUNT ( * ) AS col0
----
142
1

query I rowsort
SELECT DISTINCT 58 + + 32 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + - CASE - 9 WHEN 26 - - 47 * NULLIF ( + 28, + COUNT( * ) - - + 29 ) * - + CASE + 3 WHEN + - 45 * - 26 THEN + ( - - 31 ) / - COALESCE ( 50, + - COUNT( * ) * - MAX( DISTINCT ( + - 43 ) ) ) * - 10 END THEN + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT + - CASE - 9 WHEN 26 - - 47 * NULLIF ( + 28, + COUNT ( * ) - - + 29 ) * - + CASE + 3 WHEN + - 45 * - 26 THEN + ( - - 31 ) / - COALESCE ( 50, + - COUNT ( * ) * - MAX ( DISTINCT ( + - 43 ) ) ) * - 10 END THEN + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT + 53 * + + 45 - 66 - - - 90 AS col2
----
2229

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT ALL - COALESCE ( + + ( - - 57 ), MAX( DISTINCT + 64 ) DIV + 45, - 70 ) + + + 51
----
-6

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - COALESCE ( + + ( - - 57 ), MAX ( DISTINCT + 64 ) / + 45, - 70 ) + + + 51
----
-6

query I rowsort
SELECT ALL + + 57 + - 77 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT - + MIN( - NULLIF ( - 36, - 30 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-976
SELECT - + MIN ( - NULLIF ( - 36, - 30 ) )
----
-36

query I rowsort
SELECT ALL 21 - 14 * - + 45 * + + 62 * - - 8
----
312501

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT COUNT( * ) * + - MAX( DISTINCT - - 28 ) * + - 35 AS col1, NULLIF ( + 24, + - 37 ) * 46 col0
----
980
1104

skipif mysql # not compatible
query II rowsort label-978
SELECT COUNT ( * ) * + - MAX ( DISTINCT - - 28 ) * + - 35 AS col1, NULLIF ( + 24, + - 37 ) * 46 col0
----
980
1104

query II rowsort
SELECT 47 + + 7 AS col1, 26 + + - COALESCE ( + ( - - 98 ), + - 91 )
----
54
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT + 87 - - 55 DIV COUNT( * ) * + 97 + - NULLIF ( COUNT( * ), + MAX( DISTINCT - 10 ) * - - 16 ) col2
----
5421

skipif mysql # not compatible
query I rowsort label-980
SELECT + 87 - - 55 / COUNT ( * ) * + 97 + - NULLIF ( COUNT ( * ), + MAX ( DISTINCT - 10 ) * - - 16 ) col2
----
5421

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL + COALESCE ( + - 36, - + 93 + 40, - 80 ) - + - 61 + + - 26 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + COALESCE ( + - 36, - + 93 + 40, - 80 ) - + - 61 + + - 26 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT - 10 * 6 AS col0, + COUNT( * ) - - + 44 - - - 24 * 2 * - + 98
----
-60
4749

skipif mysql # not compatible
query II rowsort label-982
SELECT - 10 * 6 AS col0, + COUNT ( * ) - - + 44 - - - 24 * 2 * - + 98
----
-60
4749

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-983
SELECT DISTINCT + 68 DIV + 60 + + COUNT( DISTINCT - 41 ), + 25 col2
----
2
25

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + 68 / + 60 + + COUNT ( DISTINCT - 41 ), + 25 col2
----
2
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-984
SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT( * ) THEN - + COUNT( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST( ( - 82 ) AS SIGNED ) ) ELSE NULL END AS col1
----
409920
NULL

skipif mysql # not compatible
query II rowsort label-984
SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT ( * ) THEN - + COUNT ( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST ( ( - 82 ) AS INTEGER ) ) ELSE NULL END AS col1
----
409920
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 76 * + 25 + - SUM( 69 ) - + ( + + 62 ) * + 39 * - 74 AS col2
----
176963

skipif mysql # not compatible
query I rowsort label-985
SELECT - 76 * + 25 + - SUM ( 69 ) - + ( + + 62 ) * + 39 * - 74 AS col2
----
176963

query I rowsort
SELECT DISTINCT + 19 * + 73 * + + 6 AS col0
----
8322

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT ALL 61 * + + COUNT( * ) * + + 3 AS col1, 21
----
183
21

skipif mysql # not compatible
query II rowsort label-987
SELECT ALL 61 * + + COUNT ( * ) * + + 3 AS col1, 21
----
183
21

query II rowsort
SELECT - 89 AS col1, 54
----
-89
54

query I rowsort
SELECT 3 * 92 AS col2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT - MAX( DISTINCT - - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - MAX ( DISTINCT - - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 95 + 54 AS col0
----
149

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

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

query I rowsort
SELECT ALL - 36 + ( + 81 ) - + 58
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT COALESCE ( ( + COUNT( * ) ), 37 ) * - 22 + 77, 33 + + ( + 29 ) AS col2
----
55
62

skipif mysql # not compatible
query II rowsort label-994
SELECT COALESCE ( ( + COUNT ( * ) ), 37 ) * - 22 + 77, 33 + + ( + 29 ) AS col2
----
55
62

query I rowsort
SELECT ALL - CASE 59 WHEN - 98 * - 94 THEN NULL ELSE - + 10 - + 92 END AS col0
----
102

query I rowsort
SELECT + 74 * 40 + + 65 + + 66
----
3091

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT 37 * + - 85 + + 72, + MAX( + 63 ) AS col1
----
-3073
63

skipif mysql # not compatible
query II rowsort label-997
SELECT 37 * + - 85 + + 72, + MAX ( + 63 ) AS col1
----
-3073
63

query I rowsort
SELECT ALL - 0 + - + 33 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT 9 * 35 DIV 22 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-999
SELECT 9 * 35 / 22 AS col0
----
14

query I rowsort
SELECT 20 * - 86 * 67
----
-115240

query I rowsort
SELECT ALL + 77 - + - 99 AS col1
----
176

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1003
SELECT ALL - CAST( NULL AS SIGNED ), - 47 col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL - CAST ( NULL AS INTEGER ), - 47 col1
----
NULL
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL - 8 DIV COALESCE ( 46, + - 12 * 24 + + 90, - 96 + + 4 + - 98 + 92 * - + 19 * 82 ) + - - 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 8 / COALESCE ( 46, + - 12 * 24 + + 90, - 96 + + 4 + - 98 + 92 * - + 19 * 82 ) + - - 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-1005
SELECT + MAX( DISTINCT 36 ) * + COALESCE ( - 64, - - COUNT( * ) ) + - 84 + - ( ( + 58 ) ) - + 0, - ( 64 ) * MAX( 34 ) * + - 72 - - 8 * 79 + 59 col2, - COUNT( * ) * + 29 AS col0
----
-2446
157363
-29

skipif mysql # not compatible
query III rowsort label-1005
SELECT + MAX ( DISTINCT 36 ) * + COALESCE ( - 64, - - COUNT ( * ) ) + - 84 + - ( ( + 58 ) ) - + 0, - ( 64 ) * MAX ( 34 ) * + - 72 - - 8 * 79 + 59 col2, - COUNT ( * ) * + 29 AS col0
----
-2446
157363
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT SUM( - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT SUM ( - - 16 )
----
16

query I rowsort
SELECT ALL 77 * - - 4 AS col2
----
308

query I rowsort
SELECT 69 + + 33 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - 39 * + COUNT( * ) * + 44 * COUNT( * ) AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - 39 * + COUNT ( * ) * + 44 * COUNT ( * ) AS col2
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT CASE - 53 WHEN ( + 15 ) * + 40 * COUNT( * ) THEN NULL WHEN - COALESCE ( 63, - + ( - COUNT( * ) ) * - 4 ) THEN - - 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT CASE - 53 WHEN ( + 15 ) * + 40 * COUNT ( * ) THEN NULL WHEN - COALESCE ( 63, - + ( - COUNT ( * ) ) * - 4 ) THEN - - 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - - 88 * 1 + - MIN( 77 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - - 88 * 1 + - MIN ( 77 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + - CASE - + COUNT( 12 ) WHEN - 67 + - 59 THEN NULL WHEN 78 THEN 45 ELSE NULL END * + + ( + + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - CASE - + COUNT ( 12 ) WHEN - 67 + - 59 THEN NULL WHEN 78 THEN 45 ELSE NULL END * + + ( + + 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - + 84 + - 80 + + 26 + + COUNT( * )
----
-137

skipif mysql # not compatible
query I rowsort label-1013
SELECT - + 84 + - 80 + + 26 + + COUNT ( * )
----
-137

query I rowsort
SELECT - + 26 - - 68 * + 26
----
1742

query I rowsort
SELECT + 25 + + - ( + 39 ) AS col1
----
-14

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

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

query I rowsort
SELECT ALL COALESCE ( + + 31, - - 3 ) + + 76
----
107

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

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

query I rowsort
SELECT DISTINCT 19 + 19 * - 11
----
-190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1020
SELECT ALL 83 + - + ( + NULLIF ( + + 80, - CASE + 82 WHEN - + ( 41 ) + 2 THEN NULL WHEN - 74 + + MIN( DISTINCT + 71 ) THEN NULL WHEN + 76 THEN + 43 + 99 + 31 * - 69 * 36 END + COUNT( 15 ) + CAST( NULL AS DECIMAL ) * - + CASE COALESCE ( 74, 12, 34 / + - 39 ) WHEN - 24 * + 15 + + + COUNT( * ) + 95 - - + 79 + 64 + - SUM( DISTINCT - ( NULLIF ( - 87, + + NULLIF ( - + 40, 87 * 30 ) ) ) ) + 28 * - 78 THEN NULL WHEN 63 * - 16 THEN - 22 / 39 END + 77 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL 83 + - + ( + NULLIF ( + + 80, - CASE + 82 WHEN - + ( 41 ) + 2 THEN NULL WHEN - 74 + + MIN ( DISTINCT + 71 ) THEN NULL WHEN + 76 THEN + 43 + 99 + 31 * - 69 * 36 END + COUNT ( 15 ) + CAST ( NULL AS REAL ) * - + CASE COALESCE ( 74, 12, 34 / + - 39 ) WHEN - 24 * + 15 + + + COUNT ( * ) + 95 - - + 79 + 64 + - SUM ( DISTINCT - ( NULLIF ( - 87, + + NULLIF ( - + 40, 87 * 30 ) ) ) ) + 28 * - 78 THEN NULL WHEN 63 * - 16 THEN - 22 / 39 END + 77 ) ) AS col2
----
3

query I rowsort
SELECT ALL 95 + + 77 AS col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1022
SELECT DISTINCT COUNT( * ) + + COALESCE ( - + 90, 84 ) DIV - 11 * - - COUNT( * ) col0, + CAST( - - 15 AS SIGNED )
----
9
15

skipif mysql # not compatible
query II rowsort label-1022
SELECT DISTINCT COUNT ( * ) + + COALESCE ( - + 90, 84 ) / - 11 * - - COUNT ( * ) col0, + CAST ( - - 15 AS INTEGER )
----
9
15

query I rowsort
SELECT DISTINCT 13 * 29
----
377

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT ALL 83 * 15 + - ( - - 56 ) * + CAST( 9 AS SIGNED ) + + + 75 + - 36 - - 63 AS col0
----
843

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL 83 * 15 + - ( - - 56 ) * + CAST ( 9 AS INTEGER ) + + + 75 + - 36 - - 63 AS col0
----
843

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1026
SELECT ALL - 89 * + COUNT( * ) + + ( + 64 ) + - + 73 - - 68 * + + 38 * + CAST( NULL AS DECIMAL ) / + 17 * - NULLIF ( 74, - 66 + + MAX( - 85 ) ) + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - 89 * + COUNT ( * ) + + ( + 64 ) + - + 73 - - 68 * + + 38 * + CAST ( NULL AS REAL ) / + 17 * - NULLIF ( 74, - 66 + + MAX ( - 85 ) ) + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + CASE + + COUNT( * ) WHEN 74 * + 24 + - - 58 THEN + + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT + CASE + + COUNT ( * ) WHEN 74 * + 24 + - - 58 THEN + + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT - 12 + COUNT( * ) AS col0, + 95 AS col1
----
-11
95

skipif mysql # not compatible
query II rowsort label-1028
SELECT - 12 + COUNT ( * ) AS col0, + 95 AS col1
----
-11
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + CASE COUNT( * ) WHEN - 65 THEN + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT + CASE COUNT ( * ) WHEN - 65 THEN + 76 END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 2, 61 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + CASE - 61 WHEN - 95 * + 16 * - + COUNT( * ) / 71 + + + 30 + + 2 + + - 34 - - + 23 * + ( + - 67 ) * - 70 + - 50 + + 47 THEN NULL WHEN + MIN( DISTINCT - + 48 ) * COUNT( * ) + + COUNT( * ) THEN NULL ELSE - 90 END col1
----
-90

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + CASE - 61 WHEN - 95 * + 16 * - + COUNT ( * ) / 71 + + + 30 + + 2 + + - 34 - - + 23 * + ( + - 67 ) * - 70 + - 50 + + 47 THEN NULL WHEN + MIN ( DISTINCT - + 48 ) * COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE - 90 END col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT ALL + + 14 * - - COUNT( * ) + + 64 - 47, COUNT( * ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-1032
SELECT ALL + + 14 * - - COUNT ( * ) + + 64 - 47, COUNT ( * ) AS col1
----
31
1

query I rowsort
SELECT ALL + ( - NULLIF ( + + 23, + 65 ) ) AS col1
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + 57 * COUNT( * ) * - + 91 - - + 77
----
-5110

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + 57 * COUNT ( * ) * - + 91 - - + 77
----
-5110

query I rowsort
SELECT + + 31 - 12 * - - 6 * - 70 AS col1
----
5071

query II rowsort
SELECT + 85 AS col2, 21 AS col1
----
85
21

query I rowsort
SELECT + 86 + ( - 16 )
----
70

query I rowsort
SELECT ALL - 46 * - - 7 AS col2
----
-322

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1041
SELECT + 86 col0, CAST( NULL AS SIGNED ) * + 91
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT + 86 col0, CAST ( NULL AS INTEGER ) * + 91
----
86
NULL

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

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

query II rowsort
SELECT - 19, 86 AS col1
----
-19
86

query I rowsort
SELECT - - 16 - + - 85 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT + COUNT( * ) AS col2, 2 * + + 79 AS col1
----
1
158

skipif mysql # not compatible
query II rowsort label-1045
SELECT + COUNT ( * ) AS col2, 2 * + + 79 AS col1
----
1
158

query II rowsort
SELECT DISTINCT + 27, 80 AS col0
----
27
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( * ) + + 66 + 33 * + - 36 * + MAX( ( + + 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + 66 + 33 * + - 36 * + MAX ( ( + + 26 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT - + 24 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT - + 24 / + 86 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL + 19 DIV - + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + 19 / - + 63 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT ALL - MAX( DISTINCT - + CAST( + 28 AS SIGNED ) ) + + 31 col1, 82 * + 85 * - CAST( NULL AS SIGNED ) + - MAX( - 64 )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT ALL - MAX ( DISTINCT - + CAST ( + 28 AS INTEGER ) ) + + 31 col1, 82 * + 85 * - CAST ( NULL AS INTEGER ) + - MAX ( - 64 )
----
59
NULL

query II rowsort
SELECT - 43 AS col0, + 96
----
-43
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1052
SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST( NULL AS SIGNED ) + 11 AS col2, - 94 DIV - CAST( + - 88 AS SIGNED ) + - + 14 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-1052
SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST ( NULL AS INTEGER ) + 11 AS col2, - 94 / - CAST ( + - 88 AS INTEGER ) + - + 14 AS col2
----
NULL
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1053
SELECT ALL 4 AS col0, - CAST( 46 AS SIGNED )
----
4
-46

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL 4 AS col0, - CAST ( 46 AS INTEGER )
----
4
-46

query I rowsort
SELECT + 84 - + 29 - + 66 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL 8 + - - 54 + + - 84 - - MIN( - - 34 )
----
12

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 8 + - - 54 + + - 84 - - MIN ( - - 34 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1056
SELECT ALL CASE - AVG ( DISTINCT - 2 ) WHEN 25 * - - 63 + - 75 + - 57 * - - NULLIF ( + CAST( - - 13 AS SIGNED ), - 60 ) THEN NULL WHEN + - 24 / - + CASE - ( + 33 ) WHEN + 52 - + CAST( - 13 AS DECIMAL ) * + 71 * + 29 THEN NULL WHEN + 56 + + 52 + 72 + 9 * + + SUM( ALL - + CAST( NULL AS SIGNED ) ) THEN 55 + COUNT( * ) ELSE - NULLIF ( 60, + 14 - 87 ) * 96 + 72 END + - 38 THEN + 19 END + 65 + - 44 + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL CASE - AVG ( DISTINCT - 2 ) WHEN 25 * - - 63 + - 75 + - 57 * - - NULLIF ( + CAST ( - - 13 AS INTEGER ), - 60 ) THEN NULL WHEN + - 24 / - + CASE - ( + 33 ) WHEN + 52 - + CAST ( - 13 AS REAL ) * + 71 * + 29 THEN NULL WHEN + 56 + + 52 + 72 + 9 * + + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) THEN 55 + COUNT ( * ) ELSE - NULLIF ( 60, + 14 - 87 ) * 96 + 72 END + - 38 THEN + 19 END + 65 + - 44 + - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT - CAST( 38 AS SIGNED ) + COUNT( * ) * + COUNT( * ) - + 7 + - 49
----
-93

skipif mysql # not compatible
query I rowsort label-1057
SELECT - CAST ( 38 AS INTEGER ) + COUNT ( * ) * + COUNT ( * ) - + 7 + - 49
----
-93

query I rowsort
SELECT ALL ( - 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT DISTINCT CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT CAST ( - 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT - 54 + - + COUNT( DISTINCT + 41 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 54 + - + COUNT ( DISTINCT + 41 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT - COALESCE ( + + CASE COALESCE ( + NULLIF ( - AVG ( 56 ), + ( - COUNT( * ) ) / COALESCE ( ( - CAST( 52 AS SIGNED ) ), 47 + + + 3 ) ), + CAST( NULL AS SIGNED ) * 95 ) WHEN CAST( NULL AS SIGNED ) THEN + + 95 END, ( + 61 ) ) * + + 96
----
-5856

skipif mysql # not compatible
query I rowsort label-1061
SELECT - COALESCE ( + + CASE COALESCE ( + NULLIF ( - AVG ( 56 ), + ( - COUNT ( * ) ) / COALESCE ( ( - CAST ( 52 AS INTEGER ) ), 47 + + + 3 ) ), + CAST ( NULL AS INTEGER ) * 95 ) WHEN CAST ( NULL AS INTEGER ) THEN + + 95 END, ( + 61 ) ) * + + 96
----
-5856

query I rowsort
SELECT - COALESCE ( 39, + 37, - 54 - - + 87 ) + - 12 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT + 36 DIV - MIN( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT + 36 / - MIN ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + 24 - COUNT( DISTINCT - 93 )
----
23

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 24 - COUNT ( DISTINCT - 93 )
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 46 * + NULLIF ( - 17, - - COUNT( * ) )
----
-782

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 46 * + NULLIF ( - 17, - - COUNT ( * ) )
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT + 13 DIV 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT + 13 / 26 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL 87 * + 5 * + 78 * + CASE - - 70 WHEN 7 THEN + 3 * - CAST( NULL AS SIGNED ) / + 77 * - 99 ELSE NULL END AS col0, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL 87 * + 5 * + 78 * + CASE - - 70 WHEN 7 THEN + 3 * - CAST ( NULL AS INTEGER ) / + 77 * - 99 ELSE NULL END AS col0, + 68
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + - NULLIF ( + 1, COUNT( * ) ) * - + 12 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT + - NULLIF ( + 1, COUNT ( * ) ) * - + 12 + COUNT ( * ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1070
SELECT + - ( + COUNT ( * ) ) / + - 47
----
0

query I rowsort
SELECT 5 * - 90 + 37
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT - + CASE + - 14 WHEN + CAST( NULL AS SIGNED ) THEN 35 / - MAX( 56 ) - - - 46 * ( - 18 ) * + 0 + 39 * + + 51 WHEN + COUNT( * ) + - 14 * - 35 THEN NULL ELSE NULL END * + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT - + CASE + - 14 WHEN + CAST ( NULL AS INTEGER ) THEN 35 / - MAX ( 56 ) - - - 46 * ( - 18 ) * + 0 + 39 * + + 51 WHEN + COUNT ( * ) + - 14 * - 35 THEN NULL ELSE NULL END * + + 54 AS col2
----
NULL

query II rowsort
SELECT + - 20 + + 71, - 33 * 40 AS col2
----
51
-1320

query I rowsort
SELECT + 79 * + - 77 + - 30 AS col1
----
-6113

query I rowsort
SELECT ALL + - 63 * + - 13 - + - 62 - - 30 * 68 col1
----
2921

query I rowsort
SELECT 52 * - 47 AS col1
----
-2444

query I rowsort
SELECT DISTINCT 98 + + - 5
----
93

query I rowsort
SELECT ALL + 73 * + + ( - 21 ) AS col1
----
-1533

query I rowsort
SELECT 32 + 66 * - 10
----
-628

onlyif mysql # aggregate syntax: 
query II rowsort label-1080
SELECT ALL MAX( + 88 ) AS col0, COUNT( ( - + 74 ) ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL MAX ( + 88 ) AS col0, COUNT ( ( - + 74 ) ) AS col2
----
88
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT DISTINCT - + SUM( - 84 ) + - + 10 + - - 82 + + CAST( NULL AS SIGNED ) * + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - + SUM ( - 84 ) + - + 10 + - - 82 + + CAST ( NULL AS INTEGER ) * + 67 col2
----
NULL

query I rowsort
SELECT + NULLIF ( 88, + 6 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL + 3 + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 70 / + ( + - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + 3 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 70 / + ( + - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT ALL - COUNT( * ) + + 13 * - 29, 60 AS col2
----
-378
60

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL - COUNT ( * ) + + 13 * - 29, 60 AS col2
----
-378
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT ALL 32, - COUNT( * ) * - 8 * - + ( - SUM( DISTINCT + - 91 ) ) * + 59 + 71 + 24 AS col0
----
32
-42857

skipif mysql # not compatible
query II rowsort label-1085
SELECT ALL 32, - COUNT ( * ) * - 8 * - + ( - SUM ( DISTINCT + - 91 ) ) * + 59 + 71 + 24 AS col0
----
32
-42857

query I rowsort
SELECT DISTINCT 37 * - ( + 8 )
----
-296

query I rowsort
SELECT 97 * 65 AS col1
----
6305

query I rowsort
SELECT 3 + + 80
----
83

query I rowsort
SELECT ALL - 49 + 86 AS col1
----
37

query I rowsort
SELECT 87 - 39 + + 24
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL + 77 / CAST( NULL AS SIGNED ) * - - 97 * + - 85 / + 59 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + 77 / CAST ( NULL AS INTEGER ) * - - 97 * + - 85 / + 59 * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1092
SELECT 28 + + 66 - + 35 + - - 15 + - + 73 + + + 2 + + 77 + + + CAST( + 99 AS SIGNED ) * 61 * - 68, + 99 - - 72 AS col2
----
-410572
171

skipif mysql # not compatible
query II rowsort label-1092
SELECT 28 + + 66 - + 35 + - - 15 + - + 73 + + + 2 + + 77 + + + CAST ( + 99 AS INTEGER ) * 61 * - 68, + 99 - - 72 AS col2
----
-410572
171

query I rowsort
SELECT ALL + 5 * + 56 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT 18 + + CASE + + 79 WHEN 80 * - + 59 THEN 97 * - 41 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT 18 + + CASE + + 79 WHEN 80 * - + 59 THEN 97 * - 41 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 22 * + 67 * - 96 AS col1
----
-141504

query II rowsort
SELECT - 20, + 53 * + 87 + + 19 AS col0
----
-20
4630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT NULLIF ( 70, - + 83 ) * + COUNT( ALL - + 36 )
----
70

skipif mysql # not compatible
query I rowsort label-1098
SELECT NULLIF ( 70, - + 83 ) * + COUNT ( ALL - + 36 )
----
70

query II rowsort
SELECT 27 AS col1, 83
----
27
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT + 61 DIV - 7 + - - 86 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 61 / - 7 + - - 86 AS col2
----
78

query I rowsort
SELECT ALL - 29 / CASE - 42 WHEN - 73 THEN NULL WHEN 79 THEN + - 76 ELSE NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT MAX ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL + 54 + NULLIF ( - + COUNT( * ), 32 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL + 54 + NULLIF ( - + COUNT ( * ), 32 ) AS col2
----
53

query I rowsort
SELECT DISTINCT + 96 * + + ( 85 ) + + 8 - - 80 col2
----
8248

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL + - CASE - 51 WHEN + 25 THEN NULL WHEN - - 21 + - 9 + + 84 * - - ( 13 ) THEN - 55 / + + MAX( ALL + + 70 ) + + SUM( 8 ) + - 84 END / - ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + - CASE - 51 WHEN + 25 THEN NULL WHEN - - 21 + - 9 + + 84 * - - ( 13 ) THEN - 55 / + + MAX ( ALL + + 70 ) + + SUM ( 8 ) + - 84 END / - ( + 58 )
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - - ( - + 58 ) + - 7 + + 55 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT - 31 DIV - 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 31 / - 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT COUNT( * ) * 78 * - 24 AS col1, - 47
----
-1872
-47

skipif mysql # not compatible
query II rowsort label-1108
SELECT COUNT ( * ) * 78 * - 24 AS col1, - 47
----
-1872
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL - CASE 60 WHEN - ( - + COUNT( * ) ) * + 23 THEN - CAST( NULL AS SIGNED ) * 71 WHEN + 18 THEN + 63 WHEN - 5 * + - COUNT( * ) + - 18 THEN - 45 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - CASE 60 WHEN - ( - + COUNT ( * ) ) * + 23 THEN - CAST ( NULL AS INTEGER ) * 71 WHEN + 18 THEN + 63 WHEN - 5 * + - COUNT ( * ) + - 18 THEN - 45 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - COALESCE ( + 23, - MAX( ALL + 96 ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1110
SELECT - COALESCE ( + 23, - MAX ( ALL + 96 ) ) AS col2
----
-23

query II rowsort
SELECT - + 75 * + + 80 + 57 + - 45 + + - ( + 70 ) + - - 11 * - - 80, ( + ( 58 ) ) AS col0
----
-5178
58

query I rowsort
SELECT DISTINCT 32 + 46 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT ALL + 53 + - + 11 * + 80 * - 74 - - - MAX( DISTINCT + 59 ) * - 70 * + COUNT( * ) AS col1, 26
----
69303
26

skipif mysql # not compatible
query II rowsort label-1113
SELECT ALL + 53 + - + 11 * + 80 * - 74 - - - MAX ( DISTINCT + 59 ) * - 70 * + COUNT ( * ) AS col1, 26
----
69303
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT 96 + - CAST( 13 AS SIGNED ) + - CAST( + 93 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT 96 + - CAST ( 13 AS INTEGER ) + - CAST ( + 93 AS INTEGER )
----
-10

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

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

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

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

query I rowsort
SELECT 32 - + 22 + - - 41 AS col1
----
51

query II rowsort
SELECT ALL + 73 * + 47 AS col0, - 47 + - - 40 AS col0
----
3431
-7

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

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

query I rowsort
SELECT 22 + + 57
----
79

query I rowsort
SELECT ALL 82 * + + 77
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT - 28 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - 28 / 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 47 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT 47 / - 95 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1125
SELECT 18 + - + CAST( NULL AS SIGNED ), 31 + 93 AS col0
----
NULL
124

skipif mysql # not compatible
query II rowsort label-1125
SELECT 18 + - + CAST ( NULL AS INTEGER ), 31 + 93 AS col0
----
NULL
124

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT DISTINCT - NULLIF ( + 30, - - 55 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - NULLIF ( + 30, - - 55 ) / - 78
----
0

query I rowsort
SELECT 66 + + 73 * 28
----
2110

query I rowsort
SELECT + 52 + + + 62 col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + ( + MAX( ALL ( - 55 ) ) ) * - 29 - + 54 + + - 44 + + 64 + - 3 * - MAX( + 60 )
----
1741

skipif mysql # not compatible
query I rowsort label-1129
SELECT + ( + MAX ( ALL ( - 55 ) ) ) * - 29 - + 54 + + - 44 + + 64 + - 3 * - MAX ( + 60 )
----
1741

query I rowsort
SELECT DISTINCT + 67 * + 53 * - 10 AS col2
----
-35510

query I rowsort
SELECT - 2 + - + 52 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - 65 * - SUM( - + 68 ) + + 13 AS col2
----
-4407

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - 65 * - SUM ( - + 68 ) + + 13 AS col2
----
-4407

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT + + 79 * - + ( + 60 ) * - MIN( + + 82 ) + - COALESCE ( + 28, + 78 ) + - 18
----
388634

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + + 79 * - + ( + 60 ) * - MIN ( + + 82 ) + - COALESCE ( + 28, + 78 ) + - 18
----
388634

query I rowsort
SELECT + 8 * - + 73 + - 97 AS col0
----
-681

query I rowsort
SELECT + - 37 + - 30 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT - + 86 / 31 + ( 29 ) + - 39 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT - + 86 / 31 + ( 29 ) + - 39 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 91 + + - 56 AS col0
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1138
SELECT + 4 + + COALESCE ( + 16, + COUNT( * ) DIV 16 + + 53 ) + - 62 AS col2, - 11 AS col0
----
-42
-11

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 4 + + COALESCE ( + 16, + COUNT ( * ) / 16 + + 53 ) + - 62 AS col2, - 11 AS col0
----
-42
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - ( - ( 28 ) ) DIV 4 + - + 57 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - ( - ( 28 ) ) / 4 + - + 57 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + 99 * - - 35 * - 58 - + MAX( DISTINCT + 31 ) AS col0
----
-201001

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + 99 * - - 35 * - 58 - + MAX ( DISTINCT + 31 ) AS col0
----
-201001

query I rowsort
SELECT + + CASE 18 WHEN + 81 THEN + + 37 / + 43 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT ALL - COUNT( * ) * + 75 - - - COUNT( * ) DIV - 78
----
-75

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - COUNT ( * ) * + 75 - - - COUNT ( * ) / - 78
----
-75

query I rowsort
SELECT + 43 * 65 AS col1
----
2795

query I rowsort
SELECT ALL 49 * + 50 col0
----
2450

query I rowsort
SELECT + 19 + + 64 * + - 7 * + - 73 + + 56
----
32779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT ALL NULLIF ( ( - 22 ), 46 + + + COUNT( * ) / CAST( NULLIF ( + MIN( + - 50 ), 4 ) AS SIGNED ) ) * - 87 + + 62
----
1976

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL NULLIF ( ( - 22 ), 46 + + + COUNT ( * ) / CAST ( NULLIF ( + MIN ( + - 50 ), 4 ) AS INTEGER ) ) * - 87 + + 62
----
1976

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

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

query I rowsort
SELECT DISTINCT ( + 62 ) * + 13 AS col1
----
806

query I rowsort
SELECT + 7 * - 25 AS col2
----
-175

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

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

query II rowsort
SELECT DISTINCT 43 AS col1, 22 AS col2
----
43
22

query I rowsort
SELECT + 83 * - 28 AS col0
----
-2324

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT + 77 + 39 * - 90 + CASE + 84 WHEN - - COUNT( * ) + 1 + + COUNT( * ) THEN NULL WHEN - 46 THEN - - 78 WHEN 43 THEN NULL END, 77 * - ( ( 73 ) ) AS col0
----
NULL
-5621

skipif mysql # not compatible
query II rowsort label-1153
SELECT + 77 + 39 * - 90 + CASE + 84 WHEN - - COUNT ( * ) + 1 + + COUNT ( * ) THEN NULL WHEN - 46 THEN - - 78 WHEN 43 THEN NULL END, 77 * - ( ( 73 ) ) AS col0
----
NULL
-5621

query II rowsort
SELECT DISTINCT 54 AS col2, - 52 AS col1
----
54
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1156
SELECT ALL 63 AS col2, 45 + - CAST( NULL AS SIGNED ) AS col2
----
63
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - COUNT( * ) + 71 + - 29 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1157
SELECT - COUNT ( * ) + 71 + - 29 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL 11 * + 64 * CAST( - + 7 AS SIGNED )
----
-4928

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 11 * + 64 * CAST ( - + 7 AS INTEGER )
----
-4928

query I rowsort
SELECT + 17 * - 81 col2
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT - 23 + - + 36 + - - 89 * - - CASE - COALESCE ( - COALESCE ( + COUNT( * ), - 41 * 18 ), 22 / - 53 + - 59, 11 + - CAST( 9 AS SIGNED ), - - 19 + + 78 - - 58 / + COUNT( * ) ) WHEN + + 5 * 82 * 31 THEN - COUNT( * ) END * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 23 + - + 36 + - - 89 * - - CASE - COALESCE ( - COALESCE ( + COUNT ( * ), - 41 * 18 ), 22 / - 53 + - 59, 11 + - CAST ( 9 AS INTEGER ), - - 19 + + 78 - - 58 / + COUNT ( * ) ) WHEN + + 5 * 82 * 31 THEN - COUNT ( * ) END * - + 87
----
NULL

query I rowsort
SELECT ALL 29 * - 16
----
-464

query II rowsort
SELECT - ( ( - 74 ) ), - 85 AS col1
----
74
-85

query I rowsort
SELECT DISTINCT 24 + - 56 AS col1
----
-32

query I rowsort
SELECT DISTINCT - 79 + 23 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT - + ( + + 63 ) DIV + 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1165
SELECT - + ( + + 63 ) / + 38 AS col1
----
-1

query I rowsort
SELECT ALL - 46 + - 1 col0
----
-47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT ALL - - 89 DIV + + 99 * + 4 DIV COUNT( * ) * MIN( - 87 ) + - 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - - 89 / + + 99 * + 4 / COUNT ( * ) * MIN ( - 87 ) + - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT COUNT( * ) DIV 92 - 56 + - 70 col0
----
-126

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT COUNT ( * ) / 92 - 56 + - 70 col0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL CAST( - + 51 AS SIGNED ) / - 61 * 89 * 63 + - 27 * - NULLIF ( - - CASE - + 30 WHEN - 86 + - 85 + 95 + - 60 THEN + COUNT( * ) WHEN - + 26 + + 54 THEN NULL END, + 59 ) * + 32 + - 47 * 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL CAST ( - + 51 AS INTEGER ) / - 61 * 89 * 63 + - 27 * - NULLIF ( - - CASE - + 30 WHEN - 86 + - 85 + 95 + - 60 THEN + COUNT ( * ) WHEN - + 26 + + 54 THEN NULL END, + 59 ) * + 32 + - 47 * 33 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL - 74 DIV 71 + - MAX( 55 ) * + SUM( - + 6 ) * 79 + + + 29
----
26098

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - 74 / 71 + - MAX ( 55 ) * + SUM ( - + 6 ) * 79 + + + 29
----
26098

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT - + 5 * - 91 * + 26 AS col1, NULLIF ( - 75, - 80 - + SUM( + 23 ) * - - COUNT( + - 70 ) ) AS col2
----
11830
-75

skipif mysql # not compatible
query II rowsort label-1172
SELECT - + 5 * - 91 * + 26 AS col1, NULLIF ( - 75, - 80 - + SUM ( + 23 ) * - - COUNT ( + - 70 ) ) AS col2
----
11830
-75

query II rowsort
SELECT DISTINCT - 94 * - - 96 - + + 50, + 23 - 15 AS col0
----
-9074
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT DISTINCT COALESCE ( 43, - 29 ) DIV COUNT( * ) + - + 12 - ( + 65 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT COALESCE ( 43, - 29 ) / COUNT ( * ) + - + 12 - ( + 65 ) AS col1
----
-34

query I rowsort
SELECT ALL - + 1 * - - 87 * + + 89 * - - 98
----
-758814

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL + NULLIF ( - SUM( ALL ( - 52 ) ), + 42 ) / - AVG ( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) + - 18 * - ( + SUM( ALL + 41 ) ) + - + 31 + - 45 - + 86 - + COUNT( DISTINCT - - 94 ) * - - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + NULLIF ( - SUM ( ALL ( - 52 ) ), + 42 ) / - AVG ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) + - 18 * - ( + SUM ( ALL + 41 ) ) + - + 31 + - 45 - + 86 - + COUNT ( DISTINCT - - 94 ) * - - 6 AS col0
----
NULL

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

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

query I rowsort
SELECT + + ( 90 ) * 22 + - + 46 + ( - 12 ) + - 25 + + ( - + 60 ) * - 59 col2
----
5437

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

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

query I rowsort
SELECT - 19 * + 65
----
-1235

query I rowsort
SELECT - 31 * + 0 AS col2
----
0

query I rowsort
SELECT ALL - 85 * 6 * 45 - - - 91
----
-23041

query II rowsort
SELECT ALL + 77 AS col1, + 1 * + 36 + - 64
----
77
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT - 83 DIV 70
----
-1

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 83 / 70
----
-1

query II rowsort
SELECT ALL + 93 col0, - 34 * - 51 AS col1
----
93
1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT + CASE 24 WHEN 94 + + NULLIF ( 0, + 52 ) THEN + COALESCE ( 34, - 39 * - CAST( - - 64 AS SIGNED ) + - - CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT + CASE 24 WHEN 94 + + NULLIF ( 0, + 52 ) THEN + COALESCE ( 34, - 39 * - CAST ( - - 64 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1188
SELECT + 36 + 94 * 1 + + 35, + ( COUNT( ALL + + 85 ) ) * + COUNT( * ) * - - COUNT( * ) AS col1, 46 AS col2
----
165
1
46

skipif mysql # not compatible
query III rowsort label-1188
SELECT + 36 + 94 * 1 + + 35, + ( COUNT ( ALL + + 85 ) ) * + COUNT ( * ) * - - COUNT ( * ) AS col1, 46 AS col2
----
165
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 55 * - + COUNT( * ) + - COUNT( * ) + MIN( DISTINCT - - 41 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1189
SELECT 55 * - + COUNT ( * ) + - COUNT ( * ) + MIN ( DISTINCT - - 41 ) AS col0
----
-15

query I rowsort
SELECT CASE + - 29 WHEN - 8 THEN NULL WHEN 82 + 90 THEN 28 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT + 59 * - - 54 + + - 27 + + CAST( NULL AS SIGNED ) / 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + 59 * - - 54 + + - 27 + + CAST ( NULL AS INTEGER ) / 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT - 17 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 17 / - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT ALL 15, MAX( DISTINCT - + ( - ( - 69 ) ) ) AS col0
----
15
-69

skipif mysql # not compatible
query II rowsort label-1193
SELECT ALL 15, MAX ( DISTINCT - + ( - ( - 69 ) ) ) AS col0
----
15
-69

query I rowsort
SELECT + 99 * + 31 AS col1
----
3069

query I rowsort
SELECT ALL 64 + + + 95 * + - 27 * - + 60 * - - 45 - 77 AS col2
----
6925487

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL 81 + - + 50 * - SUM( ALL + 21 ) AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL 81 + - + 50 * - SUM ( ALL + 21 ) AS col2
----
1131

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

query I rowsort
SELECT DISTINCT ( 41 ) + - + 92 * - - 29
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT 96 + + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 96 + + + COUNT ( * )
----
97

query II rowsort
SELECT - 89 AS col1, 91
----
-89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT - 23 + MIN( + 90 )
----
67

skipif mysql # not compatible
query I rowsort label-1201
SELECT - 23 + MIN ( + 90 )
----
67

query I rowsort
SELECT 19 * + + 36 * - ( 33 ) AS col2
----
-22572

query I rowsort
SELECT 22 + - 74
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT - SUM( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-1204
SELECT - SUM ( 2 )
----
-2

query I rowsort
SELECT ALL + 15 - + 32 + - - 11
----
-6

query I rowsort
SELECT ALL 81 * + + 97 - + 54 AS col1
----
7803

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT MIN( - 81 ) + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1207
SELECT MIN ( - 81 ) + COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT + + 11 * - 42
----
-462

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + + NULLIF ( CASE - 80 WHEN - NULLIF ( - ( - 71 ), + - MIN( DISTINCT - 82 ) * + 57 ) THEN + 68 END, + NULLIF ( 80, + - MIN( DISTINCT + 5 ) ) - 24 ) / + - 80 * + - 94 * 26 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT + + NULLIF ( CASE - 80 WHEN - NULLIF ( - ( - 71 ), + - MIN ( DISTINCT - 82 ) * + 57 ) THEN + 68 END, + NULLIF ( 80, + - MIN ( DISTINCT + 5 ) ) - 24 ) / + - 80 * + - 94 * 26 + - 59
----
NULL

query I rowsort
SELECT DISTINCT - ( - 43 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 1 * - - 27 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT 1 * - - 27 / - 68 AS col2
----
0

query II rowsort
SELECT + 19, - 55 col2
----
19
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT COUNT( * ) * + 98 + + 58 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-1214
SELECT COUNT ( * ) * + 98 + + 58 AS col0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1215
SELECT 3 * - 91 AS col1, + 94 + + - COUNT( * ) DIV SUM( DISTINCT + 54 ) * + 19 + - + 80 + - + 90 AS col2
----
-273
-76

skipif mysql # not compatible
query II rowsort label-1215
SELECT 3 * - 91 AS col1, + 94 + + - COUNT ( * ) / SUM ( DISTINCT + 54 ) * + 19 + - + 80 + - + 90 AS col2
----
-273
-76

query I rowsort
SELECT ALL - CASE - 98 WHEN - + ( - 74 ) THEN 85 END * - 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL + NULLIF ( + + CASE + CAST( NULL AS SIGNED ) WHEN - + 3 THEN + - COUNT( * ) * - 16 END, - 37 ) + + 94 + + ( - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + NULLIF ( + + CASE + CAST ( NULL AS INTEGER ) WHEN - + 3 THEN + - COUNT ( * ) * - 16 END, - 37 ) + + 94 + + ( - 42 ) AS col2
----
NULL

query I rowsort
SELECT 18 + - 38 + + 88 * + 85 col0
----
7460

query I rowsort
SELECT DISTINCT + COALESCE ( + 36, 35 + - 43, 63, - 8 * - 21 - + - 4 ) + - - 36 col0
----
72

query I rowsort
SELECT 31 * + - ( 25 ) AS col0
----
-775

query I rowsort
SELECT ALL - COALESCE ( + 44, + + 86, 25 * 22 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL - CASE - 58 WHEN 95 + + + 18 THEN - 64 END + + - 56 * - 92 + NULLIF ( + + 64, - + 95 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - CASE - 58 WHEN 95 + + + 18 THEN - 64 END + + - 56 * - 92 + NULLIF ( + + 64, - + 95 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT 53 + - 95 AS col2, COUNT( * ) AS col1
----
-42
1

skipif mysql # not compatible
query II rowsort label-1223
SELECT 53 + - 95 AS col2, COUNT ( * ) AS col1
----
-42
1

query I rowsort
SELECT DISTINCT 75 + + 12 * 61 * - 32 AS col2
----
-23349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1225
SELECT DISTINCT + - 47 DIV + + CAST( 55 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT + - 47 / + + CAST ( 55 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT 57 * - - NULLIF ( - MIN( DISTINCT 4 ), - + 28 * - 35 ) AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-1226
SELECT 57 * - - NULLIF ( - MIN ( DISTINCT 4 ), - + 28 * - 35 ) AS col2
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT - MIN( + 21 ), 15 AS col1
----
-21
15

skipif mysql # not compatible
query II rowsort label-1227
SELECT - MIN ( + 21 ), 15 AS col1
----
-21
15

query I rowsort
SELECT DISTINCT + - 72 - + 41 * - 69 AS col1
----
2757

query I rowsort
SELECT - COALESCE ( + + 84, 88 + - 96 )
----
-84

query I rowsort
SELECT + 91 + - + 76 * - + 32 AS col0
----
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT - 95 DIV - 11 col2
----
8

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 95 / - 11 col2
----
8

query I rowsort
SELECT + COALESCE ( 95, - 93 )
----
95

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

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

query I rowsort
SELECT ALL 10 - - - 86
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL MIN( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL MIN ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT COALESCE ( - 90, - 94 * + 23 + + + 91 + - COALESCE ( - + 15, + 90 DIV + 8 * 12 + + COUNT( * ) ) + 29 * + 13 DIV - 14 + - NULLIF ( - 12, COUNT( * ) DIV 63 + - + 23 ) ) * - 18 AS col2
----
1620

skipif mysql # not compatible
query I rowsort label-1236
SELECT COALESCE ( - 90, - 94 * + 23 + + + 91 + - COALESCE ( - + 15, + 90 / + 8 * 12 + + COUNT ( * ) ) + 29 * + 13 / - 14 + - NULLIF ( - 12, COUNT ( * ) / 63 + - + 23 ) ) * - 18 AS col2
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - NULLIF ( + 96, - CASE - + COUNT( * ) WHEN CASE - ( + 46 ) WHEN - 13 THEN + 94 END THEN NULL WHEN - COUNT( * ) + - - 18 THEN - 95 + 46 ELSE NULL END )
----
-96

skipif mysql # not compatible
query I rowsort label-1237
SELECT - NULLIF ( + 96, - CASE - + COUNT ( * ) WHEN CASE - ( + 46 ) WHEN - 13 THEN + 94 END THEN NULL WHEN - COUNT ( * ) + - - 18 THEN - 95 + 46 ELSE NULL END )
----
-96

query I rowsort
SELECT DISTINCT 99 * + - 90 - 92
----
-9002

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1240
SELECT DISTINCT - 90, + 81 DIV 94 AS col2
----
-90
0

skipif mysql # not compatible
query II rowsort label-1240
SELECT DISTINCT - 90, + 81 / 94 AS col2
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT MAX( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1241
SELECT MAX ( - 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT - NULLIF ( + 18, - 86 + + + 42 - 31 * + ( + COUNT( * ) ) - + - 69 * 20 * + 38 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - NULLIF ( + 18, - 86 + + + 42 - 31 * + ( + COUNT ( * ) ) - + - 69 * 20 * + 38 ) AS col2
----
-18

query I rowsort
SELECT ALL - 21 * 19 + - - 0 + + 81 AS col2
----
-318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT - 48 DIV 49 + + 15 + + SUM( + + 17 ) - 1 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1244
SELECT - 48 / 49 + + 15 + + SUM ( + + 17 ) - 1 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT COUNT( * ) + + 35 col1
----
36

skipif mysql # not compatible
query I rowsort label-1245
SELECT COUNT ( * ) + + 35 col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT 65 * - 20 + - + 68 AS col2, 23 + COUNT( * ) + + 87
----
-1368
111

skipif mysql # not compatible
query II rowsort label-1246
SELECT 65 * - 20 + - + 68 AS col2, 23 + COUNT ( * ) + + 87
----
-1368
111

query I rowsort
SELECT 66 * - + ( + + 64 )
----
-4224

query I rowsort
SELECT DISTINCT - 83 + - + 76
----
-159

query I rowsort
SELECT DISTINCT 18 + - 25 + + 35
----
28

query I rowsort
SELECT ALL + 20 * 59 AS col1
----
1180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL - 65 + 41 - - COALESCE ( ( + 85 ), - + 33 ) * + 63 * - + COUNT( - - 15 ) * 60 * 62 * - 66 + NULLIF ( 55, - + ( + CAST( NULL AS SIGNED ) ) + 89 + - 66 ) + - + 3 + + - CAST( - 3 AS SIGNED ) AS col1
----
1314759631

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - 65 + 41 - - COALESCE ( ( + 85 ), - + 33 ) * + 63 * - + COUNT ( - - 15 ) * 60 * 62 * - 66 + NULLIF ( 55, - + ( + CAST ( NULL AS INTEGER ) ) + 89 + - 66 ) + - + 3 + + - CAST ( - 3 AS INTEGER ) AS col1
----
1314759631

query I rowsort
SELECT - 47 + - - 99
----
52

query II rowsort
SELECT ALL + 92 AS col2, + 69 + + 16 * + - 27
----
92
-363

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - 66 - - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 66 - - COUNT ( * ) AS col2
----
-65

query I rowsort
SELECT - - 1 + + 45 - + 45
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT ALL + NULLIF ( + 28, + 58 + MAX( + 95 ) + 45 ) AS col0, 18 AS col2
----
28
18

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL + NULLIF ( + 28, + 58 + MAX ( + 95 ) + 45 ) AS col0, 18 AS col2
----
28
18

query II rowsort
SELECT - 84, + 89 AS col2
----
-84
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT NULLIF ( ( - COUNT( * ) ), - - CAST( - + 87 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1261
SELECT NULLIF ( ( - COUNT ( * ) ), - - CAST ( - + 87 AS INTEGER ) ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT - 46 + - + 11 * 45 - - MIN( 15 ) + - 88 + + + 59 - - 7 * + + COUNT( * ) * - + CASE - 27 WHEN + 31 + - 8 + + + ( + - 76 ) - + COUNT( * ) * 62 * 59 + + 71 THEN NULL WHEN - 24 THEN - 12 * + + 37 END + - + 55 / - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT - 46 + - + 11 * 45 - - MIN ( 15 ) + - 88 + + + 59 - - 7 * + + COUNT ( * ) * - + CASE - 27 WHEN + 31 + - 8 + + + ( + - 76 ) - + COUNT ( * ) * 62 * 59 + + 71 THEN NULL WHEN - 24 THEN - 12 * + + 37 END + - + 55 / - - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT ALL SUM( DISTINCT 26 ) * + CASE 50 WHEN 48 THEN - 83 END AS col0, - SUM( 63 ) - 18 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL SUM ( DISTINCT 26 ) * + CASE 50 WHEN 48 THEN - 83 END AS col0, - SUM ( 63 ) - 18 AS col2
----
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1265
SELECT - - CASE + - 6 WHEN - 48 / - - 70 * + + CAST( NULL AS SIGNED ) THEN + ( + 50 ) END * + 44 - - - 36 AS col0, 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1265
SELECT - - CASE + - 6 WHEN - 48 / - - 70 * + + CAST ( NULL AS INTEGER ) THEN + ( + 50 ) END * + 44 - - - 36 AS col0, 34 AS col2
----
NULL
34

query I rowsort
SELECT - - 57 + - 27
----
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT - + 82 + - 98 + + + CAST( + - 50 AS SIGNED )
----
-230

skipif mysql # not compatible
query I rowsort label-1268
SELECT - + 82 + - 98 + + + CAST ( + - 50 AS INTEGER )
----
-230

query II rowsort
SELECT ALL 3 AS col1, - 82
----
3
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL - 13 * COUNT( * ) + - 58 + - + CAST( - 75 AS SIGNED ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - 13 * COUNT ( * ) + - 58 + - + CAST ( - 75 AS INTEGER ) col2
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COUNT( * ) * 14 + + 23 + - 17 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COUNT ( * ) * 14 + + 23 + - 17 AS col1
----
20

query I rowsort
SELECT - 57 + 53 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL 72 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 72 / + - 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1275
SELECT ALL 69 * + 32 * ( + CASE + 29 WHEN - 13 / 61 * - + MIN( DISTINCT + 30 ) + - CAST( NULL AS DECIMAL ) + 22 THEN 25 * 41 / - 43 - - 68 * 71 / - CAST( NULL AS SIGNED ) ELSE NULL END ) + + + 26 - + 28 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL 69 * + 32 * ( + CASE + 29 WHEN - 13 / 61 * - + MIN ( DISTINCT + 30 ) + - CAST ( NULL AS REAL ) + 22 THEN 25 * 41 / - 43 - - 68 * 71 / - CAST ( NULL AS INTEGER ) ELSE NULL END ) + + + 26 - + 28 * + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + CASE + + 1 WHEN + 6 THEN 35 + - NULLIF ( + - NULLIF ( + - 93, - COUNT( * ) ), + ( - 61 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT + CASE + + 1 WHEN + 6 THEN 35 + - NULLIF ( + - NULLIF ( + - 93, - COUNT ( * ) ), + ( - 61 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 13 + + - 67 - COUNT( * ) - - - 70 - + - COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 13 + + - 67 - COUNT ( * ) - - - 70 - + - COUNT ( * )
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT ( + - COUNT( * ) ) AS col1, 85 * + 61
----
-1
5185

skipif mysql # not compatible
query II rowsort label-1278
SELECT ( + - COUNT ( * ) ) AS col1, 85 * + 61
----
-1
5185

query II rowsort
SELECT - 1 * + 92, 14 * - 51 col0
----
-92
-714

query I rowsort
SELECT + 94 * 55 + - 9 AS col0
----
5161

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

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

query I rowsort
SELECT + NULLIF ( - 85, + - 47 * - + 96 + + 77 - - - 72 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + ( NULLIF ( - + CASE - + MIN( DISTINCT - - 46 ) WHEN - - 45 THEN NULL WHEN - CASE 50 WHEN + 37 THEN + COUNT( * ) / + 9 * - CASE + 69 WHEN + COALESCE ( - 32, 12 ) THEN NULL ELSE 77 END + - - 96 WHEN + 83 - - + 73 * + COUNT( * ) THEN NULL ELSE NULL END * - 6 / - 65 - - 42 - - + 24 * - 43 THEN + 23 * + 76 * + - ( - 26 ) * 8 * - ( + SUM( ALL 37 ) ) END, MAX( + 11 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT + ( NULLIF ( - + CASE - + MIN ( DISTINCT - - 46 ) WHEN - - 45 THEN NULL WHEN - CASE 50 WHEN + 37 THEN + COUNT ( * ) / + 9 * - CASE + 69 WHEN + COALESCE ( - 32, 12 ) THEN NULL ELSE 77 END + - - 96 WHEN + 83 - - + 73 * + COUNT ( * ) THEN NULL ELSE NULL END * - 6 / - 65 - - 42 - - + 24 * - 43 THEN + 23 * + 76 * + - ( - 26 ) * 8 * - ( + SUM ( ALL 37 ) ) END, MAX ( + 11 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL 77 * COALESCE ( + 38, CASE 30 WHEN - - 69 / - 48 / - ( + - NULLIF ( + NULLIF ( + ( - 90 ), - - COALESCE ( - + COUNT( * ), + 83, + - COUNT( * ) * + 25 ) ), - 71 + - + 7 ) ) THEN NULL ELSE + 82 * 76 END * - 25 - + - 98 ) * + 88
----
257488

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL 77 * COALESCE ( + 38, CASE 30 WHEN - - 69 / - 48 / - ( + - NULLIF ( + NULLIF ( + ( - 90 ), - - COALESCE ( - + COUNT ( * ), + 83, + - COUNT ( * ) * + 25 ) ), - 71 + - + 7 ) ) THEN NULL ELSE + 82 * 76 END * - 25 - + - 98 ) * + 88
----
257488

query I rowsort
SELECT ALL 25 * 41 + + 14 AS col2
----
1039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT 12 * COALESCE ( + 17, 15, - CAST( NULL AS SIGNED ) ) AS col0
----
204

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 12 * COALESCE ( + 17, 15, - CAST ( NULL AS INTEGER ) ) AS col0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1287
SELECT + 23 / - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT 28 ) * - 5 + - - COUNT( * ) AS col0, - 39 AS col1
----
NULL
NULL
-39

skipif mysql # not compatible
query III rowsort label-1287
SELECT + 23 / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 28 ) * - 5 + - - COUNT ( * ) AS col0, - 39 AS col1
----
NULL
NULL
-39

query I rowsort
SELECT + 41 * - 12
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT( * ) ) BETWEEN - 84 AND COUNT( * ) THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT ( * ) ) BETWEEN - 84 AND COUNT ( * ) THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + COUNT( * ) + + - 45 - + + 84 * 60 * 20 + - + COUNT( * ) + - 7
----
-100852

skipif mysql # not compatible
query I rowsort label-1290
SELECT + COUNT ( * ) + + - 45 - + + 84 * 60 * 20 + - + COUNT ( * ) + - 7
----
-100852

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - 93 DIV + ( + 45 )
----
-2

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 93 / + ( + 45 )
----
-2

query I rowsort
SELECT + 90 * + 27
----
2430

query I rowsort
SELECT - + 87 * - + 44 + - + 62
----
3766

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT + 17 DIV - - 9
----
1

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 17 / - - 9
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT ALL 86 DIV - 11
----
-7

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL 86 / - 11
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT + - 88 * + 88 - MIN( 20 ) AS col2
----
-7764

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + - 88 * + 88 - MIN ( 20 ) AS col2
----
-7764

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL + MIN( - 92 ) * - 88
----
8096

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + MIN ( - 92 ) * - 88
----
8096

query I rowsort
SELECT DISTINCT + - 75 * - NULLIF ( - - ( - 93 ), - - 2 )
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - - ( + 50 ) * + MIN( 2 ) + - 44 col0
----
56

skipif mysql # not compatible
query I rowsort label-1299
SELECT - - ( + 50 ) * + MIN ( 2 ) + - 44 col0
----
56

query I rowsort
SELECT + 6 * + 31 col1
----
186

query I rowsort
SELECT - 75 + 24 + + 78
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT SUM( + NULLIF ( 47, + 18 + + 35 ) )
----
47

skipif mysql # not compatible
query I rowsort label-1302
SELECT SUM ( + NULLIF ( 47, + 18 + + 35 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT - + COALESCE ( - + COUNT( * ), - - NULLIF ( - 19, - - 49 + - AVG ( - ( - - 49 ) ) ) DIV + + ( 50 ) * + COALESCE ( 11, + ( - 4 ) DIV - 32, 36 * + + 77 * - MIN( - + 44 ) ) + + 11 * - MAX( 62 ) ) + - - CAST( - 33 AS SIGNED ) + + 77 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - + COALESCE ( - + COUNT ( * ), - - NULLIF ( - 19, - - 49 + - AVG ( - ( - - 49 ) ) ) / + + ( 50 ) * + COALESCE ( 11, + ( - 4 ) / - 32, 36 * + + 77 * - MIN ( - + 44 ) ) + + 11 * - MAX ( 62 ) ) + - - CAST ( - 33 AS INTEGER ) + + 77 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT - 33 * + COALESCE ( + 38, + + 20 - - + COUNT( * ) DIV + - 2 + - 29 ) + + 63 AS col0
----
-1191

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 33 * + COALESCE ( + 38, + + 20 - - + COUNT ( * ) / + - 2 + - 29 ) + + 63 AS col0
----
-1191

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

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

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

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

query II rowsort
SELECT ALL - - 75 * + 14 + 35 + + - 6 + + 48 AS col1, 94
----
1127
94

query I rowsort
SELECT - + ( + + 53 ) * - + 93 col2
----
4929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT - 25 - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-1310
SELECT - 25 - COUNT ( * )
----
-26

query I rowsort
SELECT ALL 65 + - 84 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT COUNT( * ) DIV - + NULLIF ( 98, 75 * 31 ) * - 67 - - ( + NULLIF ( + 7, 86 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) / - + NULLIF ( 98, 75 * 31 ) * - 67 - - ( + NULLIF ( + 7, 86 ) )
----
7

query I rowsort
SELECT ALL - ( + - 1 ) * + 81 * 70 * + + 34 AS col0
----
192780

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL 18 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL 18 / 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL + 66 - - 69 + - - 79 * + COALESCE ( + 42, + 75 - + + 98 * + + 47 * - COUNT( * ) ) + - 34 * - COALESCE ( 51, - ( + 44 ) ) * + - 30 + - - 35 + 7
----
-48525

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL + 66 - - 69 + - - 79 * + COALESCE ( + 42, + 75 - + + 98 * + + 47 * - COUNT ( * ) ) + - 34 * - COALESCE ( 51, - ( + 44 ) ) * + - 30 + - - 35 + 7
----
-48525

query I rowsort
SELECT 46 + - 92
----
-46

query I rowsort
SELECT 82 * 47 AS col1
----
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT 56 + - CAST( - + 99 AS SIGNED ) + - 79 * - + 5 * - - 79 AS col1
----
31360

skipif mysql # not compatible
query I rowsort label-1319
SELECT 56 + - CAST ( - + 99 AS INTEGER ) + - 79 * - + 5 * - - 79 AS col1
----
31360

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + ( - 82 ) * + 0 + COUNT( * ) - + 91 + 76 * + 52
----
3862

skipif mysql # not compatible
query I rowsort label-1320
SELECT + ( - 82 ) * + 0 + COUNT ( * ) - + 91 + 76 * + 52
----
3862

query I rowsort
SELECT DISTINCT 58 * - 67
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT COUNT( * ) * - COUNT( * ) * + - 45 + + COUNT( ALL 83 )
----
46

skipif mysql # not compatible
query I rowsort label-1322
SELECT COUNT ( * ) * - COUNT ( * ) * + - 45 + + COUNT ( ALL 83 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT 72 * - 53 * - + NULLIF ( - 28, - - ( + + 96 ) - + CAST( NULL AS SIGNED ) + - 76 + - - ( - COALESCE ( 35, + COUNT( + 94 ) ) ) / 67 * - MAX( DISTINCT + 66 ) )
----
-106848

skipif mysql # not compatible
query I rowsort label-1323
SELECT 72 * - 53 * - + NULLIF ( - 28, - - ( + + 96 ) - + CAST ( NULL AS INTEGER ) + - 76 + - - ( - COALESCE ( 35, + COUNT ( + 94 ) ) ) / 67 * - MAX ( DISTINCT + 66 ) )
----
-106848

query I rowsort
SELECT DISTINCT - 76 * 75
----
-5700

query I rowsort
SELECT 97 * + 65
----
6305

query I rowsort
SELECT ALL 57 * - 93 col0
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 87 * MIN( ALL + 2 * + 69 ) AS col1
----
12006

skipif mysql # not compatible
query I rowsort label-1327
SELECT 87 * MIN ( ALL + 2 * + 69 ) AS col1
----
12006

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT NULLIF ( COALESCE ( ( 81 ), 61 + - COUNT( * ), ( - 52 ) ), 10 ) * - ( - 45 ) AS col2
----
3645

skipif mysql # not compatible
query I rowsort label-1328
SELECT NULLIF ( COALESCE ( ( 81 ), 61 + - COUNT ( * ), ( - 52 ) ), 10 ) * - ( - 45 ) AS col2
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - 19 * 77 + COUNT( * ) AS col0
----
-1462

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 19 * 77 + COUNT ( * ) AS col0
----
-1462

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1331
SELECT COALESCE ( - 0, 58 * + COALESCE ( 42, - 31 ) + + 92 * - ( + 22 * CAST( + CAST( - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS SIGNED ) + - 79 ), - 72 ) - 24
----
-24

skipif mysql # not compatible
query I rowsort label-1331
SELECT COALESCE ( - 0, 58 * + COALESCE ( 42, - 31 ) + + 92 * - ( + 22 * CAST ( + CAST ( - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS INTEGER ) AS INTEGER ) + - 79 ), - 72 ) - 24
----
-24

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT COUNT ( * ) + - 68 AS col0
----
-67

query I rowsort
SELECT ( 52 ) + ( 1 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1334
SELECT ( + 2 ) DIV - COALESCE ( + 9 - 96, 99 DIV - 72, COALESCE ( + 62, - COUNT( * ), + 69 ) * 22 )
----
0

skipif mysql # not compatible
query I rowsort label-1334
SELECT ( + 2 ) / - COALESCE ( + 9 - 96, 99 / - 72, COALESCE ( + 62, - COUNT ( * ), + 69 ) * 22 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT 2 + COUNT ( * ) * 26 AS col0
----
28

query I rowsort
SELECT 12 + 6
----
18

query I rowsort
SELECT 47 - 76
----
-29

query I rowsort
SELECT DISTINCT 37 * 80
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ( 35 ) + + COUNT( * ) * 12 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1339
SELECT ( 35 ) + + COUNT ( * ) * 12 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT COUNT( * ) + - CASE - 75 WHEN 27 THEN NULLIF ( 96, 16 ) * CAST( + 56 / + COUNT( * ) AS SIGNED ) WHEN 90 * - 95 THEN NULL ELSE - 46 END * 45 col1
----
2071

skipif mysql # not compatible
query I rowsort label-1340
SELECT COUNT ( * ) + - CASE - 75 WHEN 27 THEN NULLIF ( 96, 16 ) * CAST ( + 56 / + COUNT ( * ) AS INTEGER ) WHEN 90 * - 95 THEN NULL ELSE - 46 END * 45 col1
----
2071

query I rowsort
SELECT 66 * - 29
----
-1914

query I rowsort
SELECT ALL - 97 - + 51
----
-148

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1344
SELECT 47 + + MAX( DISTINCT - 27 ) DIV 96 col2
----
47

skipif mysql # not compatible
query I rowsort label-1344
SELECT 47 + + MAX ( DISTINCT - 27 ) / 96 col2
----
47

query I rowsort
SELECT 56 + - 23
----
33

query I rowsort
SELECT 75 + 96 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT 82 DIV MAX( 14 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-1347
SELECT 82 / MAX ( 14 ) col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL + 61 * + CASE 31 * - ( - 87 ) WHEN + 73 + 81 THEN - MAX( 15 ) WHEN - COUNT( * ) THEN - CASE 96 WHEN - 24 / - 37 + - 83 THEN NULL WHEN 96 * - 71 THEN - CAST( NULL AS SIGNED ) - - 47 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL + 61 * + CASE 31 * - ( - 87 ) WHEN + 73 + 81 THEN - MAX ( 15 ) WHEN - COUNT ( * ) THEN - CASE 96 WHEN - 24 / - 37 + - 83 THEN NULL WHEN 96 * - 71 THEN - CAST ( NULL AS INTEGER ) - - 47 END END AS col2
----
NULL

query I rowsort
SELECT 65 * - 80 AS col1
----
-5200

query I rowsort
SELECT ALL + 35 * + 2 AS col1
----
70

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

skipif mysql # not compatible
query I rowsort label-1351
SELECT 72 / + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL + 62 * - 91
----
-5642

query I rowsort
SELECT DISTINCT - ( 13 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + 44 * + 58 AS col2
----
2552

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT - 8 / CASE 7 * CAST( NULLIF ( 37, ( + 32 ) ) * 63 AS SIGNED ) WHEN 62 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 8 / CASE 7 * CAST ( NULLIF ( 37, ( + 32 ) ) * 63 AS INTEGER ) WHEN 62 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT - 19 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - 19 / 61 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 8 + 2 * 56
----
104

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

query I rowsort
SELECT + 57 * + 39 AS col0
----
2223

query I rowsort
SELECT DISTINCT - 84 + 19 AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT ALL - 26 + + COUNT( * ) DIV 68
----
-26

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - 26 + + COUNT ( * ) / 68
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - COALESCE ( 88, + COUNT( * ), COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - COALESCE ( 88, + COUNT ( * ), COUNT ( * ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT - 62 * - CAST( 11 AS SIGNED ) + 79 * + ( COALESCE ( - COUNT( * ), 38 ) ) AS col2
----
603

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 62 * - CAST ( 11 AS INTEGER ) + 79 * + ( COALESCE ( - COUNT ( * ), 38 ) ) AS col2
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( ALL - 40 )
----
1

query I rowsort
SELECT ALL 54 * 18
----
972

query I rowsort
SELECT ALL + 23 + 21 * 83 col2
----
1766

query I rowsort
SELECT DISTINCT + 1 + - 8
----
-7

query I rowsort
SELECT ALL - 43 + - 99
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT + SUM( ALL + 53 ) DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT + SUM ( ALL + 53 ) / + 79 AS col2
----
0

query I rowsort
SELECT ALL - CASE + 78 WHEN + 75 THEN NULL ELSE 56 END
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT + 73 + - 50 DIV - 73
----
73

skipif mysql # not compatible
query I rowsort label-1372
SELECT + 73 + - 50 / - 73
----
73

query I rowsort
SELECT ( + - 36 ) * 52
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - MAX( ALL 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1374
SELECT - MAX ( ALL 61 ) AS col1
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT + MAX( 74 ) * MIN( + 80 DIV - ( 77 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1376
SELECT + MAX ( 74 ) * MIN ( + 80 / - ( 77 ) )
----
-74

query I rowsort
SELECT + 72 * - - 57 AS col2
----
4104

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

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

query I rowsort
SELECT - COALESCE ( + 38, + 82, 68 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + COUNT( * ) * 17 * - 3
----
-51

skipif mysql # not compatible
query I rowsort label-1380
SELECT + COUNT ( * ) * 17 * - 3
----
-51

query I rowsort
SELECT + NULLIF ( 83, ( 1 ) ) - - 66 AS col0
----
149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COALESCE ( - MIN( 94 ), + 96 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COALESCE ( - MIN ( 94 ), + 96 ) AS col2
----
-94

query I rowsort
SELECT NULLIF ( - + 91, 52 )
----
-91

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

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

query I rowsort
SELECT + NULLIF ( + 96, 71 ) * 72
----
6912

query I rowsort
SELECT ALL 46 * + 63 AS col1
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT + 12 DIV - 8 - + 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 12 / - 8 - + 26 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT ALL + CASE 22 WHEN + COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + CASE 22 WHEN + COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) - 23 END
----
NULL

query I rowsort
SELECT ALL - 37 * 60 + 16
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - 34 - 6 + - COUNT( * ) * - 73
----
33

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 34 - 6 + - COUNT ( * ) * - 73
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT NULLIF ( - ( 8 ), + MIN( DISTINCT + 42 ) + + 99 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1392
SELECT NULLIF ( - ( 8 ), + MIN ( DISTINCT + 42 ) + + 99 ) AS col0
----
-8

query I rowsort
SELECT - 96 * - 75 + 86 AS col1
----
7286

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + + 16 + - + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1395
SELECT + + 16 + - + COUNT ( * ) AS col2
----
15

query I rowsort
SELECT DISTINCT + - 4 * + 83 + + 23
----
-309

query I rowsort
SELECT - - ( - 30 ) + + 67
----
37

query I rowsort
SELECT - - 35 - - + ( 86 ) AS col2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT - NULLIF ( - 15, 93 ) DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT - NULLIF ( - 15, 93 ) / - 92 AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1401
SELECT - CAST( + - 28 AS SIGNED ) * + 16 + - 78 DIV 59 AS col2
----
447

skipif mysql # not compatible
query I rowsort label-1401
SELECT - CAST ( + - 28 AS INTEGER ) * + 16 + - 78 / 59 AS col2
----
447

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT - COALESCE ( + 53, 29 + + 20 DIV COALESCE ( + 53 DIV + 33, + CASE AVG ( DISTINCT 44 ) WHEN - 76 THEN - 59 WHEN 27 * 59 THEN NULL ELSE + 8 END + + 11 * - 83 ) ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT - COALESCE ( + 53, 29 + + 20 / COALESCE ( + 53 / + 33, + CASE AVG ( DISTINCT 44 ) WHEN - 76 THEN - 59 WHEN 27 * 59 THEN NULL ELSE + 8 END + + 11 * - 83 ) ) / - 95
----
0

query I rowsort
SELECT DISTINCT + + 19 * 18 + + 74 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT + 79 * COUNT( * ) * - MIN( 92 * 14 ) + COUNT( * ) AS col1
----
-101751

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + 79 * COUNT ( * ) * - MIN ( 92 * 14 ) + COUNT ( * ) AS col1
----
-101751

query I rowsort
SELECT - 65 * 50 AS col0
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL COALESCE ( COUNT( * ), 93 )
----
1

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL COALESCE ( COUNT ( * ), 93 )
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT - - COUNT( * ) * - - 67 DIV 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1408
SELECT - - COUNT ( * ) * - - 67 / 62 AS col2
----
1

query I rowsort
SELECT - ( - - 94 ) AS col2
----
-94

query I rowsort
SELECT DISTINCT + + 39 - - 73 * - ( - 60 - ( 8 ) ) AS col0
----
5003

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + 79 * - COALESCE ( + 95, COUNT( * ) + CASE 92 WHEN 82 + 79 THEN + ( NULLIF ( + 76, COUNT( * ) + 93 * 22 ) ) ELSE + 67 * 90 - 97 END )
----
-7505

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 79 * - COALESCE ( + 95, COUNT ( * ) + CASE 92 WHEN 82 + 79 THEN + ( NULLIF ( + 76, COUNT ( * ) + 93 * 22 ) ) ELSE + 67 * 90 - 97 END )
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - MIN( - CASE - - 75 WHEN + 0 THEN - COALESCE ( + ( 33 ), + 12, 39 + - 18, 71 ) END ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT - MIN ( - CASE - - 75 WHEN + 0 THEN - COALESCE ( + ( 33 ), + 12, 39 + - 18, 71 ) END ) * 50
----
NULL

query I rowsort
SELECT + 48 + + 45
----
93

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

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

query I rowsort
SELECT ALL + 79 * + 58 AS col1
----
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - COUNT( * ) + + 45 - - + ( 73 ) - - 0 col1
----
117

skipif mysql # not compatible
query I rowsort label-1416
SELECT - COUNT ( * ) + + 45 - - + ( 73 ) - - 0 col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 12 + + NULLIF ( + - COUNT( * ), + 33 + - 30 / + 26 ) * 98
----
-110

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 12 + + NULLIF ( + - COUNT ( * ), + 33 + - 30 / + 26 ) * 98
----
-110

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT - CASE + 25 WHEN ( - 53 ) THEN NULL WHEN 97 THEN CAST( NULL AS SIGNED ) * 5 END + - 41 * - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - CASE + 25 WHEN ( - 53 ) THEN NULL WHEN 97 THEN CAST ( NULL AS INTEGER ) * 5 END + - 41 * - 6 col1
----
NULL

query II rowsort
SELECT 55 AS col1, - 24 AS col0
----
55
-24

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

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

query I rowsort
SELECT + ( - + 98 ) + + 4 + 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT 99 DIV 19 * ( 63 ) * 90 AS col2
----
28350

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT 99 / 19 * ( 63 ) * 90 AS col2
----
28350

query I rowsort
SELECT + 11 + + ( 32 ) AS col0
----
43

query I rowsort
SELECT + 22 * + - 40
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 34 * - - NULLIF ( 69, 3 + COALESCE ( - COUNT( * ) + COUNT( + 27 + 38 * + 93 ) * 57, + 32, COUNT( * ) ) / + 8 )
----
2346

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 34 * - - NULLIF ( 69, 3 + COALESCE ( - COUNT ( * ) + COUNT ( + 27 + 38 * + 93 ) * 57, + 32, COUNT ( * ) ) / + 8 )
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1427
SELECT + - 39 + COALESCE ( CASE - 29 WHEN 44 + - 54 * 55 THEN NULL WHEN + 72 DIV - 52 THEN + CASE + MAX( 65 ) WHEN - 23 + SUM( DISTINCT 25 ) THEN 14 + 22 * ( 30 ) WHEN 78 + + 86 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ELSE COUNT( * ) END, + 97 ) + - 31 * MAX( 47 DIV 37 - - 87 )
----
-2766

skipif mysql # not compatible
query I rowsort label-1427
SELECT + - 39 + COALESCE ( CASE - 29 WHEN 44 + - 54 * 55 THEN NULL WHEN + 72 / - 52 THEN + CASE + MAX ( 65 ) WHEN - 23 + SUM ( DISTINCT 25 ) THEN 14 + 22 * ( 30 ) WHEN 78 + + 86 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ELSE COUNT ( * ) END, + 97 ) + - 31 * MAX ( 47 / 37 - - 87 )
----
-2766

query II rowsort
SELECT - 60 AS col2, - 79
----
-60
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + - ( NULLIF ( + + CAST( - 74 AS SIGNED ), 84 ) )
----
74

skipif mysql # not compatible
query I rowsort label-1429
SELECT + - ( NULLIF ( + + CAST ( - 74 AS INTEGER ), 84 ) )
----
74

query I rowsort
SELECT - 12 * + 31 + + + 2 AS col0
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL + - CASE - COUNT( * ) WHEN 73 - + 82 * 91 THEN - COALESCE ( + 6, + CAST( NULL AS SIGNED ) ) * 65 + 82 * 91 WHEN + 40 * + SUM( + 33 ) - 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + - CASE - COUNT ( * ) WHEN 73 - + 82 * 91 THEN - COALESCE ( + 6, + CAST ( NULL AS INTEGER ) ) * 65 + 82 * 91 WHEN + 40 * + SUM ( + 33 ) - 47 THEN NULL END
----
NULL

query I rowsort
SELECT + - 95 * + 35
----
-3325

query I rowsort
SELECT COALESCE ( - 18, - 7 * 42 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL + NULLIF ( + 90, - CAST( NULL AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + NULLIF ( + 90, - CAST ( NULL AS INTEGER ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 74 DIV - + 45 + - ( ( 76 ) ) * COUNT( 75 DIV 35 )
----
-77

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 74 / - + 45 + - ( ( 76 ) ) * COUNT ( 75 / 35 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT + - 87 + - COUNT( * ) * 39 + - CAST( + 84 + ( 53 ) * ( - NULLIF ( 43, 76 * 69 ) * + 33 ) AS SIGNED ) * - 40 col0
----
-3005046

skipif mysql # not compatible
query I rowsort label-1436
SELECT + - 87 + - COUNT ( * ) * 39 + - CAST ( + 84 + ( 53 ) * ( - NULLIF ( 43, 76 * 69 ) * + 33 ) AS INTEGER ) * - 40 col0
----
-3005046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT - 97 * CAST( - CAST( MIN( + 11 ) AS SIGNED ) AS SIGNED ) * + 64
----
68288

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 97 * CAST ( - CAST ( MIN ( + 11 ) AS INTEGER ) AS INTEGER ) * + 64
----
68288

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT CAST( + NULLIF ( 91, AVG ( DISTINCT + 90 ) + 45 ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-1439
SELECT CAST ( + NULLIF ( 91, AVG ( DISTINCT + 90 ) + 45 ) AS INTEGER )
----
91

query II rowsort
SELECT 75, 2 + - 82 + - 21 AS col0
----
75
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT - COALESCE ( + COUNT( * ), - ( + 18 ) * 3 + + CAST( NULL AS SIGNED ), 24 * COUNT( 62 ) ) * + 4 - - 43 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1441
SELECT - COALESCE ( + COUNT ( * ), - ( + 18 ) * 3 + + CAST ( NULL AS INTEGER ), 24 * COUNT ( 62 ) ) * + 4 - - 43 AS col1
----
39

query I rowsort
SELECT - + 63 * + 31 AS col1
----
-1953

query I rowsort
SELECT - 42 + - + 85
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + - 75 + 33 + 31 * 84
----
2563

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + - 75 + 33 + 31 * 84
----
2563

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1445
SELECT ALL CASE COALESCE ( NULLIF ( MAX( DISTINCT NULLIF ( 65, + CAST( NULL AS DECIMAL ) ) ), 12 ), 62, 68 ) WHEN 31 * + 18 THEN 78 / + 2 END / 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL CASE COALESCE ( NULLIF ( MAX ( DISTINCT NULLIF ( 65, + CAST ( NULL AS REAL ) ) ), 12 ), 62, 68 ) WHEN 31 * + 18 THEN 78 / + 2 END / 18 AS col1
----
NULL

query I rowsort
SELECT 37 * - 41 * - + 30 + 88 * - 72
----
39174

query I rowsort
SELECT + 15 * - 16 * + 75 + 38 AS col1
----
-17962

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT + 80 * - 15 * + + SUM( - 8 ) * 70 + + 45 AS col0
----
672045

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + 80 * - 15 * + + SUM ( - 8 ) * 70 + + 45 AS col0
----
672045

query I rowsort
SELECT 60 - + 18 col2
----
42

query I rowsort
SELECT 40 * - - 53 * + - 71
----
-150520

query I rowsort
SELECT 91 + + 88 * + 9 AS col1
----
883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT 65 * - CASE 37 WHEN - 14 - - 64 THEN 43 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT 65 * - CASE 37 WHEN - 14 - - 64 THEN 43 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT CASE - 68 WHEN 75 THEN NULL WHEN - + 49 + 4 * - 2 THEN NULL WHEN 71 THEN 85 / COUNT( * ) END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT CASE - 68 WHEN 75 THEN NULL WHEN - + 49 + 4 * - 2 THEN NULL WHEN 71 THEN 85 / COUNT ( * ) END * - 14
----
NULL

query II rowsort
SELECT DISTINCT - 31 + - 78 AS col0, - 37 + - + 46 AS col0
----
-109
-83

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

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

query I rowsort
SELECT ALL - COALESCE ( 36, - + 41 ) + - 30 * 28
----
-876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT 81 - - - 65 + - - 80 DIV NULLIF ( 15, 92 + 49 ) DIV - COUNT( * ) + 96 DIV 99 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1457
SELECT 81 - - - 65 + - - 80 / NULLIF ( 15, 92 + 49 ) / - COUNT ( * ) + 96 / 99 AS col0
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1458
SELECT 16 * + 26 AS col1, CAST( NULL AS DECIMAL )
----
416
NULL

skipif mysql # not compatible
query II rowsort label-1458
SELECT 16 * + 26 AS col1, CAST ( NULL AS REAL )
----
416
NULL

query I rowsort
SELECT ALL - - 85 + - - 58
----
143

query I rowsort
SELECT ALL + 38 + - 1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT - + 64 DIV - 58 - - + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1461
SELECT - + 64 / - 58 - - + 75 AS col1
----
76

query I rowsort
SELECT DISTINCT - - 42 AS col0
----
42

query I rowsort
SELECT 4 - - ( 55 ) * + 71 * - 44 - - 15
----
-171801

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL - 47 * - - COALESCE ( + - 10, 71 ) + NULLIF ( COUNT( * ), - ( + 62 ) * + 88 ) * 89
----
559

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - 47 * - - COALESCE ( + - 10, 71 ) + NULLIF ( COUNT ( * ), - ( + 62 ) * + 88 ) * 89
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 34 * - - NULLIF ( + 75, - COUNT( * ) + - 78 * + 6 ) + 24 AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-1465
SELECT 34 * - - NULLIF ( + 75, - COUNT ( * ) + - 78 * + 6 ) + 24 AS col0
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT - 89 DIV 17 * 72 * - 22 + 12 + 25 AS col1
----
7957

skipif mysql # not compatible
query I rowsort label-1466
SELECT - 89 / 17 * 72 * - 22 + 12 + 25 AS col1
----
7957

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - COUNT( * ) * ( 42 ) * 74 AS col1
----
-3108

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - COUNT ( * ) * ( 42 ) * 74 AS col1
----
-3108

query I rowsort
SELECT 83 + + 80 - - 66 * + 64
----
4387

query I rowsort
SELECT - 61 + + 6 + + 33
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT 73 - 87 + + 50 + - + CAST( + 75 AS SIGNED ) * 66
----
-4914

skipif mysql # not compatible
query I rowsort label-1470
SELECT 73 - 87 + + 50 + - + CAST ( + 75 AS INTEGER ) * 66
----
-4914

query I rowsort
SELECT ALL 0 * 34
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT 49 * + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT 49 * + COUNT ( * ) col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT ALL - CAST( - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - CAST ( - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1475
SELECT + CAST( NULL AS SIGNED ) + - 92, 80 + - 2 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1475
SELECT + CAST ( NULL AS INTEGER ) + - 92, 80 + - 2 col2
----
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1476
SELECT ALL - NULLIF ( - COALESCE ( - 63, 17, + ( - COUNT( * ) ) + + COUNT( * ) ), COALESCE ( - 42, ( + ( CAST( + COUNT( * ) AS DECIMAL ) ) ) * + 10 + 30 ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - NULLIF ( - COALESCE ( - 63, 17, + ( - COUNT ( * ) ) + + COUNT ( * ) ), COALESCE ( - 42, ( + ( CAST ( + COUNT ( * ) AS REAL ) ) ) * + 10 + 30 ) ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT NULLIF ( + 93, + 18 ) + + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1477
SELECT NULLIF ( + 93, + 18 ) + + + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT 76 * 85 * + 50
----
323000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1479
SELECT 7 * 57 * - 67 + COUNT( 81 ) DIV 9 AS col0
----
-26733

skipif mysql # not compatible
query I rowsort label-1479
SELECT 7 * 57 * - 67 + COUNT ( 81 ) / 9 AS col0
----
-26733

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT 24 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT 24 / + 55
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1481
SELECT CAST( - 80 AS SIGNED ) + 44 DIV 18 + + - NULLIF ( + 12, 79 * 63 )
----
-90

skipif mysql # not compatible
query I rowsort label-1481
SELECT CAST ( - 80 AS INTEGER ) + 44 / 18 + + - NULLIF ( + 12, 79 * 63 )
----
-90

query I rowsort
SELECT ALL - 16 * 60 AS col0
----
-960

query I rowsort
SELECT ALL 71 + + + 26 AS col1
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 89 DIV CAST( 59 AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 89 / CAST ( 59 AS INTEGER ) col0
----
1

query I rowsort
SELECT 81 + + 90
----
171

query I rowsort
SELECT ALL 65 + + - 84 col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL 23 * 15 DIV + + 54
----
6

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 23 * 15 / + + 54
----
6

query I rowsort
SELECT DISTINCT 82 + 10
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + MAX( + + ( - 36 ) ) + 0 * + 78
----
-36

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + MAX ( + + ( - 36 ) ) + 0 * + 78
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT 53, ( + COUNT( * ) ) * - CASE - COUNT( * ) WHEN 0 THEN NULL WHEN 5 THEN + 72 ELSE NULL END * + CASE - 12 WHEN - 68 / 39 - - 11 THEN 23 END AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1491
SELECT DISTINCT 53, ( + COUNT ( * ) ) * - CASE - COUNT ( * ) WHEN 0 THEN NULL WHEN 5 THEN + 72 ELSE NULL END * + CASE - 12 WHEN - 68 / 39 - - 11 THEN 23 END AS col1
----
53
NULL

query I rowsort
SELECT ALL - 44 + - 33
----
-77

query I rowsort
SELECT 71 + 76
----
147

query I rowsort
SELECT CASE + - 79 WHEN + ( + + 76 ) THEN + 99 + + 94 WHEN 62 THEN NULL END * - ( 98 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL + 72 DIV + - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + 72 / + - 76 col0
----
0

query I rowsort
SELECT 90 + + 43 * - 16 AS col0
----
-598

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

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

query I rowsort
SELECT ALL - ( + 50 ) * - + 27 * - 6
----
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - - 7 * + 1 + + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - - 7 * + 1 + + + COUNT ( * ) AS col0
----
8

query II rowsort
SELECT + 7, 53 col2
----
7
53

query I rowsort
SELECT 18 + + 46
----
64

query I rowsort
SELECT 49 * + 48 AS col2
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT COUNT( * ) col1, - 42 * + 57 * - 36 AS col0
----
1
86184

skipif mysql # not compatible
query II rowsort label-1504
SELECT COUNT ( * ) col1, - 42 * + 57 * - 36 AS col0
----
1
86184

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

skipif mysql # not compatible
query I rowsort label-1505
SELECT + + MAX ( - 67 )
----
-67

query I rowsort
SELECT 95 + - - 40 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - - 2 * - ( + - 95 ) + + 21 * - 45 + - 22 * COUNT( * ) AS col1
----
-777

skipif mysql # not compatible
query I rowsort label-1507
SELECT - - 2 * - ( + - 95 ) + + 21 * - 45 + - 22 * COUNT ( * ) AS col1
----
-777

query I rowsort
SELECT - + 35 * + 56 * - - 76 - + 13 * 78
----
-149974

query I rowsort
SELECT + + 30 * 3 AS col1
----
90

query II rowsort
SELECT ALL + 87, 5 AS col2
----
87
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + 91 / - ( COUNT( * ) ) - 97 * CASE + MIN( ALL - 79 ) WHEN 32 THEN NULL WHEN - COUNT( * ) * 88 THEN 3 ELSE NULL END * + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 91 / - ( COUNT ( * ) ) - 97 * CASE + MIN ( ALL - 79 ) WHEN 32 THEN NULL WHEN - COUNT ( * ) * 88 THEN 3 ELSE NULL END * + 14 col2
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT COUNT( * ) * - ( + COALESCE ( - CAST( NULL AS SIGNED ), - MAX( - 75 ), + 36 ) ) - 84
----
-159

skipif mysql # not compatible
query I rowsort label-1515
SELECT COUNT ( * ) * - ( + COALESCE ( - CAST ( NULL AS INTEGER ), - MAX ( - 75 ), + 36 ) ) - 84
----
-159

query I rowsort
SELECT ALL 84 * 43
----
3612

query I rowsort
SELECT + 89 * - 13 * - 34 AS col2
----
39338

query I rowsort
SELECT + 95 + + 62 * 91 col0
----
5737

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1520
SELECT DISTINCT + 7 AS col2, + CASE - 98 WHEN - COUNT( * ) * + 79 THEN NULL ELSE - 55 DIV + COUNT( * ) END
----
7
-55

skipif mysql # not compatible
query II rowsort label-1520
SELECT DISTINCT + 7 AS col2, + CASE - 98 WHEN - COUNT ( * ) * + 79 THEN NULL ELSE - 55 / + COUNT ( * ) END
----
7
-55

query I rowsort
SELECT ALL 48 * + 77
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + SUM( - 51 ) + 10 col1
----
-41

skipif mysql # not compatible
query I rowsort label-1522
SELECT + SUM ( - 51 ) + 10 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT 83 + + 29 + - 14 * - + COUNT( * ) + + 79 * 63 AS col2
----
5103

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 83 + + 29 + - 14 * - + COUNT ( * ) + + 79 * 63 AS col2
----
5103

query I rowsort
SELECT ALL 41 + + + 9 - - 44
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COUNT( * ) * + + NULLIF ( 62, - + ( + 78 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) * + + NULLIF ( 62, - + ( + 78 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - 5 + - + 54 - - COUNT( ALL NULLIF ( + COALESCE ( + - 14, + 36 * - 50 ), + 68 ) ) * 65
----
6

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 5 + - + 54 - - COUNT ( ALL NULLIF ( + COALESCE ( + - 14, + 36 * - 50 ), + 68 ) ) * 65
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - 64 * - 29 * + + COUNT( * ) AS col2
----
1856

skipif mysql # not compatible
query I rowsort label-1527
SELECT - 64 * - 29 * + + COUNT ( * ) AS col2
----
1856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT ALL COUNT( ALL + - ( - 38 ) ) DIV + ( - 46 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL COUNT ( ALL + - ( - 38 ) ) / + ( - 46 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT - 82 + - 44 + - COUNT( * ) * + 59 * 57 DIV + + 37 AS col0
----
-216

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 82 + - 44 + - COUNT ( * ) * + 59 * 57 / + + 37 AS col0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - ( - + CASE + 15 WHEN + + 89 + + 16 THEN + COUNT( * ) ELSE + 37 * 11 - + 51 * 61 END )
----
-2704

skipif mysql # not compatible
query I rowsort label-1530
SELECT - ( - + CASE + 15 WHEN + + 89 + + 16 THEN + COUNT ( * ) ELSE + 37 * 11 - + 51 * 61 END )
----
-2704

query I rowsort
SELECT ALL - NULLIF ( 67, 20 ) - 48 * + - 22
----
989

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT - CAST( NULL AS SIGNED ) / + CAST( + + CASE + 83 WHEN + COUNT( * ) THEN - MIN( 27 ) ELSE 12 / SUM( ALL 95 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( + + CASE + 83 WHEN + COUNT ( * ) THEN - MIN ( 27 ) ELSE 12 / SUM ( ALL 95 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1534
SELECT ALL 7 AS col0, + 98 DIV + - MAX( + - 81 ) - - ( - 68 )
----
7
-67

skipif mysql # not compatible
query II rowsort label-1534
SELECT ALL 7 AS col0, + 98 / + - MAX ( + - 81 ) - - ( - 68 )
----
7
-67

query I rowsort
SELECT DISTINCT - 69 * - - ( 97 )
----
-6693

query II rowsort
SELECT 63 AS col0, 17 * - - 88
----
63
1496

query I rowsort
SELECT - ( - 69 ) * 12 + - 22 AS col1
----
806

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT - - 25 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-1539
SELECT - - 25 / 14
----
1

query I rowsort
SELECT + + 56 + ( 80 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - - CASE - COUNT( DISTINCT - + 62 ) WHEN + 88 + - + 16 + - COALESCE ( 19, + 34 + + COUNT( * ) * 60 ) + CASE - 52 WHEN + MIN( 39 ) THEN 77 + + 36 WHEN COUNT( * ) THEN NULL WHEN MIN( ALL 89 ) THEN NULL ELSE - 1 * 76 + 7 END / + 51 THEN + 59 * 35 WHEN - CASE - 60 WHEN 46 THEN 4 END THEN 88 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - CASE - COUNT ( DISTINCT - + 62 ) WHEN + 88 + - + 16 + - COALESCE ( 19, + 34 + + COUNT ( * ) * 60 ) + CASE - 52 WHEN + MIN ( 39 ) THEN 77 + + 36 WHEN COUNT ( * ) THEN NULL WHEN MIN ( ALL 89 ) THEN NULL ELSE - 1 * 76 + 7 END / + 51 THEN + 59 * 35 WHEN - CASE - 60 WHEN 46 THEN 4 END THEN 88 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT 0 AS col1, COUNT( * ) + - 51 + 98 - - - 7 * - 74
----
0
566

skipif mysql # not compatible
query II rowsort label-1542
SELECT 0 AS col1, COUNT ( * ) + - 51 + 98 - - - 7 * - 74
----
0
566

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - - 81 + SUM( ALL - 94 )
----
-13

skipif mysql # not compatible
query I rowsort label-1543
SELECT - - 81 + SUM ( ALL - 94 )
----
-13

query II rowsort
SELECT DISTINCT + 84 AS col0, + 72 AS col1
----
84
72

query II rowsort
SELECT ALL + - 82 AS col0, + ( 5 ) AS col1
----
-82
5

query I rowsort
SELECT ALL + - NULLIF ( - + 47, + + 92 * - - ( + 13 ) )
----
47

query I rowsort
SELECT ALL + + 38 * + + 14 AS col1
----
532

query I rowsort
SELECT - - 79 + 35 * + 37 AS col2
----
1374

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT + ( 80 ) * + 32 AS col0, - ( + MIN( DISTINCT + 31 ) )
----
2560
-31

skipif mysql # not compatible
query II rowsort label-1549
SELECT + ( 80 ) * + 32 AS col0, - ( + MIN ( DISTINCT + 31 ) )
----
2560
-31

query I rowsort
SELECT ( 84 ) col1
----
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - COUNT( * ) + + + MAX( + ( + 33 ) ) + + + 30 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1553
SELECT - COUNT ( * ) + + + MAX ( + ( + 33 ) ) + + + 30 AS col0
----
62

query I rowsort
SELECT + COALESCE ( + 48, - + 18 * 98 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT ALL 36 * + COALESCE ( - 21, + CAST( ( + + 83 ) AS SIGNED ) ) + - 94 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL 36 * + COALESCE ( - 21, + CAST ( ( + + 83 ) AS INTEGER ) ) + - 94 AS col1
----
-850

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT DISTINCT COUNT( * ) * - CAST( 20 AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT COUNT ( * ) * - CAST ( 20 AS INTEGER ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT 81 * + - COUNT( + 45 ) + 17 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1558
SELECT 81 * + - COUNT ( + 45 ) + 17 AS col0
----
-64

query I rowsort
SELECT ALL 70 * + - 42
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT - 76 + 70 + - COUNT( * ) - - - 50 col0
----
-57

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 76 + 70 + - COUNT ( * ) - - - 50 col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT + COUNT( * ) * + ( 37 ) * + + 23 DIV COUNT( * ) * - SUM( ALL - 24 ) * + 70 AS col0
----
1429680

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + COUNT ( * ) * + ( 37 ) * + + 23 / COUNT ( * ) * - SUM ( ALL - 24 ) * + 70 AS col0
----
1429680

query I rowsort
SELECT + 22 + - + 77
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT + + SUM( DISTINCT 41 ) + - 62 * 21
----
-1261

skipif mysql # not compatible
query I rowsort label-1563
SELECT + + SUM ( DISTINCT 41 ) + - 62 * 21
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + + 96 * + - CASE - 90 WHEN COUNT( * ) THEN - 34 ELSE - 69 END + + 71 + + 18
----
6713

skipif mysql # not compatible
query I rowsort label-1564
SELECT + + 96 * + - CASE - 90 WHEN COUNT ( * ) THEN - 34 ELSE - 69 END + + 71 + + 18
----
6713

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT + - 85 + + SUM( - - 53 ) + + COUNT( * ) * 70 AS col2, COUNT( * ) AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-1565
SELECT + - 85 + + SUM ( - - 53 ) + + COUNT ( * ) * 70 AS col2, COUNT ( * ) AS col2
----
38
1

query II rowsort
SELECT + 14 + + + 1 col2, 61
----
15
61

query I rowsort
SELECT 78 + - + 93 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT - - MAX( DISTINCT - 20 ) AS col2, + 20
----
-20
20

skipif mysql # not compatible
query II rowsort label-1568
SELECT - - MAX ( DISTINCT - 20 ) AS col2, + 20
----
-20
20

query I rowsort
SELECT - 27 * 18 AS col0
----
-486

query I rowsort
SELECT - 36 + - - 78 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL + 13 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 13 / - 45
----
0

query I rowsort
SELECT DISTINCT + 97 + + 6
----
103

query II rowsort
SELECT ALL + ( 63 ) + - 79, 64 AS col1
----
-16
64

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

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

query I rowsort
SELECT ALL + 64 + 96
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT NULLIF ( + - MAX( 27 ), + + 20 ) * 8 + - 57
----
-273

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT NULLIF ( + - MAX ( 27 ), + + 20 ) * 8 + - 57
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + NULLIF ( 30, + 3 + + 95 ) * + COUNT( ALL + - 3 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1577
SELECT + NULLIF ( 30, + 3 + + 95 ) * + COUNT ( ALL + - 3 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT + ( + 2 ) + 19 - 16 * - SUM( ALL + CASE WHEN NOT ( 38 ) >= - 92 * + 92 THEN - 72 END ) * - NULLIF ( + 33 + 0, - 57 / - 70 + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + ( + 2 ) + 19 - 16 * - SUM ( ALL + CASE WHEN NOT ( 38 ) >= - 92 * + 92 THEN - 72 END ) * - NULLIF ( + 33 + 0, - 57 / - 70 + 98 ) AS col0
----
NULL

query I rowsort
SELECT + - 71 * + 81 + 92 * + 59 col0
----
-323

query I rowsort
SELECT ALL - 57 + + - 49 AS col1
----
-106

query I rowsort
SELECT DISTINCT - ( - 62 )
----
62

query I rowsort
SELECT ALL + 85 * + 16 AS col1
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL - 58 + - 98 + - + COUNT( * ), + 28 + + 37 AS col0
----
-157
65

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 58 + - 98 + - + COUNT ( * ), + 28 + + 37 AS col0
----
-157
65

query I rowsort
SELECT DISTINCT + 3 * - 66 AS col0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT 75 - - CAST( 52 AS SIGNED ) * 92 - - 54 - + - 87 * 61
----
10220

skipif mysql # not compatible
query I rowsort label-1585
SELECT 75 - - CAST ( 52 AS INTEGER ) * 92 - - 54 - + - 87 * 61
----
10220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + CASE - 48 WHEN + - 8 THEN + 5 WHEN + + 16 THEN NULL END * - COUNT( * ) * + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + CASE - 48 WHEN + - 8 THEN + 5 WHEN + + 16 THEN NULL END * - COUNT ( * ) * + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 31 * - 84 + + COUNT( * )
----
2605

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 31 * - 84 + + COUNT ( * )
----
2605

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL - COALESCE ( + CASE - - MAX( + 39 ) WHEN - - ( - 13 ) THEN 4 ELSE NULL END, 42 ) - 30 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - COALESCE ( + CASE - - MAX ( + 39 ) WHEN - - ( - 13 ) THEN 4 ELSE NULL END, 42 ) - 30 AS col2
----
-72

query II rowsort
SELECT 0 * - 47 * - 36 AS col1, 20 * - - 50 * 94 * + + 2 AS col1
----
0
188000

query I rowsort
SELECT ALL - 86 * 90 col0
----
-7740

query II rowsort
SELECT DISTINCT - 48 AS col2, - 17 * + 62 AS col1
----
-48
-1054

query I rowsort
SELECT 19 - - 18 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT ALL 17 DIV - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 17 / - 65 col1
----
0

query II rowsort
SELECT 20 AS col1, + 23
----
20
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT 55 + - + 81 + + COUNT( * ) * + 15 + - 84 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1596
SELECT 55 + - + 81 + + COUNT ( * ) * + 15 + - 84 AS col2
----
-95

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT + COUNT ( * ) / - 4
----
0

query I rowsort
SELECT ALL - - 50 * + 75 AS col0
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT - 54 + + + MAX( - 81 )
----
-135

skipif mysql # not compatible
query I rowsort label-1599
SELECT - 54 + + + MAX ( - 81 )
----
-135

query II rowsort
SELECT + 59 * + + ( + + ( - 56 ) ), 6 AS col2
----
-3304
6

query II rowsort
SELECT - - 4 AS col0, 88 AS col2
----
4
88

query I rowsort
SELECT - 68 + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL COUNT( * ) * + 28 * - 43 + - + COUNT( * ) + - - SUM( - 78 )
----
-1283

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL COUNT ( * ) * + 28 * - 43 + - + COUNT ( * ) + - - SUM ( - 78 )
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - + CASE 88 WHEN + 25 THEN - + 7 WHEN - - 12 + + COUNT( * ) THEN NULL WHEN - 33 THEN NULL ELSE + - 56 END + 12
----
68

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - + CASE 88 WHEN + 25 THEN - + 7 WHEN - - 12 + + COUNT ( * ) THEN NULL WHEN - 33 THEN NULL ELSE + - 56 END + 12
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT DISTINCT 4 col2, + 28 + + ( - + COUNT( * ) )
----
4
27

skipif mysql # not compatible
query II rowsort label-1605
SELECT DISTINCT 4 col2, + 28 + + ( - + COUNT ( * ) )
----
4
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT ALL + SUM( - 13 ) * - 58 + + 54 DIV + - COUNT( * )
----
700

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL + SUM ( - 13 ) * - 58 + + 54 / + - COUNT ( * )
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL + + 46 * - COUNT( * ) * - 24 * + - 84 * - + COUNT( * ) * - 52 AS col2, - 59 * - 5
----
-4822272
295

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL + + 46 * - COUNT ( * ) * - 24 * + - 84 * - + COUNT ( * ) * - 52 AS col2, - 59 * - 5
----
-4822272
295

query I rowsort
SELECT DISTINCT 82 + 33 AS col1
----
115

query I rowsort
SELECT - 1 - - - 46
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL 44 + + + CAST( - + 20 AS SIGNED ) * + - 3 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 44 + + + CAST ( - + 20 AS INTEGER ) * + - 3 AS col0
----
104

query I rowsort
SELECT 52 + + - 81 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1612
SELECT ALL CAST( 91 AS SIGNED ) + + 82 DIV 56 * 57 + + 94 AS col2
----
242

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL CAST ( 91 AS INTEGER ) + + 82 / 56 * 57 + + 94 AS col2
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL - CAST( NULL AS SIGNED ) * - 85 + CASE - NULLIF ( - 88, - 96 ) WHEN 29 THEN 42 - - 2 * + ( + 48 ) END * + ( - 7 * MAX( DISTINCT 49 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - CAST ( NULL AS INTEGER ) * - 85 + CASE - NULLIF ( - 88, - 96 ) WHEN 29 THEN 42 - - 2 * + ( + 48 ) END * + ( - 7 * MAX ( DISTINCT 49 ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT COUNT( * ) * + 29 + 50 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT COUNT ( * ) * + 29 + 50 AS col0
----
79

query I rowsort
SELECT ALL 25 * + - 77 AS col1
----
-1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT + ( + 96 ) * - 65 * - 14 * + CAST( COUNT( * ) AS SIGNED ) + - - 37 + - - 20 + + 61 * COUNT( * )
----
87478

skipif mysql # not compatible
query I rowsort label-1617
SELECT + ( + 96 ) * - 65 * - 14 * + CAST ( COUNT ( * ) AS INTEGER ) + - - 37 + - - 20 + + 61 * COUNT ( * )
----
87478

query I rowsort
SELECT ALL 90 * - - 5 - 3 AS col2
----
447

query I rowsort
SELECT DISTINCT 60 * + 21 col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL COUNT( * ) * MAX( ALL + + COALESCE ( + 27, 53 ) )
----
27

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( * ) * MAX ( ALL + + COALESCE ( + 27, 53 ) )
----
27

query II rowsort
SELECT 10 * + 73 AS col0, ( - 3 ) AS col1
----
730
-3

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

query I rowsort
SELECT 10 * + 54
----
540

query I rowsort
SELECT 19 + + + 97
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1625
SELECT DISTINCT - ( - 79 ) * - - 59 * + + 79 col1, + 55 * 36 + + COALESCE ( + - 72, COUNT( * ) - COALESCE ( + ( CAST( NULL AS SIGNED ) ), 68 ), + 13 + 80 * + 70, + SUM( ALL 73 ) - - 57 ) * COUNT( * )
----
368219
1908

skipif mysql # not compatible
query II rowsort label-1625
SELECT DISTINCT - ( - 79 ) * - - 59 * + + 79 col1, + 55 * 36 + + COALESCE ( + - 72, COUNT ( * ) - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), 68 ), + 13 + 80 * + 70, + SUM ( ALL 73 ) - - 57 ) * COUNT ( * )
----
368219
1908

query I rowsort
SELECT 0 * - 35
----
0

query II rowsort
SELECT 35 * + 24, 33 AS col1
----
840
33

query I rowsort
SELECT ALL - 55 * - 14 AS col2
----
770

query I rowsort
SELECT 6 + 52 + + - 90 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - NULLIF ( SUM( DISTINCT 77 ), - 23 ) * - + 17 + - 62
----
1247

skipif mysql # not compatible
query I rowsort label-1630
SELECT - NULLIF ( SUM ( DISTINCT 77 ), - 23 ) * - + 17 + - 62
----
1247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT - + 63 * + COUNT( * ) - - CAST( - - 37 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-1631
SELECT - + 63 * + COUNT ( * ) - - CAST ( - - 37 AS INTEGER )
----
-26

query I rowsort
SELECT DISTINCT - COALESCE ( - + 71, 94 ) + + 71
----
142

query I rowsort
SELECT ALL - + 23 + + 29
----
6

onlyif mysql # DIV for integer division: 
query III rowsort label-1634
SELECT - 18 + + + 27 + 90 + + 67 AS col2, - 55 + - 37 DIV 67 AS col2, 84
----
166
-55
84

skipif mysql # not compatible
query III rowsort label-1634
SELECT - 18 + + + 27 + 90 + + 67 AS col2, - 55 + - 37 / 67 AS col2, 84
----
166
-55
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - 32 + + + 91 + + CASE - ( + 73 ) WHEN 35 + - - ( - COUNT( * ) ) THEN NULL WHEN 1 THEN + 85 WHEN 34 + 10 THEN NULL END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT - 32 + + + 91 + + CASE - ( + 73 ) WHEN 35 + - - ( - COUNT ( * ) ) THEN NULL WHEN 1 THEN + 85 WHEN 34 + 10 THEN NULL END + + 96
----
NULL

query II rowsort
SELECT - 71 + + 51 AS col2, - 46
----
-20
-46

query I rowsort
SELECT + - 36 - + 37
----
-73

query I rowsort
SELECT - 98 + CASE - 46 WHEN + 92 * + 87 * + 77 THEN + - ( - 50 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT + - 86 + + CAST( + 40 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1639
SELECT + - 86 + + CAST ( + 40 AS INTEGER )
----
-46

query I rowsort
SELECT ALL + 81 + 69
----
150

query I rowsort
SELECT - + 75 * + 46 AS col1
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT + 53 - + + 56 - - CASE - - 53 WHEN + + 82 + - + COUNT( * ) THEN 95 * - 72 + 76 * + 22 WHEN 49 THEN 77 + - 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + 53 - + + 56 - - CASE - - 53 WHEN + + 82 + - + COUNT ( * ) THEN 95 * - 72 + 76 * + 22 WHEN 49 THEN 77 + - 18 END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + - 39 - + 31 - - 54 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT - - 76 * COALESCE ( - 90, - CASE - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + + ( + - ( 68 ) ) THEN SUM( DISTINCT + 90 ) DIV + 56 WHEN - 84 THEN NULL ELSE - 81 + 85 END ) * 97 + + 98 AS col1
----
-663382

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - - 76 * COALESCE ( - 90, - CASE - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + + ( + - ( 68 ) ) THEN SUM ( DISTINCT + 90 ) / + 56 WHEN - 84 THEN NULL ELSE - 81 + 85 END ) * 97 + + 98 AS col1
----
-663382

query I rowsort
SELECT + 95 + 22
----
117

query I rowsort
SELECT - 7 * - 66 AS col1
----
462

query I rowsort
SELECT + 13 * + 36 * + 52
----
24336

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + SUM( DISTINCT - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1649
SELECT + SUM ( DISTINCT - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT ( COALESCE ( 61, + 69 * 59, + 0 * 16 + CASE 56 WHEN + CAST( 35 AS SIGNED ) THEN + 67 WHEN + 93 THEN NULL END ) )
----
61

skipif mysql # not compatible
query I rowsort label-1650
SELECT ( COALESCE ( 61, + 69 * 59, + 0 * 16 + CASE 56 WHEN + CAST ( 35 AS INTEGER ) THEN + 67 WHEN + 93 THEN NULL END ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 62 * - COUNT( * ) * + CAST( + - COUNT( - - 79 ) AS SIGNED ) * + ( - MAX( DISTINCT - - 11 ) ) + - 9 / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 62 * - COUNT ( * ) * + CAST ( + - COUNT ( - - 79 ) AS INTEGER ) * + ( - MAX ( DISTINCT - - 11 ) ) + - 9 / - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT + 29 DIV + - ( + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 29 / + - ( + 82 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 53 * - 53
----
-2809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT + ( - + CASE + 73 WHEN - COUNT( 60 ) THEN NULL ELSE - - NULLIF ( - MIN( - + CAST( NULL AS SIGNED ) ), - NULLIF ( 77, 13 / - 52 ) ) * + COUNT( + 19 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + ( - + CASE + 73 WHEN - COUNT ( 60 ) THEN NULL ELSE - - NULLIF ( - MIN ( - + CAST ( NULL AS INTEGER ) ), - NULLIF ( 77, 13 / - 52 ) ) * + COUNT ( + 19 ) END )
----
NULL

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

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

query I rowsort
SELECT + 11 * + - 34 AS col0
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT 32 * - 56 * - 6 - - COALESCE ( + 72, - - 9 DIV + - 4 + - 62, + 7 )
----
10824

skipif mysql # not compatible
query I rowsort label-1657
SELECT 32 * - 56 * - 6 - - COALESCE ( + 72, - - 9 / + - 4 + - 62, + 7 )
----
10824

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1658
SELECT NULLIF ( ( + MIN( ALL 5 ) ), - - 41 ) AS col1, - 21 DIV - COALESCE ( 36, + + 95 + + 21 * 72 ) - + 9
----
5
-9

skipif mysql # not compatible
query II rowsort label-1658
SELECT NULLIF ( ( + MIN ( ALL 5 ) ), - - 41 ) AS col1, - 21 / - COALESCE ( 36, + + 95 + + 21 * 72 ) - + 9
----
5
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT CASE WHEN NOT CAST( NULL AS SIGNED ) < + 40 THEN + 44 END * - MIN( + 36 ) + + 94 + - ( + ( COUNT( * ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT CASE WHEN NOT CAST ( NULL AS INTEGER ) < + 40 THEN + 44 END * - MIN ( + 36 ) + + 94 + - ( + ( COUNT ( * ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + MIN( DISTINCT - ( + 53 ) ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + MIN ( DISTINCT - ( + 53 ) ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + NULLIF ( - 32, 37 * - MIN( ALL + + 90 ) * - 76 + - + 75 * + 12 * + 63 )
----
-32

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + NULLIF ( - 32, 37 * - MIN ( ALL + + 90 ) * - 76 + - + 75 * + 12 * + 63 )
----
-32

query I rowsort
SELECT DISTINCT - 10 * + 60 * + - 81 * ( + + 81 ) + - ( + 56 ) * + + 19 + - - 72
----
3935608

query II rowsort
SELECT DISTINCT - + 51 * 3 + - 33 AS col2, - 52 AS col0
----
-186
-52

query I rowsort
SELECT ALL 83 * - 55 * + 16 + + + 86 col1
----
-72954

query I rowsort
SELECT - 16 * + 87 AS col1
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT - + SUM( ALL + + 84 ) * - - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT - + SUM ( ALL + + 84 ) * - - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT 65 AS col2, - COUNT( * ) - + 49 * COUNT( * ) AS col1
----
65
-50

skipif mysql # not compatible
query II rowsort label-1667
SELECT 65 AS col2, - COUNT ( * ) - + 49 * COUNT ( * ) AS col1
----
65
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT + - CAST( - 98 AS SIGNED ) * - 41 * + COUNT( + 49 ) * - 64 + 67 * - SUM( DISTINCT - 79 )
----
262445

skipif mysql # not compatible
query I rowsort label-1668
SELECT + - CAST ( - 98 AS INTEGER ) * - 41 * + COUNT ( + 49 ) * - 64 + 67 * - SUM ( DISTINCT - 79 )
----
262445

query I rowsort
SELECT ALL - + 79 + 22 * 44
----
889

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT NULLIF ( 76, - 69 * - - 4 * + - COUNT( * ) * + NULLIF ( - - 19, + 37 * - 36 / - + 79 * MAX( DISTINCT 7 ) + - 69 ) / + 83 - + CASE - SUM( DISTINCT 48 ) WHEN + COUNT( * ) THEN 66 + + 87 ELSE NULL END * NULLIF ( COUNT( * ), - 13 + COALESCE ( 41, + CASE ( 99 ) WHEN 10 THEN - 28 ELSE COUNT( * ) END - - ( + 37 + 36 ) ) ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT NULLIF ( 76, - 69 * - - 4 * + - COUNT ( * ) * + NULLIF ( - - 19, + 37 * - 36 / - + 79 * MAX ( DISTINCT 7 ) + - 69 ) / + 83 - + CASE - SUM ( DISTINCT 48 ) WHEN + COUNT ( * ) THEN 66 + + 87 ELSE NULL END * NULLIF ( COUNT ( * ), - 13 + COALESCE ( 41, + CASE ( 99 ) WHEN 10 THEN - 28 ELSE COUNT ( * ) END - - ( + 37 + 36 ) ) ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT - - ( + COUNT( * ) ) - + 99 + - - 67 + 11 + 11 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - - ( + COUNT ( * ) ) - + 99 + - - 67 + 11 + 11 AS col1
----
-9

query I rowsort
SELECT ALL + + 87 * + 57 AS col1
----
4959

query I rowsort
SELECT DISTINCT + 2 - - ( - + ( 87 ) ) AS col2
----
-85

query I rowsort
SELECT - - 64 * - - 92 AS col2
----
5888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + 58 DIV - SUM( - 25 )
----
2

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + 58 / - SUM ( - 25 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - NULLIF ( + + COUNT( * ), + + MAX( DISTINCT - 43 ) - + 90 * - - ( + COALESCE ( - 24, + + 96 + 77, - - 91 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1677
SELECT - NULLIF ( + + COUNT ( * ), + + MAX ( DISTINCT - 43 ) - + 90 * - - ( + COALESCE ( - 24, + + 96 + 77, - - 91 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL + COUNT( * ) * - 3, 78 AS col1
----
-3
78

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL + COUNT ( * ) * - 3, 78 AS col1
----
-3
78

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

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

query I rowsort
SELECT - 36 + 28 AS col1
----
-8

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

query I rowsort
SELECT - 53 * 99 AS col0
----
-5247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT 65 * - + CAST( - 96 AS SIGNED ) AS col2
----
6240

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT 65 * - + CAST ( - 96 AS INTEGER ) AS col2
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - 19 DIV - 50 - - - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 19 / - 50 - - - 4 AS col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - 63 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 23 * + + 32 * - 24
----
-17664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT - COUNT( * ) DIV - 93 + - + MIN( + 48 ) * - 5
----
240

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - COUNT ( * ) / - 93 + - + MIN ( + 48 ) * - 5
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL + 91 + - + 23 * + - COUNT( ALL + 79 ) AS col2, - COUNT( * ) - - COUNT( * ) col0
----
114
0

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL + 91 + - + 23 * + - COUNT ( ALL + 79 ) AS col2, - COUNT ( * ) - - COUNT ( * ) col0
----
114
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MAX( DISTINCT - - 71 ) + 56
----
127

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MAX ( DISTINCT - - 71 ) + 56
----
127

query I rowsort
SELECT 9 + + 20
----
29

query I rowsort
SELECT 16 * + 49
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT CASE CASE - - 89 WHEN + - CAST( NULL AS SIGNED ) THEN + 27 + - 57 WHEN - + ( COUNT( - 12 ) ) + 32 / - - COUNT( * ) THEN NULL END WHEN + 62 THEN + 20 ELSE NULL END + AVG ( 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT CASE CASE - - 89 WHEN + - CAST ( NULL AS INTEGER ) THEN + 27 + - 57 WHEN - + ( COUNT ( - 12 ) ) + 32 / - - COUNT ( * ) THEN NULL END WHEN + 62 THEN + 20 ELSE NULL END + AVG ( 86 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT NULLIF ( + 78, + CASE - 85 WHEN + + 92 THEN NULL WHEN - 86 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE - 6 END * + + 95 * CAST( NULL AS SIGNED ) ) + 85 * 11 AS col1
----
1013

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT NULLIF ( + 78, + CASE - 85 WHEN + + 92 THEN NULL WHEN - 86 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE - 6 END * + + 95 * CAST ( NULL AS INTEGER ) ) + 85 * 11 AS col1
----
1013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1694
SELECT COUNT( * ) * + - 17 * 67 DIV - CAST( - 16 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( * ) * + - 17 * 67 / - CAST ( - 16 AS INTEGER )
----
-71

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, 98 * + 73 ) + 87 + + - ( + 39 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1696
SELECT ALL COUNT( DISTINCT + - 95 ) * + 4 * 2 * - 64 / + CAST( NULL AS SIGNED ) AS col1, CAST( - 60 AS SIGNED ) AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL COUNT ( DISTINCT + - 95 ) * + 4 * 2 * - 64 / + CAST ( NULL AS INTEGER ) AS col1, CAST ( - 60 AS INTEGER ) AS col0
----
NULL
-60

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT + NULLIF ( 35, COUNT ( * ) * - 93 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + 53 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 53 + + COUNT ( * )
----
54

query I rowsort
SELECT - 23 - - 88 * - 80 AS col1
----
-7063

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

skipif mysql # not compatible
query I rowsort label-1700
SELECT - 37 / 90 * - + COUNT ( * )
----
0

query II rowsort
SELECT ALL 6 - + 57 AS col0, + 97 AS col2
----
-51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - 80 + + CASE + - 90 WHEN - NULLIF ( 84, - 15 ) + - 81 THEN - COUNT( + - 88 ) ELSE NULL END * + - 27 * MIN( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 80 + + CASE + - 90 WHEN - NULLIF ( 84, - 15 ) + - 81 THEN - COUNT ( + - 88 ) ELSE NULL END * + - 27 * MIN ( - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT + COUNT( - 21 ) - - - 64 - - MAX( ALL + 55 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + COUNT ( - 21 ) - - - 64 - - MAX ( ALL + 55 ) AS col1
----
-8

query I rowsort
SELECT 50 * + 31 AS col2
----
1550

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT ALL + 64 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + 64 / + 80
----
0

query I rowsort
SELECT - 3 + 39 + + + 9 * + + 6
----
90

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

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL COUNT ( * ), 38 col2
----
1
38

query II rowsort
SELECT ALL 51, - 36 + 19 + + 53 * 8 col2
----
51
407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT - CASE - 80 WHEN - 16 THEN - 48 WHEN + 21 + - 80 THEN NULL ELSE SUM( - + ( 83 ) ) * - 42 + - CAST( 89 AS SIGNED ) + + 87 * COUNT( * ) END AS col1
----
-3484

skipif mysql # not compatible
query I rowsort label-1709
SELECT - CASE - 80 WHEN - 16 THEN - 48 WHEN + 21 + - 80 THEN NULL ELSE SUM ( - + ( 83 ) ) * - 42 + - CAST ( 89 AS INTEGER ) + + 87 * COUNT ( * ) END AS col1
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 29 * + COUNT( * ) + COALESCE ( - MIN( ALL + 19 ), + + 20 * - MAX( 53 ) )
----
10

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 29 * + COUNT ( * ) + COALESCE ( - MIN ( ALL + 19 ), + + 20 * - MAX ( 53 ) )
----
10

query I rowsort
SELECT - 53 + 29 + 61 AS col2
----
37

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

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

query I rowsort
SELECT 20 + ( - 84 ) + + - 54
----
-118

query I rowsort
SELECT ( - 81 ) * + - 46 + - + 61 col2
----
3665

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT MIN( DISTINCT - ( + 6 ) ) * - - 58 AS col2
----
-348

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT MIN ( DISTINCT - ( + 6 ) ) * - - 58 AS col2
----
-348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT MIN( + COALESCE ( - ( 85 ), + 72 ) ) * - 2 + + 40 + COUNT( - 18 ) DIV - - 51 * + 95 * - 30 AS col2
----
210

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT MIN ( + COALESCE ( - ( 85 ), + 72 ) ) * - 2 + + 40 + COUNT ( - 18 ) / - - 51 * + 95 * - 30 AS col2
----
210

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

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

query I rowsort
SELECT DISTINCT + 23 + - 81 + - 77
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL - ( + 8 ) + ( - CAST( + 26 AS SIGNED ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - ( + 8 ) + ( - CAST ( + 26 AS INTEGER ) ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), + ( 71 ) ) + 44 + - - 79
----
194

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), + ( 71 ) ) + 44 + - - 79
----
194

query I rowsort
SELECT 9 * + 4 AS col2
----
36

query I rowsort
SELECT DISTINCT - 78 * - 51
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + MAX( + 22 ) * + 31 / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + MAX ( + 22 ) * + 31 / 12
----
NULL

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

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

query I rowsort
SELECT 51 + + 46 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - COALESCE ( 44, + ( - - 11 ) * - 6, - SUM( DISTINCT + CAST( 25 AS SIGNED ) ) ) + - - 35 * + + 25 * - 24
----
-21044

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COALESCE ( 44, + ( - - 11 ) * - 6, - SUM ( DISTINCT + CAST ( 25 AS INTEGER ) ) ) + - - 35 * + + 25 * - 24
----
-21044

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + - COUNT ( * ) + + + SUM ( + + 47 )
----
46

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1728
SELECT CASE CAST( NULL AS DECIMAL ) WHEN + 54 THEN - 15 * + + 28 END AS col0, 23 DIV - - 99 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1728
SELECT CASE CAST ( NULL AS REAL ) WHEN + 54 THEN - 15 * + + 28 END AS col0, 23 / - - 99 col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT + - ( - 69 ) col2, NULLIF ( + 18, + ( + - SUM( + COALESCE ( + 87, 7 ) ) ) / + 37 )
----
69
18

skipif mysql # not compatible
query II rowsort label-1729
SELECT + - ( - 69 ) col2, NULLIF ( + 18, + ( + - SUM ( + COALESCE ( + 87, 7 ) ) ) / + 37 )
----
69
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT - CAST( NULL AS SIGNED ) * - - 47 + MAX( - 83 ) + + + 98 + + 73 * - - ( + CASE CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT + + 87 ) THEN + + 55 + - 92 / + CAST( + 59 * + 10 AS SIGNED ) END ) * CASE - COUNT( - 69 ) WHEN 20 * 81 THEN NULL ELSE - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT - CAST ( NULL AS INTEGER ) * - - 47 + MAX ( - 83 ) + + + 98 + + 73 * - - ( + CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT + + 87 ) THEN + + 55 + - 92 / + CAST ( + 59 * + 10 AS INTEGER ) END ) * CASE - COUNT ( - 69 ) WHEN 20 * 81 THEN NULL ELSE - 59 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1731
SELECT - COUNT( * ) + + NULLIF ( + + MAX( - 65 ), - 19 ), + CASE + + 82 WHEN + 29 + CAST( 3 AS SIGNED ) THEN + 50 END AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT - COUNT ( * ) + + NULLIF ( + + MAX ( - 65 ), - 19 ), + CASE + + 82 WHEN + 29 + CAST ( 3 AS INTEGER ) THEN + 50 END AS col2
----
-66
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1732
SELECT + - SUM( ALL - + 93 ) AS col1, - 75 - + + 92 - + 21 * + 66 DIV + COALESCE ( 11, - 62 ) AS col2
----
93
-293

skipif mysql # not compatible
query II rowsort label-1732
SELECT + - SUM ( ALL - + 93 ) AS col1, - 75 - + + 92 - + 21 * + 66 / + COALESCE ( 11, - 62 ) AS col2
----
93
-293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT DISTINCT - + NULLIF ( + 30, 4 ) - CAST( NULL AS SIGNED ) * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - + NULLIF ( + 30, 4 ) - CAST ( NULL AS INTEGER ) * 92 AS col0
----
NULL

query II rowsort
SELECT - - ( + 86 ) AS col2, 33
----
86
33

query I rowsort
SELECT + 24 * + 77 - - 97
----
1945

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT 44 DIV + 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1736
SELECT 44 / + 17 AS col1
----
2

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

query I rowsort
SELECT 52 * + 23 col2
----
1196

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL 48 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 48 / + 48 AS col1
----
1

query I rowsort
SELECT NULLIF ( + 1, - 92 ) * + - 32 * - 67 - 31
----
2113

query I rowsort
SELECT CASE + - 43 WHEN ( - 90 ) THEN 86 * 84 WHEN + 9 + + 19 THEN + 61 WHEN - - 41 THEN NULL ELSE NULL END + + - 55 + - + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL CASE - - 66 WHEN 69 / COUNT( * ) - COUNT( * ) THEN NULL WHEN - - ( - 69 ) * + 60 + + 36 THEN + 62 ELSE NULL END + 42, 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL CASE - - 66 WHEN 69 / COUNT ( * ) - COUNT ( * ) THEN NULL WHEN - - ( - 69 ) * + 60 + + 36 THEN + 62 ELSE NULL END + 42, 24 col1
----
NULL
24

query I rowsort
SELECT + 94 + - COALESCE ( - 32, + 3 ) + 79
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + 70 + - 72 - - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 70 + - 72 - - ( COUNT ( * ) )
----
-1

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

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

query II rowsort
SELECT + 47 + - ( - - 82 ) AS col2, + 76 AS col0
----
-35
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT - CASE + 49 WHEN 20 + + 7 * + - 42 THEN - MAX( DISTINCT - ( - + 64 ) ) ELSE NULL END * + 64 * + 16 * - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT - CASE + 49 WHEN 20 + + 7 * + - 42 THEN - MAX ( DISTINCT - ( - + 64 ) ) ELSE NULL END * + 64 * + 16 * - - 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1748
SELECT 88 AS col1, CAST( NULL AS SIGNED ) * - - 66 + + 53
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1748
SELECT 88 AS col1, CAST ( NULL AS INTEGER ) * - - 66 + + 53
----
88
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - COUNT( * ) + 21
----
20

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - COUNT ( * ) + 21
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT ALL 60 * + ( + CAST( NULL AS DECIMAL ) ) / - 79 + + - 37 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL 60 * + ( + CAST ( NULL AS REAL ) ) / - 79 + + - 37 + 97
----
NULL

query II rowsort
SELECT ALL + 15, - 76 AS col1
----
15
-76

query I rowsort
SELECT ALL + NULLIF ( - 61, - AVG ( + 8 ) )
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 81 * + ( CASE + 21 WHEN 2 + + 97 + 75 * 29 * + + ( - + 95 ) THEN + + 75 + 39 * - 15 ELSE CASE 62 WHEN - 39 THEN - 76 ELSE 52 * 91 + + COUNT( * ) END + - 68 * + ( 10 ) END ) AS col1
----
328293

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 81 * + ( CASE + 21 WHEN 2 + + 97 + 75 * 29 * + + ( - + 95 ) THEN + + 75 + 39 * - 15 ELSE CASE 62 WHEN - 39 THEN - 76 ELSE 52 * 91 + + COUNT ( * ) END + - 68 * + ( 10 ) END ) AS col1
----
328293

query I rowsort
SELECT - 82 * + + 5
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT + - 49, + NULLIF ( MAX( DISTINCT - 55 ), 72 * 73 ) AS col2
----
-49
-55

skipif mysql # not compatible
query II rowsort label-1757
SELECT + - 49, + NULLIF ( MAX ( DISTINCT - 55 ), 72 * 73 ) AS col2
----
-49
-55

query II rowsort
SELECT + - 8 col0, 45 + + 82
----
-8
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL + SUM( DISTINCT - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + SUM ( DISTINCT - 29 ) col0
----
-29

query I rowsort
SELECT - + 8 * - + 40
----
320

query II rowsort
SELECT + 2 AS col0, 94 AS col1
----
2
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + 76 * 92 - - COUNT( * )
----
6993

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 76 * 92 - - COUNT ( * )
----
6993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT - + 59 / 5 + + CAST( NULL AS SIGNED ) + 21 + + - COUNT( * ) * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - + 59 / 5 + + CAST ( NULL AS INTEGER ) + 21 + + - COUNT ( * ) * 58 AS col1
----
NULL

query II rowsort
SELECT ALL - + 5 * 0 * - 6 col1, - ( 63 )
----
0
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1765
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 78 * - 93
----
NULL
-7254

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 78 * - 93
----
NULL
-7254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1766
SELECT - CASE + 90 WHEN - + ( + COALESCE ( - 98, + + 44 * + 64 * CAST( NULL AS SIGNED ) ) ) THEN - + 56 + - 62 WHEN - 43 + - 56 THEN + 35 + + 40 DIV CAST( + 59 AS SIGNED ) ELSE + 93 * 96 END * - ( ( + 37 ) )
----
330336

skipif mysql # not compatible
query I rowsort label-1766
SELECT - CASE + 90 WHEN - + ( + COALESCE ( - 98, + + 44 * + 64 * CAST ( NULL AS INTEGER ) ) ) THEN - + 56 + - 62 WHEN - 43 + - 56 THEN + 35 + + 40 / CAST ( + 59 AS INTEGER ) ELSE + 93 * 96 END * - ( ( + 37 ) )
----
330336

query I rowsort
SELECT - 29 * - 57 * + - 50 * + 24 AS col2
----
-1983600

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - ( - 9 ) + + 46 + - SUM( DISTINCT + - 6 )
----
61

skipif mysql # not compatible
query I rowsort label-1768
SELECT - ( - 9 ) + + 46 + - SUM ( DISTINCT + - 6 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + + COUNT( ALL + 65 ) * - CASE 96 WHEN - + 77 * + 92 / + ( 71 ) THEN + 32 + - 82 / ( + 64 ) END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + + COUNT ( ALL + 65 ) * - CASE 96 WHEN - + 77 * + 92 / + ( 71 ) THEN + 32 + - 82 / ( + 64 ) END * 47
----
NULL

query I rowsort
SELECT + - 76 - + 97
----
-173

query I rowsort
SELECT DISTINCT + + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - - COUNT( * ) + + SUM( ALL + + 85 )
----
86

skipif mysql # not compatible
query I rowsort label-1772
SELECT - - COUNT ( * ) + + SUM ( ALL + + 85 )
----
86

query I rowsort
SELECT ALL - 21 + - - 86
----
65

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

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

query II rowsort
SELECT DISTINCT + 10 AS col1, 94 + + - 75 AS col1
----
10
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1777
SELECT + 31 + - + CASE + COUNT( * ) WHEN 49 THEN + ( 47 ) WHEN - + 53 * - - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 31 + - + CASE + COUNT ( * ) WHEN 49 THEN + ( 47 ) WHEN - + 53 * - - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 42 * - + 35 AS col0, - 24 * + + 91
----
-1470
-2184

query I rowsort
SELECT ALL ( 79 ) + + 58 + + 50
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + 68 + - 87 + + ( + 48 ) + - COUNT( * ) * ( + + 16 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 68 + - 87 + + ( + 48 ) + - COUNT ( * ) * ( + + 16 ) AS col0
----
13

query I rowsort
SELECT - 95 * - 65 * + 5
----
30875

query I rowsort
SELECT - NULLIF ( 97, + 58 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT 6 * + 75 AS col0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + SUM( DISTINCT + 21 ) + + ( 11 ) + + 16 + + - 27 * + - 3
----
129

skipif mysql # not compatible
query I rowsort label-1784
SELECT + SUM ( DISTINCT + 21 ) + + ( 11 ) + + 16 + + - 27 * + - 3
----
129

query I rowsort
SELECT + 53 + - 70
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT + 17 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 17 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL ( COUNT( * ) ) - 62 col1
----
-61

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL ( COUNT ( * ) ) - 62 col1
----
-61

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

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

query I rowsort
SELECT + 57 * 2
----
114

query I rowsort
SELECT - 63 * + ( 23 ) * - 62
----
89838

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL + - MAX( + 46 ), ( + 91 ) AS col1
----
-46
91

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL + - MAX ( + 46 ), ( + 91 ) AS col1
----
-46
91

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

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

query I rowsort
SELECT ALL 16 * + 42 + - 40
----
632

onlyif mysql # aggregate syntax: 
query II rowsort label-1795
SELECT DISTINCT + ( + 63 ) col1, 95 + + - COUNT( * )
----
63
94

skipif mysql # not compatible
query II rowsort label-1795
SELECT DISTINCT + ( + 63 ) col1, 95 + + - COUNT ( * )
----
63
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT - 24 * - CASE MAX( + 18 ) WHEN + 17 THEN NULL WHEN + - 10 THEN - 80 ELSE + ( - COALESCE ( + - NULLIF ( - + ( 61 ), + 99 ), - COUNT( * ) ) ) END + + 55 AS col0
----
-1409

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - 24 * - CASE MAX ( + 18 ) WHEN + 17 THEN NULL WHEN + - 10 THEN - 80 ELSE + ( - COALESCE ( + - NULLIF ( - + ( 61 ), + 99 ), - COUNT ( * ) ) ) END + + 55 AS col0
----
-1409

query I rowsort
SELECT DISTINCT + NULLIF ( - 45, 18 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT + COUNT( * ) * SUM( - ( + 85 ) ) AS col0, 57 * 96 DIV 31 + - + 89 * 5 AS col1
----
-85
-269

skipif mysql # not compatible
query II rowsort label-1798
SELECT + COUNT ( * ) * SUM ( - ( + 85 ) ) AS col0, 57 * 96 / 31 + - + 89 * 5 AS col1
----
-85
-269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT - CAST( - + 4 AS SIGNED ) * - + 69 AS col0
----
-276

skipif mysql # not compatible
query I rowsort label-1799
SELECT - CAST ( - + 4 AS INTEGER ) * - + 69 AS col0
----
-276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + COUNT( * ) * - 95 * + 7 * 76 * + 38
----
-1920520

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + COUNT ( * ) * - 95 * + 7 * 76 * + 38
----
-1920520

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - + 61 * - - COUNT( DISTINCT - 73 )
----
-61

skipif mysql # not compatible
query I rowsort label-1802
SELECT - + 61 * - - COUNT ( DISTINCT - 73 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - COUNT( * ) * - 1 + + 70
----
71

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - COUNT ( * ) * - 1 + + 70
----
71

query I rowsort
SELECT ALL + 92 * + 95 AS col1
----
8740

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 44, + + 84 * - 36 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT ALL - 91 * + 14 + - - 76 + - 54 DIV - 93 * - 7 AS col2
----
-1198

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 91 * + 14 + - - 76 + - 54 / - 93 * - 7 AS col2
----
-1198

query II rowsort
SELECT - 99 * + 16 * + ( 33 ) AS col0, - 49 * + 20
----
-52272
-980

query I rowsort
SELECT 9 * + 72
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT 45 * - COUNT( - 26 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1809
SELECT 45 * - COUNT ( - 26 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT - 91 + 23 AS col1
----
-68

query II rowsort
SELECT 35 * ( + 74 ), 1 col0
----
2590
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT 38 AS col2, + COUNT( - 80 ) * - 96
----
38
-96

skipif mysql # not compatible
query II rowsort label-1812
SELECT 38 AS col2, + COUNT ( - 80 ) * - 96
----
38
-96

query I rowsort
SELECT ALL 88 * + ( - - 52 ) * 65 col1
----
297440

query I rowsort
SELECT 60 * - 3 * + 88 AS col2
----
-15840

query I rowsort
SELECT ALL 52 * - 15
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT SUM( DISTINCT + 57 ) - - 75 * 58 AS col1
----
4407

skipif mysql # not compatible
query I rowsort label-1816
SELECT SUM ( DISTINCT + 57 ) - - 75 * 58 AS col1
----
4407

query I rowsort
SELECT 50 * - 92 AS col0
----
-4600

query I rowsort
SELECT 53 + - - 91
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1819
SELECT - 31 / - - CAST( NULL AS SIGNED ) - CASE - - 42 WHEN + 21 * 94 * + + CAST( NULL AS DECIMAL ) THEN + 1 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 31 / - - CAST ( NULL AS INTEGER ) - CASE - - 42 WHEN + 21 * 94 * + + CAST ( NULL AS REAL ) THEN + 1 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 88 * 57 AS col1
----
5016

query I rowsort
SELECT 17 + + 18 - + - 33 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT + 97 DIV 30
----
3

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 97 / 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT DISTINCT + ( - + NULLIF ( + COUNT( * ), + 85 ) ) + + CAST( NULL AS SIGNED ) / + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + ( - + NULLIF ( + COUNT ( * ), + 85 ) ) + + CAST ( NULL AS INTEGER ) / + - 61
----
NULL

query II rowsort
SELECT DISTINCT 73 + - 52 + - 19 col1, + 67 AS col0
----
2
67

query I rowsort
SELECT ALL 17 + - 16 AS col2
----
1

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

query I rowsort
SELECT ALL - - 37 + - + 71 col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT COUNT( - 35 ) * 5 * 61 DIV + 21 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( - 35 ) * 5 * 61 / + 21 AS col2
----
14

query I rowsort
SELECT ALL + 19 + 36 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT ALL - - CASE + 53 WHEN - - 49 THEN NULL ELSE COUNT( * ) * - 91 DIV 53 * - 77 END
----
77

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - - CASE + 53 WHEN - - 49 THEN NULL ELSE COUNT ( * ) * - 91 / 53 * - 77 END
----
77

query II rowsort
SELECT 12 AS col0, 96 + 31 + - 97 AS col0
----
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - SUM( DISTINCT - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - SUM ( DISTINCT - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT - SUM( DISTINCT - - 73 ) * + 2 * - 53 + + 30 DIV + 43 * - 92 AS col2
----
7738

skipif mysql # not compatible
query I rowsort label-1833
SELECT - SUM ( DISTINCT - - 73 ) * + 2 * - 53 + + 30 / + 43 * - 92 AS col2
----
7738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT 45 - CAST( - ( + + ( 22 ) ) AS SIGNED ) col2
----
67

skipif mysql # not compatible
query I rowsort label-1834
SELECT 45 - CAST ( - ( + + ( 22 ) ) AS INTEGER ) col2
----
67

query I rowsort
SELECT 19 + + 15 + 24 * 93 * 8 * 66 * - 51
----
-60103262

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT COUNT( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0
----
-25
98

skipif mysql # not compatible
query II rowsort label-1836
SELECT COUNT ( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0
----
-25
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT ALL - NULLIF ( 41, - 22 * - + NULLIF ( 8, + - CAST( COUNT( * ) AS SIGNED ) + + + 38 * - 30 + + 55 / 10 ) * 29 + 54 / COUNT( * ) * - NULLIF ( - COUNT( * ), 35 * - 35 + NULLIF ( 1, 23 + + 62 * + COALESCE ( 24 * - 62 - - COUNT( * ), 91 ) ) ) ) - 46 * + 82
----
-3813

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - NULLIF ( 41, - 22 * - + NULLIF ( 8, + - CAST ( COUNT ( * ) AS INTEGER ) + + + 38 * - 30 + + 55 / 10 ) * 29 + 54 / COUNT ( * ) * - NULLIF ( - COUNT ( * ), 35 * - 35 + NULLIF ( 1, 23 + + 62 * + COALESCE ( 24 * - 62 - - COUNT ( * ), 91 ) ) ) ) - 46 * + 82
----
-3813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1838
SELECT - COUNT( * ), + CASE - 48 WHEN + - 34 THEN NULL WHEN 64 THEN + 73 * - - 72 * - 13 + - 9 * + - MAX( - - 83 ) END * + - 52 + - 66 * - AVG ( DISTINCT + CAST( COALESCE ( - 49, + 26 * + 41 ) AS SIGNED ) ) + 69 * - 5 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1838
SELECT - COUNT ( * ), + CASE - 48 WHEN + - 34 THEN NULL WHEN 64 THEN + 73 * - - 72 * - 13 + - 9 * + - MAX ( - - 83 ) END * + - 52 + - 66 * - AVG ( DISTINCT + CAST ( COALESCE ( - 49, + 26 * + 41 ) AS INTEGER ) ) + 69 * - 5 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1839
SELECT ALL COALESCE ( + 92, + 3 * - 1 * - 12 DIV - COUNT( * ) + - ( 34 ) + + - 69, - 33 ) DIV 3 AS col1, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL COALESCE ( + 92, + 3 * - 1 * - 12 / - COUNT ( * ) + - ( 34 ) + + - 69, - 33 ) / 3 AS col1, COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1840
SELECT 35 + COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT + 32 * - - COALESCE ( + 46, 16 ) AS col2
----
1472

query I rowsort
SELECT 44 + + 45 + 94 * - 88 * - + COALESCE ( 54, 60 )
----
446777

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL 36 AS col2, 60 * + COUNT( 49 )
----
36
60

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL 36 AS col2, 60 * + COUNT ( 49 )
----
36
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT CAST( NULL AS SIGNED ) / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT CAST ( NULL AS INTEGER ) / - 63
----
NULL

query I rowsort
SELECT 60 * 78
----
4680

query I rowsort
SELECT DISTINCT + 33 * 88
----
2904

query I rowsort
SELECT 70 * - + 24 col2
----
-1680

query I rowsort
SELECT ALL - 70 * - 8 AS col2
----
560

query I rowsort
SELECT 79 + + 64
----
143

query I rowsort
SELECT 60 * - + 67
----
-4020

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT ALL 59 AS col1, - 94 * COUNT( * ) * + - 44 + + NULLIF ( - 20, + + 39 ) AS col0
----
59
4116

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL 59 AS col1, - 94 * COUNT ( * ) * + - 44 + + NULLIF ( - 20, + + 39 ) AS col0
----
59
4116

query I rowsort
SELECT ALL 59 * - 2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - NULLIF ( + - 46, + - COUNT( * ) / 33 + + - 63 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1853
SELECT - NULLIF ( + - 46, + - COUNT ( * ) / 33 + + - 63 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - - MIN( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1854
SELECT - - MIN ( ALL - 88 )
----
-88

query I rowsort
SELECT ALL + ( - COALESCE ( + 29, ( - 11 ) - ( + 11 ) ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + SUM( DISTINCT + + ( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1856
SELECT + SUM ( DISTINCT + + ( - 74 ) )
----
-74

query II rowsort
SELECT - - 16 AS col1, 85 AS col0
----
16
85

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

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

skipif mysql # not compatible
query II rowsort label-1859
SELECT COUNT ( * ) AS col2, 29 AS col0
----
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT ALL + - 86 + - CASE + ( - + 83 ) WHEN - 50 * - 95 + 66 THEN NULL WHEN + 30 THEN + 24 * + NULLIF ( + MAX( ALL 20 ), - 63 * ( 90 ) * - 23 + + 8 ) WHEN 77 THEN NULL END - CAST( NULL AS SIGNED ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL + - 86 + - CASE + ( - + 83 ) WHEN - 50 * - 95 + 66 THEN NULL WHEN + 30 THEN + 24 * + NULLIF ( + MAX ( ALL 20 ), - 63 * ( 90 ) * - 23 + + 8 ) WHEN 77 THEN NULL END - CAST ( NULL AS INTEGER ) * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1861
SELECT - COUNT( * ) + + 75 * 74 + - + COUNT( * ) + + - 12 * + 48 * - 11 / 8 * + - CAST( NULL AS DECIMAL ) - + COALESCE ( + - CASE - CAST( - - 0 AS SIGNED ) WHEN - + SUM( - 59 ) * + 63 / MAX( ALL NULLIF ( 10, - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE COUNT( * ) END, NULLIF ( COUNT( * ), MAX( + 67 ) ) + - 64 / + ( 41 * NULLIF ( - SUM( ALL 64 ) * - 41, + 48 ) + 46 ) ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT - COUNT ( * ) + + 75 * 74 + - + COUNT ( * ) + + - 12 * + 48 * - 11 / 8 * + - CAST ( NULL AS REAL ) - + COALESCE ( + - CASE - CAST ( - - 0 AS INTEGER ) WHEN - + SUM ( - 59 ) * + 63 / MAX ( ALL NULLIF ( 10, - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE COUNT ( * ) END, NULLIF ( COUNT ( * ), MAX ( + 67 ) ) + - 64 / + ( 41 * NULLIF ( - SUM ( ALL 64 ) * - 41, + 48 ) + 46 ) ) * + 65
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT + - 96, + SUM( ALL + 45 ) AS col0
----
-96
45

skipif mysql # not compatible
query II rowsort label-1863
SELECT + - 96, + SUM ( ALL + 45 ) AS col0
----
-96
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT DISTINCT + + 45 * - COUNT( - ( CAST( + 22 AS SIGNED ) ) ) + + COALESCE ( + 94, + 80 * 28 * COUNT( * ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + + 45 * - COUNT ( - ( CAST ( + 22 AS INTEGER ) ) ) + + COALESCE ( + 94, + 80 * 28 * COUNT ( * ) ) AS col2
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL 31 * - COUNT( * ) - - 98 + - 45 + 18 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 31 * - COUNT ( * ) - - 98 + - 45 + 18 AS col2
----
40

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

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

query I rowsort
SELECT DISTINCT - 75 * + 90 + - 8 * - - 57 col1
----
-7206

query II rowsort
SELECT ALL - + ( 26 ), + 94 AS col2
----
-26
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + - CASE 35 WHEN + MAX( DISTINCT + + 34 ) THEN - 95 WHEN - 40 THEN + 42 WHEN - 83 + + COUNT( * ) THEN NULL ELSE + 43 END + + + NULLIF ( - - MAX( + ( + 12 ) ), - 46 )
----
-31

skipif mysql # not compatible
query I rowsort label-1870
SELECT + - CASE 35 WHEN + MAX ( DISTINCT + + 34 ) THEN - 95 WHEN - 40 THEN + 42 WHEN - 83 + + COUNT ( * ) THEN NULL ELSE + 43 END + + + NULLIF ( - - MAX ( + ( + 12 ) ), - 46 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT + - ( - 51 ) * + COUNT( ALL - - 74 ) col0, + 3 AS col0
----
51
3

skipif mysql # not compatible
query II rowsort label-1871
SELECT + - ( - 51 ) * + COUNT ( ALL - - 74 ) col0, + 3 AS col0
----
51
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1872
SELECT - CAST( NULL AS DECIMAL ) * - 51 * - 84 * + + CAST( NULL AS DECIMAL ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT - CAST ( NULL AS REAL ) * - 51 * - 84 * + + CAST ( NULL AS REAL ) * + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - - 62 * + SUM( DISTINCT + 78 ) - + 70 AS col1
----
4766

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - - 62 * + SUM ( DISTINCT + 78 ) - + 70 AS col1
----
4766

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT SUM( ( - - 52 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1874
SELECT SUM ( ( - - 52 ) ) AS col2
----
52

query I rowsort
SELECT DISTINCT ( + + ( + 64 ) ) * - ( + - 89 )
----
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + COUNT( * ) * - 83 * + 81 col1
----
-6723

skipif mysql # not compatible
query I rowsort label-1876
SELECT + COUNT ( * ) * - 83 * + 81 col1
----
-6723

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT MAX( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1878
SELECT MAX ( DISTINCT - 48 )
----
-48

query II rowsort
SELECT + 64 * 1, + 79 AS col0
----
64
79

query I rowsort
SELECT - 19 * + 91 - - - 69 + + - ( - 56 )
----
-1742

onlyif mysql # DIV for integer division: 
query II rowsort label-1881
SELECT - ( ( + 88 ) ) DIV - 46 + 4 col1, + 44 + 85 col0
----
5
129

skipif mysql # not compatible
query II rowsort label-1881
SELECT - ( ( + 88 ) ) / - 46 + 4 col1, + 44 + 85 col0
----
5
129

query I rowsort
SELECT + 58 - - - 54 AS col1
----
4

query I rowsort
SELECT + COALESCE ( + 2, - 32 ) * + 86 * + 91
----
15652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT ALL - 11 DIV + COUNT( DISTINCT - ( + 8 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - 11 / + COUNT ( DISTINCT - ( + 8 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1885
SELECT + 52 DIV + COUNT( * ) AS col0, + 96 AS col2
----
52
96

skipif mysql # not compatible
query II rowsort label-1885
SELECT + 52 / + COUNT ( * ) AS col0, + 96 AS col2
----
52
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN( DISTINCT - 14 ) AS col0
----
-76
144

skipif mysql # not compatible
query II rowsort label-1886
SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT ( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN ( DISTINCT - 14 ) AS col0
----
-76
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT - 4 - 52 + + + 52 + + 61 + + 78 * CAST( + - 59 AS SIGNED ) AS col2
----
-4545

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 4 - 52 + + + 52 + + 61 + + 78 * CAST ( + - 59 AS INTEGER ) AS col2
----
-4545

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT ALL 10 * 0 * + ( - 74 ) * + 80 + - 73 + 39 DIV 25
----
-72

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL 10 * 0 * + ( - 74 ) * + 80 + - 73 + 39 / 25
----
-72

query I rowsort
SELECT DISTINCT - - 96 * + COALESCE ( + + 54, ( - ( - - 73 ) ) ) AS col0
----
5184

query I rowsort
SELECT DISTINCT + - 33 + + 74 * 97 + - 2
----
7143

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL - - 71 + SUM( 67 ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - - 71 + SUM ( 67 ) AS col0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT ALL + 45 + + + COUNT( * ) DIV COUNT( * ) + + - 20 DIV - 74 * + - 95 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + 45 + + + COUNT ( * ) / COUNT ( * ) + + - 20 / - 74 * + - 95 AS col0
----
46

query II rowsort
SELECT - 93 + 50 AS col1, 97
----
-43
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + 81 * - 10 - + + 27 - 9 / + 48 THEN NULL WHEN AVG ( DISTINCT - 45 ) / - + ( + 90 ) / - + CAST( NULL AS SIGNED ) + - 94 THEN NULL ELSE - 41 END col2
----
-41

skipif mysql # not compatible
query I rowsort label-1894
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 81 * - 10 - + + 27 - 9 / + 48 THEN NULL WHEN AVG ( DISTINCT - 45 ) / - + ( + 90 ) / - + CAST ( NULL AS INTEGER ) + - 94 THEN NULL ELSE - 41 END col2
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1895
SELECT - CAST( NULL AS DECIMAL ) + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT - CAST ( NULL AS REAL ) + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - + 46 + COALESCE ( + - 96, - + SUM( DISTINCT + - 0 ) ) AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - + 46 + COALESCE ( + - 96, - + SUM ( DISTINCT + - 0 ) ) AS col2
----
-142

query II rowsort
SELECT DISTINCT - + 29 + + 8 AS col0, 9 + + 62 + - 40
----
-21
31

query I rowsort
SELECT - - 99 + + 23 * + 40 * + - 67 AS col0
----
-61541

query I rowsort
SELECT - 95 * 17 * 95 * + + 76 AS col0
----
-11660300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1900
SELECT - 70 DIV + CAST( MIN( ALL + 13 ) AS SIGNED ) + + - 34 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 70 / + CAST ( MIN ( ALL + 13 ) AS INTEGER ) + + - 34 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1901
SELECT - 23 DIV - + 78 AS col2, - 57 + - ( - 37 ) AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-1901
SELECT - 23 / - + 78 AS col2, - 57 + - ( - 37 ) AS col0
----
0
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT + 92 * + - COUNT( * ) AS col2, + CASE ( 14 ) WHEN + 56 + + 0 + 4 THEN - 82 * ( + COUNT( * ) ) + - + 27 + - + 75 ELSE NULL END + + + 52 / COALESCE ( - NULLIF ( - 93, 63 ), 1 ) AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1902
SELECT + 92 * + - COUNT ( * ) AS col2, + CASE ( 14 ) WHEN + 56 + + 0 + 4 THEN - 82 * ( + COUNT ( * ) ) + - + 27 + - + 75 ELSE NULL END + + + 52 / COALESCE ( - NULLIF ( - 93, 63 ), 1 ) AS col1
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL - 52 * + + MAX( CAST( NULL AS SIGNED ) ) / COUNT( * ) - - - 48 + + 53 + - 90 * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 52 * + + MAX ( CAST ( NULL AS INTEGER ) ) / COUNT ( * ) - - - 48 + + 53 + - 90 * 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1904
SELECT ALL + 93, + 37 * - - COALESCE ( - COUNT( 26 ), - NULLIF ( 90, - + CAST( + + COUNT( * ) AS SIGNED ) + - 8 ) * + - ( 61 ) * 9 + + - 11 + + + 13 * - 38, - + COUNT( * ) ) + - 69 * - 45 AS col2
----
93
3068

skipif mysql # not compatible
query II rowsort label-1904
SELECT ALL + 93, + 37 * - - COALESCE ( - COUNT ( 26 ), - NULLIF ( 90, - + CAST ( + + COUNT ( * ) AS INTEGER ) + - 8 ) * + - ( 61 ) * 9 + + - 11 + + + 13 * - 38, - + COUNT ( * ) ) + - 69 * - 45 AS col2
----
93
3068

query I rowsort
SELECT - 42 - - 36 AS col1
----
-6

query I rowsort
SELECT - 1 * + 86 * - 72
----
6192

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL 12 DIV 68 * - - 83 * - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL 12 / 68 * - - 83 * - 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + MAX( DISTINCT 87 ) * + 11 * - 15
----
-14355

skipif mysql # not compatible
query I rowsort label-1908
SELECT + MAX ( DISTINCT 87 ) * + 11 * - 15
----
-14355

query I rowsort
SELECT + 15 * 84 + + - ( 36 ) + + 28
----
1252

query I rowsort
SELECT - 6 + 44
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT - 65 DIV - 11
----
5

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 65 / - 11
----
5

query I rowsort
SELECT + 70 * - 79 AS col1
----
-5530

query II rowsort
SELECT - 82 + 43 * + + 44, 94 AS col2
----
1810
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 88 - + CASE - + 13 WHEN COUNT( DISTINCT + - 99 ) THEN - - 72 / + 84 * + 32 * 69 * - + 82 * - - 99 * - 22 + + 29 WHEN + 60 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 88 - + CASE - + 13 WHEN COUNT ( DISTINCT + - 99 ) THEN - - 72 / + 84 * + 32 * 69 * - + 82 * - - 99 * - 22 + + 29 WHEN + 60 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 52 * 14 + 17
----
-711

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL + 15 AS col2, - COUNT( * ) - + - COUNT( + 89 ) AS col0
----
15
0

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL + 15 AS col2, - COUNT ( * ) - + - COUNT ( + 89 ) AS col0
----
15
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + ( + + COUNT( * ) ) * - + 56 * + + NULLIF ( - 11, + 82 )
----
616

skipif mysql # not compatible
query I rowsort label-1918
SELECT + ( + + COUNT ( * ) ) * - + 56 * + + NULLIF ( - 11, + 82 )
----
616

query I rowsort
SELECT + 28 + - + 0 - + + 7 * - 33
----
259

query I rowsort
SELECT + NULLIF ( 83, + - 21 ) + 94 col0
----
177

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

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

query I rowsort
SELECT ALL 94 + 32
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT + 54 AS col0, 91 * - 59 * + COUNT( * ) * + + 98
----
54
-526162

skipif mysql # not compatible
query II rowsort label-1923
SELECT + 54 AS col0, 91 * - 59 * + COUNT ( * ) * + + 98
----
54
-526162

query I rowsort
SELECT ( COALESCE ( - 36, + NULLIF ( 67, - 69 ) ) )
----
-36

query II rowsort
SELECT - - 64 + ( + - 57 ) AS col1, + 37 AS col0
----
7
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1926
SELECT - CASE - + COALESCE ( + CAST( - - COUNT( * ) AS DECIMAL ), MAX( - ( + 74 ) ) ) WHEN - + 5 THEN + COUNT( * ) ELSE - + 35 END AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1926
SELECT - CASE - + COALESCE ( + CAST ( - - COUNT ( * ) AS REAL ), MAX ( - ( + 74 ) ) ) WHEN - + 5 THEN + COUNT ( * ) ELSE - + 35 END AS col1
----
35

query I rowsort
SELECT DISTINCT - + 68 * - 79
----
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL - COUNT( * ) + + 74 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - COUNT ( * ) + + 74 AS col0
----
73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1930
SELECT ALL COUNT( - + 87 ) DIV + 14 - + ( - + 40 ) + - 44 * + - 63 + 64 AS col1, MIN( + + 54 ) AS col1
----
2876
54

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL COUNT ( - + 87 ) / + 14 - + ( - + 40 ) + - 44 * + - 63 + 64 AS col1, MIN ( + + 54 ) AS col1
----
2876
54

query I rowsort
SELECT ALL + - 56 + - 68 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + COUNT( * ) * 72 - - 29 * + - 27
----
-711

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + COUNT ( * ) * 72 - - 29 * + - 27
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT - 40 DIV + + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 40 / + + 51 AS col0
----
0

query I rowsort
SELECT 4 * - + ( 50 )
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 93 - + 66 * + + ( + + SUM( 35 ) ) * COUNT( * ) - - 63 + - - 78 - + COALESCE ( 57, - COUNT( * ) ) + + + 97 AS col1
----
-2222

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 93 - + 66 * + + ( + + SUM ( 35 ) ) * COUNT ( * ) - - 63 + - - 78 - + COALESCE ( 57, - COUNT ( * ) ) + + + 97 AS col1
----
-2222

query I rowsort
SELECT - - ( + 61 ) / CASE 33 WHEN + AVG ( ALL 88 ) THEN + 30 ELSE NULL END - - - 86 * + 89 + + + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1937
SELECT 62 AS col2, - 46 DIV + + CAST( - 64 AS SIGNED ) + + NULLIF ( + 83, + 26 * + 27 ) * COALESCE ( 50, + + 7 * + 87 ) * + ( - + 36 ) DIV + COUNT( * )
----
62
-149400

skipif mysql # not compatible
query II rowsort label-1937
SELECT 62 AS col2, - 46 / + + CAST ( - 64 AS INTEGER ) + + NULLIF ( + 83, + 26 * + 27 ) * COALESCE ( 50, + + 7 * + 87 ) * + ( - + 36 ) / + COUNT ( * )
----
62
-149400

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT + CAST( - COALESCE ( + 64, - 37 * - 71 + + 70 ) AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1939
SELECT + CAST ( - COALESCE ( + 64, - 37 * - 71 + + 70 ) AS INTEGER ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1940
SELECT ALL - CAST( NULL AS DECIMAL ) * - - NULLIF ( - COUNT( * ), - 72 + - 82 ) * - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - CAST ( NULL AS REAL ) * - - NULLIF ( - COUNT ( * ), - 72 + - 82 ) * - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT - 28 * - COUNT( * ) * 74 AS col2
----
2072

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - 28 * - COUNT ( * ) * 74 AS col2
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT COALESCE ( 33, - COUNT( * ) + COUNT( * ) ) DIV - + COUNT( * ) + + NULLIF ( + CAST( - 13 AS SIGNED ), 74 ) * + 68 + - + COUNT( * )
----
-918

skipif mysql # not compatible
query I rowsort label-1942
SELECT COALESCE ( 33, - COUNT ( * ) + COUNT ( * ) ) / - + COUNT ( * ) + + NULLIF ( + CAST ( - 13 AS INTEGER ), 74 ) * + 68 + - + COUNT ( * )
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT - 2 + + MAX( - 4 )
----
-6

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - 2 + + MAX ( - 4 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL 23 + 52 + - 38 + - 50 * + + SUM( - + 90 )
----
4537

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 23 + 52 + - 38 + - 50 * + + SUM ( - + 90 )
----
4537

query I rowsort
SELECT DISTINCT 58 + 18 * + 46
----
886

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT 53 DIV + + 46
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT 53 / + + 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + 84 + + 14 + COUNT( * ) * - 6 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + 84 + + 14 + COUNT ( * ) * - 6 AS col1
----
92

query I rowsort
SELECT 98 * + - NULLIF ( + - 13, 31 )
----
1274

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL ( + NULLIF ( + 93, - - 89 ) ), COUNT( * ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL ( + NULLIF ( + 93, - - 89 ) ), COUNT ( * ) AS col2
----
93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT - NULLIF ( + 4, - COALESCE ( 0, + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - 40, 70 + + 63 * - MAX( + 29 ) ) * - + 52 + - CAST( + 4 AS SIGNED ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1950
SELECT - NULLIF ( + 4, - COALESCE ( 0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 40, 70 + + 63 * - MAX ( + 29 ) ) * - + 52 + - CAST ( + 4 AS INTEGER ) ) AS col1
----
-4

query I rowsort
SELECT ALL - 18 + - - 12 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT - + CASE + + 32 WHEN 38 THEN NULL WHEN - 50 * + - COUNT( * ) + + + 88 / + 92 / - 60 THEN NULL ELSE + 38 + + 47 END AS col2, 51 AS col0
----
-85
51

skipif mysql # not compatible
query II rowsort label-1952
SELECT - + CASE + + 32 WHEN 38 THEN NULL WHEN - 50 * + - COUNT ( * ) + + + 88 / + 92 / - 60 THEN NULL ELSE + 38 + + 47 END AS col2, 51 AS col0
----
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - MAX( + 70 ) * - - 58
----
-4060

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - MAX ( + 70 ) * - - 58
----
-4060

query II rowsort
SELECT 40 - 0 AS col0, + 34 + - 29
----
40
5

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

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

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

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

query I rowsort
SELECT - NULLIF ( + 76, + 58 * + 19 ) AS col0
----
-76

query I rowsort
SELECT + COALESCE ( + 91, - 89 * + 62 + - 35 ) * + - 92 col2
----
-8372

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

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

query I rowsort
SELECT + 5 + - 37
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL ( MAX( DISTINCT + - 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL ( MAX ( DISTINCT + - 28 ) )
----
-28

query I rowsort
SELECT - 14 * 96
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1963
SELECT 88 * CAST( NULL AS SIGNED ), - 75 + 6 AS col1
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-1963
SELECT 88 * CAST ( NULL AS INTEGER ), - 75 + 6 AS col1
----
NULL
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( + 20, - 96 ) col0, 19
----
0
19

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT COUNT ( * ) / + NULLIF ( + 20, - 96 ) col0, 19
----
0
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT - 41 + - CAST( - SUM( + 21 ) AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1965
SELECT - 41 + - CAST ( - SUM ( + 21 ) AS INTEGER ) AS col1
----
-20

query I rowsort
SELECT ALL + 87 * - + 46
----
-4002

query I rowsort
SELECT 64 * + - 36 AS col1
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT COUNT( * ) * 71 + + + 86 col1, - 25 * 75 col0
----
157
-1875

skipif mysql # not compatible
query II rowsort label-1968
SELECT COUNT ( * ) * 71 + + + 86 col1, - 25 * 75 col0
----
157
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1969
SELECT - COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) + - 9 + - 77, + 53 * 58 + 35 AS col1
----
-85
3109

skipif mysql # not compatible
query II rowsort label-1969
SELECT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 9 + - 77, + 53 * 58 + 35 AS col1
----
-85
3109

query II rowsort
SELECT + 76 AS col0, 82 AS col1
----
76
82

query I rowsort
SELECT 54 * 97
----
5238

query I rowsort
SELECT ALL - 15 + + 42 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT MIN( DISTINCT - + 0 ) * - ( - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT MIN ( DISTINCT - + 0 ) * - ( - 17 ) AS col2
----
0

query I rowsort
SELECT ALL + 52 + 26 * 19
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT 52 + + MAX( - 0 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 52 + + MAX ( - 0 ) col1
----
52

query I rowsort
SELECT DISTINCT - 79 * + + 13 AS col2
----
-1027

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + COUNT( * ) * + - 46 * + 19 + COUNT( DISTINCT + 66 )
----
-873

skipif mysql # not compatible
query I rowsort label-1978
SELECT + COUNT ( * ) * + - 46 * + 19 + COUNT ( DISTINCT + 66 )
----
-873

query I rowsort
SELECT 4 - 98
----
-94

query I rowsort
SELECT 14 - 2 AS col1
----
12

query I rowsort
SELECT ALL + 62 * + - 74 * + + 79
----
-362452

query I rowsort
SELECT 88 + - 71 + - 74
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL + + MIN( DISTINCT - 64 ) - + 2 + - NULLIF ( - 30, CASE - MAX( DISTINCT + - NULLIF ( COALESCE ( - 21, + - 81 * 22 ), - - 38 ) ) WHEN - 87 THEN NULL WHEN - 23 THEN + 95 + - 82 END ) + + 82
----
46

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + + MIN ( DISTINCT - 64 ) - + 2 + - NULLIF ( - 30, CASE - MAX ( DISTINCT + - NULLIF ( COALESCE ( - 21, + - 81 * 22 ), - - 38 ) ) WHEN - 87 THEN NULL WHEN - 23 THEN + 95 + - 82 END ) + + 82
----
46

query I rowsort
SELECT 16 * - + ( - 12 ) + - 84 AS col2
----
108

query I rowsort
SELECT DISTINCT + 30 * 84
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL - 67 - + 76 - 64 * + - ( 6 ) * 96 * + MIN( - CAST( NULL AS SIGNED ) ) + - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - 67 - + 76 - 64 * + - ( 6 ) * 96 * + MIN ( - CAST ( NULL AS INTEGER ) ) + - + 72
----
NULL

query I rowsort
SELECT DISTINCT ( - + 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1988
SELECT ALL - MIN( ALL - - 3 ) DIV + 50 + + - 7 * + COUNT( * ), ( ( + + 21 ) ) + + + 1 DIV - 39 AS col2
----
-7
21

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL - MIN ( ALL - - 3 ) / + 50 + + - 7 * + COUNT ( * ), ( ( + + 21 ) ) + + + 1 / - 39 AS col2
----
-7
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL + CASE - - CAST( NULL AS SIGNED ) WHEN - 14 * 22 * - 70 THEN NULL ELSE 63 * - + COUNT( * ) END AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN - 14 * 22 * - 70 THEN NULL ELSE 63 * - + COUNT ( * ) END AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT - - 85, 40 + + - 85 - CAST( + COUNT( + 5 ) AS SIGNED ) + CASE 99 WHEN - 91 + + 7 THEN NULL WHEN - - 88 * 51 + - 81 * 30 THEN - 29 * 26 + 80 ELSE NULL END * + 38 * + CAST( NULL AS SIGNED ) AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1990
SELECT - - 85, 40 + + - 85 - CAST ( + COUNT ( + 5 ) AS INTEGER ) + CASE 99 WHEN - 91 + + 7 THEN NULL WHEN - - 88 * 51 + - 81 * 30 THEN - 29 * 26 + 80 ELSE NULL END * + 38 * + CAST ( NULL AS INTEGER ) AS col1
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT + 31 DIV COALESCE ( 88, 68 ) + + + MAX( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 31 / COALESCE ( 88, 68 ) + + + MAX ( DISTINCT + 56 )
----
56

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

query I rowsort
SELECT + ( - + 98 ) + - ( + 8 )
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1994
SELECT - 84 * ( + - ( 75 ) ) + - MIN( - 16 ) + - - CAST( - - COUNT( * ) AS SIGNED ) DIV + - ( 40 ) + + 97
----
6413

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 84 * ( + - ( 75 ) ) + - MIN ( - 16 ) + - - CAST ( - - COUNT ( * ) AS INTEGER ) / + - ( 40 ) + + 97
----
6413

query I rowsort
SELECT DISTINCT + COALESCE ( + 49, + 1, 60 )
----
49

query I rowsort
SELECT ALL 42 * + - 71
----
-2982

query I rowsort
SELECT + - 68 + + 96 + - 53 * 59
----
-3099

query I rowsort
SELECT DISTINCT + - ( - - 79 ) * 36 AS col0
----
-2844

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + MIN( + 30 ) * + 83
----
2490

skipif mysql # not compatible
query I rowsort label-2000
SELECT + MIN ( + 30 ) * + 83
----
2490

query I rowsort
SELECT + 65 + - - 68 - - - 37 + 97 * - - 84 AS col1
----
8244

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ( NULLIF ( - MIN( ALL - - 48 ), - 6 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-2002
SELECT ( NULLIF ( - MIN ( ALL - - 48 ), - 6 ) )
----
-48

query II rowsort
SELECT DISTINCT + 95 AS col0, 29 AS col0
----
95
29

query I rowsort
SELECT + ( + 68 ) + - 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL 2 * 76 DIV + 42 + + 1 DIV + + 39 col0
----
3

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 2 * 76 / + 42 + + 1 / + + 39 col0
----
3

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

skipif mysql # not compatible
query II rowsort label-2006
SELECT + COUNT ( * ) col2, + 39 col2
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL SUM( ALL 50 ) * + + COUNT( * ) + + 44 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL SUM ( ALL 50 ) * + + COUNT ( * ) + + 44 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT + ( 3 ) * - 56 * + + CASE + 64 WHEN + 51 THEN + + CAST( NULL AS SIGNED ) DIV COALESCE ( 80, 50 ) WHEN - + 26 * - 36 * - + 6 + + - ( + CAST( NULL AS SIGNED ) ) - + 83 - + 16 + - - 41 DIV - COUNT( * ) + ( + 63 ) THEN NULL ELSE - COUNT( * ) END
----
168

skipif mysql # not compatible
query I rowsort label-2008
SELECT + ( 3 ) * - 56 * + + CASE + 64 WHEN + 51 THEN + + CAST ( NULL AS INTEGER ) / COALESCE ( 80, 50 ) WHEN - + 26 * - 36 * - + 6 + + - ( + CAST ( NULL AS INTEGER ) ) - + 83 - + 16 + - - 41 / - COUNT ( * ) + ( + 63 ) THEN NULL ELSE - COUNT ( * ) END
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT + ( 2 ), - MIN( ALL + + ( + + 40 ) ) * - SUM( - + 89 ) AS col0
----
2
-3560

skipif mysql # not compatible
query II rowsort label-2009
SELECT + ( 2 ), - MIN ( ALL + + ( + + 40 ) ) * - SUM ( - + 89 ) AS col0
----
2
-3560

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

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

query I rowsort
SELECT ALL 40 * - 73 * + 79
----
-230680

query I rowsort
SELECT - 51 + + ( - - 30 )
----
-21

query I rowsort
SELECT - 10 * - 82 AS col0
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT ALL - 45 * + 57 - + 34 + + 92, - COUNT( * ) AS col2
----
-2507
-1

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL - 45 * + 57 - + 34 + + 92, - COUNT ( * ) AS col2
----
-2507
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT + - 90 * + CAST( + + AVG ( ALL + 66 ) AS SIGNED ) AS col2
----
-5940

skipif mysql # not compatible
query I rowsort label-2015
SELECT + - 90 * + CAST ( + + AVG ( ALL + 66 ) AS INTEGER ) AS col2
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT CASE - 55 WHEN + 24 THEN - 29 WHEN 72 + - 71 * - - 40 + + - 3 * - 11 + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT CASE - 55 WHEN + 24 THEN - 29 WHEN 72 + - 71 * - - 40 + + - 3 * - 11 + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 20 * + + ( - 10 ) - 56 AS col1
----
-256

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

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

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

query I rowsort
SELECT + 24 * + 93 * + + ( + 82 ) + + 56 - ( - 93 ) - 64 AS col0
----
183109

query I rowsort
SELECT - 2 * + 99
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + COALESCE ( MIN( ALL - 20 ), + + 94 ) - + + COUNT( * ) + + - 97 col2
----
-118

skipif mysql # not compatible
query I rowsort label-2022
SELECT + COALESCE ( MIN ( ALL - 20 ), + + 94 ) - + + COUNT ( * ) + + - 97 col2
----
-118

query II rowsort
SELECT - 20 * + + 86 AS col1, - 86
----
-1720
-86

query I rowsort
SELECT - 60 + - 32 * - 90
----
2820

query II rowsort
SELECT DISTINCT - 51, + 30 AS col0
----
-51
30

query I rowsort
SELECT ALL + 25 * - 34 AS col1
----
-850

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT - + 14 - - 45 + + - COUNT( * ) - + + 4 + - 91 + - 67, - ( - 3 ) col0
----
-132
3

skipif mysql # not compatible
query II rowsort label-2027
SELECT - + 14 - - 45 + + - COUNT ( * ) - + + 4 + - 91 + - 67, - ( - 3 ) col0
----
-132
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT ALL - 45 + 10 * COUNT( * ) DIV - 20 * - 50 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - 45 + 10 * COUNT ( * ) / - 20 * - 50 AS col2
----
-45

query II rowsort
SELECT - - 39 - + 9 * 35 * - + 36, 35 AS col1
----
11379
35

query II rowsort
SELECT 12, - ( + 9 ) col1
----
12
-9

query I rowsort
SELECT - + 64 + - 72 * + 66
----
-4816

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT SUM( ALL - + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT SUM ( ALL - + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - 42 + + MAX( + COALESCE ( - + 54, + - 64 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - 42 + + MAX ( + COALESCE ( - + 54, + - 64 ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - 60 * + - CASE + + COUNT( ALL 86 ) WHEN - + 47 * - 33 THEN NULL WHEN 74 THEN + 24 / - ( 2 ) ELSE NULL END * 20 * - - 69 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT - 60 * + - CASE + + COUNT ( ALL 86 ) WHEN - + 47 * - 33 THEN NULL WHEN 74 THEN + 24 / - ( 2 ) ELSE NULL END * 20 * - - 69 * + 20 AS col1
----
NULL

query II rowsort
SELECT - 18 + + 9 AS col2, + 70 AS col2
----
-9
70

query I rowsort
SELECT + 24 - + 84 * - ( - 26 )
----
-2160

query I rowsort
SELECT DISTINCT 47 + - 82 * 76 AS col0
----
-6185

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL 6 + - MIN( 65 ) * + 7 * + + COALESCE ( + - 30, - - 49 ) + - COUNT( * ) AS col0
----
13655

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL 6 + - MIN ( 65 ) * + 7 * + + COALESCE ( + - 30, - - 49 ) + - COUNT ( * ) AS col0
----
13655

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - 70 + - 96 - 25 * - 35 + - NULLIF ( - MIN( ALL + 93 ), + 45 ) * - COUNT( * )
----
616

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - 70 + - 96 - 25 * - 35 + - NULLIF ( - MIN ( ALL + 93 ), + 45 ) * - COUNT ( * )
----
616

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT - COALESCE ( 96, + - 91 + + + SUM( + 46 ) ) AS col1, 60 AS col1
----
-96
60

skipif mysql # not compatible
query II rowsort label-2040
SELECT - COALESCE ( 96, + - 91 + + + SUM ( + 46 ) ) AS col1, 60 AS col1
----
-96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - COALESCE ( 79, + COUNT( * ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COALESCE ( 79, + COUNT ( * ) ) AS col1
----
-79

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

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + 98 * + COUNT ( * ) * - 25 AS col1
----
-2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2043
SELECT DISTINCT 5 * + 19, + CAST( + 4 AS SIGNED ) * + COUNT( * ) DIV - - 5 * + - 22 AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT 5 * + 19, + CAST ( + 4 AS INTEGER ) * + COUNT ( * ) / - - 5 * + - 22 AS col0
----
95
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT DISTINCT MIN( DISTINCT + 21 ) DIV 8 - + - 73 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT MIN ( DISTINCT + 21 ) / 8 - + - 73 * - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2045
SELECT 90 * + 98 + + COUNT( * ) + + 86 + 39 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT 90 * + 98 + + COUNT ( * ) + + 86 + 39 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - 81 DIV + 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 81 / + 58 AS col2
----
-1

query I rowsort
SELECT - 8 * - - 87
----
-696

query II rowsort
SELECT - ( - 68 ) + + 75 * + 76 * - 94 AS col2, - 8 AS col2
----
-535732
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT - COUNT( * ) * - 9 + 4 + 78 * MAX( + 84 ) AS col0
----
6565

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - COUNT ( * ) * - 9 + 4 + 78 * MAX ( + 84 ) AS col0
----
6565

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

skipif mysql # not compatible
query I rowsort label-2050
SELECT 84 / COUNT ( + + 94 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2051
SELECT + 53 / + 83 * - NULLIF ( - COUNT( * ), + + 16 ) + + CAST( - 61 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * - NULLIF ( - 22, 70 ) - + 55 + - + 90 AS col2
----
NULL
-123

skipif mysql # not compatible
query II rowsort label-2051
SELECT + 53 / + 83 * - NULLIF ( - COUNT ( * ), + + 16 ) + + CAST ( - 61 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - NULLIF ( - 22, 70 ) - + 55 + - + 90 AS col2
----
NULL
-123

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

query II rowsort
SELECT ALL + 54 + - - 41 AS col1, 25
----
95
25

query I rowsort
SELECT DISTINCT - 96 * - - 3 * - - 7
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL + + 29 + - + 99 + - 76 DIV + COUNT( * ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + + 29 + - + 99 + - 76 / + COUNT ( * ) AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - SUM( + NULLIF ( - ( - - 17 ), - NULLIF ( - + 33, + - 53 ) ) ) + + 97
----
114

skipif mysql # not compatible
query I rowsort label-2056
SELECT - SUM ( + NULLIF ( - ( - - 17 ), - NULLIF ( - + 33, + - 53 ) ) ) + + 97
----
114

query I rowsort
SELECT 86 + 61
----
147

query I rowsort
SELECT ALL - + 37 + + - 38 * - 58
----
2167

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + 60 * + COUNT( ALL - - 11 )
----
60

skipif mysql # not compatible
query I rowsort label-2059
SELECT + 60 * + COUNT ( ALL - - 11 )
----
60

query II rowsort
SELECT + 69 + 70 col0, + 67 * - 94
----
139
-6298

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2061
SELECT ALL 61 AS col0, - COUNT( * ) DIV + COUNT( ALL - 65 )
----
61
-1

skipif mysql # not compatible
query II rowsort label-2061
SELECT ALL 61 AS col0, - COUNT ( * ) / + COUNT ( ALL - 65 )
----
61
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT 36 + - COUNT( * ) - - - 62 * - + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT 36 + - COUNT ( * ) - - - 62 * - + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT ALL - 38 + + + 63 + + 9 * + 1 + + - 60 AS col0
----
-26

query I rowsort
SELECT 82 * - + 25
----
-2050

query II rowsort
SELECT ALL 25, - ( - 11 ) - 91 AS col0
----
25
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2066
SELECT 89 + - CAST( NULL AS SIGNED ) / - 17, 64 * COALESCE ( + ( - - 97 ), + 56 ) + 80 AS col1
----
NULL
6288

skipif mysql # not compatible
query II rowsort label-2066
SELECT 89 + - CAST ( NULL AS INTEGER ) / - 17, 64 * COALESCE ( + ( - - 97 ), + 56 ) + 80 AS col1
----
NULL
6288

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2067
SELECT 92 * - 93 * + SUM( + CAST( NULL AS DECIMAL ) ) * - + 6 * AVG ( + 0 ) + + 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT 92 * - 93 * + SUM ( + CAST ( NULL AS REAL ) ) * - + 6 * AVG ( + 0 ) + + 96 col0
----
NULL

query II rowsort
SELECT ALL 82, + 26 AS col2
----
82
26

query I rowsort
SELECT ALL - 39 - - 44
----
5

query I rowsort
SELECT 72 - + + 77
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 8 * - SUM( DISTINCT + + 45 ) * + ( + - NULLIF ( - 48, COUNT( * ) ) ) AS col1
----
-17280

skipif mysql # not compatible
query I rowsort label-2071
SELECT 8 * - SUM ( DISTINCT + + 45 ) * + ( + - NULLIF ( - 48, COUNT ( * ) ) ) AS col1
----
-17280

query II rowsort
SELECT 16, + 88 + + 61 col1
----
16
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT 14 + 80 - + 43 AS col2, COUNT( + 14 ) + - - ( 86 )
----
51
87

skipif mysql # not compatible
query II rowsort label-2073
SELECT 14 + 80 - + 43 AS col2, COUNT ( + 14 ) + - - ( 86 )
----
51
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT - COUNT( * ) - 80
----
-81

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - COUNT ( * ) - 80
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT DISTINCT - 48 DIV 81 DIV 26 AS col1, - 67
----
0
-67

skipif mysql # not compatible
query II rowsort label-2075
SELECT DISTINCT - 48 / 81 / 26 AS col1, - 67
----
0
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT ALL - NULLIF ( 96, COUNT( * ) ) AS col0, 16 AS col2
----
-96
16

skipif mysql # not compatible
query II rowsort label-2076
SELECT ALL - NULLIF ( 96, COUNT ( * ) ) AS col0, 16 AS col2
----
-96
16

query I rowsort
SELECT DISTINCT + 22 - 86 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL - CASE - COALESCE ( - 3, COUNT( * ) + - CASE - 85 WHEN + - 82 * 30 THEN NULL WHEN + + NULLIF ( + 60, - + 20 ) THEN + CASE + 26 WHEN + ( 48 ) * - - 43 THEN + + 3 - - - 33 + - + COUNT( * ) * - 82 END ELSE + 59 * + AVG ( + 16 ) * 10 + + NULLIF ( COUNT( * ) + 56 / 25, 85 ) * + 35 END, - MIN( - 34 ) + COUNT( * ) ) WHEN + 37 THEN 53 / 51 WHEN + ( CASE 74 WHEN + CAST( NULL AS SIGNED ) THEN 90 WHEN - COUNT( * ) THEN NULL END ) * 33 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - CASE - COALESCE ( - 3, COUNT ( * ) + - CASE - 85 WHEN + - 82 * 30 THEN NULL WHEN + + NULLIF ( + 60, - + 20 ) THEN + CASE + 26 WHEN + ( 48 ) * - - 43 THEN + + 3 - - - 33 + - + COUNT ( * ) * - 82 END ELSE + 59 * + AVG ( + 16 ) * 10 + + NULLIF ( COUNT ( * ) + 56 / 25, 85 ) * + 35 END, - MIN ( - 34 ) + COUNT ( * ) ) WHEN + 37 THEN 53 / 51 WHEN + ( CASE 74 WHEN + CAST ( NULL AS INTEGER ) THEN 90 WHEN - COUNT ( * ) THEN NULL END ) * 33 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - 49 * - + NULLIF ( CASE 85 WHEN - - COUNT( * ) THEN NULL WHEN - 98 THEN - + COUNT( * ) * + MAX( + 66 ) ELSE 80 + + - 89 DIV COUNT( * ) END, - - COUNT( * ) - + 18 )
----
-441

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 49 * - + NULLIF ( CASE 85 WHEN - - COUNT ( * ) THEN NULL WHEN - 98 THEN - + COUNT ( * ) * + MAX ( + 66 ) ELSE 80 + + - 89 / COUNT ( * ) END, - - COUNT ( * ) - + 18 )
----
-441

query I rowsort
SELECT 63 * 83 AS col1
----
5229

query I rowsort
SELECT + 75 * 85 AS col0
----
6375

query I rowsort
SELECT ALL - + 65 * 17
----
-1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT COUNT( * ) * 43 + 64 / CAST( NULL AS SIGNED ) * 63 * 79 + + - COUNT( ALL - ( - - 17 ) ) * - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT COUNT ( * ) * 43 + 64 / CAST ( NULL AS INTEGER ) * 63 * 79 + + - COUNT ( ALL - ( - - 17 ) ) * - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT 61, - MAX( - 35 ) AS col1
----
61
35

skipif mysql # not compatible
query II rowsort label-2084
SELECT 61, - MAX ( - 35 ) AS col1
----
61
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT ALL - - 67, 84 * + - COUNT( * ) + - 11 + - ( + 21 ) AS col1
----
67
-116

skipif mysql # not compatible
query II rowsort label-2085
SELECT ALL - - 67, 84 * + - COUNT ( * ) + - 11 + - ( + 21 ) AS col1
----
67
-116

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT + CAST ( NULL AS REAL ) * - + 49 AS col2
----
NULL

query I rowsort
SELECT ALL - 58 + - 6 AS col2
----
-64

query I rowsort
SELECT DISTINCT - 36 + - 38 * - + NULLIF ( - 24, - 27 ) * - 40 - + 46
----
36398

query II rowsort
SELECT ALL 95 + - 75 * 65 AS col2, 21 + + 32 col1
----
-4780
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + SUM( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2090
SELECT + SUM ( DISTINCT 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL 8 + - 62 - COUNT( * ) * - COUNT( * ) * 52 + - 78 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 8 + - 62 - COUNT ( * ) * - COUNT ( * ) * 52 + - 78 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + + COUNT( - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2092
SELECT + + COUNT ( - 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - 77 * + + COUNT( * ) - - COALESCE ( + 96, - 40 ) + - + CASE + COUNT( * ) WHEN + + 49 + + ( + 41 ) THEN NULL WHEN CASE - 21 WHEN - 3 THEN 75 + 26 * 55 END THEN - COUNT( * ) END - 94 * AVG ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT - 77 * + + COUNT ( * ) - - COALESCE ( + 96, - 40 ) + - + CASE + COUNT ( * ) WHEN + + 49 + + ( + 41 ) THEN NULL WHEN CASE - 21 WHEN - 3 THEN 75 + 26 * 55 END THEN - COUNT ( * ) END - 94 * AVG ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + COALESCE ( - 82, - + ( - COUNT( * ) ) - + 74 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2094
SELECT + COALESCE ( - 82, - + ( - COUNT ( * ) ) - + 74 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - COUNT( * ) + - - 53
----
52

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - COUNT ( * ) + - - 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT MIN( - + 13 ) + 74 * + 21
----
1541

skipif mysql # not compatible
query I rowsort label-2096
SELECT MIN ( - + 13 ) + 74 * + 21
----
1541

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

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

query I rowsort
SELECT ALL 97 * + 30
----
2910

query I rowsort
SELECT DISTINCT 36 * - 66 col2
----
-2376

query II rowsort
SELECT - 83, 22 AS col2
----
-83
22

query I rowsort
SELECT 73 - 0
----
73

query I rowsort
SELECT ( 74 ) + + + 54 AS col0
----
128

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

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

query II rowsort
SELECT 92 + 7 AS col2, 53 AS col2
----
99
53

query I rowsort
SELECT 63 * - 13
----
-819

query I rowsort
SELECT 98 * + 2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2107
SELECT ( + 69 ) + - 19 DIV + - 46 + MIN( 76 ) * + COUNT( - + CAST( NULL AS SIGNED ) ) - COUNT( * ) - + 77 * + + COUNT( + - 65 ) AS col0, 28 AS col0
----
-9
28

skipif mysql # not compatible
query II rowsort label-2107
SELECT ( + 69 ) + - 19 / + - 46 + MIN ( 76 ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + 77 * + + COUNT ( + - 65 ) AS col0, 28 AS col0
----
-9
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT AVG ( 79 ) + - - CAST( NULL AS SIGNED ) - + 91 - 97 * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT AVG ( 79 ) + - - CAST ( NULL AS INTEGER ) - + 91 - 97 * + - 16
----
NULL

query I rowsort
SELECT ALL - 35 * 85 AS col0
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT MAX( ALL + 92 ) * - 60
----
-5520

skipif mysql # not compatible
query I rowsort label-2110
SELECT MAX ( ALL + 92 ) * - 60
----
-5520

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL 29 DIV - - 88 * + - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 29 / - - 88 * + - 98 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL SUM ( - - 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT - 75 DIV - SUM( - 31 )
----
-2

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 75 / - SUM ( - 31 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - 93 * + SUM( 40 ) AS col1
----
-3720

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 93 * + SUM ( 40 ) AS col1
----
-3720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT + COALESCE ( - ( + 97 ), - 83 + - ( - + COALESCE ( + - CAST( NULL AS SIGNED ), 8 * - 30 ) ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2115
SELECT + COALESCE ( - ( + 97 ), - 83 + - ( - + COALESCE ( + - CAST ( NULL AS INTEGER ), 8 * - 30 ) ) ) AS col2
----
-97

query I rowsort
SELECT NULLIF ( + COALESCE ( - NULLIF ( COALESCE ( 82, - 29 ), - - 96 / - 68 + + 1 / 66 ), - 30 ), + 90 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT CAST( NULL AS SIGNED ) * 95 + + COUNT( * ) + - 3, - COUNT( * ) + + - 14 - + + 39 + - 31 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2117
SELECT CAST ( NULL AS INTEGER ) * 95 + + COUNT ( * ) + - 3, - COUNT ( * ) + + - 14 - + + 39 + - 31 AS col1
----
NULL
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT - 45 DIV COUNT( * ) * + 81 AS col1
----
-3645

skipif mysql # not compatible
query I rowsort label-2118
SELECT - 45 / COUNT ( * ) * + 81 AS col1
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - COUNT( * ) * 95 + + - 10
----
-105

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COUNT ( * ) * 95 + + - 10
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COALESCE ( 48, - - MIN( 1 ) )
----
48

skipif mysql # not compatible
query I rowsort label-2120
SELECT COALESCE ( 48, - - MIN ( 1 ) )
----
48

query I rowsort
SELECT - 12 + 18
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT ALL + 98 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + 98 / + 69
----
1

query I rowsort
SELECT ALL + 99 * 66 + - + 90
----
6444

query I rowsort
SELECT 1 * 58 + - - 93 * - CASE + ( - 3 ) WHEN + + 31 THEN + + 88 END col1
----
NULL

query I rowsort
SELECT - + 34 * 33 + - + 93 * - 76
----
5946

query I rowsort
SELECT + COALESCE ( + - 89, 98 ) AS col0
----
-89

query I rowsort
SELECT - - 52 + - 73 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2128
SELECT ALL + 69 * + 73 * CAST( NULL AS SIGNED ) + - + CAST( - 79 AS SIGNED ) - - - COUNT( * ) * 46 AS col0, 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL + 69 * + 73 * CAST ( NULL AS INTEGER ) + - + CAST ( - 79 AS INTEGER ) - - - COUNT ( * ) * 46 AS col0, 73 AS col1
----
NULL
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT + + ( + + MAX( DISTINCT + 9 ) ) + - 7 AS col1, - 12
----
2
-12

skipif mysql # not compatible
query II rowsort label-2130
SELECT + + ( + + MAX ( DISTINCT + 9 ) ) + - 7 AS col1, - 12
----
2
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + 98 + ( - CASE - 12 WHEN + 22 THEN + 49 * + COUNT( - 97 ) * - ( + 2 ) + - 76 * - 65 / + + COALESCE ( 81, + 36 * + + 4 * + - 56 + - + ( + 2 ), - + 63 ) WHEN - 86 * - 2 THEN - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 98 + ( - CASE - 12 WHEN + 22 THEN + 49 * + COUNT ( - 97 ) * - ( + 2 ) + - 76 * - 65 / + + COALESCE ( 81, + 36 * + + 4 * + - 56 + - + ( + 2 ), - + 63 ) WHEN - 86 * - 2 THEN - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - 42 * + 51 - + SUM( DISTINCT 73 ) + + 44
----
-2171

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 42 * + 51 - + SUM ( DISTINCT 73 ) + + 44
----
-2171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL - 33 * - NULLIF ( + 10, - CAST( NULL AS SIGNED ) + + 99 ) + + COUNT( ALL + - CAST( 40 AS SIGNED ) ) + + 20 * 72 * + + 30 + + 77
----
43608

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - 33 * - NULLIF ( + 10, - CAST ( NULL AS INTEGER ) + + 99 ) + + COUNT ( ALL + - CAST ( 40 AS INTEGER ) ) + + 20 * 72 * + + 30 + + 77
----
43608

query I rowsort
SELECT DISTINCT + 97 * 47 - ( + 63 ) + CASE 59 WHEN - - ( - 0 ) * - 32 THEN + 81 WHEN - 9 THEN - 21 + + 0 WHEN - + 47 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL ( COALESCE ( + 82, - MIN( ALL 33 ), + 2 ) ) / + CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL ( COALESCE ( + 82, - MIN ( ALL 33 ), + 2 ) ) / + CAST ( NULL AS INTEGER ) + 36
----
NULL

query I rowsort
SELECT + + 25 + + ( + + ( + ( 0 ) ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 47 * 3 * COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 47 * 3 * COUNT ( * )
----
141

query II rowsort
SELECT + ( + 19 ) * - 63 * 99 * + 59 + + - 95 * + NULLIF ( - 88, - + 48 ) + - 29 AS col1, - 3 * 86 AS col1
----
-6983346
-258

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2139
SELECT + ( + - CAST( - 49 AS SIGNED ) ) DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT + ( + - CAST ( - 49 AS INTEGER ) ) / + 66 AS col0
----
0

query I rowsort
SELECT ALL 88 * - - 19 AS col0
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT + 93 + + - 22 AS col1
----
71

query I rowsort
SELECT ALL 75 + 70 AS col2
----
145

query I rowsort
SELECT + 16 - + 36 + 58 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT ALL NULLIF ( - CASE + CAST( NULL AS SIGNED ) WHEN - + 5 THEN - 79 * - 51 ELSE NULL END, - + 32 ) * + 45 + - + 90 - + 91 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL NULLIF ( - CASE + CAST ( NULL AS INTEGER ) WHEN - + 5 THEN - 79 * - 51 ELSE NULL END, - + 32 ) * + 45 + - + 90 - + 91 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL 39 + - 33 + CASE ( + 4 ) WHEN 13 * + 8 THEN + 28 / COUNT( * ) END + - 82 + - 50 * + + MIN( + + 94 ) + - - COUNT( * ) * - + COUNT( * ), + 21 * + + ( - 85 ) AS col0
----
NULL
-1785

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL 39 + - 33 + CASE ( + 4 ) WHEN 13 * + 8 THEN + 28 / COUNT ( * ) END + - 82 + - 50 * + + MIN ( + + 94 ) + - - COUNT ( * ) * - + COUNT ( * ), + 21 * + + ( - 85 ) AS col0
----
NULL
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT + + CASE + - 43 WHEN - + COUNT( * ) THEN NULL ELSE + 40 END AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + + CASE + - 43 WHEN - + COUNT ( * ) THEN NULL ELSE + 40 END AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT - + 30 * + - CASE - 30 WHEN 12 * + - ( + + 77 ) + + 86 + - 56 + - - ( - CAST( - 50 AS SIGNED ) ) + + ( + 28 ) * + + 9 * + MIN( DISTINCT 94 ) * - + 52 + 78 THEN - 37 WHEN + 11 - 30 THEN NULL ELSE 57 * + ( 52 ) + + 12 * 68 - 67 END
----
111390

skipif mysql # not compatible
query I rowsort label-2148
SELECT - + 30 * + - CASE - 30 WHEN 12 * + - ( + + 77 ) + + 86 + - 56 + - - ( - CAST ( - 50 AS INTEGER ) ) + + ( + 28 ) * + + 9 * + MIN ( DISTINCT 94 ) * - + 52 + 78 THEN - 37 WHEN + 11 - 30 THEN NULL ELSE 57 * + ( 52 ) + + 12 * 68 - 67 END
----
111390

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT DISTINCT - 58 DIV + + 69 + - 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - 58 / + + 69 + - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL + 15 DIV COUNT( * ) + ( + 42 )
----
57

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + 15 / COUNT ( * ) + ( + 42 )
----
57

query I rowsort
SELECT + 13 * - - 57
----
741

query II rowsort
SELECT + 72 col0, - 79 * - 82
----
72
6478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT - CAST( - 44 AS SIGNED ) * - 68
----
-2992

skipif mysql # not compatible
query I rowsort label-2153
SELECT - CAST ( - 44 AS INTEGER ) * - 68
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL - - 97 * + ( + + 23 ) - CAST( + CAST( 46 AS SIGNED ) AS SIGNED ) col1
----
2185

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - - 97 * + ( + + 23 ) - CAST ( + CAST ( 46 AS INTEGER ) AS INTEGER ) col1
----
2185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2155
SELECT - - 4 * + 5 + - + 53 - - + CAST( NULL AS SIGNED ) * + + 61 * - 63 * + ( - 80 ), ( + 88 ) + - COUNT( + 86 ) AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2155
SELECT - - 4 * + 5 + - + 53 - - + CAST ( NULL AS INTEGER ) * + + 61 * - 63 * + ( - 80 ), ( + 88 ) + - COUNT ( + 86 ) AS col1
----
NULL
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL 18 * + 4 - - CASE - - 71 WHEN + 82 THEN - + CASE 8 WHEN - 9 THEN + - 96 - COALESCE ( - ( + - 81 ), 42 + + 34 ) + 44 * 22 ELSE + 36 END END - - 35 - CAST( + + ( + + 5 ) AS SIGNED ) + + 69 * + - ( - CAST( NULL AS SIGNED ) ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 18 * + 4 - - CASE - - 71 WHEN + 82 THEN - + CASE 8 WHEN - 9 THEN + - 96 - COALESCE ( - ( + - 81 ), 42 + + 34 ) + 44 * 22 ELSE + 36 END END - - 35 - CAST ( + + ( + + 5 ) AS INTEGER ) + + 69 * + - ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT - 10 * + 12 * - - 39 - 38
----
-4718

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - - MIN( + 52 ) * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-2158
SELECT - - MIN ( + 52 ) * + COUNT ( * )
----
52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT ALL + - NULLIF ( - 26, - - 55 - CASE - - 5 WHEN + - MAX( 5 ) * + - 11 THEN COALESCE ( + 95, - 41 / - 77 - + COUNT( 36 ) * - 20 + 32 + + - 26 + + - 61 * 49 * - COALESCE ( + 30, ( - 81 ) ) + + + 77 * - + 14 ) WHEN - 87 * - ( - MAX( - 5 ) * CASE - 36 * 87 WHEN 27 + - 81 * 37 THEN 74 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 10, + 69 ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL END * - ( COUNT( ALL COALESCE ( 80, 43 * - 55 ) ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + - NULLIF ( - 26, - - 55 - CASE - - 5 WHEN + - MAX ( 5 ) * + - 11 THEN COALESCE ( + 95, - 41 / - 77 - + COUNT ( 36 ) * - 20 + 32 + + - 26 + + - 61 * 49 * - COALESCE ( + 30, ( - 81 ) ) + + + 77 * - + 14 ) WHEN - 87 * - ( - MAX ( - 5 ) * CASE - 36 * 87 WHEN 27 + - 81 * 37 THEN 74 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 10, + 69 ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL END * - ( COUNT ( ALL COALESCE ( 80, 43 * - 55 ) ) ) )
----
26

query II rowsort
SELECT - 15 * - + 38 * 24, + 96 AS col1
----
13680
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT - 85 * - 45 + + ( - SUM( + 54 ) ) + + + NULLIF ( - 68, - SUM( ALL + + 7 ) + + COUNT( * ) ), + 52 AS col0
----
3703
52

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 85 * - 45 + + ( - SUM ( + 54 ) ) + + + NULLIF ( - 68, - SUM ( ALL + + 7 ) + + COUNT ( * ) ), + 52 AS col0
----
3703
52

onlyif mysql # aggregate syntax: 
query III rowsort label-2163
SELECT + COUNT( * ) AS col0, 46 * - + ( - + COUNT( * ) ) AS col2, ( - + 19 ) AS col0
----
1
46
-19

skipif mysql # not compatible
query III rowsort label-2163
SELECT + COUNT ( * ) AS col0, 46 * - + ( - + COUNT ( * ) ) AS col2, ( - + 19 ) AS col0
----
1
46
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT MAX( DISTINCT - 90 ) * - CAST( + 4 AS SIGNED ) * 19 + 91 + - 9 + - + 30 + + + ( - COUNT( DISTINCT 64 ) ) * - 99 + 43 AS col2
----
7034

skipif mysql # not compatible
query I rowsort label-2164
SELECT MAX ( DISTINCT - 90 ) * - CAST ( + 4 AS INTEGER ) * 19 + 91 + - 9 + - + 30 + + + ( - COUNT ( DISTINCT 64 ) ) * - 99 + 43 AS col2
----
7034

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - CASE ( - + COUNT( - - 40 ) ) WHEN - 27 + + 93 + + 8 + - - 31 * 81 * + 26 * 17 + 97 * 94 * + 75 THEN NULL ELSE - + ( - 67 ) END
----
-67

skipif mysql # not compatible
query I rowsort label-2165
SELECT - CASE ( - + COUNT ( - - 40 ) ) WHEN - 27 + + 93 + + 8 + - - 31 * 81 * + 26 * 17 + 97 * 94 * + 75 THEN NULL ELSE - + ( - 67 ) END
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + 35 * - MAX( DISTINCT + 84 )
----
-2940

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 35 * - MAX ( DISTINCT + 84 )
----
-2940

query I rowsort
SELECT DISTINCT + 62 * + - 88
----
-5456

query II rowsort
SELECT ALL ( - 39 ), 98 * 2 * + + 63 col0
----
-39
12348

query I rowsort
SELECT DISTINCT + 53 * - ( - + 82 )
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + ( - 46 ) * + SUM( ALL 56 ) + - + 70 + + 7 + + 65 * - 97 + 34 + + + 25 * - 22 col1
----
-9460

skipif mysql # not compatible
query I rowsort label-2170
SELECT + ( - 46 ) * + SUM ( ALL 56 ) + - + 70 + + 7 + + 65 * - 97 + 34 + + + 25 * - 22 col1
----
-9460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT 7 - - 3 - + 7 + 25 + 80 * 97 + + + CAST( NULL AS SIGNED ) * + 57 * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT 7 - - 3 - + 7 + 25 + 80 * 97 + + + CAST ( NULL AS INTEGER ) * + 57 * 80 AS col2
----
NULL

query II rowsort
SELECT - 35, + 47 AS col0
----
-35
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT 26 + - 26 AS col0, + 17 DIV + 30
----
0
0

skipif mysql # not compatible
query II rowsort label-2173
SELECT 26 + - 26 AS col0, + 17 / + 30
----
0
0

query I rowsort
SELECT DISTINCT ( + - 71 ) * - - 35 * + 49 * + + 96
----
-11689440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT 13 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT 13 / - 79 AS col0
----
0

query I rowsort
SELECT ALL - 0 + + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL + NULLIF ( + 13, - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + + 2 ) ) + CASE 84 WHEN - 38 THEN NULL WHEN - 66 THEN - 24 + + CASE 30 WHEN + - 62 * - - 63 + - CAST( NULL AS SIGNED ) - + + 17 THEN + - 35 + + + COUNT( * ) * + 93 END ELSE NULL END + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + NULLIF ( + 13, - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + 2 ) ) + CASE 84 WHEN - 38 THEN NULL WHEN - 66 THEN - 24 + + CASE 30 WHEN + - 62 * - - 63 + - CAST ( NULL AS INTEGER ) - + + 17 THEN + - 35 + + + COUNT ( * ) * + 93 END ELSE NULL END + + 80
----
NULL

query I rowsort
SELECT ALL 80 + + - 19 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT - - 38, + MAX( ALL + 86 ) AS col2
----
38
86

skipif mysql # not compatible
query II rowsort label-2180
SELECT - - 38, + MAX ( ALL + 86 ) AS col2
----
38
86

query I rowsort
SELECT ALL - ( - - 60 ) * 23 AS col2
----
-1380

query I rowsort
SELECT - ( - 42 ) + + 66
----
108

query I rowsort
SELECT 15 * - 29 + + + 33 col1
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT - CAST( + 10 AS SIGNED ) * + NULLIF ( - COALESCE ( + + CASE - 11 WHEN + 20 * - 32 / - + 41 + + COUNT( * ) - + 48 - 35 THEN - 42 WHEN + 48 THEN COALESCE ( - 14, 15 * MAX( - 55 ) * 63 ) END, MAX( ALL - 76 ) + - - COUNT( * ), - + 73 ), + COALESCE ( + 85, + 83 / - 45 + 18 * + 77 ) - NULLIF ( 11, 59 ) ) + 88 + - 39
----
-701

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( + 10 AS INTEGER ) * + NULLIF ( - COALESCE ( + + CASE - 11 WHEN + 20 * - 32 / - + 41 + + COUNT ( * ) - + 48 - 35 THEN - 42 WHEN + 48 THEN COALESCE ( - 14, 15 * MAX ( - 55 ) * 63 ) END, MAX ( ALL - 76 ) + - - COUNT ( * ), - + 73 ), + COALESCE ( + 85, + 83 / - 45 + 18 * + 77 ) - NULLIF ( 11, 59 ) ) + 88 + - 39
----
-701

query II rowsort
SELECT + 83 AS col2, + 25
----
83
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT - + 97 DIV - 62 + + + 80
----
81

skipif mysql # not compatible
query I rowsort label-2186
SELECT - + 97 / - 62 + + + 80
----
81

query I rowsort
SELECT + 62 * 19 * 96 - 11 - 81
----
112996

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - MIN( DISTINCT 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - MIN ( DISTINCT 23 ) AS col0
----
-23

query I rowsort
SELECT + 11 + - 27 * - + 85 AS col0
----
2306

query II rowsort
SELECT DISTINCT - 15 AS col1, + 86 AS col2
----
-15
86

query I rowsort
SELECT 17 + - 96 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT COUNT( * ) * + 44 + - COALESCE ( + 99, - 87 ) + + 36 + - ( 91 ) DIV - 14 - + 44 col2
----
-57

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT COUNT ( * ) * + 44 + - COALESCE ( + 99, - 87 ) + + 36 + - ( 91 ) / - 14 - + 44 col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT COUNT( ( - NULLIF ( + 14, - 64 + CAST( 86 AS SIGNED ) ) ) ) * + + ( - - 7 ) + - - 29 * + 8 * COUNT( * ) + COUNT( * ) AS col0
----
240

skipif mysql # not compatible
query I rowsort label-2193
SELECT COUNT ( ( - NULLIF ( + 14, - 64 + CAST ( 86 AS INTEGER ) ) ) ) * + + ( - - 7 ) + - - 29 * + 8 * COUNT ( * ) + COUNT ( * ) AS col0
----
240

query II rowsort
SELECT DISTINCT - - 86 col2, - 6 + + 88 AS col1
----
86
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT COUNT( DISTINCT - 7 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 56 + MAX( - 86 )
----
-30

skipif mysql # not compatible
query I rowsort label-2196
SELECT 56 + MAX ( - 86 )
----
-30

query I rowsort
SELECT DISTINCT 48 - - - 58 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT 88 * + CASE - 57 WHEN - NULLIF ( + - AVG ( - 23 ), COUNT( * ) * + 58 ) THEN + 59 WHEN + 65 * 1 THEN NULL ELSE NULL END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT 88 * + CASE - 57 WHEN - NULLIF ( + - AVG ( - 23 ), COUNT ( * ) * + 58 ) THEN + 59 WHEN + 65 * 1 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 91 * - + ( 18 ) * + - 47 AS col0
----
76986

query I rowsort
SELECT ( 49 ) * + 3
----
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 4 + + COUNT( * ) * - + 30
----
-26

skipif mysql # not compatible
query I rowsort label-2202
SELECT 4 + + COUNT ( * ) * - + 30
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT DISTINCT + ( 87 ) + + 93 col1, COUNT( * ) + 27 AS col2
----
180
28

skipif mysql # not compatible
query II rowsort label-2203
SELECT DISTINCT + ( 87 ) + + 93 col1, COUNT ( * ) + 27 AS col2
----
180
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2204
SELECT 16 * + - 45, 78 + - 15 + - CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 46 ) * + 40 / + 48 + - - CASE 16 WHEN + + 56 * + - 91 * + ( 76 ) THEN + COUNT( * ) ELSE NULL END / - 88 + - 80 AS col0
----
-720
NULL

skipif mysql # not compatible
query II rowsort label-2204
SELECT 16 * + - 45, 78 + - 15 + - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 46 ) * + 40 / + 48 + - - CASE 16 WHEN + + 56 * + - 91 * + ( 76 ) THEN + COUNT ( * ) ELSE NULL END / - 88 + - 80 AS col0
----
-720
NULL

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL + 4 * - COUNT ( * ) * - COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2206
SELECT ALL + CAST( NULL AS DECIMAL ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + CAST ( NULL AS REAL ) + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( DISTINCT 85 ) + - - 84
----
83

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( DISTINCT 85 ) + - - 84
----
83

query I rowsort
SELECT 42 * - 5 AS col0
----
-210

query I rowsort
SELECT 83 + - 70 + 2
----
15

query I rowsort
SELECT ALL - - 14 + - 84
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT ALL - - 39 * 40 DIV - + 52
----
-30

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - - 39 * 40 / - + 52
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - 51 + - + COUNT( * ) + + 61 - + 37 * + + 78 + - 65 + - 46
----
-2988

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 51 + - + COUNT ( * ) + + 61 - + 37 * + + 78 + - 65 + - 46
----
-2988

query I rowsort
SELECT DISTINCT - 26 * + + 28 * + 59 + + 86
----
-42866

query I rowsort
SELECT ALL COALESCE ( 84, 68 * - 62 ) - + 54
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT - - ( - SUM( DISTINCT - - 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - - ( - SUM ( DISTINCT - - 3 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT - 17 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT - 17 / - - 87 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT - COUNT( * ) DIV + + CASE + + 81 WHEN + 71 THEN NULL ELSE 95 * + 95 + - SUM( - 92 ) * 33 END
----
0

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) / + + CASE + + 81 WHEN + 71 THEN NULL ELSE 95 * + 95 + - SUM ( - 92 ) * 33 END
----
0

query I rowsort
SELECT 81 * + + 57 - 97 AS col0
----
4520

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT ALL CAST( NULL AS SIGNED ) * - 57 * 59 / + 73 + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 * 59 / + 73 + 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT + 59 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT + 59 / - 71
----
0

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-2225
SELECT COUNT ( * ) AS col2, - 14 AS col2
----
1
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT - 29 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 29 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( * ) * - COUNT( * ) * 46 + - 98
----
-144

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( * ) * - COUNT ( * ) * 46 + - 98
----
-144

query II rowsort
SELECT ALL + 68 AS col1, - ( 41 ) AS col0
----
68
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT ALL ( - 85 ) + - NULLIF ( + 64, + CAST( + + ( + + 67 ) AS SIGNED ) ) * + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL ( - 85 ) + - NULLIF ( + 64, + CAST ( + + ( + + 67 ) AS INTEGER ) ) * + + COUNT ( * )
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT + 17 + 76 DIV - 45
----
16

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 17 + 76 / - 45
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT - 98 * + CAST( NULL AS SIGNED ) - NULLIF ( 81, + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - 98 * + CAST ( NULL AS INTEGER ) - NULLIF ( 81, + 23 )
----
NULL

query II rowsort
SELECT DISTINCT 37, + ( 10 ) AS col0
----
37
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL - 45 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - 45 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2234
SELECT ALL 43 AS col1, + COUNT( * ) * + 66 DIV - 68 * + + COUNT( * ) + - 10
----
43
-10

skipif mysql # not compatible
query II rowsort label-2234
SELECT ALL 43 AS col1, + COUNT ( * ) * + 66 / - 68 * + + COUNT ( * ) + - 10
----
43
-10

query II rowsort
SELECT - 96, 8 + 80 AS col0
----
-96
88

query I rowsort
SELECT DISTINCT 10 - - - 52
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - 39 + - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2237
SELECT - 39 + - COUNT ( * ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT ALL - SUM( 87 ) - + + 49 DIV 50
----
-87

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - SUM ( 87 ) - + + 49 / 50
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - NULLIF ( - 71, MAX( + 26 ) + - 25 )
----
71

skipif mysql # not compatible
query I rowsort label-2239
SELECT - NULLIF ( - 71, MAX ( + 26 ) + - 25 )
----
71

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

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

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - COUNT ( * ) + + 66 AS col2
----
67

query II rowsort
SELECT DISTINCT 1 AS col2, + NULLIF ( - 87, + - 50 ) AS col1
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT - SUM( ALL COALESCE ( + 92, + 76 ) ) * + 83 * - 45 AS col0
----
343620

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - SUM ( ALL COALESCE ( + 92, + 76 ) ) * + 83 * - 45 AS col0
----
343620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT - + COALESCE ( CAST( NULL AS SIGNED ), 47 + - + CAST( 59 AS SIGNED ) ) * + - 88 AS col2
----
-1056

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - + COALESCE ( CAST ( NULL AS INTEGER ), 47 + - + CAST ( 59 AS INTEGER ) ) * + - 88 AS col2
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT - COALESCE ( + COUNT( * ), - 94, + 69 * COUNT( ( 6 ) ) + - ( - - COUNT( + 37 ) ) ) * - + 47 + 5 + COUNT( * ) DIV COALESCE ( 79, + 17 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2245
SELECT - COALESCE ( + COUNT ( * ), - 94, + 69 * COUNT ( ( 6 ) ) + - ( - - COUNT ( + 37 ) ) ) * - + 47 + 5 + COUNT ( * ) / COALESCE ( 79, + 17 ) AS col2
----
52

query II rowsort
SELECT - 20 + + - 27 * + + 81 col0, + ( - 64 )
----
-2207
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MIN( 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2247
SELECT MIN ( 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - - NULLIF ( + - 14, - 75 + - COUNT( ALL - 67 ) - - COUNT( * ) * 31 )
----
-14

skipif mysql # not compatible
query I rowsort label-2248
SELECT - - NULLIF ( + - 14, - 75 + - COUNT ( ALL - 67 ) - - COUNT ( * ) * 31 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT - - MAX( - + 50 ) DIV ( - 91 ) * 71
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - MAX ( - + 50 ) / ( - 91 ) * 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - - MAX( ALL + 5 ) * + 83 * - - 72 AS col1
----
29880

skipif mysql # not compatible
query I rowsort label-2250
SELECT - - MAX ( ALL + 5 ) * + 83 * - - 72 AS col1
----
29880

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - + 1 * - 6 * - - 50 - + COUNT( * ) AS col1
----
299

skipif mysql # not compatible
query I rowsort label-2251
SELECT - + 1 * - 6 * - - 50 - + COUNT ( * ) AS col1
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL - ( - 94 ) DIV - 5 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - ( - 94 ) / - 5 AS col2
----
-18

query I rowsort
SELECT - 9 + - 13 AS col0
----
-22

query I rowsort
SELECT ALL ( - - 49 ) * - NULLIF ( + + 70, - 94 - + 61 ) * - 46 AS col1
----
157780

query I rowsort
SELECT - 22 * - 16
----
352

query I rowsort
SELECT ALL + 87 * 81 + 76 + - 25
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT NULLIF ( - - 0, 70 ) * - 41 + + MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT NULLIF ( - - 0, 70 ) * - 41 + + MAX ( 71 )
----
71

query I rowsort
SELECT ALL + 60 * + + 14 + 28 AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - 70 * + + 94 + - COUNT( * ) col0
----
-6581

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 70 * + + 94 + - COUNT ( * ) col0
----
-6581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT - 47 * + CAST( NULL AS SIGNED ) / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 47 * + CAST ( NULL AS INTEGER ) / - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT + COUNT( + 55 ), - ( + 3 ) + + - 79 * 83 col1
----
1
-6560

skipif mysql # not compatible
query II rowsort label-2261
SELECT + COUNT ( + 55 ), - ( + 3 ) + + - 79 * 83 col1
----
1
-6560

query I rowsort
SELECT + 17 * 80 AS col1
----
1360

query I rowsort
SELECT + 23 + + + 1 AS col1
----
24

query I rowsort
SELECT + NULLIF ( 23, + 47 - - - 55 * + 68 * + 81 * 50 + - 18 * - 82 ) col0
----
23

query I rowsort
SELECT CASE 14 WHEN 15 THEN NULL WHEN + + 69 THEN 45 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT - 72 * - - MIN( ALL - 52 ) - + CASE + 54 WHEN + - 97 THEN - + 19 ELSE NULL END + - 19 + + 27 * - 88 + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - 72 * - - MIN ( ALL - 52 ) - + CASE + 54 WHEN + - 97 THEN - + 19 ELSE NULL END + - 19 + + 27 * - 88 + - 32 AS col0
----
NULL

query II rowsort
SELECT ALL 98 * - 43 AS col0, + 28
----
-4214
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT MIN( 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2268
SELECT MIN ( 60 ) AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-2269
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) * - 6
----
NULL

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

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

query I rowsort
SELECT + 63 * - 27 * - + 35
----
59535

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

skipif mysql # not compatible
query I rowsort label-2272
SELECT + - COUNT ( - 16 ) / - + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2273
SELECT ALL + - 72 * + + 98 AS col1, + ( + - COUNT( * ) ) * + 56
----
-7056
-56

skipif mysql # not compatible
query II rowsort label-2273
SELECT ALL + - 72 * + + 98 AS col1, + ( + - COUNT ( * ) ) * + 56
----
-7056
-56

query I rowsort
SELECT - + ( - 75 ) + 44 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT 69 DIV + 33 + + 18 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT 69 / + 33 + + 18 AS col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-2276
SELECT DISTINCT 78 DIV - 72 col1, + 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-2276
SELECT DISTINCT 78 / - 72 col1, + 10 AS col0
----
-1
10

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

skipif mysql # not compatible
query I rowsort label-2277
SELECT + MAX ( ALL + 33 ) * - - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - CASE - 87 WHEN 12 THEN 24 WHEN - COUNT( * ) THEN 18 ELSE NULL END + + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - CASE - 87 WHEN 12 THEN 24 WHEN - COUNT ( * ) THEN 18 ELSE NULL END + + + 18 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 + + + ( + 42 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ( - + ( + NULLIF ( 99, + + ( + + COUNT( * ) ) ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-2280
SELECT ( - + ( + NULLIF ( 99, + + ( + + COUNT ( * ) ) ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL - COUNT( * ) + 20 - - 33 col1
----
52

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - COUNT ( * ) + 20 - - 33 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - 35 + + + 6 + - COUNT( - 58 ) * - 1
----
-28

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - 35 + + + 6 + - COUNT ( - 58 ) * - 1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2283
SELECT + COUNT( * ) * + - 3 DIV - 81 * - - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED ) - - ( + - 96 ) * + 61 * - 50 - - 91 + + 27
----
292918

skipif mysql # not compatible
query I rowsort label-2283
SELECT + COUNT ( * ) * + - 3 / - 81 * - - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) - - ( + - 96 ) * + 61 * - 50 - - 91 + + 27
----
292918

query I rowsort
SELECT ALL - 17 + 62 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 7 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT 7 / 74
----
0

query I rowsort
SELECT ALL + 45 * - + 17
----
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT + 72 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT + 72 / - 53
----
-1

query I rowsort
SELECT DISTINCT - 0 - 72
----
-72

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT MAX( ALL - + 86 ) * + 87 + + + NULLIF ( - COUNT( * ), 24 ) AS col0
----
-7483

skipif mysql # not compatible
query I rowsort label-2291
SELECT MAX ( ALL - + 86 ) * + 87 + + + NULLIF ( - COUNT ( * ), 24 ) AS col0
----
-7483

query I rowsort
SELECT - 52 + 87 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 61 * - - MIN( 56 ) AS col0
----
3416

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 61 * - - MIN ( 56 ) AS col0
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL COUNT( * ) * - - 32
----
32

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL COUNT ( * ) * - - 32
----
32

query I rowsort
SELECT ALL - 47 * - 6
----
282

query I rowsort
SELECT + 88 + - + 25 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL CASE - NULLIF ( - - MAX( ALL + CASE 22 WHEN + 75 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 57 END ), 29 ) WHEN + 19 THEN + 59 END * 51 * + + CASE + - 21 WHEN - 31 THEN 94 / + - 93 END * - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL CASE - NULLIF ( - - MAX ( ALL + CASE 22 WHEN + 75 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 57 END ), 29 ) WHEN + 19 THEN + 59 END * 51 * + + CASE + - 21 WHEN - 31 THEN 94 / + - 93 END * - - 49 AS col1
----
NULL

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

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

query II rowsort
SELECT 84 * - 22 * + + 26 AS col0, - 59 * - 2
----
-48048
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT ALL - ( 14 ) + - 74 + SUM( DISTINCT 98 ) AS col1, + 92 AS col0
----
10
92

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL - ( 14 ) + - 74 + SUM ( DISTINCT 98 ) AS col1, + 92 AS col0
----
10
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT - 76 AS col1, 99 - + - 4 - MIN( + - 14 )
----
-76
117

skipif mysql # not compatible
query II rowsort label-2302
SELECT - 76 AS col1, 99 - + - 4 - MIN ( + - 14 )
----
-76
117

query I rowsort
SELECT DISTINCT - 53 + - + 25 AS col0
----
-78

query I rowsort
SELECT DISTINCT 42 * - ( + 15 ) AS col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL + 84 + + MAX( ALL 3 ) + - + 99 * + 74 * 54 * + - COALESCE ( - 82, - 26, 58 ) col1
----
-32439441

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + 84 + + MAX ( ALL 3 ) + - + 99 * + 74 * 54 * + - COALESCE ( - 82, - 26, 58 ) col1
----
-32439441

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL + COUNT( * ) + - - 12 * - 51 + 40 - + 70 + - 77 + + 80
----
-638

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + COUNT ( * ) + - - 12 * - 51 + 40 - + 70 + - 77 + + 80
----
-638

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

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

query I rowsort
SELECT ALL + 4 + - 49 col1
----
-45

query I rowsort
SELECT 32 + + 70
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT - 27 / - CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 71 THEN 10 / - 36 + + - COUNT( * ) - + + 73 * + COUNT( * ) - COALESCE ( - COUNT( - + ( + + 40 ) ), + 61 + - - 51, + CASE CAST( NULL AS SIGNED ) WHEN + 22 THEN + 20 * 55 + + COUNT( * ) / 18 * + - 7 + + 44 * - + 65 WHEN + 8 - - 13 * + 37 THEN 3 + - 28 END, - 50 ) ELSE NULL END + - SUM( + 11 ) / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 27 / - CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 71 THEN 10 / - 36 + + - COUNT ( * ) - + + 73 * + COUNT ( * ) - COALESCE ( - COUNT ( - + ( + + 40 ) ), + 61 + - - 51, + CASE CAST ( NULL AS INTEGER ) WHEN + 22 THEN + 20 * 55 + + COUNT ( * ) / 18 * + - 7 + + 44 * - + 65 WHEN + 8 - - 13 * + 37 THEN 3 + - 28 END, - 50 ) ELSE NULL END + - SUM ( + 11 ) / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 96 + - 71 AS col0
----
25

query I rowsort
SELECT 88 + + 18 + 43
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT + 58 AS col0, COUNT( * ) - + 72 + - - 79 * - - COUNT( * ) + - 55
----
58
-47

skipif mysql # not compatible
query II rowsort label-2313
SELECT + 58 AS col0, COUNT ( * ) - + 72 + - - 79 * - - COUNT ( * ) + - 55
----
58
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT COUNT( * ) AS col0, + ( 88 ) + - 62 + + COUNT( * ) AS col1
----
1
27

skipif mysql # not compatible
query II rowsort label-2314
SELECT COUNT ( * ) AS col0, + ( 88 ) + - 62 + + COUNT ( * ) AS col1
----
1
27

query I rowsort
SELECT 33 - - - 66 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 86 / + - 82 / + ( - COUNT( * ) ) + + + 32 / - 27 + + CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + - 79 * - 61 WHEN 64 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT 86 / + - 82 / + ( - COUNT ( * ) ) + + + 32 / - 27 + + CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 79 * - 61 WHEN 64 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL + CAST( + - 19 AS SIGNED ) * + 46 + - - 69
----
-805

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + CAST ( + - 19 AS INTEGER ) * + 46 + - - 69
----
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT ( 71 ) + + + CAST( + COALESCE ( - 73, - COUNT( * ), - COUNT( * ) ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2318
SELECT ( 71 ) + + + CAST ( + COALESCE ( - 73, - COUNT ( * ), - COUNT ( * ) ) AS INTEGER ) col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT ALL COUNT( * ) * + + 38 AS col0, - COUNT( * ) - + 15
----
38
-16

skipif mysql # not compatible
query II rowsort label-2319
SELECT ALL COUNT ( * ) * + + 38 AS col0, - COUNT ( * ) - + 15
----
38
-16

query I rowsort
SELECT DISTINCT 58 - 94 + - + 21 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT COALESCE ( + 53, + + COUNT( * ) * - COUNT( + 35 ) - COUNT( * ) * + 98 ) - + CAST( + COUNT( * ) AS SIGNED ) + + - 69 + + 46 DIV - + 76 * - 29 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT COALESCE ( + 53, + + COUNT ( * ) * - COUNT ( + 35 ) - COUNT ( * ) * + 98 ) - + CAST ( + COUNT ( * ) AS INTEGER ) + + - 69 + + 46 / - + 76 * - 29 AS col2
----
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - NULLIF ( + 36, COALESCE ( + 76, - - 38 * + 15 + 36 + + CAST( - 88 AS SIGNED ) * - 27 ) ) * 65 * 86 + ( + 37 )
----
-201203

skipif mysql # not compatible
query I rowsort label-2323
SELECT - NULLIF ( + 36, COALESCE ( + 76, - - 38 * + 15 + 36 + + CAST ( - 88 AS INTEGER ) * - 27 ) ) * 65 * 86 + ( + 37 )
----
-201203

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

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

query II rowsort
SELECT ALL - 87, - 2 * 51 AS col0
----
-87
-102

query I rowsort
SELECT 51 * + + 89 * - 43 AS col2
----
-195177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT ALL - CAST( NULL AS DECIMAL ) / + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - CAST ( NULL AS REAL ) / + 54
----
NULL

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

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

query II rowsort
SELECT ALL - 32 AS col1, + 65 AS col2
----
-32
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT DISTINCT - - 38 + + + 52, + 40 * - + 32 * + - COUNT( * ) AS col1
----
90
1280

skipif mysql # not compatible
query II rowsort label-2330
SELECT DISTINCT - - 38 + + + 52, + 40 * - + 32 * + - COUNT ( * ) AS col1
----
90
1280

query I rowsort
SELECT - ( - + 43 ) * ( + 90 ) + - 1 AS col1
----
3869

query I rowsort
SELECT 22 * + 17 AS col1
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - - ( 75 ), - 11 ) + - COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - - ( 75 ), - 11 ) + - COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - CASE - + 16 WHEN - 98 THEN NULL WHEN 21 THEN NULL ELSE - + CASE - MIN( + 65 ) WHEN - - 30 + - 26 THEN + COUNT( * ) - - + 47 * - - 74 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - CASE - + 16 WHEN - 98 THEN NULL WHEN 21 THEN NULL ELSE - + CASE - MIN ( + 65 ) WHEN - - 30 + - 26 THEN + COUNT ( * ) - - + 47 * - - 74 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT - COUNT( DISTINCT + 28 ) AS col0, - 16
----
-1
-16

skipif mysql # not compatible
query II rowsort label-2335
SELECT - COUNT ( DISTINCT + 28 ) AS col0, - 16
----
-1
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - + 96 + 97 + + 19 * + COUNT( * ) - + + 56 * + 74 AS col2
----
-4124

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - + 96 + 97 + + 19 * + COUNT ( * ) - + + 56 * + 74 AS col2
----
-4124

query II rowsort
SELECT - 4 AS col0, 22 col1
----
-4
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL + 13 + - 78 + + CAST( NULL AS SIGNED ) * - ( - 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 13 + - 78 + + CAST ( NULL AS INTEGER ) * - ( - 34 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2340
SELECT DISTINCT 49 AS col2, + 23 + + COUNT( ALL + CAST( + 2 AS SIGNED ) )
----
49
24

skipif mysql # not compatible
query II rowsort label-2340
SELECT DISTINCT 49 AS col2, + 23 + + COUNT ( ALL + CAST ( + 2 AS INTEGER ) )
----
49
24

query I rowsort
SELECT ALL 14 + + 71 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL 19 + - 66 + ( COUNT( * ) ) * + 82 * + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 19 + - 66 + ( COUNT ( * ) ) * + 82 * + COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2343
SELECT 14, ( - ( 88 ) ) - + NULLIF ( - 23, - 21 * + - 16 * + 81 - - 43 + + 53 * COUNT( * ) ) DIV - 62 AS col0
----
14
-88

skipif mysql # not compatible
query II rowsort label-2343
SELECT 14, ( - ( 88 ) ) - + NULLIF ( - 23, - 21 * + - 16 * + 81 - - 43 + + 53 * COUNT ( * ) ) / - 62 AS col0
----
14
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT ALL + 14 AS col0, 24 + + COUNT( * ) - COUNT( + 58 ) * - 57
----
14
82

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL + 14 AS col0, 24 + + COUNT ( * ) - COUNT ( + 58 ) * - 57
----
14
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + - 52 + + 89 + + - COUNT( + 74 ) + + 65 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2345
SELECT + - 52 + + 89 + + - COUNT ( + 74 ) + + 65 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT + 2 - + + ( - 61 ) * - 91 - - + CAST( NULL AS SIGNED ) * - COALESCE ( - CASE + CAST( NULL AS SIGNED ) WHEN - + 30 THEN ( + + 68 ) / - 1 WHEN - 87 THEN NULL WHEN - + 83 THEN NULL END, + 21, CASE - - 0 WHEN + - 48 THEN 18 WHEN 32 THEN NULL WHEN + + 24 + - + 99 THEN - 6 / ( - AVG ( ALL - - 82 ) ) / - 53 END ) + - + AVG ( DISTINCT + 74 ) / NULLIF ( + - COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 2 ), + 29 + + COUNT( * ) ) * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 2 - + + ( - 61 ) * - 91 - - + CAST ( NULL AS INTEGER ) * - COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN - + 30 THEN ( + + 68 ) / - 1 WHEN - 87 THEN NULL WHEN - + 83 THEN NULL END, + 21, CASE - - 0 WHEN + - 48 THEN 18 WHEN 32 THEN NULL WHEN + + 24 + - + 99 THEN - 6 / ( - AVG ( ALL - - 82 ) ) / - 53 END ) + - + AVG ( DISTINCT + 74 ) / NULLIF ( + - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 2 ), + 29 + + COUNT ( * ) ) * - 75 AS col1
----
NULL

query I rowsort
SELECT + + 78 + + 54
----
132

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

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - CAST ( 44 AS INTEGER ) + - - 59
----
15

query I rowsort
SELECT ALL 85 + + 78 + + 58 + ( + 25 ) AS col1
----
246

query I rowsort
SELECT ALL + 17 - - 92 AS col1
----
109

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + CASE - 50 WHEN CAST( NULL AS SIGNED ) + + 13 THEN - COUNT( * ) + - ( - + 25 ) * - 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT + CASE - 50 WHEN CAST ( NULL AS INTEGER ) + + 13 THEN - COUNT ( * ) + - ( - + 25 ) * - 5 ELSE NULL END
----
NULL

query I rowsort
SELECT + 46 * - - 69 AS col2
----
3174

query I rowsort
SELECT + 58 * - 80 * + - 43
----
199520

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT - 82 DIV - + 34 - 13 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 82 / - + 34 - 13 AS col1
----
-11

query I rowsort
SELECT - 16 * - 85 * - + 22 col0
----
-29920

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + 28 - - + 34 * - 68 * - SUM( + ( - 5 ) ) - - 18 - + - 20 * CASE COUNT( * ) WHEN 47 THEN - 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 28 - - + 34 * - 68 * - SUM ( + ( - 5 ) ) - - 18 - + - 20 * CASE COUNT ( * ) WHEN 47 THEN - 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT CASE + COUNT( * ) WHEN - ( - 65 ) THEN 85 * - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT CASE + COUNT ( * ) WHEN - ( - 65 ) THEN 85 * - 89 END AS col0
----
NULL

query II rowsort
SELECT + ( 60 ) AS col2, 3 + - 13 AS col2
----
60
-10

query I rowsort
SELECT + 57 * - - 46
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - CASE + 36 WHEN + 49 + + + 26 * + 86 * 50 + - 71 + - - MIN( DISTINCT 52 ) THEN + 4 + + COUNT( * ) WHEN - 7 THEN + - 99 * - - 62 - 88 END - - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - CASE + 36 WHEN + 49 + + + 26 * + 86 * 50 + - 71 + - - MIN ( DISTINCT 52 ) THEN + 4 + + COUNT ( * ) WHEN - 7 THEN + - 99 * - - 62 - 88 END - - 82 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) * + 22 + + 90
----
68

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) * + 22 + + 90
----
68

query I rowsort
SELECT ALL - 78 * + 57 + + 44
----
-4402

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT 56 * - CASE - 37 WHEN 20 THEN - + COUNT( * ) ELSE NULL END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT 56 * - CASE - 37 WHEN 20 THEN - + COUNT ( * ) ELSE NULL END + + 23
----
NULL

query I rowsort
SELECT + + 99 * + + 11 + 35 AS col0
----
1124

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT - 26 DIV + 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 26 / + 20 AS col2
----
-1

query I rowsort
SELECT ALL - + 10 + + 14 AS col0
----
4

query I rowsort
SELECT - 73 * - - 11 * 65 AS col0
----
-52195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2371
SELECT ALL - + SUM( 62 ) * - CASE - 96 WHEN 18 + - COUNT( * ) / 85 THEN + - 93 * - CAST( NULL AS DECIMAL ) * - 76 ELSE NULL END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - + SUM ( 62 ) * - CASE - 96 WHEN 18 + - COUNT ( * ) / 85 THEN + - 93 * - CAST ( NULL AS REAL ) * - 76 ELSE NULL END * 16
----
NULL

query I rowsort
SELECT - 17 * - 86
----
1462

query I rowsort
SELECT - 86 + 46
----
-40

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

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

query I rowsort
SELECT - + 37 * - 85 AS col1
----
3145

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT - + 32 * - 94 * + CASE + - 80 WHEN - - 57 + - + COUNT( * ) THEN - 22 WHEN COUNT( * ) THEN 56 / + 11 END, COUNT( * ) * - COUNT( * ) * + 0 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2376
SELECT - + 32 * - 94 * + CASE + - 80 WHEN - - 57 + - + COUNT ( * ) THEN - 22 WHEN COUNT ( * ) THEN 56 / + 11 END, COUNT ( * ) * - COUNT ( * ) * + 0 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT - - MAX( ALL 67 ) * - 77 AS col0, 42
----
-5159
42

skipif mysql # not compatible
query II rowsort label-2377
SELECT - - MAX ( ALL 67 ) * - 77 AS col0, 42
----
-5159
42

query I rowsort
SELECT - ( + 24 ) + + + 7 AS col0
----
-17

query I rowsort
SELECT ALL - - 89 * + ( + + 64 ) AS col2
----
5696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT - 88 - + - 81 * ( - ( + - MIN( 68 ) ) ) col0
----
5420

skipif mysql # not compatible
query I rowsort label-2381
SELECT - 88 - + - 81 * ( - ( + - MIN ( 68 ) ) ) col0
----
5420

query I rowsort
SELECT DISTINCT - 41 * + 71 * + + 34 AS col0
----
-98974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL CAST( CAST( - 46 AS SIGNED ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL CAST ( CAST ( - 46 AS INTEGER ) AS INTEGER )
----
-46

query I rowsort
SELECT + 40 * + 30
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL 46 * - ( + + 31 ) * - 53 * + COUNT( * ) + 6
----
75584

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL 46 * - ( + + 31 ) * - 53 * + COUNT ( * ) + 6
----
75584

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - 52 + + COUNT( + 74 ) + - COUNT( DISTINCT 29 ) + + 82
----
30

skipif mysql # not compatible
query I rowsort label-2386
SELECT - 52 + + COUNT ( + 74 ) + - COUNT ( DISTINCT 29 ) + + 82
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT + MAX( - + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2387
SELECT + MAX ( - + 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + COALESCE ( - COUNT( * ), + 5 + - 3, - + 51, - - COUNT( * ) ) - + COUNT( * ) + - NULLIF ( 78, + 33 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2388
SELECT + COALESCE ( - COUNT ( * ), + 5 + - 3, - + 51, - - COUNT ( * ) ) - + COUNT ( * ) + - NULLIF ( 78, + 33 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - 23 * COUNT( * ) * + 32 AS col1
----
-736

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - 23 * COUNT ( * ) * + 32 AS col1
----
-736

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT DISTINCT + MIN( + + ( + 60 ) ), + 94 AS col1
----
60
94

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT + MIN ( + + ( + 60 ) ), + 94 AS col1
----
60
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 86 * + - NULLIF ( + CAST( 3 AS SIGNED ), + + 67 * + 25 + + - 13 ) * 63 - - 40 DIV + 71
----
-16254

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 86 * + - NULLIF ( + CAST ( 3 AS INTEGER ), + + 67 * + 25 + + - 13 ) * 63 - - 40 / + 71
----
-16254

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT SUM( + 28 ) * - - 52 + + SUM( 18 ) - - 70 AS col2, 56 * 19 col1
----
1544
1064

skipif mysql # not compatible
query II rowsort label-2393
SELECT SUM ( + 28 ) * - - 52 + + SUM ( 18 ) - - 70 AS col2, 56 * 19 col1
----
1544
1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT + 21 DIV 67 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 21 / 67 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT + + 54 + + - CASE + - ( + 18 ) WHEN - 11 THEN NULL WHEN + 5 * - 51 + + 11 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + + 54 + + - CASE + - ( + 18 ) WHEN - 11 THEN NULL WHEN + 5 * - 51 + + 11 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * - 56 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2396
SELECT + CAST( + - SUM( DISTINCT - 19 ) AS SIGNED ) * + 27, 12 DIV - - 4 AS col1, - COUNT( * ) AS col2
----
513
3
-1

skipif mysql # not compatible
query III rowsort label-2396
SELECT + CAST ( + - SUM ( DISTINCT - 19 ) AS INTEGER ) * + 27, 12 / - - 4 AS col1, - COUNT ( * ) AS col2
----
513
3
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2397
SELECT 26, COUNT( * ) DIV 83 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-2397
SELECT 26, COUNT ( * ) / 83 AS col0
----
26
0

query I rowsort
SELECT ALL 47 * - 87 AS col2
----
-4089

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

query II rowsort
SELECT + + 84, 50 * - 35 AS col0
----
84
-1750

query I rowsort
SELECT ALL 91 + 74 + - + 57 * + 39 * + 34
----
-75417

query I rowsort
SELECT ALL + 97 * 89
----
8633

query I rowsort
SELECT - 66 + - 73 + - 24 * - 79
----
1757

query I rowsort
SELECT DISTINCT NULLIF ( + + 57, + 47 ) - + 19
----
38

query I rowsort
SELECT 41 * - 62 AS col1
----
-2542

query I rowsort
SELECT - 80 + - + 22 AS col1
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT ALL - 72 - + 58 + 93 * + 40 + COUNT( * ) DIV 65 * 69 - + 71 AS col2
----
3519

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - 72 - + 58 + 93 * + 40 + COUNT ( * ) / 65 * 69 - + 71 AS col2
----
3519

query I rowsort
SELECT - 32 + + - 43 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT - COUNT( * ) - - + 60 DIV 99 * + 24
----
-1

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( * ) - - + 60 / 99 * + 24
----
-1

query I rowsort
SELECT - 7 * + 55 AS col1
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL - 81 DIV - - 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - 81 / - - 42 AS col2
----
-1

query I rowsort
SELECT - + 22 * NULLIF ( - + 78, + - AVG ( DISTINCT - 20 ) ) - + 22 - + 2
----
1692

query I rowsort
SELECT ALL 20 - - - 41
----
-21

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

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

query I rowsort
SELECT ALL + ( 51 ) * + 0
----
0

query I rowsort
SELECT 32 + + 90 * 70
----
6332

query I rowsort
SELECT DISTINCT + 9 * NULLIF ( - + 83, - 70 ) * - 72
----
53784

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT ALL + 0 * - + 19 DIV - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + 0 * - + 19 / - 6 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 52 * + 25 * COUNT( * ) * - + 30
----
-39000

skipif mysql # not compatible
query I rowsort label-2419
SELECT 52 * + 25 * COUNT ( * ) * - + 30
----
-39000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT 61 * CAST( 97 AS SIGNED )
----
5917

skipif mysql # not compatible
query I rowsort label-2420
SELECT 61 * CAST ( 97 AS INTEGER )
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - 28 + + + COUNT( + 24 ) - + MIN( - 57 )
----
30

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - 28 + + + COUNT ( + 24 ) - + MIN ( - 57 )
----
30

query I rowsort
SELECT 67 + - - 93 AS col0
----
160

query II rowsort
SELECT 51 * + 46 AS col2, 68 AS col1
----
2346
68

query I rowsort
SELECT ALL + ( + 61 ) + - + 12 + - 37 * + - 16 + 42
----
683

query I rowsort
SELECT DISTINCT - 10 + - 89 + + - 77
----
-176

query I rowsort
SELECT 41 * 97 * - + 19 * - 74 AS col1
----
5591662

query I rowsort
SELECT 76 * - - 65
----
4940

query I rowsort
SELECT ALL - 92 + + 99 + + 40
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2429
SELECT COUNT( * ) - - - CAST( - 22 AS SIGNED ) DIV - 5 AS col0, 35 * + + 91 * + COALESCE ( + 61, - 16 ) + - - 96
----
-3
194381

skipif mysql # not compatible
query II rowsort label-2429
SELECT COUNT ( * ) - - - CAST ( - 22 AS INTEGER ) / - 5 AS col0, 35 * + + 91 * + COALESCE ( + 61, - 16 ) + - - 96
----
-3
194381

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + 61 * - - COUNT( * ) + + 70 * 67 * CASE COUNT( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 61 * - - COUNT ( * ) + + 70 * 67 * CASE COUNT ( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 76 - - - 25
----
-101

query II rowsort
SELECT - 55 - + 72 col2, 38
----
-127
38

query I rowsort
SELECT ALL 24 - + 70 + + - 71 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - SUM( - + 26 ) * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-2434
SELECT - SUM ( - + 26 ) * - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + COALESCE ( 63, + COUNT( * ), - + 20 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2435
SELECT + COALESCE ( 63, + COUNT ( * ), - + 20 ) AS col2
----
63

query I rowsort
SELECT ALL 52 * - 50
----
-2600

query I rowsort
SELECT - 21 + - 53 + 35 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2438
SELECT COUNT( * ) DIV - 64 col2, 68 * 89 + - + ( MIN( DISTINCT + 45 ) ) - - 62 + + 37 DIV - 49 + - 63 AS col0
----
0
6006

skipif mysql # not compatible
query II rowsort label-2438
SELECT COUNT ( * ) / - 64 col2, 68 * 89 + - + ( MIN ( DISTINCT + 45 ) ) - - 62 + + 37 / - 49 + - 63 AS col0
----
0
6006

query I rowsort
SELECT DISTINCT 65 * + + 99
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT NULLIF ( + - 87, + ( 76 ) + 52 / - + 37 * + 96 - - 91 + + COUNT( + - 72 ) ) + + MIN( ALL - + 43 )
----
-130

skipif mysql # not compatible
query I rowsort label-2440
SELECT NULLIF ( + - 87, + ( 76 ) + 52 / - + 37 * + 96 - - 91 + + COUNT ( + - 72 ) ) + + MIN ( ALL - + 43 )
----
-130

query I rowsort
SELECT ALL - 35 * - CASE + 46 WHEN 89 * + 50 THEN 86 ELSE + - 40 - 57 END AS col0
----
-3395

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

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

query I rowsort
SELECT ALL NULLIF ( 47, - 99 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT MAX( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-2444
SELECT MAX ( DISTINCT - 63 )
----
-63

query I rowsort
SELECT 45 + + 25
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - MAX( + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2446
SELECT - MAX ( + 72 ) AS col0
----
-72

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL ( - COUNT ( * ) ) + + 2 AS col2
----
1

query I rowsort
SELECT NULLIF ( + 26, 75 ) + + - CASE + ( - + 46 ) WHEN - - 34 THEN NULL ELSE 31 END
----
-5

query I rowsort
SELECT 42 + - + 48 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 23 + 49 AS col0
----
26

query II rowsort
SELECT ALL + 69 * + - 30 * - 22 AS col1, 4 * - + 23 AS col1
----
45540
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2452
SELECT CAST( + 55 AS SIGNED ) DIV - + MAX( 10 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2452
SELECT CAST ( + 55 AS INTEGER ) / - + MAX ( 10 ) AS col0
----
-5

query I rowsort
SELECT ALL ( 9 ) + + + 39
----
48

query I rowsort
SELECT DISTINCT + 51 * 71 AS col2
----
3621

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2455
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 61 + + 15 * 81 * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT CAST ( NULL AS REAL ) + 61 + + 15 * 81 * - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT ALL 81 + + COUNT( * ) + - - 42 col1, + 36
----
124
36

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL 81 + + COUNT ( * ) + - - 42 col1, + 36
----
124
36

query I rowsort
SELECT ALL + 61 + 72 + + 79
----
212

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

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

query I rowsort
SELECT + 39 + - + 39 + - 38 * - + 66 AS col0
----
2508

query I rowsort
SELECT ALL + ( 13 ) col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT 61 * + - COUNT( * ) - - 99 AS col1, COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-2461
SELECT 61 * + - COUNT ( * ) - - 99 AS col1, COUNT ( * )
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL 66 * COUNT( * ) * - 31 * - 47 - 67 + - COUNT( * ) AS col0
----
96094

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL 66 * COUNT ( * ) * - 31 * - 47 - 67 + - COUNT ( * ) AS col0
----
96094

query II rowsort
SELECT + 28 AS col1, + 30
----
28
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + COALESCE ( ( - + ( + 22 ) ), + COUNT( * ), 3 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + COALESCE ( ( - + ( + 22 ) ), + COUNT ( * ), 3 ) AS col2
----
-22

query II rowsort
SELECT + 78 AS col2, - 94 AS col0
----
78
-94

query I rowsort
SELECT ALL + + 86 col0
----
86

query I rowsort
SELECT - 65 * + + 97 AS col1
----
-6305

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2469
SELECT + 95 DIV + 7 + COALESCE ( 9, - 34, - NULLIF ( 82, - - CAST( - 17 AS SIGNED ) + - 66 + 85 DIV - 31 + + 39 ) * 91 ) + - 10
----
12

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 95 / + 7 + COALESCE ( 9, - 34, - NULLIF ( 82, - - CAST ( - 17 AS INTEGER ) + - 66 + 85 / - 31 + + 39 ) * 91 ) + - 10
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 87 * + CAST( + + ( + 79 ) AS SIGNED ) + + - 69 - + 30 - 55
----
6719

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 87 * + CAST ( + + ( + 79 ) AS INTEGER ) + + - 69 - + 30 - 55
----
6719

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

skipif mysql # not compatible
query II rowsort label-2471
SELECT DISTINCT + 47 * 20 * - 61 AS col0, + COUNT ( * ) AS col2
----
-57340
1

query II rowsort
SELECT DISTINCT + + 18 AS col1, 29
----
18
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - + 25 * - COUNT( * ) DIV + 90 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT - + 25 * - COUNT ( * ) / + 90 * + COUNT ( * ) AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + 97 * - 25 * 32
----
-77600

query I rowsort
SELECT DISTINCT + 86 * + 62 AS col0
----
5332

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT DISTINCT + + COALESCE ( 3, + 81 ) AS col0, + COUNT( * ) - - 87
----
3
88

skipif mysql # not compatible
query II rowsort label-2479
SELECT DISTINCT + + COALESCE ( 3, + 81 ) AS col0, + COUNT ( * ) - - 87
----
3
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + 66 * - 44 + - - 76 * + MAX( ALL 57 )
----
1428

skipif mysql # not compatible
query I rowsort label-2481
SELECT + 66 * - 44 + - - 76 * + MAX ( ALL 57 )
----
1428

query I rowsort
SELECT ALL NULLIF ( + 64, 92 / - 68 + - - 76 ) + - - 62 + 93 AS col1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT ALL 23 + - 68 * - 69 * - - CAST( - 89 AS SIGNED ) AS col2
----
-417565

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL 23 + - 68 * - 69 * - - CAST ( - 89 AS INTEGER ) AS col2
----
-417565

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + 88 - 55 * + + COUNT( * ) + + COUNT( DISTINCT + + 55 )
----
34

skipif mysql # not compatible
query I rowsort label-2484
SELECT + 88 - 55 * + + COUNT ( * ) + + COUNT ( DISTINCT + + 55 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT - MIN( ALL + + 53 ) + 38 + - + 77 * + 78
----
-6021

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - MIN ( ALL + + 53 ) + 38 + - + 77 * + 78
----
-6021

query II rowsort
SELECT ALL 19, 51 - - 16 AS col1
----
19
67

query I rowsort
SELECT - COALESCE ( + 12, + 85 ) col0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT ( - COUNT( * ) ) + - ( - 50 ) + - 21 * - + 59 * + 56 * + 50 AS col0
----
3469249

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT ( - COUNT ( * ) ) + - ( - 50 ) + - 21 * - + 59 * + 56 * + 50 AS col0
----
3469249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2490
SELECT + CASE - 39 WHEN + 23 THEN NULL WHEN - 71 / - + AVG ( + ( + CAST( - + 73 AS DECIMAL ) ) ) - - 49 * + 95 THEN CASE + - 65 WHEN - 92 THEN 15 END END + + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT + CASE - 39 WHEN + 23 THEN NULL WHEN - 71 / - + AVG ( + ( + CAST ( - + 73 AS REAL ) ) ) - - 49 * + 95 THEN CASE + - 65 WHEN - 92 THEN 15 END END + + - 20
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 70 * - 52 AS col1
----
-3559

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2492
SELECT ALL 33 + - + CAST( NULL AS DECIMAL ) * - 92 * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 33 + - + CAST ( NULL AS REAL ) * - 92 * + 17 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 22, 17 ) * ( + 18 ) + + 76 AS col2
----
-320

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + 29 - - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + 29 - - COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT - CAST( ( + 9 ) AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2497
SELECT - CAST ( ( + 9 ) AS INTEGER ) AS col1
----
-9

query I rowsort
SELECT ALL + NULLIF ( + 80, - - 3 ) * + 83
----
6640

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL + - 84 AS col1, ( - 67 ) * + COUNT( ALL - - 47 ) + - COUNT( * ) + - + 9 * 74 AS col0
----
-84
-734

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL + - 84 AS col1, ( - 67 ) * + COUNT ( ALL - - 47 ) + - COUNT ( * ) + - + 9 * 74 AS col0
----
-84
-734

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

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

query I rowsort
SELECT - + 65 * + - 25 AS col0
----
1625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 31 AS col0
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2503
SELECT CAST( + - 15 AS SIGNED ) DIV - + 7 - - 13
----
15

skipif mysql # not compatible
query I rowsort label-2503
SELECT CAST ( + - 15 AS INTEGER ) / - + 7 - - 13
----
15

query I rowsort
SELECT - 46 / - CASE - 84 WHEN - 77 THEN + 46 WHEN + - 27 THEN NULL END / - + 84 * - + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL + MAX( DISTINCT CAST( - 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + MAX ( DISTINCT CAST ( - 91 AS INTEGER ) )
----
-91

query II rowsort
SELECT ALL + 26, ( + 4 ) AS col0
----
26
4

query I rowsort
SELECT DISTINCT + CASE - 2 WHEN - 92 * + 57 THEN NULL WHEN - 0 THEN + 71 + 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT - 17 * CAST( + COUNT( * ) AS SIGNED ) + + 22 + ( - - COALESCE ( + NULLIF ( + 96, COUNT( * ) ), 16 * - 22 ) ) DIV NULLIF ( COUNT( * ), - + MIN( + - 22 ) ) col2
----
101

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 17 * CAST ( + COUNT ( * ) AS INTEGER ) + + 22 + ( - - COALESCE ( + NULLIF ( + 96, COUNT ( * ) ), 16 * - 22 ) ) / NULLIF ( COUNT ( * ), - + MIN ( + - 22 ) ) col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT ALL + 75 AS col2, CASE COUNT( DISTINCT 10 ) WHEN + + 12 THEN NULL WHEN 93 * + 90 * - + COUNT( * ) * - - 63 + - 57 + + 94 THEN - + 96 * 95 + 64 + - 12 END
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL + 75 AS col2, CASE COUNT ( DISTINCT 10 ) WHEN + + 12 THEN NULL WHEN 93 * + 90 * - + COUNT ( * ) * - - 63 + - 57 + + 94 THEN - + 96 * 95 + 64 + - 12 END
----
75
NULL

query II rowsort
SELECT DISTINCT + + 65, + 78 + + 42 AS col2
----
65
120

query I rowsort
SELECT - - 38 - + 68 - + + 4 * 13 * + 9 AS col2
----
-498

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - + COUNT( DISTINCT + 71 ) - - ( COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2513
SELECT - + COUNT ( DISTINCT + 71 ) - - ( COUNT ( * ) ) col0
----
0

query I rowsort
SELECT - - COALESCE ( 3, - 27 ) * - + 10
----
-30

query I rowsort
SELECT ALL - 38 * - 66 * + ( 47 ) + - 40 + + + 23
----
117859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) - + - 17 + 16 / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + - 17 + 16 / + 43
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2517
SELECT - - ( + 87 ) * + ( - 68 ) + - 59 + - + 58 + - 63 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - - ( + 87 ) * + ( - 68 ) + - 59 + - + 58 + - 63 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL ( + 30 ) * + 90 + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL ( + 30 ) * + 90 + 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL - 69 * 53 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 69 * 53 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT NULLIF ( - - 10, - 94 / + CAST( NULL AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2520
SELECT NULLIF ( - - 10, - 94 / + CAST ( NULL AS INTEGER ) ) AS col2
----
10

query I rowsort
SELECT COALESCE ( 6, - - 7 * - - 77, - 99 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT CAST( - - 68 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT CAST ( - - 68 AS INTEGER ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT DISTINCT CASE - 0 WHEN - 47 + - + MAX( - 97 ) * - SUM( 31 ) * + 49 + + CASE 70 WHEN - COALESCE ( - 72, - 92, 37 / 62 * 94, - - 41 ) THEN + 62 WHEN - + 19 THEN NULL ELSE NULL END THEN + 71 WHEN - CAST( NULL AS SIGNED ) * + COUNT( * ) * + 92 * 27 THEN + COALESCE ( - 20, 37 * 41 / + 89 ) END * - 35 + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT CASE - 0 WHEN - 47 + - + MAX ( - 97 ) * - SUM ( 31 ) * + 49 + + CASE 70 WHEN - COALESCE ( - 72, - 92, 37 / 62 * 94, - - 41 ) THEN + 62 WHEN - + 19 THEN NULL ELSE NULL END THEN + 71 WHEN - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 92 * 27 THEN + COALESCE ( - 20, 37 * 41 / + 89 ) END * - 35 + + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - COUNT( * ) + 55 + - 14 + - MAX( ALL + + CASE ( + + 77 ) WHEN + 81 THEN + + 94 END ) * - 20 * + COUNT( ALL - 61 ) * - COUNT( * ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT - COUNT ( * ) + 55 + - 14 + - MAX ( ALL + + CASE ( + + 77 ) WHEN + 81 THEN + + 94 END ) * - 20 * + COUNT ( ALL - 61 ) * - COUNT ( * ) + 60
----
NULL

query I rowsort
SELECT 51 * 22 AS col1
----
1122

onlyif mysql # DIV for integer division: 
query II rowsort label-2526
SELECT ALL 34 DIV + 71 AS col1, 77 AS col0
----
0
77

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL 34 / + 71 AS col1, 77 AS col0
----
0
77

query I rowsort
SELECT 57 + - - ( - ( - 82 ) ) + - 91 * + 63 AS col1
----
-5594

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT 76 + + ( + 78 ) * - + COUNT( * ) + + MIN( ALL + + 27 ) + + 7 col2, 37
----
32
37

skipif mysql # not compatible
query II rowsort label-2528
SELECT 76 + + ( + 78 ) * - + COUNT ( * ) + + MIN ( ALL + + 27 ) + + 7 col2, 37
----
32
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL CASE + 72 WHEN - 91 * + 66 - - - CAST( - + COUNT( * ) AS SIGNED ) THEN - - ( + + 14 ) WHEN 21 THEN - 51 + - 88 * - 47 ELSE - ( - MIN( ALL - 45 ) ) * - 90 + COUNT( * ) + - 76 + + + 82 * + 81 - - COUNT( * ) * - - 40 END * + 37
----
394309

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL CASE + 72 WHEN - 91 * + 66 - - - CAST ( - + COUNT ( * ) AS INTEGER ) THEN - - ( + + 14 ) WHEN 21 THEN - 51 + - 88 * - 47 ELSE - ( - MIN ( ALL - 45 ) ) * - 90 + COUNT ( * ) + - 76 + + + 82 * + 81 - - COUNT ( * ) * - - 40 END * + 37
----
394309

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ( + 28 ) + + - SUM( 81 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2531
SELECT ( + 28 ) + + - SUM ( 81 ) AS col2
----
-53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT DISTINCT 91 * + - 94, MAX( + - 8 ) * - + 95 - + + 82 col1
----
-8554
678

skipif mysql # not compatible
query II rowsort label-2533
SELECT DISTINCT 91 * + - 94, MAX ( + - 8 ) * - + 95 - + + 82 col1
----
-8554
678

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + 80 * - 75 + MIN( + 9 )
----
-5991

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + 80 * - 75 + MIN ( + 9 )
----
-5991

query II rowsort
SELECT + 8 + - 77 AS col1, + 69
----
-69
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2537
SELECT - 47 * + + COUNT( * ) DIV + 77, - 79 * - - 58 AS col0
----
0
-4582

skipif mysql # not compatible
query II rowsort label-2537
SELECT - 47 * + + COUNT ( * ) / + 77, - 79 * - - 58 AS col0
----
0
-4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT 61 + 45 - - CAST( NULL AS SIGNED ) + - - 54 * + COUNT( * ) / 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT 61 + 45 - - CAST ( NULL AS INTEGER ) + - - 54 * + COUNT ( * ) / 63 col1
----
NULL

query I rowsort
SELECT + ( 44 ) * + 33
----
1452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT 8 DIV 61 + - SUM( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-2540
SELECT 8 / 61 + - SUM ( DISTINCT - 47 )
----
47

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

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

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

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

query I rowsort
SELECT 0 * 79
----
0

query I rowsort
SELECT ALL 71 + 12 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - COUNT( * ) + - 16 + - + 37 - + 96 * - 99 * 84 AS col2
----
798282

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - COUNT ( * ) + - 16 + - + 37 - + 96 * - 99 * 84 AS col2
----
798282

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 93 DIV 45 + + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2547
SELECT 93 / 45 + + 95 AS col1
----
97

query I rowsort
SELECT ALL + 12 + + 75 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - CASE - - 21 WHEN + 58 * + 53 THEN - 14 + + 85 * MIN( 44 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - CASE - - 21 WHEN + 58 * + 53 THEN - 14 + + 85 * MIN ( 44 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT DISTINCT COUNT( * ) + - 92 * + 73 + + 97 DIV - 84 AS col1
----
-6716

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT COUNT ( * ) + - 92 * + 73 + + 97 / - 84 AS col1
----
-6716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2551
SELECT ALL 71 + 18 - NULLIF ( 81, - - COUNT( - 67 ) ) * 37 + + 82 AS col0, - 86 + - + SUM( DISTINCT - + 50 ) * 79 / - - CAST( NULL AS SIGNED )
----
-2826
NULL

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL 71 + 18 - NULLIF ( 81, - - COUNT ( - 67 ) ) * 37 + + 82 AS col0, - 86 + - + SUM ( DISTINCT - + 50 ) * 79 / - - CAST ( NULL AS INTEGER )
----
-2826
NULL

query II rowsort
SELECT + 7 AS col1, 28 AS col0
----
7
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT DISTINCT - 64 + - COALESCE ( - 0, + + 53 * - + 73 + - MIN( 18 ) * + 99 ) DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - 64 + - COALESCE ( - 0, + + 53 * - + 73 + - MIN ( 18 ) * + 99 ) / - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + 10 + + + SUM( DISTINCT 26 ) * - 75 * 61 AS col1
----
-118940

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 10 + + + SUM ( DISTINCT 26 ) * - 75 * 61 AS col1
----
-118940

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

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

query II rowsort
SELECT ALL - 6, 14 AS col0
----
-6
14

query I rowsort
SELECT 77 + 79 AS col0
----
156

query I rowsort
SELECT DISTINCT - 65 - - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - 47 - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - 47 - COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT ALL 83, + 36 * - 74 + - COUNT( * ) * + 57 AS col1
----
83
-2721

skipif mysql # not compatible
query II rowsort label-2560
SELECT ALL 83, + 36 * - 74 + - COUNT ( * ) * + 57 AS col1
----
83
-2721

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT - 20 * 25 DIV 35
----
-14

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 20 * 25 / 35
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 86 * + + 27 * - + CASE 32 WHEN - - 26 + - COALESCE ( 8, + 24, - NULLIF ( + + 84, + COUNT( * ) * - 61 ) ) THEN COUNT( * ) + - 30 WHEN + SUM( ALL + 62 ) THEN + + SUM( - - 66 ) WHEN + 50 * - + 72 - 19 / 90 THEN NULL END * + + 63 - + - 98 * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT 86 * + + 27 * - + CASE 32 WHEN - - 26 + - COALESCE ( 8, + 24, - NULLIF ( + + 84, + COUNT ( * ) * - 61 ) ) THEN COUNT ( * ) + - 30 WHEN + SUM ( ALL + 62 ) THEN + + SUM ( - - 66 ) WHEN + 50 * - + 72 - 19 / 90 THEN NULL END * + + 63 - + - 98 * 72 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT 5 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT 5 / - 92
----
0

query I rowsort
SELECT 76 * 45 col1
----
3420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - ( + + COUNT( * ) ) - - ( + 35 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2566
SELECT - ( + + COUNT ( * ) ) - - ( + 35 ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT + 59 DIV - 22 - 83 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + 59 / - 22 - 83 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - - 38 + + - COUNT( * ) * - 33 - + + 31 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - - 38 + + - COUNT ( * ) * - 33 - + + 31 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL - 57 + + 96 / + CASE + + COUNT( * ) WHEN + 12 THEN + 16 + + - 59 + - 64 - CAST( 6 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - 57 + + 96 / + CASE + + COUNT ( * ) WHEN + 12 THEN + 16 + + - 59 + - 64 - CAST ( 6 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + MAX( DISTINCT + 13 ) DIV - 75 * COUNT( * ) * 13
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + MAX ( DISTINCT + 13 ) / - 75 * COUNT ( * ) * 13
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT 2 * - CAST( NULL AS DECIMAL ) + + 42 + + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT 2 * - CAST ( NULL AS REAL ) + + 42 + + + 68 AS col2
----
NULL

query II rowsort
SELECT 5 AS col2, - 44
----
5
-44

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

skipif mysql # not compatible
query II rowsort label-2573
SELECT COUNT ( * ) AS col2, 54 AS col0
----
1
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT ALL - - 0 * - - 63 + NULLIF ( - 81, - CAST( NULL AS SIGNED ) )
----
-81

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - - 0 * - - 63 + NULLIF ( - 81, - CAST ( NULL AS INTEGER ) )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT + 27 AS col2, - MIN( DISTINCT + 99 ) + 57
----
27
-42

skipif mysql # not compatible
query II rowsort label-2575
SELECT + 27 AS col2, - MIN ( DISTINCT + 99 ) + 57
----
27
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT NULLIF ( COUNT( * ), + - COALESCE ( 12, - MIN( 77 ) + + 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2576
SELECT NULLIF ( COUNT ( * ), + - COALESCE ( 12, - MIN ( 77 ) + + 22 ) )
----
1

query I rowsort
SELECT 37 * 50
----
1850

query II rowsort
SELECT + 88 AS col2, + 10
----
88
10

query I rowsort
SELECT DISTINCT - - 47 * + 67 + - + 12 + + 44 * + 1
----
3181

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL - MAX( ALL - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - MAX ( ALL - 12 ) AS col1
----
12

query II rowsort
SELECT 85 AS col1, 44
----
85
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT - 29 * - COUNT( * ) + - 0 + CAST( + NULLIF ( - ( - COUNT( * ) ), + 58 ) AS SIGNED ) + 24 + 28 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 29 * - COUNT ( * ) + - 0 + CAST ( + NULLIF ( - ( - COUNT ( * ) ), + 58 ) AS INTEGER ) + 24 + 28 AS col2
----
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT - 91 * + COUNT( * ) + - 49 + + + SUM( ALL - 25 ) DIV - - 4
----
-146

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 91 * + COUNT ( * ) + - 49 + + + SUM ( ALL - 25 ) / - - 4
----
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT SUM( DISTINCT - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2586
SELECT SUM ( DISTINCT - 35 ) AS col0
----
-35

query II rowsort
SELECT DISTINCT 58 * + 25 AS col0, - 79
----
1450
-79

query I rowsort
SELECT + NULLIF ( + 76, - 15 / + 54 - + 81 ) * - + 71 + - - 43
----
-5353

query I rowsort
SELECT - ( + 98 ) * - 60 AS col1
----
5880

query I rowsort
SELECT DISTINCT + NULLIF ( 69, - + 47 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT ALL MIN( DISTINCT 38 ) col0, ( - + 45 ) AS col2
----
38
-45

skipif mysql # not compatible
query II rowsort label-2591
SELECT ALL MIN ( DISTINCT 38 ) col0, ( - + 45 ) AS col2
----
38
-45

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

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

query I rowsort
SELECT + 57 + 52 - + ( + 10 ) - 63
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2594
SELECT - 21 + - 35, 2 * + + 81 / - + 49 * + + CAST( NULL AS SIGNED ) * + CASE - 85 WHEN - 79 * - + 53 * + ( + COUNT( * ) ) THEN NULL ELSE - 98 + + - COUNT( * ) * - 66 * - NULLIF ( - 92, + + 61 * + 24 / 40 * 95 + + - 99 + + 24 + 99 ) END + + 36 + + 80 + - 75 * + COUNT( * ) AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2594
SELECT - 21 + - 35, 2 * + + 81 / - + 49 * + + CAST ( NULL AS INTEGER ) * + CASE - 85 WHEN - 79 * - + 53 * + ( + COUNT ( * ) ) THEN NULL ELSE - 98 + + - COUNT ( * ) * - 66 * - NULLIF ( - 92, + + 61 * + 24 / 40 * 95 + + - 99 + + 24 + 99 ) END + + 36 + + 80 + - 75 * + COUNT ( * ) AS col1
----
-56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2595
SELECT - 15 * - 21, NULLIF ( - + CAST( - + SUM( 3 ) AS SIGNED ), + 18 ) * + 68 AS col0
----
315
204

skipif mysql # not compatible
query II rowsort label-2595
SELECT - 15 * - 21, NULLIF ( - + CAST ( - + SUM ( 3 ) AS INTEGER ), + 18 ) * + 68 AS col0
----
315
204

query I rowsort
SELECT DISTINCT + + 15 * - ( + 92 )
----
-1380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2597
SELECT ALL - 72 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - 72 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 67 + + 84 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - 61 + - - ( + NULLIF ( - CASE - 9 WHEN + + COUNT( * ) THEN + 71 ELSE NULL END, SUM( ALL + + 46 ) + + + 3 ) ) + - + 26 - 6 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - 61 + - - ( + NULLIF ( - CASE - 9 WHEN + + COUNT ( * ) THEN + 71 ELSE NULL END, SUM ( ALL + + 46 ) + + + 3 ) ) + - + 26 - 6 + + 73
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + ( + ( + 80 ) )
----
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL - 6 + - 88 * + + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - 6 + - 88 * + + COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT - 92 + + 86 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2603
SELECT DISTINCT + + 23 + 11 DIV + 31 * MAX( ALL + - 43 ) AS col1, 85 AS col2
----
23
85

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT + + 23 + 11 / + 31 * MAX ( ALL + - 43 ) AS col1, 85 AS col2
----
23
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 19 + + + SUM( DISTINCT ( 28 ) ) * 57
----
1615

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 19 + + + SUM ( DISTINCT ( 28 ) ) * 57
----
1615

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT - ( - 61 ) / CAST( NULL AS SIGNED ) * + 54 + + 8 + - ( + 4 ) * - 39 + + + 31 * - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT - ( - 61 ) / CAST ( NULL AS INTEGER ) * + 54 + + 8 + - ( + 4 ) * - 39 + + + 31 * - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT CASE - 34 WHEN - - 44 * - - ( 77 ) + + 23 THEN + 31 WHEN - COUNT( * ) * - + MAX( DISTINCT - ( + 10 ) ) + - 73 THEN - NULLIF ( 41, - + 64 ) / + 34 * + + CASE - 56 WHEN + + 36 THEN 35 WHEN + 19 THEN NULL ELSE - 58 - - + 31 END + - 3 - - - ( + 50 ) + 72 / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT CASE - 34 WHEN - - 44 * - - ( 77 ) + + 23 THEN + 31 WHEN - COUNT ( * ) * - + MAX ( DISTINCT - ( + 10 ) ) + - 73 THEN - NULLIF ( 41, - + 64 ) / + 34 * + + CASE - 56 WHEN + + 36 THEN 35 WHEN + 19 THEN NULL ELSE - 58 - - + 31 END + - 3 - - - ( + 50 ) + 72 / COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT - 95 * + 42 - + NULLIF ( - + 6, + COALESCE ( + 67, - 86 - - CAST( + - 31 AS SIGNED ) ) - + AVG ( ALL - 26 ) * + COUNT( * ) + - - 21 + + - 62 * - + MAX( DISTINCT - + ( + - 95 ) ) + 75 ) * - 88 col0
----
-4518

skipif mysql # not compatible
query I rowsort label-2610
SELECT - 95 * + 42 - + NULLIF ( - + 6, + COALESCE ( + 67, - 86 - - CAST ( + - 31 AS INTEGER ) ) - + AVG ( ALL - 26 ) * + COUNT ( * ) + - - 21 + + - 62 * - + MAX ( DISTINCT - + ( + - 95 ) ) + 75 ) * - 88 col0
----
-4518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + COALESCE ( + 42, - + COUNT( * ) ) + - - SUM( + ( + 97 ) )
----
139

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COALESCE ( + 42, - + COUNT ( * ) ) + - - SUM ( + ( + 97 ) )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - COUNT( * ) * + COUNT( ALL - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-2613
SELECT - COUNT ( * ) * + COUNT ( ALL - 98 )
----
-1

query I rowsort
SELECT + COALESCE ( - + 45, - 35 ) * + 27 col2
----
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT ( ( - + 7 ) ), - CASE 74 WHEN + ( + COUNT( * ) ) THEN - MIN( ALL + + 90 ) END AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-2615
SELECT ( ( - + 7 ) ), - CASE 74 WHEN + ( + COUNT ( * ) ) THEN - MIN ( ALL + + 90 ) END AS col1
----
-7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT + COUNT( * ) AS col2, - 42 + - 56
----
1
-98

skipif mysql # not compatible
query II rowsort label-2616
SELECT + COUNT ( * ) AS col2, - 42 + - 56
----
1
-98

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

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

query I rowsort
SELECT - CASE 67 WHEN - 92 THEN - 15 WHEN - 7 THEN 8 END * - 21 * + 38 + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + 63 + - ( + COUNT( * ) ) + 8 * + 6
----
110

skipif mysql # not compatible
query I rowsort label-2619
SELECT + 63 + - ( + COUNT ( * ) ) + 8 * + 6
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT + COALESCE ( + - CAST( NULL AS SIGNED ), + 49 + 98 ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-2620
SELECT + COALESCE ( + - CAST ( NULL AS INTEGER ), + 49 + 98 ) AS col0
----
147

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

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

query I rowsort
SELECT ALL + 70 * + - 62 + + 49
----
-4291

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT MIN( 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-2623
SELECT MIN ( 22 ) col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT ALL 16 * + - 72 / - 15 + 40 * - 0 + - CASE + 17 WHEN 14 THEN NULL WHEN 17 THEN + - CASE - - CAST( NULL AS SIGNED ) WHEN + 22 + + - 48 THEN 79 / - + 19 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL 16 * + - 72 / - 15 + 40 * - 0 + - CASE + 17 WHEN 14 THEN NULL WHEN 17 THEN + - CASE - - CAST ( NULL AS INTEGER ) WHEN + 22 + + - 48 THEN 79 / - + 19 END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 0 + + 14 AS col2
----
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL NULLIF ( - + 90, - 17 + COUNT( * ) + - - 54 * - CAST( CAST( + - 55 AS SIGNED ) AS SIGNED ) * + - 3 ) + + 94
----
4

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL NULLIF ( - + 90, - 17 + COUNT ( * ) + - - 54 * - CAST ( CAST ( + - 55 AS INTEGER ) AS INTEGER ) * + - 3 ) + + 94
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2628
SELECT ALL 44 AS col1, + CAST( - - 65 AS SIGNED ) AS col0
----
44
65

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 44 AS col1, + CAST ( - - 65 AS INTEGER ) AS col0
----
44
65

query I rowsort
SELECT DISTINCT 42 + + 79
----
121

query I rowsort
SELECT ALL + 49 + + 65
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL - CASE - 11 WHEN + + 21 + + + 74 / 98 + + COUNT( + + 14 ) + + - 2 THEN NULL ELSE + - 12 END + 39 + 65 - - 71 + + MIN( - + 92 ) * - + CAST( NULL AS SIGNED ) * - + MAX( 90 ) - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - CASE - 11 WHEN + + 21 + + + 74 / 98 + + COUNT ( + + 14 ) + + - 2 THEN NULL ELSE + - 12 END + 39 + 65 - - 71 + + MIN ( - + 92 ) * - + CAST ( NULL AS INTEGER ) * - + MAX ( 90 ) - - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - SUM( - - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-2632
SELECT - SUM ( - - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT + - COUNT( * ) * + + COUNT( * ) DIV - 45 - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2633
SELECT + - COUNT ( * ) * + + COUNT ( * ) / - 45 - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT + - 95 * + 64
----
-6080

query I rowsort
SELECT ALL - 33 - + ( + 63 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - 40, 54 * - COUNT( * ) AS col0
----
-40
-54

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 40, 54 * - COUNT ( * ) AS col0
----
-40
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - + MAX( + + 64 ) - - 48
----
-16

skipif mysql # not compatible
query I rowsort label-2637
SELECT - + MAX ( + + 64 ) - - 48
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT 84 * + 23 + + 25 * + 24 + - - COUNT( * ) + - MAX( ALL + 59 )
----
2474

skipif mysql # not compatible
query I rowsort label-2638
SELECT 84 * + 23 + + 25 * + 24 + - - COUNT ( * ) + - MAX ( ALL + 59 )
----
2474

query I rowsort
SELECT ALL - 73 - + + 68
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT 88 DIV + - 75 + - 26 * 44 * 95
----
-108681

skipif mysql # not compatible
query I rowsort label-2640
SELECT 88 / + - 75 + - 26 * 44 * 95
----
-108681

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 51 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT 51 / + 87 col2
----
0

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

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

query I rowsort
SELECT 60 + - + 89 + + - 88
----
-117

query I rowsort
SELECT 86 * + + 64
----
5504

query I rowsort
SELECT ALL - COALESCE ( - 81, 23 )
----
81

query I rowsort
SELECT + 44 * - - COALESCE ( - 48, 97 * - 14, + 34 ) * + 46 - + + ( - - 90 ) + + 46
----
-97196

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT NULLIF ( + 83, - COUNT( * ) ) * 66
----
5478

skipif mysql # not compatible
query I rowsort label-2647
SELECT NULLIF ( + 83, - COUNT ( * ) ) * 66
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 89 * - + ( + 37 ) + 26 * + + COUNT( * )
----
-3267

skipif mysql # not compatible
query I rowsort label-2648
SELECT 89 * - + ( + 37 ) + 26 * + + COUNT ( * )
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT COUNT( DISTINCT - - 82 ) + + MAX( 68 ) + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2649
SELECT COUNT ( DISTINCT - - 82 ) + + MAX ( 68 ) + - COUNT ( * )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT NULLIF ( COUNT( * ), + COUNT( * ) + + 40 * - CAST( + - 23 AS SIGNED ) * 94 * 92 ) * 53 * COUNT( * ) * - - 74 AS col1
----
3922

skipif mysql # not compatible
query I rowsort label-2650
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) + + 40 * - CAST ( + - 23 AS INTEGER ) * 94 * 92 ) * 53 * COUNT ( * ) * - - 74 AS col1
----
3922

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT 4 + - 77 * NULLIF ( - 34, + 10 ) DIV + 55
----
51

skipif mysql # not compatible
query I rowsort label-2651
SELECT 4 + - 77 * NULLIF ( - 34, + 10 ) / + 55
----
51

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

skipif mysql # not compatible
query II rowsort label-2652
SELECT ALL - COUNT ( * ) AS col1, - 45 * - CAST ( 99 AS INTEGER ) AS col2
----
-1
4455

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT ALL 68 DIV + 34 * + 1 col1
----
2

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL 68 / + 34 * + 1 col1
----
2

query I rowsort
SELECT DISTINCT 12 + - + 58 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + 91 + - + 24 DIV 33 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2655
SELECT + 91 + - + 24 / 33 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - SUM( 7 ) + - 67 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - SUM ( 7 ) + - 67 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL + 20 * 69 DIV + COUNT( * )
----
1380

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 20 * 69 / + COUNT ( * )
----
1380

query I rowsort
SELECT ALL - 45 + - 42 AS col0
----
-87

query I rowsort
SELECT DISTINCT 53 * + - 12 AS col1
----
-636

query I rowsort
SELECT 30 + + - ( - - 45 ) + + 53
----
38

query I rowsort
SELECT 74 - - 64 AS col0
----
138

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

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

query I rowsort
SELECT DISTINCT - 26 * - - 14
----
-364

query I rowsort
SELECT ALL + 63 - - 38 * + 17
----
709

query I rowsort
SELECT ( - 53 ) * 97 AS col0
----
-5141

query I rowsort
SELECT - ( + - ( + 4 ) ) * + - ( 64 )
----
-256

query II rowsort
SELECT ALL 7, - 82 * 68 col2
----
7
-5576

query I rowsort
SELECT - 81 * - 22 * + - 34 AS col2
----
-60588

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT 33 * 9 - - COUNT( * )
----
298

skipif mysql # not compatible
query I rowsort label-2669
SELECT 33 * 9 - - COUNT ( * )
----
298

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

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

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

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

query II rowsort
SELECT DISTINCT - 2 * + + 34, 15 col2
----
-68
15

onlyif mysql # aggregate syntax: 
query III rowsort label-2673
SELECT + SUM( ALL + 30 ) col0, - 53 AS col2, + COUNT( * )
----
30
-53
1

skipif mysql # not compatible
query III rowsort label-2673
SELECT + SUM ( ALL + 30 ) col0, - 53 AS col2, + COUNT ( * )
----
30
-53
1

query I rowsort
SELECT 79 * + - 40
----
-3160

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT ALL - MIN( + + 67 ) * - 59, 59 + - - 73 col1
----
3953
132

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - MIN ( + + 67 ) * - 59, 59 + - - 73 col1
----
3953
132

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

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

query I rowsort
SELECT 69 * - 93 AS col1
----
-6417

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT 5 * 43 AS col1, + 73 - COUNT( * ) + - 46
----
215
26

skipif mysql # not compatible
query II rowsort label-2678
SELECT 5 * 43 AS col1, + 73 - COUNT ( * ) + - 46
----
215
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - COALESCE ( + - 95, - ( + 18 ) + - COALESCE ( COUNT( * ), 86 + + 94 * - 17 ) DIV + 56 )
----
95

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - COALESCE ( + - 95, - ( + 18 ) + - COALESCE ( COUNT ( * ), 86 + + 94 * - 17 ) / + 56 )
----
95

query I rowsort
SELECT ALL + 12 + - 14
----
-2

query II rowsort
SELECT 95 * - + 93, ( NULLIF ( - 77, - 29 ) ) AS col0
----
-8835
-77

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

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

query I rowsort
SELECT DISTINCT - 40 + 52 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2684
SELECT ALL - CAST( 63 AS SIGNED ), 36 * + - COUNT( * ) * + + 47 AS col2, - CASE - - 13 WHEN + 29 * + ( - - 31 ) + + - ( + 36 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN - 24 * 75 - - 68 - + - 23 * 16 THEN 50 ELSE NULL END + - 7 AS col1
----
-63
-1692
NULL

skipif mysql # not compatible
query III rowsort label-2684
SELECT ALL - CAST ( 63 AS INTEGER ), 36 * + - COUNT ( * ) * + + 47 AS col2, - CASE - - 13 WHEN + 29 * + ( - - 31 ) + + - ( + 36 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 24 * 75 - - 68 - + - 23 * 16 THEN 50 ELSE NULL END + - 7 AS col1
----
-63
-1692
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2685
SELECT ALL + COUNT( * ) + - CAST( NULL AS DECIMAL ) * + - COUNT( * ) + - COALESCE ( 90, AVG ( DISTINCT + 21 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS REAL ) * + - COUNT ( * ) + - COALESCE ( 90, AVG ( DISTINCT + 21 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL CASE 97 WHEN 90 + - - 67 THEN + 77 * 58 + + + 64 * - - 43 * - 23 ELSE + + 47 * - 5 END + - - 87
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - NULLIF ( + MAX( DISTINCT 65 ), 67 ) + - 46
----
-111

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - NULLIF ( + MAX ( DISTINCT 65 ), 67 ) + - 46
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT 20 + COUNT( * ), + 17 AS col0
----
21
17

skipif mysql # not compatible
query II rowsort label-2688
SELECT 20 + COUNT ( * ), + 17 AS col0
----
21
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - 16 - + 2 / + - 69 / + + CASE - 86 WHEN - - 97 THEN - - 35 WHEN + + 99 * 20 + - - 77 + + 77 THEN + ( + - COUNT( * ) ) * - - 46 - + + 10 * + 47 + + 4 WHEN - 91 + 74 * + - 35 THEN NULL ELSE NULL END + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 16 - + 2 / + - 69 / + + CASE - 86 WHEN - - 97 THEN - - 35 WHEN + + 99 * 20 + - - 77 + + 77 THEN + ( + - COUNT ( * ) ) * - - 46 - + + 10 * + 47 + + 4 WHEN - 91 + 74 * + - 35 THEN NULL ELSE NULL END + - 33
----
NULL

query I rowsort
SELECT DISTINCT + 67 - + 10 * + 72
----
-653

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

skipif mysql # not compatible
query II rowsort label-2691
SELECT + 2 * + + CAST ( NULL AS INTEGER ) / 33 AS col2, COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL 71 * + 86, - 48 AS col0
----
6106
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT ALL - - 69 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - - 69 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + 46 - 85 + + - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 46 - 85 + + - COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT + 22 * - 29 AS col0
----
-638

query I rowsort
SELECT - 99 * - 32 AS col2
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT + COALESCE ( + 27, 43 + + 35 ) AS col0, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-2697
SELECT + COALESCE ( + 27, 43 + + 35 ) AS col0, COUNT ( * )
----
27
1

query I rowsort
SELECT NULLIF ( - 17, + 42 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT DISTINCT + 56, - ( - - 28 ) + + COUNT( * ) * + NULLIF ( + 2, + - 20 + + 96 - 97 ) AS col2
----
56
-26

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT + 56, - ( - - 28 ) + + COUNT ( * ) * + NULLIF ( + 2, + - 20 + + 96 - 97 ) AS col2
----
56
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL + 5 * - CASE + - 24 WHEN + + 18 THEN 60 END + + + 41 + + SUM( ALL - 68 ), - 53 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL + 5 * - CASE + - 24 WHEN + + 18 THEN 60 END + + + 41 + + SUM ( ALL - 68 ), - 53 AS col0
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT 26 * + + 5 + + COUNT( * ) AS col1, COUNT( * ) + 78
----
131
79

skipif mysql # not compatible
query II rowsort label-2701
SELECT 26 * + + 5 + + COUNT ( * ) AS col1, COUNT ( * ) + 78
----
131
79

query I rowsort
SELECT ALL 86 * - - 23
----
1978

query I rowsort
SELECT ALL 73 * + 58 + + - 49 AS col2
----
4185

query I rowsort
SELECT DISTINCT - 35 * + 93 * 21 AS col1
----
-68355

query I rowsort
SELECT ALL - 89 * - 76 - + 62 + - 22
----
6680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT 90 DIV SUM( - 81 ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-2706
SELECT 90 / SUM ( - 81 ) + - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL COUNT( * ) * - COALESCE ( - 37, SUM( + ( - + 65 ) ) ) * + + 28 + 49 + - 84 AS col0
----
1001

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL COUNT ( * ) * - COALESCE ( - 37, SUM ( + ( - + 65 ) ) ) * + + 28 + 49 + - 84 AS col0
----
1001

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

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

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

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

query I rowsort
SELECT + 87 * - 95
----
-8265

query I rowsort
SELECT - - CASE - 32 WHEN - 7 THEN + 54 ELSE - + 16 * - + 13 + - 72 + - 14 + 47 END * ( - 59 ) AS col0
----
-9971

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - + 66 * + 38 + + - 51 + - COUNT( * ) * - + ( COUNT( * ) ) * - + 38
----
-2597

skipif mysql # not compatible
query I rowsort label-2712
SELECT - + 66 * + 38 + + - 51 + - COUNT ( * ) * - + ( COUNT ( * ) ) * - + 38
----
-2597

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT + + 89 DIV + ( - + 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + + 89 / + ( - + 59 ) AS col1
----
-1

query I rowsort
SELECT ALL + 37 * ( 33 ) AS col0
----
1221

query I rowsort
SELECT - + 32 * 14 AS col1
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL + - 22 DIV + 12
----
-1

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + - 22 / + 12
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT DISTINCT + COALESCE ( ( COUNT( * ) ), - 16 ) * 46 + - CAST( NULL AS SIGNED ) + + + 90 + 65 * - COUNT( - + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + COALESCE ( ( COUNT ( * ) ), - 16 ) * 46 + - CAST ( NULL AS INTEGER ) + + + 90 + 65 * - COUNT ( - + 85 ) AS col1
----
NULL

query I rowsort
SELECT - 45 - + 65
----
-110

query I rowsort
SELECT ALL + + 47 * + ( 75 )
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2720
SELECT - CAST( 39 AS SIGNED ) * + CASE + 54 WHEN ( COUNT( * ) ) THEN + 98 + - 76 + + - 16 * + 96 + 32 WHEN + 58 THEN - CAST( NULL AS SIGNED ) DIV COUNT( * ) ELSE - CASE - + 81 WHEN + CAST( NULL AS SIGNED ) THEN 14 ELSE - 5 END * + - 39 * 53 + - + 20 + + - ( 62 ) - - 56 * - 7 END AS col1
----
421551

skipif mysql # not compatible
query I rowsort label-2720
SELECT - CAST ( 39 AS INTEGER ) * + CASE + 54 WHEN ( COUNT ( * ) ) THEN + 98 + - 76 + + - 16 * + 96 + 32 WHEN + 58 THEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) ELSE - CASE - + 81 WHEN + CAST ( NULL AS INTEGER ) THEN 14 ELSE - 5 END * + - 39 * 53 + - + 20 + + - ( 62 ) - - 56 * - 7 END AS col1
----
421551

query I rowsort
SELECT - 63 + + 75 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT - 3 * + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 3 * + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2724
SELECT - + 80 + + 76 + + COUNT( * ) AS col2, + 55 DIV - 16
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2724
SELECT - + 80 + + 76 + + COUNT ( * ) AS col2, + 55 / - 16
----
-3
-3

query I rowsort
SELECT ALL + 11 + 21 * 9 * 1 AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT - - 5 + + MAX( + CASE + 52 WHEN CAST( - - 62 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * + 90 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT - - 5 + + MAX ( + CASE + 52 WHEN CAST ( - - 62 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * + 90 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2727
SELECT DISTINCT + - 5 + + + 31 + CAST( NULL AS DECIMAL ) + 30 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + - 5 + + + 31 + CAST ( NULL AS REAL ) + 30 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL 4, + 95 * - + 31 * + - COUNT( * ) AS col0
----
4
2945

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL 4, + 95 * - + 31 * + - COUNT ( * ) AS col0
----
4
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - - SUM( - + 34 ) + + 39 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2729
SELECT - - SUM ( - + 34 ) + + 39 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT + 2 + + COUNT( * ) AS col1, + 94 AS col2
----
3
94

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT + 2 + + COUNT ( * ) AS col1, + 94 AS col2
----
3
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT + 23 + COUNT( * ) - + + CAST( - - 80 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 23 + COUNT ( * ) - + + CAST ( - - 80 AS INTEGER )
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL COUNT( * ) + + 60 + 49
----
110

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL COUNT ( * ) + + 60 + 49
----
110

query I rowsort
SELECT + 75 + 48 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL 81 + - 45 + + 11 * + MAX( ( - ( 26 ) ) ) * + + 94 * - - 5
----
-134384

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL 81 + - 45 + + 11 * + MAX ( ( - ( 26 ) ) ) * + + 94 * - - 5
----
-134384

query I rowsort
SELECT DISTINCT + 67 * - 33
----
-2211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT - CAST( NULL AS SIGNED ) / - 73 / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT - CAST ( NULL AS INTEGER ) / - 73 / - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT CAST( - - 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2738
SELECT CAST ( - - 14 AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - 73 + + + ( - - 4 ) WHEN + 2 THEN NULL END, COALESCE ( 30, - 17 ) + + + MIN( - + 35 ) - - - 73 + - CASE 23 WHEN - 71 THEN COUNT( * ) END DIV + 15 - - 84, - COUNT( * ) * + 77 + + MAX( DISTINCT + 52 ) )
----
-225

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - 73 + + + ( - - 4 ) WHEN + 2 THEN NULL END, COALESCE ( 30, - 17 ) + + + MIN ( - + 35 ) - - - 73 + - CASE 23 WHEN - 71 THEN COUNT ( * ) END / + 15 - - 84, - COUNT ( * ) * + 77 + + MAX ( DISTINCT + 52 ) )
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT CAST( - + 49 AS SIGNED ) col1, 88 AS col1
----
-49
88

skipif mysql # not compatible
query II rowsort label-2740
SELECT CAST ( - + 49 AS INTEGER ) col1, 88 AS col1
----
-49
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT CAST( - - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( - - 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT( * ) + - - NULLIF ( - + 95, + COUNT( * ) * + 40 ) - COUNT( * ) AS col2
----
1726
-159

skipif mysql # not compatible
query II rowsort label-2742
SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT ( * ) + - - NULLIF ( - + 95, + COUNT ( * ) * + 40 ) - COUNT ( * ) AS col2
----
1726
-159

query I rowsort
SELECT ALL + 41 * + + 95
----
3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT - + COUNT( * ) * + CAST( 5 AS SIGNED ) + + - 1 + + 20 - + 77 * - ( - 93 ) * + 95
----
-680281

skipif mysql # not compatible
query I rowsort label-2744
SELECT - + COUNT ( * ) * + CAST ( 5 AS INTEGER ) + + - 1 + + 20 - + 77 * - ( - 93 ) * + 95
----
-680281

query I rowsort
SELECT ALL + - 37 col1
----
-37

query I rowsort
SELECT DISTINCT + 8 * - 34
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL - CAST( + - MIN( 21 ) AS SIGNED ) * - - 89 * + 61
----
114009

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - CAST ( + - MIN ( 21 ) AS INTEGER ) * - - 89 * + 61
----
114009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + - NULLIF ( + - 32, - - 9 * + CAST( NULL AS SIGNED ) ) + + 25 + COUNT( - CAST( 48 AS SIGNED ) ) + - - 7 + + SUM( DISTINCT + 81 ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + - NULLIF ( + - 32, - - 9 * + CAST ( NULL AS INTEGER ) ) + + 25 + COUNT ( - CAST ( 48 AS INTEGER ) ) + - - 7 + + SUM ( DISTINCT + 81 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT + + 4 * CASE - 11 WHEN - COUNT( * ) THEN + + NULLIF ( - 56, + 53 * 56 + - 81 ) WHEN - + COUNT( * ) * + SUM( DISTINCT + 87 ) / + - 17 THEN NULL END + - - SUM( + 14 ) AS col1, - 11 + ( 98 ) * 44
----
NULL
4301

skipif mysql # not compatible
query II rowsort label-2749
SELECT + + 4 * CASE - 11 WHEN - COUNT ( * ) THEN + + NULLIF ( - 56, + 53 * 56 + - 81 ) WHEN - + COUNT ( * ) * + SUM ( DISTINCT + 87 ) / + - 17 THEN NULL END + - - SUM ( + 14 ) AS col1, - 11 + ( 98 ) * 44
----
NULL
4301

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT ALL + 65 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 65 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT 77 * + COUNT( * ) * + 77 * ( + 92 )
----
545468

skipif mysql # not compatible
query I rowsort label-2752
SELECT 77 * + COUNT ( * ) * + 77 * ( + 92 )
----
545468

query I rowsort
SELECT ALL 93 + 46 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT 56 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-2754
SELECT 56 / + + 50
----
1

query I rowsort
SELECT 95 * + 50 AS col0
----
4750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2756
SELECT CASE - 17 WHEN 62 * - + 21 - - + 23 THEN NULL ELSE + 27 + - 96 * - 88 + + + CAST( NULL AS DECIMAL ) END * - 16 * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT CASE - 17 WHEN 62 * - + 21 - - + 23 THEN NULL ELSE + 27 + - 96 * - 88 + + + CAST ( NULL AS REAL ) END * - 16 * + - 70
----
NULL

query I rowsort
SELECT 5 * - 51 AS col2
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - 25 + - 52 * + 41 * NULLIF ( - - COUNT( * ), + + 23 / + - 3 - + + 26 * + + 16 ) AS col1
----
-2157

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - 25 + - 52 * + 41 * NULLIF ( - - COUNT ( * ), + + 23 / + - 3 - + + 26 * + + 16 ) AS col1
----
-2157

query I rowsort
SELECT 85 - + - 6 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2760
SELECT 12 col1, + COUNT( 35 ) + - CAST( NULL AS SIGNED ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2760
SELECT 12 col1, + COUNT ( 35 ) + - CAST ( NULL AS INTEGER ) AS col1
----
12
NULL

query I rowsort
SELECT 95 - 28 AS col0
----
67

query I rowsort
SELECT DISTINCT + 80 * + - 0 * + 28
----
0

query I rowsort
SELECT ALL - 26 - 11 AS col2
----
-37

query I rowsort
SELECT ALL ( - 71 ) - 53 * 59 AS col2
----
-3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2765
SELECT COUNT( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST( NULL AS SIGNED ) AS col0
----
-4030
NULL

skipif mysql # not compatible
query II rowsort label-2765
SELECT COUNT ( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST ( NULL AS INTEGER ) AS col0
----
-4030
NULL

query II rowsort
SELECT ALL 77 AS col1, + 91
----
77
91

query I rowsort
SELECT 94 + - 14
----
80

query I rowsort
SELECT 30 - - 64 - - 60 AS col2
----
154

query I rowsort
SELECT 4 + + 0 col0
----
4

query I rowsort
SELECT 10 * 37 col2
----
370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2771
SELECT NULLIF ( 88, + - CASE - + 36 WHEN - - CAST( 71 AS DECIMAL ) + - 72 THEN NULL ELSE - NULLIF ( + - 66, + 6 ) END + + 22 * - 89 * + - CASE + + 91 WHEN ( + - 91 ) * - 84 + - 90 THEN NULL ELSE - 57 END ) * + 55 + + 42 * 41 DIV + + 93 + + SUM( - ( + 23 ) ) * - 66
----
6376

skipif mysql # not compatible
query I rowsort label-2771
SELECT NULLIF ( 88, + - CASE - + 36 WHEN - - CAST ( 71 AS REAL ) + - 72 THEN NULL ELSE - NULLIF ( + - 66, + 6 ) END + + 22 * - 89 * + - CASE + + 91 WHEN ( + - 91 ) * - 84 + - 90 THEN NULL ELSE - 57 END ) * + 55 + + 42 * 41 / + + 93 + + SUM ( - ( + 23 ) ) * - 66
----
6376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2772
SELECT ALL - COUNT( DISTINCT + - CAST( - 62 AS DECIMAL ) ) AS col0, + SUM( - 67 ) AS col1
----
-1
-67

skipif mysql # not compatible
query II rowsort label-2772
SELECT ALL - COUNT ( DISTINCT + - CAST ( - 62 AS REAL ) ) AS col0, + SUM ( - 67 ) AS col1
----
-1
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT 27 / - ( + 4 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT 27 / - ( + 4 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 75 ) * - + 56 col0
----
-4200

query I rowsort
SELECT ALL 8 * - - 51
----
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT - AVG ( DISTINCT - + 12 ) / 26 * - + CAST( NULL AS SIGNED ) * + - 33 - 92 + + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT - AVG ( DISTINCT - + 12 ) / 26 * - + CAST ( NULL AS INTEGER ) * + - 33 - 92 + + 66 col1
----
NULL

query I rowsort
SELECT ALL - ( + + NULLIF ( + 83, - - 21 ) ) * - 96
----
7968

query I rowsort
SELECT + 44 * + 95 AS col2
----
4180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2779
SELECT 45 AS col1, CAST( 23 AS SIGNED ) col2
----
45
23

skipif mysql # not compatible
query II rowsort label-2779
SELECT 45 AS col1, CAST ( 23 AS INTEGER ) col2
----
45
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + ( 32 ) + + COUNT( * ) AS col2, 94 * ( + 6 )
----
33
564

skipif mysql # not compatible
query II rowsort label-2780
SELECT + ( 32 ) + + COUNT ( * ) AS col2, 94 * ( + 6 )
----
33
564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2781
SELECT + NULLIF ( - 91, 92 / - 16 * ( - 42 ) + + 39 + - MAX( DISTINCT - + 23 ) + + 90 ) AS col1, 74 + - - ( - CASE CASE - 24 WHEN SUM( DISTINCT - 30 ) THEN - - 17 * - COALESCE ( 33, + 55 ) + ( + + 52 ) ELSE NULL END WHEN - 44 * - 62 THEN - - 34 * 64 * 19 * - + CAST( + + 97 AS SIGNED ) / - - 48 + + AVG ( - 93 ) + - - 83 + - + 36 WHEN + 43 THEN - 84 - 51 END ) + - 23 col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2781
SELECT + NULLIF ( - 91, 92 / - 16 * ( - 42 ) + + 39 + - MAX ( DISTINCT - + 23 ) + + 90 ) AS col1, 74 + - - ( - CASE CASE - 24 WHEN SUM ( DISTINCT - 30 ) THEN - - 17 * - COALESCE ( 33, + 55 ) + ( + + 52 ) ELSE NULL END WHEN - 44 * - 62 THEN - - 34 * 64 * 19 * - + CAST ( + + 97 AS INTEGER ) / - - 48 + + AVG ( - 93 ) + - - 83 + - + 36 WHEN + 43 THEN - 84 - 51 END ) + - 23 col0
----
-91
NULL

query I rowsort
SELECT DISTINCT 97 + - 3 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - COUNT( * ) / + CASE + 9 WHEN - COUNT( - 96 ) + ( + 89 ) THEN 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT - COUNT ( * ) / + CASE + 9 WHEN - COUNT ( - 96 ) + ( + 89 ) THEN 26 END
----
NULL

query I rowsort
SELECT ALL + 85 + 49 * 10
----
575

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

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

query I rowsort
SELECT ALL 81 + - 49
----
32

query I rowsort
SELECT DISTINCT 56 + + 10 + - 4 + + 6
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT + 43 - COUNT( * ) + + 24 * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 43 - COUNT ( * ) + + 24 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - 50 AS col2, - COUNT( * ) + 29 AS col1
----
-50
28

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 50 AS col2, - COUNT ( * ) + 29 AS col1
----
-50
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2790
SELECT ALL COUNT( * ) + + - NULLIF ( 86, - COALESCE ( CAST( CAST( 41 AS DECIMAL ) AS DECIMAL ), 92 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL COUNT ( * ) + + - NULLIF ( 86, - COALESCE ( CAST ( CAST ( 41 AS REAL ) AS REAL ), 92 ) ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2791
SELECT - 6, COALESCE ( 34, + + COALESCE ( + 8, 49 * 20 * 82 + + 50 + - 79 * - ( + 8 ) * - CAST( NULL AS SIGNED ), + + 69 ) DIV 68 + + NULLIF ( - - ( + 52 ), + 99 ) + + - 15 * + 89, - 39 ) AS col0
----
-6
34

skipif mysql # not compatible
query II rowsort label-2791
SELECT - 6, COALESCE ( 34, + + COALESCE ( + 8, 49 * 20 * 82 + + 50 + - 79 * - ( + 8 ) * - CAST ( NULL AS INTEGER ), + + 69 ) / 68 + + NULLIF ( - - ( + 52 ), + 99 ) + + - 15 * + 89, - 39 ) AS col0
----
-6
34

query I rowsort
SELECT ( - 96 ) + + 18 + - 57 * + 81
----
-4695

query I rowsort
SELECT ALL 69 - - 44 * + - 37
----
-1559

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 14 + - SUM( - 63 ) - + + MAX( - - 62 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-2794
SELECT 14 + - SUM ( - 63 ) - + + MAX ( - - 62 ) col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT 20 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT 20 / + 24
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - COUNT( - ( - 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2797
SELECT - COUNT ( - ( - 34 ) )
----
-1

query I rowsort
SELECT 30 + + 28 + + 81
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT COUNT( * ) DIV + 80 * - - 71
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( * ) / + 80 * - - 71
----
0

query I rowsort
SELECT 49 + - 77 * 80 AS col2
----
-6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2801
SELECT DISTINCT COALESCE ( - COALESCE ( ( - 76 ), - 70, + 84 - - - 34 ), + - 42 / - 41 + - CAST( - 95 AS SIGNED ) ) * - 67 + CASE 31 WHEN MIN( ALL - 20 ) THEN - + 62 WHEN COALESCE ( - 34, - 20 * + + 95, - 9 ) * + 43 + - 6 THEN + - 39 + COALESCE ( + - 19, - COUNT( ALL - 74 ) + + CAST( NULL AS DECIMAL ) ) * + MIN( ALL - 66 ) * + - 68 END - - COALESCE ( 44, + + 12, - + 20 * + - COALESCE ( - - 77, + COUNT( * ) ), - - 98 * - - 25 ) + - + 19 + - CAST( NULL AS SIGNED ) * ( - NULLIF ( + 12, 36 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT COALESCE ( - COALESCE ( ( - 76 ), - 70, + 84 - - - 34 ), + - 42 / - 41 + - CAST ( - 95 AS INTEGER ) ) * - 67 + CASE 31 WHEN MIN ( ALL - 20 ) THEN - + 62 WHEN COALESCE ( - 34, - 20 * + + 95, - 9 ) * + 43 + - 6 THEN + - 39 + COALESCE ( + - 19, - COUNT ( ALL - 74 ) + + CAST ( NULL AS REAL ) ) * + MIN ( ALL - 66 ) * + - 68 END - - COALESCE ( 44, + + 12, - + 20 * + - COALESCE ( - - 77, + COUNT ( * ) ), - - 98 * - - 25 ) + - + 19 + - CAST ( NULL AS INTEGER ) * ( - NULLIF ( + 12, 36 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2802
SELECT ALL + COUNT( * ) * 38 AS col0, - COUNT( DISTINCT 63 ) DIV + - ( NULLIF ( + - 81, - - 59 ) ) AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + COUNT ( * ) * 38 AS col0, - COUNT ( DISTINCT 63 ) / + - ( NULLIF ( + - 81, - - 59 ) ) AS col0
----
38
0

query I rowsort
SELECT 45 * + + 33 * - 49 col0
----
-72765

query II rowsort
SELECT 41, - 46 col0
----
41
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN - - 17 THEN 59 + - 94 + - + CASE + - COUNT( * ) WHEN + 36 THEN - + CAST( + 62 AS SIGNED ) * 4 + - ( + 21 ) * + 77 * - 15 + - 57 ELSE + 14 END + MAX( + 25 ) * - 28 / + 13 + + COUNT( ALL - + 49 ) * + - 39 * 99 * + - 75 * - 99 WHEN 49 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN - - 17 THEN 59 + - 94 + - + CASE + - COUNT ( * ) WHEN + 36 THEN - + CAST ( + 62 AS INTEGER ) * 4 + - ( + 21 ) * + 77 * - 15 + - 57 ELSE + 14 END + MAX ( + 25 ) * - 28 / + 13 + + COUNT ( ALL - + 49 ) * + - 39 * 99 * + - 75 * - 99 WHEN 49 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 85, 37 ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-2807
SELECT + 26 AS col1, + 1 DIV 79 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-2807
SELECT + 26 AS col1, + 1 / 79 AS col0
----
26
0

query I rowsort
SELECT + 11 * - 68 * + + 55 + - 28 + - 68 AS col1
----
-41236

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - COUNT( * ) * - 15 * 29 + 99 + - 44
----
491

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * - 15 * 29 + 99 + - 44
----
491

query II rowsort
SELECT ALL + 48 AS col0, - 99 col2
----
48
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT DISTINCT + COUNT( * ), + 69 + - - 82 * 69 AS col2
----
1
5727

skipif mysql # not compatible
query II rowsort label-2811
SELECT DISTINCT + COUNT ( * ), + 69 + - - 82 * 69 AS col2
----
1
5727

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - + CASE 70 WHEN - 81 * + + COUNT( * ) THEN 5 ELSE NULL END + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT - + CASE 70 WHEN - 81 * + + COUNT ( * ) THEN 5 ELSE NULL END + + 74 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL + MIN( ALL + 24 ) * 88 * + - COUNT( * ) + 89 * 10 * ( - 73 ) * - 83 AS col0, 30 AS col2
----
5390398
30

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL + MIN ( ALL + 24 ) * 88 * + - COUNT ( * ) + 89 * 10 * ( - 73 ) * - 83 AS col0, 30 AS col2
----
5390398
30

query II rowsort
SELECT DISTINCT + 89 col1, 80 + - 99 + 88
----
89
69

query I rowsort
SELECT + 41 + 61 * + 89 AS col2
----
5470

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL 35 * COUNT( * ) * + 65 - + 14 AS col0
----
2261

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL 35 * COUNT ( * ) * + 65 - + 14 AS col0
----
2261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - CAST( NULL AS SIGNED ) * - + 11 AS col0, - 56 + + - 77
----
NULL
-133

skipif mysql # not compatible
query II rowsort label-2818
SELECT - CAST ( NULL AS INTEGER ) * - + 11 AS col0, - 56 + + - 77
----
NULL
-133

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

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

query II rowsort
SELECT DISTINCT ( 14 ), 94 AS col2
----
14
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + COUNT( * ) - 77 + 35 * - ( - 22 ) - + 75 * - 42 * + 36
----
114094

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + COUNT ( * ) - 77 + 35 * - ( - 22 ) - + 75 * - 42 * + 36
----
114094

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( DISTINCT - + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( DISTINCT - + 45 )
----
1

query I rowsort
SELECT + 16 * + + 9 * + + CASE + - ( + 20 ) WHEN AVG ( DISTINCT - - 67 ) + 87 * 95 * + 87 * 20 + - 67 - + 16 + - 52 THEN + 52 + + - 52 END
----
NULL

query I rowsort
SELECT + 28 + 31 - 10 * + 19 * - + ( - 37 ) AS col1
----
-6971

query II rowsort
SELECT - ( 20 ) AS col1, ( 21 ) col1
----
-20
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2826
SELECT + 80 * - + 66, CAST( - - MAX( DISTINCT - 33 ) AS SIGNED ) col1
----
-5280
-33

skipif mysql # not compatible
query II rowsort label-2826
SELECT + 80 * - + 66, CAST ( - - MAX ( DISTINCT - 33 ) AS INTEGER ) col1
----
-5280
-33

query I rowsort
SELECT + 98 - 56
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2828
SELECT - 4 DIV - 30 * + COUNT( * ) AS col1, 99 * - + NULLIF ( + 34, - COUNT( * ) ) AS col2
----
0
-3366

skipif mysql # not compatible
query II rowsort label-2828
SELECT - 4 / - 30 * + COUNT ( * ) AS col1, 99 * - + NULLIF ( + 34, - COUNT ( * ) ) AS col2
----
0
-3366

query I rowsort
SELECT + 74 - + 82
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL CASE + - 95 WHEN + + ( - ( 77 ) ) THEN + NULLIF ( - + ( 40 ), + - NULLIF ( + + 66, - AVG ( DISTINCT + 25 ) * + COUNT( * ) - 12 ) / - - 89 * + 4 * - ( + - 29 ) - + - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL CASE + - 95 WHEN + + ( - ( 77 ) ) THEN + NULLIF ( - + ( 40 ), + - NULLIF ( + + 66, - AVG ( DISTINCT + 25 ) * + COUNT ( * ) - 12 ) / - - 89 * + 4 * - ( + - 29 ) - + - COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT - 46 * - MAX( DISTINCT - 38 ), 89 AS col2
----
-1748
89

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - 46 * - MAX ( DISTINCT - 38 ), 89 AS col2
----
-1748
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + 10 + COUNT( - 57 )
----
11

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 10 + COUNT ( - 57 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + + 4 + - 6 + MAX( DISTINCT + 4 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2833
SELECT + + 4 + - 6 + MAX ( DISTINCT + 4 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT - 87 - + 19 DIV - COUNT( ALL 47 ) + - 6 + - 75
----
-149

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 87 - + 19 / - COUNT ( ALL 47 ) + - 6 + - 75
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL 0 DIV + 15 DIV + - 8 + + - 78 + + 23
----
-55

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL 0 / + 15 / + - 8 + + - 78 + + 23
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + - NULLIF ( - 51, - 19 ) * 61 + + - COUNT( * ) * + 58 AS col2
----
3053

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + - NULLIF ( - 51, - 19 ) * 61 + + - COUNT ( * ) * + 58 AS col2
----
3053

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - 14 DIV - ( + 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 14 / - ( + 34 ) AS col0
----
0

query I rowsort
SELECT + 53 + + 69
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2839
SELECT ALL ( - + CAST( NULL AS DECIMAL ) ) / - 30 + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL ( - + CAST ( NULL AS REAL ) ) / - 30 + - 32 AS col1
----
NULL

query I rowsort
SELECT ALL - 55 / - - CASE 58 WHEN - 72 THEN - 83 + + 33 ELSE NULL END + 30
----
NULL

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

query I rowsort
SELECT DISTINCT ( 43 ) * - 81 - + + 15 AS col2
----
-3498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT - ( - 69 ) + CAST( 86 AS SIGNED ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-2843
SELECT - ( - 69 ) + CAST ( 86 AS INTEGER ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT - 69 * - COUNT( * ) AS col2, NULLIF ( 21, + + AVG ( ( - + 41 ) ) / + COUNT( * ) * - - 45 ) * + - COUNT( * )
----
69
-21

skipif mysql # not compatible
query II rowsort label-2844
SELECT - 69 * - COUNT ( * ) AS col2, NULLIF ( 21, + + AVG ( ( - + 41 ) ) / + COUNT ( * ) * - - 45 ) * + - COUNT ( * )
----
69
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + COUNT( * ) * + 93 * 72 + + + ( + - CASE + + 41 WHEN + - ( + + NULLIF ( - + 60, - 4 ) ) * - 10 + + - 42 * + 96 + + NULLIF ( + 31, CAST( NULL AS SIGNED ) ) + + 52 + 45 + - - 11 * + 47 THEN NULL ELSE 71 + + 43 + - + 36 + 97 * COUNT( * ) END ) + - - 25 * + COUNT( * ) + + 14 + 29 AS col1
----
6589

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( * ) * + 93 * 72 + + + ( + - CASE + + 41 WHEN + - ( + + NULLIF ( - + 60, - 4 ) ) * - 10 + + - 42 * + 96 + + NULLIF ( + 31, CAST ( NULL AS INTEGER ) ) + + 52 + 45 + - - 11 * + 47 THEN NULL ELSE 71 + + 43 + - + 36 + 97 * COUNT ( * ) END ) + - - 25 * + COUNT ( * ) + + 14 + 29 AS col1
----
6589

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT NULLIF ( - + 35, + NULLIF ( - 87, - 54 + + COUNT( * ) * - + 44 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2846
SELECT NULLIF ( - + 35, + NULLIF ( - 87, - 54 + + COUNT ( * ) * - + 44 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT NULLIF ( COUNT( ALL ( NULLIF ( + 24, + 62 ) ) ), + - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-2847
SELECT NULLIF ( COUNT ( ALL ( NULLIF ( + 24, + 62 ) ) ), + - 69 )
----
1

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

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

query I rowsort
SELECT - ( - - 29 ) + + - 81 AS col0
----
-110

query I rowsort
SELECT + 34 - - + 55
----
89

query I rowsort
SELECT + 93 * - + 11 AS col2
----
-1023

query I rowsort
SELECT 67 * ( + 85 ) + 87
----
5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT - 81 DIV 56 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 81 / 56 * COUNT ( * )
----
-1

query I rowsort
SELECT - 98 + + 32
----
-66

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

skipif mysql # not compatible
query I rowsort label-2855
SELECT SUM ( ALL - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + 42 * + - COUNT( * ) + + + CASE - 98 WHEN + COUNT( * ) THEN NULL WHEN + 11 THEN - 39 + - 65 END + - - ( - 61 ) * 84 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + 42 * + - COUNT ( * ) + + + CASE - 98 WHEN + COUNT ( * ) THEN NULL WHEN + 11 THEN - 39 + - 65 END + - - ( - 61 ) * 84 * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 74 + 1 * - - 35 * + + 36 + + - COUNT( * ) AS col0
----
1333

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 74 + 1 * - - 35 * + + 36 + + - COUNT ( * ) AS col0
----
1333

query I rowsort
SELECT 49 * 45 AS col2
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT 55 + MAX( DISTINCT 50 ) + 61 DIV - 42 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2859
SELECT 55 + MAX ( DISTINCT 50 ) + 61 / - 42 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT COUNT( ALL - 57 ) + + 61 * 41
----
2502

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT COUNT ( ALL - 57 ) + + 61 * 41
----
2502

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT COUNT( * ) + - COUNT( * ) * - 22 + + 34 + + 45 + + 70
----
172

skipif mysql # not compatible
query I rowsort label-2861
SELECT COUNT ( * ) + - COUNT ( * ) * - 22 + + 34 + + 45 + + 70
----
172

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT ALL + ( - 17 ) + + 48 DIV + 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + ( - 17 ) + + 48 / + 5 AS col1
----
-8

query I rowsort
SELECT 21 * + - 18 col0
----
-378

query I rowsort
SELECT ALL - 87 + 31 * + 65 AS col2
----
1928

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - - NULLIF ( - - NULLIF ( - 86, + ( + 79 ) / - - 99 ), - - COUNT( * ) - - + 72 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - - NULLIF ( - - NULLIF ( - 86, + ( + 79 ) / - - 99 ), - - COUNT ( * ) - - + 72 ) AS col0
----
-86

query II rowsort
SELECT + 94 AS col1, 90 * - 69
----
94
-6210

query II rowsort
SELECT ALL - - 43 col1, 67 - + - 53 AS col0
----
43
120

query II rowsort
SELECT ALL 48 + + - 28 * 0 AS col0, 30 AS col0
----
48
30

query I rowsort
SELECT - 87 * - 7 + 88 + - - 34
----
731

query I rowsort
SELECT 46 - + + 4
----
42

query II rowsort
SELECT ALL - + 70, - 16 + ( ( - ( + 53 ) ) ) - + 38 AS col0
----
-70
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT 35 * + NULLIF ( - + CAST( NULL AS SIGNED ), + - ( - + 17 ) ) + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT 35 * + NULLIF ( - + CAST ( NULL AS INTEGER ), + - ( - + 17 ) ) + 11
----
NULL

query I rowsort
SELECT + 54 * + 39 AS col0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL + - CASE - 32 WHEN 43 THEN NULL WHEN + - NULLIF ( + MIN( + 92 ), + + 22 * + 8 ) THEN + 21 * + + 76 ELSE - 25 * + 8 + + 80 + 3 END * 41 + - 57 * - 49 * + COUNT( * ) * + - 50 * + 76 AS col0
----
-10608603

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + - CASE - 32 WHEN 43 THEN NULL WHEN + - NULLIF ( + MIN ( + 92 ), + + 22 * + 8 ) THEN + 21 * + + 76 ELSE - 25 * + 8 + + 80 + 3 END * 41 + - 57 * - 49 * + COUNT ( * ) * + - 50 * + 76 AS col0
----
-10608603

query I rowsort
SELECT 69 * + + 21
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT + 10 * 24 - + COUNT( * ) + + 82 - + 62 AS col0
----
259

skipif mysql # not compatible
query I rowsort label-2877
SELECT + 10 * 24 - + COUNT ( * ) + + 82 - + 62 AS col0
----
259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL - CAST( COALESCE ( 32, + + 99 ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - CAST ( COALESCE ( 32, + + 99 ) AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + MAX( - 94 ) * - 63 + + 27 AS col1
----
5949

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + MAX ( - 94 ) * - 63 + + 27 AS col1
----
5949

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT ALL - MAX( - 62 ) AS col2, 89 + - 53
----
62
36

skipif mysql # not compatible
query II rowsort label-2880
SELECT ALL - MAX ( - 62 ) AS col2, 89 + - 53
----
62
36

query I rowsort
SELECT 14 * - 30 * + + 30 * + 27
----
-340200

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL 47 * NULLIF ( SUM( DISTINCT + ( - 12 ) ), + + 47 * + 16 )
----
-564

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL 47 * NULLIF ( SUM ( DISTINCT + ( - 12 ) ), + + 47 * + 16 )
----
-564

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - COUNT( + 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - COUNT ( + 81 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2885
SELECT DISTINCT + 63 * - CAST( COUNT( * ) AS SIGNED ) * + - 35 AS col0, NULLIF ( - 87, - - 19 ) * + 91 + - COUNT( * ) * MAX( ALL + - CAST( + 23 AS SIGNED ) ) * + SUM( ALL - - 81 )
----
2205
-6054

skipif mysql # not compatible
query II rowsort label-2885
SELECT DISTINCT + 63 * - CAST ( COUNT ( * ) AS INTEGER ) * + - 35 AS col0, NULLIF ( - 87, - - 19 ) * + 91 + - COUNT ( * ) * MAX ( ALL + - CAST ( + 23 AS INTEGER ) ) * + SUM ( ALL - - 81 )
----
2205
-6054

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT 49 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT 49 / 91 AS col2
----
0

query II rowsort
SELECT ALL + 73 + + 74 AS col1, + ( + 12 ) AS col2
----
147
12

query I rowsort
SELECT 29 + + + 46
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT 45 * 55 * + 17 * + MIN( ALL + 11 ) col1
----
462825

skipif mysql # not compatible
query I rowsort label-2889
SELECT 45 * 55 * + 17 * + MIN ( ALL + 11 ) col1
----
462825

query I rowsort
SELECT ALL - 2 + + 89 + 27 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL - CAST( - + 76 AS SIGNED ) * + 67 + - + 84 - + - 50 - - ( + COALESCE ( + + 39, - 1, - + ( 83 ) ) )
----
5097

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - CAST ( - + 76 AS INTEGER ) * + 67 + - + 84 - + - 50 - - ( + COALESCE ( + + 39, - 1, - + ( 83 ) ) )
----
5097

query I rowsort
SELECT 36 + + + 4
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + + 36, - - 1 * + 28 + + 51 + + COUNT( * ) ) * 55
----
1980

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + + 36, - - 1 * + 28 + + 51 + + COUNT ( * ) ) * 55
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT + - 91 - - NULLIF ( CAST( NULL AS SIGNED ), 96 ) * + - 76 + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + - 91 - - NULLIF ( CAST ( NULL AS INTEGER ), 96 ) * + - 76 + - 55 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 0, 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + COUNT( - 46 ) - - 76
----
77

skipif mysql # not compatible
query I rowsort label-2896
SELECT + COUNT ( - 46 ) - - 76
----
77

query I rowsort
SELECT ( - + 52 ) * - + 74 AS col1
----
3848

query I rowsort
SELECT 5 - + 99 - 35
----
-129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL - CASE - - 81 WHEN - COUNT( * ) * + - 16 * - 57 * + 51 + - + 63 / + MIN( - + 9 ) * - 65 / + COUNT( * ) - + + 21 + - 91 THEN NULL WHEN + ( - + 91 ) THEN - 55 + - + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL - CASE - - 81 WHEN - COUNT ( * ) * + - 16 * - 57 * + 51 + - + 63 / + MIN ( - + 9 ) * - 65 / + COUNT ( * ) - + + 21 + - 91 THEN NULL WHEN + ( - + 91 ) THEN - 55 + - + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT - 51 + + 60
----
9

query I rowsort
SELECT ALL + + 49 * + - 14 - - - 89
----
-775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT COALESCE ( + CAST( NULL AS SIGNED ), 55 * 5 * + ( 84 ) ) * - 53 * - 89 * + + 19 + - 96 + + COUNT( * )
----
2070291205

skipif mysql # not compatible
query I rowsort label-2903
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), 55 * 5 * + ( 84 ) ) * - 53 * - 89 * + + 19 + - 96 + + COUNT ( * )
----
2070291205

query I rowsort
SELECT 61 * + 83 + 54
----
5117

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT 4 DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT 4 / + 28 AS col2
----
0

query I rowsort
SELECT 49 * - NULLIF ( - 22, - + 34 - + - 23 ) AS col2
----
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL 63 DIV - + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 63 / - + 52 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 32 + + 30 * + 79
----
2338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT + 15 + + COUNT( * ) * - + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2909
SELECT + 15 + + COUNT ( * ) * - + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
14
NULL

query II rowsort
SELECT 21, 96 AS col0
----
21
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT - CASE + 42 WHEN - 54 THEN + 81 DIV + 34 + - CASE - COALESCE ( - 1, + 43 ) WHEN - COALESCE ( + - 39, + SUM( ALL 53 ) ) THEN - 17 ELSE + + 56 END + + 40 - CAST( NULL AS SIGNED ) DIV 86 ELSE - 40 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2911
SELECT - CASE + 42 WHEN - 54 THEN + 81 / + 34 + - CASE - COALESCE ( - 1, + 43 ) WHEN - COALESCE ( + - 39, + SUM ( ALL 53 ) ) THEN - 17 ELSE + + 56 END + + 40 - CAST ( NULL AS INTEGER ) / 86 ELSE - 40 END AS col1
----
40

query I rowsort
SELECT ALL + 42 + - + 69 col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - MIN( 74 ) + + COALESCE ( - CAST( NULL AS SIGNED ) + 67, 1 * - ( + 84 ) + 25, 93 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-2913
SELECT - MIN ( 74 ) + + COALESCE ( - CAST ( NULL AS INTEGER ) + 67, 1 * - ( + 84 ) + 25, 93 ) AS col1
----
-133

query I rowsort
SELECT ALL NULLIF ( - 27, 51 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL + 15 * COUNT( + 54 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + 15 * COUNT ( + 54 ) AS col0
----
15

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

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

query I rowsort
SELECT - 55 * + 42 AS col0
----
-2310

query I rowsort
SELECT DISTINCT ( 48 ) AS col2
----
48

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

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

query I rowsort
SELECT - 7 + - 20 * - ( - 73 ) AS col0
----
-1467

query I rowsort
SELECT - 19 * - 9 AS col2
----
171

query I rowsort
SELECT + 60 + 60
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT ( CASE CAST( NULL AS SIGNED ) WHEN 68 THEN NULL WHEN 72 THEN 82 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT ( CASE CAST ( NULL AS INTEGER ) WHEN 68 THEN NULL WHEN 72 THEN 82 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT CASE - 65 WHEN 44 THEN COUNT( + 69 ) WHEN 51 / - 5 THEN 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT CASE - 65 WHEN 44 THEN COUNT ( + 69 ) WHEN 51 / - 5 THEN 43 ELSE NULL END
----
NULL

query I rowsort
SELECT - 65 * + 58 AS col2
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + 73 DIV 14 - - 3
----
8

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 73 / 14 - - 3
----
8

query I rowsort
SELECT ( - ( - 85 ) ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT ALL + CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( - 60 AS INTEGER )
----
-60

query I rowsort
SELECT + 87 * 99
----
8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT ALL + 76 * + COALESCE ( - 7, 27 + 87 DIV 67 ) + + COUNT( * ) * - 29
----
-561

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + 76 * + COALESCE ( - 7, 27 + 87 / 67 ) + + COUNT ( * ) * - 29
----
-561

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT - COALESCE ( + 9, 46 ) * 7 - + 87 DIV - 54 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2931
SELECT - COALESCE ( + 9, 46 ) * 7 - + 87 / - 54 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL + CASE 24 WHEN - 1 - 10 THEN - CAST( - 65 AS SIGNED ) * MAX( DISTINCT - 30 ) ELSE 54 END AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + CASE 24 WHEN - 1 - 10 THEN - CAST ( - 65 AS INTEGER ) * MAX ( DISTINCT - 30 ) ELSE 54 END AS col1
----
54

query I rowsort
SELECT DISTINCT - 15 * - 76 + 68
----
1208

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT + COUNT( * ) * - 40 + CASE + 84 WHEN - 91 THEN 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + COUNT ( * ) * - 40 + CASE + 84 WHEN - 91 THEN 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT + NULLIF ( + COUNT( * ), + 8 + 95 * - 51 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2935
SELECT + NULLIF ( + COUNT ( * ), + 8 + 95 * - 51 ) col0
----
1

query I rowsort
SELECT ALL + ( 18 ) * 25 + 21
----
471

query I rowsort
SELECT ALL - 99 * 67 + - 44 * - 40 col2
----
-4873

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL COUNT( * ) * 96 + 0 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL COUNT ( * ) * 96 + 0 AS col1
----
96

query I rowsort
SELECT 18 * + 37 + 50 AS col1
----
716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT + 4 * + NULLIF ( ( 43 ) * - COUNT( * ), - 24 * CAST( NULL AS SIGNED ) ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-2940
SELECT + 4 * + NULLIF ( ( 43 ) * - COUNT ( * ), - 24 * CAST ( NULL AS INTEGER ) ) AS col1
----
-172

query I rowsort
SELECT + 21 + 15
----
36

query I rowsort
SELECT + 90 * 57 - 69 * + 87
----
-873

query I rowsort
SELECT ALL 40 * + 41 + 34 AS col1
----
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT + CASE 70 WHEN AVG ( DISTINCT 0 ) - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 64 END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2944
SELECT + CASE 70 WHEN AVG ( DISTINCT 0 ) - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 64 END AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT + 85 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT + 85 / + 90 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL + ( CASE 34 WHEN COALESCE ( COUNT( * ), + COUNT( * ), - 97 ) * 4 THEN NULL ELSE ( ( + 47 ) ) END ) * + ( - 28 - 30 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + ( CASE 34 WHEN COALESCE ( COUNT ( * ), + COUNT ( * ), - 97 ) * 4 THEN NULL ELSE ( ( + 47 ) ) END ) * + ( - 28 - 30 ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( 17, 81 * + 67 )
----
17

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

query I rowsort
SELECT - 40 * NULLIF ( 1, - 38 )
----
-40

query I rowsort
SELECT ALL 10 * 31 AS col1
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + 84 + + ( COUNT( * ) + 72 * + COUNT( * ) ) * - 56 AS col0
----
-4004

skipif mysql # not compatible
query I rowsort label-2952
SELECT + 84 + + ( COUNT ( * ) + 72 * + COUNT ( * ) ) * - 56 AS col0
----
-4004

query I rowsort
SELECT DISTINCT COALESCE ( 94, 3 ) AS col0
----
94

query I rowsort
SELECT + - 53 * + 56
----
-2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT - - COALESCE ( CASE - 26 WHEN - 90 + 17 DIV - 7 THEN - 65 ELSE 70 * - COUNT( * ) - COUNT( * ) * - 3 END, + ( + 5 ), 9 DIV COUNT( ALL - 64 ), 21 + 20 ) * + 50
----
-3350

skipif mysql # not compatible
query I rowsort label-2955
SELECT - - COALESCE ( CASE - 26 WHEN - 90 + 17 / - 7 THEN - 65 ELSE 70 * - COUNT ( * ) - COUNT ( * ) * - 3 END, + ( + 5 ), 9 / COUNT ( ALL - 64 ), 21 + 20 ) * + 50
----
-3350

query I rowsort
SELECT + + 78 - 33 * 88 col1
----
-2826

query I rowsort
SELECT - - 4 + 93 * + 65 AS col1
----
6049

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT - COUNT( * ) * + ( + SUM( - 58 ) * - 46 )
----
-2668

skipif mysql # not compatible
query I rowsort label-2958
SELECT - COUNT ( * ) * + ( + SUM ( - 58 ) * - 46 )
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - + COUNT( * ) + 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2959
SELECT - + COUNT ( * ) + 82 AS col2
----
81

query I rowsort
SELECT DISTINCT - 65 * 51
----
-3315

query I rowsort
SELECT - - 54 * 86 AS col0
----
4644

query I rowsort
SELECT + 0 + 66 * + 21 col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - MAX( DISTINCT - 78 ) - + 15 * 91
----
-1287

skipif mysql # not compatible
query I rowsort label-2963
SELECT - MAX ( DISTINCT - 78 ) - + 15 * 91
----
-1287

query I rowsort
SELECT ALL - + 82 * + 36 AS col2
----
-2952

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

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) / 72
----
0

query I rowsort
SELECT - 13 + 42 AS col2
----
29

query I rowsort
SELECT - + 46 * + ( + 51 - - 81 )
----
-6072

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

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + + 69 + + COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL + + 85 DIV + 30 + 60 * - NULLIF ( 24 + + 94, + 29 * - ( + 49 ) ) AS col0
----
-7078

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + + 85 / + 30 + 60 * - NULLIF ( 24 + + 94, + 29 * - ( + 49 ) ) AS col0
----
-7078

query I rowsort
SELECT - 58 + 73 + 41
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + MAX( ALL 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + MAX ( ALL 68 ) AS col0
----
68

query I rowsort
SELECT DISTINCT 63 + 38 col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT 41 DIV - 24 + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2973
SELECT 41 / - 24 + + 9 AS col2
----
8

query I rowsort
SELECT ALL - ( + COALESCE ( - 16, + 72, 99 ) )
----
16

query I rowsort
SELECT 29 + 84
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 68 + - - 27 DIV + 14 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2976
SELECT 68 + - - 27 / + 14 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL 4 * - 9 * - MAX( 23 ) AS col0
----
828

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 4 * - 9 * - MAX ( 23 ) AS col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - MAX( DISTINCT - 88 ) * + 5 AS col0
----
440

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - MAX ( DISTINCT - 88 ) * + 5 AS col0
----
440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - ( + ( NULLIF ( CASE - ( 36 ) WHEN + 74 / 8 THEN NULL WHEN + 13 THEN - 87 END, - COUNT( * ) * + COUNT( * ) + 65 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - ( + ( NULLIF ( CASE - ( 36 ) WHEN + 74 / 8 THEN NULL WHEN + 13 THEN - 87 END, - COUNT ( * ) * + COUNT ( * ) + 65 ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT - 24 - - 69 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - 24 - - 69 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 83 * 99 AS col0
----
8217

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2983
SELECT + 26 * + + 64 + CAST( NULL AS DECIMAL ) * - COUNT( * ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 26 * + + 64 + CAST ( NULL AS REAL ) * - COUNT ( * ) + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL - - CAST( CASE CAST( NULL AS SIGNED ) WHEN + 6 THEN + 19 * + 32 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - - CAST ( CASE CAST ( NULL AS INTEGER ) WHEN + 6 THEN + 19 * + 32 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 20 * - 96 + 90 col1
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - COUNT( DISTINCT - + 83 ) * - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2986
SELECT - COUNT ( DISTINCT - + 83 ) * - 27 AS col2
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL + 88 DIV 44 col0
----
2

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL + 88 / 44 col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT CAST( - 18 AS SIGNED ) + 6
----
-12

skipif mysql # not compatible
query I rowsort label-2989
SELECT CAST ( - 18 AS INTEGER ) + 6
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - 95 * 21 + + MAX( NULLIF ( ( 68 ), - 60 ) )
----
-1927

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 95 * 21 + + MAX ( NULLIF ( ( 68 ), - 60 ) )
----
-1927

query I rowsort
SELECT + 65 + - 95
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT CAST( - - 94 AS SIGNED ) + - 66 * 29
----
-1820

skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( - - 94 AS INTEGER ) + - 66 * 29
----
-1820

query I rowsort
SELECT ALL 87 * 75
----
6525

query I rowsort
SELECT + 31 * + 31 + + 92 AS col1
----
1053

query I rowsort
SELECT DISTINCT 10 * ( 23 )
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL 14 + CAST( + ( - 69 ) AS SIGNED ) * - NULLIF ( - 73, MIN( ALL - 49 ) ) AS col1
----
-5023

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 14 + CAST ( + ( - 69 ) AS INTEGER ) * - NULLIF ( - 73, MIN ( ALL - 49 ) ) AS col1
----
-5023

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL COUNT( * ) + CASE 51 WHEN 2 THEN NULL WHEN - 62 - 31 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL COUNT ( * ) + CASE 51 WHEN 2 THEN NULL WHEN - 62 - 31 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 98 * + - 89 AS col2
----
8722

query I rowsort
SELECT + 81 + - - 24 + - 74
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - 11 + 72 + - COALESCE ( + 62, + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - 11 + 72 + - COALESCE ( + 62, + COUNT ( * ) ) AS col1
----
-1

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

query I rowsort
SELECT DISTINCT ( - - 76 ) + + COALESCE ( + ( + 48 ), + 17, 56 ) * - 53
----
-2468

query I rowsort
SELECT ALL - ( + 68 ) * + + 54 + - 55
----
-3727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT COALESCE ( + 86, - SUM( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) ) + 90 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-3004
SELECT COALESCE ( + 86, - SUM ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) ) + 90 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT SUM( + 26 ) + 6
----
32

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT SUM ( + 26 ) + 6
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL ( - MAX( - 56 ) ) + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL ( - MAX ( - 56 ) ) + COUNT ( * ) AS col1
----
57

query II rowsort
SELECT DISTINCT 49 col2, 43 AS col1
----
49
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT 42 DIV + NULLIF ( + - 34, 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-3008
SELECT 42 / + NULLIF ( + - 34, 21 )
----
-1

query I rowsort
SELECT ALL + 18 + + 7
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL NULLIF ( - ( SUM( ALL - ( + NULLIF ( + 51, CAST( NULL AS SIGNED ) - 35 ) ) ) ), 2 ) * - 77 AS col2
----
-3927

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL NULLIF ( - ( SUM ( ALL - ( + NULLIF ( + 51, CAST ( NULL AS INTEGER ) - 35 ) ) ) ), 2 ) * - 77 AS col2
----
-3927

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT 55 DIV - COALESCE ( - 90, ( + 24 ), 8 * 76 + AVG ( DISTINCT 44 ) * AVG ( ALL - NULLIF ( - 89, - 98 ) ) ) - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3012
SELECT 55 / - COALESCE ( - 90, ( + 24 ), 8 * 76 + AVG ( DISTINCT 44 ) * AVG ( ALL - NULLIF ( - 89, - 98 ) ) ) - 41 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT DISTINCT + ( - COUNT( - + CAST( - 96 AS SIGNED ) ) ) * 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + ( - COUNT ( - + CAST ( - 96 AS INTEGER ) ) ) * 5 AS col0
----
-5

query I rowsort
SELECT ( + 56 ) + - + COALESCE ( 79, ( + 71 ) * - 18 ) * - CASE + 60 WHEN + 84 THEN - 4 * 51 END
----
NULL

query I rowsort
SELECT ( NULLIF ( + + 16, + 57 ) ) * + 34 AS col0
----
544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT + CASE WHEN NOT - NULLIF ( + 31, CAST( NULL AS SIGNED ) ) IS NOT NULL THEN 90 / - 44 END * - 28 + 24 * 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT + CASE WHEN NOT - NULLIF ( + 31, CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN 90 / - 44 END * - 28 + 24 * 41 AS col0
----
NULL

query I rowsort
SELECT ALL - 55 - + 39 - - 18 * - 5
----
-184

query I rowsort
SELECT DISTINCT ( 66 ) * 15 AS col0
----
990

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT ALL + 83 DIV - 15
----
-5

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + 83 / - 15
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT DISTINCT - COALESCE ( - 45, - - 2 + 4, - CAST( - 60 AS SIGNED ) * + 58 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - COALESCE ( - 45, - - 2 + 4, - CAST ( - 60 AS INTEGER ) * + 58 ) AS col0
----
45

query II rowsort
SELECT DISTINCT - 15 AS col2, + 48 col0
----
-15
48

query I rowsort
SELECT 93 * + 21 AS col2
----
1953

query II rowsort
SELECT + 42 AS col1, + 56 col0
----
42
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL + - 32 * - - COALESCE ( + 13, 64, + CAST( NULL AS SIGNED ) + + 56 * + 70 ) AS col1
----
-416

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - 32 * - - COALESCE ( + 13, 64, + CAST ( NULL AS INTEGER ) + + 56 * + 70 ) AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + CASE + MAX( - 88 ) WHEN + 79 THEN 6 ELSE NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT + CASE + MAX ( - 88 ) WHEN + 79 THEN 6 ELSE NULL END * 13
----
NULL

query I rowsort
SELECT ALL + - 15 * + 45 * - - 50 + + 62
----
-33688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT - - CASE - + ( NULLIF ( - CAST( + 1 AS SIGNED ), - 78 + + ( + MAX( ALL 21 ) ) / - NULLIF ( ( CAST( COUNT( * ) AS SIGNED ) ), 97 ) ) ) WHEN 45 * 39 THEN + MIN( DISTINCT 56 ) + 28 END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - - CASE - + ( NULLIF ( - CAST ( + 1 AS INTEGER ), - 78 + + ( + MAX ( ALL 21 ) ) / - NULLIF ( ( CAST ( COUNT ( * ) AS INTEGER ) ), 97 ) ) ) WHEN 45 * 39 THEN + MIN ( DISTINCT 56 ) + 28 END + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL + COUNT( * ) * + - 39 * + + 72 AS col0
----
-2808

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + COUNT ( * ) * + - 39 * + + 72 AS col0
----
-2808

query I rowsort
SELECT DISTINCT + 9 + 72 + CASE + NULLIF ( 4, - 79 ) WHEN 73 THEN NULL ELSE ( 34 ) END + 44
----
159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL 55 + - COUNT( * ) + + 72 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 55 + - COUNT ( * ) + + 72 AS col2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT DISTINCT + 7 AS col2, - COALESCE ( COUNT( * ), + 57 )
----
7
-1

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT + 7 AS col2, - COALESCE ( COUNT ( * ), + 57 )
----
7
-1

query I rowsort
SELECT ALL - + 27 + 49 * - 94 * + 26 AS col2
----
-119783

query I rowsort
SELECT + 68 + + 8 + - 53 AS col2
----
23

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

skipif mysql # not compatible
query I rowsort label-3036
SELECT 84 + COUNT ( * ) + + + 8 / - COUNT ( * )
----
77

query I rowsort
SELECT + 52 * + 60
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + 95 + + - COALESCE ( - COUNT( * ), + 23 )
----
96

skipif mysql # not compatible
query I rowsort label-3038
SELECT + 95 + + - COALESCE ( - COUNT ( * ), + 23 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - - ( SUM( DISTINCT + ( 8 ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3039
SELECT - - ( SUM ( DISTINCT + ( 8 ) ) ) AS col0
----
8

query I rowsort
SELECT 61 - 79
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL + 71 DIV + 70 col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + 71 / + 70 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT ALL + + NULLIF ( + CAST( NULL AS SIGNED ), - ( 87 ) * 41 ) / + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + + NULLIF ( + CAST ( NULL AS INTEGER ), - ( 87 ) * 41 ) / + 64 AS col1
----
NULL

query I rowsort
SELECT ALL 62 * + - 79
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + 31 + + + 77 + - SUM( DISTINCT 10 ) * CASE WHEN ( 69 + CASE + 38 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( + 73, + 22 ) THEN 29 ELSE NULL END ) < NULL THEN 52 * 59 WHEN NULL NOT BETWEEN - ( 96 ) * - 4 - - 71 AND ( 2 * NULLIF ( + 48, 94 ) ) THEN - 38 ELSE 83 END AS col0
----
-722

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 31 + + + 77 + - SUM ( DISTINCT 10 ) * CASE WHEN ( 69 + CASE + 38 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( + 73, + 22 ) THEN 29 ELSE NULL END ) < NULL THEN 52 * 59 WHEN NULL NOT BETWEEN - ( 96 ) * - 4 - - 71 AND ( 2 * NULLIF ( + 48, 94 ) ) THEN - 38 ELSE 83 END AS col0
----
-722

query I rowsort
SELECT ALL 1 + 37 AS col1
----
38

query I rowsort
SELECT DISTINCT - 22 * - 31
----
682

query I rowsort
SELECT ALL 23 - - 98 * - 72
----
-7033

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + COALESCE ( 82, - ( - - 93 ) ) * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3048
SELECT + COALESCE ( 82, - ( - - 93 ) ) * COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + 99 + - MIN( ALL + + 25 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 99 + - MIN ( ALL + + 25 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + COUNT( * ) - - 83 * + + 97 * - SUM( ( 52 ) ) AS col1
----
-418651

skipif mysql # not compatible
query I rowsort label-3050
SELECT + COUNT ( * ) - - 83 * + + 97 * - SUM ( ( 52 ) ) AS col1
----
-418651

query I rowsort
SELECT + 75 + 20 * - 57 AS col1
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + 81 - - 43 + SUM( ALL 97 ) + 94 * + 97
----
9339

skipif mysql # not compatible
query I rowsort label-3052
SELECT + 81 - - 43 + SUM ( ALL 97 ) + 94 * + 97
----
9339

query I rowsort
SELECT - CASE + 90 WHEN - 85 THEN - 75 * - 5 END + - 0 AS col0
----
NULL

query I rowsort
SELECT + 45 + + 18 AS col1
----
63

query I rowsort
SELECT + 15 * - 71 * 18 + 38 + + ( 3 )
----
-19129

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + COALESCE ( + COUNT( * ), + 17 * - 97 + - 42 ) * + 81
----
81

skipif mysql # not compatible
query I rowsort label-3056
SELECT + COALESCE ( + COUNT ( * ), + 17 * - 97 + - 42 ) * + 81
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 15 DIV + - ( 58 ) + - 37 + ( 65 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3057
SELECT 15 / + - ( 58 ) + - 37 + ( 65 ) AS col0
----
28

query I rowsort
SELECT DISTINCT + 79 * 36
----
2844

query I rowsort
SELECT + ( - 31 ) col0
----
-31

query I rowsort
SELECT 41 * 53 - + 85 * 16 + 85 AS col1
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + NULLIF ( + 54, - + 42 ) * 69 + - COUNT( * ) + 70 col0
----
3795

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + NULLIF ( + 54, - + 42 ) * 69 + - COUNT ( * ) + 70 col0
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + + COUNT( - 75 ) * + ( + 10 ) + 91
----
101

skipif mysql # not compatible
query I rowsort label-3062
SELECT + + COUNT ( - 75 ) * + ( + 10 ) + 91
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT ALL + 60 * - 48 + + CAST( NULL AS SIGNED ) * 13 / 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + 60 * - 48 + + CAST ( NULL AS INTEGER ) * 13 / 80 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL COUNT( * ) * - 48 - + - 44
----
-4

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL COUNT ( * ) * - 48 - + - 44
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - 86 + CASE - 39 WHEN COALESCE ( - 85, - 17 + + 11, + 67 + + SUM( 99 ) ) THEN 96 - - 29 END + 65 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 86 + CASE - 39 WHEN COALESCE ( - 85, - 17 + + 11, + 67 + + SUM ( 99 ) ) THEN 96 - - 29 END + 65 * 59
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 34, - - 76 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL 75 * + NULLIF ( + COUNT( * ), - 57 ) - - 20 + 7
----
102

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL 75 * + NULLIF ( + COUNT ( * ), - 57 ) - - 20 + 7
----
102

query I rowsort
SELECT ALL - - 84 * + - 8 * - 79 + + + 13 + - 56 AS col0
----
53045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3069
SELECT - - 30 * - + 35 + + - 17 * 46 DIV CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-3069
SELECT - - 30 * - + 35 + + - 17 * 46 / CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - - 25 + - SUM( ALL - 16 ) * + + 59
----
969

skipif mysql # not compatible
query I rowsort label-3070
SELECT - - 25 + - SUM ( ALL - 16 ) * + + 59
----
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3071
SELECT + CAST( + + 22 AS SIGNED ) AS col2, MAX( DISTINCT 85 )
----
22
85

skipif mysql # not compatible
query II rowsort label-3071
SELECT + CAST ( + + 22 AS INTEGER ) AS col2, MAX ( DISTINCT 85 )
----
22
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( * ) * + 25 - - - 62 + 32 col0
----
-55

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( * ) * + 25 - - - 62 + 32 col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + 86 * 34 - 3 + - - COALESCE ( CAST( NULL AS SIGNED ), 88 - - 50 * + ( + 76 - 80 ) )
----
2809

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 86 * 34 - 3 + - - COALESCE ( CAST ( NULL AS INTEGER ), 88 - - 50 * + ( + 76 - 80 ) )
----
2809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT + 49 + + 17 DIV + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3074
SELECT + 49 + + 17 / + - COUNT ( * )
----
32

query I rowsort
SELECT - 89 * + 74 * 71 AS col0
----
-467606

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT + - 62 * MIN( 55 )
----
-3410

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + - 62 * MIN ( 55 )
----
-3410

query I rowsort
SELECT DISTINCT + 42 + - + 66
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3078
SELECT ALL - 84 + COUNT( * ) / - 55 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - 84 + COUNT ( * ) / - 55 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - + 98 * + 87 AS col2
----
-8526

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

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

query II rowsort
SELECT - 94, 90 AS col2
----
-94
90

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

skipif mysql # not compatible
query I rowsort label-3082
SELECT + COALESCE ( + COUNT ( * ), - - 63 ) + ( - 31 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL CAST( - + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL CAST ( - + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( * ) * - - CASE - 80 WHEN - MIN( + 26 ) THEN NULL WHEN 47 * - 11 THEN NULL WHEN - COUNT( DISTINCT 11 ) THEN NULL ELSE 51 + 69 END * 59
----
-7080

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COUNT ( * ) * - - CASE - 80 WHEN - MIN ( + 26 ) THEN NULL WHEN 47 * - 11 THEN NULL WHEN - COUNT ( DISTINCT 11 ) THEN NULL ELSE 51 + 69 END * 59
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + COUNT( ALL 42 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT + COUNT ( ALL 42 ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL 87 - - 16
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT DISTINCT 46 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 46 / 38 AS col2
----
1

query I rowsort
SELECT - 52 * + 24 AS col1
----
-1248

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

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

query I rowsort
SELECT ALL 81 * + + 63 * - 63 col0
----
-321489

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3091
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + + ( CASE + ( 79 ) WHEN 25 + 17 THEN 19 * + 66 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - CAST ( NULL AS REAL ) / + + ( CASE + ( 79 ) WHEN 25 + 17 THEN 19 * + 66 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT - 1 DIV - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - 1 / - 61 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT 74 * 86 DIV 82 * - - CAST( + 72 AS SIGNED ) * - 56 AS col1
----
-310464

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT 74 * 86 / 82 * - - CAST ( + 72 AS INTEGER ) * - 56 AS col1
----
-310464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT CAST( - 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT CAST ( - 43 AS INTEGER ) AS col1
----
-43

query I rowsort
SELECT ALL 45 * + NULLIF ( + 22, + ( - 97 ) )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + ( - - COUNT( ALL + 76 ) ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3096
SELECT + ( - - COUNT ( ALL + 76 ) ) * - 8
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT COALESCE ( + + CASE - 1 WHEN - COUNT( * ) THEN - 72 + - ( + COUNT( * ) ) ELSE 82 END, + MAX( 53 ) ) DIV 68 + MAX( + COALESCE ( 93, 42 * COALESCE ( - 32, ( 64 ) + - 33 ) ) + 40 )
----
132

skipif mysql # not compatible
query I rowsort label-3098
SELECT COALESCE ( + + CASE - 1 WHEN - COUNT ( * ) THEN - 72 + - ( + COUNT ( * ) ) ELSE 82 END, + MAX ( 53 ) ) / 68 + MAX ( + COALESCE ( 93, 42 * COALESCE ( - 32, ( 64 ) + - 33 ) ) + 40 )
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3099
SELECT + CAST( NULL AS DECIMAL ) AS col1, + 69 * + SUM( - 26 )
----
NULL
-1794

skipif mysql # not compatible
query II rowsort label-3099
SELECT + CAST ( NULL AS REAL ) AS col1, + 69 * + SUM ( - 26 )
----
NULL
-1794

query I rowsort
SELECT + ( - 31 ) * + 21 * NULLIF ( 57, - 6 * + 64 + + 1 ) AS col0
----
-37107

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - 35 * - COUNT( * ) + - 24 * 31
----
-709

skipif mysql # not compatible
query I rowsort label-3101
SELECT - 35 * - COUNT ( * ) + - 24 * 31
----
-709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL + 98 DIV 88 + COUNT( * ) + 63 * + 50
----
3152

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 98 / 88 + COUNT ( * ) + 63 * + 50
----
3152

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT - 15 DIV - 7 + 43 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - 15 / - 7 + 43 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT + + 93 * - 36 * + 6 * + CAST( 39 AS SIGNED ) - - 57 - ( - 94 )
----
-783281

skipif mysql # not compatible
query I rowsort label-3104
SELECT + + 93 * - 36 * + 6 * + CAST ( 39 AS INTEGER ) - - 57 - ( - 94 )
----
-783281

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT CASE ( - + 32 ) WHEN + + 78 THEN CAST( + ( - COUNT( * ) ) AS SIGNED ) - 99 WHEN - NULLIF ( 25, - 47 + + 10 ) THEN NULL END / + 91 + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT CASE ( - + 32 ) WHEN + + 78 THEN CAST ( + ( - COUNT ( * ) ) AS INTEGER ) - 99 WHEN - NULLIF ( 25, - 47 + + 10 ) THEN NULL END / + 91 + 15 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT + ( CAST( - - COUNT( * ) AS SIGNED ) ) * - - 67 + + 32
----
99

skipif mysql # not compatible
query I rowsort label-3107
SELECT + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) * - - 67 + + 32
----
99

query I rowsort
SELECT - 7 * - 40
----
280

query I rowsort
SELECT ALL - - 73 * ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ( + - SUM( - + 21 ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-3110
SELECT ( + - SUM ( - + 21 ) ) col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT CAST( + 86 AS SIGNED ) * MIN( + - CAST( NULL AS SIGNED ) ) / 91 * 20 - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT CAST ( + 86 AS INTEGER ) * MIN ( + - CAST ( NULL AS INTEGER ) ) / 91 * 20 - - 61
----
NULL

query I rowsort
SELECT DISTINCT - 88 * - 59 col0
----
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + NULLIF ( + + COUNT( * ), + + 13 ) - - 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + NULLIF ( + + COUNT ( * ), + + 13 ) - - 72 col2
----
73

query I rowsort
SELECT ALL - COALESCE ( + 60, + 28, 1 * + + 13 )
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - COUNT( * ) - MAX( - - 25 ) * ( + CASE + 23 WHEN + MAX( ALL + 91 ) THEN 18 END ) * 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - COUNT ( * ) - MAX ( - - 25 ) * ( + CASE + 23 WHEN + MAX ( ALL + 91 ) THEN 18 END ) * 82 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT - + 6 - - + CAST( NULL AS SIGNED ) / + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - + 6 - - + CAST ( NULL AS INTEGER ) / + 92 AS col2
----
NULL

query I rowsort
SELECT 83 * + 52 - ( + ( + 97 ) ) AS col2
----
4219

query I rowsort
SELECT - 66 + + - 78 + - 43 * + 92 AS col2
----
-4100

query II rowsort
SELECT ALL 91 AS col0, 9 AS col0
----
91
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT 32 + ( + 70 ) DIV - 91 + + SUM( 22 ) + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3122
SELECT 32 + ( + 70 ) / - 91 + + SUM ( 22 ) + COUNT ( * )
----
55

query I rowsort
SELECT 39 * + - 19 * - 46 * - 76 AS col1
----
-2590536

query II rowsort
SELECT ALL 49, 11 AS col0
----
49
11

query I rowsort
SELECT 48 + + - 71
----
-23

query II rowsort
SELECT ALL 51 col2, + ( - 55 )
----
51
-55

query I rowsort
SELECT ALL - 96 * - 19 * 72
----
131328

query I rowsort
SELECT 58 + - - 24 AS col1
----
82

query I rowsort
SELECT ALL - COALESCE ( 68, + - 54 ) * + 73
----
-4964

query II rowsort
SELECT DISTINCT 57 AS col1, + 56 AS col2
----
57
56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT DISTINCT 12, 68 + + CAST( NULL AS SIGNED ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3132
SELECT DISTINCT 12, 68 + + CAST ( NULL AS INTEGER ) AS col1
----
12
NULL

query I rowsort
SELECT 77 + - - 29
----
106

query I rowsort
SELECT ALL - 97 * - - 30 col0
----
-2910

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 48 + - CASE 74 WHEN + + COUNT( * ) + + - 63 THEN - + ( - 80 ) ELSE + 15 * - COUNT( * ) END
----
63

skipif mysql # not compatible
query I rowsort label-3135
SELECT 48 + - CASE 74 WHEN + + COUNT ( * ) + + - 63 THEN - + ( - 80 ) ELSE + 15 * - COUNT ( * ) END
----
63

query II rowsort
SELECT - 16 AS col0, 87 - 93 AS col0
----
-16
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT 54 * + COUNT( * ) * 8
----
432

skipif mysql # not compatible
query I rowsort label-3137
SELECT 54 * + COUNT ( * ) * 8
----
432

query I rowsort
SELECT DISTINCT - 70 + - + 91 AS col1
----
-161

query I rowsort
SELECT 67 * - 1 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3140
SELECT - 27 AS col1, + 68 + - 10 DIV + 34 - + + CAST( - - COUNT( * ) AS SIGNED )
----
-27
67

skipif mysql # not compatible
query II rowsort label-3140
SELECT - 27 AS col1, + 68 + - 10 / + 34 - + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-27
67

query I rowsort
SELECT ALL 91 + - - 68 * - 46 AS col1
----
-3037

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT ALL - 61 DIV + + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - 61 / + + 42 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT 99 DIV - ( + ( 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3143
SELECT 99 / - ( + ( 80 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 53 + 44 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - + 33 + + CASE - 36 WHEN - 50 / - - COUNT( - 81 ) THEN 80 * - COUNT( * ) ELSE NULL END * ( - 89 + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - + 33 + + CASE - 36 WHEN - 50 / - - COUNT ( - 81 ) THEN 80 * - COUNT ( * ) ELSE NULL END * ( - 89 + - 1 )
----
NULL

query I rowsort
SELECT + 12 * 77 col0
----
924

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

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 82 * COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - 21 + + COUNT( * ) AS col0, 91 AS col0
----
-20
91

skipif mysql # not compatible
query II rowsort label-3148
SELECT - 21 + + COUNT ( * ) AS col0, 91 AS col0
----
-20
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3149
SELECT - + CAST( + 88 AS SIGNED ) * + 81 - 56 AS col1, + MAX( ALL - + 18 ) DIV - 40
----
-7184
0

skipif mysql # not compatible
query II rowsort label-3149
SELECT - + CAST ( + 88 AS INTEGER ) * + 81 - 56 AS col1, + MAX ( ALL - + 18 ) / - 40
----
-7184
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3150
SELECT MAX( CAST( NULL AS DECIMAL ) ) + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT MAX ( CAST ( NULL AS REAL ) ) + - 73 AS col1
----
NULL

query I rowsort
SELECT 49 + - 76
----
-27

query II rowsort
SELECT DISTINCT - 8 col1, 73
----
-8
73

query I rowsort
SELECT - + 52 * - ( - 6 ) + - 11 + - 3
----
-326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT + CAST( - - 91 AS SIGNED ) * - 48 + - 28
----
-4396

skipif mysql # not compatible
query I rowsort label-3154
SELECT + CAST ( - - 91 AS INTEGER ) * - 48 + - 28
----
-4396

query I rowsort
SELECT 48 * 27 + - 73 + + 55 * ( + - 8 ) + 70
----
853

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

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MIN ( - 79 )
----
79

query I rowsort
SELECT ALL - 4 * - 39 * 0
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 35, - - ( - 56 ) + + 20 + - - 56 ) - 19
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + ( - 11 ) DIV + - 49
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + ( - 11 ) / + - 49
----
0

query I rowsort
SELECT + - 51 * - CASE - + 84 WHEN + + 79 THEN - + 14 END * + 15 + - 9 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - MAX( 79 ) * COALESCE ( - + 85, 38 ) - + 45 * - 19 AS col2
----
7570

skipif mysql # not compatible
query I rowsort label-3161
SELECT - MAX ( 79 ) * COALESCE ( - + 85, 38 ) - + 45 * - 19 AS col2
----
7570

query I rowsort
SELECT - 37 * - 13 + 72 * - - ( 70 ) * + - 86 col2
----
-432959

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT + 73 DIV 65 col2
----
1

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 73 / 65 col2
----
1

query I rowsort
SELECT - - COALESCE ( - 18, + 22 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT 78 + - COALESCE ( 56, 78 + + + CAST( + 88 AS SIGNED ), + 11 + + 13 ) * - CASE ( + ( - 29 ) ) WHEN CASE 64 WHEN 35 THEN 4 + + COUNT( * ) WHEN + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + ( 68 ) + SUM( 87 ) THEN + 11 WHEN MAX( ALL 88 ) THEN - ( - 34 ) + 61 END * 33 THEN 89 WHEN - 4 - - 59 THEN COUNT( * ) / 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT 78 + - COALESCE ( 56, 78 + + + CAST ( + 88 AS INTEGER ), + 11 + + 13 ) * - CASE ( + ( - 29 ) ) WHEN CASE 64 WHEN 35 THEN 4 + + COUNT ( * ) WHEN + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + ( 68 ) + SUM ( 87 ) THEN + 11 WHEN MAX ( ALL 88 ) THEN - ( - 34 ) + 61 END * 33 THEN 89 WHEN - 4 - - 59 THEN COUNT ( * ) / 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT COUNT( * ) * CASE + MIN( DISTINCT + 76 ) WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + 8 + + 24 ELSE NULL END * COALESCE ( - 2, + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT COUNT ( * ) * CASE + MIN ( DISTINCT + 76 ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + 8 + + 24 ELSE NULL END * COALESCE ( - 2, + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT 10 * COUNT( * ) * + - 55 col1
----
-550

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT 10 * COUNT ( * ) * + - 55 col1
----
-550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT DISTINCT 69 + - 82 * - CASE - 45 WHEN - - 57 DIV + 12 THEN NULL WHEN - 49 * + 85 THEN NULL ELSE - 83 DIV - COUNT( * ) + + ( - 88 ) END + + 50
----
-291

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT 69 + - 82 * - CASE - 45 WHEN - - 57 / + 12 THEN NULL WHEN - 49 * + 85 THEN NULL ELSE - 83 / - COUNT ( * ) + + ( - 88 ) END + + 50
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 77 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3169
SELECT 77 / - 43 AS col2
----
-1

query II rowsort
SELECT ALL 4 + - 32 AS col0, 31 + - 2 AS col1
----
-28
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ALL 22 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 22 / + 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3172
SELECT DISTINCT - 84 + - + CAST( NULL AS SIGNED ) AS col2, - ( + 47 ) - + COUNT( * ) + - 20 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-3172
SELECT DISTINCT - 84 + - + CAST ( NULL AS INTEGER ) AS col2, - ( + 47 ) - + COUNT ( * ) + - 20 AS col2
----
NULL
-68

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

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + COUNT ( * ) + - + 95 AS col0
----
-94

query I rowsort
SELECT ALL - 66 + + + 49 * + 15 AS col0
----
669

query I rowsort
SELECT DISTINCT 21 + - 44 AS col0
----
-23

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

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

query I rowsort
SELECT DISTINCT + 21 + - 0 * - 35 * + - 84 * + 13 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT COUNT( * ) + - 48 + - - NULLIF ( - 13, CASE ( - CAST( - 81 AS SIGNED ) ) WHEN ( 69 ) * 68 THEN + 27 * - 0 + - ( + NULLIF ( 81, - 16 + 40 ) ) ELSE 5 END ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT COUNT ( * ) + - 48 + - - NULLIF ( - 13, CASE ( - CAST ( - 81 AS INTEGER ) ) WHEN ( 69 ) * 68 THEN + 27 * - 0 + - ( + NULLIF ( 81, - 16 + 40 ) ) ELSE 5 END ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT - CASE - - 17 WHEN + 35 THEN + 61 WHEN - - 92 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) / - ( - 95 ) + + ( 41 + 13 ) THEN NULL ELSE NULL END + COUNT( + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT - CASE - - 17 WHEN + 35 THEN + 61 WHEN - - 92 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - ( - 95 ) + + ( 41 + 13 ) THEN NULL ELSE NULL END + COUNT ( + 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - + ( - COALESCE ( - MIN( DISTINCT + 98 ), 32 * + 35 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - + ( - COALESCE ( - MIN ( DISTINCT + 98 ), 32 * + 35 ) )
----
-98

query I rowsort
SELECT - 80 * + 72 + - 56 - + 89 AS col0
----
-5905

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT - - COUNT( * ) * 48 - - - 36 + + 98 + + - ( 41 )
----
69

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - - COUNT ( * ) * 48 - - - 36 + + 98 + + - ( 41 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT 63 DIV - + COUNT( * ) + 62 DIV - - 43 + 1 * + - 54 + - + 62 DIV + 15
----
-120

skipif mysql # not compatible
query I rowsort label-3183
SELECT 63 / - + COUNT ( * ) + 62 / - - 43 + 1 * + - 54 + - + 62 / + 15
----
-120

query I rowsort
SELECT ALL - + 55 * 90 - + - 93 * + + 67
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL + CASE - ( + COUNT( ALL 13 ) ) WHEN - 36 - + - 8 + - + 67 * - 7 THEN 35 * + 10 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + CASE - ( + COUNT ( ALL 13 ) ) WHEN - 36 - + - 8 + - + 67 * - 7 THEN 35 * + 10 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT + 10 / - 90 - - - CAST( - MAX( ALL - 1 ) AS SIGNED ) + + - NULLIF ( + - ( CASE + CASE + SUM( DISTINCT 87 ) WHEN - 17 / 29 THEN + 47 WHEN - 3 THEN NULL ELSE NULL END WHEN 73 THEN 15 * COUNT( * ) ELSE NULL END ), - 28 ) * - 90 * + 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 10 / - 90 - - - CAST ( - MAX ( ALL - 1 ) AS INTEGER ) + + - NULLIF ( + - ( CASE + CASE + SUM ( DISTINCT 87 ) WHEN - 17 / 29 THEN + 47 WHEN - 3 THEN NULL ELSE NULL END WHEN 73 THEN 15 * COUNT ( * ) ELSE NULL END ), - 28 ) * - 90 * + 40 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT + 55 DIV + 45 + + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + 55 / + 45 + + 41 AS col2
----
42

query I rowsort
SELECT ALL - 90 * + 96 + + 8 - + 26 AS col2
----
-8658

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + ( + 74 ) * - - SUM( 93 )
----
6882

skipif mysql # not compatible
query I rowsort label-3189
SELECT + ( + 74 ) * - - SUM ( 93 )
----
6882

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - 26 * - 25 * + - 48 AS col0, - COUNT( * ) * 30 AS col2
----
-31200
-30

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 26 * - 25 * + - 48 AS col0, - COUNT ( * ) * 30 AS col2
----
-31200
-30

query I rowsort
SELECT + 96 * - + 35
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT 27 )
----
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT 27 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT + COALESCE ( - 40, - 6 DIV 59 DIV - COUNT( * ) * 70 - + 77, - 61 * + 8, - COUNT( * ) * + COUNT( * ) - - 84 ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT + COALESCE ( - 40, - 6 / 59 / - COUNT ( * ) * 70 - + 77, - 61 * + 8, - COUNT ( * ) * + COUNT ( * ) - - 84 ) / 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT 83 * 38 + - COUNT( * ) + - - 16 + + MAX( DISTINCT - 29 ) + + 33 + + 29 * 95 * 95 * MAX( DISTINCT ( + 39 ) + - 56 ) col1
----
-4446152

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT 83 * 38 + - COUNT ( * ) + - - 16 + + MAX ( DISTINCT - 29 ) + + 33 + + 29 * 95 * 95 * MAX ( DISTINCT ( + 39 ) + - 56 ) col1
----
-4446152

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - + ( - MAX( - 78 ) ) * 63 + 88 + + 63 * + - 26
----
-6464

skipif mysql # not compatible
query I rowsort label-3195
SELECT - + ( - MAX ( - 78 ) ) * 63 + 88 + + 63 * + - 26
----
-6464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3196
SELECT + + 86 * NULLIF ( - + 57, - + COUNT( * ) ) - - CASE - 2 WHEN - + 0 THEN CAST( NULL AS DECIMAL ) WHEN - ( - CAST( NULL AS DECIMAL ) ) THEN NULL ELSE NULL END + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + 86 * NULLIF ( - + 57, - + COUNT ( * ) ) - - CASE - 2 WHEN - + 0 THEN CAST ( NULL AS REAL ) WHEN - ( - CAST ( NULL AS REAL ) ) THEN NULL ELSE NULL END + 81 AS col1
----
NULL

query II rowsort
SELECT ALL + - ( + 67 ), + 42 AS col0
----
-67
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL 28 + - COUNT( * ) * - + 88
----
116

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 28 + - COUNT ( * ) * - + 88
----
116

query I rowsort
SELECT - COALESCE ( + 62, - 39, + 37 ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT - COALESCE ( + 35, + 50 * - 9, - CAST( 5 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-3200
SELECT - COALESCE ( + 35, + 50 * - 9, - CAST ( 5 AS INTEGER ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + MAX( ALL + 74 ) + 79
----
153

skipif mysql # not compatible
query I rowsort label-3201
SELECT + MAX ( ALL + 74 ) + 79
----
153

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3203
SELECT + 63 + + 31 * 15 AS col0, - 39 + + + CAST( NULL AS DECIMAL )
----
528
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT + 63 + + 31 * 15 AS col0, - 39 + + + CAST ( NULL AS REAL )
----
528
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3204
SELECT - COALESCE ( + - 93, - CAST( 76 AS SIGNED ) ) AS col1, + COALESCE ( + COUNT( * ), - 51 DIV + CAST( 22 AS SIGNED ) * - 15 + - ( + 55 - + ( 22 ) ) )
----
93
1

skipif mysql # not compatible
query II rowsort label-3204
SELECT - COALESCE ( + - 93, - CAST ( 76 AS INTEGER ) ) AS col1, + COALESCE ( + COUNT ( * ), - 51 / + CAST ( 22 AS INTEGER ) * - 15 + - ( + 55 - + ( 22 ) ) )
----
93
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT - 45 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 45 / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT + ( CAST( + COALESCE ( AVG ( - + 61 ), 14 ) AS SIGNED ) ) + + - 11
----
-72

skipif mysql # not compatible
query I rowsort label-3206
SELECT + ( CAST ( + COALESCE ( AVG ( - + 61 ), 14 ) AS INTEGER ) ) + + - 11
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL MIN( ALL - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL MIN ( ALL - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT 80 + + 61 + - + 19 * - 67 * - MIN( ALL 84 ) AS col1
----
-106791

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 80 + + 61 + - + 19 * - 67 * - MIN ( ALL 84 ) AS col1
----
-106791

query I rowsort
SELECT - 85 + + 53
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL CASE - 37 WHEN - 58 THEN 90 - + 98 - + - 13 + + - 56 ELSE + 61 * CASE - COUNT( - 13 ) WHEN 61 + 40 * - 3 THEN - COUNT( * ) + - 73 / - 62 WHEN - ( COALESCE ( 26, 68 ) ) + - MAX( 0 ) THEN - 68 ELSE NULL END - + NULLIF ( 63, 8 ) * 68 END / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CASE - 37 WHEN - 58 THEN 90 - + 98 - + - 13 + + - 56 ELSE + 61 * CASE - COUNT ( - 13 ) WHEN 61 + 40 * - 3 THEN - COUNT ( * ) + - 73 / - 62 WHEN - ( COALESCE ( 26, 68 ) ) + - MAX ( 0 ) THEN - 68 ELSE NULL END - + NULLIF ( 63, 8 ) * 68 END / + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3211
SELECT + CAST( + 42 AS SIGNED ) DIV - + 38 AS col1, NULLIF ( - - 57, + SUM( 84 ) ) col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-3211
SELECT + CAST ( + 42 AS INTEGER ) / - + 38 AS col1, NULLIF ( - - 57, + SUM ( 84 ) ) col1
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + - 72 * SUM( + - 34 ) * + 23 * 55 AS col1
----
3096720

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - 72 * SUM ( + - 34 ) * + 23 * 55 AS col1
----
3096720

query II rowsort
SELECT - - ( + ( - 53 ) ) + - 44 AS col2, - 35
----
-97
-35

query II rowsort
SELECT ALL - 3 - + 57 * - - 44, + 60 AS col1
----
-2511
60

query I rowsort
SELECT COALESCE ( - - 23, 35 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3216
SELECT ALL ( + MAX( ALL - - 97 ) ) AS col1, - 69 + + - 99
----
97
-168

skipif mysql # not compatible
query II rowsort label-3216
SELECT ALL ( + MAX ( ALL - - 97 ) ) AS col1, - 69 + + - 99
----
97
-168

query II rowsort
SELECT ALL + - 70, 97 * + 45 col0
----
-70
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT + 9 * - CASE + CASE - 67 WHEN - 29 * + COUNT( * ) * + + 8 * - 39 THEN + ( - 43 ) * - 47 WHEN COUNT( * ) * - CAST( NULL AS SIGNED ) THEN NULL END WHEN 58 * - NULLIF ( - 39 * 32, CAST( 10 AS SIGNED ) ) + - 47 THEN 54 ELSE 86 END AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + 9 * - CASE + CASE - 67 WHEN - 29 * + COUNT ( * ) * + + 8 * - 39 THEN + ( - 43 ) * - 47 WHEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN NULL END WHEN 58 * - NULLIF ( - 39 * 32, CAST ( 10 AS INTEGER ) ) + - 47 THEN 54 ELSE 86 END AS col2
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT - 41 DIV + 33 + 13 col1
----
12

skipif mysql # not compatible
query I rowsort label-3219
SELECT - 41 / + 33 + 13 col1
----
12

query I rowsort
SELECT - - 70 + 15 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + NULLIF ( 77, - - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-3221
SELECT + NULLIF ( 77, - - COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3222
SELECT + 16 * + ( - 18 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-3222
SELECT + 16 * + ( - 18 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-288
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3223
SELECT - + 13 * - 66 * COUNT( * ) + + + 50 DIV - MAX( - CAST( + + 68 AS SIGNED ) )
----
858

skipif mysql # not compatible
query I rowsort label-3223
SELECT - + 13 * - 66 * COUNT ( * ) + + + 50 / - MAX ( - CAST ( + + 68 AS INTEGER ) )
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL SUM( DISTINCT - 43 ) * + 37 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL SUM ( DISTINCT - 43 ) * + 37 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 65 * 75 + 65 + - 97 + 14
----
-4893

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - ( + + 85 ) + + - COUNT( * ) + ( + ( + 92 ) ) * - MAX( DISTINCT + + 51 ) col1
----
-4778

skipif mysql # not compatible
query I rowsort label-3226
SELECT - ( + + 85 ) + + - COUNT ( * ) + ( + ( + 92 ) ) * - MAX ( DISTINCT + + 51 ) col1
----
-4778

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL 64 * - - 6 + + 34 + + 60 + + MIN( + 42 ) * + + 67 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL 64 * - - 6 + + 34 + + 60 + + MIN ( + 42 ) * + + 67 AS col1
----
3292

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT DISTINCT + 56 * COUNT( * ), - 30 col1
----
56
-30

skipif mysql # not compatible
query II rowsort label-3228
SELECT DISTINCT + 56 * COUNT ( * ), - 30 col1
----
56
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + COUNT( * ) + MAX( - + 45 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3229
SELECT + COUNT ( * ) + MAX ( - + 45 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT - 87 DIV + 91 * 96
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT - 87 / + 91 * 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - MAX( ALL + + 53 ) * + ( + ( SUM( + ( - + 73 ) ) ) ) + 25 AS col2
----
3894

skipif mysql # not compatible
query I rowsort label-3231
SELECT - MAX ( ALL + + 53 ) * + ( + ( SUM ( + ( - + 73 ) ) ) ) + 25 AS col2
----
3894

query II rowsort
SELECT ALL ( - + 26 ) AS col2, 98 AS col2
----
-26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - COALESCE ( - + 6, + COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3233
SELECT - COALESCE ( - + 6, + COUNT ( * ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT 88 * + ( - + NULLIF ( MIN( DISTINCT - 65 ), 58 + 28 / + 74 ) ) + 42 col2
----
5762

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 88 * + ( - + NULLIF ( MIN ( DISTINCT - 65 ), 58 + 28 / + 74 ) ) + 42 col2
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - ( + + CASE - 99 WHEN - 69 THEN - - SUM( ALL - 48 ) ELSE NULL END ) - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT - ( + + CASE - 99 WHEN - 69 THEN - - SUM ( ALL - 48 ) ELSE NULL END ) - + 15
----
NULL

query II rowsort
SELECT + 3 * + + 20 AS col0, + 63 + + 94 AS col1
----
60
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - CASE + + 47 WHEN - + 16 + 77 + - - 23 THEN NULL WHEN - 73 * - ( 4 ) * - + 5 + COUNT( * ) THEN - COUNT( * ) + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT - CASE + + 47 WHEN - + 16 + 77 + - - 23 THEN NULL WHEN - 73 * - ( 4 ) * - + 5 + COUNT ( * ) THEN - COUNT ( * ) + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT NULLIF ( + + 0, + 83 + + + 17 / 53 ) - + COUNT( * ) + + + 41 + + 50 * + 61
----
3090

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT NULLIF ( + + 0, + 83 + + + 17 / 53 ) - + COUNT ( * ) + + + 41 + + 50 * + 61
----
3090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT ALL ( - COUNT( * ) ) - + 91 - - 51 DIV COUNT( * ) * 19 * - 75 * + + 67
----
-4869317

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL ( - COUNT ( * ) ) - + 91 - - 51 / COUNT ( * ) * 19 * - 75 * + + 67
----
-4869317

query I rowsort
SELECT 85 * - + ( - + 97 ) AS col2
----
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT 88 - CAST( - 42 AS SIGNED ) + + - 17 * + 71 AS col2
----
-1077

skipif mysql # not compatible
query I rowsort label-3241
SELECT 88 - CAST ( - 42 AS INTEGER ) + + - 17 * + 71 AS col2
----
-1077

query I rowsort
SELECT + 24 + + - 86 AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL - CAST( - - 56 AS SIGNED ) * 62
----
-3472

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - CAST ( - - 56 AS INTEGER ) * 62
----
-3472

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT 13 + - 88 AS col0, 5 * - COUNT( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT( * ) AS col0
----
-75
-6

skipif mysql # not compatible
query II rowsort label-3244
SELECT 13 + - 88 AS col0, 5 * - COUNT ( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT ( * ) AS col0
----
-75
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3245
SELECT + NULLIF ( + CAST( + 57 AS SIGNED ), + 41 ) + - 69 - 10 DIV + 85 + 22 * 97
----
2122

skipif mysql # not compatible
query I rowsort label-3245
SELECT + NULLIF ( + CAST ( + 57 AS INTEGER ), + 41 ) + - 69 - 10 / + 85 + 22 * 97
----
2122

query I rowsort
SELECT - 17 * 65
----
-1105

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + 17 * - - 55 + + 15 + - 74 DIV 6 col0
----
938

skipif mysql # not compatible
query I rowsort label-3247
SELECT + 17 * - - 55 + + 15 + - 74 / 6 col0
----
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3248
SELECT ALL ( - - 19 ) + - + COUNT( DISTINCT - 93 ), - NULLIF ( - CAST( NULL AS DECIMAL ), + CAST( + 51 AS SIGNED ) ) * CASE + 88 WHEN 74 THEN 32 END * + 84 AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL ( - - 19 ) + - + COUNT ( DISTINCT - 93 ), - NULLIF ( - CAST ( NULL AS REAL ), + CAST ( + 51 AS INTEGER ) ) * CASE + 88 WHEN 74 THEN 32 END * + 84 AS col0
----
18
NULL

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

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

query I rowsort
SELECT ALL + 53 + + - 24 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - MAX( DISTINCT + - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - MAX ( DISTINCT + - 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT ALL - 73 + + - 19, - 92 * CASE - 40 WHEN + COUNT( * ) THEN NULL ELSE 84 END * ( + NULLIF ( + 99, 93 + + 60 / + COUNT( ALL 27 ) ) ) - SUM( 15 ) AS col0
----
-92
-765087

skipif mysql # not compatible
query II rowsort label-3252
SELECT ALL - 73 + + - 19, - 92 * CASE - 40 WHEN + COUNT ( * ) THEN NULL ELSE 84 END * ( + NULLIF ( + 99, 93 + + 60 / + COUNT ( ALL 27 ) ) ) - SUM ( 15 ) AS col0
----
-92
-765087

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

skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( NULL AS INTEGER ) - - 35 + 13
----
NULL

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

query II rowsort
SELECT 24, 93 + - - 91 AS col2
----
24
184

query II rowsort
SELECT ALL - 22 AS col0, - ( - + 17 ) AS col2
----
-22
17

query I rowsort
SELECT DISTINCT + 51 + - 26 + + 20
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT 3 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT 3 / + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL - COUNT( * ) + + 24 + + 61 + + 70 * 31 + CAST( + - 35 AS SIGNED ) + + 66 * - 27
----
437

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - COUNT ( * ) + + 24 + + 61 + + 70 * 31 + CAST ( + - 35 AS INTEGER ) + + 66 * - 27
----
437

query I rowsort
SELECT 73 * + 59 AS col1
----
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT 4 + + CASE 39 WHEN - ( - - 40 ) - + ( - 86 ) * - - ( + COALESCE ( 58, COUNT( * ), COUNT( * ) ) ) + 25 THEN NULL WHEN - NULLIF ( - 64, 39 ) + 70 THEN NULL ELSE + COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT 4 + + CASE 39 WHEN - ( - - 40 ) - + ( - 86 ) * - - ( + COALESCE ( 58, COUNT ( * ), COUNT ( * ) ) ) + 25 THEN NULL WHEN - NULLIF ( - 64, 39 ) + 70 THEN NULL ELSE + COUNT ( * ) END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - CASE 74 WHEN + 52 * COUNT( * ) - - 51 THEN NULL ELSE - 47 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - CASE 74 WHEN + 52 * COUNT ( * ) - - 51 THEN NULL ELSE - 47 END AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT 92 - - CASE - + 15 WHEN + CASE - - 19 WHEN + - 40 THEN + AVG ( DISTINCT + 9 ) - + - 26 + - 97 WHEN + NULLIF ( + CASE WHEN NOT - 18 BETWEEN 8 + 64 AND ( NULL ) THEN 97 * + COUNT( DISTINCT 68 ) ELSE - 34 END, + 94 ) * + 83 + - 79 THEN NULL WHEN 8 - + 43 THEN NULL END * - 19 THEN CAST( + COUNT( * ) AS SIGNED ) WHEN + 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT 92 - - CASE - + 15 WHEN + CASE - - 19 WHEN + - 40 THEN + AVG ( DISTINCT + 9 ) - + - 26 + - 97 WHEN + NULLIF ( + CASE WHEN NOT - 18 BETWEEN 8 + 64 AND ( NULL ) THEN 97 * + COUNT ( DISTINCT 68 ) ELSE - 34 END, + 94 ) * + 83 + - 79 THEN NULL WHEN 8 - + 43 THEN NULL END * - 19 THEN CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 6 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL - 34 - + - 61 + - 31 + - - 12 * + + COUNT( * ) + - CASE - - 18 WHEN 82 * + COUNT( * ) * - - 44 / - 97 THEN + 93 WHEN ( 59 ) THEN - 74 ELSE + CASE - 41 WHEN + COUNT( * ) THEN 66 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - 34 - + - 61 + - 31 + - - 12 * + + COUNT ( * ) + - CASE - - 18 WHEN 82 * + COUNT ( * ) * - - 44 / - 97 THEN + 93 WHEN ( 59 ) THEN - 74 ELSE + CASE - 41 WHEN + COUNT ( * ) THEN 66 END END
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 21
----
-1302

query I rowsort
SELECT DISTINCT 80 * + + 90 AS col1
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - COALESCE ( + - 2, + + 52 * - SUM( + 76 ) * - - 37 ) * - 29 * - 35 + + - 94 + + 75 - 93 * + ( 26 )
----
-407

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COALESCE ( + - 2, + + 52 * - SUM ( + 76 ) * - - 37 ) * - 29 * - 35 + + - 94 + + 75 - 93 * + ( 26 )
----
-407

query I rowsort
SELECT 82 + - CASE 80 WHEN + 15 THEN + 51 + - + 56 WHEN - 39 + + 28 + - 8 / ( + 3 ) * 4 THEN NULL END / 2
----
NULL

query III rowsort
SELECT ALL 75 AS col0, - 7 + + + 37 AS col2, - + 71 AS col0
----
75
30
-71

query I rowsort
SELECT 92 + + 65
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT COUNT( * ) - - + 92 * 35 DIV - + COALESCE ( - + 53, + 48, - AVG ( + 77 ) * - 79 + CASE - 44 WHEN NULLIF ( - COUNT( DISTINCT 19 ), - 81 * COUNT( * ) ) * - ( 25 * + 65 ) THEN ( 45 ) * - 79 END + + 53 * 91 ) + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) - - + 92 * 35 / - + COALESCE ( - + 53, + 48, - AVG ( + 77 ) * - 79 + CASE - 44 WHEN NULLIF ( - COUNT ( DISTINCT 19 ), - 81 * COUNT ( * ) ) * - ( 25 * + 65 ) THEN ( 45 ) * - 79 END + + 53 * 91 ) + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT 44 * 65 * - 62 + + - 68
----
-177388

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 8 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 8 / - + 35
----
0

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

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

query I rowsort
SELECT 80 * 96 AS col1
----
7680

query II rowsort
SELECT 8 col1, 83
----
8
83

query I rowsort
SELECT DISTINCT 23 + 31
----
54

query II rowsort
SELECT - - 28 AS col1, 58 + + + 75
----
28
133

query I rowsort
SELECT ALL 32 * + 26
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL ( COUNT( * ) ) * - + 83 * - 11 + - - 30 + - 91
----
852

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL ( COUNT ( * ) ) * - + 83 * - 11 + - - 30 + - 91
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) * - 25 + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) * - 25 + 58 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - - COUNT ( * ) / - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT 27 DIV + + 24 + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT 27 / + + 24 + 2 AS col2
----
3

query I rowsort
SELECT 22 * - 43 - 32 AS col1
----
-978

query I rowsort
SELECT DISTINCT + 83 * + + 73 + - 29 * 16
----
5595

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT ALL 58 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL 58 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT MIN( DISTINCT - - 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3287
SELECT MIN ( DISTINCT - - 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT COUNT( DISTINCT + + 54 ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3288
SELECT COUNT ( DISTINCT + + 54 ) + - 38 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + SUM( - ( + 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3289
SELECT + SUM ( - ( + 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - COALESCE ( - 50, + 62, - + 1 - - + 52, + COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - COALESCE ( - 50, + 62, - + 1 - - + 52, + COUNT ( * ) ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3291
SELECT COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) * - + 57 DIV + ( - NULLIF ( + 75, NULLIF ( - - 91, - 70 ) * + + 98 ) ) * 91, COALESCE ( 29, 29 ) - 43 ) * - 55 + 95
----
40

skipif mysql # not compatible
query I rowsort label-3291
SELECT COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - + 57 / + ( - NULLIF ( + 75, NULLIF ( - - 91, - 70 ) * + + 98 ) ) * 91, COALESCE ( 29, 29 ) - 43 ) * - 55 + 95
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT MIN( ALL + 95 ), + 66 * - 25 * COUNT( * ) col2
----
95
-1650

skipif mysql # not compatible
query II rowsort label-3292
SELECT MIN ( ALL + 95 ), + 66 * - 25 * COUNT ( * ) col2
----
95
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + 99 / + + 50 + - 11 * + CASE - 86 WHEN + COUNT( * ) THEN + 22 WHEN 3 THEN NULL ELSE NULL END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + 99 / + + 50 + - 11 * + CASE - 86 WHEN + COUNT ( * ) THEN + 22 WHEN 3 THEN NULL ELSE NULL END * - 27
----
NULL

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

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

query I rowsort
SELECT ALL - 2 - - 47
----
45

query I rowsort
SELECT 8 * - 53 AS col0
----
-424

query I rowsort
SELECT DISTINCT 33 * 45 * 75 AS col0
----
111375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3298
SELECT 88, - 96 * - COALESCE ( + + 60, - - 55 * + COUNT( * ) * - 31 + - CAST( NULL AS SIGNED ), + 66 ) AS col2
----
88
5760

skipif mysql # not compatible
query II rowsort label-3298
SELECT 88, - 96 * - COALESCE ( + + 60, - - 55 * + COUNT ( * ) * - 31 + - CAST ( NULL AS INTEGER ), + 66 ) AS col2
----
88
5760

query I rowsort
SELECT 39 * - + ( - 55 ) + + 20 AS col0
----
2165

query I rowsort
SELECT 98 * + - 10
----
-980

query II rowsort
SELECT 96 AS col0, 70 AS col0
----
96
70

query II rowsort
SELECT - 56 + - 33 + 99 * - 56 - 42 * + 80 AS col2, 75
----
-8993
75

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

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

query II rowsort
SELECT ALL 32 AS col0, 43 AS col1
----
32
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL CASE + 18 WHEN + - NULLIF ( + - CASE - - MIN( + - 95 ) WHEN - - 62 THEN NULL ELSE - 33 * - CAST( NULL AS SIGNED ) + NULLIF ( - 98, ( - AVG ( - 92 ) ) * + CAST( NULL AS SIGNED ) ) END, + CAST( + ( + SUM( 69 ) ) AS SIGNED ) + + MIN( - 75 ) ) + 34 THEN 13 * - 51 + 9 WHEN - 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL CASE + 18 WHEN + - NULLIF ( + - CASE - - MIN ( + - 95 ) WHEN - - 62 THEN NULL ELSE - 33 * - CAST ( NULL AS INTEGER ) + NULLIF ( - 98, ( - AVG ( - 92 ) ) * + CAST ( NULL AS INTEGER ) ) END, + CAST ( + ( + SUM ( 69 ) ) AS INTEGER ) + + MIN ( - 75 ) ) + 34 THEN 13 * - 51 + 9 WHEN - 10 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL CASE + 73 WHEN - 98 + + + ( MAX( DISTINCT - 26 ) ) - 35 + + - COUNT( * ) * 68 THEN NULL WHEN + 34 THEN 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL CASE + 73 WHEN - 98 + + + ( MAX ( DISTINCT - 26 ) ) - 35 + + - COUNT ( * ) * 68 THEN NULL WHEN + 34 THEN 0 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3307
SELECT ALL - CAST( NULL AS SIGNED ) / + - 87, CASE - 94 WHEN 34 THEN 19 END * 65 * - + 63
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3307
SELECT ALL - CAST ( NULL AS INTEGER ) / + - 87, CASE - 94 WHEN 34 THEN 19 END * 65 * - + 63
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3308
SELECT - 63 - - COALESCE ( - 12, 30 ) + + 21 * - - 41 AS col1, - 49 * - CAST( + ( CAST( NULLIF ( + 53, - 63 ) AS SIGNED ) ) AS SIGNED ) AS col2
----
786
2597

skipif mysql # not compatible
query II rowsort label-3308
SELECT - 63 - - COALESCE ( - 12, 30 ) + + 21 * - - 41 AS col1, - 49 * - CAST ( + ( CAST ( NULLIF ( + 53, - 63 ) AS INTEGER ) ) AS INTEGER ) AS col2
----
786
2597

query I rowsort
SELECT - - 94 * - 80
----
-7520

query I rowsort
SELECT ALL + 89 * + + 18
----
1602

query I rowsort
SELECT - 90 * 32 - 95
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - + COUNT( * ) + - ( 67 ) + + 79 + + + 75 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - + COUNT ( * ) + - ( 67 ) + + 79 + + + 75 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + COUNT( * ) + + 71 * - 79 AS col2
----
-5608

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + COUNT ( * ) + + 71 * - 79 AS col2
----
-5608

query I rowsort
SELECT - - 33 - + 7
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT ALL 38 AS col1, MIN( + - 89 ) col2
----
38
-89

skipif mysql # not compatible
query II rowsort label-3315
SELECT ALL 38 AS col1, MIN ( + - 89 ) col2
----
38
-89

query I rowsort
SELECT - + 59 - + - 77 + + 23
----
41

query II rowsort
SELECT ALL 99 AS col2, 2 - + + 28 + + COALESCE ( + 61, - 95, - 56, + 0 ) AS col2
----
99
35

query I rowsort
SELECT ALL - 37 + + + 74 + - + 71 * - + 91 * - - 34 AS col2
----
219711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3319
SELECT - 61, - CAST( NULL AS SIGNED ) + + COALESCE ( + 0, - + SUM( + 83 ) * 73 * COUNT( * ) ) * - NULLIF ( + 82, 37 * 54 ) AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3319
SELECT - 61, - CAST ( NULL AS INTEGER ) + + COALESCE ( + 0, - + SUM ( + 83 ) * 73 * COUNT ( * ) ) * - NULLIF ( + 82, 37 * 54 ) AS col0
----
-61
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT( * ) + + 34 col1
----
72
-31

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT ( * ) + + 34 col1
----
72
-31

query I rowsort
SELECT DISTINCT - - 0 + + - 62 + - 8
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT - 93 + - 15 - - + 46 DIV 21
----
-106

skipif mysql # not compatible
query I rowsort label-3322
SELECT - 93 + - 15 - - + 46 / 21
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3323
SELECT DISTINCT - AVG ( ALL - 18 ) * COALESCE ( - - 11, 56 / + 92 * + MAX( 59 ) * 79 / - 10 ) + CASE + 49 WHEN CASE WHEN NOT 10 >= NULL THEN NULL ELSE 60 - + CAST( NULL AS SIGNED ) END THEN - MAX( CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS DECIMAL ) END - 64 * SUM( DISTINCT + 13 + - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - AVG ( ALL - 18 ) * COALESCE ( - - 11, 56 / + 92 * + MAX ( 59 ) * 79 / - 10 ) + CASE + 49 WHEN CASE WHEN NOT 10 >= NULL THEN NULL ELSE 60 - + CAST ( NULL AS INTEGER ) END THEN - MAX ( CAST ( NULL AS REAL ) ) / + CAST ( NULL AS REAL ) END - 64 * SUM ( DISTINCT + 13 + - 81 ) AS col2
----
NULL

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

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

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

query II rowsort
SELECT ALL 52 * - 6 * + 15 AS col1, 3 * + - 66 col1
----
-4680
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT 33 * - - 17 * - - MAX( + 82 ) - - - 69
----
45933

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT 33 * - - 17 * - - MAX ( + 82 ) - - - 69
----
45933

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + CASE 55 WHEN + 72 * - 20 THEN NULL WHEN SUM( 62 ) * - - 11 - 92 THEN 22 WHEN + 81 * + 86 + NULLIF ( + 19, - COUNT( * ) ) + 19 THEN + 99 * 73 + + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT + CASE 55 WHEN + 72 * - 20 THEN NULL WHEN SUM ( 62 ) * - - 11 - 92 THEN 22 WHEN + 81 * + 86 + NULLIF ( + 19, - COUNT ( * ) ) + 19 THEN + 99 * 73 + + 61 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 98 * - 9 AS col1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL 16 * + NULLIF ( COUNT( * ), + 32 * - 52 * + + 56 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 16 * + NULLIF ( COUNT ( * ), + 32 * - 52 * + + 56 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT CASE + MIN( ALL - - ( 45 ) ) WHEN 56 THEN NULL ELSE 32 + - - ( + 84 ) + + 97 END AS col1
----
213

skipif mysql # not compatible
query I rowsort label-3331
SELECT CASE + MIN ( ALL - - ( 45 ) ) WHEN 56 THEN NULL ELSE 32 + - - ( + 84 ) + + 97 END AS col1
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3332
SELECT CASE + + 1 WHEN - 66 THEN - - COALESCE ( + 75, NULLIF ( - CAST( + + CASE - ( CAST( NULL AS SIGNED ) ) WHEN - 72 + + + 75 THEN 93 END AS DECIMAL ), - ( COUNT( * ) ) ) + 66 ) + 27 WHEN - 26 THEN 12 * + AVG ( ALL CASE 93 WHEN - 96 * 58 + 84 * - 18 THEN NULL WHEN - 51 THEN - 43 END ) + + 95 / 8 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT CASE + + 1 WHEN - 66 THEN - - COALESCE ( + 75, NULLIF ( - CAST ( + + CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - 72 + + + 75 THEN 93 END AS REAL ), - ( COUNT ( * ) ) ) + 66 ) + 27 WHEN - 26 THEN 12 * + AVG ( ALL CASE 93 WHEN - 96 * 58 + 84 * - 18 THEN NULL WHEN - 51 THEN - 43 END ) + + 95 / 8 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3333
SELECT ALL SUM( ALL - 48 ) DIV 30, - 22 * - CAST( NULL AS SIGNED ) + + 27 + - 87 * + - COUNT( * ) + + + 29 * - + 70 * + 46 DIV 28 * - AVG ( 17 * 88 ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL SUM ( ALL - 48 ) / 30, - 22 * - CAST ( NULL AS INTEGER ) + + 27 + - 87 * + - COUNT ( * ) + + + 29 * - + 70 * + 46 / 28 * - AVG ( 17 * 88 ) col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT CASE - 43 WHEN - 96 + + 28 + NULLIF ( + COUNT( * ), + - 44 / + 83 * - SUM( + 71 ) + CAST( NULL AS SIGNED ) ) + + 64 * COUNT( * ) THEN - COALESCE ( + 64, + 14, - ( 68 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT CASE - 43 WHEN - 96 + + 28 + NULLIF ( + COUNT ( * ), + - 44 / + 83 * - SUM ( + 71 ) + CAST ( NULL AS INTEGER ) ) + + 64 * COUNT ( * ) THEN - COALESCE ( + 64, + 14, - ( 68 ) ) END AS col2
----
NULL

query I rowsort
SELECT 71 * + COALESCE ( - 34, + 49, ( + 48 ) ) - + + 90 + 34 * + 85 - 35 + + 77
----
428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3336
SELECT ALL ( - - 67 ) * 90 / - 99 + + + CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL ( - - 67 ) * 90 / - 99 + + + CAST ( NULL AS REAL ) + + 60
----
NULL

query I rowsort
SELECT + 44 - - 76 + - 66 * 41
----
-2586

query I rowsort
SELECT + 20 - - + 67 + 23
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL - MIN( ALL 39 ) * 42 col0
----
-1638

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - MIN ( ALL 39 ) * 42 col0
----
-1638

query I rowsort
SELECT ALL + COALESCE ( - ( - + 32 ), - 0 ) AS col2
----
32

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

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

query I rowsort
SELECT ALL - 37 * 30 + + 11 AS col0
----
-1099

query I rowsort
SELECT - 8 * + 32
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL + - 50 * + + COUNT( ALL + 54 ) + - - 29 + 40
----
19

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + - 50 * + + COUNT ( ALL + 54 ) + - - 29 + 40
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + + 3 + COALESCE ( - MIN( DISTINCT - 38 ), - + 64 * + COUNT( DISTINCT - + 30 ) - ( 39 ) + + 76 * 69 )
----
41

skipif mysql # not compatible
query I rowsort label-3345
SELECT + + 3 + COALESCE ( - MIN ( DISTINCT - 38 ), - + 64 * + COUNT ( DISTINCT - + 30 ) - ( 39 ) + + 76 * 69 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT - - 98 - CAST( 96 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3346
SELECT - - 98 - CAST ( 96 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT ALL - 92 * - 65 * 50 AS col0
----
299000

query I rowsort
SELECT + 56 * + - 49 AS col0
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + - COUNT( * ) + + SUM( DISTINCT + + 29 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3349
SELECT + - COUNT ( * ) + + SUM ( DISTINCT + + 29 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT - + 23 - + COALESCE ( - + 55, + 58, - 22 ) AS col1, 6 + + COALESCE ( - NULLIF ( 39, ( - 84 ) * - 15 * + 25 + 90 / + ( + 75 ) - 47 ), NULLIF ( 66, - 38 ) + - 52 * + ( + COUNT( * ) * 80 ) ) - + 44 * 50 AS col1
----
32
-2233

skipif mysql # not compatible
query II rowsort label-3350
SELECT - + 23 - + COALESCE ( - + 55, + 58, - 22 ) AS col1, 6 + + COALESCE ( - NULLIF ( 39, ( - 84 ) * - 15 * + 25 + 90 / + ( + 75 ) - 47 ), NULLIF ( 66, - 38 ) + - 52 * + ( + COUNT ( * ) * 80 ) ) - + 44 * 50 AS col1
----
32
-2233

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT - SUM( 25 ) + - + 11
----
-36

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - SUM ( 25 ) + - + 11
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3353
SELECT ALL - - 40 + - + 59 + COALESCE ( - 91, + - MIN( - ( 95 ) ) + ( 56 ) + + - 39 + 21 + - - CASE COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * 95 THEN + 89 + + 98 WHEN CAST( 15 AS DECIMAL ) THEN NULL END * 29 ) * 97 AS col0
----
-8846

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - - 40 + - + 59 + COALESCE ( - 91, + - MIN ( - ( 95 ) ) + ( 56 ) + + - 39 + 21 + - - CASE COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * 95 THEN + 89 + + 98 WHEN CAST ( 15 AS REAL ) THEN NULL END * 29 ) * 97 AS col0
----
-8846

query I rowsort
SELECT - 10 + + + 62 * - 63 AS col1
----
-3916

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT - CASE - 38 WHEN + + 57 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - - 26 END AS col0, 71
----
-26
71

skipif mysql # not compatible
query II rowsort label-3355
SELECT - CASE - 38 WHEN + + 57 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - - 26 END AS col0, 71
----
-26
71

query I rowsort
SELECT - ( - + 26 ) + - 97
----
-71

query I rowsort
SELECT ALL - - 48 + - 32 + - - 75 * + 45
----
3391

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT CASE + 60 WHEN SUM( DISTINCT + 6 ) THEN NULL WHEN 70 * 32 * - 43 * + - 88 + + 10 + - + 76 THEN 60 - - 57 + - 31 * 9 * 3 WHEN 5 * - 83 THEN - 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT CASE + 60 WHEN SUM ( DISTINCT + 6 ) THEN NULL WHEN 70 * 32 * - 43 * + - 88 + + 10 + - + 76 THEN 60 - - 57 + - 31 * 9 * 3 WHEN 5 * - 83 THEN - 44 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT + - CAST( + CAST( + COALESCE ( + 72, + + 71 * 78 + COUNT( * ) - + 65 * - + 10 + - + COUNT( * ) + + 4 * + 74 + + ( - SUM( DISTINCT 18 ) ) ) AS SIGNED ) AS SIGNED ) + + 60
----
-12

skipif mysql # not compatible
query I rowsort label-3359
SELECT + - CAST ( + CAST ( + COALESCE ( + 72, + + 71 * 78 + COUNT ( * ) - + 65 * - + 10 + - + COUNT ( * ) + + 4 * + 74 + + ( - SUM ( DISTINCT 18 ) ) ) AS INTEGER ) AS INTEGER ) + + 60
----
-12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT - + COUNT( * ) + - ( - 40 ), - 69 AS col0
----
39
-69

skipif mysql # not compatible
query II rowsort label-3361
SELECT - + COUNT ( * ) + - ( - 40 ), - 69 AS col0
----
39
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3362
SELECT - - 47 + COUNT( * ) * 59 - + - 54 * 80 col2, 55 + 52 * 14
----
4426
783

skipif mysql # not compatible
query II rowsort label-3362
SELECT - - 47 + COUNT ( * ) * 59 - + - 54 * 80 col2, 55 + 52 * 14
----
4426
783

query I rowsort
SELECT ALL - 41 * + ( + 62 ) AS col1
----
-2542

query I rowsort
SELECT DISTINCT + 83 * + + 2
----
166

query I rowsort
SELECT ALL - + 22 * + 29 col0
----
-638

query I rowsort
SELECT - 22 + - - 29 AS col2
----
7

query I rowsort
SELECT DISTINCT + ( + 47 ) AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( ALL - + 7 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - COUNT( DISTINCT 60 ) * - - 64
----
-64

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( DISTINCT 60 ) * - - 64
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT - 3 * + 69 - ( - CAST( - 62 AS SIGNED ) ) AS col2
----
-269

skipif mysql # not compatible
query I rowsort label-3371
SELECT - 3 * + 69 - ( - CAST ( - 62 AS INTEGER ) ) AS col2
----
-269

query II rowsort
SELECT ALL + 57 AS col1, 78 AS col0
----
57
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 76 DIV + 67 + - + 60 col0
----
-59

skipif mysql # not compatible
query I rowsort label-3373
SELECT 76 / + 67 + - + 60 col0
----
-59

query II rowsort
SELECT 64 AS col0, + 28 + 92 + 75 AS col1
----
64
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + COUNT( ALL + 14 ) * + - 70 + SUM( + 32 ) * - + 89 AS col2
----
-2918

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + COUNT ( ALL + 14 ) * + - 70 + SUM ( + 32 ) * - + 89 AS col2
----
-2918

query I rowsort
SELECT 2 * - + 69
----
-138

query II rowsort
SELECT - 40 * ( - + 60 ) + + 91 AS col2, + 81 AS col1
----
2491
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT - COALESCE ( MIN( - + 55 ), - 84, - + 33 * + - ( + 23 ) ) col2
----
55

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - COALESCE ( MIN ( - + 55 ), - 84, - + 33 * + - ( + 23 ) ) col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT ALL 38 + - - 98 + - 88 AS col2, COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-3379
SELECT ALL 38 + - - 98 + - 88 AS col2, COUNT ( * ) AS col0
----
48
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT 76 * + 55 * CAST( - 97 AS SIGNED ) + + NULLIF ( - - 47, - + CAST( NULL AS SIGNED ) + + + 42 * - - 60 ) + + - 56 * - 15
----
-404573

skipif mysql # not compatible
query I rowsort label-3380
SELECT 76 * + 55 * CAST ( - 97 AS INTEGER ) + + NULLIF ( - - 47, - + CAST ( NULL AS INTEGER ) + + + 42 * - - 60 ) + + - 56 * - 15
----
-404573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3381
SELECT DISTINCT - 88 AS col0, ( - NULLIF ( - + 53, CASE + 95 WHEN + - ( - 92 ) THEN 43 WHEN + 61 THEN - + 98 + + COUNT( * ) + - CAST( NULL AS SIGNED ) END / 32 ) )
----
-88
53

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT - 88 AS col0, ( - NULLIF ( - + 53, CASE + 95 WHEN + - ( - 92 ) THEN 43 WHEN + 61 THEN - + 98 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) END / 32 ) )
----
-88
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - COUNT( * ) + 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - COUNT ( * ) + 30 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT ( + + COUNT( * ) ) + - 8 * + 37
----
-295

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT ( + + COUNT ( * ) ) + - 8 * + 37
----
-295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT COUNT( * ) + + - 9 * 61 DIV 18 * - 41 + - 6 * - - COALESCE ( - + 30, MAX( + 94 ), + COUNT( * ) * + 8 + 44 + + 43 ) * + COUNT( * )
----
1411

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT COUNT ( * ) + + - 9 * 61 / 18 * - 41 + - 6 * - - COALESCE ( - + 30, MAX ( + 94 ), + COUNT ( * ) * + 8 + 44 + + 43 ) * + COUNT ( * )
----
1411

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT ALL - 88 AS col2, 6 + - MAX( + - 92 ) AS col0
----
-88
98

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL - 88 AS col2, 6 + - MAX ( + - 92 ) AS col0
----
-88
98

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

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

query I rowsort
SELECT 52 * - 49 + - 86 + + + 16 * + + 62 - - + 84
----
-1558

query I rowsort
SELECT - 68 * + - 2 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL 11 + - + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 11 + - + COUNT ( * ) AS col1
----
10

query I rowsort
SELECT 57 * + - 2 AS col2
----
-114

query I rowsort
SELECT ALL + 81 * + 40
----
3240

query I rowsort
SELECT DISTINCT + 70 + - - 43 * - 10 * - 19 * ( - ( + 99 ) ) * 75
----
-60662180

query I rowsort
SELECT ALL ( - 92 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT + 48 * + 14
----
672

query I rowsort
SELECT + NULLIF ( - 70, 41 ) col2
----
-70

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

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

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

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

query I rowsort
SELECT + 61 - - + 9 + + 72 col0
----
142

query II rowsort
SELECT ALL + 70, - 23 AS col2
----
70
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3400
SELECT - ( + CAST( + 15 AS SIGNED ) ) * + 47 - COALESCE ( - - 38, + 95 DIV - 64 + + + 11 ) AS col2
----
-743

skipif mysql # not compatible
query I rowsort label-3400
SELECT - ( + CAST ( + 15 AS INTEGER ) ) * + 47 - COALESCE ( - - 38, + 95 / - 64 + + + 11 ) AS col2
----
-743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 3 + - ( + CAST( + 79 AS SIGNED ) ) + 95 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3401
SELECT 3 + - ( + CAST ( + 79 AS INTEGER ) ) + 95 AS col1
----
19

query II rowsort
SELECT - 46, 93 - - 45 AS col1
----
-46
138

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT - NULLIF ( + + CAST( NULL AS SIGNED ), - 43 ) - - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT - NULLIF ( + + CAST ( NULL AS INTEGER ), - 43 ) - - + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT CAST( - 39 AS SIGNED ) * + CAST( - SUM( + 16 ) AS SIGNED ) + - 4
----
620

skipif mysql # not compatible
query I rowsort label-3405
SELECT CAST ( - 39 AS INTEGER ) * + CAST ( - SUM ( + 16 ) AS INTEGER ) + - 4
----
620

query I rowsort
SELECT 18 + - 72 AS col1
----
-54

query I rowsort
SELECT DISTINCT + 71 * + 2 AS col2
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT - 62 * - + CAST( - 77 AS SIGNED ) AS col1
----
-4774

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - 62 * - + CAST ( - 77 AS INTEGER ) AS col1
----
-4774

onlyif mysql # DIV for integer division: 
query II rowsort label-3409
SELECT 2 DIV - - 47, + 60 AS col1
----
0
60

skipif mysql # not compatible
query II rowsort label-3409
SELECT 2 / - - 47, + 60 AS col1
----
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT 37 * + 42 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT 37 * + 42 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + 90 * - MAX( DISTINCT - - 33 )
----
-2970

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + 90 * - MAX ( DISTINCT - - 33 )
----
-2970

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT ALL - 17 + 27 * COUNT( * ) + + 90, - 12 col0
----
100
-12

skipif mysql # not compatible
query II rowsort label-3412
SELECT ALL - 17 + 27 * COUNT ( * ) + + 90, - 12 col0
----
100
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL - 45 + CASE - 79 WHEN + - 88 THEN + + CAST( + 99 AS SIGNED ) * 68 + - 29 * + - 19 - - 77 END / + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - 45 + CASE - 79 WHEN + - 88 THEN + + CAST ( + 99 AS INTEGER ) * 68 + - 29 * + - 19 - - 77 END / + 37 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + - 87 ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT 50 + + + 61 - - 51 DIV - CASE + 22 WHEN + 78 THEN NULL WHEN + 59 THEN 19 ELSE 15 END + + + 59 + - 4 * 27 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 50 + + + 61 - - 51 / - CASE + 22 WHEN + 78 THEN NULL WHEN + 59 THEN 19 ELSE 15 END + + + 59 + - 4 * 27 AS col0
----
59

query I rowsort
SELECT 7 - CASE + 3 WHEN 62 - + - 18 THEN ( 91 ) * 78 + - + 61 * 64 WHEN - - 18 THEN NULL WHEN - 41 + + 98 THEN + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 78 ) col2
----
-78

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

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

query I rowsort
SELECT DISTINCT + 59 * 5 AS col1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - COUNT( * ) + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - COUNT ( * ) + - 47
----
-48

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

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

query I rowsort
SELECT ALL - 10 * 70
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT ALL - - 56 - 26 * - COALESCE ( CAST( 31 AS SIGNED ), SUM( 54 ) DIV - 48, 41, 13 ) AS col0
----
862

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - - 56 - 26 * - COALESCE ( CAST ( 31 AS INTEGER ), SUM ( 54 ) / - 48, 41, 13 ) AS col0
----
862

query I rowsort
SELECT - 32 + + - 82 * 0 AS col0
----
-32

query I rowsort
SELECT 49 * 2 AS col2
----
98

query I rowsort
SELECT 51 + + 45 + + 75 * - + 22 col2
----
-1554

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3427
SELECT - CAST( NULL AS DECIMAL ) - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT - CAST ( NULL AS REAL ) - 0
----
NULL

query I rowsort
SELECT 41 - + + 60
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( * ) * + COALESCE ( - 0, + 75, + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT COUNT ( * ) * + COALESCE ( - 0, + 75, + 91 )
----
0

query I rowsort
SELECT + 81 * 95
----
7695

query I rowsort
SELECT ALL NULLIF ( - 69, - 30 / - - 72 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT COUNT( * ) + - 33 * - 26 - + 39 col1
----
820

skipif mysql # not compatible
query I rowsort label-3432
SELECT COUNT ( * ) + - 33 * - 26 - + 39 col1
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL + 33 * - + COUNT( * ) * - 45
----
1485

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 33 * - + COUNT ( * ) * - 45
----
1485

query I rowsort
SELECT 51 * - 89 * - 16 AS col1
----
72624

query I rowsort
SELECT 83 + - 32 col2
----
51

query I rowsort
SELECT - 81 * + 89
----
-7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT DISTINCT ( + 5 ) + 94 * + SUM( 32 ) / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT ( + 5 ) + 94 * + SUM ( 32 ) / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 0, + - 78 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL 33 * + - NULLIF ( + COUNT( * ), + ( + NULLIF ( - 38, - + 48 ) ) * - COUNT( * ) + - 91 + + + SUM( - 67 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 33 * + - NULLIF ( + COUNT ( * ), + ( + NULLIF ( - 38, - + 48 ) ) * - COUNT ( * ) + - 91 + + + SUM ( - 67 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT 92 + - CASE + 61 WHEN 48 * + + NULLIF ( - 39, - 66 * - 76 + + 11 ) THEN - 10 WHEN + MAX( DISTINCT - + 87 ) THEN - 69 + 39 ELSE NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT 92 + - CASE + 61 WHEN 48 * + + NULLIF ( - 39, - 66 * - 76 + + 11 ) THEN - 10 WHEN + MAX ( DISTINCT - + 87 ) THEN - 69 + 39 ELSE NULL END - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 21 + 63 AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT CASE - COUNT( * ) WHEN + + CASE WHEN - 93 IN ( + 47 * - - 14 / + 2 ) OR 94 NOT BETWEEN 1 * - + COUNT( * ) + - 42 + + 35 * + 39 - - 60 AND 3 THEN 60 + 20 END THEN NULL WHEN - 4 - - NULLIF ( COALESCE ( 31, - 0 ), NULLIF ( + 3, + 68 + 26 ) ) THEN NULL ELSE 96 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3443
SELECT CASE - COUNT ( * ) WHEN + + CASE WHEN - 93 IN ( + 47 * - - 14 / + 2 ) OR 94 NOT BETWEEN 1 * - + COUNT ( * ) + - 42 + + 35 * + 39 - - 60 AND 3 THEN 60 + 20 END THEN NULL WHEN - 4 - - NULLIF ( COALESCE ( 31, - 0 ), NULLIF ( + 3, + 68 + 26 ) ) THEN NULL ELSE 96 END AS col0
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3445
SELECT + 85 + - CAST( + CASE - + 41 WHEN - COUNT( * ) * 70 THEN NULL ELSE 96 END AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 85 + - CAST ( + CASE - + 41 WHEN - COUNT ( * ) * 70 THEN NULL ELSE 96 END AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + 57 * + - 89 + + ( + CASE - ( + + 19 ) WHEN - COALESCE ( + - 58, - + COALESCE ( COUNT( * ), 31 ), - 87 ) + + MIN( DISTINCT 61 ) * + 6 + 96 THEN 55 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT + 57 * + - 89 + + ( + CASE - ( + + 19 ) WHEN - COALESCE ( + - 58, - + COALESCE ( COUNT ( * ), 31 ), - 87 ) + + MIN ( DISTINCT 61 ) * + 6 + 96 THEN 55 END ) col0
----
NULL

query I rowsort
SELECT - 50 * - 47
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL - NULLIF ( 88, 16 ) * - ( - - 23 ) * + 36 + + + 95 * 40 * - - ( - - 23 ) + 44 + - - CASE - + 16 WHEN + 8 / + ( - MIN( + CASE 92 WHEN - 48 THEN + 44 WHEN 59 THEN NULL WHEN - 69 THEN NULL ELSE NULL END ) ) + + 42 / + 53 THEN NULL ELSE 56 * 59 END * - 90 * 18 col0
----
-5192172

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - NULLIF ( 88, 16 ) * - ( - - 23 ) * + 36 + + + 95 * 40 * - - ( - - 23 ) + 44 + - - CASE - + 16 WHEN + 8 / + ( - MIN ( + CASE 92 WHEN - 48 THEN + 44 WHEN 59 THEN NULL WHEN - 69 THEN NULL ELSE NULL END ) ) + + 42 / + 53 THEN NULL ELSE 56 * 59 END * - 90 * 18 col0
----
-5192172

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT CASE + 38 WHEN - 28 THEN NULL ELSE + 35 - + - 79 END AS col0, - 92 * - 83 * + COUNT( * )
----
114
7636

skipif mysql # not compatible
query II rowsort label-3449
SELECT CASE + 38 WHEN - 28 THEN NULL ELSE + 35 - + - 79 END AS col0, - 92 * - 83 * + COUNT ( * )
----
114
7636

query I rowsort
SELECT + ( - CASE WHEN ( - NULLIF ( - 39, + 18 ) <= NULL ) THEN NULL WHEN + 43 NOT BETWEEN NULL AND NULL THEN 77 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - ( - + 45 ) + SUM( + 72 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-3451
SELECT - ( - + 45 ) + SUM ( + 72 ) AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT - 94 * ( - CAST( NULL AS SIGNED ) ) + - MIN( - 15 ) + + 6 + - 38 / - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT - 94 * ( - CAST ( NULL AS INTEGER ) ) + - MIN ( - 15 ) + + 6 + - 38 / - 30 AS col1
----
NULL

query I rowsort
SELECT - 14 * + 89 AS col1
----
-1246

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

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

query I rowsort
SELECT DISTINCT + - ( 58 ) col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT - 63 + + - MAX( ALL + 89 ) AS col0, 41
----
-152
41

skipif mysql # not compatible
query II rowsort label-3456
SELECT - 63 + + - MAX ( ALL + 89 ) AS col0, 41
----
-152
41

query I rowsort
SELECT ALL - 34 * + + 44 - + 48 + + 25
----
-1519

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

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

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

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

query II rowsort
SELECT ALL + 76 AS col0, 90
----
76
90

query I rowsort
SELECT - + 98 * 3 AS col1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + 37 * + MIN( - 76 ) + 98 AS col2
----
-2714

skipif mysql # not compatible
query I rowsort label-3463
SELECT + 37 * + MIN ( - 76 ) + 98 AS col2
----
-2714

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

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

query I rowsort
SELECT - - 65 * - 25 AS col0
----
-1625

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT - CASE COUNT( * ) WHEN + - 43 + MAX( 54 ) / + MAX( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1
----
NULL
180

skipif mysql # not compatible
query II rowsort label-3466
SELECT - CASE COUNT ( * ) WHEN + - 43 + MAX ( 54 ) / + MAX ( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1
----
NULL
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT DISTINCT - 26 DIV - + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - 26 / - + 88 AS col1
----
0

query II rowsort
SELECT + 58, + 13 AS col0
----
58
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3469
SELECT ALL - + ( - 34 ) * + 13, 73 + - CAST( NULL AS SIGNED ) AS col2
----
442
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT ALL - + ( - 34 ) * + 13, 73 + - CAST ( NULL AS INTEGER ) AS col2
----
442
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT NULLIF ( 95, - - 46 + + + 27 + - ( 78 ) / - COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-3471
SELECT NULLIF ( 95, - - 46 + + + 27 + - ( 78 ) / - COUNT ( * ) )
----
95

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

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

query I rowsort
SELECT - 59 - 93
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - NULLIF ( - 65, + COUNT( * ) * + - COUNT( * ) / + 4 + - + MAX( DISTINCT - 37 ) + - + 49 + + 48 + 38 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3474
SELECT - NULLIF ( - 65, + COUNT ( * ) * + - COUNT ( * ) / + 4 + - + MAX ( DISTINCT - 37 ) + - + 49 + + 48 + 38 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT + 81 + - 39 DIV - 80
----
81

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 81 + - 39 / - 80
----
81

query I rowsort
SELECT DISTINCT 87 + 68
----
155

query II rowsort
SELECT ALL 91 AS col2, 31 * 31
----
91
961

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + AVG ( DISTINCT + + 9 ) + 94 * + 19 * - 89 - 34 * + + 42 + + SUM( ALL + + 21 ) * - CASE 79 WHEN - 52 THEN - + 38 + COUNT( * ) + - ( - - SUM( + 59 ) ) WHEN 14 + - 0 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + AVG ( DISTINCT + + 9 ) + 94 * + 19 * - 89 - 34 * + + 42 + + SUM ( ALL + + 21 ) * - CASE 79 WHEN - 52 THEN - + 38 + COUNT ( * ) + - ( - - SUM ( + 59 ) ) WHEN 14 + - 0 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 44 + - 27 + - 90 AS col2
----
-73

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

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

query I rowsort
SELECT + 80 - 49
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL MAX( + - 54 ) + 98 col0
----
44

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL MAX ( + - 54 ) + 98 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT DISTINCT 8 AS col2, + MAX( + + 13 ) AS col0
----
8
13

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT 8 AS col2, + MAX ( + + 13 ) AS col0
----
8
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT 42 AS col2, - 82 * - COALESCE ( CASE + 33 WHEN + 94 - - 4 / + 61 * - 8 * - 40 + - + AVG ( ALL - + 20 ) THEN - - 72 WHEN - ( + SUM( DISTINCT 15 ) ) - ( 80 ) THEN NULL ELSE NULL END, + 9 ) + 89 AS col1
----
42
827

skipif mysql # not compatible
query II rowsort label-3485
SELECT 42 AS col2, - 82 * - COALESCE ( CASE + 33 WHEN + 94 - - 4 / + 61 * - 8 * - 40 + - + AVG ( ALL - + 20 ) THEN - - 72 WHEN - ( + SUM ( DISTINCT 15 ) ) - ( 80 ) THEN NULL ELSE NULL END, + 9 ) + 89 AS col1
----
42
827

query II rowsort
SELECT 80, + 24 col1
----
80
24

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

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 80 * + + COUNT ( + 84 ) AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-3488
SELECT + 85 * 84 / + + COUNT ( * ) AS col0
----
7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - CAST( + 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CAST ( + 44 AS INTEGER ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT + CASE - ( + 93 ) WHEN + 69 * - - AVG ( + CAST( + 27 AS SIGNED ) ) THEN + 3 + + 17 + + 19 WHEN 3 * - 7 / 83 * - COUNT( * ) * + 38 THEN - - AVG ( 15 ) + + 28 ELSE - 6 * - 50 + 68 END AS col2
----
368

skipif mysql # not compatible
query I rowsort label-3490
SELECT + CASE - ( + 93 ) WHEN + 69 * - - AVG ( + CAST ( + 27 AS INTEGER ) ) THEN + 3 + + 17 + + 19 WHEN 3 * - 7 / 83 * - COUNT ( * ) * + 38 THEN - - AVG ( 15 ) + + 28 ELSE - 6 * - 50 + 68 END AS col2
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( + 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( + 48 AS INTEGER ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3492
SELECT ALL + 94 DIV COUNT( * ) - - + CAST( 31 AS SIGNED ) * 81 * + 57 * - - 21 * - + MIN( ( + - 33 ) )
----
99187105

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + 94 / COUNT ( * ) - - + CAST ( 31 AS INTEGER ) * 81 * + 57 * - - 21 * - + MIN ( ( + - 33 ) )
----
99187105

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 32 * + MAX( DISTINCT - + 95 ) AS col0
----
-3040

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 32 * + MAX ( DISTINCT - + 95 ) AS col0
----
-3040

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

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

query I rowsort
SELECT + 55 * - + 45
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3496
SELECT CAST( - 52 AS SIGNED ), 28 * + 77 * - 86 col0
----
-52
-185416

skipif mysql # not compatible
query II rowsort label-3496
SELECT CAST ( - 52 AS INTEGER ), 28 * + 77 * - 86 col0
----
-52
-185416

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT 79 * 65 DIV 65 DIV 16 * + 29
----
116

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT 79 * 65 / 65 / 16 * + 29
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + CASE - - 24 WHEN - - 75 + - 87 THEN - NULLIF ( + - 26, + AVG ( - + 60 ) ) WHEN - 12 / - CASE + 5 WHEN + MIN( DISTINCT - - 65 ) THEN - 26 WHEN + - 30 THEN + 61 ELSE NULL END THEN - 23 ELSE - CASE ( + 26 ) WHEN 21 THEN NULL WHEN + ( + 42 ) THEN NULL ELSE - NULLIF ( 56, 25 ) END END
----
56

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + CASE - - 24 WHEN - - 75 + - 87 THEN - NULLIF ( + - 26, + AVG ( - + 60 ) ) WHEN - 12 / - CASE + 5 WHEN + MIN ( DISTINCT - - 65 ) THEN - 26 WHEN + - 30 THEN + 61 ELSE NULL END THEN - 23 ELSE - CASE ( + 26 ) WHEN 21 THEN NULL WHEN + ( + 42 ) THEN NULL ELSE - NULLIF ( 56, 25 ) END END
----
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL + 49 DIV + 55 + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + 49 / + 55 + 41 AS col0
----
41

query I rowsort
SELECT + 93 * 56 + - 91 AS col2
----
5117

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT ALL + 22 col2, + 57 DIV - 55
----
22
-1

skipif mysql # not compatible
query II rowsort label-3502
SELECT ALL + 22 col2, + 57 / - 55
----
22
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3503
SELECT + 50 - - CAST( + AVG ( - 38 ) AS SIGNED ) DIV + 46 * - 33 DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 50 - - CAST ( + AVG ( - 38 ) AS INTEGER ) / + 46 * - 33 / COUNT ( * ) AS col1
----
50

query I rowsort
SELECT DISTINCT + 55 * + 20
----
1100

query I rowsort
SELECT + 18 * 65 + - 86 AS col2
----
1084

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

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + 17 / COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3507
SELECT DISTINCT + 79 * MAX( ALL - CAST( NULL AS DECIMAL ) ) + 86 * 14 * + - 6 - 45, COUNT( * ) * + + ( + COUNT( * ) ) * 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3507
SELECT DISTINCT + 79 * MAX ( ALL - CAST ( NULL AS REAL ) ) + 86 * 14 * + - 6 - 45, COUNT ( * ) * + + ( + COUNT ( * ) ) * 92 AS col0
----
NULL
92

query I rowsort
SELECT + + 42 + 1
----
43

query II rowsort
SELECT + 13 - - 68 AS col1, - 91 * - 42 + + + 45
----
81
3867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT + CAST( NULL AS SIGNED ) - + NULLIF ( - 94, - - 39 * + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT + CAST ( NULL AS INTEGER ) - + NULLIF ( - 94, - - 39 * + + 68 )
----
NULL

query I rowsort
SELECT ALL - 81 + 36 AS col0
----
-45

query I rowsort
SELECT ALL + 30 + 43 * + 18
----
804

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3514
SELECT ALL - 58 DIV 58 col2, - COALESCE ( - + 46, COUNT( * ), 91 DIV + - CAST( NULL AS SIGNED ) )
----
-1
46

skipif mysql # not compatible
query II rowsort label-3514
SELECT ALL - 58 / 58 col2, - COALESCE ( - + 46, COUNT ( * ), 91 / + - CAST ( NULL AS INTEGER ) )
----
-1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT COUNT( * ) + COUNT( * ) - 79 + SUM( - - 64 )
----
-13

skipif mysql # not compatible
query I rowsort label-3515
SELECT COUNT ( * ) + COUNT ( * ) - 79 + SUM ( - - 64 )
----
-13

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

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + COUNT ( * ) * MAX ( - - 71 ) / CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3517
SELECT 17 + + CAST( MAX( + 79 ) AS SIGNED ) DIV 8
----
26

skipif mysql # not compatible
query I rowsort label-3517
SELECT 17 + + CAST ( MAX ( + 79 ) AS INTEGER ) / 8
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT 67 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT 67 / + 80 AS col1
----
0

query I rowsort
SELECT 52 + + - 57 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL 20 - - - COUNT( * ) * - 15 col2
----
35

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 20 - - - COUNT ( * ) * - 15 col2
----
35

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

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

query I rowsort
SELECT ALL - ( - 83 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + 33 * 82 * - 84 * + CASE - + ( + COUNT( 69 ) ) WHEN - - 11 * - COUNT( * ) * + COUNT( + CASE 92 WHEN + - 2 + + - 46 / 90 THEN - - 73 END ) * + 57 * 75 THEN 59 + + 12 / NULLIF ( - 78 * + 86, - 96 ) END / 61 + + 55 + - ( + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 33 * 82 * - 84 * + CASE - + ( + COUNT ( 69 ) ) WHEN - - 11 * - COUNT ( * ) * + COUNT ( + CASE 92 WHEN + - 2 + + - 46 / 90 THEN - - 73 END ) * + 57 * 75 THEN 59 + + 12 / NULLIF ( - 78 * + 86, - 96 ) END / 61 + + 55 + - ( + 45 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 20 * + 11
----
-220

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT COALESCE ( + 34, - - 11 ) * 2 * - - 19 * - 86 * - COUNT( * ) AS col1, + 32
----
111112
32

skipif mysql # not compatible
query II rowsort label-3525
SELECT COALESCE ( + 34, - - 11 ) * 2 * - - 19 * - 86 * - COUNT ( * ) AS col1, + 32
----
111112
32

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

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

query I rowsort
SELECT ALL 78 + - 57 + + + 89 + - 7
----
103

query I rowsort
SELECT + 65 * + 1 + - 23 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3529
SELECT ALL - 26 * - + 49 * - COUNT( * ) + - + ( + CASE CAST( 47 AS DECIMAL ) WHEN + COALESCE ( 82, 36 + - 64 ) + - 4 THEN NULL WHEN 87 THEN NULL WHEN - 32 THEN - 92 * 4 * + 64 + + NULLIF ( + ( + 24 ) + 91, 53 ) ELSE NULL END ) + - 15 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 26 * - + 49 * - COUNT ( * ) + - + ( + CASE CAST ( 47 AS REAL ) WHEN + COALESCE ( 82, 36 + - 64 ) + - 4 THEN NULL WHEN 87 THEN NULL WHEN - 32 THEN - 92 * 4 * + 64 + + NULLIF ( + ( + 24 ) + 91, 53 ) ELSE NULL END ) + - 15 * 11 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 + ( - 52 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL - 77 + + - 62 / - 25 * - CAST( NULL AS SIGNED ) + - - 1 + COUNT( * ) * 75 + 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - 77 + + - 62 / - 25 * - CAST ( NULL AS INTEGER ) + - - 1 + COUNT ( * ) * 75 + 28 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT COUNT( * ) * + 95 + - + 91 - CAST( + SUM( DISTINCT - - 71 ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-3532
SELECT COUNT ( * ) * + 95 + - + 91 - CAST ( + SUM ( DISTINCT - - 71 ) AS INTEGER )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT - 11 + - CAST( + 29 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 11 + - CAST ( + 29 AS INTEGER )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT COALESCE ( - 47, + - 59 * + + CASE - 77 WHEN 24 THEN + 95 DIV - ( + 42 ) + + ( - 58 ) END )
----
-47

skipif mysql # not compatible
query I rowsort label-3534
SELECT COALESCE ( - 47, + - 59 * + + CASE - 77 WHEN 24 THEN + 95 / - ( + 42 ) + + ( - 58 ) END )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT DISTINCT - 83 + - + 75 - + 85 + 16 * + - ( CASE + 64 WHEN - COUNT( ALL + 31 ) THEN + - 56 * - 44 DIV 1 ELSE + - 92 END )
----
1229

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - 83 + - + 75 - + 85 + 16 * + - ( CASE + 64 WHEN - COUNT ( ALL + 31 ) THEN + - 56 * - 44 / 1 ELSE + - 92 END )
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL - SUM( + 67 ) * + 65
----
-4355

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - SUM ( + 67 ) * + 65
----
-4355

query I rowsort
SELECT ALL NULLIF ( + 33, - 84 ) * - 1 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT 69 * - - COUNT( * ) * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT 69 * - - COUNT ( * ) * - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3539
SELECT ALL COUNT( * ) * - - 84 * + - MAX( 12 ) * - MIN( DISTINCT - + CAST( 15 AS SIGNED ) ) * - 31 AS col2, - CAST( - 89 AS SIGNED )
----
468720
89

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL COUNT ( * ) * - - 84 * + - MAX ( 12 ) * - MIN ( DISTINCT - + CAST ( 15 AS INTEGER ) ) * - 31 AS col2, - CAST ( - 89 AS INTEGER )
----
468720
89

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

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL CAST ( CAST ( + 53 AS INTEGER ) AS INTEGER ) - 68
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT - COUNT( * ), 19 * + 63 AS col1
----
-1
1197

skipif mysql # not compatible
query II rowsort label-3541
SELECT - COUNT ( * ), 19 * + 63 AS col1
----
-1
1197

query I rowsort
SELECT 56 * + 99 AS col2
----
5544

query II rowsort
SELECT 62 + + 55 + 27 * - 10 AS col2, + 66
----
-153
66

query II rowsort
SELECT DISTINCT 63 AS col0, + 65 col2
----
63
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT 62 - - ( + - 49 ) + + 35 DIV - + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT 62 - - ( + - 49 ) + + 35 / - + COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT 55 - - 6
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3547
SELECT 36 * + - CASE 91 WHEN 82 THEN NULL ELSE + - COALESCE ( + - CAST( - 97 AS SIGNED ), - 18, + 18 + - ( - 9 ) DIV + - 46 ) END AS col1
----
3492

skipif mysql # not compatible
query I rowsort label-3547
SELECT 36 * + - CASE 91 WHEN 82 THEN NULL ELSE + - COALESCE ( + - CAST ( - 97 AS INTEGER ), - 18, + 18 + - ( - 9 ) / + - 46 ) END AS col1
----
3492

query I rowsort
SELECT 71 * - - 35 AS col0
----
2485

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL + 92 * 65 DIV 46
----
130

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + 92 * 65 / 46
----
130

query II rowsort
SELECT 43, 38 AS col2
----
43
38

query I rowsort
SELECT - 66 * 17
----
-1122

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT ALL 22 * - 68 + 85 AS col0, + COUNT( * )
----
-1411
1

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL 22 * - 68 + 85 AS col0, + COUNT ( * )
----
-1411
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT - COUNT( 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - COUNT ( 85 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT CAST( 8 AS SIGNED ) * 46 DIV - 89
----
-4

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT CAST ( 8 AS INTEGER ) * 46 / - 89
----
-4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3556
SELECT ALL 42 * COALESCE ( - - 60, + 84, - + 77 * 53 + - 1 * CAST( ( 67 ) AS SIGNED ) ) + 18 + - + COUNT( * ) * - 54 AS col1, 54 + + - 14 AS col2
----
2592
40

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL 42 * COALESCE ( - - 60, + 84, - + 77 * 53 + - 1 * CAST ( ( 67 ) AS INTEGER ) ) + 18 + - + COUNT ( * ) * - 54 AS col1, 54 + + - 14 AS col2
----
2592
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + 46 * + 54 + SUM( DISTINCT + + COALESCE ( - 57, + 94 ) ) AS col2
----
2427

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 46 * + 54 + SUM ( DISTINCT + + COALESCE ( - 57, + 94 ) ) AS col2
----
2427

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT ALL 51 * COUNT( * ) * 19 AS col0, 86 + + 85 AS col2
----
969
171

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL 51 * COUNT ( * ) * 19 AS col0, 86 + + 85 AS col2
----
969
171

query II rowsort
SELECT ALL + 23 AS col0, + 61
----
23
61

query II rowsort
SELECT + 10, + 21 col2
----
10
21

query I rowsort
SELECT + 39 + - 42 * - - 32 * - 80 * 96 AS col2
----
10321959

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + + 59 + ( - 36 ) * 41 + - COUNT( * ) AS col1
----
-1418

skipif mysql # not compatible
query I rowsort label-3562
SELECT + + 59 + ( - 36 ) * 41 + - COUNT ( * ) AS col1
----
-1418

query I rowsort
SELECT ALL + + 38 * - 75 * - ( + 78 )
----
222300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT + - CASE - - 89 WHEN + 16 * - 66 + 60 THEN 90 WHEN + 85 - + - COALESCE ( + 87, - 53 ) * + - 54 * + 30 * 27 - - 40 * - ( + 70 ) * + 68 * 40 / COUNT( * ) THEN NULL WHEN + COUNT( * ) + - CAST( 49 AS SIGNED ) THEN NULL ELSE NULL END + - 42 * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT + - CASE - - 89 WHEN + 16 * - 66 + 60 THEN 90 WHEN + 85 - + - COALESCE ( + 87, - 53 ) * + - 54 * + 30 * 27 - - 40 * - ( + 70 ) * + 68 * 40 / COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + - CAST ( 49 AS INTEGER ) THEN NULL ELSE NULL END + - 42 * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT MAX( + 40 ) AS col1, 33 + + + NULLIF ( - 69, + COUNT( * ) * 25 + + + 67 + - 85 ) + - 62 * + - 89
----
40
5482

skipif mysql # not compatible
query II rowsort label-3565
SELECT MAX ( + 40 ) AS col1, 33 + + + NULLIF ( - 69, + COUNT ( * ) * 25 + + + 67 + - 85 ) + - 62 * + - 89
----
40
5482

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - CASE - - 61 WHEN + + NULLIF ( 97, + 17 * + 40 * + 78 ) THEN - 4 ELSE NULL END * - - ( - + 38 ) + + MAX( 44 ) * + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT - CASE - - 61 WHEN + + NULLIF ( 97, + 17 * + 40 * + 78 ) THEN - 4 ELSE NULL END * - - ( - + 38 ) + + MAX ( 44 ) * + + 88
----
NULL

query I rowsort
SELECT - 93 * - + 80
----
7440

query I rowsort
SELECT + 57 + - 87 - - 18 * + 78
----
1374

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + 45 + MIN( DISTINCT - + 80 )
----
-35

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 45 + MIN ( DISTINCT - + 80 )
----
-35

query I rowsort
SELECT + 63 * + + 41 AS col2
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( * ) + - NULLIF ( 60, + + COUNT( * ) + + + 53 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( * ) + - NULLIF ( 60, + + COUNT ( * ) + + + 53 ) AS col0
----
-61

query I rowsort
SELECT ALL 9 * + - 81 AS col0
----
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT + 15 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-3574
SELECT + 15 / + 3
----
5

query I rowsort
SELECT ALL 21 * + + 67 * - 1 * + 83 AS col2
----
-116781

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + SUM( DISTINCT 78 ) + + CASE - 0 WHEN + + 26 * - - COUNT( * ) - + 42 THEN 55 WHEN + 75 * + COUNT( * ) + 4 THEN ( - - 54 ) ELSE + 66 END AS col2
----
144

skipif mysql # not compatible
query I rowsort label-3576
SELECT + SUM ( DISTINCT 78 ) + + CASE - 0 WHEN + + 26 * - - COUNT ( * ) - + 42 THEN 55 WHEN + 75 * + COUNT ( * ) + 4 THEN ( - - 54 ) ELSE + 66 END AS col2
----
144

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

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

query I rowsort
SELECT ALL ( + 46 ) * - - 63 AS col0
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT + 79 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 79 / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT - 85 DIV - + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 85 / - + 72 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT + SUM( ALL + - 32 ) + + 79 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3582
SELECT + SUM ( ALL + - 32 ) + + 79 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT - ( - + 26 ) AS col2, - CAST( + + 25 AS SIGNED ) * + 33 + - 54
----
26
-879

skipif mysql # not compatible
query II rowsort label-3583
SELECT - ( - + 26 ) AS col2, - CAST ( + + 25 AS INTEGER ) * + 33 + - 54
----
26
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 49 + + 10 + - ( + COUNT( * ) ) + + 98 * 26 AS col2
----
2606

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 49 + + 10 + - ( + COUNT ( * ) ) + + 98 * 26 AS col2
----
2606

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - 3 + + + COUNT( * ) * + CASE + 35 WHEN 9 / - - 14 THEN - 77 * 51 WHEN + + 35 + - ( - COUNT( * ) ) THEN NULL ELSE NULL END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 3 + + + COUNT ( * ) * + CASE + 35 WHEN 9 / - - 14 THEN - 77 * 51 WHEN + + 35 + - ( - COUNT ( * ) ) THEN NULL ELSE NULL END * 51
----
NULL

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

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

query I rowsort
SELECT ALL + + 7 * + 68 col1
----
476

query I rowsort
SELECT - 30 + 39 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT ALL + 88 DIV COALESCE ( + MAX( + 40 ), + MIN( DISTINCT 0 ) ) + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + 88 / COALESCE ( + MAX ( + 40 ), + MIN ( DISTINCT 0 ) ) + COUNT ( * ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT - - 38 * 91 DIV + 96 + 72 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3590
SELECT - - 38 * 91 / + 96 + 72 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT 40 / ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 40 / ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 76 AS col2
----
NULL

query I rowsort
SELECT - + ( + - 72 ) + - - 56 AS col0
----
128

query I rowsort
SELECT - 32 * - 77
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3594
SELECT - NULLIF ( + 10, - CAST( NULL AS SIGNED ) + + + 4 ) * 84 * COUNT( * ) * 0, - 34 DIV 96 * + - 80
----
0
0

skipif mysql # not compatible
query II rowsort label-3594
SELECT - NULLIF ( + 10, - CAST ( NULL AS INTEGER ) + + + 4 ) * 84 * COUNT ( * ) * 0, - 34 / 96 * + - 80
----
0
0

query I rowsort
SELECT ALL 90 * 38 * + + 17 AS col0
----
58140

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - + 22 * + CASE ( - 57 ) WHEN + ( + 36 ) THEN NULL WHEN + - 57 THEN - + 88 + - CASE ( 87 ) WHEN 89 THEN + ( + - CASE + - 14 WHEN + 95 THEN - - COUNT( + 8 ) ELSE + COUNT( * ) END ) ELSE 79 END ELSE 26 * ( ( - 0 ) ) END AS col0
----
3674

skipif mysql # not compatible
query I rowsort label-3596
SELECT - + 22 * + CASE ( - 57 ) WHEN + ( + 36 ) THEN NULL WHEN + - 57 THEN - + 88 + - CASE ( 87 ) WHEN 89 THEN + ( + - CASE + - 14 WHEN + 95 THEN - - COUNT ( + 8 ) ELSE + COUNT ( * ) END ) ELSE 79 END ELSE 26 * ( ( - 0 ) ) END AS col0
----
3674

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + SUM( ALL 12 ) * + 78
----
936

skipif mysql # not compatible
query I rowsort label-3597
SELECT + SUM ( ALL 12 ) * + 78
----
936

query I rowsort
SELECT NULLIF ( - - 53, 98 * 23 + - 97 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT SUM( ALL - 66 ) * + COUNT( * ) + ( 80 )
----
14

skipif mysql # not compatible
query I rowsort label-3599
SELECT SUM ( ALL - 66 ) * + COUNT ( * ) + ( 80 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT NULLIF ( 59, - - 6 * - + MAX( DISTINCT - 88 ) )
----
59

skipif mysql # not compatible
query I rowsort label-3600
SELECT NULLIF ( 59, - - 6 * - + MAX ( DISTINCT - 88 ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3601
SELECT COALESCE ( + 13, - 27 * + 10 + - - 77 + - 80 * + + MIN( - - 59 ) + - 83 + - + 88 DIV - + 6 * - 77 DIV + COALESCE ( + 29, + 52, - 74 * - - 90 ) * - 70 + + - 15 * - - 39 * CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3601
SELECT COALESCE ( + 13, - 27 * + 10 + - - 77 + - 80 * + + MIN ( - - 59 ) + - 83 + - + 88 / - + 6 * - 77 / + COALESCE ( + 29, + 52, - 74 * - - 90 ) * - 70 + + - 15 * - - 39 * CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + ( 74 ) + + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3602
SELECT + ( 74 ) + + - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT DISTINCT + COUNT( ALL + ( - 48 ) ) AS col1, COUNT( + 99 )
----
1
1

skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT + COUNT ( ALL + ( - 48 ) ) AS col1, COUNT ( + 99 )
----
1
1

query I rowsort
SELECT DISTINCT - ( 57 ) * + 49
----
-2793

query II rowsort
SELECT - COALESCE ( - - 46, 18, - 89 * - 86 ), - 9 + - 8 AS col2
----
-46
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT - MAX( ALL - 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3607
SELECT - MAX ( ALL - 53 ) AS col0
----
53

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

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

query I rowsort
SELECT - 55 - - 23
----
-32

query I rowsort
SELECT + 73 * - ( + 30 )
----
-2190

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT 61 + + + MIN( - 3 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 61 + + + MIN ( - 3 ) AS col0
----
58

query I rowsort
SELECT + 5 - 75 * 62 AS col2
----
-4645

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT 47 AS col2, - COUNT( * ) AS col1
----
47
-1

skipif mysql # not compatible
query II rowsort label-3615
SELECT 47 AS col2, - COUNT ( * ) AS col1
----
47
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT 70 * 52 - + 5 + 29 * COUNT( * ) - + + 25 * - 42 + - 71 AS col0
----
4643

skipif mysql # not compatible
query I rowsort label-3616
SELECT 70 * 52 - + 5 + 29 * COUNT ( * ) - + + 25 * - 42 + - 71 AS col0
----
4643

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3617
SELECT 92 DIV + 50 - + - CAST( + 72 AS SIGNED ) - + + 14, + ( - 50 ) col0
----
59
-50

skipif mysql # not compatible
query II rowsort label-3617
SELECT 92 / + 50 - + - CAST ( + 72 AS INTEGER ) - + + 14, + ( - 50 ) col0
----
59
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3618
SELECT 28 AS col0, CASE - ( 98 ) WHEN - 79 / - CASE + CAST( NULL AS SIGNED ) WHEN + - ( + ( 18 ) ) * 60 THEN - NULLIF ( - 50, - - 9 ) ELSE + - 6 END THEN NULL ELSE 44 END col1, + 87
----
28
44
87

skipif mysql # not compatible
query III rowsort label-3618
SELECT 28 AS col0, CASE - ( 98 ) WHEN - 79 / - CASE + CAST ( NULL AS INTEGER ) WHEN + - ( + ( 18 ) ) * 60 THEN - NULLIF ( - 50, - - 9 ) ELSE + - 6 END THEN NULL ELSE 44 END col1, + 87
----
28
44
87

query I rowsort
SELECT + 21 * - 36 col2
----
-756

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ALL - + 70 * 3 + - + 68, - COUNT( + 46 ) col1
----
-278
-1

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL - + 70 * 3 + - + 68, - COUNT ( + 46 ) col1
----
-278
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - 77 * COUNT( * ) + - 10 + + 66
----
-21

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 77 * COUNT ( * ) + - 10 + + 66
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT 35 AS col2, + COUNT( * ) * + 17 AS col0
----
35
17

skipif mysql # not compatible
query II rowsort label-3624
SELECT 35 AS col2, + COUNT ( * ) * + 17 AS col0
----
35
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3625
SELECT 40 DIV + NULLIF ( - ( CAST( - MIN( ALL + + 98 ) AS SIGNED ) ), 54 ) + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3625
SELECT 40 / + NULLIF ( - ( CAST ( - MIN ( ALL + + 98 ) AS INTEGER ) ), 54 ) + + 77 AS col1
----
77

query II rowsort
SELECT + 40 AS col2, 95 AS col1
----
40
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT 36 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT 36 / 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT 40 + + 51 DIV + 80 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3628
SELECT 40 + + 51 / + 80 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT 46 + CASE SUM( + 23 ) WHEN - ( 51 ) * + ( - NULLIF ( + + ( 56 ), - + 71 - + SUM( - 98 ) + 53 * - - 12 / 45 + 8 ) ) + - 67 THEN 69 ELSE NULL END + + 49 * + ( 62 ) + CASE ( 83 ) WHEN 47 THEN 0 * 89 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT 46 + CASE SUM ( + 23 ) WHEN - ( 51 ) * + ( - NULLIF ( + + ( 56 ), - + 71 - + SUM ( - 98 ) + 53 * - - 12 / 45 + 8 ) ) + - 67 THEN 69 ELSE NULL END + + 49 * + ( 62 ) + CASE ( 83 ) WHEN 47 THEN 0 * 89 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 55 + 64 AS col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT 62 DIV + ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT 62 / + ( + 74 )
----
0

query II rowsort
SELECT 7, 73 + - - 94 AS col1
----
7
167

query I rowsort
SELECT 74 + + 57 * - 81 * - 20
----
92414

query I rowsort
SELECT 45 + - 8
----
37

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

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

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

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

query I rowsort
SELECT 55 + + 93 col1
----
148

query I rowsort
SELECT 90 + + 23 AS col2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT 97 * + CAST( - 40 AS SIGNED )
----
-3880

skipif mysql # not compatible
query I rowsort label-3639
SELECT 97 * + CAST ( - 40 AS INTEGER )
----
-3880

query I rowsort
SELECT ALL 20 + 50 - - 15 col0
----
85

query I rowsort
SELECT DISTINCT + 15 + ( + 19 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT ALL - 10 + + 8 + - NULLIF ( + COALESCE ( 41, 37 DIV 45 * 67 DIV - 9 ), + + 5 )
----
-43

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - 10 + + 8 + - NULLIF ( + COALESCE ( 41, 37 / 45 * 67 / - 9 ), + + 5 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - COUNT( ALL 64 ), - 68 + ( - + 56 ) AS col0
----
-1
-124

skipif mysql # not compatible
query II rowsort label-3643
SELECT - COUNT ( ALL 64 ), - 68 + ( - + 56 ) AS col0
----
-1
-124

query I rowsort
SELECT 26 + 19
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT MAX( + - 37 ) + - + 40
----
-77

skipif mysql # not compatible
query I rowsort label-3645
SELECT MAX ( + - 37 ) + - + 40
----
-77

query II rowsort
SELECT ALL 6 AS col1, - CASE + - 74 WHEN - 93 THEN + - 33 WHEN - - 16 - - 19 * + 77 THEN NULL END * + 99 AS col0
----
6
NULL

query II rowsort
SELECT - 17, - 22 + - + 74 * - + ( - + 46 ) AS col2
----
-17
-3426

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + 1 + COUNT( ALL - 88 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 1 + COUNT ( ALL - 88 ) AS col0
----
2

query I rowsort
SELECT 65 * 66 + - 70
----
4220

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL COALESCE ( - 69, - + 43 ) * + - 9 + - 98 DIV + 69
----
620

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COALESCE ( - 69, - + 43 ) * + - 9 + - 98 / + 69
----
620

query I rowsort
SELECT 95 + 21 col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3652
SELECT ALL - MAX( ALL + ( - - 90 ) ) - 83 + 48 * COUNT( * ) + - + 68 AS col0, CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
-193
NULL

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - MAX ( ALL + ( - - 90 ) ) - 83 + 48 * COUNT ( * ) + - + 68 AS col0, CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
-193
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - 14 * COUNT( DISTINCT + COALESCE ( + 62, + + 8, 88 ) ) - + + COUNT( DISTINCT - 20 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - 14 * COUNT ( DISTINCT + COALESCE ( + 62, + + 8, 88 ) ) - + + COUNT ( DISTINCT - 20 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT COALESCE ( 99, + - SUM( ( - 89 ) ) ) DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-3654
SELECT COALESCE ( 99, + - SUM ( ( - 89 ) ) ) / 56
----
1

query I rowsort
SELECT 88 * + 60 AS col0
----
5280

query II rowsort
SELECT + - 75 AS col2, - 19
----
-75
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( * ) * - - 94 * + + COUNT( * ) - + - 93
----
187

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( * ) * - - 94 * + + COUNT ( * ) - + - 93
----
187

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

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - ( SUM ( 7 ) )
----
-7

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

skipif mysql # not compatible
query II rowsort label-3659
SELECT COUNT ( * ) AS col1, - 76 * COUNT ( * )
----
1
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3660
SELECT + 51 DIV ( - - 60 ) - + - COUNT( * ) * + ( 75 ) * - COUNT( * ) + + 9 * - + 67 col2, + COUNT( * ) col2
----
-678
1

skipif mysql # not compatible
query II rowsort label-3660
SELECT + 51 / ( - - 60 ) - + - COUNT ( * ) * + ( 75 ) * - COUNT ( * ) + + 9 * - + 67 col2, + COUNT ( * ) col2
----
-678
1

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

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MAX ( + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT COUNT( 23 )
----
1

skipif mysql # not compatible
query I rowsort label-3662
SELECT COUNT ( 23 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT ALL - 64 * - - MAX( + 73 ) AS col0, + 60
----
-4672
60

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL - 64 * - - MAX ( + 73 ) AS col0, + 60
----
-4672
60

query II rowsort
SELECT ALL + 9 + + 11 col2, - 27 AS col2
----
20
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT COUNT( DISTINCT + 7 ) AS col2, 16 + 91 - - - 48
----
1
59

skipif mysql # not compatible
query II rowsort label-3666
SELECT COUNT ( DISTINCT + 7 ) AS col2, 16 + 91 - - - 48
----
1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT ALL - COUNT( - 26 ) AS col1, 53 + 42
----
-1
95

skipif mysql # not compatible
query II rowsort label-3667
SELECT ALL - COUNT ( - 26 ) AS col1, 53 + 42
----
-1
95

query I rowsort
SELECT 65 * - ( + 57 )
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - MAX( - 0 ) * + + 98 - + 1
----
-1

skipif mysql # not compatible
query I rowsort label-3669
SELECT - MAX ( - 0 ) * + + 98 - + 1
----
-1

query I rowsort
SELECT ALL 92 * - 77 * + ( - + 33 ) AS col0
----
233772

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL - 74 + 59 + + COUNT( DISTINCT 86 ) + + + SUM( - + 12 )
----
-26

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - 74 + 59 + + COUNT ( DISTINCT 86 ) + + + SUM ( - + 12 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL 91 + - CASE 40 WHEN ( - 72 ) THEN + 67 ELSE - SUM( DISTINCT - 72 ) END
----
19

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 91 + - CASE 40 WHEN ( - 72 ) THEN + 67 ELSE - SUM ( DISTINCT - 72 ) END
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + 29 + + ( - COUNT( * ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + 29 + + ( - COUNT ( * ) ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - 74 + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 74 + COUNT ( * ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3676
SELECT - + 33 * - 64 AS col1, - 65 / + CAST( NULL AS SIGNED ) + - + 3
----
2112
NULL

skipif mysql # not compatible
query II rowsort label-3676
SELECT - + 33 * - 64 AS col1, - 65 / + CAST ( NULL AS INTEGER ) + - + 3
----
2112
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 96 * - COUNT( * ) - - 4 + + 39 - - + NULLIF ( + 32, + COALESCE ( + 65, + + 37, - COUNT( * ), + COUNT( * ) ) ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 96 * - COUNT ( * ) - - 4 + + 39 - - + NULLIF ( + 32, + COALESCE ( + 65, + + 37, - COUNT ( * ), + COUNT ( * ) ) ) AS col1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL + 22 DIV - 78 + + + 21
----
21

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 22 / - 78 + + + 21
----
21

query I rowsort
SELECT - - 59 + + 70
----
129

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

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

query II rowsort
SELECT - 54 + - 22 AS col2, 10 AS col2
----
-76
10

query I rowsort
SELECT - + 43 + + 30 + - 60 AS col0
----
-73

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

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

query I rowsort
SELECT + 39 * - - 50 * + 76
----
148200

query I rowsort
SELECT - 79 * - - 60
----
-4740

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT 74 DIV + 42 + - + 26 - - 88 col1
----
63

skipif mysql # not compatible
query I rowsort label-3686
SELECT 74 / + 42 + - + 26 - - 88 col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL + CAST( - AVG ( DISTINCT - + 20 ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + CAST ( - AVG ( DISTINCT - + 20 ) AS INTEGER ) AS col0
----
20

query I rowsort
SELECT DISTINCT + 58 * 22 + - 35 + - + 90
----
1151

query I rowsort
SELECT + COALESCE ( 36, + 47 )
----
36

query I rowsort
SELECT ALL + 26 * + 97 + + 65 AS col1
----
2587

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

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

query I rowsort
SELECT DISTINCT 92 * 51 col1
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL COUNT( * ) * + 24 * 51 + - - 93 col1
----
1317

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL COUNT ( * ) * + 24 * 51 + - - 93 col1
----
1317

query I rowsort
SELECT + 38 * - 35
----
-1330

query I rowsort
SELECT ALL 49 * 89 + - 59
----
4302

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT ALL + COUNT( * ) * + COUNT( * ) * - COUNT( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0
----
-1
-195884

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0
----
-1
-195884

query I rowsort
SELECT + ( - + 39 ) * + 25 + 56
----
-919

query II rowsort
SELECT DISTINCT + 29, + COALESCE ( - 97, + 72 - - + 5, + 13 * 87 ) AS col0
----
29
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT COALESCE ( - 22, - ( SUM( ALL 71 ) ) DIV - 60 ) * - 55 * + - 79 + 76
----
-95514

skipif mysql # not compatible
query I rowsort label-3700
SELECT COALESCE ( - 22, - ( SUM ( ALL 71 ) ) / - 60 ) * - 55 * + - 79 + 76
----
-95514

query II rowsort
SELECT ALL + 41 AS col2, - 13 AS col1
----
41
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COUNT( * ) * 21 * - SUM( + - 42 ) AS col0
----
882

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL COUNT ( * ) * 21 * - SUM ( + - 42 ) AS col0
----
882

query I rowsort
SELECT + COALESCE ( - 0, + 6 )
----
0

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

query I rowsort
SELECT DISTINCT 39 * 20
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3706
SELECT - CASE + 64 WHEN + NULLIF ( 69, + CAST( NULL AS SIGNED ) ) - 64 THEN SUM( - 22 ) WHEN - 82 THEN NULL ELSE NULL END * - + 21 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CASE + 64 WHEN + NULLIF ( 69, + CAST ( NULL AS INTEGER ) ) - 64 THEN SUM ( - 22 ) WHEN - 82 THEN NULL ELSE NULL END * - + 21 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + 40 * + - 21 + + - COUNT( * )
----
-841

skipif mysql # not compatible
query I rowsort label-3707
SELECT + 40 * + - 21 + + - COUNT ( * )
----
-841

query I rowsort
SELECT - 10 * + - 78 + - - 65 col0
----
845

query I rowsort
SELECT + - 70 + + ( - 59 ) * 76 AS col2
----
-4554

query I rowsort
SELECT - - 64 - 53
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT - NULLIF ( + - 16, - 49 * + - 40 + 83 * - 41 ) DIV + COALESCE ( - 54, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT - NULLIF ( + - 16, - 49 * + - 40 + 83 * - 41 ) / + COALESCE ( - 54, COUNT ( * ) )
----
0

query I rowsort
SELECT - + 89 - ( + - 21 )
----
-68

query I rowsort
SELECT ALL + 25 * 31
----
775

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - - 20 * + 5 + 62 + - - CASE - ( ( 58 ) ) WHEN + 84 THEN - 54 WHEN 27 + + 49 + + MAX( - 69 ) * MAX( 65 ) THEN - COUNT( * ) ELSE NULL END AS col0, + 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3714
SELECT - - 20 * + 5 + 62 + - - CASE - ( ( 58 ) ) WHEN + 84 THEN - 54 WHEN 27 + + 49 + + MAX ( - 69 ) * MAX ( 65 ) THEN - COUNT ( * ) ELSE NULL END AS col0, + 93 AS col1
----
NULL
93

query I rowsort
SELECT ALL + 14 + + 62 AS col1
----
76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL 39 DIV + COUNT( * ) + + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL 39 / + COUNT ( * ) + + + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT COUNT( * ) DIV + + 87 + - + 20 + + 9 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3718
SELECT COUNT ( * ) / + + 87 + - + 20 + + 9 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT ALL SUM( - 43 ) DIV + COUNT( * ) + + COUNT( ALL 23 ) + - COALESCE ( - + MAX( ALL - 61 ), + + 39 ) * + SUM( - 60 ) * 87 AS col0
----
318378

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL SUM ( - 43 ) / + COUNT ( * ) + + COUNT ( ALL 23 ) + - COALESCE ( - + MAX ( ALL - 61 ), + + 39 ) * + SUM ( - 60 ) * 87 AS col0
----
318378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3720
SELECT ALL 3 DIV COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL 3 / COUNT ( * ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT ALL 76 DIV + 40 + 85 * - 37 AS col2
----
-3144

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 76 / + 40 + 85 * - 37 AS col2
----
-3144

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL CASE + - 5 WHEN - 86 THEN NULL WHEN + - 5 + - - 54 - - - 28 * COUNT( * ) THEN - 24 ELSE NULL END / - - 99 + + + 28 + 25 + + 24 * - 45 * - - COUNT( * ) AS col0, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL CASE + - 5 WHEN - 86 THEN NULL WHEN + - 5 + - - 54 - - - 28 * COUNT ( * ) THEN - 24 ELSE NULL END / - - 99 + + + 28 + 25 + + 24 * - 45 * - - COUNT ( * ) AS col0, 78
----
NULL
78

query I rowsort
SELECT 96 * - - 62
----
5952

query II rowsort
SELECT DISTINCT 2 * + 29, 19 AS col2
----
58
19

query I rowsort
SELECT 9 * - 71 AS col0
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT MAX( + ( - - 94 ) ) - - - 96
----
-2

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT MAX ( + ( - - 94 ) ) - - - 96
----
-2

query I rowsort
SELECT 86 * - 16
----
-1376

query I rowsort
SELECT ALL + 20 * 32 * - 82 AS col2
----
-52480

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

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + 69 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - + COUNT( * ) * COUNT( * ) - + 42 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3730
SELECT - + COUNT ( * ) * COUNT ( * ) - + 42 AS col2
----
-43

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3732
SELECT COALESCE ( 95, - 68, - 7 ), - 27 DIV - - 48 AS col1
----
95
0

skipif mysql # not compatible
query II rowsort label-3732
SELECT COALESCE ( 95, - 68, - 7 ), - 27 / - - 48 AS col1
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT COUNT( 42 ) * - + 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3733
SELECT COUNT ( 42 ) * - + 55 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - - 87 * - COUNT( * ) * - 77 + COUNT( * ) + - COUNT( + + 83 )
----
6699

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - 87 * - COUNT ( * ) * - 77 + COUNT ( * ) + - COUNT ( + + 83 )
----
6699

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

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

query I rowsort
SELECT + ( ( - - 23 ) ) - - 83
----
106

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

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

query I rowsort
SELECT DISTINCT 39 * - 54
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + - 49 + - + 92 * ( + + NULLIF ( + MAX( DISTINCT - 27 ), - 42 * - 33 * - + ( 32 ) * 17 - - 60 * + + 64 * + 22 ) ) + - + COUNT( * ) * + 92 * + COUNT( * ) * - 28 - 58 + + 29 AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + - 49 + - + 92 * ( + + NULLIF ( + MAX ( DISTINCT - 27 ), - 42 * - 33 * - + ( 32 ) * 17 - - 60 * + + 64 * + 22 ) ) + - + COUNT ( * ) * + 92 * + COUNT ( * ) * - 28 - 58 + + 29 AS col1
----
4982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3740
SELECT DISTINCT - - 86 + COUNT( - 48 ) * + 13 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT - - 86 + COUNT ( - 48 ) * + 13 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - 60 + 58 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT DISTINCT SUM( DISTINCT 23 ) col0, - 43 AS col2
----
23
-43

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT SUM ( DISTINCT 23 ) col0, - 43 AS col2
----
23
-43

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

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

query I rowsort
SELECT ( 84 ) - 36 AS col0
----
48

query I rowsort
SELECT 81 * - 9 AS col2
----
-729

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - 5 DIV CAST( 8 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - 5 / CAST ( 8 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + 33 * 62
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT 74 - - + COUNT( * ) * - 99
----
-25

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 74 - - + COUNT ( * ) * - 99
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL - NULLIF ( - + MIN( 20 ), + + MAX( DISTINCT + 71 ) * COUNT( * ) + - ( + COUNT( * ) ) + MIN( DISTINCT - - 78 ) * - + 91 ) * COUNT( * ) * + + 10 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - NULLIF ( - + MIN ( 20 ), + + MAX ( DISTINCT + 71 ) * COUNT ( * ) + - ( + COUNT ( * ) ) + MIN ( DISTINCT - - 78 ) * - + 91 ) * COUNT ( * ) * + + 10 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT 80 - + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3750
SELECT 80 - + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT DISTINCT - 33 * + - 98 AS col1
----
3234

query II rowsort
SELECT ALL - 61 AS col0, 80 + - ( NULLIF ( + + 10, - 34 ) ) * 70
----
-61
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 69, - MIN( ALL - + 60 ), - - 68 ), 55 + 9 )
----
-69

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 69, - MIN ( ALL - + 60 ), - - 68 ), 55 + 9 )
----
-69

query I rowsort
SELECT ALL - 15 * - 16
----
240

query I rowsort
SELECT 70 + + 12 * - 30
----
-290

query I rowsort
SELECT 6 * - 76 * 36
----
-16416

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

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

query I rowsort
SELECT ALL - ( - COALESCE ( - 43, - 37 * - 16 + + 36 ) ) AS col0
----
-43

query I rowsort
SELECT 52 * + + 7 + + 9 col1
----
373

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3760
SELECT 16 * + - 29 * - 64 - + COUNT( * ) / - - COUNT( * ) * - CAST( NULL AS DECIMAL ) - + 98 * - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT 16 * + - 29 * - 64 - + COUNT ( * ) / - - COUNT ( * ) * - CAST ( NULL AS REAL ) - + 98 * - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 96 * + COUNT( * ) * + 73 AS col1
----
7008

skipif mysql # not compatible
query I rowsort label-3761
SELECT 96 * + COUNT ( * ) * + 73 AS col1
----
7008

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT 99 + - - 65 DIV + + 50 col1
----
100

skipif mysql # not compatible
query I rowsort label-3762
SELECT 99 + - - 65 / + + 50 col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - NULLIF ( - + ( + COUNT( * ) ), + ( - COALESCE ( + - 2, + 62, - 6 ) ) * 74 )
----
1

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - NULLIF ( - + ( + COUNT ( * ) ), + ( - COALESCE ( + - 2, + 62, - 6 ) ) * 74 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL - 99 DIV - - 33
----
-3

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - 99 / - - 33
----
-3

query I rowsort
SELECT 70 * + + 3 - - ( - 52 ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + + COUNT( + - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3766
SELECT + + COUNT ( + - 63 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3768
SELECT DISTINCT - 36 AS col1, SUM( ALL - 25 ) + - 79 AS col1
----
-36
-104

skipif mysql # not compatible
query II rowsort label-3768
SELECT DISTINCT - 36 AS col1, SUM ( ALL - 25 ) + - 79 AS col1
----
-36
-104

query I rowsort
SELECT + 36 * - + 3 * - 57 * + 54
----
332424

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

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 6 + - COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL 84 + - + 73 * + COALESCE ( + + CASE - 72 WHEN - - ( 85 ) THEN - + 51 END, - 90 + CASE - 75 WHEN - - 4 + - 90 * COUNT( * ) * - - 2 * - ( 48 ) THEN NULL WHEN - 78 / + + 87 THEN NULL ELSE + - 47 END, + 95 ) * 0 * + 87 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 84 + - + 73 * + COALESCE ( + + CASE - 72 WHEN - - ( 85 ) THEN - + 51 END, - 90 + CASE - 75 WHEN - - 4 + - 90 * COUNT ( * ) * - - 2 * - ( 48 ) THEN NULL WHEN - 78 / + + 87 THEN NULL ELSE + - 47 END, + 95 ) * 0 * + 87 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 57 ) + 56 + - + 85 AS col2
----
28

query I rowsort
SELECT ALL + 7 + - 14
----
-7

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

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

skipif mysql # not compatible
query I rowsort label-3775
SELECT 98 + - COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( + 46 AS SIGNED ) - - 34 - 19
----
61

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( + 46 AS INTEGER ) - - 34 - 19
----
61

query I rowsort
SELECT 91 + 70 AS col0
----
161

query II rowsort
SELECT 8 col2, + 92 AS col2
----
8
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - SUM( 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3779
SELECT - SUM ( 41 ) AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3780
SELECT CAST( + 14 AS SIGNED ) + 82 * + 18, - 86 AS col2
----
1490
-86

skipif mysql # not compatible
query II rowsort label-3780
SELECT CAST ( + 14 AS INTEGER ) + 82 * + 18, - 86 AS col2
----
1490
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 92 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 92 * COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT - 80 + CASE + 90 WHEN + + 41 THEN + 0 + - + 1 / 90 - - + COUNT( + + ( + 18 ) ) - - CAST( - 70 AS SIGNED ) * + - 92 * + + CAST( NULL AS SIGNED ) ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 80 + CASE + 90 WHEN + + 41 THEN + 0 + - + 1 / 90 - - + COUNT ( + + ( + 18 ) ) - - CAST ( - 70 AS INTEGER ) * + - 92 * + + CAST ( NULL AS INTEGER ) ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 70, 51 AS col2
----
70
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + MIN( DISTINCT + 30 ) * + 16
----
480

skipif mysql # not compatible
query I rowsort label-3785
SELECT + MIN ( DISTINCT + 30 ) * + 16
----
480

query I rowsort
SELECT - 56 + - 4 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ALL 56, - 18 + - COUNT( * ) AS col1
----
56
-19

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL 56, - 18 + - COUNT ( * ) AS col1
----
56
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3788
SELECT DISTINCT 55 * - 5 / - CAST( NULL AS SIGNED ) - + 90 AS col0, CAST( NULL AS SIGNED ) / - COUNT( * ) + 84 / - - 32 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT 55 * - 5 / - CAST ( NULL AS INTEGER ) - + 90 AS col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 84 / - - 32 AS col1
----
NULL
NULL

query I rowsort
SELECT 47 * COALESCE ( + 99, + 40 ) + - 29
----
4624

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

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

query I rowsort
SELECT + ( - 63 ) * 95 + - 67 * + 75 AS col0
----
-11010

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

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 23 / 85 * - + ( 41 ) * + 45 + - + COUNT ( * )
----
-1

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

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

query I rowsort
SELECT ALL - 84 * + 52 AS col0
----
-4368

query I rowsort
SELECT ALL - 54 * + 61 * - 57
----
187758

query I rowsort
SELECT - 49 * 89 AS col2
----
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - + CASE - CASE + 23 WHEN 21 THEN - - 50 END WHEN - - MIN( + 57 ) + + 3 * 60 THEN - 23 WHEN - ( - + 62 ) THEN NULL WHEN - SUM( - 60 ) + + 94 * - COUNT( * ) THEN + 70 ELSE NULL END * - 69 - - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT - + CASE - CASE + 23 WHEN 21 THEN - - 50 END WHEN - - MIN ( + 57 ) + + 3 * 60 THEN - 23 WHEN - ( - + 62 ) THEN NULL WHEN - SUM ( - 60 ) + + 94 * - COUNT ( * ) THEN + 70 ELSE NULL END * - 69 - - - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT - 7 - 86 + - - 78 DIV 93
----
-93

skipif mysql # not compatible
query I rowsort label-3798
SELECT - 7 - 86 + - - 78 / 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT ALL + 20, MIN( 31 ) AS col2
----
20
31

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL + 20, MIN ( 31 ) AS col2
----
20
31

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

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

query II rowsort
SELECT 10 AS col0, - 23 * - + 39 * - 15
----
10
-13455

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT + + SUM( 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + + SUM ( 54 ) AS col0
----
54

query I rowsort
SELECT + CASE - 89 WHEN 30 - + 43 + + 57 THEN - 40 * - AVG ( 44 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 12, 80 + - 10 + - 16 col1
----
12
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 58 * + 67 - 60 + - COUNT( * ) + + 24 AS col1
----
3849

skipif mysql # not compatible
query I rowsort label-3805
SELECT 58 * + 67 - 60 + - COUNT ( * ) + + 24 AS col1
----
3849

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT - - COUNT( * ) AS col0, 34 * - 17
----
1
-578

skipif mysql # not compatible
query II rowsort label-3806
SELECT - - COUNT ( * ) AS col0, 34 * - 17
----
1
-578

query I rowsort
SELECT DISTINCT - 36 + - 20 * ( + 61 )
----
-1256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3808
SELECT - + 72 * + 41 - - 17 + - 39 DIV - - 18 - + + 86 * - 87 AS col0, + 11 + + COALESCE ( COUNT( * ), + + 34, + CAST( NULL AS SIGNED ) ) + - 20 * 93 * + 84
----
4545
-156228

skipif mysql # not compatible
query II rowsort label-3808
SELECT - + 72 * + 41 - - 17 + - 39 / - - 18 - + + 86 * - 87 AS col0, + 11 + + COALESCE ( COUNT ( * ), + + 34, + CAST ( NULL AS INTEGER ) ) + - 20 * 93 * + 84
----
4545
-156228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3809
SELECT - 11 AS col2, 70 * + COUNT( * ) DIV + - 93 * - 40 * - 45 + + 40 AS col2
----
-11
40

skipif mysql # not compatible
query II rowsort label-3809
SELECT - 11 AS col2, 70 * + COUNT ( * ) / + - 93 * - 40 * - 45 + + 40 AS col2
----
-11
40

query I rowsort
SELECT + - 0 + - + 18 + 60
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT + 27 * + + COUNT( * ), CASE 33 WHEN + 56 THEN ( + - 35 ) * COUNT( * ) ELSE NULL END AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT + 27 * + + COUNT ( * ), CASE 33 WHEN + 56 THEN ( + - 35 ) * COUNT ( * ) ELSE NULL END AS col1
----
27
NULL

query I rowsort
SELECT DISTINCT - 42 * - 41 col0
----
1722

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT ALL ( COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL ( COUNT ( * ) ), COUNT ( * )
----
1
1

query II rowsort
SELECT DISTINCT ( + 52 ), + 8 AS col2
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - COALESCE ( + + COUNT( * ), - COUNT( * ) + + 68 * - - 2 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3815
SELECT - COALESCE ( + + COUNT ( * ), - COUNT ( * ) + + 68 * - - 2 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - 68 - + 1 + ( COUNT( * ) ) + - 32 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 68 - + 1 + ( COUNT ( * ) ) + - 32 AS col1
----
-100

query II rowsort
SELECT + 32 * 39, + 82 AS col1
----
1248
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3818
SELECT + COALESCE ( - COUNT( * ), + + 78 + + 6 + 94 - + 82, + + 14 DIV + 54 + 71 DIV 68 * + 3 - - ( + + ( - + 53 ) ) ) + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-3818
SELECT + COALESCE ( - COUNT ( * ), + + 78 + + 6 + 94 - + 82, + + 14 / + 54 + 71 / 68 * + 3 - - ( + + ( - + 53 ) ) ) + - 67
----
-68

query I rowsort
SELECT DISTINCT 85 * - + 23 AS col2
----
-1955

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3820
SELECT + ( + + COALESCE ( + CASE - SUM( DISTINCT - 18 ) WHEN - COUNT( * ) + + - 26 THEN COUNT( * ) * + - 57 END, 15, - + SUM( 71 ) ) ) * + 30 DIV 84 DIV - - 86 AS col1, - 91 * + - 37 * + COUNT( * ) * 19 * - COALESCE ( 71, - - 60 )
----
0
-4542083

skipif mysql # not compatible
query II rowsort label-3820
SELECT + ( + + COALESCE ( + CASE - SUM ( DISTINCT - 18 ) WHEN - COUNT ( * ) + + - 26 THEN COUNT ( * ) * + - 57 END, 15, - + SUM ( 71 ) ) ) * + 30 / 84 / - - 86 AS col1, - 91 * + - 37 * + COUNT ( * ) * 19 * - COALESCE ( 71, - - 60 )
----
0
-4542083

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT + 14 - - + 69 + - 31 - + + COUNT( * ) + + 11 - - COUNT( * ) DIV 54 * + 7 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 14 - - + 69 + - 31 - + + COUNT ( * ) + + 11 - - COUNT ( * ) / 54 * + 7 AS col0
----
62

query I rowsort
SELECT ALL 20 * + 15
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT 32 DIV - 70 + + + 88 * + CASE + + ( + 89 ) WHEN 82 THEN NULL WHEN - 69 THEN + NULLIF ( + CASE - AVG ( DISTINCT - + 85 ) WHEN COUNT( * ) THEN NULL WHEN 35 * - 84 + - 68 + CAST( 31 AS DECIMAL ) - - + COUNT( * ) DIV + 0 + AVG ( ALL + 9 ) * + CASE 8 WHEN + COUNT( * ) * + 15 DIV + + COUNT( 13 ) * - 7 + - 2 * COUNT( * ) THEN NULL WHEN - CASE - COUNT( * ) WHEN MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 29 THEN + 60 WHEN - 9 DIV + 99 + 78 * - ( - 28 * - 1 - 72 ) THEN NULL ELSE NULL END THEN - COUNT( * ) * CASE NULLIF ( 13, ( 59 ) ) WHEN NULLIF ( 42, + 4 + - 51 ) * 22 + - COUNT( * ) THEN NULL WHEN ( + 32 ) + SUM( - 25 ) THEN + 15 * 36 ELSE NULL END END + 69 THEN 39 ELSE 43 * COUNT( * ) END, - 51 + 31 ) * - CASE + CAST( NULL AS SIGNED ) WHEN 15 + COUNT( * ) THEN 93 ELSE NULL END ELSE + COUNT( * ) * + 59 + - ( 87 ) END DIV - 28 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT 32 / - 70 + + + 88 * + CASE + + ( + 89 ) WHEN 82 THEN NULL WHEN - 69 THEN + NULLIF ( + CASE - AVG ( DISTINCT - + 85 ) WHEN COUNT ( * ) THEN NULL WHEN 35 * - 84 + - 68 + CAST ( 31 AS REAL ) - - + COUNT ( * ) / + 0 + AVG ( ALL + 9 ) * + CASE 8 WHEN + COUNT ( * ) * + 15 / + + COUNT ( 13 ) * - 7 + - 2 * COUNT ( * ) THEN NULL WHEN - CASE - COUNT ( * ) WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 29 THEN + 60 WHEN - 9 / + 99 + 78 * - ( - 28 * - 1 - 72 ) THEN NULL ELSE NULL END THEN - COUNT ( * ) * CASE NULLIF ( 13, ( 59 ) ) WHEN NULLIF ( 42, + 4 + - 51 ) * 22 + - COUNT ( * ) THEN NULL WHEN ( + 32 ) + SUM ( - 25 ) THEN + 15 * 36 ELSE NULL END END + 69 THEN 39 ELSE 43 * COUNT ( * ) END, - 51 + 31 ) * - CASE + CAST ( NULL AS INTEGER ) WHEN 15 + COUNT ( * ) THEN 93 ELSE NULL END ELSE + COUNT ( * ) * + 59 + - ( 87 ) END / - 28 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL + 42 DIV + - 49 + - 84 + + 85 * - 4
----
-424

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 42 / + - 49 + - 84 + + 85 * - 4
----
-424

query II rowsort
SELECT - ( + 10 ) * - 32 + + 36 * - 88, 86 * + 22 AS col2
----
-2848
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 64 / + + COALESCE ( + - 41, 45 * + 71, + ( + + 29 ) ) / + CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 64 / + + COALESCE ( + - 41, 45 * + 71, + ( + + 29 ) ) / + CAST ( NULL AS INTEGER ) + + 64
----
NULL

query I rowsort
SELECT - CASE - + 58 WHEN + 43 THEN NULL ELSE + 50 END AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + 77 + - MIN( ALL - COALESCE ( - 31, + 15 ) ) + - 22 + - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 77 + - MIN ( ALL - COALESCE ( - 31, + 15 ) ) + - 22 + - COUNT ( * ) AS col1
----
23

query I rowsort
SELECT - 46 * 65 - + + 87 + 73
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - MAX( 65 ) - - + 42 + - 3 - - + 46 * - + 77 * - 69
----
244372

skipif mysql # not compatible
query I rowsort label-3831
SELECT - MAX ( 65 ) - - + 42 + - 3 - - + 46 * - + 77 * - 69
----
244372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT 79 DIV + 31 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT 79 / + 31 * - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3833
SELECT + CAST( NULL AS DECIMAL ) + 49 + - + 38 AS col0, - 37 AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-3833
SELECT + CAST ( NULL AS REAL ) + 49 + - + 38 AS col0, - 37 AS col2
----
NULL
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + MIN( - 21 ) * + 58 * 49 + 66
----
-59616

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + MIN ( - 21 ) * + 58 * 49 + 66
----
-59616

query I rowsort
SELECT - - 62 * + 78 AS col0
----
4836

query I rowsort
SELECT DISTINCT - 10 * + + ( - 98 ) + 34 * + + 83 + 12 + 35 AS col2
----
3849

query I rowsort
SELECT DISTINCT - 3 * + ( + 77 ) + + 5 * 15 + + 26 AS col0
----
-130

query I rowsort
SELECT ALL + 67 * - 18 + 62 col2
----
-1144

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

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

query I rowsort
SELECT - - 10 + + + 45 AS col2
----
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT CASE + + 16 WHEN ( - 92 ) - - 52 THEN + - 44 * - 11 - - - CAST( + + 91 AS SIGNED ) * + COUNT( * ) / + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT( * ) * - + 3 + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT CASE + + 16 WHEN ( - 92 ) - - 52 THEN + - 44 * - 11 - - - CAST ( + + 91 AS INTEGER ) * + COUNT ( * ) / + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT ( * ) * - + 3 + 1 ELSE NULL END
----
NULL

query I rowsort
SELECT 83 * + 32 * + 46 + 29 + + 74
----
122279

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT ALL + 83 DIV 58 * + 81
----
81

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + 83 / 58 * + 81
----
81

query I rowsort
SELECT ALL - 29 - + 59 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT - 41 AS col0, COUNT( * ) - + CASE + + 10 WHEN - 25 * - 42 + - + COALESCE ( + MIN( - 3 ), - 61, 44 + + + 55 ) THEN NULL WHEN + + 25 THEN 97 / 54 - 12 + COUNT( ALL - 68 ) - + + 85 END + + 42 * 45 * + 97
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-3846
SELECT - 41 AS col0, COUNT ( * ) - + CASE + + 10 WHEN - 25 * - 42 + - + COALESCE ( + MIN ( - 3 ), - 61, 44 + + + 55 ) THEN NULL WHEN + + 25 THEN 97 / 54 - 12 + COUNT ( ALL - 68 ) - + + 85 END + + 42 * 45 * + 97
----
-41
NULL

query I rowsort
SELECT 71 + 11 * + 33 + 6 * + 4 + + 59 AS col0
----
517

query I rowsort
SELECT ALL + 56 * + 72 AS col1
----
4032

query I rowsort
SELECT DISTINCT - 66 * 88
----
-5808

query I rowsort
SELECT 6 + - 63 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT 26 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT 26 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT - 39 + + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - 39 + + + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT ALL 61 + - 75 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3854
SELECT - 73 AS col0, - COALESCE ( + COUNT( * ), CASE - 2 WHEN MAX( DISTINCT - - 12 ) * - CAST( NULL AS SIGNED ) / + - 93 THEN - + 84 END, + + 19 * - COUNT( * ), 52 )
----
-73
-1

skipif mysql # not compatible
query II rowsort label-3854
SELECT - 73 AS col0, - COALESCE ( + COUNT ( * ), CASE - 2 WHEN MAX ( DISTINCT - - 12 ) * - CAST ( NULL AS INTEGER ) / + - 93 THEN - + 84 END, + + 19 * - COUNT ( * ), 52 )
----
-73
-1

query II rowsort
SELECT 76 AS col2, 16 AS col2
----
76
16

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

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL 5 + + CASE COUNT ( * ) WHEN - + 82 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3857
SELECT 51 DIV - + MIN( DISTINCT - + 46 ) + + 95 + + 69 + - MAX( 67 ) + + ( - MIN( - 60 ) ) DIV 6 + + + NULLIF ( - 62, - 48 ) DIV + + 84 + - 3 col2, 18 * + ( 94 )
----
105
1692

skipif mysql # not compatible
query II rowsort label-3857
SELECT 51 / - + MIN ( DISTINCT - + 46 ) + + 95 + + 69 + - MAX ( 67 ) + + ( - MIN ( - 60 ) ) / 6 + + + NULLIF ( - 62, - 48 ) / + + 84 + - 3 col2, 18 * + ( 94 )
----
105
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3858
SELECT + CASE + ( - 69 ) WHEN - COUNT( * ) THEN - - ( COUNT( * ) ) END, 58 DIV - 81 * + CASE - COUNT( * ) WHEN 74 THEN NULL WHEN + + 37 THEN NULL ELSE - 48 DIV + 63 + - 36 END - + 67 AS col1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-3858
SELECT + CASE + ( - 69 ) WHEN - COUNT ( * ) THEN - - ( COUNT ( * ) ) END, 58 / - 81 * + CASE - COUNT ( * ) WHEN 74 THEN NULL WHEN + + 37 THEN NULL ELSE - 48 / + 63 + - 36 END - + 67 AS col1
----
NULL
-67

query I rowsort
SELECT ALL - 71 + - + 74
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT 2, 9 + - 74 + 51 * + COALESCE ( COUNT( * ), + + 94 ) * + 12 + + + 93 AS col1
----
2
640

skipif mysql # not compatible
query II rowsort label-3860
SELECT 2, 9 + - 74 + 51 * + COALESCE ( COUNT ( * ), + + 94 ) * + 12 + + + 93 AS col1
----
2
640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - 2 + + SUM( - 91 ) + + 41 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - 2 + + SUM ( - 91 ) + + 41 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-3863
SELECT + 66 AS col0, + 5 * - 90 DIV 87 + - 16 + - 47 * ( - ( + + 46 ) )
----
66
2141

skipif mysql # not compatible
query II rowsort label-3863
SELECT + 66 AS col0, + 5 * - 90 / 87 + - 16 + - 47 * ( - ( + + 46 ) )
----
66
2141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT - ( - 28 ) + - ( COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - ( - 28 ) + - ( COUNT ( * ) )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT + 67 AS col0, COALESCE ( - COUNT( DISTINCT 85 ), - 63 )
----
67
-1

skipif mysql # not compatible
query II rowsort label-3866
SELECT + 67 AS col0, COALESCE ( - COUNT ( DISTINCT 85 ), - 63 )
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL 8 - - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL 8 - - COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT 55 * 70 - COUNT( DISTINCT - + 60 )
----
3849

skipif mysql # not compatible
query I rowsort label-3868
SELECT 55 * 70 - COUNT ( DISTINCT - + 60 )
----
3849

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT SUM( ALL - - ( 13 ) ) * + 17 * - 6
----
-1326

skipif mysql # not compatible
query I rowsort label-3869
SELECT SUM ( ALL - - ( 13 ) ) * + 17 * - 6
----
-1326

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

skipif mysql # not compatible
query I rowsort label-3870
SELECT + + ( - SUM ( + + 91 ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3871
SELECT + ( - 34 ) - - 65 * + + CAST( NULL AS SIGNED ) * - - ( 71 ) AS col2, NULLIF ( 89, - 42 / MIN( DISTINCT + - 75 ) * - + 93 + + - 6 + + 42 ) + - - COUNT( * ) AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3871
SELECT + ( - 34 ) - - 65 * + + CAST ( NULL AS INTEGER ) * - - ( 71 ) AS col2, NULLIF ( 89, - 42 / MIN ( DISTINCT + - 75 ) * - + 93 + + - 6 + + 42 ) + - - COUNT ( * ) AS col1
----
NULL
90

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

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

query II rowsort
SELECT DISTINCT - 83 col1, + 8 * - NULLIF ( + 34, + 70 + + 32 * + - 96 ) * + 88 AS col2
----
-83
-23936

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - + NULLIF ( + 50, + 52 ) * + + 94 * - + COUNT( * ) AS col1
----
4700

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - + NULLIF ( + 50, + 52 ) * + + 94 * - + COUNT ( * ) AS col1
----
4700

query I rowsort
SELECT 42 * 38
----
1596

query I rowsort
SELECT - 41 * - 72 AS col0
----
2952

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

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

query I rowsort
SELECT ALL 45 * - + 87
----
-3915

query I rowsort
SELECT ( - - 43 ) * - 74
----
-3182

query II rowsort
SELECT 0 * - 83 AS col1, - 23
----
0
-23

query I rowsort
SELECT ALL + 88 * + 78
----
6864

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT 16 + - - 0 - + COUNT( ALL + 32 ), 80 + - + 25 AS col2
----
15
55

skipif mysql # not compatible
query II rowsort label-3882
SELECT 16 + - - 0 - + COUNT ( ALL + 32 ), 80 + - + 25 AS col2
----
15
55

query I rowsort
SELECT ALL + 52 + + 38 AS col1
----
90

query I rowsort
SELECT ALL 3 + + ( 32 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT DISTINCT 62 + 22 + + + 57 * COUNT( * ) * + CASE + MAX( 56 ) WHEN + COUNT( * ) * 24 + - + 38 - + 51 * ( + 32 ) * - + AVG ( 69 ) + + 12 + - 54 + COUNT( * ) / 65 THEN NULL WHEN CAST( NULL AS SIGNED ) - 97 + - 89 + - 11 + + - 60 * + - 27 / + + 79 / - 35 THEN + 16 * - ( NULLIF ( - 33, - 15 / COUNT( * ) ) ) END * + NULLIF ( 22 * + COUNT( * ), - 89 / - 22 ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 62 + 22 + + + 57 * COUNT ( * ) * + CASE + MAX ( 56 ) WHEN + COUNT ( * ) * 24 + - + 38 - + 51 * ( + 32 ) * - + AVG ( 69 ) + + 12 + - 54 + COUNT ( * ) / 65 THEN NULL WHEN CAST ( NULL AS INTEGER ) - 97 + - 89 + - 11 + + - 60 * + - 27 / + + 79 / - 35 THEN + 16 * - ( NULLIF ( - 33, - 15 / COUNT ( * ) ) ) END * + NULLIF ( 22 * + COUNT ( * ), - 89 / - 22 ) * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT DISTINCT SUM( - + 90 ) AS col1, 83 AS col2
----
-90
83

skipif mysql # not compatible
query II rowsort label-3886
SELECT DISTINCT SUM ( - + 90 ) AS col1, 83 AS col2
----
-90
83

query I rowsort
SELECT 15 * + 33
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT 95 - MIN( - + 39 ) * ( + - 50 )
----
-1855

skipif mysql # not compatible
query I rowsort label-3888
SELECT 95 - MIN ( - + 39 ) * ( + - 50 )
----
-1855

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

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

query I rowsort
SELECT 5 + - 15 + - 81 * 3 * 66 AS col2
----
-16048

query I rowsort
SELECT 40 * + - 18
----
-720

query I rowsort
SELECT 15 + + 55 col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL - + 63 + 22 + + + 12 + COUNT( * ) * + + 47 DIV 58 col0
----
-29

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - + 63 + 22 + + + 12 + COUNT ( * ) * + + 47 / 58 col0
----
-29

query II rowsort
SELECT - 82 * + COALESCE ( 36, + 19 ) AS col2, 30
----
-2952
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL + COUNT( * ) * - - 79 * - 20 AS col0
----
-1580

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + COUNT ( * ) * - - 79 * - 20 AS col0
----
-1580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3896
SELECT ALL COUNT( * ) DIV + + 67 - COUNT( * ) * - + 76 AS col1, 44 AS col0
----
76
44

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL COUNT ( * ) / + + 67 - COUNT ( * ) * - + 76 AS col1, 44 AS col0
----
76
44

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

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

query I rowsort
SELECT + 62 * + + 79 AS col0
----
4898

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT DISTINCT - ( + 58 ), 7 * COALESCE ( + COUNT( ALL + 68 ), + + 15 ) col2
----
-58
7

skipif mysql # not compatible
query II rowsort label-3899
SELECT DISTINCT - ( + 58 ), 7 * COALESCE ( + COUNT ( ALL + 68 ), + + 15 ) col2
----
-58
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT DISTINCT COUNT( * ) * 92 * + 28 * + 25 col0, 72
----
64400
72

skipif mysql # not compatible
query II rowsort label-3900
SELECT DISTINCT COUNT ( * ) * 92 * + 28 * + 25 col0, 72
----
64400
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT MAX( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3901
SELECT MAX ( DISTINCT - 5 )
----
-5

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

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( ALL + 87 ) AS col1
----
1

query I rowsort
SELECT + ( + 34 ) + + 61
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL 15 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 15 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + COUNT( * ) + + COALESCE ( 34, 13, + 98 * - ( + 39 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3905
SELECT + COUNT ( * ) + + COALESCE ( 34, 13, + 98 * - ( + 39 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL 27 + MAX( - - 91 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 27 + MAX ( - - 91 ) AS col0
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT 62 + - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3909
SELECT ALL + ( - COUNT( * ) ) + - 42 AS col1, - COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) / - 21 * 90
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL + ( - COUNT ( * ) ) + - 42 AS col1, - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) / - 21 * 90
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL 97 + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 97 + - COUNT ( * ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3911
SELECT - 67 + + ( + 98 ) DIV + - 57 + 61, + 0 AS col1
----
-7
0

skipif mysql # not compatible
query II rowsort label-3911
SELECT - 67 + + ( + 98 ) / + - 57 + 61, + 0 AS col1
----
-7
0

query I rowsort
SELECT DISTINCT 90 * + 60
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL COALESCE ( 28, 58 ) + + 62 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL COALESCE ( 28, 58 ) + + 62 - + - COUNT ( * )
----
91

query I rowsort
SELECT + 55 + + 35 AS col0
----
90

query I rowsort
SELECT + 31 + - 87 AS col0
----
-56

query I rowsort
SELECT - 37 + + 88
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - COUNT( * ) + + - ( - ( - 44 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( * ) + + - ( - ( - 44 ) ) AS col1
----
-45

query II rowsort
SELECT - 27, 6 * + 7 col0
----
-27
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT - - CAST( 97 AS SIGNED ) + + + 13 + + COUNT( * ) * - COUNT( 70 )
----
109

skipif mysql # not compatible
query I rowsort label-3919
SELECT - - CAST ( 97 AS INTEGER ) + + + 13 + + COUNT ( * ) * - COUNT ( 70 )
----
109

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT - CASE - 68 WHEN - COUNT( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3921
SELECT - CASE - 68 WHEN - COUNT ( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - + 99 + 96 + - 27 * - MAX( DISTINCT 11 ) * + 43 + + 27
----
12795

skipif mysql # not compatible
query I rowsort label-3922
SELECT - + 99 + 96 + - 27 * - MAX ( DISTINCT 11 ) * + 43 + + 27
----
12795

query I rowsort
SELECT - 16 * - 82 - 56 AS col2
----
1256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT - CAST( + 23 AS SIGNED ) * 44
----
-1012

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - CAST ( + 23 AS INTEGER ) * 44
----
-1012

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

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

query I rowsort
SELECT - + 50 * - - ( + ( + + 53 ) )
----
-2650

query I rowsort
SELECT DISTINCT - 86 * - 96
----
8256

query I rowsort
SELECT ALL + 28 * 51 AS col0
----
1428

query I rowsort
SELECT - 82 * + 18 * - + 92 col0
----
135792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT DISTINCT + COUNT( * ) * CASE - + 19 WHEN 6 THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col2, 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3930
SELECT DISTINCT + COUNT ( * ) * CASE - + 19 WHEN 6 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, 91 col0
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL + 92 AS col2, - 4 + MAX( 62 ) + - NULLIF ( - 69, - COUNT( * ) + + + 37 + - 16 ) + COUNT( * )
----
92
128

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL + 92 AS col2, - 4 + MAX ( 62 ) + - NULLIF ( - 69, - COUNT ( * ) + + + 37 + - 16 ) + COUNT ( * )
----
92
128

query I rowsort
SELECT - 0 * + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT ALL + 84 * + - 69 + - 76 * - - COUNT( * ) * - + ( - + MAX( DISTINCT - COALESCE ( - + 23, + 84, + + 93 ) ) ), 37 AS col0
----
-7544
37

skipif mysql # not compatible
query II rowsort label-3933
SELECT ALL + 84 * + - 69 + - 76 * - - COUNT ( * ) * - + ( - + MAX ( DISTINCT - COALESCE ( - + 23, + 84, + + 93 ) ) ), 37 AS col0
----
-7544
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - COUNT( * ) * - 15
----
15

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - COUNT ( * ) * - 15
----
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT 39 * + 5 * + 77 + ( + 44 ) DIV - 71
----
15015

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT 39 * + 5 * + 77 + ( + 44 ) / - 71
----
15015

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3938
SELECT ALL - 3 * + 69 + CASE - + COUNT( * ) WHEN 61 THEN NULL WHEN + - 75 THEN - 39 * - 20 ELSE NULL END + - CASE + 68 WHEN 55 * + + 16 THEN NULL ELSE - 32 END + + + ( - CASE + 34 WHEN - COUNT( * ) THEN - + MAX( ALL - CAST( NULL AS SIGNED ) ) WHEN + 39 / - 37 THEN NULL ELSE NULL END ) * - 62 + - 64 * - SUM( 82 ) + 74 - - 78 + + - CAST( 2 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - 3 * + 69 + CASE - + COUNT ( * ) WHEN 61 THEN NULL WHEN + - 75 THEN - 39 * - 20 ELSE NULL END + - CASE + 68 WHEN 55 * + + 16 THEN NULL ELSE - 32 END + + + ( - CASE + 34 WHEN - COUNT ( * ) THEN - + MAX ( ALL - CAST ( NULL AS INTEGER ) ) WHEN + 39 / - 37 THEN NULL ELSE NULL END ) * - 62 + - 64 * - SUM ( 82 ) + 74 - - 78 + + - CAST ( 2 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL 88 * + - 57 + + + 59 + - COUNT( * )
----
-4958

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL 88 * + - 57 + + + 59 + - COUNT ( * )
----
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - 45 * 74 / + CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - 45 * 74 / + CAST ( NULL AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT - ( + 78 ) - - 83 AS col1
----
5

query I rowsort
SELECT ALL 60 * + 25 + + - 98 AS col1
----
1402

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT NULLIF ( - - 11, COUNT( * ) * 0 )
----
11

skipif mysql # not compatible
query I rowsort label-3943
SELECT NULLIF ( - - 11, COUNT ( * ) * 0 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT 4 * - + 11 * + 60 + COUNT( * ) * + + ( 1 ) * - COUNT( * ) * 76 + - - 58 + + 32 AS col0
----
-2626

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT 4 * - + 11 * + 60 + COUNT ( * ) * + + ( 1 ) * - COUNT ( * ) * 76 + - - 58 + + 32 AS col0
----
-2626

query I rowsort
SELECT ALL 56 * NULLIF ( 48, + 21 - - + 18 / + COALESCE ( - - 50, + 60 ) ) AS col1
----
2688

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - 3 * - - COUNT( * ) + - 79
----
-82

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 3 * - - COUNT ( * ) + - 79
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT + 20 * ( + 74 ) DIV 95 DIV - - 38 * - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT + 20 * ( + 74 ) / 95 / - - 38 * - 2 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3949
SELECT ALL 15 AS col1, 46 * + + COALESCE ( + 15, + + 68 DIV 50 + + - 22, + 15 DIV - - 4 + - 70 )
----
15
690

skipif mysql # not compatible
query II rowsort label-3949
SELECT ALL 15 AS col1, 46 * + + COALESCE ( + 15, + + 68 / 50 + + - 22, + 15 / - - 4 + - 70 )
----
15
690

query II rowsort
SELECT ALL 17 AS col1, + 44 + 30
----
17
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT CASE SUM( - 85 ) WHEN - - COALESCE ( 77, - COALESCE ( 3, - 91 * - 66 + - 19 ) * 80 + - 36 / 10 + + 76 + + 15 * + 73 + COUNT( * ) * - COUNT( + + 51 ) ) + + + 61 - 36 THEN 78 ELSE 65 END - - 44 * 64 AS col1
----
2881

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT CASE SUM ( - 85 ) WHEN - - COALESCE ( 77, - COALESCE ( 3, - 91 * - 66 + - 19 ) * 80 + - 36 / 10 + + 76 + + 15 * + 73 + COUNT ( * ) * - COUNT ( + + 51 ) ) + + + 61 - 36 THEN 78 ELSE 65 END - - 44 * 64 AS col1
----
2881

query I rowsort
SELECT + 84 * + 95 * + 12
----
95760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3953
SELECT + COUNT( * ) DIV 96 * + - 25 * 15 AS col0, - 4 AS col0
----
0
-4

skipif mysql # not compatible
query II rowsort label-3953
SELECT + COUNT ( * ) / 96 * + - 25 * 15 AS col0, - 4 AS col0
----
0
-4

query II rowsort
SELECT ALL 26 AS col2, 65 * + 14 * + - 4
----
26
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT - 92 * - CAST( - 77 AS SIGNED ) AS col0
----
-7084

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - 92 * - CAST ( - 77 AS INTEGER ) AS col0
----
-7084

query I rowsort
SELECT + - 34 * 26 AS col0
----
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT + MAX( - ( 84 ) ) * - 93 AS col1, ( - 39 )
----
7812
-39

skipif mysql # not compatible
query II rowsort label-3957
SELECT + MAX ( - ( 84 ) ) * - 93 AS col1, ( - 39 )
----
7812
-39

query I rowsort
SELECT + NULLIF ( 80, - 3 ) + - 79 + + - ( + ( - 27 ) ) * + 33 + + 76
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + + MAX( ALL - 14 ) * 93 AS col1
----
-1302

skipif mysql # not compatible
query I rowsort label-3959
SELECT + + MAX ( ALL - 14 ) * 93 AS col1
----
-1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL CAST( + 52 AS SIGNED ) * 20
----
1040

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL CAST ( + 52 AS INTEGER ) * 20
----
1040

query I rowsort
SELECT + 44 + - + 19
----
25

query I rowsort
SELECT DISTINCT - 32 * + 33 * - 53
----
55968

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + SUM( + 33 ) + - 18 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3963
SELECT + SUM ( + 33 ) + - 18 AS col0
----
15

query II rowsort
SELECT ALL 80 col0, + 91
----
80
91

query II rowsort
SELECT - ( - 53 ) AS col1, + 31
----
53
31

query II rowsort
SELECT DISTINCT 13 AS col2, - 67 AS col0
----
13
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + 32 * + - 74 + - + 21 + 96 / + CAST( NULL AS SIGNED ) / - 93 * - + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 32 * + - 74 + - + 21 + 96 / + CAST ( NULL AS INTEGER ) / - 93 * - + 8 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT DISTINCT + - 99 + + - 42 AS col1, 9 + + 21 DIV - 66 AS col1
----
-141
9

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT + - 99 + + - 42 AS col1, 9 + + 21 / - 66 AS col1
----
-141
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - 47 + + COUNT( 48 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - 47 + + COUNT ( 48 ) AS col2
----
-46

query I rowsort
SELECT - 60 + + ( - - 63 )
----
3

query I rowsort
SELECT - 34 + - 72 * + 22
----
-1618

query I rowsort
SELECT ALL + + 49 + - + 46 + + + ( - 49 ) AS col0
----
-46

query II rowsort
SELECT 44 AS col1, - 97 AS col2
----
44
-97

query I rowsort
SELECT ALL + - 24 * - 6 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + CASE 79 WHEN + + 60 + + COUNT( - - 83 ) * 34 THEN NULL WHEN - - 80 THEN NULL WHEN 22 THEN NULLIF ( - 54, + COUNT( * ) * - + 39 + - COUNT( DISTINCT + 37 ) ) END / 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT + CASE 79 WHEN + + 60 + + COUNT ( - - 83 ) * 34 THEN NULL WHEN - - 80 THEN NULL WHEN 22 THEN NULLIF ( - 54, + COUNT ( * ) * - + 39 + - COUNT ( DISTINCT + 37 ) ) END / 39 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT ( - COUNT( * ) ) * - + 87 * + - 46 - - ( + COALESCE ( + CAST( - ( + + 61 ) AS SIGNED ), - + 45, - 45 ) ) + 76 + + 54 + - COUNT( * ) + + - 95
----
-4029

skipif mysql # not compatible
query I rowsort label-3976
SELECT ( - COUNT ( * ) ) * - + 87 * + - 46 - - ( + COALESCE ( + CAST ( - ( + + 61 ) AS INTEGER ), - + 45, - 45 ) ) + 76 + + 54 + - COUNT ( * ) + + - 95
----
-4029

query II rowsort
SELECT ALL 86 + + - ( 17 ) AS col1, 81 col2
----
69
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + 93 + + 5 + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 93 + + 5 + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT 9 + - - 33 AS col2
----
42

query I rowsort
SELECT 15 * + 2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3981
SELECT ALL - CAST( 74 AS SIGNED ) AS col2, 57 AS col0
----
-74
57

skipif mysql # not compatible
query II rowsort label-3981
SELECT ALL - CAST ( 74 AS INTEGER ) AS col2, 57 AS col0
----
-74
57

query I rowsort
SELECT ALL - 39 + 38 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT - CASE 44 WHEN - + CAST( NULL AS SIGNED ) THEN ( - + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - CASE 44 WHEN - + CAST ( NULL AS INTEGER ) THEN ( - + 65 ) END
----
NULL

query I rowsort
SELECT 15 + + + 93 AS col2
----
108

query I rowsort
SELECT 18 * + 17 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT 95 * COUNT( * ) + 31 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-3986
SELECT 95 * COUNT ( * ) + 31 AS col0
----
126

query I rowsort
SELECT DISTINCT - 58 - 0 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3988
SELECT ALL + COALESCE ( + COUNT( * ), + 3 + + 99 + - + 71 * - 93 * - MAX( CAST( NULL AS SIGNED ) ) ) * + MIN( DISTINCT - - 15 ) AS col1, 84
----
15
84

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL + COALESCE ( + COUNT ( * ), + 3 + + 99 + - + 71 * - 93 * - MAX ( CAST ( NULL AS INTEGER ) ) ) * + MIN ( DISTINCT - - 15 ) AS col1, 84
----
15
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT SUM( + + 15 ) + + 75
----
90

skipif mysql # not compatible
query I rowsort label-3989
SELECT SUM ( + + 15 ) + + 75
----
90

query I rowsort
SELECT DISTINCT + 86 * + 92 AS col1
----
7912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT 63 * + COUNT( * ) - + + MAX( - 6 ) DIV + + 31
----
63

skipif mysql # not compatible
query I rowsort label-3991
SELECT 63 * + COUNT ( * ) - + + MAX ( - 6 ) / + + 31
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ALL + COUNT( * ) DIV 30 + 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + COUNT ( * ) / 30 + 88 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT ALL + ( + SUM( ALL 63 ) ) DIV + ( + 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + ( + SUM ( ALL 63 ) ) / + ( + 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT 32 * - - 41 col0, SUM( DISTINCT 80 )
----
1312
80

skipif mysql # not compatible
query II rowsort label-3994
SELECT 32 * - - 41 col0, SUM ( DISTINCT 80 )
----
1312
80

query I rowsort
SELECT ALL 8 + - + 87
----
-79

query II rowsort
SELECT 62 + - - ( - 22 ), + ( + 15 ) AS col0
----
40
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT ALL + 67 DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + 67 / - 85 AS col0
----
0

query I rowsort
SELECT DISTINCT + 9 + - + ( + ( - 49 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT + COALESCE ( + 41, - + 56, - 32 * + 86 * ( - + 83 ) DIV COUNT( * ) + - + 6 )
----
41

skipif mysql # not compatible
query I rowsort label-3999
SELECT + COALESCE ( + 41, - + 56, - 32 * + 86 * ( - + 83 ) / COUNT ( * ) + - + 6 )
----
41

query I rowsort
SELECT 55 * - 25 AS col1
----
-1375

query II rowsort
SELECT ALL + 26 + - 26 col0, - 12 AS col0
----
0
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT - - 37 DIV + + 10 + + COUNT( * ) DIV - - 75 + + ( - + 5 ) * - + 75 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-4002
SELECT - - 37 / + + 10 + + COUNT ( * ) / - - 75 + + ( - + 5 ) * - + 75 AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - 35 + - 32 - ( COUNT( - NULLIF ( + + 46, - 24 + - - 18 ) ) ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - 35 + - 32 - ( COUNT ( - NULLIF ( + + 46, - 24 + - - 18 ) ) ) col2
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4004
SELECT CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT CAST ( NULL AS REAL ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT MAX( DISTINCT - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4005
SELECT MAX ( DISTINCT - - 29 )
----
29

query II rowsort
SELECT + 38, 86 AS col0
----
38
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL ( - 31 ) - - + 69 * + MIN( ALL - 16 ) AS col0
----
-1135

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL ( - 31 ) - - + 69 * + MIN ( ALL - 16 ) AS col0
----
-1135

query I rowsort
SELECT 34 * 22
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - MAX( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - MAX ( + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + ( + COUNT( * ) ) * 9 * 93 + - 27 + + ( COUNT( * ) )
----
811

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + ( + COUNT ( * ) ) * 9 * 93 + - 27 + + ( COUNT ( * ) )
----
811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT 18 + 47 * ( - - 24 ) + 34 + - 42 - COALESCE ( + 75, - CAST( NULL AS SIGNED ), + 22 ) + + 95 * CASE CASE 93 WHEN 67 * - COUNT( * ) / + 67 * + + CAST( + - 40 AS SIGNED ) + + 88 - - + COUNT( * ) * - 48 - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN - 39 / - 8 END WHEN + - 51 * 14 THEN + - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT 18 + 47 * ( - - 24 ) + 34 + - 42 - COALESCE ( + 75, - CAST ( NULL AS INTEGER ), + 22 ) + + 95 * CASE CASE 93 WHEN 67 * - COUNT ( * ) / + 67 * + + CAST ( + - 40 AS INTEGER ) + + 88 - - + COUNT ( * ) * - 48 - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - 39 / - 8 END WHEN + - 51 * 14 THEN + - 18 END
----
NULL

query I rowsort
SELECT 24 * 72 * - ( - 65 ) col2
----
112320

query II rowsort
SELECT ALL - 69 AS col0, 4 AS col2
----
-69
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT 43 DIV - - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT 43 / - - 80 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL - 36 DIV - 93 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - 36 / - 93 * - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT 50 * + ( - COUNT( * ) ) * - - 66 AS col0
----
-3300

skipif mysql # not compatible
query I rowsort label-4016
SELECT 50 * + ( - COUNT ( * ) ) * - - 66 AS col0
----
-3300

query I rowsort
SELECT 53 - + 57
----
-4

query II rowsort
SELECT ( + 68 ) * + - 79, 39 - - 7 col0
----
-5372
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL COUNT ( ALL 24 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT 3 AS col1, 42 * COUNT( * ) * - - ( 96 )
----
3
4032

skipif mysql # not compatible
query II rowsort label-4020
SELECT 3 AS col1, 42 * COUNT ( * ) * - - ( 96 )
----
3
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT 33 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT 33 / 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT - 30, COUNT( * ) + 24 AS col1
----
-30
25

skipif mysql # not compatible
query II rowsort label-4022
SELECT - 30, COUNT ( * ) + 24 AS col1
----
-30
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4023
SELECT ALL ( COUNT( + CAST( + 62 AS DECIMAL ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL ( COUNT ( + CAST ( + 62 AS REAL ) ) ) col0
----
1

query II rowsort
SELECT ( - 94 ) * + 2, 72 AS col0
----
-188
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL - CAST( - ( - - 98 ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - CAST ( - ( - - 98 ) AS INTEGER )
----
98

query II rowsort
SELECT + 20 AS col1, 99 * - + 73 + - + 49 col1
----
20
-7276

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - COUNT( * ) + - 15 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - COUNT ( * ) + - 15 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT + 70, ( + + SUM( - + 87 ) ) AS col0
----
70
-87

skipif mysql # not compatible
query II rowsort label-4028
SELECT + 70, ( + + SUM ( - + 87 ) ) AS col0
----
70
-87

query II rowsort
SELECT + 3, 54 col2
----
3
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT DISTINCT - 49 * 58 / + ( + COALESCE ( 75, - COUNT( * ) * + 90 / + + 85 * + - 12 / COUNT( * ) * - NULLIF ( - + CAST( NULL AS SIGNED ), + 99 ), - - 50 ) ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - 49 * 58 / + ( + COALESCE ( 75, - COUNT ( * ) * + 90 / + + 85 * + - 12 / COUNT ( * ) * - NULLIF ( - + CAST ( NULL AS INTEGER ), + 99 ), - - 50 ) ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 6 + + 43 * + - 41 * 31 AS col0
----
-54647

query I rowsort
SELECT + - 10 * + + 54 AS col0
----
-540

query I rowsort
SELECT - - 99 + - 94 + ( + 56 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - + COUNT( ALL + + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4034
SELECT - + COUNT ( ALL + + 44 ) AS col2
----
-1

query II rowsort
SELECT - - 50 + 28 + + 69 AS col1, 88 + - + 26 AS col0
----
147
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + MAX( ALL 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + MAX ( ALL 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT + + COUNT( 63 ) + CAST( NULL AS SIGNED ) * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT + + COUNT ( 63 ) + CAST ( NULL AS INTEGER ) * + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT - - 80 AS col1, SUM( + ( - 98 ) )
----
80
-98

skipif mysql # not compatible
query II rowsort label-4038
SELECT - - 80 AS col1, SUM ( + ( - 98 ) )
----
80
-98

query II rowsort
SELECT 5, 58 AS col0
----
5
58

query I rowsort
SELECT + 92 + - - 24 * 88 col1
----
2204

query I rowsort
SELECT ALL 86 * + - 61
----
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - COUNT( * ) * 86 + + - 87 * 61 AS col0
----
-5393

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COUNT ( * ) * 86 + + - 87 * 61 AS col0
----
-5393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4043
SELECT ALL + 22 * 29 / + 68 - + NULLIF ( + + CAST( NULL AS SIGNED ), - ( + 70 ) * + 8 + + 58 + 90 + 15 ) / - 69 AS col1, 99 AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-4043
SELECT ALL + 22 * 29 / + 68 - + NULLIF ( + + CAST ( NULL AS INTEGER ), - ( + 70 ) * + 8 + + 58 + 90 + 15 ) / - 69 AS col1, 99 AS col0
----
NULL
99

query II rowsort
SELECT ( - - 93 ), 84 AS col1
----
93
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + COUNT( * ) + - - 54
----
55

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( * ) + - - 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 45 * NULLIF ( + 62, + 55 * - - COUNT( * ) + 12 )
----
2790

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 45 * NULLIF ( + 62, + 55 * - - COUNT ( * ) + 12 )
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL 50 * - - MIN( DISTINCT + 83 ) AS col2
----
4150

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 50 * - - MIN ( DISTINCT + 83 ) AS col2
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COUNT( * ) * + 98 * + 67 AS col0
----
6566

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( * ) * + 98 * + 67 AS col0
----
6566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL CAST( NULL AS SIGNED ) * - ( - - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - - 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT CASE - 46 WHEN - - 63 * - - ( + 15 ) + - 96 THEN NULL WHEN + 84 + + + 30 + 4 THEN - MIN( DISTINCT - 30 ) + 85 ELSE NULL END AS col1, ( - - 57 ) col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4050
SELECT CASE - 46 WHEN - - 63 * - - ( + 15 ) + - 96 THEN NULL WHEN + 84 + + + 30 + 4 THEN - MIN ( DISTINCT - 30 ) + 85 ELSE NULL END AS col1, ( - - 57 ) col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT 12 * + COUNT( * ) + + COUNT( * ) + + + 28
----
41

skipif mysql # not compatible
query I rowsort label-4051
SELECT 12 * + COUNT ( * ) + + COUNT ( * ) + + + 28
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT CASE - 22 WHEN + NULLIF ( COUNT( DISTINCT - + 98 ), - COUNT( * ) ) THEN + COUNT( DISTINCT 14 ) * + 52 + - 99 + + 76 * - ( - - COUNT( * ) ) WHEN + 25 THEN - 40 END * - 75 * - 32 * + - COUNT( * ) + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT CASE - 22 WHEN + NULLIF ( COUNT ( DISTINCT - + 98 ), - COUNT ( * ) ) THEN + COUNT ( DISTINCT 14 ) * + 52 + - 99 + + 76 * - ( - - COUNT ( * ) ) WHEN + 25 THEN - 40 END * - 75 * - 32 * + - COUNT ( * ) + - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 85 * + 54 AS col1
----
4590

query I rowsort
SELECT ALL 91 * + 22
----
2002

query I rowsort
SELECT + 61 + 62 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT CASE + 99 WHEN 49 THEN NULL WHEN + 52 + + + CASE - COUNT( * ) WHEN COUNT( * ) * - 36 THEN COUNT( + 4 ) WHEN 88 / 50 THEN NULL ELSE NULL END THEN - 99 - + 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT CASE + 99 WHEN 49 THEN NULL WHEN + 52 + + + CASE - COUNT ( * ) WHEN COUNT ( * ) * - 36 THEN COUNT ( + 4 ) WHEN 88 / 50 THEN NULL ELSE NULL END THEN - 99 - + 83 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT 13 * 62 + COUNT( * ) - - - 35, + 51 col2
----
772
51

skipif mysql # not compatible
query II rowsort label-4057
SELECT 13 * 62 + COUNT ( * ) - - - 35, + 51 col2
----
772
51

query I rowsort
SELECT + 49 * 8 * - 3
----
-1176

query I rowsort
SELECT - 55 * 38 * - 16 AS col0
----
33440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4060
SELECT MAX( 80 ) AS col1, + 86 DIV + 86
----
80
1

skipif mysql # not compatible
query II rowsort label-4060
SELECT MAX ( 80 ) AS col1, + 86 / + 86
----
80
1

query I rowsort
SELECT ALL - 41 * ( 87 ) AS col2
----
-3567

query I rowsort
SELECT + 19 + 69
----
88

query I rowsort
SELECT - 80 * + + 85 + + 46
----
-6754

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - COUNT( * ) * - + MIN( - NULLIF ( + 70, + - 53 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - COUNT ( * ) * - + MIN ( - NULLIF ( + 70, + - 53 ) )
----
-70

query I rowsort
SELECT DISTINCT NULLIF ( 20, - 12 ) AS col1
----
20

query II rowsort
SELECT - - 14 + - 19 col2, - 21 * + + ( - 33 ) * + 7 * ( 47 )
----
-5
227997

query I rowsort
SELECT - + ( 64 ) + - - 58 col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + ( + + COUNT( * ) ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-4068
SELECT + ( + + COUNT ( * ) ) * 41
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT - COUNT( * ) DIV + - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - COUNT ( * ) / + - 29 AS col2
----
0

query I rowsort
SELECT - 26 * - - 45
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - MIN( ( + - 79 ) ) + - 80 + 42 col0
----
41

skipif mysql # not compatible
query I rowsort label-4071
SELECT - MIN ( ( + - 79 ) ) + - 80 + 42 col0
----
41

query I rowsort
SELECT DISTINCT - - 79 + - 62 - ( NULLIF ( + 41, + 86 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT ( + COUNT( ALL + 29 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT ( + COUNT ( ALL + 29 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT - + MAX( + 18 ) * - 12 * + + 29, SUM( ALL - 15 ) AS col0
----
6264
-15

skipif mysql # not compatible
query II rowsort label-4074
SELECT - + MAX ( + 18 ) * - 12 * + + 29, SUM ( ALL - 15 ) AS col0
----
6264
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4075
SELECT DISTINCT - - 4 * + - SUM( DISTINCT - 88 ) / - 2 + - 36 + + 78 - CAST( NULL AS DECIMAL ) * + 24 + + 33 - - 27 / + COUNT( * ) * - 61 * - 50 * + 9 + + + 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - - 4 * + - SUM ( DISTINCT - 88 ) / - 2 + - 36 + + 78 - CAST ( NULL AS REAL ) * + 24 + + 33 - - 27 / + COUNT ( * ) * - 61 * - 50 * + 9 + + + 19 col0
----
NULL

query I rowsort
SELECT ALL + 44 * + 85 * - 89 AS col2
----
-332860

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 29 * COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 29 * COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT - 69 * ( 84 ) DIV 24 + - 57
----
-298

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 69 * ( 84 ) / 24 + - 57
----
-298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL CAST( + + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL CAST ( + + 20 AS INTEGER ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4080
SELECT ALL CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + + 3 + + - MIN( ( 39 ) ) + - + COUNT( * ) AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-4080
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + + 3 + + - MIN ( ( 39 ) ) + - + COUNT ( * ) AS col1
----
NULL
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT + 21 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT + 21 / - 90
----
0

query I rowsort
SELECT - 33 * + 2 * - - 61 AS col2
----
-4026

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT - 68 * MAX( ALL - 7 ) col0, + COUNT( * ) * - 71 * - 25 + - 57
----
476
1718

skipif mysql # not compatible
query II rowsort label-4083
SELECT - 68 * MAX ( ALL - 7 ) col0, + COUNT ( * ) * - 71 * - 25 + - 57
----
476
1718

query I rowsort
SELECT ALL CASE + 98 WHEN - 27 + 45 * 83 THEN + 48 + + - 74 + 55 END / 47 AS col2
----
NULL

query I rowsort
SELECT ALL 97 * 32 AS col1
----
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT + CASE 21 WHEN 37 THEN - + COUNT( * ) + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT + CASE 21 WHEN 37 THEN - + COUNT ( * ) + - - COUNT ( * ) END
----
NULL

query II rowsort
SELECT DISTINCT + 85 AS col0, - 18
----
85
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT - 49 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT - 49 / + 75 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT + SUM( - NULLIF ( 32, + 50 * + + 17 ) ) DIV - 25 col0
----
1

skipif mysql # not compatible
query I rowsort label-4089
SELECT + SUM ( - NULLIF ( 32, + 50 * + + 17 ) ) / - 25 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT CAST( + - 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4090
SELECT CAST ( + - 48 AS INTEGER ) AS col2
----
-48

query I rowsort
SELECT ALL 37 * - - 44 AS col2
----
1628

query I rowsort
SELECT + NULLIF ( + + 86, - 98 ) AS col2
----
86

query II rowsort
SELECT 66, + 44 AS col1
----
66
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4094
SELECT ALL 1 + - + ( - + 76 ) + + CAST( NULL AS SIGNED ) * - + 92 / - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS DECIMAL ) + - + COUNT( * ) - - 64 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 1 + - + ( - + 76 ) + + CAST ( NULL AS INTEGER ) * - + 92 / - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS REAL ) + - + COUNT ( * ) - - 64 + - 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT ALL ( 19 ) + + + 47 DIV - SUM( DISTINCT - ( + - 58 ) ) * + + 3
----
19

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL ( 19 ) + + + 47 / - SUM ( DISTINCT - ( + - 58 ) ) * + + 3
----
19

query I rowsort
SELECT + - NULLIF ( 92, - NULLIF ( + 15, - 65 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4097
SELECT ALL - 24 + - - ( - + 5 ), SUM( DISTINCT + ( - CASE 27 WHEN 40 * - 15 * + 38 THEN NULL WHEN - 49 THEN NULL ELSE + - 87 * + CAST( NULL AS SIGNED ) + - 79 + + 45 END ) ) AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - 24 + - - ( - + 5 ), SUM ( DISTINCT + ( - CASE 27 WHEN 40 * - 15 * + 38 THEN NULL WHEN - 49 THEN NULL ELSE + - 87 * + CAST ( NULL AS INTEGER ) + - 79 + + 45 END ) ) AS col0
----
-29
NULL

query I rowsort
SELECT - 44 * 17 + - 13 AS col0
----
-761

query I rowsort
SELECT ALL NULLIF ( + 59, - 82 ) + + 99
----
158

query I rowsort
SELECT ALL - + ( - 74 ) col2
----
74

query I rowsort
SELECT 48 - - + ( 76 ) * 7 AS col1
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL COUNT( * ) DIV + 86 * - 13 + - 8 * - ( - 44 ) AS col1
----
-352

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( * ) / + 86 * - 13 + - 8 * - ( - 44 ) AS col1
----
-352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4103
SELECT - CAST( NULL AS DECIMAL ) / 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT - CAST ( NULL AS REAL ) / 36 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - 28 * + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 28 * + COUNT ( * )
----
-28

query I rowsort
SELECT 17 - + 84 col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT CASE + - COALESCE ( + 29, + 54 ) WHEN - + 48 THEN 4 WHEN + + CAST( - + MIN( ( 43 ) ) AS SIGNED ) THEN - + 35 + + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT CASE + - COALESCE ( + 29, + 54 ) WHEN - + 48 THEN 4 WHEN + + CAST ( - + MIN ( ( 43 ) ) AS INTEGER ) THEN - + 35 + + + 95 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL 30 - - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL 30 - - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 53, - 52 * - 51 col0
----
53
2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - CAST( - ( 7 ) AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4109
SELECT - CAST ( - ( 7 ) AS INTEGER ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL + 48 DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + 48 / 34 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT CAST( NULL AS SIGNED ) + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT CAST ( NULL AS INTEGER ) + - 56 AS col2
----
NULL

query I rowsort
SELECT 44 - + + 3
----
41

query I rowsort
SELECT 18 + 55 * 44 * + 14
----
33898

query II rowsort
SELECT 19 AS col2, 88 AS col0
----
19
88

query I rowsort
SELECT ALL - 49 * - + 61
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT 43 + - 63 + - 37 + - + MIN( - + 95 )
----
38

skipif mysql # not compatible
query I rowsort label-4116
SELECT 43 + - 63 + - 37 + - + MIN ( - + 95 )
----
38

query I rowsort
SELECT + 1 * - - 37 + + 81
----
118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4118
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - CAST( + - 74 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - CAST ( + - 74 AS REAL )
----
NULL

query II rowsort
SELECT + 55 AS col1, ( 64 )
----
55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + 41 * + - MIN( DISTINCT - - 68 ) AS col1
----
-2788

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + 41 * + - MIN ( DISTINCT - - 68 ) AS col1
----
-2788

query I rowsort
SELECT ALL - 86 + + 47
----
-39

query II rowsort
SELECT DISTINCT + 32 + - - 57 - - 21 - CASE - 45 WHEN + 37 THEN NULL WHEN - 40 + + 76 / ( + 85 ) * + - 16 THEN + + NULLIF ( + 82, - 96 ) + 94 + - + 19 * - 4 + + 23 WHEN + 70 THEN NULL ELSE - 38 END + - 30 AS col0, 58
----
118
58

query I rowsort
SELECT ALL - ( + 28 ) + + 39 * + + 86 AS col2
----
3326

query II rowsort
SELECT ALL - 39 AS col1, 1 AS col1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4125
SELECT COUNT( * ) * + + 4 + 29 + - 55 DIV - 36 + + - CAST( 64 AS SIGNED ) + - 68
----
-98

skipif mysql # not compatible
query I rowsort label-4125
SELECT COUNT ( * ) * + + 4 + 29 + - 55 / - 36 + + - CAST ( 64 AS INTEGER ) + - 68
----
-98

query I rowsort
SELECT ALL - 9 + 89 AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT + + 0 / + 63 * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + + 0 / + 63 * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4128
SELECT - CAST( NULL AS DECIMAL ) * 8 + - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT - CAST ( NULL AS REAL ) * 8 + - ( - 91 )
----
NULL

query I rowsort
SELECT + 8 + + 94
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4130
SELECT ALL - NULLIF ( + 28, + CAST( NULL AS SIGNED ) ) - - 50 - + 80 DIV + COUNT( * ) + + MIN( + + 36 ) * NULLIF ( + 95, + ( - 49 ) ) + 33 AS col1
----
3395

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - NULLIF ( + 28, + CAST ( NULL AS INTEGER ) ) - - 50 - + 80 / + COUNT ( * ) + + MIN ( + + 36 ) * NULLIF ( + 95, + ( - 49 ) ) + 33 AS col1
----
3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL - + CASE - CAST( NULL AS SIGNED ) WHEN + 34 + + 36 THEN 48 / - 50 / - 4 / CASE - 78 WHEN 65 THEN NULL WHEN - + COALESCE ( - 54, + + 97 ) / 22 + - + 50 THEN 24 + CAST( NULL AS SIGNED ) END + SUM( DISTINCT - 38 ) * - CASE - 13 WHEN ( + - 34 ) * + + 98 + - 32 * + 65 * - 53 THEN NULLIF ( - ( 94 ), - 28 * + - 85 - 90 ) * + 58 + - + 19 WHEN + + MIN( ALL 70 ) + + 36 THEN NULL END * - 43 WHEN + 32 * SUM( DISTINCT - 20 ) THEN 66 WHEN 74 * - 99 THEN 53 * - 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - + CASE - CAST ( NULL AS INTEGER ) WHEN + 34 + + 36 THEN 48 / - 50 / - 4 / CASE - 78 WHEN 65 THEN NULL WHEN - + COALESCE ( - 54, + + 97 ) / 22 + - + 50 THEN 24 + CAST ( NULL AS INTEGER ) END + SUM ( DISTINCT - 38 ) * - CASE - 13 WHEN ( + - 34 ) * + + 98 + - 32 * + 65 * - 53 THEN NULLIF ( - ( 94 ), - 28 * + - 85 - 90 ) * + 58 + - + 19 WHEN + + MIN ( ALL 70 ) + + 36 THEN NULL END * - 43 WHEN + 32 * SUM ( DISTINCT - 20 ) THEN 66 WHEN 74 * - 99 THEN 53 * - 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + 35 * + + 57 * COUNT( - + 95 ) + + ( - + MIN( + 17 ) )
----
1978

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 35 * + + 57 * COUNT ( - + 95 ) + + ( - + MIN ( + 17 ) )
----
1978

query II rowsort
SELECT ALL + 88 AS col1, COALESCE ( 65, 4 * + + 19, 68 ) AS col2
----
88
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL COUNT( * ) - 85
----
-84

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL COUNT ( * ) - 85
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4135
SELECT ALL 57 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL 57 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
57
NULL

query I rowsort
SELECT - ( - 93 ) + 66
----
159

query I rowsort
SELECT 24 + + 17 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT CASE - - 65 WHEN - 1 / + + CASE 83 WHEN + 80 THEN - MIN( ( - 0 ) ) ELSE 90 - CASE + ( 97 ) WHEN ( + COUNT( * ) ) * - 7 * - 10 + - - 99 THEN 6 WHEN + 40 + - + 71 THEN NULL END * - 98 END THEN + - 5 WHEN + 58 THEN NULL END / - + 55 - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT CASE - - 65 WHEN - 1 / + + CASE 83 WHEN + 80 THEN - MIN ( ( - 0 ) ) ELSE 90 - CASE + ( 97 ) WHEN ( + COUNT ( * ) ) * - 7 * - 10 + - - 99 THEN 6 WHEN + 40 + - + 71 THEN NULL END * - 98 END THEN + - 5 WHEN + 58 THEN NULL END / - + 55 - - 34
----
NULL

query I rowsort
SELECT - 99 * - + 78
----
7722

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT COALESCE ( + + 36, + - 24, - 55 + + COUNT( * ) + 39 + - COUNT( * ) ) * 92
----
3312

skipif mysql # not compatible
query I rowsort label-4140
SELECT COALESCE ( + + 36, + - 24, - 55 + + COUNT ( * ) + 39 + - COUNT ( * ) ) * 92
----
3312

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT ALL ( + 55 ) * COUNT( - 26 ) - + 87 AS col1, 27 * 24 - 75 AS col1
----
-32
573

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL ( + 55 ) * COUNT ( - 26 ) - + 87 AS col1, 27 * 24 - 75 AS col1
----
-32
573

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT + 35 * NULLIF ( - COUNT( * ), - 78 + - 98 + - - 78 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + 35 * NULLIF ( - COUNT ( * ), - 78 + - 98 + - - 78 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4143
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1, - ( + - 69 ) * + - ( ( - - COUNT( * ) ) ) + - 1 * - - 69 * COUNT( + 41 )
----
NULL
-138

skipif mysql # not compatible
query II rowsort label-4143
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1, - ( + - 69 ) * + - ( ( - - COUNT ( * ) ) ) + - 1 * - - 69 * COUNT ( + 41 )
----
NULL
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT ALL + 17 + - 65 AS col1, COALESCE ( 17, + CASE 55 WHEN + - 7 THEN NULL WHEN - + 47 THEN 54 * COUNT( * ) END * + 62 * - SUM( + - 56 ) ) + COUNT( * ) AS col0
----
-48
18

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL + 17 + - 65 AS col1, COALESCE ( 17, + CASE 55 WHEN + - 7 THEN NULL WHEN - + 47 THEN 54 * COUNT ( * ) END * + 62 * - SUM ( + - 56 ) ) + COUNT ( * ) AS col0
----
-48
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL ( + ( + 89 ) ) * + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL ( + ( + 89 ) ) * + - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( * ) * - 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( * ) * - 62 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT CAST( NULL AS SIGNED ) / 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT CAST ( NULL AS INTEGER ) / 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT 63 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT 63 / 47
----
1

query I rowsort
SELECT 72 * + - 5 AS col2
----
-360

query I rowsort
SELECT ALL + 54 + 3 + - 27
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + CASE 1 WHEN - 56 THEN 96 WHEN - - 26 + 85 - COUNT( * ) * - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT + CASE 1 WHEN - 56 THEN 96 WHEN - - 26 + 85 - COUNT ( * ) * - 94 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT - 4 * - 49 DIV COUNT( * ) + + 29 AS col1
----
225

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 4 * - 49 / COUNT ( * ) + + 29 AS col1
----
225

query I rowsort
SELECT NULLIF ( - 29, + + 37 * + 92 / + 75 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL 9 * + CASE - 41 WHEN + 49 THEN - SUM( ALL - + 81 ) WHEN 14 * - COUNT( * ) * 85 + NULLIF ( + - 16, COUNT( * ) ) * - 24 THEN NULL ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 9 * + CASE - 41 WHEN + 49 THEN - SUM ( ALL - + 81 ) WHEN 14 * - COUNT ( * ) * 85 + NULLIF ( + - 16, COUNT ( * ) ) * - 24 THEN NULL ELSE NULL END + + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT 77 * + 43 * + - 61 + CAST( 17 AS SIGNED ) * 35
----
-201376

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT 77 * + 43 * + - 61 + CAST ( 17 AS INTEGER ) * 35
----
-201376

query I rowsort
SELECT DISTINCT + 28 * - 31 * - - 48 col1
----
-41664

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT - ( + 40 ) * + MIN( + 58 ) col1
----
-2320

skipif mysql # not compatible
query I rowsort label-4157
SELECT - ( + 40 ) * + MIN ( + 58 ) col1
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + COUNT( * ) * + - 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + COUNT ( * ) * + - 79 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL - 60 * 14 DIV 12 * - - 14 * - - 13 - 36 AS col2
----
-12776

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - 60 * 14 / 12 * - - 14 * - - 13 - 36 AS col2
----
-12776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT + - CASE CAST( + + 49 AS SIGNED ) WHEN 89 * + + 91 + 6 THEN + COUNT( * ) - 95 * - + CAST( + 12 AS SIGNED ) / 23 WHEN 85 THEN NULL END * - 82 / - NULLIF ( 99, 65 / + + 33 - 71 * - 26 * + - 61 / 6 ) * + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT + - CASE CAST ( + + 49 AS INTEGER ) WHEN 89 * + + 91 + 6 THEN + COUNT ( * ) - 95 * - + CAST ( + 12 AS INTEGER ) / 23 WHEN 85 THEN NULL END * - 82 / - NULLIF ( 99, 65 / + + 33 - 71 * - 26 * + - 61 / 6 ) * + - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + - COUNT( * ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + - COUNT ( * ) * + 15
----
-15

query I rowsort
SELECT DISTINCT + - ( 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL - - 31 * + 15 + 55 DIV 5 * 99
----
1554

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - - 31 * + 15 + 55 / 5 * 99
----
1554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT - - CAST( NULL AS SIGNED ) - + + 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - - CAST ( NULL AS INTEGER ) - + + 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - - 81 * + + 85 + - ( + COUNT( * ) ) + - 64 AS col2
----
6820

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - 81 * + + 85 + - ( + COUNT ( * ) ) + - 64 AS col2
----
6820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + - 76 * - + CAST( - 55 AS SIGNED ) AS col2
----
-4180

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - 76 * - + CAST ( - 55 AS INTEGER ) AS col2
----
-4180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL CAST( 73 AS SIGNED ) + 12 + + 3 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( 73 AS INTEGER ) + 12 + + 3 AS col0
----
88

query I rowsort
SELECT DISTINCT + ( - 59 ) * 61 AS col0
----
-3599

query I rowsort
SELECT - 33 + + 20
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + COALESCE ( - - 53, + COUNT( * ) ) * + - 19
----
-1007

skipif mysql # not compatible
query I rowsort label-4170
SELECT + COALESCE ( - - 53, + COUNT ( * ) ) * + - 19
----
-1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4171
SELECT - ( CAST( + 70 AS SIGNED ) ), COUNT( * ) AS col0
----
-70
1

skipif mysql # not compatible
query II rowsort label-4171
SELECT - ( CAST ( + 70 AS INTEGER ) ), COUNT ( * ) AS col0
----
-70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL COUNT( * ) + + 1 * NULLIF ( 29, + 87 + - - MAX( + 36 ) + 63 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL COUNT ( * ) + + 1 * NULLIF ( 29, + 87 + - - MAX ( + 36 ) + 63 ) AS col2
----
30

query I rowsort
SELECT + 26 + + 94 + - - 10 * 47 AS col1
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - ( - + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4174
SELECT - ( - + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT + CAST( NULL AS SIGNED ) - 25 + + 42 + + - 21, - 61 col1
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4175
SELECT + CAST ( NULL AS INTEGER ) - 25 + + 42 + + - 21, - 61 col1
----
NULL
-61

query II rowsort
SELECT ALL 49, 95 AS col2
----
49
95

query I rowsort
SELECT + 79 + + 79
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT 49 * + NULLIF ( 58, 65 ) * - 99 * - COUNT( 68 ) AS col2
----
281358

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT 49 * + NULLIF ( 58, 65 ) * - 99 * - COUNT ( 68 ) AS col2
----
281358

query I rowsort
SELECT + 55 + - 32 AS col1
----
23

query I rowsort
SELECT + 72 + + 33 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL 78 * ( + 3 ) * COUNT( * )
----
234

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL 78 * ( + 3 ) * COUNT ( * )
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL + 23 + + CASE - 99 WHEN + 5 * - 93 * 70 + - CASE CASE - 82 WHEN - 86 THEN NULL WHEN + SUM( 87 ) * + + MIN( ALL 29 ) * + 14 + + NULLIF ( + + 59, + + 34 ) THEN - COALESCE ( - - CAST( - 17 AS SIGNED ), + 55 ) END WHEN ( 38 ) THEN 86 WHEN - 59 + + - 12 + + 26 THEN 75 WHEN 11 + - - 99 THEN + 0 ELSE - 44 END THEN - SUM( + ( - - 41 ) ) WHEN - ( + + 13 ) * + COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + 23 + + CASE - 99 WHEN + 5 * - 93 * 70 + - CASE CASE - 82 WHEN - 86 THEN NULL WHEN + SUM ( 87 ) * + + MIN ( ALL 29 ) * + 14 + + NULLIF ( + + 59, + + 34 ) THEN - COALESCE ( - - CAST ( - 17 AS INTEGER ), + 55 ) END WHEN ( 38 ) THEN 86 WHEN - 59 + + - 12 + + 26 THEN 75 WHEN 11 + - - 99 THEN + 0 ELSE - 44 END THEN - SUM ( + ( - - 41 ) ) WHEN - ( + + 13 ) * + COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 36 * + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 36 * + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + - COUNT( 16 ) * - - ( 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4184
SELECT + - COUNT ( 16 ) * - - ( 33 )
----
-33

query I rowsort
SELECT + NULLIF ( 69, - 29 ) AS col2
----
69

query II rowsort
SELECT - 56, + 82 AS col1
----
-56
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4187
SELECT DISTINCT - 63 DIV 52 - 47 DIV + + NULLIF ( 98, + 32 ), 6 + - 43 AS col0
----
-1
-37

skipif mysql # not compatible
query II rowsort label-4187
SELECT DISTINCT - 63 / 52 - 47 / + + NULLIF ( 98, + 32 ), 6 + - 43 AS col0
----
-1
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT ALL - - 83 DIV 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - - 83 / 61 AS col0
----
1

query I rowsort
SELECT ALL + + ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + + COUNT( - + 91 ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-4190
SELECT + + COUNT ( - + 91 ) * + 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4191
SELECT 85 AS col1, + COUNT( * ) DIV + 13
----
85
0

skipif mysql # not compatible
query II rowsort label-4191
SELECT 85 AS col1, + COUNT ( * ) / + 13
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + COALESCE ( - + COUNT( * ), + + COUNT( * ) - + 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) - + 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT DISTINCT + COUNT( * ), 66 * - - 75 AS col2
----
1
4950

skipif mysql # not compatible
query II rowsort label-4193
SELECT DISTINCT + COUNT ( * ), 66 * - - 75 AS col2
----
1
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT - 93 + - 36 DIV - + 32
----
-92

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 93 + - 36 / - + 32
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT 88 * + ( - COUNT( * ) ) - - 34 + + 79 * - 90
----
-7164

skipif mysql # not compatible
query I rowsort label-4195
SELECT 88 * + ( - COUNT ( * ) ) - - 34 + + 79 * - 90
----
-7164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4196
SELECT DISTINCT + 82, CAST( + 87 AS SIGNED ) AS col1
----
82
87

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + 82, CAST ( + 87 AS INTEGER ) AS col1
----
82
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL + - NULLIF ( + - NULLIF ( 33, COALESCE ( - 25, COUNT( * ) + CASE - 39 WHEN - - 82 THEN NULL ELSE - 74 * - 92 + - + 90 - + 15 * 4 * 21 * - COUNT( + 98 ) END + 57, - ( + 47 ) * 18 * + 85 ) - - CAST( - 6 AS SIGNED ) / 38 ), 53 * 17 )
----
33

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - NULLIF ( + - NULLIF ( 33, COALESCE ( - 25, COUNT ( * ) + CASE - 39 WHEN - - 82 THEN NULL ELSE - 74 * - 92 + - + 90 - + 15 * 4 * 21 * - COUNT ( + 98 ) END + 57, - ( + 47 ) * 18 * + 85 ) - - CAST ( - 6 AS INTEGER ) / 38 ), 53 * 17 )
----
33

query I rowsort
SELECT - 7 + 19 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT - + NULLIF ( - 37, 68 ) * + CAST( 68 AS SIGNED ) AS col1
----
2516

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - + NULLIF ( - 37, 68 ) * + CAST ( 68 AS INTEGER ) AS col1
----
2516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL + 68 * - 62 + 49 + 11 + + + CAST( NULL AS SIGNED ) + - ( - 47 ) - + 66 + + 79 * 4 * + MIN( DISTINCT + 48 ) * - AVG ( + ( + - ( + - 14 ) ) ) + + - SUM( DISTINCT + 24 ) * + 71 + - 53 * + 35 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 68 * - 62 + 49 + 11 + + + CAST ( NULL AS INTEGER ) + - ( - 47 ) - + 66 + + 79 * 4 * + MIN ( DISTINCT + 48 ) * - AVG ( + ( + - ( + - 14 ) ) ) + + - SUM ( DISTINCT + 24 ) * + 71 + - 53 * + 35 * - 52
----
NULL

query I rowsort
SELECT - 77 * + 71 + + - 69 AS col0
----
-5536

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 33 DIV + + 67 DIV - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 33 / + + 67 / - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - 39 + + 74 * - 27 + - COUNT( * ) - 96 + - COUNT( * ) + 11
----
-2124

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 39 + + 74 * - 27 + - COUNT ( * ) - 96 + - COUNT ( * ) + 11
----
-2124

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT ALL - 60 * - 89 + - - 89 * - 4, + 36 + - COUNT( * ) AS col2
----
4984
35

skipif mysql # not compatible
query II rowsort label-4204
SELECT ALL - 60 * - 89 + - - 89 * - 4, + 36 + - COUNT ( * ) AS col2
----
4984
35

query I rowsort
SELECT - 50 * - COALESCE ( 24, - - 38 ) * + 49
----
58800

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + COALESCE ( - 28, + 28 + ( - 46 ), - 62 ) + + 93 * - + 71 * + COUNT( * )
----
-6631

skipif mysql # not compatible
query I rowsort label-4206
SELECT + COALESCE ( - 28, + 28 + ( - 46 ), - 62 ) + + 93 * - + 71 * + COUNT ( * )
----
-6631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT 71 * 10 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT 71 * 10 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT 43 DIV 97 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT 43 / 97 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4209
SELECT 79 + 64 AS col2, + 11 * 14 DIV 87
----
143
1

skipif mysql # not compatible
query II rowsort label-4209
SELECT 79 + 64 AS col2, + 11 * 14 / 87
----
143
1

query I rowsort
SELECT ALL 14 * - 32 AS col2
----
-448

query I rowsort
SELECT DISTINCT 32 + + - 29 * 90 col0
----
-2578

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT ALL 67 - + - 39 + 84 * + 72 AS col1, 17 * + 80 * + + ( + MIN( 83 ) )
----
6154
112880

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL 67 - + - 39 + 84 * + 72 AS col1, 17 * + 80 * + + ( + MIN ( 83 ) )
----
6154
112880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 28 * - - CAST( NULL AS SIGNED ) * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 28 * - - CAST ( NULL AS INTEGER ) * - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT ALL 31 - + - COUNT( * ) * - COUNT( * ) - + 58 AS col2, 26
----
-28
26

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL 31 - + - COUNT ( * ) * - COUNT ( * ) - + 58 AS col2, 26
----
-28
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT 68 - CAST( - 51 AS SIGNED )
----
119

skipif mysql # not compatible
query I rowsort label-4215
SELECT 68 - CAST ( - 51 AS INTEGER )
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT 3 * 21 / CAST( NULL AS SIGNED ) * - + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT 3 * 21 / CAST ( NULL AS INTEGER ) * - + 74 AS col0
----
NULL

query II rowsort
SELECT ALL - - ( 16 ) AS col1, - 40
----
16
-40

query I rowsort
SELECT 61 * + - 61 AS col2
----
-3721

query I rowsort
SELECT DISTINCT - 39 * 98
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + + COALESCE ( + - COUNT( ALL + 74 ), - COUNT( * ) + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4220
SELECT + + COALESCE ( + - COUNT ( ALL + 74 ), - COUNT ( * ) + 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + COUNT( * ) * - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + COUNT ( * ) * - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - + MAX( ALL - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + MAX ( ALL - - 90 )
----
-90

query I rowsort
SELECT 40 * + 42 + + 5 - 57 * + 82 * - - 17 AS col1
----
-77773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT - CASE 29 WHEN + - CASE + 87 WHEN - 86 * + - ( - + COALESCE ( - 16, + + 69, - + COUNT( ALL 55 ) ) ) * 27 THEN + + AVG ( DISTINCT + 13 ) / 63 + + 34 WHEN + CASE + 59 WHEN + COUNT( * ) * 92 + - - 7 THEN + 57 ELSE + - CAST( + - 80 AS SIGNED ) * - 19 END THEN NULL END / + - 84 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + + NULLIF ( - ( + - ( - + 18 ) ), + + 10 ) * NULLIF ( - ( + 38 ), - + 66 ) THEN + 89 ELSE NULL END * - - 65 * - ( - 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - CASE 29 WHEN + - CASE + 87 WHEN - 86 * + - ( - + COALESCE ( - 16, + + 69, - + COUNT ( ALL 55 ) ) ) * 27 THEN + + AVG ( DISTINCT + 13 ) / 63 + + 34 WHEN + CASE + 59 WHEN + COUNT ( * ) * 92 + - - 7 THEN + 57 ELSE + - CAST ( + - 80 AS INTEGER ) * - 19 END THEN NULL END / + - 84 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + + NULLIF ( - ( + - ( - + 18 ) ), + + 10 ) * NULLIF ( - ( + 38 ), - + 66 ) THEN + 89 ELSE NULL END * - - 65 * - ( - 93 ) AS col1
----
NULL

query I rowsort
SELECT 9 * - + 21 + + + 12 AS col2
----
-177

query I rowsort
SELECT + ( - - ( - 48 ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4227
SELECT DISTINCT MAX( - + 30 ) + + 45 * + CAST( NULL AS DECIMAL ) * - 89 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT MAX ( - + 30 ) + + 45 * + CAST ( NULL AS REAL ) * - 89 + - 81
----
NULL

query I rowsort
SELECT ( + + 81 ) - + 0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT 34 - + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4229
SELECT 34 - + COUNT ( * ) AS col2
----
33

query I rowsort
SELECT DISTINCT - 13 * + - 81
----
1053

query II rowsort
SELECT ALL 36, 76 AS col0
----
36
76

query I rowsort
SELECT ALL - 86 - + + 96 + + 22
----
-160

query I rowsort
SELECT 59 * + + 82 AS col1
----
4838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4234
SELECT DISTINCT COUNT( * ) * 26 DIV + - 90 * - NULLIF ( + + COUNT( * ), - 32 ), 30 * + 86 AS col0
----
0
2580

skipif mysql # not compatible
query II rowsort label-4234
SELECT DISTINCT COUNT ( * ) * 26 / + - 90 * - NULLIF ( + + COUNT ( * ), - 32 ), 30 * + 86 AS col0
----
0
2580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT 72 * 87 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT 72 * 87 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 - 89 col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT COALESCE ( + + 44, 15 * - + CAST( NULL AS SIGNED ) ) * + 49, 55 * + 7 AS col1
----
2156
385

skipif mysql # not compatible
query II rowsort label-4237
SELECT COALESCE ( + + 44, 15 * - + CAST ( NULL AS INTEGER ) ) * + 49, 55 * + 7 AS col1
----
2156
385

query I rowsort
SELECT 52 + + 22
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT 58 + 45 + 95 * - SUM( DISTINCT + + 83 )
----
-7782

skipif mysql # not compatible
query I rowsort label-4239
SELECT 58 + 45 + 95 * - SUM ( DISTINCT + + 83 )
----
-7782

query I rowsort
SELECT 62 * - - 29
----
1798

query I rowsort
SELECT 97 * + 23 AS col0
----
2231

query I rowsort
SELECT 68 + 32 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT COUNT( * ) DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT COUNT ( * ) / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT 78 + - COUNT( * ) * + + COUNT( * ) - - COUNT( * ) * + 57 + 50 * - 30 AS col2
----
-1366

skipif mysql # not compatible
query I rowsort label-4244
SELECT 78 + - COUNT ( * ) * + + COUNT ( * ) - - COUNT ( * ) * + 57 + 50 * - 30 AS col2
----
-1366

query I rowsort
SELECT ALL + + 99 * + 3
----
297

query II rowsort
SELECT 75 + + 70 + + 65 AS col0, 9 AS col1
----
210
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT 55 DIV + SUM( DISTINCT - 67 ) + + 79 * - - 68 col0
----
5372

skipif mysql # not compatible
query I rowsort label-4247
SELECT 55 / + SUM ( DISTINCT - 67 ) + + 79 * - - 68 col0
----
5372

query I rowsort
SELECT + 62 + + 73 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT - 66 * + - 10 * - - CAST( NULL AS SIGNED ) AS col2, + 89 + MAX( + 51 ) col1
----
NULL
140

skipif mysql # not compatible
query II rowsort label-4249
SELECT - 66 * + - 10 * - - CAST ( NULL AS INTEGER ) AS col2, + 89 + MAX ( + 51 ) col1
----
NULL
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - COUNT( * ) * + 30 * - 22 + - + 61 + 82 * + 85 * + 11 + - + 28 + + 41 AS col0
----
77282

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - COUNT ( * ) * + 30 * - 22 + - + 61 + 82 * + 85 * + 11 + - + 28 + + 41 AS col0
----
77282

query II rowsort
SELECT DISTINCT - 52 col0, - 21
----
-52
-21

query I rowsort
SELECT ALL 61 * - 36 + + COALESCE ( - 67, 2 ) + + ( - 5 ) col2
----
-2268

query I rowsort
SELECT - 11 + - 76 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - MIN( - + CASE - 95 WHEN + 40 + + - 91 + - + 69 + + 73 * 42 THEN - 75 + - 56 * 44 * + 9 WHEN + 74 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT - MIN ( - + CASE - 95 WHEN + 40 + + - 91 + - + 69 + + 73 * 42 THEN - 75 + - 56 * 44 * + 9 WHEN + 74 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - + COUNT( * ) * - + 61 + + + 34
----
95

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - + COUNT ( * ) * - + 61 + + + 34
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - CASE - 67 WHEN - + 47 THEN - COUNT( * ) * + NULLIF ( 70, - - 89 ) * 89 + - 84 + - 45 ELSE NULL END * - + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT - CASE - 67 WHEN - + 47 THEN - COUNT ( * ) * + NULLIF ( 70, - - 89 ) * 89 + - 84 + - 45 ELSE NULL END * - + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - 69 * COUNT( * ) + - + 65 + + 69 * 3 + 19 col1
----
92

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 69 * COUNT ( * ) + - + 65 + + 69 * 3 + 19 col1
----
92

query I rowsort
SELECT + COALESCE ( + - 63, - 95 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT + 3 + + 59 / - 97 - CAST( NULL AS SIGNED ) + - - 86 + - COUNT( * ) + 84 * - 86 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 3 + + 59 / - 97 - CAST ( NULL AS INTEGER ) + - - 86 + - COUNT ( * ) + 84 * - 86 * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT + MIN( ALL - 29 ) AS col1, - 75
----
-29
-75

skipif mysql # not compatible
query II rowsort label-4260
SELECT + MIN ( ALL - 29 ) AS col1, - 75
----
-29
-75

query II rowsort
SELECT ALL + 98 AS col2, 82
----
98
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4262
SELECT 93 AS col0, COUNT( * ) * + ( - + 56 ) + - 97 * - CAST( NULL AS SIGNED ) / - 3 * 62
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4262
SELECT 93 AS col0, COUNT ( * ) * + ( - + 56 ) + - 97 * - CAST ( NULL AS INTEGER ) / - 3 * 62
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL MIN( ( + ( - 88 ) ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL MIN ( ( + ( - 88 ) ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL 55 - - COUNT( - 47 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 55 - - COUNT ( - 47 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + COUNT( * ) * + 48 * 5
----
240

skipif mysql # not compatible
query I rowsort label-4265
SELECT + COUNT ( * ) * + 48 * 5
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT - NULLIF ( COUNT( * ), + - CAST( NULL AS SIGNED ) * + COUNT( * ) * - - 53 * + - 62 ) * + 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4266
SELECT - NULLIF ( COUNT ( * ), + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - - 53 * + - 62 ) * + 32 AS col1
----
-32

query I rowsort
SELECT DISTINCT 49 * + 41 AS col2
----
2009

query I rowsort
SELECT - 19 + + 5 * + 98 AS col2
----
471

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + NULLIF ( - - 70, + + 23 ) * + SUM( + 13 ) AS col0
----
910

skipif mysql # not compatible
query I rowsort label-4269
SELECT + NULLIF ( - - 70, + + 23 ) * + SUM ( + 13 ) AS col0
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT - 13 AS col2, - MAX( 13 ) - - CAST( NULL AS SIGNED )
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4270
SELECT - 13 AS col2, - MAX ( 13 ) - - CAST ( NULL AS INTEGER )
----
-13
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL COALESCE ( - 49, - 65 DIV - + ( + 96 ) * 17 * + 41 - 26 - - - 20 - - COALESCE ( - + 33, + 43 ), - 24 * CASE - 21 WHEN - 48 + 1 * 45 - - + 67 * - + 10 THEN - 84 ELSE + 68 END * - 37 * - + 79 + + 86 + 37 - - - 66 )
----
-49

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL COALESCE ( - 49, - 65 / - + ( + 96 ) * 17 * + 41 - 26 - - - 20 - - COALESCE ( - + 33, + 43 ), - 24 * CASE - 21 WHEN - 48 + 1 * 45 - - + 67 * - + 10 THEN - 84 ELSE + 68 END * - 37 * - + 79 + + 86 + 37 - - - 66 )
----
-49

query I rowsort
SELECT - ( 27 ) * + - 87
----
2349

query I rowsort
SELECT ALL 48 * + - 74 col2
----
-3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4274
SELECT ALL + - 64 DIV + 93 * 88 + ( + + MAX( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT( * ) ELSE + CAST( - 26 AS SIGNED ) DIV COUNT( * ) * + COUNT( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1
----
-1537
17

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL + - 64 / + 93 * 88 + ( + + MAX ( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT ( * ) ELSE + CAST ( - 26 AS INTEGER ) / COUNT ( * ) * + COUNT ( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1
----
-1537
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - 64 + - NULLIF ( - 1, - - 95 / ( 32 ) + - + 37 * MAX( DISTINCT - - 91 ) ) + COUNT( * ) * + 99 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 64 + - NULLIF ( - 1, - - 95 / ( 32 ) + - + 37 * MAX ( DISTINCT - - 91 ) ) + COUNT ( * ) * + 99 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4276
SELECT 29, + 11 - CAST( NULL AS SIGNED ) AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4276
SELECT 29, + 11 - CAST ( NULL AS INTEGER ) AS col0
----
29
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT - COUNT( * ) AS col2, + 84 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-4277
SELECT - COUNT ( * ) AS col2, + 84 AS col0
----
-1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - + 42 + - ( + + COALESCE ( + - ( - ( - 26 ) ), - COALESCE ( - 92, + COUNT( * ) - COUNT( * ) ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4278
SELECT - + 42 + - ( + + COALESCE ( + - ( - ( - 26 ) ), - COALESCE ( - 92, + COUNT ( * ) - COUNT ( * ) ) ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - 84 * - - 64 * - 40 * + MAX( - - 48 ) - + COUNT( * ) AS col1
----
10321919

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 84 * - - 64 * - 40 * + MAX ( - - 48 ) - + COUNT ( * ) AS col1
----
10321919

query I rowsort
SELECT - CASE + - 6 WHEN 63 + 15 THEN NULL WHEN ( - 64 ) THEN NULL ELSE - 66 END AS col2
----
66

query II rowsort
SELECT 73, - 73 AS col1
----
73
-73

query I rowsort
SELECT ALL + 62 + 20 * COALESCE ( 40, + - 45 ) AS col1
----
862

query I rowsort
SELECT - - 98 - + - 91
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT - CAST( - 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4284
SELECT - CAST ( - 95 AS INTEGER ) AS col1
----
95

query I rowsort
SELECT - 46 * + 9 + - + 84 col2
----
-498

query I rowsort
SELECT - + 23 - + - 78 AS col0
----
55

query I rowsort
SELECT ALL + 18 + - 67 + 24
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) - - - 8 - - ( 27 ) * + - ( + - 41 ) - - - 53 + - - 60 / - - 19 * 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) - - - 8 - - ( 27 ) * + - ( + - 41 ) - - - 53 + - - 60 / - - 19 * 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - - COUNT( * ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4289
SELECT - - COUNT ( * ) * 54 AS col1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4290
SELECT ALL + 27 / - - ( 40 ) + 80 + + ( + ( ( - CAST( NULL AS DECIMAL ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 27 / - - ( 40 ) + 80 + + ( + ( ( - CAST ( NULL AS REAL ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT ( COALESCE ( - 40, COUNT( * ) DIV - 51, - COUNT( * ), 24 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4291
SELECT ( COALESCE ( - 40, COUNT ( * ) / - 51, - COUNT ( * ), 24 ) )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL - 77 DIV - + 60 + ( + + CASE - 59 WHEN + + 63 THEN NULL ELSE 50 END ) * + 97 col1
----
4851

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - 77 / - + 60 + ( + + CASE - 59 WHEN + + 63 THEN NULL ELSE 50 END ) * + 97 col1
----
4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT + COUNT( - 81 ) * - 70 * + 23 + - + 10 DIV ( + - 67 ) + COALESCE ( - 39, - + 57 ) AS col0
----
-1649

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( - 81 ) * - 70 * + 23 + - + 10 / ( + - 67 ) + COALESCE ( - 39, - + 57 ) AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT DISTINCT + - 3 * - + 46 + - CAST( + - ( - COUNT( * ) ) AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + - 3 * - + 46 + - CAST ( + - ( - COUNT ( * ) ) AS INTEGER )
----
137

query II rowsort
SELECT ALL + + 92 AS col0, + 25
----
92
25

query II rowsort
SELECT 96 AS col2, 26 AS col0
----
96
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT + - 16 * + COALESCE ( + CAST( NULL AS SIGNED ), - + 55 * 6 + 63, + MAX( - ( + + 48 ) ) ) * + 6
----
25632

skipif mysql # not compatible
query I rowsort label-4297
SELECT + - 16 * + COALESCE ( + CAST ( NULL AS INTEGER ), - + 55 * 6 + 63, + MAX ( - ( + + 48 ) ) ) * + 6
----
25632

query II rowsort
SELECT + 39 AS col0, 2 + + 43 * - 45 col1
----
39
-1933

query I rowsort
SELECT - 62 + - + 58 + - 86
----
-206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + CAST( + 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + CAST ( + 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - NULLIF ( 97, + 32 ) * - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4301
SELECT - NULLIF ( 97, + 32 ) * - COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4302
SELECT + CAST( NULL AS DECIMAL ) * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT + CAST ( NULL AS REAL ) * - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - NULLIF ( + COUNT( * ), 27 * - SUM( + 72 ) + + 3 + 47 * + 73 * 34 * - ( + 39 ) ) - + 25 * 26
----
-651

skipif mysql # not compatible
query I rowsort label-4303
SELECT - NULLIF ( + COUNT ( * ), 27 * - SUM ( + 72 ) + + 3 + 47 * + 73 * 34 * - ( + 39 ) ) - + 25 * 26
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + COUNT( * ) - - - 34 * + - 5 col0
----
171

skipif mysql # not compatible
query I rowsort label-4304
SELECT + COUNT ( * ) - - - 34 * + - 5 col0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT MIN( + 62 ) AS col0, + 61
----
62
61

skipif mysql # not compatible
query II rowsort label-4305
SELECT MIN ( + 62 ) AS col0, + 61
----
62
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT + 78 DIV + - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 78 / + - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT DISTINCT + 6 * - + 9 * + 35 AS col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT 37 DIV + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT 37 / + COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT + 42 DIV - - 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 42 / - - 34 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT DISTINCT 7 + + 29 DIV 35 * + 1
----
7

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT 7 + + 29 / 35 * + 1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT + 36 - + 51 * 10 + - - SUM( ALL + 23 ) + + CAST( NULL AS SIGNED ) * - 85 + - 63 * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT + 36 - + 51 * 10 + - - SUM ( ALL + 23 ) + + CAST ( NULL AS INTEGER ) * - 85 + - 63 * - 7 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4312
SELECT + + 2 + - 84 + - + 91 + + MAX( CAST( + 6 AS SIGNED ) ) DIV - 43 AS col0, + 73 + 11
----
-173
84

skipif mysql # not compatible
query II rowsort label-4312
SELECT + + 2 + - 84 + - + 91 + + MAX ( CAST ( + 6 AS INTEGER ) ) / - 43 AS col0, + 73 + 11
----
-173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + COALESCE ( + 69, + - COUNT( * ) ) + + COUNT( 37 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + COALESCE ( + 69, + - COUNT ( * ) ) + + COUNT ( 37 ) AS col2
----
70

query I rowsort
SELECT + - 27 + - 72
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COALESCE ( + - 29, 27 * - 45 + - 4, 93 * + COUNT( * ) * - 33 ) + + 5 * - 39
----
-224

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COALESCE ( + - 29, 27 * - 45 + - 4, 93 * + COUNT ( * ) * - 33 ) + + 5 * - 39
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT DISTINCT + 88 * COUNT( * ), 38 AS col0
----
88
38

skipif mysql # not compatible
query II rowsort label-4316
SELECT DISTINCT + 88 * COUNT ( * ), 38 AS col0
----
88
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + 66 + - CASE - 41 WHEN + + MIN( + 14 ) + + + 43 * + 54 THEN 85 END - - - 21 * 87 + 14 + + 27 * - 11 / - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + 66 + - CASE - 41 WHEN + + MIN ( + 14 ) + + + 43 * + 54 THEN 85 END - - - 21 * 87 + 14 + + 27 * - 11 / - 48 AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 70, - 21 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT ALL 31 + + 86 DIV - 15 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 31 + + 86 / - 15 AS col2
----
26

query II rowsort
SELECT DISTINCT + 39 + 49 AS col1, 0 + + + 47 * 1 * - 89
----
88
-4183

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT + 15 DIV 96 + + + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 15 / 96 + + + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + + 0 * + MIN( ALL - 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT + + 0 * + MIN ( ALL - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT ( - 96 ) DIV + - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4323
SELECT ( - 96 ) / + - COUNT ( * ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4324
SELECT SUM( + 88 ) + + 56, CAST( ( - 89 ) AS SIGNED ) AS col0
----
144
-89

skipif mysql # not compatible
query II rowsort label-4324
SELECT SUM ( + 88 ) + + 56, CAST ( ( - 89 ) AS INTEGER ) AS col0
----
144
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT - 12 DIV 38 * - 33 + - MAX( ALL + 21 ) + + 15 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - 12 / 38 * - 33 + - MAX ( ALL + 21 ) + + 15 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT - NULLIF ( + 72, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - NULLIF ( + 72, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) )
----
-72

query II rowsort
SELECT + 31 AS col1, 14 col2
----
31
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT + 82 * NULLIF ( + 23, + ( - - 82 ) * + + ( - CASE 51 WHEN + - COUNT( * ) * - 37 * + ( - COUNT( * ) ) * + CASE + + COUNT( - - 85 ) WHEN - + 55 / + + COALESCE ( 69, COALESCE ( - 54, + COUNT( DISTINCT + 28 ) - 12 * - - CAST( NULL AS SIGNED ) + - ( - SUM( + 30 ) ) + - 85, - COALESCE ( + 82, + MIN( + + 5 ) * - - 74 * + 88 ) ) ) * + ( + 56 ) + 29 + - COUNT( * ) + - 63 THEN NULL WHEN 25 / 97 * - + 86 THEN 44 WHEN + 77 * 86 THEN NULL END + - CASE + 41 WHEN + ( + 26 ) * 86 THEN NULL ELSE 68 END + + CASE + 83 + 82 * + 18 WHEN - COUNT( * ) THEN NULL WHEN 74 THEN + 89 / 84 WHEN 20 + + 72 * + CASE 63 WHEN COUNT( * ) THEN 3 ELSE COUNT( * ) END THEN NULL END / + 27 - - 61 / 23 THEN 76 + 44 * - 0 END ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + 82 * NULLIF ( + 23, + ( - - 82 ) * + + ( - CASE 51 WHEN + - COUNT ( * ) * - 37 * + ( - COUNT ( * ) ) * + CASE + + COUNT ( - - 85 ) WHEN - + 55 / + + COALESCE ( 69, COALESCE ( - 54, + COUNT ( DISTINCT + 28 ) - 12 * - - CAST ( NULL AS INTEGER ) + - ( - SUM ( + 30 ) ) + - 85, - COALESCE ( + 82, + MIN ( + + 5 ) * - - 74 * + 88 ) ) ) * + ( + 56 ) + 29 + - COUNT ( * ) + - 63 THEN NULL WHEN 25 / 97 * - + 86 THEN 44 WHEN + 77 * 86 THEN NULL END + - CASE + 41 WHEN + ( + 26 ) * 86 THEN NULL ELSE 68 END + + CASE + 83 + 82 * + 18 WHEN - COUNT ( * ) THEN NULL WHEN 74 THEN + 89 / 84 WHEN 20 + + 72 * + CASE 63 WHEN COUNT ( * ) THEN 3 ELSE COUNT ( * ) END THEN NULL END / + 27 - - 61 / 23 THEN 76 + 44 * - 0 END ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4329
SELECT ALL - CAST( NULL AS SIGNED ), + 18 + - - 31 + + - 8 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL - CAST ( NULL AS INTEGER ), + 18 + - - 31 + + - 8 AS col2
----
NULL
41

query I rowsort
SELECT - 35 * 99 - - 97
----
-3368

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 78 + + + 56 * 15 + + MIN( ALL - 39 )
----
879

skipif mysql # not compatible
query I rowsort label-4331
SELECT 78 + + + 56 * 15 + + MIN ( ALL - 39 )
----
879

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT 94 + 13 DIV + - ( - + 36 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4332
SELECT 94 + 13 / + - ( - + 36 ) col0
----
94

query I rowsort
SELECT DISTINCT 96 * + 12 AS col1
----
1152

query I rowsort
SELECT - 78 * + 66 + - 66 col0
----
-5214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4335
SELECT ALL 58, SUM( ALL + 45 ) DIV - - 9 AS col0
----
58
5

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL 58, SUM ( ALL + 45 ) / - - 9 AS col0
----
58
5

query I rowsort
SELECT 77 * - 52
----
-4004

query I rowsort
SELECT 13 + - - 18
----
31

query I rowsort
SELECT DISTINCT 60 + - + 56
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - COUNT( * ) AS col1, + 9 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - COUNT ( * ) AS col1, + 9 AS col2
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) + 78
----
79

query I rowsort
SELECT - 5 * - ( - + 11 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT COALESCE ( + 99, - + 80 * + AVG ( 84 ) DIV - 0 + - - 43 + - - 5 + + 77, 38 * - 76 + 55 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4342
SELECT COALESCE ( + 99, - + 80 * + AVG ( 84 ) / - 0 + - - 43 + - - 5 + + 77, 38 * - 76 + 55 ) AS col1
----
99

query I rowsort
SELECT 53 * 58
----
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + - ( - 41 ) * - CAST( + - 71 AS SIGNED ) col0
----
2911

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + - ( - 41 ) * - CAST ( + - 71 AS INTEGER ) col0
----
2911

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4345
SELECT ALL - - 38 + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, - 5 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-4345
SELECT ALL - - 38 + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, - 5 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ( - + COUNT( * ) ) * + + 4 + 16 * + 57 AS col1
----
908

skipif mysql # not compatible
query I rowsort label-4346
SELECT ( - + COUNT ( * ) ) * + + 4 + 16 * + 57 AS col1
----
908

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT - 79 DIV 14 + - 27 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 79 / 14 + - 27 AS col0
----
-32

query I rowsort
SELECT ALL - 21 + 21 + - 20 - - 68 * - + 86 + + 62
----
-5806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL - NULLIF ( - 42, - CASE + 7 WHEN + + COUNT( * ) / + CAST( NULL AS SIGNED ) - + 51 - + 18 + + 0 THEN NULL ELSE - 28 END / 42 + - CAST( NULL AS SIGNED ) - - 84 + COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - NULLIF ( - 42, - CASE + 7 WHEN + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) - + 51 - + 18 + + 0 THEN NULL ELSE - 28 END / 42 + - CAST ( NULL AS INTEGER ) - - 84 + COUNT ( * ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT DISTINCT - 81, COUNT( * ) col0
----
-81
1

skipif mysql # not compatible
query II rowsort label-4350
SELECT DISTINCT - 81, COUNT ( * ) col0
----
-81
1

query I rowsort
SELECT 99 * - 23 AS col2
----
-2277

query II rowsort
SELECT - + 45, - 17 * + 5 AS col1
----
-45
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT 47 - - 36 - - - MIN( - ( - - 17 ) ) + 67 DIV + 4 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4353
SELECT 47 - - 36 - - - MIN ( - ( - - 17 ) ) + 67 / + 4 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + MIN( DISTINCT + 41 ) * + - 96
----
-3936

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + MIN ( DISTINCT + 41 ) * + - 96
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - 83 * SUM( + 96 ) * COUNT( * )
----
-7968

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 83 * SUM ( + 96 ) * COUNT ( * )
----
-7968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT 5 DIV - 38 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4356
SELECT 5 / - 38 - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 78 * + 11
----
858

query I rowsort
SELECT 81 - + 23 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT ALL 73 + - - 5 AS col2, + 63 - - COUNT( + 99 )
----
78
64

skipif mysql # not compatible
query II rowsort label-4359
SELECT ALL 73 + - - 5 AS col2, + 63 - - COUNT ( + 99 )
----
78
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT DISTINCT 31 + - + CAST( NULL AS SIGNED ) * 7 + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT 31 + - + CAST ( NULL AS INTEGER ) * 7 + 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4361
SELECT ALL - COUNT( * ) + + COALESCE ( - 88, + CASE 45 WHEN 4 THEN NULL WHEN - - 83 THEN - CAST( NULL AS SIGNED ) - + 92 ELSE - ( - 82 ) * + - ( - 48 ) * + - 99 + - COALESCE ( + 62, - + COUNT( * ) ) - - + ( + 11 ) * - 17 + - - 2 + + 1 * + 46 * + 91 END, - COUNT( * ) DIV + 39 )
----
-89

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - COUNT ( * ) + + COALESCE ( - 88, + CASE 45 WHEN 4 THEN NULL WHEN - - 83 THEN - CAST ( NULL AS INTEGER ) - + 92 ELSE - ( - 82 ) * + - ( - 48 ) * + - 99 + - COALESCE ( + 62, - + COUNT ( * ) ) - - + ( + 11 ) * - 17 + - - 2 + + 1 * + 46 * + 91 END, - COUNT ( * ) / + 39 )
----
-89

query I rowsort
SELECT DISTINCT + 79 + ( + - ( + 85 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL + 6 * + 54 * - COUNT( * )
----
-324

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + 6 * + 54 * - COUNT ( * )
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - SUM( DISTINCT - + ( 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - SUM ( DISTINCT - + ( 69 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - 34 + - - COUNT( DISTINCT + 77 ) + - 90 + + - 33 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - 34 + - - COUNT ( DISTINCT + 77 ) + - 90 + + - 33 AS col2
----
-156

query I rowsort
SELECT 93 - - 35 col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT - COUNT( * ) + - ( CASE 24 WHEN 74 THEN + 48 * + - 8 WHEN - 38 THEN - ( + ( - CASE + 6 WHEN 59 THEN - COUNT( + 40 ) WHEN - - 7 + - + ( 59 ) THEN + 66 WHEN - 3 THEN NULL ELSE + - 50 * + - 26 / + COUNT( * ) END ) ) WHEN + - 93 THEN - 68 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - COUNT ( * ) + - ( CASE 24 WHEN 74 THEN + 48 * + - 8 WHEN - 38 THEN - ( + ( - CASE + 6 WHEN 59 THEN - COUNT ( + 40 ) WHEN - - 7 + - + ( 59 ) THEN + 66 WHEN - 3 THEN NULL ELSE + - 50 * + - 26 / + COUNT ( * ) END ) ) WHEN + - 93 THEN - 68 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL SUM( + ( + 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL SUM ( + ( + 15 ) )
----
15

query I rowsort
SELECT DISTINCT 51 * + - 24 AS col1
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + 50 * + SUM( ALL 45 ) AS col2
----
2250

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + 50 * + SUM ( ALL 45 ) AS col2
----
2250

query II rowsort
SELECT 44 - - + 62, - 89 AS col0
----
106
-89

query I rowsort
SELECT - 79 * - 32 - + - 31
----
2559

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT - MAX( DISTINCT 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4373
SELECT - MAX ( DISTINCT 26 )
----
-26

query I rowsort
SELECT + 66 + - NULLIF ( 79, - 46 )
----
-13

query I rowsort
SELECT - 6 + + COALESCE ( + + 31, - ( ( + 26 ) ) ) + - 40
----
-15

query I rowsort
SELECT - - 34 + + + 78 - + 95 AS col0
----
17

query I rowsort
SELECT + + 18 * - 1 * 29 + + 85
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + - NULLIF ( 72, - 60 / - 91 + - 43 * + + COUNT( ALL - 48 ) ) * 75
----
-5400

skipif mysql # not compatible
query I rowsort label-4378
SELECT + - NULLIF ( 72, - 60 / - 91 + - 43 * + + COUNT ( ALL - 48 ) ) * 75
----
-5400

query I rowsort
SELECT + 69 + + + CASE + - 6 WHEN + 30 - - 89 THEN NULL WHEN + 85 THEN NULL ELSE + - 68 END AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4380
SELECT - 8 DIV - 7, 1 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4380
SELECT - 8 / - 7, 1 AS col0
----
1
1

query I rowsort
SELECT + ( - 43 ) * 77
----
-3311

query I rowsort
SELECT + 9 + - COALESCE ( + + ( + 13 ), + 26 ) - - ( + ( - + 41 ) )
----
-45

query I rowsort
SELECT - 21 * - 18 AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + COALESCE ( 27, + + 75, + 31 * - COUNT( * ) - + 83 * - 34 ) + 21
----
48

skipif mysql # not compatible
query I rowsort label-4384
SELECT + COALESCE ( 27, + + 75, + 31 * - COUNT ( * ) - + 83 * - 34 ) + 21
----
48

query I rowsort
SELECT ALL 85 * 4 * + 48
----
16320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4386
SELECT CAST( NULL AS DECIMAL ) * + 34 + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT CAST ( NULL AS REAL ) * + 34 + - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL ( + 71 ) * + COUNT( * ) * COALESCE ( + 61, - 90 ) + + 37 AS col1
----
4368

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL ( + 71 ) * + COUNT ( * ) * COALESCE ( + 61, - 90 ) + + 37 AS col1
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT + CASE WHEN NOT 3 NOT BETWEEN - 16 * 52 / COUNT( * ) + - + COUNT( * ) + + - 29 + + 24 / - 5 AND NULL THEN 47 WHEN NOT CASE COUNT( * ) WHEN NULLIF ( + 25, + 89 ) * + + 77 + + 34 + + 68 THEN - CAST( 59 AS SIGNED ) END + 7 - + 99 * - 40 NOT BETWEEN 54 + - 76 + + MAX( 51 ) * + 57 * + - COUNT( * ) AND NULL THEN - - 70 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT + CASE WHEN NOT 3 NOT BETWEEN - 16 * 52 / COUNT ( * ) + - + COUNT ( * ) + + - 29 + + 24 / - 5 AND NULL THEN 47 WHEN NOT CASE COUNT ( * ) WHEN NULLIF ( + 25, + 89 ) * + + 77 + + 34 + + 68 THEN - CAST ( 59 AS INTEGER ) END + 7 - + 99 * - 40 NOT BETWEEN 54 + - 76 + + MAX ( 51 ) * + 57 * + - COUNT ( * ) AND NULL THEN - - 70 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 37 * + 30 + - + 41 AS col2
----
1069

query I rowsort
SELECT CASE + ( - 38 ) WHEN 97 + + + 32 * 64 THEN - 9 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT CASE + - COUNT( + 24 ) WHEN - + 53 + MAX( COALESCE ( - 59, CAST( 44 AS SIGNED ) ) ) THEN - AVG ( 26 ) * COALESCE ( 29, - 98, + + 74 ) WHEN + - 56 * - 25 THEN - - 28 * + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT CASE + - COUNT ( + 24 ) WHEN - + 53 + MAX ( COALESCE ( - 59, CAST ( 44 AS INTEGER ) ) ) THEN - AVG ( 26 ) * COALESCE ( 29, - 98, + + 74 ) WHEN + - 56 * - 25 THEN - - 28 * + 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT 82 * 15 + - COUNT( * ) AS col0
----
1229

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT 82 * 15 + - COUNT ( * ) AS col0
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + CASE SUM( ( - 94 ) ) WHEN 86 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT + CASE SUM ( ( - 94 ) ) WHEN 86 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - 45 * - - COALESCE ( - 7, + COUNT( * ) + + 82 ) + + 47 * - + 97 col0
----
-4244

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 45 * - - COALESCE ( - 7, + COUNT ( * ) + + 82 ) + + 47 * - + 97 col0
----
-4244

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4395
SELECT ALL - 10 * + CAST( 43 AS SIGNED ) + + + 68 DIV - + 30 AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - 10 * + CAST ( 43 AS INTEGER ) + + + 68 / - + 30 AS col2
----
-432

query II rowsort
SELECT + 8, + 29 AS col0
----
8
29

query I rowsort
SELECT 66 * + + 30 + 74 AS col2
----
2054

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4398
SELECT ALL + 11 * - 2 - - ( + - CAST( NULL AS DECIMAL ) ) * + 39 * - COUNT( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 11 * - 2 - - ( + - CAST ( NULL AS REAL ) ) * + 39 * - COUNT ( + 14 )
----
NULL

query I rowsort
SELECT - 10 + - 95 - + 68 + 30 * - 15 * - 89 + 41 + + + 79 * + - 29 AS col1
----
37627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4400
SELECT ALL - + 83 * + + 13 * + 11 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - + 83 * + + 13 * + 11 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT + 51 * COUNT( * ) * - - 1
----
51

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + 51 * COUNT ( * ) * - - 1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT MAX( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-4402
SELECT MAX ( - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - - ( 68 ) + + + COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4403
SELECT - - ( 68 ) + + + COUNT ( * ) col1
----
69

query I rowsort
SELECT - - 88 * + ( 70 ) AS col2
----
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4405
SELECT ALL + - CASE WHEN NOT MAX( DISTINCT 18 ) IS NOT NULL THEN + 37 - 82 + 21 * + - 66 + 89 * 53 WHEN NOT CAST( NULL AS SIGNED ) * COALESCE ( + 55, + CAST( NULL AS SIGNED ) + + - CAST( + COUNT( * ) AS SIGNED ) * COALESCE ( 0, + 7 ), + - COUNT( * ) ) / 41 NOT IN ( 39 * - 11 * - CAST( ( - 49 ) AS SIGNED ), - 40 / 33 * - CAST( + COALESCE ( 59, - - ( - 83 ) * 47 ) AS DECIMAL ), - - 96 * - 17 + 73 ) THEN NULL END * + + 20 + - CAST( NULL AS SIGNED ) * + - 39 + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + - CASE WHEN NOT MAX ( DISTINCT 18 ) IS NOT NULL THEN + 37 - 82 + 21 * + - 66 + 89 * 53 WHEN NOT CAST ( NULL AS INTEGER ) * COALESCE ( + 55, + CAST ( NULL AS INTEGER ) + + - CAST ( + COUNT ( * ) AS INTEGER ) * COALESCE ( 0, + 7 ), + - COUNT ( * ) ) / 41 NOT IN ( 39 * - 11 * - CAST ( ( - 49 ) AS INTEGER ), - 40 / 33 * - CAST ( + COALESCE ( 59, - - ( - 83 ) * 47 ) AS REAL ), - - 96 * - 17 + 73 ) THEN NULL END * + + 20 + - CAST ( NULL AS INTEGER ) * + - 39 + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT - - 62, - COALESCE ( + - 95, + 14, 40 + + COUNT( * ) ) * - 33 col2
----
62
-3135

skipif mysql # not compatible
query II rowsort label-4406
SELECT - - 62, - COALESCE ( + - 95, + 14, 40 + + COUNT ( * ) ) * - 33 col2
----
62
-3135

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT DISTINCT + 33 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + 33 / - 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT - 97 + - - 36 - + CAST( NULL AS SIGNED ) * - + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 97 + - - 36 - + CAST ( NULL AS INTEGER ) * - + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - 42 + - - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 42 + - - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT - 98 - + 13
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 33 + MIN( DISTINCT - 39 )
----
-6

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 33 + MIN ( DISTINCT - 39 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT ALL + 93 DIV + 94 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + 93 / + 94 + - - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT + 61 DIV 86 DIV - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 61 / 86 / - - 23 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT 79 DIV COUNT( * ) - 16
----
63

skipif mysql # not compatible
query I rowsort label-4414
SELECT 79 / COUNT ( * ) - 16
----
63

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4415
SELECT CAST( NULL AS DECIMAL ), 90 DIV - 91 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4415
SELECT CAST ( NULL AS REAL ), 90 / - 91 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT + CASE 50 WHEN NULLIF ( - - 2, - - 76 ) / - + 57 THEN 73 - + - 11 - - 74 + CASE - - 4 WHEN 40 * + 48 THEN NULL WHEN - MIN( DISTINCT + 57 ) THEN NULL WHEN - MAX( - 87 ) THEN 94 ELSE - 81 END * + - 9 - + 5 * 83 * - 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT + CASE 50 WHEN NULLIF ( - - 2, - - 76 ) / - + 57 THEN 73 - + - 11 - - 74 + CASE - - 4 WHEN 40 * + 48 THEN NULL WHEN - MIN ( DISTINCT + 57 ) THEN NULL WHEN - MAX ( - 87 ) THEN 94 ELSE - 81 END * + - 9 - + 5 * 83 * - 90 END AS col0
----
NULL

query I rowsort
SELECT + 7 * 79
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT COALESCE ( - + 54, + 60 ) * ( + + COUNT( * ) ) * - 94 - - + COUNT( * ) + + + 93 * + + COUNT( * ) + - COUNT( * ) + 5 * - 27
----
5034

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT COALESCE ( - + 54, + 60 ) * ( + + COUNT ( * ) ) * - 94 - - + COUNT ( * ) + + + 93 * + + COUNT ( * ) + - COUNT ( * ) + 5 * - 27
----
5034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT ALL - 6 / 21 * + - 5 - - 9 - + 38 * - - 61 + COUNT( * ) + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 6 / 21 * + - 5 - - 9 - + 38 * - - 61 + COUNT ( * ) + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT COUNT( DISTINCT + 50 ) * 6 * + 92 * 27 + - 13 + + + 60 * + - 27 * - 67 + - 30 AS col2
----
123401

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( DISTINCT + 50 ) * 6 * + 92 * 27 + - 13 + + + 60 * + - 27 * - 67 + - 30 AS col2
----
123401

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + + NULLIF ( - - COUNT( * ), ( + + 19 ) ) + ( + + 58 )
----
59

skipif mysql # not compatible
query I rowsort label-4421
SELECT + + NULLIF ( - - COUNT ( * ), ( + + 19 ) ) + ( + + 58 )
----
59

query I rowsort
SELECT ALL - + CASE - 54 WHEN - - 20 * - + ( - 16 ) * + 54 THEN NULL WHEN - 18 THEN + ( + - 67 ) * + 10 + - + 89 + + NULLIF ( + 25, + 57 * 51 + + + ( + ( 85 ) ) + - + 99 + - 0 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT CAST( NULL AS SIGNED ) / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( NULL AS INTEGER ) / 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - COUNT( * ) AS col1, + 86
----
-1
86

skipif mysql # not compatible
query II rowsort label-4424
SELECT - COUNT ( * ) AS col1, + 86
----
-1
86

query I rowsort
SELECT + 74 + - - 26 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + 48 * + + COUNT( * ) + 24 - - 84 * + 35 * - 53
----
-155748

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 48 * + + COUNT ( * ) + 24 - - 84 * + 35 * - 53
----
-155748

query II rowsort
SELECT + 96 AS col0, + 73 + + - 99
----
96
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT ALL + 10, + SUM( 61 ) AS col2
----
10
61

skipif mysql # not compatible
query II rowsort label-4428
SELECT ALL + 10, + SUM ( 61 ) AS col2
----
10
61

query I rowsort
SELECT 92 * 12 + + 22 - 47 + + 86 col2
----
1165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4430
SELECT ALL - 97 AS col2, CAST( - + MIN( - - CAST( + 67 AS DECIMAL ) ) AS SIGNED ) col1
----
-97
-67

skipif mysql # not compatible
query II rowsort label-4430
SELECT ALL - 97 AS col2, CAST ( - + MIN ( - - CAST ( + 67 AS REAL ) ) AS INTEGER ) col1
----
-97
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT + 29 DIV + - 43 + - + COUNT( * ) * + CAST( + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + 29 / + - 43 + - + COUNT ( * ) * + CAST ( + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT - COALESCE ( - + 0, - 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL MAX( DISTINCT - 86 ) + - + ( - MAX( DISTINCT + + 80 ) ) + - 18 * - 11 + - 47 + + 88 * + - 52
----
-4431

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL MAX ( DISTINCT - 86 ) + - + ( - MAX ( DISTINCT + + 80 ) ) + - 18 * - 11 + - 47 + + 88 * + - 52
----
-4431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT MAX( - 0 ) + 52 - COALESCE ( - 4, 47 ) DIV + + 43 + + + 94
----
146

skipif mysql # not compatible
query I rowsort label-4434
SELECT MAX ( - 0 ) + 52 - COALESCE ( - 4, 47 ) / + + 43 + + + 94
----
146

query I rowsort
SELECT 22 + + 19
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4436
SELECT - 53 AS col1, COUNT( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST( NULL AS SIGNED ) END ) + + 29 + + + 19 * + 12 AS col1
----
-53
257

skipif mysql # not compatible
query II rowsort label-4436
SELECT - 53 AS col1, COUNT ( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST ( NULL AS INTEGER ) END ) + + 29 + + + 19 * + 12 AS col1
----
-53
257

query II rowsort
SELECT - 4 AS col1, 50 * + ( - ( 16 ) )
----
-4
-800

query I rowsort
SELECT ALL 80 + - + 34 - - + 48 * + 11 col1
----
574

query I rowsort
SELECT ALL 56 + + 22
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4440
SELECT ALL - 47 + + COUNT( * ) AS col0, COUNT( * ) - 23 - + 33 * - 47 + - CASE - CAST( NULL AS SIGNED ) WHEN + 2 THEN + + 17 ELSE NULL END
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL - 47 + + COUNT ( * ) AS col0, COUNT ( * ) - 23 - + 33 * - 47 + - CASE - CAST ( NULL AS INTEGER ) WHEN + 2 THEN + + 17 ELSE NULL END
----
-46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4441
SELECT DISTINCT + ( - 45 ) * - + ( - + 58 ) * - ( CASE - 62 WHEN + + 48 + CAST( + - 60 AS SIGNED ) + + 3 THEN + 96 * + + ( + COALESCE ( CASE 28 WHEN + + 61 THEN 8 + + 89 END, 0 ) ) * + 62 WHEN + MAX( + 97 ) * + 2 * - COUNT( DISTINCT + 35 ) + + 14 THEN NULL WHEN - 34 * - + CASE + 44 WHEN + 50 + + 67 + + 12 * + 66 THEN + 93 END + + 59 THEN - CASE + 21 WHEN - 33 THEN - 4 WHEN 42 THEN NULL ELSE NULL END ELSE - + 72 * - 82 + 86 + + - 13 - - CASE CAST( NULL AS DECIMAL ) WHEN - 24 THEN NULL WHEN + 41 * - COUNT( * ) THEN + 87 ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + ( - 45 ) * - + ( - + 58 ) * - ( CASE - 62 WHEN + + 48 + CAST ( + - 60 AS INTEGER ) + + 3 THEN + 96 * + + ( + COALESCE ( CASE 28 WHEN + + 61 THEN 8 + + 89 END, 0 ) ) * + 62 WHEN + MAX ( + 97 ) * + 2 * - COUNT ( DISTINCT + 35 ) + + 14 THEN NULL WHEN - 34 * - + CASE + 44 WHEN + 50 + + 67 + + 12 * + 66 THEN + 93 END + + 59 THEN - CASE + 21 WHEN - 33 THEN - 4 WHEN 42 THEN NULL ELSE NULL END ELSE - + 72 * - 82 + 86 + + - 13 - - CASE CAST ( NULL AS REAL ) WHEN - 24 THEN NULL WHEN + 41 * - COUNT ( * ) THEN + 87 ELSE NULL END END )
----
NULL

query I rowsort
SELECT 6 + - + 66 + - 98 AS col1
----
-158

query I rowsort
SELECT DISTINCT + 2 + ( - 11 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT ALL - 47 + + - COUNT( * ) + + 45 - + 81 DIV 84 * + + 28
----
-3

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - 47 + + - COUNT ( * ) + + 45 - + 81 / 84 * + + 28
----
-3

query I rowsort
SELECT 96 * - + 39
----
-3744

query I rowsort
SELECT ALL + ( + ( - 78 ) ) * - - 22
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 3 + COUNT( * ) - + - 62
----
66

skipif mysql # not compatible
query I rowsort label-4447
SELECT 3 + COUNT ( * ) - + - 62
----
66

query II rowsort
SELECT DISTINCT + 30 * + + 90 AS col2, 48 AS col0
----
2700
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - MIN( ALL + 31 ) * 62
----
-1922

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - MIN ( ALL + 31 ) * 62
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL ( - 63 ) - + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL ( - 63 ) - + COUNT ( * ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4451
SELECT - 86 DIV + + COUNT( * ) + + 90 + - + 61 * 12 * 43 AS col2
----
-31472

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 86 / + + COUNT ( * ) + + 90 + - + 61 * 12 * 43 AS col2
----
-31472

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT 41 DIV 56 * + ( - + 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT 41 / 56 * + ( - + 94 ) AS col0
----
0

query I rowsort
SELECT 12 * ( + 78 ) AS col0
----
936

query I rowsort
SELECT + 5 + - + 59 * 8
----
-467

query I rowsort
SELECT ( - + 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT COUNT( * ) * - 49, + 75 AS col0
----
-49
75

skipif mysql # not compatible
query II rowsort label-4456
SELECT COUNT ( * ) * - 49, + 75 AS col0
----
-49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - 10 * + + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 10 * + + COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT + - ( + 51 )
----
-51

query I rowsort
SELECT ALL - CASE - + 8 WHEN - + ( 27 ) * - 62 THEN NULL WHEN + 66 THEN + ( + 74 ) ELSE NULL END + + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT 87 + + + MIN( 1 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT 87 + + + MIN ( 1 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - MIN( DISTINCT - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4461
SELECT - MIN ( DISTINCT - 30 ) AS col2
----
30

query I rowsort
SELECT ( 71 ) + 31 * 78
----
2489

query I rowsort
SELECT - 88 * - 64
----
5632

query I rowsort
SELECT ALL 32 + - 21
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT - 15 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 15 / 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - MIN( ALL + 78 ) + 62 * - SUM( ALL + 21 )
----
-1380

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - MIN ( ALL + 78 ) + 62 * - SUM ( ALL + 21 )
----
-1380

query II rowsort
SELECT 86, + 99 + - - 34 + 87 AS col0
----
86
220

onlyif mysql # DIV for integer division: 
query II rowsort label-4468
SELECT ALL 74 DIV 21 DIV 42 AS col1, - 60 * - 22 * 14 AS col0
----
0
18480

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL 74 / 21 / 42 AS col1, - 60 * - 22 * 14 AS col0
----
0
18480

query I rowsort
SELECT ALL 33 + 16 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT MAX( - - ( + - 58 ) ) - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT MAX ( - - ( + - 58 ) ) - - COUNT ( * )
----
-57

query I rowsort
SELECT 77 * + 65
----
5005

query I rowsort
SELECT 13 + 77 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 16 * + + MAX( ALL 69 ) * 57 - + 32 * - 11
----
63280

skipif mysql # not compatible
query I rowsort label-4473
SELECT 16 * + + MAX ( ALL 69 ) * 57 - + 32 * - 11
----
63280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT ALL NULLIF ( + 67, - 1 ) - 2 AS col0, + 96 DIV COUNT( * ) + - 66
----
65
30

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL NULLIF ( + 67, - 1 ) - 2 AS col0, + 96 / COUNT ( * ) + - 66
----
65
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - COUNT( - - 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4475
SELECT - COUNT ( - - 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT COUNT( 50 ) - - - 63 + 99 * + 68
----
6670

skipif mysql # not compatible
query I rowsort label-4476
SELECT COUNT ( 50 ) - - - 63 + 99 * + 68
----
6670

query II rowsort
SELECT ALL 51 AS col2, - 89 AS col1
----
51
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4478
SELECT ALL - 60, + 16 * CASE - + 16 WHEN + - CAST( + - 81 AS DECIMAL ) * 19 THEN NULL ELSE - - SUM( DISTINCT + + 90 ) * CAST( NULL AS SIGNED ) * - 75 + - 38 + SUM( 5 ) * - 18 + 64 / + 48 END AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL - 60, + 16 * CASE - + 16 WHEN + - CAST ( + - 81 AS REAL ) * 19 THEN NULL ELSE - - SUM ( DISTINCT + + 90 ) * CAST ( NULL AS INTEGER ) * - 75 + - 38 + SUM ( 5 ) * - 18 + 64 / + 48 END AS col1
----
-60
NULL

query I rowsort
SELECT ALL - 44 * 66 AS col2
----
-2904

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT - 82 DIV 23 - 2 AS col2, 60 + 87
----
-5
147

skipif mysql # not compatible
query II rowsort label-4480
SELECT - 82 / 23 - 2 AS col2, 60 + 87
----
-5
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT CASE + 54 WHEN - COUNT( * ) THEN + + 81 * ( 92 ) END, 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4481
SELECT CASE + 54 WHEN - COUNT ( * ) THEN + + 81 * ( 92 ) END, 66 AS col1
----
NULL
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT - 83 - - + 13 + - + 21 - - 21 DIV 95
----
-91

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 83 - - + 13 + - + 21 - - 21 / 95
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL - CAST( + COUNT( ALL - + 30 ) AS SIGNED ) * + MAX( ALL - - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - CAST ( + COUNT ( ALL - + 30 ) AS INTEGER ) * + MAX ( ALL - - 41 )
----
-41

query I rowsort
SELECT - 95 * 19 AS col2
----
-1805

query I rowsort
SELECT - 1 * - + 99
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT 50, - 95 + - 6 + + 71 * - 19 + - 35 + + 42 + - 21 * COUNT( * ) col1
----
50
-1464

skipif mysql # not compatible
query II rowsort label-4486
SELECT 50, - 95 + - 6 + + 71 * - 19 + - 35 + + 42 + - 21 * COUNT ( * ) col1
----
50
-1464

query I rowsort
SELECT + - COALESCE ( - 6, 23, + 88, 6 )
----
6

query I rowsort
SELECT ALL - 62 * + 15
----
-930

query II rowsort
SELECT - - ( - 69 ) * + 21 + + 41 col2, - 66 * - - 13 AS col1
----
-1408
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT - + 34 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT - + 34 * - COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT - - 12 * - + 13 + - + 76 AS col0
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + 19 * - 11 * 49 * + 18 + - COUNT( * ) * + - 43
----
-184295

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 19 * - 11 * 49 * + 18 + - COUNT ( * ) * + - 43
----
-184295

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT - 72 + ( - 17 ), - 3 DIV COUNT( * ) col2
----
-89
-3

skipif mysql # not compatible
query II rowsort label-4493
SELECT - 72 + ( - 17 ), - 3 / COUNT ( * ) col2
----
-89
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4494
SELECT - AVG ( - - CASE - - 3 WHEN - + 17 THEN - 27 * - - CAST( 50 AS DECIMAL ) END ) * - COUNT( * ) - - 18 / - - 89 + 71 + + 51 / - COUNT( * ), 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-4494
SELECT - AVG ( - - CASE - - 3 WHEN - + 17 THEN - 27 * - - CAST ( 50 AS REAL ) END ) * - COUNT ( * ) - - 18 / - - 89 + 71 + + 51 / - COUNT ( * ), 54 AS col2
----
NULL
54

query I rowsort
SELECT ALL - + 80 + + 10
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT + - CAST( 72 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + - CAST ( 72 AS INTEGER ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT ALL - 63 + - - 47 DIV - 83 * - 58 * - - COUNT( * ) * + + 57 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - 63 + - - 47 / - 83 * - 58 * - - COUNT ( * ) * + + 57 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + + 99 + - SUM( ALL - ( - 82 ) ) + + NULLIF ( COUNT( * ), 11 + 27 )
----
18

skipif mysql # not compatible
query I rowsort label-4498
SELECT + + 99 + - SUM ( ALL - ( - 82 ) ) + + NULLIF ( COUNT ( * ), 11 + 27 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT + + COUNT( * ) - - 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + + COUNT ( * ) - - 46 AS col2
----
47

query I rowsort
SELECT DISTINCT 68 - 87 AS col2
----
-19

query I rowsort
SELECT + 97 + + 86 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + 14 * COALESCE ( + 76, - 31 ) * - 36 * - + COUNT( * ) AS col0
----
38304

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 14 * COALESCE ( + 76, - 31 ) * - 36 * - + COUNT ( * ) AS col0
----
38304

query I rowsort
SELECT + 73 + 22
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT + CAST( - SUM( ALL - ( - 6 ) ) AS SIGNED ) + - 75 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4504
SELECT + CAST ( - SUM ( ALL - ( - 6 ) ) AS INTEGER ) + - 75 AS col1
----
-81

query II rowsort
SELECT - ( - + 44 ) AS col1, + 11
----
44
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + 61 + + ( - - COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 61 + + ( - - COUNT ( * ) ) AS col2
----
62

query I rowsort
SELECT ALL 67 - + + 82 * - + 50 * + 4
----
16467

query I rowsort
SELECT + 79 * + 2 AS col2
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT + 37 + 32 * - - CAST( + 7 AS SIGNED )
----
261

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 37 + 32 * - - CAST ( + 7 AS INTEGER )
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL COUNT( - 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( - 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT COUNT( * ) * 8 * - ( - 30 ) * - COALESCE ( - - 97, - 83 )
----
-23280

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT COUNT ( * ) * 8 * - ( - 30 ) * - COALESCE ( - - 97, - 83 )
----
-23280

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT ALL 19 DIV + 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 19 / + 74 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4513
SELECT + 31 DIV - 9, 37 - - 8 * 38 * - - COUNT( * ) AS col1
----
-3
341

skipif mysql # not compatible
query II rowsort label-4513
SELECT + 31 / - 9, 37 - - 8 * 38 * - - COUNT ( * ) AS col1
----
-3
341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL + 12 * COUNT( * ) DIV ( + COUNT( ALL 11 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + 12 * COUNT ( * ) / ( + COUNT ( ALL 11 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + 48 * - 1 * + + SUM( - 47 ) AS col1
----
2256

skipif mysql # not compatible
query I rowsort label-4515
SELECT + 48 * - 1 * + + SUM ( - 47 ) AS col1
----
2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT MAX( DISTINCT 23 ) * + - COUNT( * ) + - COUNT( - + CAST( NULL AS SIGNED ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT MAX ( DISTINCT 23 ) * + - COUNT ( * ) + - COUNT ( - + CAST ( NULL AS INTEGER ) )
----
-23

query I rowsort
SELECT DISTINCT 48 * + + 91 * ( + + 59 )
----
257712

query I rowsort
SELECT ALL NULLIF ( 22, - - 56 + - 53 / + + 97 + + - 13 * + COALESCE ( + 57, 92 ) ) + - 59 AS col0
----
-37

query I rowsort
SELECT + + 55 + 56
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + MAX( + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4520
SELECT + MAX ( + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT DISTINCT - MAX( - 85 ) DIV - 52 + COALESCE ( COUNT( DISTINCT + + 89 ), 84 ) * + 19
----
18

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - MAX ( - 85 ) / - 52 + COALESCE ( COUNT ( DISTINCT + + 89 ), 84 ) * + 19
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL 19 DIV + 44 + 68 - + 12 * + 43 + - - 63
----
-385

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 19 / + 44 + 68 - + 12 * + 43 + - - 63
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + COUNT( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-4523
SELECT + COUNT ( + 80 )
----
1

query I rowsort
SELECT DISTINCT - 17 * 81 * + 78 col1
----
-107406

query I rowsort
SELECT ALL + 67 * + 70
----
4690

query I rowsort
SELECT DISTINCT + + 15 * ( 52 )
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL + COUNT( * ) * + - 10 + + - 69 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + COUNT ( * ) * + - 10 + + - 69 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4528
SELECT NULLIF ( + - MIN( DISTINCT 18 ), CAST( - 95 AS SIGNED ) ), 3 + 37 AS col1
----
-18
40

skipif mysql # not compatible
query II rowsort label-4528
SELECT NULLIF ( + - MIN ( DISTINCT 18 ), CAST ( - 95 AS INTEGER ) ), 3 + 37 AS col1
----
-18
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT COALESCE ( 89, + 7, MAX( ALL + 25 ) * + 32 )
----
89

skipif mysql # not compatible
query I rowsort label-4529
SELECT COALESCE ( 89, + 7, MAX ( ALL + 25 ) * + 32 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT - ( + + COUNT( * ) ) DIV - + MAX( DISTINCT - + 4 ) * + 61 - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4530
SELECT - ( + + COUNT ( * ) ) / - + MAX ( DISTINCT - + 4 ) * + 61 - 52 AS col1
----
-52

query I rowsort
SELECT + 15 * + 38
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 43 DIV + 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 43 / + 48 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT COUNT( * ) AS col2, + 68 AS col2
----
1
68

skipif mysql # not compatible
query II rowsort label-4533
SELECT COUNT ( * ) AS col2, + 68 AS col2
----
1
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT ALL 81 AS col0, COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-4534
SELECT ALL 81 AS col0, COUNT ( * )
----
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT DISTINCT CAST( + CAST( + 57 AS SIGNED ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT CAST ( + CAST ( + 57 AS INTEGER ) AS INTEGER )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4536
SELECT - 55 * COUNT( 82 ) AS col1, - CAST( NULL AS SIGNED )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT - 55 * COUNT ( 82 ) AS col1, - CAST ( NULL AS INTEGER )
----
-55
NULL

query I rowsort
SELECT 12 * - 64 * + + ( + + 93 ) AS col1
----
-71424

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + 78
----
-77

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + 78
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT COUNT( * ) - - 98 * + MIN( - - 88 ) DIV - 2 AS col0
----
-4311

skipif mysql # not compatible
query I rowsort label-4539
SELECT COUNT ( * ) - - 98 * + MIN ( - - 88 ) / - 2 AS col0
----
-4311

query II rowsort
SELECT - 58 AS col2, 56 * + - 50 + - 17 AS col2
----
-58
-2817

query I rowsort
SELECT DISTINCT - 99 + - 51
----
-150

query I rowsort
SELECT 40 + - 20
----
20

query I rowsort
SELECT ALL - ( 47 ) + - 88 * 61 * 44
----
-236239

query I rowsort
SELECT ALL ( 39 ) + 34 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL 53 + - 13 * + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL 53 + - 13 * + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ( + 10 ) - + 83 AS col1
----
-73

query I rowsort
SELECT ALL 0 * - 49 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4548
SELECT ALL 17 + + CAST( - 12 + 11 * + 82 AS SIGNED ) DIV 22 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 17 + + CAST ( - 12 + 11 * + 82 AS INTEGER ) / 22 AS col1
----
57

query I rowsort
SELECT ALL 93 * 87 AS col2
----
8091

query I rowsort
SELECT 62 * + 30
----
1860

query I rowsort
SELECT ALL 57 * 66
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT 16 - COUNT( * ) * ( 63 )
----
-47

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 16 - COUNT ( * ) * ( 63 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - COUNT( DISTINCT 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - COUNT ( DISTINCT 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT 97 - + 23 * - MAX( DISTINCT - 13 + + 42 )
----
764

skipif mysql # not compatible
query I rowsort label-4554
SELECT 97 - + 23 * - MAX ( DISTINCT - 13 + + 42 )
----
764

query I rowsort
SELECT 0 * 17
----
0

query I rowsort
SELECT + 53 * 72 + - 79 AS col0
----
3737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4557
SELECT 81 + COALESCE ( - 58 + 21 DIV + 36, 37 + + CAST( - 2 AS SIGNED ), - COUNT( * ) * + COUNT( * ), - 17 ) DIV 83
----
81

skipif mysql # not compatible
query I rowsort label-4557
SELECT 81 + COALESCE ( - 58 + 21 / + 36, 37 + + CAST ( - 2 AS INTEGER ), - COUNT ( * ) * + COUNT ( * ), - 17 ) / 83
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 87 + - CASE + 33 + + COUNT( * ) WHEN 37 THEN NULL WHEN + ( + 37 ) THEN 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 87 + - CASE + 33 + + COUNT ( * ) WHEN 37 THEN NULL WHEN + ( + 37 ) THEN 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ( + 59 ) * + COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( + 59 ) * + COUNT ( * ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4560
SELECT 26 * + COUNT ( * )
----
26

query I rowsort
SELECT ( 29 ) + + 66
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT 32 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT 32 / + 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT 9 DIV + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 9 / + 49 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT 16 + CASE 23 WHEN + 87 + 23 THEN - 39 + 67 * + NULLIF ( - COUNT( * ), ( 42 ) ) WHEN - ( + ( + NULLIF ( ( + COALESCE ( - ( COUNT( * ) ), COUNT( 66 ) * + 14 + 6 ) ), ( + 54 ) ) ) ) THEN - 56 + 51 * 75 ELSE NULL END * AVG ( DISTINCT - 55 * 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT 16 + CASE 23 WHEN + 87 + 23 THEN - 39 + 67 * + NULLIF ( - COUNT ( * ), ( 42 ) ) WHEN - ( + ( + NULLIF ( ( + COALESCE ( - ( COUNT ( * ) ), COUNT ( 66 ) * + 14 + 6 ) ), ( + 54 ) ) ) ) THEN - 56 + 51 * 75 ELSE NULL END * AVG ( DISTINCT - 55 * 7 )
----
NULL

query I rowsort
SELECT 25 + 11 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT + NULLIF ( + 55, MIN( DISTINCT + 52 ) ) * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + NULLIF ( + 55, MIN ( DISTINCT + 52 ) ) * + COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT + 12 + 20 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - ( 4 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - ( 4 ) AS col2
----
-3

query I rowsort
SELECT CASE + 65 WHEN + 47 THEN + 31 * 20 END + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + ( 99 ) + 86 * + COUNT( * ) AS col0
----
185

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + ( 99 ) + 86 * + COUNT ( * ) AS col0
----
185

query I rowsort
SELECT 31 * + 19
----
589

query I rowsort
SELECT DISTINCT + 67 + + 81 * - 75
----
-6008

query I rowsort
SELECT DISTINCT - ( 44 ) + 11 * - 28
----
-352

query I rowsort
SELECT ALL + 22 * 53
----
1166

query I rowsort
SELECT ALL + ( 45 ) + 85 col0
----
130

query I rowsort
SELECT ALL - 95 + + ( 3 - - 13 * + 74 ) AS col0
----
870

query I rowsort
SELECT ALL 53 + + 36 * - 89 col0
----
-3151

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT ALL 80 + - 76 DIV ( 99 DIV - 76 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 80 + - 76 / ( 99 / - 76 ) AS col2
----
156

query I rowsort
SELECT ALL + 83 * - NULLIF ( + 55, - 3 )
----
-4565

query I rowsort
SELECT + 59 * - 29 AS col2
----
-1711

query I rowsort
SELECT + 63 + + 75
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4582
SELECT DISTINCT + + 15 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + + 15 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 + 77 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT ALL - 33 + - COUNT( * ) DIV - ( - 52 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - 33 + - COUNT ( * ) / - ( - 52 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT - CAST( NULL AS SIGNED ) + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - CAST ( NULL AS INTEGER ) + + 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + 89 * 41
----
3649

query I rowsort
SELECT ALL - 98 * - 58 - 89
----
5595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL SUM( ALL 45 ) DIV + 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL SUM ( ALL 45 ) / + 9 AS col2
----
5

query I rowsort
SELECT DISTINCT - ( + ( + NULLIF ( ( 90 ), 50 ) ) ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL + 6 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 6 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT + 88 + - 55 DIV - 66
----
88

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 88 + - 55 / - 66
----
88

query I rowsort
SELECT DISTINCT + 57 * 61
----
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 46 * COUNT( 43 ) + + 55 * MIN( DISTINCT + 20 + - NULLIF ( + 78, - 67 + 86 ) ) AS col1
----
-3144

skipif mysql # not compatible
query I rowsort label-4595
SELECT 46 * COUNT ( 43 ) + + 55 * MIN ( DISTINCT + 20 + - NULLIF ( + 78, - 67 + 86 ) ) AS col1
----
-3144

query I rowsort
SELECT DISTINCT - ( 86 ) * - 11
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT - COUNT( + 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT - COUNT ( + 0 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 9 * 15
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT COUNT ( * ) * - 7
----
-7

query I rowsort
SELECT ( - 98 ) * 33 AS col1
----
-3234

query I rowsort
SELECT ALL + 25 + - 58 + - 7 AS col2
----
-40

query I rowsort
SELECT ALL 96 + - 88 * 27
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT ( + 74 ) + + 22 * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT ( + 74 ) + + 22 * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 78 * + MIN( - 59 )
----
-4602

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 78 * + MIN ( - 59 )
----
-4602

query I rowsort
SELECT - CASE WHEN NOT 57 = - 7 * + 70 THEN 40 WHEN NOT ( 30 * 52 ) IS NULL THEN NULL END * - 10 AS col0
----
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL CAST( 21 AS SIGNED ) + 26 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CAST ( 21 AS INTEGER ) + 26 AS col0
----
47

query I rowsort
SELECT - CASE 45 WHEN 46 THEN NULL ELSE 80 + 13 END
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 26 * 66 * 70 - CASE - 74 WHEN 33 THEN 50 + + MAX( 84 - - 77 ) ELSE + 98 + 26 END
----
119996

skipif mysql # not compatible
query I rowsort label-4608
SELECT 26 * 66 * 70 - CASE - 74 WHEN 33 THEN 50 + + MAX ( 84 - - 77 ) ELSE + 98 + 26 END
----
119996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT - 81 + + 34 DIV - COUNT( ALL 82 + 3 ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - 81 + + 34 / - COUNT ( ALL 82 + 3 ) AS col1
----
-115

query I rowsort
SELECT DISTINCT 89 * - 23 * 54 AS col2
----
-110538

query I rowsort
SELECT ALL - 63 + 34 * 1 AS col2
----
-29

query I rowsort
SELECT - 18 - + - 32 col0
----
14

query I rowsort
SELECT + 89 + 46 + - 13
----
122

query I rowsort
SELECT + ( 80 ) col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT - + MIN( DISTINCT + 82 ) DIV - COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-4615
SELECT - + MIN ( DISTINCT + 82 ) / - COUNT ( * ) col1
----
82

query I rowsort
SELECT ALL - + 50 - + + 60
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT - COUNT( * ) * - 44 + - CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT - COUNT ( * ) * - 44 + - CAST ( NULL AS INTEGER ) / 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - COUNT( * ) + + + 57 + + 54 * 83 AS col0
----
4538

skipif mysql # not compatible
query I rowsort label-4618
SELECT - COUNT ( * ) + + + 57 + + 54 * 83 AS col0
----
4538

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + MIN( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + MIN ( ALL 96 )
----
96

query I rowsort
SELECT - + NULLIF ( + + 9, + 62 * + 42 )
----
-9

query I rowsort
SELECT - 27 + + - ( 74 ) + + 63
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL - ( - + NULLIF ( + 50, NULLIF ( ( 87 ), 39 ) / 89 ) ) - - SUM( ALL - 56 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - ( - + NULLIF ( + 50, NULLIF ( ( 87 ), 39 ) / 89 ) ) - - SUM ( ALL - 56 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - COALESCE ( COUNT( * ), + 73, - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - COALESCE ( COUNT ( * ), + 73, - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT ALL CAST( ( 96 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL CAST ( ( 96 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT + COALESCE ( - 68, - CAST( + 14 AS SIGNED ) + - 3 * + CASE - COUNT( DISTINCT 75 ) WHEN 30 THEN NULL WHEN + ( - COUNT( * ) ) * - 46 + + COUNT( * ) THEN NULL ELSE + 80 END, + 57 - - 38 * ( 52 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4625
SELECT + COALESCE ( - 68, - CAST ( + 14 AS INTEGER ) + - 3 * + CASE - COUNT ( DISTINCT 75 ) WHEN 30 THEN NULL WHEN + ( - COUNT ( * ) ) * - 46 + + COUNT ( * ) THEN NULL ELSE + 80 END, + 57 - - 38 * ( 52 ) ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT + - COUNT( ALL - ( - 99 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + - COUNT ( ALL - ( - 99 ) ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT + + CAST( + + 11 AS SIGNED ) + 1 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4627
SELECT + + CAST ( + + 11 AS INTEGER ) + 1 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 16 * + + COUNT( 52 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 16 * + + COUNT ( 52 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - COUNT( * ) * - 16 + - 35 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - COUNT ( * ) * - 16 + - 35 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - - 39 - - ( 7 ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4630
SELECT - - 39 - - ( 7 ) + - COUNT ( * ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + COALESCE ( 12, NULLIF ( + ( - 91 ), - COUNT( * ) - 80 ), - 84 + - COALESCE ( - ( + 54 ) + - 74 * 72, + 95 * + CASE 7 * CAST( + 66 AS SIGNED ) WHEN - COALESCE ( + 92, + MIN( DISTINCT 10 ) ) THEN + 41 WHEN + ( ( CASE - 81 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 46 - ( + 5 ) / ( + 68 ) END ) ) + - COUNT( * ) THEN NULL END ) )
----
12

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + COALESCE ( 12, NULLIF ( + ( - 91 ), - COUNT ( * ) - 80 ), - 84 + - COALESCE ( - ( + 54 ) + - 74 * 72, + 95 * + CASE 7 * CAST ( + 66 AS INTEGER ) WHEN - COALESCE ( + 92, + MIN ( DISTINCT 10 ) ) THEN + 41 WHEN + ( ( CASE - 81 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 46 - ( + 5 ) / ( + 68 ) END ) ) + - COUNT ( * ) THEN NULL END ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + - COUNT( - 7 ) * CASE 95 WHEN 80 - - 38 THEN 7 WHEN 78 * + 89 THEN NULL ELSE 30 END - - NULLIF ( + 31, ( 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4632
SELECT + - COUNT ( - 7 ) * CASE 95 WHEN 80 - - 38 THEN 7 WHEN 78 * + 89 THEN NULL ELSE 30 END - - NULLIF ( + 31, ( 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - - 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4633
SELECT - - 89 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL + + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + MAX( + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + MAX ( + - 89 ) AS col1
----
-89

query I rowsort
SELECT ( + + 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT CASE + MAX( ALL - 65 ) WHEN 28 * + 24 - MIN( ALL 61 ) * 61 THEN + 42 * - 68 WHEN 50 + - MIN( + 78 ) THEN CAST( CAST( - 50 AS DECIMAL ) AS SIGNED ) ELSE CAST( - ( + 23 ) AS SIGNED ) END AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4637
SELECT CASE + MAX ( ALL - 65 ) WHEN 28 * + 24 - MIN ( ALL 61 ) * 61 THEN + 42 * - 68 WHEN 50 + - MIN ( + 78 ) THEN CAST ( CAST ( - 50 AS REAL ) AS INTEGER ) ELSE CAST ( - ( + 23 ) AS INTEGER ) END AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT + ( MAX( ALL - 15 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + ( MAX ( ALL - 15 ) ) AS col2
----
-15

query I rowsort
SELECT ALL - 48 * + 22 + + 68 * - 8 col2
----
-1600

query I rowsort
SELECT + 32 - - - 44
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT + CASE + - 56 WHEN 8 THEN NULL WHEN 3 + - 82 THEN - 60 WHEN + 51 * + AVG ( DISTINCT 83 ) THEN CAST( NULL AS SIGNED ) * CAST( - 62 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT + CASE + - 56 WHEN 8 THEN NULL WHEN 3 + - 82 THEN - 60 WHEN + 51 * + AVG ( DISTINCT 83 ) THEN CAST ( NULL AS INTEGER ) * CAST ( - 62 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - 3 + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 3 + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + CASE + 90 WHEN - + 15 * 43 + 68 THEN NULL ELSE 29 END col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL - 31 * 64 + 96 + COUNT( * )
----
-1887

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - 31 * 64 + 96 + COUNT ( * )
----
-1887

query I rowsort
SELECT NULLIF ( - - 30, + + 97 ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT + 85 DIV + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 85 / + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT + 96 + - 3 + + - NULLIF ( - 5, + CASE - 38 WHEN NULLIF ( 49, 58 * 25 ) THEN 61 ELSE NULL END )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT CASE WHEN NULL IS NULL THEN COUNT( * ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-4648
SELECT CASE WHEN NULL IS NULL THEN COUNT ( * ) END col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 72 + + + NULLIF ( - - 92, + ( 7 ) - COUNT( * ) ) + - 98 * 80
----
-7676

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 72 + + + NULLIF ( - - 92, + ( 7 ) - COUNT ( * ) ) + - 98 * 80
----
-7676

query I rowsort
SELECT ALL 84 * + 5 AS col0
----
420

query I rowsort
SELECT 31 * + 91 + 52
----
2873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) ) * - 67 + + 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) ) * - 67 + + 54 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT + COALESCE ( - NULLIF ( + CAST( NULL AS SIGNED ), - 59 ), - ( 31 ), 80 ) + 17
----
-14

skipif mysql # not compatible
query I rowsort label-4654
SELECT + COALESCE ( - NULLIF ( + CAST ( NULL AS INTEGER ), - 59 ), - ( 31 ), 80 ) + 17
----
-14

query I rowsort
SELECT ALL 48 * 92
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + COUNT( * ) + - COALESCE ( + 33, 20 )
----
-32

skipif mysql # not compatible
query I rowsort label-4656
SELECT + COUNT ( * ) + - COALESCE ( + 33, 20 )
----
-32

query I rowsort
SELECT - NULLIF ( + 51, 99 )
----
-51

query I rowsort
SELECT ALL 1 - - + NULLIF ( 51, 20 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT + 6 * - - CAST( - 27 AS SIGNED ) * 60
----
-9720

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 6 * - - CAST ( - 27 AS INTEGER ) * 60
----
-9720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL 15 - + + CAST( + 14 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL 15 - + + CAST ( + 14 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT - + COUNT( * ) col2, + 13 AS col0
----
-1
13

skipif mysql # not compatible
query II rowsort label-4661
SELECT - + COUNT ( * ) col2, + 13 AS col0
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - CASE - 25 WHEN + 49 - 56 THEN 61 WHEN - 80 * - 31 THEN - COALESCE ( COUNT( * ), + 12, 73 * + 80 ) + AVG ( + 17 + - 98 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - CASE - 25 WHEN + 49 - 56 THEN 61 WHEN - 80 * - 31 THEN - COALESCE ( COUNT ( * ), + 12, 73 * + 80 ) + AVG ( + 17 + - 98 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( 57, 64 + + 64 ) * + 92 AS col0
----
-5244

query I rowsort
SELECT ALL - 0 * - 36 * - + 60 * - 28 + 51 * - 71 col0
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + COUNT( * ) - - 7 + 91 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + COUNT ( * ) - - 7 + 91 AS col0
----
99

query I rowsort
SELECT ALL - 51 - + + ( - + 18 ) - 62
----
-95

query I rowsort
SELECT - 34 * ( 32 )
----
-1088

query I rowsort
SELECT ALL 4 * + 15 AS col0
----
60

query I rowsort
SELECT DISTINCT - NULLIF ( - - 39, + + ( 5 ) + 28 )
----
-39

query I rowsort
SELECT - 57 + - - 86
----
29

query I rowsort
SELECT DISTINCT COALESCE ( - 27, - 19 * 51 + 55 * 47 ) AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT + COUNT( * ) DIV - NULLIF ( - 10, - COALESCE ( 37, + COUNT( * ) ) ) * ( 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( * ) / - NULLIF ( - 10, - COALESCE ( 37, + COUNT ( * ) ) ) * ( 67 ) AS col0
----
0

query I rowsort
SELECT - + ( - 58 ) * + - 36 + + 44 AS col1
----
-2044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - COUNT( 86 ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - COUNT ( 86 ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + CASE 12 WHEN 85 + 87 THEN - 21 END + + 2 AS col2
----
NULL

query I rowsort
SELECT - - 93 + 56
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT ALL + - 30 DIV - - COUNT( DISTINCT + 71 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + - 30 / - - COUNT ( DISTINCT + 71 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT - - 17 * - 20 + + 40 DIV 60
----
-340

skipif mysql # not compatible
query I rowsort label-4678
SELECT - - 17 * - 20 + + 40 / 60
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL 14 DIV + 23 + - COUNT( * ) + 52 * 47
----
2443

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 14 / + 23 + - COUNT ( * ) + 52 * 47
----
2443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT + 96 DIV + - COUNT( * ) + ( CASE 17 WHEN NULLIF ( - 81, - ( + 13 ) ) THEN NULL WHEN + 81 * 3 THEN 86 + CASE 47 WHEN - CAST( NULL AS SIGNED ) THEN 94 WHEN 34 + CAST( + NULLIF ( 78, 71 ) + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN NULL END ELSE 50 END ) - 67 * 76 AS col1
----
-5138

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 96 / + - COUNT ( * ) + ( CASE 17 WHEN NULLIF ( - 81, - ( + 13 ) ) THEN NULL WHEN + 81 * 3 THEN 86 + CASE 47 WHEN - CAST ( NULL AS INTEGER ) THEN 94 WHEN 34 + CAST ( + NULLIF ( 78, 71 ) + CAST ( NULL AS INTEGER ) AS REAL ) THEN NULL END ELSE 50 END ) - 67 * 76 AS col1
----
-5138

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ALL + - 84 DIV - 77 + - 44 + - 74 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - 84 / - 77 + - 44 + - 74 AS col2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4682
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, 95
----
NULL
95

query I rowsort
SELECT ALL + 98 + + 86
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT - COALESCE ( - 16, 75 ) + + MIN( 84 )
----
100

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - COALESCE ( - 16, 75 ) + + MIN ( 84 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 6 * COUNT( + 28 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4685
SELECT 6 * COUNT ( + 28 ) AS col0
----
6

query I rowsort
SELECT ALL - 26 + - - 67 + + ( - 40 ) * 67
----
-2639

query I rowsort
SELECT ALL - ( + 35 ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT - CAST( + - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - CAST ( + - 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 31 * + MIN( DISTINCT ( - 29 ) )
----
-899

skipif mysql # not compatible
query I rowsort label-4689
SELECT 31 * + MIN ( DISTINCT ( - 29 ) )
----
-899

query I rowsort
SELECT ALL - COALESCE ( 82, 69 ) + + + ( - 27 )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT DISTINCT - ( 27 ) col1, 60 + + 76 + 72 * 92 * + COUNT( * )
----
-27
6760

skipif mysql # not compatible
query II rowsort label-4691
SELECT DISTINCT - ( 27 ) col1, 60 + + 76 + 72 * 92 * + COUNT ( * )
----
-27
6760

query I rowsort
SELECT ALL 37 - - 78
----
115

query I rowsort
SELECT 56 * + 26 AS col2
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL - MIN( ALL - 82 ) AS col0, 35
----
82
35

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL - MIN ( ALL - 82 ) AS col0, 35
----
82
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL - CAST( + - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - CAST ( + - 87 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL 1 - + + COALESCE ( 49, 61 ) * + CASE 7 * 99 + CASE 93 - 89 / + COUNT( * ) WHEN - 78 THEN NULL ELSE MIN( 51 ) END WHEN MAX( ALL + 19 ) * 57 THEN NULLIF ( + 46, + 51 ) WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL 1 - + + COALESCE ( 49, 61 ) * + CASE 7 * 99 + CASE 93 - 89 / + COUNT ( * ) WHEN - 78 THEN NULL ELSE MIN ( 51 ) END WHEN MAX ( ALL + 19 ) * 57 THEN NULLIF ( + 46, + 51 ) WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT 46 * + COUNT( * ), + 69 AS col0
----
46
69

skipif mysql # not compatible
query II rowsort label-4697
SELECT 46 * + COUNT ( * ), + 69 AS col0
----
46
69

query I rowsort
SELECT ALL 53 * 19
----
1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT MIN( + 81 ) - CAST( - COUNT( * ) AS SIGNED ) * + 35
----
116

skipif mysql # not compatible
query I rowsort label-4699
SELECT MIN ( + 81 ) - CAST ( - COUNT ( * ) AS INTEGER ) * + 35
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL + + 66 * 17 - - 99 * + + CAST( 97 AS SIGNED )
----
10725

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + + 66 * 17 - - 99 * + + CAST ( 97 AS INTEGER )
----
10725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT DISTINCT + 2 * - CAST( + 16 AS SIGNED ) * + 97
----
-3104

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 2 * - CAST ( + 16 AS INTEGER ) * + 97
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL 75 * MAX( DISTINCT + 89 ) * - - 46 - 35 * - 34 col0
----
308240

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 75 * MAX ( DISTINCT + 89 ) * - - 46 - 35 * - 34 col0
----
308240

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT 45 + - + 13 + + CASE + - 48 WHEN - COUNT( DISTINCT 66 ) + 3 THEN NULL ELSE 46 * + COUNT( * ) + 19 END AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4703
SELECT 45 + - + 13 + + CASE + - 48 WHEN - COUNT ( DISTINCT 66 ) + 3 THEN NULL ELSE 46 * + COUNT ( * ) + 19 END AS col2
----
97

query I rowsort
SELECT 89 - + 10
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + NULLIF ( - COUNT( * ), + + SUM( ALL + COALESCE ( - 34, 2 + 38 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4705
SELECT + NULLIF ( - COUNT ( * ), + + SUM ( ALL + COALESCE ( - 34, 2 + 38 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT NULLIF ( - + COUNT( DISTINCT - 93 ), + + 20 * - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4706
SELECT NULLIF ( - + COUNT ( DISTINCT - 93 ), + + 20 * - 73 )
----
-1

query I rowsort
SELECT - - CASE + - ( 48 ) WHEN + - 48 / - NULLIF ( + 7, 5 * 25 ) + + 47 THEN 99 + - 36 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 28 + - 50 - 55 + - - 24 + + 85 * - 68 AS col2
----
-5833

query I rowsort
SELECT DISTINCT 77 + 45 AS col1
----
122

query I rowsort
SELECT DISTINCT + 95 + - 1 + + 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT - - 66 + + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - 66 + + COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + COALESCE ( MAX( - 43 ), + + 52 * - 84 + + 91 )
----
-43

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + COALESCE ( MAX ( - 43 ), + + 52 * - 84 + + 91 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT DISTINCT CAST( NULL AS SIGNED ) + + AVG ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + AVG ( - 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4714
SELECT DISTINCT + 76 + - + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT 41 DIV - ( ( - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT 41 / - ( ( - 67 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL COALESCE ( - 54, 43, + ( - - ( + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) ) + + 47
----
-7

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COALESCE ( - 54, 43, + ( - - ( + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) ) + + 47
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - MAX( ALL - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - MAX ( ALL - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT 22 - - 43 / + 11 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT 22 - - 43 / + 11 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT ( - CAST( NULL AS SIGNED ) ) * + 4 AS col1, - 1 col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4719
SELECT ( - CAST ( NULL AS INTEGER ) ) * + 4 AS col1, - 1 col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT ALL + ( - + 15 ) DIV - MIN( DISTINCT + - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + ( - + 15 ) / - MIN ( DISTINCT + - 37 )
----
0

query I rowsort
SELECT DISTINCT + 49 * - - 78
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL - 95 - 87 + + NULLIF ( + + 89, + + 62 * - ( + 34 ) + 93 * + 83 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - 95 - 87 + + NULLIF ( + + 89, + + 62 * - ( + 34 ) + 93 * + 83 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL + 40 * CAST( + COUNT( * ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + 40 * CAST ( + COUNT ( * ) AS INTEGER )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4724
SELECT ALL CAST( NULL AS SIGNED ) / - - ( 7 ) AS col0, - 94
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-4724
SELECT ALL CAST ( NULL AS INTEGER ) / - - ( 7 ) AS col0, - 94
----
NULL
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4725
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 70 * 91
----
NULL
-6370

skipif mysql # not compatible
query II rowsort label-4725
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 70 * 91
----
NULL
-6370

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT ALL - 1, - CASE + - 27 WHEN 66 - 10 + 55 * COUNT( * ) THEN + 36 + 68 * + COUNT( * ) WHEN 64 THEN - 51 WHEN COUNT( * ) THEN - 69 END + 61 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4726
SELECT ALL - 1, - CASE + - 27 WHEN 66 - 10 + 55 * COUNT ( * ) THEN + 36 + 68 * + COUNT ( * ) WHEN 64 THEN - 51 WHEN COUNT ( * ) THEN - 69 END + 61 AS col2
----
-1
NULL

query I rowsort
SELECT 40 + + + ( 87 )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + ( + COUNT( DISTINCT - - 73 ) ) * + 77 DIV + 79 - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-4728
SELECT + ( + COUNT ( DISTINCT - - 73 ) ) * + 77 / + 79 - + 96
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT - 77 * - 51 * 21, + MAX( + 74 ) AS col1
----
82467
74

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT - 77 * - 51 * 21, + MAX ( + 74 ) AS col1
----
82467
74

query I rowsort
SELECT 56 + 83 AS col0
----
139

query I rowsort
SELECT DISTINCT - COALESCE ( 49, - 41 * - 93 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT + 87 * - + NULLIF ( 71, + COUNT( * ) )
----
-6177

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + 87 * - + NULLIF ( 71, + COUNT ( * ) )
----
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT DISTINCT - NULLIF ( 22, COUNT( * ) ), + 57 AS col1
----
-22
57

skipif mysql # not compatible
query II rowsort label-4733
SELECT DISTINCT - NULLIF ( 22, COUNT ( * ) ), + 57 AS col1
----
-22
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT + 78 * - MIN( - 59 )
----
4602

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT + 78 * - MIN ( - 59 )
----
4602

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + 15 * - COUNT( * ) + + 8
----
-7

skipif mysql # not compatible
query I rowsort label-4735
SELECT + 15 * - COUNT ( * ) + + 8
----
-7

query I rowsort
SELECT + ( - CASE - ( + 27 ) WHEN + + 81 THEN + 83 + + 64 WHEN 93 THEN NULL WHEN - 77 THEN NULL END ) * - ( 8 - 35 )
----
NULL

query I rowsort
SELECT 81 + + 34 AS col1
----
115

query I rowsort
SELECT DISTINCT CASE - ( - 65 ) WHEN - 5 THEN - + 81 + + 93 ELSE - 96 * + 29 END
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + NULLIF ( + - COUNT( * ), + 51 / + + 98 * - + 66 ) + ( 24 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4739
SELECT + NULLIF ( + - COUNT ( * ), + 51 / + + 98 * - + 66 ) + ( 24 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT + 56 DIV + ( + - ( - 51 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 56 / + ( + - ( - 51 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT COUNT( * ) + - + 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4741
SELECT COUNT ( * ) + - + 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL + COALESCE ( 42, - 26 * + - COUNT( * ) + - - 66 + + 53 + - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + COALESCE ( 42, - 26 * + - COUNT ( * ) + - - 66 + + 53 + - COUNT ( * ) )
----
42

query II rowsort
SELECT DISTINCT + + 89 * ( 64 ), - 92 col2
----
5696
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL - + 26 + - 60 - + - 37 * - + MIN( ALL - ( - 94 ) ) * + 38 AS col2
----
-132250

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - + 26 + - 60 - + - 37 * - + MIN ( ALL - ( - 94 ) ) * + 38 AS col2
----
-132250

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT + 20, - 73 * 22 + COUNT( * ) AS col0
----
20
-1605

skipif mysql # not compatible
query II rowsort label-4745
SELECT + 20, - 73 * 22 + COUNT ( * ) AS col0
----
20
-1605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL 22 + + - 86 - - - 2 / - CAST( NULL AS SIGNED ) / 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL 22 + + - 86 - - - 2 / - CAST ( NULL AS INTEGER ) / 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT - MIN( + 77 ) + - 78 + - + NULLIF ( - 89, - 59 * - 74 ) - - 83 * CAST( + 97 AS SIGNED )
----
7985

skipif mysql # not compatible
query I rowsort label-4747
SELECT - MIN ( + 77 ) + - 78 + - + NULLIF ( - 89, - 59 * - 74 ) - - 83 * CAST ( + 97 AS INTEGER )
----
7985

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + - COUNT( * ) + 39 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + - COUNT ( * ) + 39 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT + 40 + + CAST( - 30 AS SIGNED ) + 30
----
40

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + 40 + + CAST ( - 30 AS INTEGER ) + 30
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT + - 97 * - 95 * - COUNT( * )
----
-9215

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + - 97 * - 95 * - COUNT ( * )
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT 29 * + 81 * + SUM( + 91 )
----
213759

skipif mysql # not compatible
query I rowsort label-4751
SELECT 29 * + 81 * + SUM ( + 91 )
----
213759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT DISTINCT - CAST( 9 AS SIGNED ) * - 75 AS col2
----
675

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - CAST ( 9 AS INTEGER ) * - 75 AS col2
----
675

query II rowsort
SELECT DISTINCT - 32 AS col0, ( 4 )
----
-32
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT DISTINCT + 78 AS col0, + COUNT( * ) - - - 30 + - + 57 col2
----
78
-86

skipif mysql # not compatible
query II rowsort label-4754
SELECT DISTINCT + 78 AS col0, + COUNT ( * ) - - - 30 + - + 57 col2
----
78
-86

query I rowsort
SELECT + - 10 + 48 + + 88 + 36 col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT COUNT( * ) + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT COUNT ( * ) + - 14
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT + CAST( 35 AS SIGNED ) + + + NULLIF ( + 55, - 63 * CASE 89 WHEN + 29 - - 86 THEN 58 ELSE - NULLIF ( - 80, + ( 35 ) * COUNT( * ) ) * 62 END + 31 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4757
SELECT + CAST ( 35 AS INTEGER ) + + + NULLIF ( + 55, - 63 * CASE 89 WHEN + 29 - - 86 THEN 58 ELSE - NULLIF ( - 80, + ( 35 ) * COUNT ( * ) ) * 62 END + 31 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + - ( 97 ) * + + 75 * CASE + COUNT( 32 ) WHEN 1 + + 55 THEN + 43 WHEN - 44 * 97 THEN NULL WHEN + 87 THEN SUM( - 8 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT + - ( 97 ) * + + 75 * CASE + COUNT ( 32 ) WHEN 1 + + 55 THEN + 43 WHEN - 44 * 97 THEN NULL WHEN + 87 THEN SUM ( - 8 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT DISTINCT 33 AS col0, COALESCE ( - - 23, 28 * 23, - 73 ) + MIN( 37 )
----
33
60

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT 33 AS col0, COALESCE ( - - 23, 28 * 23, - 73 ) + MIN ( 37 )
----
33
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL CASE - + 42 WHEN + + CAST( - 86 AS SIGNED ) * + 9 + - + 85 THEN + 52 WHEN + ( + 28 ) - COUNT( * ) * COALESCE ( ( 40 ) + 99, 59 / 36, - CAST( 26 AS SIGNED ) ) THEN - CAST( + COUNT( * ) AS SIGNED ) * - 63 END + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL CASE - + 42 WHEN + + CAST ( - 86 AS INTEGER ) * + 9 + - + 85 THEN + 52 WHEN + ( + 28 ) - COUNT ( * ) * COALESCE ( ( 40 ) + 99, 59 / 36, - CAST ( 26 AS INTEGER ) ) THEN - CAST ( + COUNT ( * ) AS INTEGER ) * - 63 END + 96 AS col1
----
NULL

query I rowsort
SELECT + 97 + - 25
----
72

query I rowsort
SELECT - COALESCE ( + CASE + - 4 WHEN 57 THEN + 87 ELSE NULL END, - - 12 - - 55, 68 + + 99 * + 14 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 73 + + COUNT( * ) + 63 * 34 AS col0
----
2216

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 73 + + COUNT ( * ) + 63 * 34 AS col0
----
2216

query I rowsort
SELECT ALL 79 - ( - 5 )
----
84

query II rowsort
SELECT DISTINCT + 2 AS col1, - 19 + 80
----
2
61

query I rowsort
SELECT DISTINCT + 39 * ( 52 ) - + 84 AS col0
----
1944

query I rowsort
SELECT + NULLIF ( 31, + 10 ) * 65 + - 23 AS col0
----
1992

query II rowsort
SELECT ALL + 5 AS col0, 62 * + - 61
----
5
-3782

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT + COUNT( * ), + 24 * - - 42 * - 41 col0
----
1
-41328

skipif mysql # not compatible
query II rowsort label-4769
SELECT + COUNT ( * ), + 24 * - - 42 * - 41 col0
----
1
-41328

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT - MAX( ALL - - 98 ) + - + 39 * - 17 AS col1, 22
----
565
22

skipif mysql # not compatible
query II rowsort label-4770
SELECT - MAX ( ALL - - 98 ) + - + 39 * - 17 AS col1, 22
----
565
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + CASE + COUNT( * ) WHEN 91 * - 60 THEN - 40 * + 27 DIV + 67 - 74 * + CASE + COUNT( * ) + MAX( - 18 + + 37 ) WHEN + 3 THEN NULL WHEN MAX( DISTINCT 34 ) * 85 THEN NULL WHEN - 16 * + 32 THEN - COUNT( * ) ELSE NULL END WHEN 23 - + 1 THEN - 80 DIV + 43 ELSE 77 END * 70 AS col2
----
5390

skipif mysql # not compatible
query I rowsort label-4771
SELECT + CASE + COUNT ( * ) WHEN 91 * - 60 THEN - 40 * + 27 / + 67 - 74 * + CASE + COUNT ( * ) + MAX ( - 18 + + 37 ) WHEN + 3 THEN NULL WHEN MAX ( DISTINCT 34 ) * 85 THEN NULL WHEN - 16 * + 32 THEN - COUNT ( * ) ELSE NULL END WHEN 23 - + 1 THEN - 80 / + 43 ELSE 77 END * 70 AS col2
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + COALESCE ( - - 85, - 42 * - 81, - 9 ) * SUM( + 77 ) + + 82 + - 90
----
6537

skipif mysql # not compatible
query I rowsort label-4772
SELECT + COALESCE ( - - 85, - 42 * - 81, - 9 ) * SUM ( + 77 ) + + 82 + - 90
----
6537

query II rowsort
SELECT + 48 AS col0, + 33
----
48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT CASE + COUNT( * ) WHEN - 62 THEN NULL WHEN + - 51 THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT CASE + COUNT ( * ) WHEN - 62 THEN NULL WHEN + - 51 THEN + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT ALL + COUNT( * ) AS col2, + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-4775
SELECT ALL + COUNT ( * ) AS col2, + 22
----
1
22

query I rowsort
SELECT ALL - 1 * - 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - 53 DIV + + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 53 / + + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT 77 DIV - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT 77 / - COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT + 21 * + + 58
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + - 63 - SUM( ALL 89 )
----
-152

skipif mysql # not compatible
query I rowsort label-4780
SELECT + - 63 - SUM ( ALL 89 )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + MAX( + - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4781
SELECT + MAX ( + - 21 ) AS col1
----
-21

query I rowsort
SELECT DISTINCT + + ( - 52 ) * 66
----
-3432

query I rowsort
SELECT + + 88 * 36
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT ( 54 ) AS col1, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-4784
SELECT ( 54 ) AS col1, COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4785
SELECT DISTINCT + + 88, - 9 + - - CAST( NULL AS SIGNED ) * - 64 + + 14 / + CASE - COALESCE ( 45, 2 + - 90, + CAST( NULL AS SIGNED ) * COUNT( * ) ) WHEN 98 THEN + 24 WHEN - ( 72 ) THEN - 48 END + COUNT( * ) AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT DISTINCT + + 88, - 9 + - - CAST ( NULL AS INTEGER ) * - 64 + + 14 / + CASE - COALESCE ( 45, 2 + - 90, + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) WHEN 98 THEN + 24 WHEN - ( 72 ) THEN - 48 END + COUNT ( * ) AS col1
----
88
NULL

query I rowsort
SELECT ALL + - 16 * + - NULLIF ( + 6, - - 73 * - 49 ) + 84 AS col1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT - ( - 59 ) * - 18 * + + 34 * + 81 + CAST( NULL AS SIGNED ) - 27 / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT - ( - 59 ) * - 18 * + + 34 * + 81 + CAST ( NULL AS INTEGER ) - 27 / - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + NULLIF ( COALESCE ( - 40, + 83 * - 18, 11 - + 0 * - 90, - COUNT( * ) ), - COALESCE ( ( + COALESCE ( 86, 54 * 92 ) ), 48 - 32 ) ) * - 47 AS col2
----
1880

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + NULLIF ( COALESCE ( - 40, + 83 * - 18, 11 - + 0 * - 90, - COUNT ( * ) ), - COALESCE ( ( + COALESCE ( 86, 54 * 92 ) ), 48 - 32 ) ) * - 47 AS col2
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - SUM( - 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4789
SELECT - SUM ( - 5 ) AS col2
----
5

query I rowsort
SELECT - - 81 - - - 22 + + 15 * + + 91
----
1424

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT - 17 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - 17 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + + COUNT( * ) - - 48
----
49

skipif mysql # not compatible
query I rowsort label-4792
SELECT + + COUNT ( * ) - - 48
----
49

query I rowsort
SELECT ALL + 26 - 19 * - + 93 * - ( 7 )
----
-12343

query II rowsort
SELECT - + 0 AS col0, 79 col1
----
0
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT - MAX( DISTINCT - 27 ) AS col1, - NULLIF ( ( - 73 ), - 22 * - 17 + - 42 ) * 30
----
27
2190

skipif mysql # not compatible
query II rowsort label-4795
SELECT - MAX ( DISTINCT - 27 ) AS col1, - NULLIF ( ( - 73 ), - 22 * - 17 + - 42 ) * 30
----
27
2190

query I rowsort
SELECT - 32 + - + 36 AS col0
----
-68

query I rowsort
SELECT ALL - 76 * - 93
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + 4 * + - MIN( - 69 ) col0
----
276

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + 4 * + - MIN ( - 69 ) col0
----
276

query I rowsort
SELECT + 84 - 22 * 37
----
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL MAX( ALL + 77 ) * CAST( NULL AS SIGNED ) / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL MAX ( ALL + 77 ) * CAST ( NULL AS INTEGER ) / + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT 41 DIV + 71 * + 47 * - ( + + 65 ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-4801
SELECT 41 / + 71 * + 47 * - ( + + 65 ) + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4802
SELECT ALL 7 * CAST( - - 8 AS SIGNED ) DIV + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL 7 * CAST ( - - 8 AS INTEGER ) / + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4803
SELECT ALL - 47 / - COUNT( * ) * - COUNT( * ) + - COUNT( * ) - - 66 * - CASE + CAST( 11 AS DECIMAL ) WHEN 97 * 97 THEN - CASE - ( 31 ) WHEN + 34 + + 97 THEN NULL WHEN + 81 * 44 + 49 * - 68 THEN NULL ELSE - CAST( - 2 AS SIGNED ) * + 40 - 25 END * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 47 / - COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) - - 66 * - CASE + CAST ( 11 AS REAL ) WHEN 97 * 97 THEN - CASE - ( 31 ) WHEN + 34 + + 97 THEN NULL WHEN + 81 * 44 + 49 * - 68 THEN NULL ELSE - CAST ( - 2 AS INTEGER ) * + 40 - 25 END * + 62 END
----
NULL

query II rowsort
SELECT + 30 - - - 20 + - 84, - 15 col1
----
-74
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL 36 * - 6 * + ( - NULLIF ( - CASE - SUM( DISTINCT - - 13 ) WHEN - 94 THEN NULL WHEN + 37 THEN NULL WHEN + 89 THEN CAST( + 35 AS SIGNED ) / 93 ELSE NULL END, 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL 36 * - 6 * + ( - NULLIF ( - CASE - SUM ( DISTINCT - - 13 ) WHEN - 94 THEN NULL WHEN + 37 THEN NULL WHEN + 89 THEN CAST ( + 35 AS INTEGER ) / 93 ELSE NULL END, 16 ) )
----
NULL

query I rowsort
SELECT + 7 * + 4 * + - 50 * - 19 + - 81
----
26519

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT + 6 - + 28 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 6 - + 28 - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 59 * 39
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT + NULLIF ( 35, 61 * + COUNT( * ) ) + - ( - - CASE + 71 WHEN 46 THEN 18 ELSE - COUNT( * ) + + 99 END ) - 60 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4809
SELECT + NULLIF ( 35, 61 * + COUNT ( * ) ) + - ( - - CASE + 71 WHEN 46 THEN 18 ELSE - COUNT ( * ) + + 99 END ) - 60 AS col1
----
-123

query I rowsort
SELECT - 80 * + CASE WHEN 38 <= NULL THEN 97 ELSE - - 79 END + 76 * ( + 76 * 74 - 19 ) AS col1
----
419660

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + MAX( NULLIF ( + - 28, + 19 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4811
SELECT + MAX ( NULLIF ( + - 28, + 19 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - + COUNT( * ) * + 20 + 0 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - + COUNT ( * ) * + 20 + 0 AS col0
----
-20

query I rowsort
SELECT ALL 25 * - 54 + 14 * + 80
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL - 40 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 40 / + - 94
----
0

query I rowsort
SELECT DISTINCT - 44 * + - 51 * 31 + 87 AS col0
----
69651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL - 71 + CAST( - 96 AS SIGNED )
----
-167

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - 71 + CAST ( - 96 AS INTEGER )
----
-167

query I rowsort
SELECT DISTINCT - + 21 * 16
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT 43 * COUNT( * ) - + - CASE 49 WHEN 44 * + 86 THEN - 53 WHEN + COUNT( * ) + 8 THEN COALESCE ( 34, 10, 72 ) - + COALESCE ( + CASE + 67 WHEN CASE 16 WHEN 17 THEN NULL WHEN MAX( 82 ) + 41 THEN 78 END + - COALESCE ( CASE 81 WHEN MAX( 32 ) * 2 + COUNT( * ) THEN + 30 END, COUNT( * ) * + MAX( + ( 88 ) / - 19 ) ) THEN - 40 ELSE + 79 / - 91 END + 43 * 80, - 75 - 34 * + 6 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT 43 * COUNT ( * ) - + - CASE 49 WHEN 44 * + 86 THEN - 53 WHEN + COUNT ( * ) + 8 THEN COALESCE ( 34, 10, 72 ) - + COALESCE ( + CASE + 67 WHEN CASE 16 WHEN 17 THEN NULL WHEN MAX ( 82 ) + 41 THEN 78 END + - COALESCE ( CASE 81 WHEN MAX ( 32 ) * 2 + COUNT ( * ) THEN + 30 END, COUNT ( * ) * + MAX ( + ( 88 ) / - 19 ) ) THEN - 40 ELSE + 79 / - 91 END + 43 * 80, - 75 - 34 * + 6 ) END AS col0
----
NULL

query I rowsort
SELECT - 45 * ( - 36 ) AS col2
----
1620

query I rowsort
SELECT 90 + 27 - + 18 * 17
----
-189

query I rowsort
SELECT DISTINCT + ( + - ( + 87 ) ) * 17 * + 52 AS col1
----
-76908

query I rowsort
SELECT ALL - NULLIF ( 83, - - 79 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT ALL - - 17 - - 34 + + + 47 DIV + 10
----
55

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - - 17 - - 34 + + + 47 / + 10
----
55

query I rowsort
SELECT 13 * - + 9 AS col1
----
-117

query I rowsort
SELECT - NULLIF ( + 40, 82 ) AS col1
----
-40

query II rowsort
SELECT ALL 61 AS col0, - 46
----
61
-46

query I rowsort
SELECT 50 * 64
----
3200

query I rowsort
SELECT 66 + + 4
----
70

query II rowsort
SELECT 37, 77 AS col2
----
37
77

query II rowsort
SELECT ALL 25, - 94 AS col2
----
25
-94

query I rowsort
SELECT 40 * - 59 * - 35
----
82600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT 76 + CAST( + - 71 AS SIGNED ) DIV COUNT( * ) * - 70
----
5046

skipif mysql # not compatible
query I rowsort label-4832
SELECT 76 + CAST ( + - 71 AS INTEGER ) / COUNT ( * ) * - 70
----
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT ALL - 36 DIV + 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - 36 / + 19 AS col1
----
-1

query I rowsort
SELECT 56 + - + 49 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT DISTINCT 85, MIN( + 17 ) col0
----
85
17

skipif mysql # not compatible
query II rowsort label-4835
SELECT DISTINCT 85, MIN ( + 17 ) col0
----
85
17

query I rowsort
SELECT DISTINCT + 91 + + 30 AS col2
----
121

query I rowsort
SELECT DISTINCT - 19 * + 30
----
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT 85 DIV 29 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT 85 / 29 / - 60 AS col2
----
0

query I rowsort
SELECT 65 * - 81 AS col0
----
-5265

query I rowsort
SELECT ALL - COALESCE ( + 80, - - 59 - + 3 + - + 24 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT - 28 + + 7 + - - 55 DIV 16
----
-18

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - 28 + + 7 + - - 55 / 16
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 88 + - - 35 * - + COUNT( 69 ) * + - COALESCE ( + 29, NULLIF ( + COUNT( * ), - 2 ), 39 ) AS col1
----
1103

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 88 + - - 35 * - + COUNT ( 69 ) * + - COALESCE ( + 29, NULLIF ( + COUNT ( * ), - 2 ), 39 ) AS col1
----
1103

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT + 60 AS col2, + 94 * COUNT( ALL - - 33 )
----
60
94

skipif mysql # not compatible
query II rowsort label-4843
SELECT + 60 AS col2, + 94 * COUNT ( ALL - - 33 )
----
60
94

query II rowsort
SELECT + + 12, 92 * - 87 AS col0
----
12
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( DISTINCT 5 ) * ( - ( - + 9 ) ) - 41 + - + COUNT( * ) * - 13 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( DISTINCT 5 ) * ( - ( - + 9 ) ) - 41 + - + COUNT ( * ) * - 13 AS col2
----
-19

query I rowsort
SELECT ALL + ( + + 18 ) + 70 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) / - 27 * + 48 * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / - 27 * + 48 * - - 80
----
NULL

query I rowsort
SELECT DISTINCT - 33 + - 42 col1
----
-75

query I rowsort
SELECT DISTINCT + 53 + - 5
----
48

query II rowsort
SELECT 33, 97 * - + ( - 8 ) AS col2
----
33
776

query II rowsort
SELECT + + 81 AS col0, 1
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - CASE + 50 WHEN - COUNT( * ) THEN COUNT( - 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - CASE + 50 WHEN - COUNT ( * ) THEN COUNT ( - 74 ) END
----
NULL

query I rowsort
SELECT 15 + + - 77 AS col2
----
-62

query I rowsort
SELECT 58 * - 67
----
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT COUNT( * ) * ( + COUNT( * ) ), 30 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-4855
SELECT COUNT ( * ) * ( + COUNT ( * ) ), 30 AS col1
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT SUM( - - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4856
SELECT SUM ( - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + SUM( ALL + 55 ) - - 80 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + SUM ( ALL + 55 ) - - 80 AS col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT + COALESCE ( + 63, + - 33 + - COUNT( * ) + + SUM( DISTINCT - 55 ) ) AS col0, 93 - + 70
----
63
23

skipif mysql # not compatible
query II rowsort label-4858
SELECT + COALESCE ( + 63, + - 33 + - COUNT ( * ) + + SUM ( DISTINCT - 55 ) ) AS col0, 93 - + 70
----
63
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT ALL - 25, + CASE ( 82 ) WHEN + SUM( ALL + 37 ) * - COUNT( * ) * - 80 THEN - 54 + 43 END AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL - 25, + CASE ( 82 ) WHEN + SUM ( ALL + 37 ) * - COUNT ( * ) * - 80 THEN - 54 + 43 END AS col2
----
-25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT CAST( 44 AS SIGNED ) - + 73 + - 63 - - - 91 * - 22 * MAX( + + 99 )
----
198106

skipif mysql # not compatible
query I rowsort label-4860
SELECT CAST ( 44 AS INTEGER ) - + 73 + - 63 - - - 91 * - 22 * MAX ( + + 99 )
----
198106

query II rowsort
SELECT ALL 18 AS col1, + 15 + - 82 AS col2
----
18
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + 2 * + - COUNT( * ) * 5 + - 40 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + 2 * + - COUNT ( * ) * 5 + - 40 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-4863
SELECT DISTINCT ( + ( 73 ) ) DIV 85 * - + 35 col0, 99
----
0
99

skipif mysql # not compatible
query II rowsort label-4863
SELECT DISTINCT ( + ( 73 ) ) / 85 * - + 35 col0, 99
----
0
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4864
SELECT 69 - - + 32 + + - 28 * 50 DIV + - 45 + - CAST( 98 AS SIGNED ) + - 32 * + - 95 AS col1
----
3074

skipif mysql # not compatible
query I rowsort label-4864
SELECT 69 - - + 32 + + - 28 * 50 / + - 45 + - CAST ( 98 AS INTEGER ) + - 32 * + - 95 AS col1
----
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT 79 - - + 9 * - - SUM( DISTINCT + - 60 )
----
-461

skipif mysql # not compatible
query I rowsort label-4865
SELECT 79 - - + 9 * - - SUM ( DISTINCT + - 60 )
----
-461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT 50 * - + SUM( ALL + - ( + 5 ) ) DIV - COUNT( * ) AS col1
----
-250

skipif mysql # not compatible
query I rowsort label-4866
SELECT 50 * - + SUM ( ALL + - ( + 5 ) ) / - COUNT ( * ) AS col1
----
-250

query II rowsort
SELECT 85 * + + 62 AS col2, 92 * + 53
----
5270
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - MIN( 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4868
SELECT - MIN ( 17 )
----
-17

query II rowsort
SELECT ALL + 77 + 4 AS col0, 10
----
81
10

query I rowsort
SELECT ALL 66 + 40
----
106

query I rowsort
SELECT 75 * 87
----
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT ALL - 5 + + COUNT( * ) col0, + 30 * - - COALESCE ( - - 34, + 55 )
----
-4
1020

skipif mysql # not compatible
query II rowsort label-4872
SELECT ALL - 5 + + COUNT ( * ) col0, + 30 * - - COALESCE ( - - 34, + 55 )
----
-4
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT CASE + - 91 WHEN 11 + - 79 THEN - + 95 + - 86 WHEN + ( + + 26 ) THEN - 51 + + 13 DIV 45 ELSE CASE ( + 71 ) WHEN 32 DIV - ( - COUNT( * ) ) THEN NULL WHEN - 3 * + COUNT( * ) THEN + 96 ELSE + 60 * COUNT( 23 ) END * 70 END + - 79 AS col1
----
4121

skipif mysql # not compatible
query I rowsort label-4873
SELECT CASE + - 91 WHEN 11 + - 79 THEN - + 95 + - 86 WHEN + ( + + 26 ) THEN - 51 + + 13 / 45 ELSE CASE ( + 71 ) WHEN 32 / - ( - COUNT ( * ) ) THEN NULL WHEN - 3 * + COUNT ( * ) THEN + 96 ELSE + 60 * COUNT ( 23 ) END * 70 END + - 79 AS col1
----
4121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT 1 * - 92, + CAST( NULL AS SIGNED ) + - + 77 AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4874
SELECT 1 * - 92, + CAST ( NULL AS INTEGER ) + - + 77 AS col0
----
-92
NULL

query I rowsort
SELECT NULLIF ( 16, - - 5 )
----
16

query I rowsort
SELECT COALESCE ( - 79, - 87 ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT + + ( - + 25 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + + ( - + 25 ) / + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL 0 * ( + + 21 ) + - + CAST( - COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 0 * ( + + 21 ) + - + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
1

query I rowsort
SELECT ALL + NULLIF ( - 59, - + 88 ) * - 51
----
3009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT - 47 + + COALESCE ( - 7, + 52, + + ( 29 ) DIV 91 DIV 2 ) + SUM( DISTINCT 3 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 47 + + COALESCE ( - 7, + 52, + + ( 29 ) / 91 / 2 ) + SUM ( DISTINCT 3 ) AS col0
----
-51

query I rowsort
SELECT - + 18 * + - 42 * 87 AS col0
----
65772

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT + + 88 * 89 * - COUNT( 19 )
----
-7832

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + + 88 * 89 * - COUNT ( 19 )
----
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL - 35 * - + 20 - - + 32 + + COUNT( DISTINCT 11 ) AS col1
----
733

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL - 35 * - + 20 - - + 32 + + COUNT ( DISTINCT 11 ) AS col1
----
733

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT - - NULLIF ( 23, + ( - 87 ) DIV + ( 90 ) ) - 0 + - COALESCE ( - 67, + 58 DIV + 96 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-4884
SELECT - - NULLIF ( 23, + ( - 87 ) / + ( 90 ) ) - 0 + - COALESCE ( - 67, + 58 / + 96 ) col1
----
90

query I rowsort
SELECT ALL - 38 * ( + 14 ) AS col1
----
-532

query I rowsort
SELECT - - 28 * - 85 - + + 10 * - 15 + 5 + 30
----
-2195

query I rowsort
SELECT - - 58 * - ( + 58 )
----
-3364

query II rowsort
SELECT ( + 40 ) * 34 + - 54 AS col2, + 70
----
1306
70

query I rowsort
SELECT ALL + + 35 * - 11 - + 96
----
-481

query I rowsort
SELECT + + 19 + + COALESCE ( 4, 9 * - 79 * - ( + + 34 ) * + + 11 ) - - - 3
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT - 49 + + 32 AS col0, 7 / + COUNT( * ) + + 60 + - 39 + - + ( CASE - + 14 WHEN + 87 + 51 THEN - 33 * 97 ELSE NULL END ) * 17 AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4891
SELECT - 49 + + 32 AS col0, 7 / + COUNT ( * ) + + 60 + - 39 + - + ( CASE - + 14 WHEN + 87 + 51 THEN - 33 * 97 ELSE NULL END ) * 17 AS col1
----
-17
NULL

query I rowsort
SELECT + 41 * 94 + + + 99
----
3953

query I rowsort
SELECT + 76 + 75 col0
----
151

query I rowsort
SELECT ALL + 73 * 50 * 98 col2
----
357700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + 46 WHEN NOT CAST( - 92 AS SIGNED ) + + COALESCE ( - 43, + ( 67 ) ) > ( 26 / 8 ) THEN NULL ELSE - 4 END AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4895
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + 46 WHEN NOT CAST ( - 92 AS INTEGER ) + + COALESCE ( - 43, + ( 67 ) ) > ( 26 / 8 ) THEN NULL ELSE - 4 END AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL + 62 * + 19 - COUNT( + - 1 )
----
1177

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + 62 * + 19 - COUNT ( + - 1 )
----
1177

query I rowsort
SELECT - - 56 + + - 8
----
48

query I rowsort
SELECT DISTINCT 26 * 15 * + 75 col0
----
29250

query I rowsort
SELECT DISTINCT 3 + + 4 + + - ( - 60 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT + ( MIN( DISTINCT + 4 ) ) DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT + ( MIN ( DISTINCT + 4 ) ) / + - 47
----
0

query I rowsort
SELECT ALL 55 + + - 27
----
28

query I rowsort
SELECT + 61 + - 7 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + ( + COUNT( * ) ) + + 7 + - 86
----
-78

skipif mysql # not compatible
query I rowsort label-4903
SELECT + ( + COUNT ( * ) ) + + 7 + - 86
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT COUNT( * ) + 84 * - 2 + - + ( + 32 ) * - COUNT( * ) + - 55 AS col1
----
-190

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT COUNT ( * ) + 84 * - 2 + - + ( + 32 ) * - COUNT ( * ) + - 55 AS col1
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT - ( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT - ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL 19 + - 93 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 19 + - 93 + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + CASE + 71 WHEN - NULLIF ( - 76, - + 84 ) THEN NULL ELSE 80 + + 75 + - 54 + + COUNT( * ) END - + 23
----
79

skipif mysql # not compatible
query I rowsort label-4907
SELECT + CASE + 71 WHEN - NULLIF ( - 76, - + 84 ) THEN NULL ELSE 80 + + 75 + - 54 + + COUNT ( * ) END - + 23
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - COALESCE ( - 37, - - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4908
SELECT - COALESCE ( - 37, - - COUNT ( * ) )
----
37

query I rowsort
SELECT - 83 + 32
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL MIN( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL MIN ( + 24 ) AS col1
----
24

query I rowsort
SELECT DISTINCT 6 * - 66 AS col1
----
-396

query I rowsort
SELECT ALL + 83 * + 32
----
2656

query I rowsort
SELECT + 47 + - - 40
----
87

query I rowsort
SELECT ALL 53 - + - 1 col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT + COALESCE ( - 43, - 10 * - SUM( DISTINCT 5 ), - 33, - 82 DIV + COUNT( * ) + COUNT( * ) * - - 74 )
----
-43

skipif mysql # not compatible
query I rowsort label-4915
SELECT + COALESCE ( - 43, - 10 * - SUM ( DISTINCT 5 ), - 33, - 82 / + COUNT ( * ) + COUNT ( * ) * - - 74 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL - + ( + 43 ) DIV 30 + - + 81 - + 61 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - + ( + 43 ) / 30 + - + 81 - + 61 AS col1
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT CAST( + + 22 AS SIGNED ) col0
----
22

skipif mysql # not compatible
query I rowsort label-4917
SELECT CAST ( + + 22 AS INTEGER ) col0
----
22

query I rowsort
SELECT + + 28 * 30 + - - 29 AS col2
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - MAX( ALL 12 ) + + + 47 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4919
SELECT - MAX ( ALL 12 ) + + + 47 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT - 20 DIV 25 - + 38 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 20 / 25 - + 38 / 81 AS col0
----
0

query I rowsort
SELECT - 90 * - 19 AS col1
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT ALL + 57 DIV - - 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 57 / - - 35 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT - - COUNT( * ) DIV - + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT - - COUNT ( * ) / - + 5 AS col2
----
0

query I rowsort
SELECT - + ( + 27 ) * + + 99
----
-2673

query I rowsort
SELECT ALL + 7 * 49 AS col0
----
343

query I rowsort
SELECT + NULLIF ( - ( + + 96 ), - ( 18 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT - 22 DIV + - COUNT( * ) - + 21 + + 80 + + - CAST( + - 75 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-4927
SELECT - 22 / + - COUNT ( * ) - + 21 + + 80 + + - CAST ( + - 75 AS INTEGER )
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT + CAST( + 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4928
SELECT + CAST ( + 2 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT + 89 * - 8 + 8
----
-704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4930
SELECT ALL COALESCE ( 21, COALESCE ( - 22, 98 ), + 17 * - COUNT( ALL - CAST( NULL AS DECIMAL ) ) + + 97 ) * - + 11 + - 66 col1
----
-297

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL COALESCE ( 21, COALESCE ( - 22, 98 ), + 17 * - COUNT ( ALL - CAST ( NULL AS REAL ) ) + + 97 ) * - + 11 + - 66 col1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + NULLIF ( + 96, ( - 71 ) * CASE - 88 WHEN + ( - MIN( + 13 ) ) + + 5 THEN NULL ELSE + - COUNT( + 24 ) END ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + NULLIF ( + 96, ( - 71 ) * CASE - 88 WHEN + ( - MIN ( + 13 ) ) + + 5 THEN NULL ELSE + - COUNT ( + 24 ) END ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CASE WHEN ( NOT - - 32 NOT BETWEEN NULL AND - 52 * 35 + + - CAST( NULL AS SIGNED ) - - 24 + - 79 * 70 + COUNT( * ) * 82 ) THEN NULL WHEN NULLIF ( + 70, 48 * 49 ) * + 97 IN ( + 5 ) THEN + COUNT( * ) ELSE NULL END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CASE WHEN ( NOT - - 32 NOT BETWEEN NULL AND - 52 * 35 + + - CAST ( NULL AS INTEGER ) - - 24 + - 79 * 70 + COUNT ( * ) * 82 ) THEN NULL WHEN NULLIF ( + 70, 48 * 49 ) * + 97 IN ( + 5 ) THEN + COUNT ( * ) ELSE NULL END * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - ( - - 34 ) + - 17 + - - 86 * + - 26 + + 60 + + CASE + 42 WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( - COUNT( * ), 55 * - 61 ) * - 63 END AS col0
----
-2164

skipif mysql # not compatible
query I rowsort label-4933
SELECT - ( - - 34 ) + - 17 + - - 86 * + - 26 + + 60 + + CASE + 42 WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( - COUNT ( * ), 55 * - 61 ) * - 63 END AS col0
----
-2164

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL COUNT ( * ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT SUM( ALL - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4935
SELECT SUM ( ALL - 89 ) AS col2
----
-89

query I rowsort
SELECT - 84 + + - 14 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - ( - + COUNT( DISTINCT + 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4937
SELECT - ( - + COUNT ( DISTINCT + 51 ) )
----
1

query I rowsort
SELECT DISTINCT + 96 * - 27 * - 55 AS col0
----
142560

query I rowsort
SELECT DISTINCT 13 + 67 AS col1
----
80

query I rowsort
SELECT ALL 48 + + 73 AS col1
----
121

query III rowsort
SELECT ALL 99 AS col1, 63 AS col2, + 82 AS col2
----
99
63
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4942
SELECT DISTINCT 4, + 85 + CAST( NULL AS SIGNED ) + - ( - 78 ) * + 82 col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4942
SELECT DISTINCT 4, + 85 + CAST ( NULL AS INTEGER ) + - ( - 78 ) * + 82 col1
----
4
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL 94 DIV ( + 26 )
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 94 / ( + 26 )
----
3

query I rowsort
SELECT + 29 * 7 AS col1
----
203

query I rowsort
SELECT ALL NULLIF ( + 65, - 64 + 47 )
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-4946
SELECT DISTINCT + 46, 27 + - + NULLIF ( 41, - - 37 ) DIV - 60 AS col2
----
46
27

skipif mysql # not compatible
query II rowsort label-4946
SELECT DISTINCT + 46, 27 + - + NULLIF ( 41, - - 37 ) / - 60 AS col2
----
46
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT - - NULLIF ( - 73, - COALESCE ( - + 36, + 16 * + ( AVG ( 14 ) ) ) * 32 * + CASE + - ( - CASE + 57 WHEN CASE - 24 WHEN 62 THEN NULL WHEN 76 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 13 WHEN + NULLIF ( + 5, - 0 ) THEN NULL ELSE 22 + + 31 END THEN NULL ELSE ( 78 ) END ) WHEN - 61 THEN 46 WHEN - ( 8 ) * 9 THEN NULL ELSE NULL END * + CASE 80 * 44 WHEN 15 THEN ( + 25 ) + ( - 23 ) ELSE NULL END + 82 + - COUNT( 0 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4947
SELECT - - NULLIF ( - 73, - COALESCE ( - + 36, + 16 * + ( AVG ( 14 ) ) ) * 32 * + CASE + - ( - CASE + 57 WHEN CASE - 24 WHEN 62 THEN NULL WHEN 76 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 13 WHEN + NULLIF ( + 5, - 0 ) THEN NULL ELSE 22 + + 31 END THEN NULL ELSE ( 78 ) END ) WHEN - 61 THEN 46 WHEN - ( 8 ) * 9 THEN NULL ELSE NULL END * + CASE 80 * 44 WHEN 15 THEN ( + 25 ) + ( - 23 ) ELSE NULL END + 82 + - COUNT ( 0 ) )
----
-73

query I rowsort
SELECT - 82 + 48 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT - - 64 AS col1, - MAX( DISTINCT + + 9 ) AS col2
----
64
-9

skipif mysql # not compatible
query II rowsort label-4949
SELECT - - 64 AS col1, - MAX ( DISTINCT + + 9 ) AS col2
----
64
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - 95 + + COUNT( * ) * + 40 * - 77 * - 15
----
46105

skipif mysql # not compatible
query I rowsort label-4950
SELECT - 95 + + COUNT ( * ) * + 40 * - 77 * - 15
----
46105

query I rowsort
SELECT + ( - 72 ) + - 93
----
-165

query I rowsort
SELECT 13 * + 9 + + - 20 * - - 13 col1
----
-143

query I rowsort
SELECT - 50 * 40 + + 67 * + 50 + - 41 + + ( - - 98 ) + + + 24 * + 20 AS col0
----
1887

query I rowsort
SELECT ALL - + ( 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + 45 + + COUNT( * ) + - 35 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4955
SELECT + 45 + + COUNT ( * ) + - 35 AS col2
----
11

query I rowsort
SELECT 13 - - 30 + - 15 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT - 82 DIV + + 80 + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-4957
SELECT - 82 / + + 80 + - 75
----
-76

query II rowsort
SELECT DISTINCT - - 55 AS col1, 84
----
55
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT 20 AS col2, + 96 * + 4 * CASE + - ( - MIN( ALL + 54 ) ) WHEN 46 THEN + 26 + 47 + - 3 + + 46 / 95 / - COALESCE ( 30 / - 1 + 49 * 36, - 23 + - 16 ) * - 92 WHEN 7 THEN NULL END * - 55
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4959
SELECT 20 AS col2, + 96 * + 4 * CASE + - ( - MIN ( ALL + 54 ) ) WHEN 46 THEN + 26 + 47 + - 3 + + 46 / 95 / - COALESCE ( 30 / - 1 + 49 * 36, - 23 + - 16 ) * - 92 WHEN 7 THEN NULL END * - 55
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT + ( + COUNT( * ) ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + ( + COUNT ( * ) ) + - 53
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL - + CAST( + 34 AS SIGNED ) + 83
----
49

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - + CAST ( + 34 AS INTEGER ) + 83
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - NULLIF ( 99, + + NULLIF ( 34, COUNT( * ) ) * - + 22 + + + ( + ( 36 ) ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - NULLIF ( 99, + + NULLIF ( 34, COUNT ( * ) ) * - + 22 + + + ( + ( 36 ) ) ) AS col0
----
-99

query II rowsort
SELECT 79 + + - 16 AS col2, 79
----
63
79

query I rowsort
SELECT ALL - 55 + 18
----
-37

query I rowsort
SELECT 85 * - 92
----
-7820

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + 28 + + 66 + + 68 * 33 * + 79 AS col0, + 1 + 66 - 63 * COUNT( * ) * 50 AS col1
----
177370
-3083

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + 28 + + 66 + + 68 * 33 * + 79 AS col0, + 1 + 66 - 63 * COUNT ( * ) * 50 AS col1
----
177370
-3083

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT 68 DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT 68 / - - 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT 75 * - + ( COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-4968
SELECT 75 * - + ( COUNT ( * ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4969
SELECT 91 + + CAST( + 45 AS SIGNED ) + + + COUNT( * ) + 34 + - COUNT( * ) * - 14 DIV - + COALESCE ( - 28, COALESCE ( + - 66, 63, - MAX( ALL 84 ) ) ) * + ( 18 + 80 ) + - 39 * COUNT( * ) * + 75 AS col2
----
-2754

skipif mysql # not compatible
query I rowsort label-4969
SELECT 91 + + CAST ( + 45 AS INTEGER ) + + + COUNT ( * ) + 34 + - COUNT ( * ) * - 14 / - + COALESCE ( - 28, COALESCE ( + - 66, 63, - MAX ( ALL 84 ) ) ) * + ( 18 + 80 ) + - 39 * COUNT ( * ) * + 75 AS col2
----
-2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4970
SELECT DISTINCT + 11 - - + 88 + - 48 + + CASE 30 WHEN - 46 * - + COALESCE ( 68, + + 81 - 35, NULLIF ( - 8, 21 + + 46 ) * - COALESCE ( - 92, - COUNT( * ) + 69 * + COALESCE ( COUNT( * ) + + 46, + CASE NULLIF ( - 74, 95 * - 99 + 90 ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 42 + 44 THEN - 19 + + 42 * 0 ELSE CASE 68 WHEN 41 - CAST( 21 AS SIGNED ) THEN + 1 WHEN 61 THEN 42 - - 27 ELSE NULL END * + CAST( NULL AS SIGNED ) - + 84 * - 67 END * 43 ) ) ) THEN 31 - 41 WHEN SUM( 96 ) + 91 THEN NULL ELSE NULL END + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + 11 - - + 88 + - 48 + + CASE 30 WHEN - 46 * - + COALESCE ( 68, + + 81 - 35, NULLIF ( - 8, 21 + + 46 ) * - COALESCE ( - 92, - COUNT ( * ) + 69 * + COALESCE ( COUNT ( * ) + + 46, + CASE NULLIF ( - 74, 95 * - 99 + 90 ) WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + 42 + 44 THEN - 19 + + 42 * 0 ELSE CASE 68 WHEN 41 - CAST ( 21 AS INTEGER ) THEN + 1 WHEN 61 THEN 42 - - 27 ELSE NULL END * + CAST ( NULL AS INTEGER ) - + 84 * - 67 END * 43 ) ) ) THEN 31 - 41 WHEN SUM ( 96 ) + 91 THEN NULL ELSE NULL END + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT 0 + + COUNT( * ) - - - 54 * + ( + - 44 ) * + 34
----
80785

skipif mysql # not compatible
query I rowsort label-4971
SELECT 0 + + COUNT ( * ) - - - 54 * + ( + - 44 ) * + 34
----
80785

query I rowsort
SELECT DISTINCT 53 * + 37 AS col0
----
1961

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4973
SELECT 29 * + - COUNT( * ) col0, 80 DIV + - 14 AS col0
----
-29
-5

skipif mysql # not compatible
query II rowsort label-4973
SELECT 29 * + - COUNT ( * ) col0, 80 / + - 14 AS col0
----
-29
-5

query I rowsort
SELECT 89 * + + 25
----
2225

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT + 36 + + COUNT( * ), 5 AS col1
----
37
5

skipif mysql # not compatible
query II rowsort label-4975
SELECT + 36 + + COUNT ( * ), 5 AS col1
----
37
5

query I rowsort
SELECT DISTINCT 14 * 85 + + 16 + + 30 AS col0
----
1236

query II rowsort
SELECT + 63 + - 68 AS col1, + 82 - + + 93 AS col1
----
-5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - CASE + 62 WHEN + 81 - 90 THEN COUNT( * ) / + AVG ( 91 ) WHEN + 41 THEN + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - CASE + 62 WHEN + 81 - 90 THEN COUNT ( * ) / + AVG ( 91 ) WHEN + 41 THEN + 34 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL - + ( - CAST( ( + + 69 ) AS SIGNED ) ) * + 85 * + 85 + + - 82 + + 56 + - - 79 / - + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - + ( - CAST ( ( + + 69 ) AS INTEGER ) ) * + 85 * + 85 + + - 82 + + 56 + - - 79 / - + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - + 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL - + MIN( 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - + MIN ( 75 )
----
-75

query I rowsort
SELECT - 29 * + 3 * + 24 * - + 54 AS col2
----
112752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT - 43 * - CAST( NULL AS SIGNED ) * + 41 / + COUNT( * ) + 20 AS col2, 42 col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-4983
SELECT - 43 * - CAST ( NULL AS INTEGER ) * + 41 / + COUNT ( * ) + 20 AS col2, 42 col2
----
NULL
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT DISTINCT + 64 * - CASE + COUNT( ALL + - 87 ) WHEN 59 THEN NULL WHEN + + 52 - + CAST( NULL AS SIGNED ) THEN NULL ELSE + NULLIF ( + + 50, - 82 ) END + - 25 AS col2
----
-3225

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + 64 * - CASE + COUNT ( ALL + - 87 ) WHEN 59 THEN NULL WHEN + + 52 - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + NULLIF ( + + 50, - 82 ) END + - 25 AS col2
----
-3225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4985
SELECT - CAST( - 34 AS SIGNED ) DIV + - 65 DIV - COUNT( * ) + - + 96 + + - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4985
SELECT - CAST ( - 34 AS INTEGER ) / + - 65 / - COUNT ( * ) + - + 96 + + - COUNT ( * ) AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT CASE + CAST( + + 43 AS SIGNED ) WHEN + 97 THEN + 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT CASE + CAST ( + + 43 AS INTEGER ) WHEN + 97 THEN + 86 ELSE NULL END
----
NULL

query II rowsort
SELECT - 9 * 15 AS col0, 71 + - 23 AS col1
----
-135
48

query I rowsort
SELECT + + ( - 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - COUNT( * ) + - ( + - 49 )
----
48

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - COUNT ( * ) + - ( + - 49 )
----
48

query I rowsort
SELECT DISTINCT 66 + 76 * - 12
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + COUNT( * ) * + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4991
SELECT + COUNT ( * ) * + 14 AS col1
----
14

query I rowsort
SELECT DISTINCT 44 * 3 col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL 3 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL 3 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + COUNT( - 51 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COUNT ( - 51 ) col1
----
1

query I rowsort
SELECT 59 + ( - 4 ) * - 51 AS col1
----
263

query I rowsort
SELECT 94 * - - 74 * - 86 AS col0
----
-598216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4997
SELECT 10 + - 71 + - + SUM( ALL - - CAST( NULL AS SIGNED ) ) + - ( ( 64 ) ) + - + CAST( NULL AS DECIMAL ) * - 87 - - COUNT( * ) + - 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT 10 + - 71 + - + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + - ( ( 64 ) ) + - + CAST ( NULL AS REAL ) * - 87 - - COUNT ( * ) + - 63 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) * - + 45 AS col0
----
-1
-45

skipif mysql # not compatible
query II rowsort label-4998
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) * - + 45 AS col0
----
-1
-45

query I rowsort
SELECT 84 * - 96 AS col2
----
-8064

query I rowsort
SELECT ALL + CASE + - 95 WHEN + 84 + + + 17 THEN - + 54 - - 70 + - 39 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5001
SELECT + CAST( NULL AS DECIMAL ) - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT + CAST ( NULL AS REAL ) - - 30
----
NULL

query II rowsort
SELECT DISTINCT 37, 68 AS col1
----
37
68

onlyif mysql # DIV for integer division: 
query II rowsort label-5003
SELECT - 7 + + 90 DIV 26 AS col0, - ( - 78 ) - - 12 + - 3 AS col0
----
-4
87

skipif mysql # not compatible
query II rowsort label-5003
SELECT - 7 + + 90 / 26 AS col0, - ( - 78 ) - - 12 + - 3 AS col0
----
-4
87

query I rowsort
SELECT ALL - 24 * + 89 AS col1
----
-2136

query I rowsort
SELECT - 24 * - + 5 * + 10
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL 30 DIV - + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 30 / - + 49 col2
----
0

query I rowsort
SELECT + 88 * + 93 * - 26
----
-212784

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - 94 * + + COUNT( + 87 ) AS col1, 66
----
-94
66

skipif mysql # not compatible
query II rowsort label-5008
SELECT - 94 * + + COUNT ( + 87 ) AS col1, 66
----
-94
66

query I rowsort
SELECT - 53 - + 43 * ( + 85 ) + - + 93 + - - 79 AS col1
----
-3722

query I rowsort
SELECT - 65 * 48
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - + NULLIF ( - 84, - 5 / - CASE 3 WHEN - MIN( + 95 ) - - 94 * + ( + + 96 ) * - COALESCE ( - 38, + + 69 ) * COUNT( * ) THEN 38 * 92 WHEN + 83 THEN + 71 - - COALESCE ( - 66, + 5 ) END * + COUNT( * ) + 4 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5011
SELECT - + NULLIF ( - 84, - 5 / - CASE 3 WHEN - MIN ( + 95 ) - - 94 * + ( + + 96 ) * - COALESCE ( - 38, + + 69 ) * COUNT ( * ) THEN 38 * 92 WHEN + 83 THEN + 71 - - COALESCE ( - 66, + 5 ) END * + COUNT ( * ) + 4 ) AS col0
----
84

query I rowsort
SELECT ALL + 30 + + + 48 * - 35
----
-1650

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT DISTINCT + + 37 + 0 DIV - 28 * 13 + + 87 * 21 col0
----
1864

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + + 37 + 0 / - 28 * 13 + + 87 * 21 col0
----
1864

query II rowsort
SELECT ALL 14, - 53 col1
----
14
-53

query I rowsort
SELECT DISTINCT - 22 + + - 40 AS col0
----
-62

query I rowsort
SELECT DISTINCT - - 24 + + 56
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5017
SELECT - + 89 + + COUNT( * ) DIV - 59 + + + ( COALESCE ( + CAST( NULL AS SIGNED ), 99 * + 89 + + + 41 + + + 37 ) ) col2
----
8800

skipif mysql # not compatible
query I rowsort label-5017
SELECT - + 89 + + COUNT ( * ) / - 59 + + + ( COALESCE ( + CAST ( NULL AS INTEGER ), 99 * + 89 + + + 41 + + + 37 ) ) col2
----
8800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5018
SELECT - - 84 * - - CAST( - 50 AS SIGNED ) + MAX( + 43 ) * 62 DIV COUNT( * )
----
-1534

skipif mysql # not compatible
query I rowsort label-5018
SELECT - - 84 * - - CAST ( - 50 AS INTEGER ) + MAX ( + 43 ) * 62 / COUNT ( * )
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL - 78 * + - COUNT( * ) * + - SUM( DISTINCT - 45 )
----
3510

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - 78 * + - COUNT ( * ) * + - SUM ( DISTINCT - 45 )
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - - COUNT( * ) + + COALESCE ( - 32, + 7, SUM( 48 ) * - CASE - COUNT( * ) WHEN - NULLIF ( + - 63, 44 * - 17 + - CASE + COALESCE ( + 52, 92 / COUNT( * ), 76 + - 20 * 26 ) WHEN + 44 - - 86 THEN NULL WHEN 85 / 66 THEN 7 END ) THEN 14 END + ( 65 ) * COUNT( * ) ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-5020
SELECT - - COUNT ( * ) + + COALESCE ( - 32, + 7, SUM ( 48 ) * - CASE - COUNT ( * ) WHEN - NULLIF ( + - 63, 44 * - 17 + - CASE + COALESCE ( + 52, 92 / COUNT ( * ), 76 + - 20 * 26 ) WHEN + 44 - - 86 THEN NULL WHEN 85 / 66 THEN 7 END ) THEN 14 END + ( 65 ) * COUNT ( * ) ) col1
----
-31

query II rowsort
SELECT - - 83 col0, 48 * + 88 AS col2
----
83
4224

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT + - 34 * + MIN( + - 89 ) AS col0, - 33 * 70
----
3026
-2310

skipif mysql # not compatible
query II rowsort label-5022
SELECT + - 34 * + MIN ( + - 89 ) AS col0, - 33 * 70
----
3026
-2310

query I rowsort
SELECT - 2 + - 88 + 81
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL 11 * + - 75 + 74 + - 79 + + - 95 - + + 90 * - - COALESCE ( CAST( + 95 AS SIGNED ), + 91 ) AS col0
----
-9475

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL 11 * + - 75 + 74 + - 79 + + - 95 - + + 90 * - - COALESCE ( CAST ( + 95 AS INTEGER ), + 91 ) AS col0
----
-9475

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + - 95 * + - SUM( ALL - + 84 ) + - - SUM( DISTINCT - ( - 9 ) )
----
-7971

skipif mysql # not compatible
query I rowsort label-5025
SELECT + - 95 * + - SUM ( ALL - + 84 ) + - - SUM ( DISTINCT - ( - 9 ) )
----
-7971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL - MAX( NULLIF ( 26, 53 ) ) * + + ( - 86 ) * + - 33 + - CAST( + 70 AS SIGNED )
----
-73858

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - MAX ( NULLIF ( 26, 53 ) ) * + + ( - 86 ) * + - 33 + - CAST ( + 70 AS INTEGER )
----
-73858

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT + 15 DIV + + 37 + - - 68 + + - 51
----
17

skipif mysql # not compatible
query I rowsort label-5027
SELECT + 15 / + + 37 + - - 68 + + - 51
----
17

query I rowsort
SELECT ALL + - 69 col1
----
-69

query I rowsort
SELECT DISTINCT NULLIF ( + + 19, + 78 * 89 ) * - 28 - 58 + - + 84 * + 89 AS col0
----
-8066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT - MAX( DISTINCT - 65 ) DIV - 89 * - - COUNT( * ) + CASE - COUNT( + 10 ) WHEN + + COUNT( * ) * - 39 - + 90 + MIN( ALL 11 ) - + CASE + 47 WHEN 62 + 36 THEN - 62 * 99 ELSE NULL END + - COALESCE ( ( 71 ), 15, 56 ) DIV + ( + MAX( 49 ) + + 71 * 85 ) * 26 * 35 THEN 37 * 68 WHEN 14 - - ( - 32 + 87 ) * 37 THEN + 98 WHEN 27 THEN NULL ELSE + 33 * - 93 END
----
-3069

skipif mysql # not compatible
query I rowsort label-5030
SELECT - MAX ( DISTINCT - 65 ) / - 89 * - - COUNT ( * ) + CASE - COUNT ( + 10 ) WHEN + + COUNT ( * ) * - 39 - + 90 + MIN ( ALL 11 ) - + CASE + 47 WHEN 62 + 36 THEN - 62 * 99 ELSE NULL END + - COALESCE ( ( 71 ), 15, 56 ) / + ( + MAX ( 49 ) + + 71 * 85 ) * 26 * 35 THEN 37 * 68 WHEN 14 - - ( - 32 + 87 ) * 37 THEN + 98 WHEN 27 THEN NULL ELSE + 33 * - 93 END
----
-3069

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT + ( - CASE - 21 WHEN + 85 THEN COUNT( * ) ELSE NULL END ) + - - 37 + - AVG ( ALL - 46 ) * - 73, 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5031
SELECT + ( - CASE - 21 WHEN + 85 THEN COUNT ( * ) ELSE NULL END ) + - - 37 + - AVG ( ALL - 46 ) * - 73, 61 AS col0
----
NULL
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT ALL 97 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL 97 / + 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - COUNT( * ) * + 39 col0
----
-39

skipif mysql # not compatible
query I rowsort label-5033
SELECT - COUNT ( * ) * + 39 col0
----
-39

query II rowsort
SELECT NULLIF ( - 80, ( + 95 ) / + 43 ) AS col2, COALESCE ( + + 76, + + 4 + + - 33 * - 84 ) * - + 13 * + ( - + 30 )
----
-80
29640

query I rowsort
SELECT 28 * - - 29 + 34
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + NULLIF ( + 68, + 92 * - 88 ) * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5036
SELECT + NULLIF ( + 68, + 92 * - 88 ) * COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 85 / - + 29 * + - 91 * + - ( 23 ) + + CASE + - 63 WHEN COUNT( - + 66 ) + + 20 THEN + 47 + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 85 / - + 29 * + - 91 * + - ( 23 ) + + CASE + - 63 WHEN COUNT ( - + 66 ) + + 20 THEN + 47 + 9 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL COUNT( * ) * 18 * + - COALESCE ( + - 79, - - 47 * + + 59 ) col0
----
1422

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL COUNT ( * ) * 18 * + - COALESCE ( + - 79, - - 47 * + + 59 ) col0
----
1422

query II rowsort
SELECT + 61 * - 14 col1, 14 AS col2
----
-854
14

query I rowsort
SELECT ALL 25 * - 35 * + 88
----
-77000

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL 43 * - + COUNT( * ) * - 65 * + ( - + 96 )
----
-268320

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL 43 * - + COUNT ( * ) * - 65 * + ( - + 96 )
----
-268320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT CASE + AVG ( - 51 ) WHEN - NULLIF ( + + 6, - 11 + + 43 ) / + - ( - - 9 ) * + - COUNT( * ) THEN NULL WHEN - NULLIF ( + 27, - CAST( NULL AS SIGNED ) ) * - ( 68 ) THEN NULL WHEN - 37 THEN 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT CASE + AVG ( - 51 ) WHEN - NULLIF ( + + 6, - 11 + + 43 ) / + - ( - - 9 ) * + - COUNT ( * ) THEN NULL WHEN - NULLIF ( + 27, - CAST ( NULL AS INTEGER ) ) * - ( 68 ) THEN NULL WHEN - 37 THEN 45 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + 89 ) AS col0
----
89

query I rowsort
SELECT ALL 89 * - + 34
----
-3026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + 1 * + CAST( - + 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 1 * + CAST ( - + 16 AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT + COUNT( * ) + + + 66
----
67

skipif mysql # not compatible
query I rowsort label-5046
SELECT + COUNT ( * ) + + + 66
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT COUNT( - + 50 ) AS col0, 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-5047
SELECT COUNT ( - + 50 ) AS col0, 93 AS col2
----
1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5048
SELECT COUNT( + 14 ), + CAST( + 40 AS SIGNED ) AS col0
----
1
40

skipif mysql # not compatible
query II rowsort label-5048
SELECT COUNT ( + 14 ), + CAST ( + 40 AS INTEGER ) AS col0
----
1
40

query I rowsort
SELECT - 53 + 33 + - + 80 * 22 * + 38 - - 69 * - 7
----
-67383

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + 65 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5050
SELECT + 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT ALL + 84 * - - 6 AS col2
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT + - CAST( - 3 AS SIGNED ) + - CAST( 31 AS SIGNED ) * + 21 + ( 36 ) + + NULLIF ( 93, 25 ) * - - 98 AS col0
----
8502

skipif mysql # not compatible
query I rowsort label-5052
SELECT + - CAST ( - 3 AS INTEGER ) + - CAST ( 31 AS INTEGER ) * + 21 + ( 36 ) + + NULLIF ( 93, 25 ) * - - 98 AS col0
----
8502

query I rowsort
SELECT ALL - 73 + - ( 41 ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL - 93 + - MAX( DISTINCT 0 )
----
-93

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - 93 + - MAX ( DISTINCT 0 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT + + COUNT( * ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT + + COUNT ( * ) / - 70
----
0

query I rowsort
SELECT - 20 + - 11
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - 47 + + SUM( ALL 57 ) * - 49 * - COUNT( * ) + + - 48 AS col2
----
2698

skipif mysql # not compatible
query I rowsort label-5057
SELECT - 47 + + SUM ( ALL 57 ) * - 49 * - COUNT ( * ) + + - 48 AS col2
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL + + 59 + - 79 + + - COALESCE ( 77, - MIN( + 50 ) + - COUNT( DISTINCT + + 49 ), - - 93 + + 16 * 23 ) - 23
----
-120

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + + 59 + - 79 + + - COALESCE ( 77, - MIN ( + 50 ) + - COUNT ( DISTINCT + + 49 ), - - 93 + + 16 * 23 ) - 23
----
-120

query I rowsort
SELECT ALL 61 * + 56
----
3416

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5060
SELECT - CASE - ( ( 48 ) ) WHEN + 49 THEN NULL WHEN + 5 * - - SUM( - COALESCE ( 15, - 24 ) ) / - 9 THEN - - 90 WHEN 55 + + 68 + + 35 * ( CAST( NULL AS DECIMAL ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT - CASE - ( ( 48 ) ) WHEN + 49 THEN NULL WHEN + 5 * - - SUM ( - COALESCE ( 15, - 24 ) ) / - 9 THEN - - 90 WHEN 55 + + 68 + + 35 * ( CAST ( NULL AS REAL ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL + SUM( DISTINCT - 64 ) - 99
----
-163

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + SUM ( DISTINCT - 64 ) - 99
----
-163

query I rowsort
SELECT ALL + 69 * + + 31 AS col1
----
2139

query I rowsort
SELECT ALL + 69 * 94 AS col2
----
6486

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT DISTINCT - 78 AS col2, 30 * SUM( ALL + 38 )
----
-78
1140

skipif mysql # not compatible
query II rowsort label-5064
SELECT DISTINCT - 78 AS col2, 30 * SUM ( ALL + 38 )
----
-78
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT COUNT( * ) * + - COALESCE ( 51, + - 59 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5065
SELECT COUNT ( * ) * + - COALESCE ( 51, + - 59 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT ALL - CAST( 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - CAST ( 68 AS INTEGER )
----
-68

query I rowsort
SELECT 90 * 11 AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 94 + + - MAX( DISTINCT 71 )
----
23

skipif mysql # not compatible
query I rowsort label-5068
SELECT 94 + + - MAX ( DISTINCT 71 )
----
23

query II rowsort
SELECT + 38, 70 col2
----
38
70

query I rowsort
SELECT ( + 56 ) * + - 81 AS col1
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL COUNT( * ) + - 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL COUNT ( * ) + - 3 AS col1
----
-2

query I rowsort
SELECT DISTINCT - 7 + 55
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT 28 + CAST( + ( + 73 ) AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-5074
SELECT 28 + CAST ( + ( + 73 ) AS INTEGER )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT COUNT( * ) + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT COUNT ( * ) + 7 AS col1
----
8

query I rowsort
SELECT - 73 + + 14 - - 40
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - 44 + + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - 44 + + + COUNT ( * )
----
-43

query II rowsort
SELECT DISTINCT - 82, 51 AS col1
----
-82
51

query I rowsort
SELECT ALL + 64 + - + 17
----
47

query I rowsort
SELECT COALESCE ( 44, - 1 - - 38 - 45 )
----
44

query I rowsort
SELECT 33 * 17 AS col0
----
561

query I rowsort
SELECT NULLIF ( + 23, - ( 59 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + COUNT( - ( + 20 ) ) - - COUNT( * ) * + 13 + 73
----
87

skipif mysql # not compatible
query I rowsort label-5083
SELECT + COUNT ( - ( + 20 ) ) - - COUNT ( * ) * + 13 + 73
----
87

query I rowsort
SELECT 82 * - - 69
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT - 89 + - CASE + COUNT( * ) WHEN ( + 41 ) THEN + + 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 89 + - CASE + COUNT ( * ) WHEN ( + 41 ) THEN + + 38 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT - COALESCE ( - - 9, 21 * NULLIF ( - NULLIF ( + - 54, + SUM( ALL 96 ) ), - 20 ) * - 46 ) col0, ( + 95 ) AS col0
----
-9
95

skipif mysql # not compatible
query II rowsort label-5086
SELECT - COALESCE ( - - 9, 21 * NULLIF ( - NULLIF ( + - 54, + SUM ( ALL 96 ) ), - 20 ) * - 46 ) col0, ( + 95 ) AS col0
----
-9
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - 20 - MAX( ( 37 ) ) + - MAX( + 97 )
----
-154

skipif mysql # not compatible
query I rowsort label-5087
SELECT - 20 - MAX ( ( 37 ) ) + - MAX ( + 97 )
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT - 64 + + + 20 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 64 + + + 20 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT 82 - - 91 - + 53 + 86 - COUNT( * ) AS col0, 79 AS col0
----
205
79

skipif mysql # not compatible
query II rowsort label-5089
SELECT 82 - - 91 - + 53 + 86 - COUNT ( * ) AS col0, 79 AS col0
----
205
79

query I rowsort
SELECT ALL - 85 * 27
----
-2295

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 87 DIV - - 11 + - 44
----
-37

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 87 / - - 11 + - 44
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT ( - 65 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT ( - 65 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 84 AS col2, 11
----
-84
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + COUNT( * ) + - - 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + COUNT ( * ) + - - 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( ALL - - 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( ALL - - 3 ) AS col0
----
1

query I rowsort
SELECT 0 * + + 56
----
0

query I rowsort
SELECT NULLIF ( 76, + ( 81 ) ) + 36 AS col1
----
112

query II rowsort
SELECT 18 AS col2, + 25
----
18
25

query I rowsort
SELECT DISTINCT - 76 + 20 - - NULLIF ( 68, + - NULLIF ( + + 39, 1 - + 73 ) ) * + + 16 * - 74
----
-80568

query I rowsort
SELECT 38 * - - 71 AS col1
----
2698

query I rowsort
SELECT ALL - 3 + + 97 * + + 85
----
8242

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT - MIN( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - MIN ( - 49 )
----
49

query II rowsort
SELECT + 43, 31 - - 94 AS col2
----
43
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT ALL - 68, 60 * + COUNT( * ) AS col1
----
-68
60

skipif mysql # not compatible
query II rowsort label-5104
SELECT ALL - 68, 60 * + COUNT ( * ) AS col1
----
-68
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT 27 DIV 80 DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT 27 / 80 / 48 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT 71 * - - CAST( NULL AS SIGNED ) / - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT 71 * - - CAST ( NULL AS INTEGER ) / - 35 AS col0
----
NULL

query II rowsort
SELECT ALL 55 AS col0, + 50
----
55
50

query I rowsort
SELECT - - NULLIF ( + 34, + 56 )
----
34

query I rowsort
SELECT 50 * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL - COUNT( * ) * + + 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - COUNT ( * ) * + + 15 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT DISTINCT - - 75 - + CAST( + 77 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - - 75 - + CAST ( + 77 AS INTEGER )
----
-2

query I rowsort
SELECT 27 + 82 * - 63 * + 51 * 41 AS col0
----
-10802079

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5113
SELECT DISTINCT 22 - + + 16 + - CAST( NULL AS DECIMAL ) * + 19 + + 12 + - ( - 0 ), - 88 AS col1
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT 22 - + + 16 + - CAST ( NULL AS REAL ) * + 19 + + 12 + - ( - 0 ), - 88 AS col1
----
NULL
-88

query I rowsort
SELECT DISTINCT + 39 * + 69 * - - 23 AS col1
----
61893

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL SUM( - 93 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL SUM ( - 93 ) col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT 76 * - SUM( ALL - 61 ) * NULLIF ( MAX( ALL + ( 9 ) ), - - 14 / + 64 * AVG ( ALL + 50 ) * 39 )
----
41724

skipif mysql # not compatible
query I rowsort label-5116
SELECT 76 * - SUM ( ALL - 61 ) * NULLIF ( MAX ( ALL + ( 9 ) ), - - 14 / + 64 * AVG ( ALL + 50 ) * 39 )
----
41724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT 20 * CAST( 35 AS SIGNED ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-5117
SELECT 20 * CAST ( 35 AS INTEGER ) AS col2
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - + SUM( 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5118
SELECT - + SUM ( 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT - + 84 AS col0, 94 * NULLIF ( - COUNT( DISTINCT ( - - 43 ) ), - AVG ( DISTINCT 27 ) ) AS col2
----
-84
-94

skipif mysql # not compatible
query II rowsort label-5119
SELECT - + 84 AS col0, 94 * NULLIF ( - COUNT ( DISTINCT ( - - 43 ) ), - AVG ( DISTINCT 27 ) ) AS col2
----
-84
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT + - CAST( - - 19 AS SIGNED ) * - 14
----
266

skipif mysql # not compatible
query I rowsort label-5120
SELECT + - CAST ( - - 19 AS INTEGER ) * - 14
----
266

query I rowsort
SELECT - 78 * 59
----
-4602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5122
SELECT - 30 DIV + ( MIN( 27 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 30 / + ( MIN ( 27 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT ALL - 54 * + 94 + 45 col2, + COUNT( * ) * + 77 AS col0
----
-5031
77

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL - 54 * + 94 + 45 col2, + COUNT ( * ) * + 77 AS col0
----
-5031
77

query I rowsort
SELECT ALL - 76 * 62 + - 56 AS col0
----
-4768

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT COALESCE ( 63, + COUNT( ALL + - 93 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5125
SELECT COALESCE ( 63, + COUNT ( ALL + - 93 ) ) AS col0
----
63

query I rowsort
SELECT NULLIF ( 14, + 75 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + MIN( + - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + MIN ( + - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT + NULLIF ( + 84, + 89 / - - 62 * - MAX( - 56 ) - COUNT( * ) ) col0, 95 AS col0
----
84
95

skipif mysql # not compatible
query II rowsort label-5128
SELECT + NULLIF ( + 84, + 89 / - - 62 * - MAX ( - 56 ) - COUNT ( * ) ) col0, 95 AS col0
----
84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + COUNT( * ) + + 57 * - ( 56 ) * + + 67 AS col1
----
-213863

skipif mysql # not compatible
query I rowsort label-5129
SELECT + COUNT ( * ) + + 57 * - ( 56 ) * + + 67 AS col1
----
-213863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT + + 8 * + + CASE - SUM( - 87 ) WHEN + - ( + - 4 ) THEN - CAST( + + NULLIF ( 77, + 42 - + - 62 + - + 74 + - 80 * 46 / 53 + CAST( - - 67 AS SIGNED ) ) AS SIGNED ) + 42 * ( - 72 ) WHEN - 42 * - NULLIF ( 77 * + CAST( 42 AS SIGNED ), + MIN( DISTINCT 39 ) + - NULLIF ( - 22 + 40 * 15, + 69 / 16 ) ) THEN 69 ELSE NULL END + - 20 * - CASE - 10 WHEN + 30 + - 50 THEN + 24 * 71 WHEN - 99 THEN NULL WHEN + 63 + + 87 * 16 THEN - CASE - ( - COALESCE ( - 59, ( - 68 ), - 64 / - CASE 17 WHEN 9 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + CASE 90 WHEN 31 THEN + COALESCE ( 38, + 5 * + 7 ) END * - 66 THEN NULL ELSE COUNT( * ) * SUM( ALL CAST( NULL AS SIGNED ) * - 66 ) END, CASE CASE - 31 WHEN + 22 - 63 * - COUNT( * ) THEN NULL WHEN SUM( 86 ) THEN 46 ELSE NULL END WHEN COUNT( * ) + - 58 / - ( - 95 ) THEN NULL ELSE COUNT( * ) * - 37 END ) ) WHEN 33 - + CAST( - 73 - - 75 AS SIGNED ) THEN 86 + 50 WHEN 71 THEN NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT + + 8 * + + CASE - SUM ( - 87 ) WHEN + - ( + - 4 ) THEN - CAST ( + + NULLIF ( 77, + 42 - + - 62 + - + 74 + - 80 * 46 / 53 + CAST ( - - 67 AS INTEGER ) ) AS INTEGER ) + 42 * ( - 72 ) WHEN - 42 * - NULLIF ( 77 * + CAST ( 42 AS INTEGER ), + MIN ( DISTINCT 39 ) + - NULLIF ( - 22 + 40 * 15, + 69 / 16 ) ) THEN 69 ELSE NULL END + - 20 * - CASE - 10 WHEN + 30 + - 50 THEN + 24 * 71 WHEN - 99 THEN NULL WHEN + 63 + + 87 * 16 THEN - CASE - ( - COALESCE ( - 59, ( - 68 ), - 64 / - CASE 17 WHEN 9 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + CASE 90 WHEN 31 THEN + COALESCE ( 38, + 5 * + 7 ) END * - 66 THEN NULL ELSE COUNT ( * ) * SUM ( ALL CAST ( NULL AS INTEGER ) * - 66 ) END, CASE CASE - 31 WHEN + 22 - 63 * - COUNT ( * ) THEN NULL WHEN SUM ( 86 ) THEN 46 ELSE NULL END WHEN COUNT ( * ) + - 58 / - ( - 95 ) THEN NULL ELSE COUNT ( * ) * - 37 END ) ) WHEN 33 - + CAST ( - 73 - - 75 AS INTEGER ) THEN 86 + 50 WHEN 71 THEN NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + - ( 31 ) )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT DISTINCT - 12 * - - COUNT( * ) DIV ( - 48 )
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT - 12 * - - COUNT ( * ) / ( - 48 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT - - COUNT( * ) + + 6 * - 63 / - CASE - ( + + 31 ) WHEN + 11 * AVG ( DISTINCT - + 31 ) * - 47 THEN + + 86 / + 51 + + 7 WHEN + CAST( + 9 AS SIGNED ) THEN NULL WHEN + ( + - 10 ) / - 24 THEN NULL END + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT - - COUNT ( * ) + + 6 * - 63 / - CASE - ( + + 31 ) WHEN + 11 * AVG ( DISTINCT - + 31 ) * - 47 THEN + + 86 / + 51 + + 7 WHEN + CAST ( + 9 AS INTEGER ) THEN NULL WHEN + ( + - 10 ) / - 24 THEN NULL END + + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT - MAX( - 49 ) * + 71
----
3479

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT - MAX ( - 49 ) * + 71
----
3479

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5135
SELECT - 24 DIV + 98 * + 4, - COUNT( * ) DIV + - 72 + + - 55 AS col2
----
0
-55

skipif mysql # not compatible
query II rowsort label-5135
SELECT - 24 / + 98 * + 4, - COUNT ( * ) / + - 72 + + - 55 AS col2
----
0
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT - + COUNT( - 96 ) DIV 32 - + 27 * - - 55
----
-1485

skipif mysql # not compatible
query I rowsort label-5136
SELECT - + COUNT ( - 96 ) / 32 - + 27 * - - 55
----
-1485

query I rowsort
SELECT + + 74 * + + 40 * + 48
----
142080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT ALL 13 + + + 67 DIV + - COUNT( * ) - 44 + - NULLIF ( + - 7, + 8 + - - 11 )
----
-91

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL 13 + + + 67 / + - COUNT ( * ) - 44 + - NULLIF ( + - 7, + 8 + - - 11 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - COUNT( ALL 36 ) - - - 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5139
SELECT - COUNT ( ALL 36 ) - - - 1 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-5140
SELECT ALL + - 6 DIV - 68 AS col1, + 71 DIV + 7
----
0
10

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL + - 6 / - 68 AS col1, + 71 / + 7
----
0
10

query I rowsort
SELECT ALL 79 * - 51 * - 4
----
16116

query I rowsort
SELECT + 85 * - 72 AS col1
----
-6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL - COALESCE ( - + 62, + 29 * - ( + 27 ) * + + 46 + + COALESCE ( + MAX( ALL + - 25 ), - 1 ) * - 44 + + 49 * - 71 DIV - + 13 * - - ( 21 ) ) + 29 * + + COUNT( DISTINCT - 10 )
----
91

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COALESCE ( - + 62, + 29 * - ( + 27 ) * + + 46 + + COALESCE ( + MAX ( ALL + - 25 ), - 1 ) * - 44 + + 49 * - 71 / - + 13 * - - ( 21 ) ) + 29 * + + COUNT ( DISTINCT - 10 )
----
91

query I rowsort
SELECT - 96 + - - 38 AS col2
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5145
SELECT - ( + 47 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT - ( + 47 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + 78 - + COUNT( * ) col0
----
77

skipif mysql # not compatible
query I rowsort label-5146
SELECT + 78 - + COUNT ( * ) col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5147
SELECT - 49 + + + 38 * + 51 * - CAST( NULL AS SIGNED ) AS col1, - 36 + + + 58
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5147
SELECT - 49 + + + 38 * + 51 * - CAST ( NULL AS INTEGER ) AS col1, - 36 + + + 58
----
NULL
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT + 54 * - MAX( ALL 70 ) AS col0, 6 col2
----
-3780
6

skipif mysql # not compatible
query II rowsort label-5148
SELECT + 54 * - MAX ( ALL 70 ) AS col0, 6 col2
----
-3780
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 65 DIV 62 + + NULLIF ( 78, 96 + + 10 DIV - 58 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 65 / 62 + + NULLIF ( 78, 96 + + 10 / - 58 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT 39 * 24 + - 7 * - + 4 DIV - 68
----
936

skipif mysql # not compatible
query I rowsort label-5150
SELECT 39 * 24 + - 7 * - + 4 / - 68
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT ALL - 32 DIV + + COALESCE ( + 98, - COUNT( * ) ) + 60
----
60

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - 32 / + + COALESCE ( + 98, - COUNT ( * ) ) + 60
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-5152
SELECT DISTINCT + 67 AS col1, 89 DIV - 25
----
67
-3

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT + 67 AS col1, 89 / - 25
----
67
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5153
SELECT - CAST( NULL AS DECIMAL ) / 93 + + 77, - 63 * 35 AS col2
----
NULL
-2205

skipif mysql # not compatible
query II rowsort label-5153
SELECT - CAST ( NULL AS REAL ) / 93 + + 77, - 63 * 35 AS col2
----
NULL
-2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT ALL 56 DIV + 18 + + + CASE + - 97 WHEN 13 THEN NULL ELSE 84 + 57 + - COUNT( * ) * - + 60 END AS col0
----
204

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL 56 / + 18 + + + CASE + - 97 WHEN 13 THEN NULL ELSE 84 + 57 + - COUNT ( * ) * - + 60 END AS col0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT 65 * + ( + MAX( + ( 18 ) ) ) * - COUNT( * ) + 78 * + + 99
----
6552

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT 65 * + ( + MAX ( + ( 18 ) ) ) * - COUNT ( * ) + 78 * + + 99
----
6552

query I rowsort
SELECT + 71 + 28 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5157
SELECT + 83 * - COUNT( DISTINCT - CAST( - - 1 AS DECIMAL ) ) AS col2, - 74 AS col2
----
-83
-74

skipif mysql # not compatible
query II rowsort label-5157
SELECT + 83 * - COUNT ( DISTINCT - CAST ( - - 1 AS REAL ) ) AS col2, - 74 AS col2
----
-83
-74

query I rowsort
SELECT + 88 * 33
----
2904

query I rowsort
SELECT + CASE - 42 WHEN - 8 + - 76 / + + 33 + + - 16 THEN NULL ELSE + 63 * - - 13 END AS col2
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + COUNT( * ) * - + COUNT( * ) * - - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5160
SELECT + COUNT ( * ) * - + COUNT ( * ) * - - 21 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT - CAST( + 6 AS SIGNED ) * - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-5161
SELECT - CAST ( + 6 AS INTEGER ) * - COUNT ( * )
----
6

query I rowsort
SELECT + + 94 + + NULLIF ( 23, 86 )
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT DISTINCT ( 38 ) * 10 * COUNT( * ) - + - CAST( - + 48 AS SIGNED ) col2
----
332

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT ( 38 ) * 10 * COUNT ( * ) - + - CAST ( - + 48 AS INTEGER ) col2
----
332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT - + 44 * 35 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT - + 44 * 35 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + - 58 + - - 85 + - 32 * - + CASE 14 WHEN - 93 THEN NULL WHEN - 40 THEN - - CASE - COUNT( * ) WHEN - 5 THEN NULL WHEN + 85 * + - ( - + 6 ) THEN + 92 * - 27 * - ( + - 41 ) + - COUNT( 34 ) + 97 * + 97 END / - 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT + - 58 + - - 85 + - 32 * - + CASE 14 WHEN - 93 THEN NULL WHEN - 40 THEN - - CASE - COUNT ( * ) WHEN - 5 THEN NULL WHEN + 85 * + - ( - + 6 ) THEN + 92 * - 27 * - ( + - 41 ) + - COUNT ( 34 ) + 97 * + 97 END / - 68 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT + CAST( NULL AS SIGNED ) * + COUNT( - 12 ) * + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( - 12 ) * + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - COUNT( * ) * - 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5167
SELECT - COUNT ( * ) * - 1 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL + - CAST( NULL AS SIGNED ) + - 93 * 25 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 93 * 25 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + + 2 * 82 * COUNT( * ) + + 51 + + + 3 + + 82 * + 48 + 4 AS col0
----
4158

skipif mysql # not compatible
query I rowsort label-5169
SELECT + + 2 * 82 * COUNT ( * ) + + 51 + + + 3 + + 82 * + 48 + 4 AS col0
----
4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT DISTINCT + NULLIF ( CAST( + 1 AS SIGNED ), 60 * + 45 + - COALESCE ( + 46, + - 40 - - 55 * 39, 83 - + 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + NULLIF ( CAST ( + 1 AS INTEGER ), 60 * + 45 + - COALESCE ( + 46, + - 40 - - 55 * 39, 83 - + 42 ) )
----
1

query I rowsort
SELECT ALL 27 * 27 AS col0
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT + + COALESCE ( + - SUM( + ( ( + 60 ) ) ), 36 ) + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + + COALESCE ( + - SUM ( + ( ( + 60 ) ) ), 36 ) + - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT - COUNT( * ) + - - 58 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - COUNT ( * ) + - - 58 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT COUNT( * ) + + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5174
SELECT COUNT ( * ) + + 17 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - COUNT( * ) + - 47 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - COUNT ( * ) + - 47 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT 22 * - 57 * + - COUNT( * ) AS col0
----
1254

skipif mysql # not compatible
query I rowsort label-5176
SELECT 22 * - 57 * + - COUNT ( * ) AS col0
----
1254

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT ALL + 80 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + 80 / + 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT 29 / - CASE - 16 WHEN - 90 / 10 * 92 THEN COUNT( * ) * - 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT 29 / - CASE - 16 WHEN - 90 / 10 * 92 THEN COUNT ( * ) * - 75 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 24 * - 44 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT SUM( + - NULLIF ( 22, + 58 ) ) * MAX( + + 26 ) AS col1
----
-572

skipif mysql # not compatible
query I rowsort label-5180
SELECT SUM ( + - NULLIF ( 22, + 58 ) ) * MAX ( + + 26 ) AS col1
----
-572

query I rowsort
SELECT ALL - ( + 9 ) * - - 24 AS col0
----
-216

query I rowsort
SELECT 34 * - - 28 * - 44 AS col0
----
-41888

query I rowsort
SELECT DISTINCT - ( - - 54 )
----
-54

query I rowsort
SELECT ALL + - 81 * - 35
----
2835

query I rowsort
SELECT ALL - + CASE + 38 WHEN - 35 * + - 7 THEN - 16 WHEN - 47 + 89 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - MAX( + - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5186
SELECT - MAX ( + - 33 )
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5187
SELECT + + NULLIF ( - ( + 19 ), + CAST( NULL AS DECIMAL ) )
----
-19

skipif mysql # not compatible
query I rowsort label-5187
SELECT + + NULLIF ( - ( + 19 ), + CAST ( NULL AS REAL ) )
----
-19

query I rowsort
SELECT + 49 * + - 51 * - 75 * CASE - 64 WHEN 24 THEN NULL WHEN - - 3 THEN + 56 END col0
----
NULL

query I rowsort
SELECT + 6 + - + 7 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT 71 - SUM( + 52 )
----
19

skipif mysql # not compatible
query I rowsort label-5190
SELECT 71 - SUM ( + 52 )
----
19

query I rowsort
SELECT ALL 45 * 6 * 71
----
19170

query I rowsort
SELECT 2 * - 64 + + 24 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL - ( + + 9 ) + - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - ( + + 9 ) + - - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL + 58 * 79 * 8 + + 31 AS col1
----
36687

query I rowsort
SELECT DISTINCT 16 + - ( + 23 ) * - 66 AS col1
----
1534

query I rowsort
SELECT + 65 * - ( - 51 )
----
3315

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL - 66 + + 87 - - + 21 + + 48 - 13 DIV + 47 * + 70 * 52
----
90

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - 66 + + 87 - - + 21 + + 48 - 13 / + 47 * + 70 * 52
----
90

query I rowsort
SELECT 61 + + 2 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT SUM( ALL 83 ) * 42 - - ( - - 88 ) AS col0
----
3574

skipif mysql # not compatible
query I rowsort label-5199
SELECT SUM ( ALL 83 ) * 42 - - ( - - 88 ) AS col0
----
3574

query I rowsort
SELECT 29 * - 27
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT 10 - - + ( - + 79 ) + + 81 + SUM( + 92 ) col1
----
104

skipif mysql # not compatible
query I rowsort label-5201
SELECT 10 - - + ( - + 79 ) + + 81 + SUM ( + 92 ) col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL + SUM( DISTINCT 21 ) * - - SUM( 67 ) AS col2
----
1407

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + SUM ( DISTINCT 21 ) * - - SUM ( 67 ) AS col2
----
1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT ( COUNT( * ) ) - + + 69 * + 2 * 78 + + 72 * - CAST( NULL AS SIGNED ) * + + 96 + + + 77 + + 92 + - 7 * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT ( COUNT ( * ) ) - + + 69 * + 2 * 78 + + 72 * - CAST ( NULL AS INTEGER ) * + + 96 + + + 77 + + 92 + - 7 * + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT ALL 68 AS col2, CASE COUNT( + 14 ) WHEN - COUNT( * ) THEN + + COUNT( * ) WHEN - COALESCE ( - 47, + 0 + - 83, COUNT( * ) + - 63 * 56 / 29 + + ( + COUNT( * ) ) ) THEN NULL END * - - ( + - COUNT( * ) ) + 76 + 13
----
68
NULL

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL 68 AS col2, CASE COUNT ( + 14 ) WHEN - COUNT ( * ) THEN + + COUNT ( * ) WHEN - COALESCE ( - 47, + 0 + - 83, COUNT ( * ) + - 63 * 56 / 29 + + ( + COUNT ( * ) ) ) THEN NULL END * - - ( + - COUNT ( * ) ) + 76 + 13
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT CASE + - 6 WHEN + 55 + - - 81 - - 87 * - - 48 * + COUNT( * ) + + - 42 * - + 79 THEN + 26 ELSE NULL END * - - MAX( - 92 ) / - 9 + - 99 - 3 / - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT CASE + - 6 WHEN + 55 + - - 81 - - 87 * - - 48 * + COUNT ( * ) + + - 42 * - + 79 THEN + 26 ELSE NULL END * - - MAX ( - 92 ) / - 9 + - 99 - 3 / - - 80
----
NULL

query I rowsort
SELECT ALL ( + - 20 ) * 23
----
-460

query I rowsort
SELECT 45 * 32 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT 54 - - + ( + - 94 ) * - 39 * - + 19 * + COUNT( * )
----
-69600

skipif mysql # not compatible
query I rowsort label-5208
SELECT 54 - - + ( + - 94 ) * - 39 * - + 19 * + COUNT ( * )
----
-69600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5209
SELECT SUM( ALL + 50 ) - - 3 * - 2 * + - 60, ( + CAST( - COALESCE ( + 33, 99, + 7 * 33 / + - 49 + + 2 ) AS SIGNED ) ) AS col0
----
410
-33

skipif mysql # not compatible
query II rowsort label-5209
SELECT SUM ( ALL + 50 ) - - 3 * - 2 * + - 60, ( + CAST ( - COALESCE ( + 33, 99, + 7 * 33 / + - 49 + + 2 ) AS INTEGER ) ) AS col0
----
410
-33

query I rowsort
SELECT 34 * - 58
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 38 + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5211
SELECT 38 + + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 73 + + ( - - 86 ) + + ( + ( 94 ) ) AS col2
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL - COUNT( DISTINCT + ( - + 97 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - COUNT ( DISTINCT + ( - + 97 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT 2 * CAST( ( - COUNT( * ) ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5214
SELECT 2 * CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT + 24 + + 9 + 84 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT ALL - + 66 DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - + 66 / 49
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT + ( - 96 ) + - 97 * + - COUNT( - 83 ) col1, 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-5217
SELECT + ( - 96 ) + - 97 * + - COUNT ( - 83 ) col1, 76 AS col2
----
1
76

query I rowsort
SELECT + - ( - 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT - 4 * + - ( - MAX( DISTINCT - CAST( + 88 AS SIGNED ) ) )
----
352

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 4 * + - ( - MAX ( DISTINCT - CAST ( + 88 AS INTEGER ) ) )
----
352

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT - + ( - - 64 ) * - 67 + - 69 + + 81 * + - 97 + 12 * + - 57 * + 44 + - 18 * 9 * - COUNT( DISTINCT 95 ) + - ( 18 ), - 76 col2
----
-33590
-76

skipif mysql # not compatible
query II rowsort label-5220
SELECT - + ( - - 64 ) * - 67 + - 69 + + 81 * + - 97 + 12 * + - 57 * + 44 + - 18 * 9 * - COUNT ( DISTINCT 95 ) + - ( 18 ), - 76 col2
----
-33590
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - COALESCE ( + 11, + 91 * + + SUM( DISTINCT 70 ) * ( + + COUNT( * ) ) * + 32 + + 74, + 5 * + 94 * + + 18 + + 28, + - 4 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5221
SELECT - COALESCE ( + 11, + 91 * + + SUM ( DISTINCT 70 ) * ( + + COUNT ( * ) ) * + 32 + + 74, + 5 * + 94 * + + 18 + + 28, + - 4 ) AS col1
----
-11

query I rowsort
SELECT ALL - + 23 * + 89 + - 54
----
-2101

query I rowsort
SELECT DISTINCT - 65 * 19 + + - 6
----
-1241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT - COUNT( * ) * + 59 + - 57 DIV - 99 * - - 93 * + + 67 + 1
----
-58

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - COUNT ( * ) * + 59 + - 57 / - 99 * - - 93 * + + 67 + 1
----
-58

query II rowsort
SELECT + 82 AS col2, - 31
----
82
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5226
SELECT - 2 + + + 78 + - CAST( NULL AS SIGNED ) + + + 11 * 37 * 81, 75 col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-5226
SELECT - 2 + + + 78 + - CAST ( NULL AS INTEGER ) + + + 11 * 37 * 81, 75 col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + 3 * + 75 + + MIN( ALL + + 65 ) + + MAX( ALL + 9 ) + COUNT( * ) + 31 - 71
----
260

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 3 * + 75 + + MIN ( ALL + + 65 ) + + MAX ( ALL + 9 ) + COUNT ( * ) + 31 - 71
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + CAST( 83 AS SIGNED ) * + 67
----
5561

skipif mysql # not compatible
query I rowsort label-5228
SELECT + CAST ( 83 AS INTEGER ) * + 67
----
5561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT ALL COUNT( * ) DIV COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL COUNT ( * ) / COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5230
SELECT + 55 + + + 49 + - 18 * 40, ( 43 ) + - CAST( NULL AS SIGNED ) + - + 32 / - ( 78 ) + - 25 + - 50 * + + 56 * + - 78 col0, - 23 AS col1
----
-616
NULL
-23

skipif mysql # not compatible
query III rowsort label-5230
SELECT + 55 + + + 49 + - 18 * 40, ( 43 ) + - CAST ( NULL AS INTEGER ) + - + 32 / - ( 78 ) + - 25 + - 50 * + + 56 * + - 78 col0, - 23 AS col1
----
-616
NULL
-23

query I rowsort
SELECT + 26 * - 54 AS col1
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT 7 * 21 * NULLIF ( - 14, - ( 21 ) ) + - COUNT( 29 ) col1
----
-2059

skipif mysql # not compatible
query I rowsort label-5232
SELECT 7 * 21 * NULLIF ( - 14, - ( 21 ) ) + - COUNT ( 29 ) col1
----
-2059

query II rowsort
SELECT 67 AS col1, - 0 AS col1
----
67
0

query II rowsort
SELECT ALL 63 AS col2, + 14
----
63
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT 67 * + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT 67 * + COUNT ( * ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT ALL 90 DIV 44 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL 90 / 44 AS col0
----
2

query I rowsort
SELECT - ( - ( 19 ) ) AS col0
----
19

query II rowsort
SELECT - 66 + - NULLIF ( + + 81, 36 ) col2, + 80
----
-147
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5239
SELECT - ( + CAST( - 98 AS SIGNED ) ) + + 30 / + + ( + CAST( - CASE - - 31 WHEN 37 THEN + ( 78 ) * 24 WHEN 91 THEN NULL ELSE NULL END AS SIGNED ) ) * + 19 / MAX( - ( - 64 ) ) - 92 + - ( - + 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT - ( + CAST ( - 98 AS INTEGER ) ) + + 30 / + + ( + CAST ( - CASE - - 31 WHEN 37 THEN + ( 78 ) * 24 WHEN 91 THEN NULL ELSE NULL END AS INTEGER ) ) * + 19 / MAX ( - ( - 64 ) ) - 92 + - ( - + 80 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT - CASE + - 70 WHEN - 50 THEN - 36 ELSE NULL END AS col0, - NULLIF ( + 54, + - 37 + + MIN( ALL + 19 ) ) + + MIN( ALL + + 46 ) * + 22
----
NULL
958

skipif mysql # not compatible
query II rowsort label-5240
SELECT - CASE + - 70 WHEN - 50 THEN - 36 ELSE NULL END AS col0, - NULLIF ( + 54, + - 37 + + MIN ( ALL + 19 ) ) + + MIN ( ALL + + 46 ) * + 22
----
NULL
958

query II rowsort
SELECT DISTINCT 46 AS col1, 67 * + 4
----
46
268

query II rowsort
SELECT - 51 AS col0, - 19
----
-51
-19

query I rowsort
SELECT - 22 * - - 92 AS col2
----
-2024

query I rowsort
SELECT + 61 - + 38 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + - CASE + 17 WHEN - 5 + - + ( - ( - 26 ) ) - - COUNT( * ) + + 65 - - 16 * + 52 THEN + AVG ( DISTINCT + - 92 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT + - CASE + 17 WHEN - 5 + - + ( - ( - 26 ) ) - - COUNT ( * ) + + 65 - - 16 * + 52 THEN + AVG ( DISTINCT + - 92 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 83 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL 51 DIV 18 - - 30 + + 10 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL 51 / 18 - - 30 + + 10 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT + + SUM( ALL 24 ) * - - CAST( NULL AS SIGNED ) + - 33 + + - AVG ( DISTINCT - + 17 ) + - 90 + + CAST( NULL AS SIGNED ) + + + 59 * + + 54 * + + 29 * - COALESCE ( - 32, - + 58 ) / + 97 + - AVG ( ALL - CAST( NULL AS SIGNED ) ) / - COALESCE ( - + 56, - 90 ) - + - 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT + + SUM ( ALL 24 ) * - - CAST ( NULL AS INTEGER ) + - 33 + + - AVG ( DISTINCT - + 17 ) + - 90 + + CAST ( NULL AS INTEGER ) + + + 59 * + + 54 * + + 29 * - COALESCE ( - 32, - + 58 ) / + 97 + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - COALESCE ( - + 56, - 90 ) - + - 85 col2
----
NULL

query I rowsort
SELECT + NULLIF ( 32, - AVG ( - - 22 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - + COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5250
SELECT - + COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL - 69 / - CASE + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + + 87 THEN NULL WHEN - 93 / CAST( 22 AS SIGNED ) - + 84 + - 53 THEN + 43 END + - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - 69 / - CASE + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + + 87 THEN NULL WHEN - 93 / CAST ( 22 AS INTEGER ) - + 84 + - 53 THEN + 43 END + - - 15
----
NULL

query I rowsort
SELECT + NULLIF ( + + 64, - 17 + - COALESCE ( + + 66, + 28 ) * 45 + 8 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT ALL 59 DIV 21 + - MAX( ALL - 45 ) + + - 88
----
-41

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL 59 / 21 + - MAX ( ALL - 45 ) + + - 88
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT + - 4 DIV - 28 + - + 13 + SUM( DISTINCT - ( - 46 ) ) * + + 72 - COUNT( * ) + 68 - - 90 + - 43 AS col2
----
3413

skipif mysql # not compatible
query I rowsort label-5254
SELECT + - 4 / - 28 + - + 13 + SUM ( DISTINCT - ( - 46 ) ) * + + 72 - COUNT ( * ) + 68 - - 90 + - 43 AS col2
----
3413

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT + + MIN( ALL + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + + MIN ( ALL + 57 )
----
57

query I rowsort
SELECT ALL + 39 * - 83 + 60 + - + 20 col2
----
-3197

query I rowsort
SELECT DISTINCT + 77 * - ( 47 ) AS col1
----
-3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT - COALESCE ( + + 1, + CAST( NULL AS SIGNED ) * - 82 + - - 73 ) * - 92 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5258
SELECT - COALESCE ( + + 1, + CAST ( NULL AS INTEGER ) * - 82 + - - 73 ) * - 92 * COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL 59 * ( + + 18 ) * + ( + 82 ) + + + SUM( + 84 ) col0
----
87168

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL 59 * ( + + 18 ) * + ( + 82 ) + + + SUM ( + 84 ) col0
----
87168

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT - - 97 * + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - - 97 * + COUNT ( * ) AS col1
----
97

query I rowsort
SELECT - 90 + CASE 59 WHEN - 48 THEN + 91 * ( + + COALESCE ( + + 69, 37, + - ( + 93 ) ) ) + - 23 + ( + 39 ) WHEN - - 69 THEN NULL ELSE + - 8 END * 78
----
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT DISTINCT + - 84 * - 57, 73 * - ( - COUNT( * ) ) col1
----
4788
73

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT + - 84 * - 57, 73 * - ( - COUNT ( * ) ) col1
----
4788
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - NULLIF ( + + COUNT( * ), + 65 ) + + MAX( - - 48 )
----
47

skipif mysql # not compatible
query I rowsort label-5263
SELECT - NULLIF ( + + COUNT ( * ), + 65 ) + + MAX ( - - 48 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5264
SELECT + - 34 AS col0, 54 * - - CASE + + 55 WHEN - 48 THEN 11 * + - 81 + + + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + - 88 * + 35 THEN 22 END AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5264
SELECT + - 34 AS col0, 54 * - - CASE + + 55 WHEN - 48 THEN 11 * + - 81 + + + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + - 88 * + 35 THEN 22 END AS col0
----
-34
NULL

query I rowsort
SELECT ALL - - 97 * - + 13 - ( + 42 ) col0
----
-1303

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - 84 + + MIN( + - 97 ) AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 84 + + MIN ( + - 97 ) AS col1
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT MAX( DISTINCT + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-5267
SELECT MAX ( DISTINCT + - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - 60 + 65 + 26 * COUNT( + - 52 ) + - 46 * - 35 * 96 * 52 * + 64
----
514375711

skipif mysql # not compatible
query I rowsort label-5268
SELECT - 60 + 65 + 26 * COUNT ( + - 52 ) + - 46 * - 35 * 96 * 52 * + 64
----
514375711

query I rowsort
SELECT + 25 + + ( + + 22 ) * 51
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - 36 * + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5270
SELECT - 36 * + + COUNT ( * ) AS col1
----
-36

query II rowsort
SELECT + 42 * 26 AS col1, + 44 + + 33 col0
----
1092
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL 48 * 80 * - ( - COUNT( * ) ) AS col0
----
3840

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL 48 * 80 * - ( - COUNT ( * ) ) AS col0
----
3840

query II rowsort
SELECT + 54 - - 89 AS col1, - 75 * 97 * - + 75 + + - ( + 1 )
----
143
545624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL CAST( - - 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL CAST ( - - 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - ( - - ( - 42 ) ) * - + CASE - COUNT( * ) WHEN + 69 THEN 50 END + - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - ( - - ( - 42 ) ) * - + CASE - COUNT ( * ) WHEN + 69 THEN 50 END + - + 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT ALL COUNT( * ) * 96 AS col2, - 56 * + 14
----
96
-784

skipif mysql # not compatible
query II rowsort label-5276
SELECT ALL COUNT ( * ) * 96 AS col2, - 56 * + 14
----
96
-784

query I rowsort
SELECT ALL 71 * - 45 * - + 11 * + - 23
----
-808335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT 35 + COUNT( * ) * ( CAST( NULL AS SIGNED ) ) + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT 35 + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) + + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT + MAX( - 3 ) DIV - + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT + MAX ( - 3 ) / - + 64 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT + 70 + CAST( + 87 AS SIGNED ) - + + 6 + - AVG ( ALL - + 93 ) + 28 * - 17 / + CASE WHEN NULL IS NOT NULL THEN 5 WHEN ( 84 / - 81 + - 82 * - AVG ( - 64 ) * + MAX( - 46 ) + + 80 + + 68 + 52 - 90 * - 78 ) NOT IN ( - 1 ) THEN NULL END * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 70 + CAST ( + 87 AS INTEGER ) - + + 6 + - AVG ( ALL - + 93 ) + 28 * - 17 / + CASE WHEN NULL IS NOT NULL THEN 5 WHEN ( 84 / - 81 + - 82 * - AVG ( - 64 ) * + MAX ( - 46 ) + + 80 + + 68 + 52 - 90 * - 78 ) NOT IN ( - 1 ) THEN NULL END * - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT + CASE + ( + 74 ) WHEN 64 THEN NULL WHEN 85 * + ( + 66 ) + - 67 THEN 98 ELSE + COUNT( * ) END - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT + CASE + ( + 74 ) WHEN 64 THEN NULL WHEN 85 * + ( + 66 ) + - 67 THEN 98 ELSE + COUNT ( * ) END - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL + CAST( NULL AS SIGNED ) + - 55 / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + CAST ( NULL AS INTEGER ) + - 55 / + 47
----
NULL

query I rowsort
SELECT + 59 + - 52 + 4 + 93 * + 71
----
6614

query I rowsort
SELECT + ( + 60 ) - 53 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( * ) + + 55 + + + 76 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( * ) + + 55 + + + 76 AS col0
----
132

query I rowsort
SELECT ALL ( 79 ) + + 78
----
157

query I rowsort
SELECT ALL - 39 * - 28
----
1092

query I rowsort
SELECT ALL + 81 + + 43
----
124

query I rowsort
SELECT 49 + + 31
----
80

query I rowsort
SELECT ALL - 90 + - 75 - 48
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT ALL + 79 * - + 82, COALESCE ( + - CAST( NULL AS SIGNED ), + - 98, - 56 + - 27 - - 71 ) AS col0
----
-6478
-98

skipif mysql # not compatible
query II rowsort label-5291
SELECT ALL + 79 * - + 82, COALESCE ( + - CAST ( NULL AS INTEGER ), + - 98, - 56 + - 27 - - 71 ) AS col0
----
-6478
-98

query I rowsort
SELECT + + ( + ( + + 37 ) ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT + CAST( + 86 AS SIGNED ) * + - 71 + ( - 16 ) AS col0
----
-6122

skipif mysql # not compatible
query I rowsort label-5293
SELECT + CAST ( + 86 AS INTEGER ) * + - 71 + ( - 16 ) AS col0
----
-6122

query I rowsort
SELECT DISTINCT + 87 - - 11 col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT 59 * - 96 AS col0, COUNT( * ) + - 83
----
-5664
-82

skipif mysql # not compatible
query II rowsort label-5295
SELECT 59 * - 96 AS col0, COUNT ( * ) + - 83
----
-5664
-82

query I rowsort
SELECT ALL + 54 - COALESCE ( + 25, - - 98, - 48 * 30 ) AS col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5297
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - 93 * - - 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + CAST ( NULL AS REAL ) - 93 * - - 91 col0
----
NULL

query I rowsort
SELECT 29 + - 9 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL 85 - 58 + - 9 + - COUNT( * ) * + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL 85 - 58 + - 9 + - COUNT ( * ) * + + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5300
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT - 44 * + MAX( + 22 ) AS col1
----
-968

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - 44 * + MAX ( + 22 ) AS col1
----
-968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT COALESCE ( 84, - 20 ) DIV + + 51 - + COUNT( * ) * + 27 + - + 71
----
-97

skipif mysql # not compatible
query I rowsort label-5302
SELECT COALESCE ( 84, - 20 ) / + + 51 - + COUNT ( * ) * + 27 + - + 71
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT 48 DIV + 80 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT 48 / + 80 * + 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL + ( COUNT( * ) ) * + + CAST( + 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + ( COUNT ( * ) ) * + + CAST ( + 50 AS INTEGER )
----
50

query I rowsort
SELECT ( - - 57 ) * + 46 AS col1
----
2622

query II rowsort
SELECT 26 * - + 36 - + 29, - 9 col1
----
-965
-9

query I rowsort
SELECT 57 * - 80
----
-4560

query I rowsort
SELECT DISTINCT - CASE - 50 WHEN - 16 THEN - 5 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5309
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 33 * - 19 AS col1, 57 - + 26 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-5309
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 33 * - 19 AS col1, 57 - + 26 AS col2
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT MIN( - 95 ) + - 23
----
-118

skipif mysql # not compatible
query I rowsort label-5310
SELECT MIN ( - 95 ) + - 23
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT 47 * SUM( DISTINCT CAST( 46 AS SIGNED ) )
----
2162

skipif mysql # not compatible
query I rowsort label-5311
SELECT 47 * SUM ( DISTINCT CAST ( 46 AS INTEGER ) )
----
2162

query I rowsort
SELECT ALL - 54 * 38
----
-2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + + + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL - COUNT( * ) * - - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - COUNT ( * ) * - - 45 AS col1
----
-45

query I rowsort
SELECT ALL 1 + - 96
----
-95

query I rowsort
SELECT ALL + 81 + - + 43 * + 92
----
-3875

query II rowsort
SELECT - 93 col2, 90 AS col0
----
-93
90

query I rowsort
SELECT ALL + 55 + - 82 * + 12 * - 13 col1
----
12847

query II rowsort
SELECT 22 AS col0, 60
----
22
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT MIN( - - 76 ) + - - 70
----
146

skipif mysql # not compatible
query I rowsort label-5320
SELECT MIN ( - - 76 ) + - - 70
----
146

query I rowsort
SELECT ALL 58 + + + 56
----
114

query I rowsort
SELECT DISTINCT 0 * 94
----
0

query I rowsort
SELECT DISTINCT - + 17 + + + 4 col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL - 99 + - CASE - 84 WHEN + NULLIF ( - 26, + COUNT( * ) ) * + 14 + - 20 + - - 91 * + 79 THEN 54 * - ( + + 21 ) + + CAST( NULL AS SIGNED ) * 8 + COUNT( * ) + + + 62 + - 72 + - 92 * - 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - 99 + - CASE - 84 WHEN + NULLIF ( - 26, + COUNT ( * ) ) * + 14 + - 20 + - - 91 * + 79 THEN 54 * - ( + + 21 ) + + CAST ( NULL AS INTEGER ) * 8 + COUNT ( * ) + + + 62 + - 72 + - 92 * - 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT 71 * - MIN( - ( 15 ) ) AS col0
----
1065

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 71 * - MIN ( - ( 15 ) ) AS col0
----
1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5326
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) * 94 * + - 75 + + 49 + - 39 AS col1, - 2 - + COALESCE ( 64, + 77, 80 ) - - + 74 DIV - - COALESCE ( - 53, 4 * - + 47 * + ( + MAX( + 53 ) ) DIV + COUNT( * ) )
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-5326
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) * 94 * + - 75 + + 49 + - 39 AS col1, - 2 - + COALESCE ( 64, + 77, 80 ) - - + 74 / - - COALESCE ( - 53, 4 * - + 47 * + ( + MAX ( + 53 ) ) / + COUNT ( * ) )
----
NULL
-67

query I rowsort
SELECT + + ( + 2 ) * + ( + + 5 ) + + + 69 AS col1
----
79

query II rowsort
SELECT ALL - 84, 82 AS col1
----
-84
82

query I rowsort
SELECT NULLIF ( - 38, + + 28 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT 71 + - MIN( DISTINCT - + 8 ) AS col2, 9 AS col0
----
79
9

skipif mysql # not compatible
query II rowsort label-5330
SELECT 71 + - MIN ( DISTINCT - + 8 ) AS col2, 9 AS col0
----
79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL + 67 * + + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + 67 * + + COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT + 9 - - + MIN( 68 ) col2, + 62
----
77
62

skipif mysql # not compatible
query II rowsort label-5332
SELECT + 9 - - + MIN ( 68 ) col2, + 62
----
77
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL + 23 * COUNT( + 38 )
----
23

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL + 23 * COUNT ( + 38 )
----
23

query I rowsort
SELECT ALL 1 * 86 * + 17
----
1462

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT 57 DIV - 40 + + ( - + 47 ) + - 70 DIV + - 61
----
-47

skipif mysql # not compatible
query I rowsort label-5335
SELECT 57 / - 40 + + ( - + 47 ) + - 70 / + - 61
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5336
SELECT COALESCE ( + COUNT( * ), + ( + 36 ) + + 55 + - 18 * - 68 DIV + - 90 * + - 16 * CAST( + 42 AS SIGNED ) ) * CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) * 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5336
SELECT COALESCE ( + COUNT ( * ), + ( + 36 ) + + 55 + - 18 * - 68 / + - 90 * + - 16 * CAST ( + 42 AS INTEGER ) ) * CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) * 72 AS col1
----
72

query I rowsort
SELECT 64 * - 70
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - SUM( - - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - SUM ( - - 76 ) AS col1
----
-76

query I rowsort
SELECT ALL + 86 + + 29 * - + 87
----
-2437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5340
SELECT DISTINCT + 68 + MAX( DISTINCT - 53 ) + - - CAST( NULL AS SIGNED ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + 68 + MAX ( DISTINCT - 53 ) + - - CAST ( NULL AS INTEGER ) + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT - 13 + 77 - COUNT( * ) * - + COUNT( * ) - 7 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - 13 + 77 - COUNT ( * ) * - + COUNT ( * ) - 7 AS col2
----
58

query I rowsort
SELECT ALL 89 + - 53 AS col0
----
36

query I rowsort
SELECT ALL - 23 + - 63 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5344
SELECT MAX( - 72 ) * - 22 + - AVG ( 70 ) + - CASE - 99 WHEN + 69 - + 65 THEN + 35 WHEN SUM( - + 31 ) THEN NULL END * + 93 + CASE + + SUM( ALL 0 ) WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - MIN( + - 24 ) END, + 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5344
SELECT MAX ( - 72 ) * - 22 + - AVG ( 70 ) + - CASE - 99 WHEN + 69 - + 65 THEN + 35 WHEN SUM ( - + 31 ) THEN NULL END * + 93 + CASE + + SUM ( ALL 0 ) WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - MIN ( + - 24 ) END, + 71 AS col0
----
NULL
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5345
SELECT - CAST( NULL AS SIGNED ) * + + 76, + COUNT( * ) + - COUNT( * ) + - - COUNT( * ) * - 86 * CASE - AVG ( 97 ) WHEN + 10 THEN + + ( 50 ) ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5345
SELECT - CAST ( NULL AS INTEGER ) * + + 76, + COUNT ( * ) + - COUNT ( * ) + - - COUNT ( * ) * - 86 * CASE - AVG ( 97 ) WHEN + 10 THEN + + ( 50 ) ELSE NULL END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 50 + + 20
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - + MIN( - + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5347
SELECT - + MIN ( - + 73 )
----
73

query I rowsort
SELECT DISTINCT + 61 + + 83
----
144

query I rowsort
SELECT ALL - 3 + + 28 + 49 AS col0
----
74

query I rowsort
SELECT ALL + + 53 * + ( - 76 )
----
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - COUNT( * ) + ( + 26 ) + - 12
----
13

skipif mysql # not compatible
query I rowsort label-5351
SELECT - COUNT ( * ) + ( + 26 ) + - 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT COALESCE ( - - COUNT( * ), COUNT( * ) + 32 - - 14 * 24, 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT COALESCE ( - - COUNT ( * ), COUNT ( * ) + 32 - - 14 * 24, 31 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT - 43 + COUNT( - + 58 ) + ( 5 ) + + 28 * - 22, - 27 AS col0
----
-653
-27

skipif mysql # not compatible
query II rowsort label-5353
SELECT - 43 + COUNT ( - + 58 ) + ( 5 ) + + 28 * - 22, - 27 AS col0
----
-653
-27

query I rowsort
SELECT + 13 - 81 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - COUNT( DISTINCT + 69 ) + - 5
----
-6

skipif mysql # not compatible
query I rowsort label-5355
SELECT - COUNT ( DISTINCT + 69 ) + - 5
----
-6

query I rowsort
SELECT + 40 + - 15 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT + COUNT( 4 ) * - ( + 90 ) + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + COUNT ( 4 ) * - ( + 90 ) + COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - + CAST( - 80 AS SIGNED ) * 51 AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - + CAST ( - 80 AS INTEGER ) * 51 AS col2
----
4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5359
SELECT ALL + - COUNT( * ) * - + ( CAST( + + 79 AS SIGNED ) ) AS col2, 5 * 13
----
79
65

skipif mysql # not compatible
query II rowsort label-5359
SELECT ALL + - COUNT ( * ) * - + ( CAST ( + + 79 AS INTEGER ) ) AS col2, 5 * 13
----
79
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT + 29 * + 88 * + CASE 40 WHEN 49 + + 61 + 84 / + - CAST( NULL AS SIGNED ) THEN + 1 ELSE NULL END * - - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + 29 * + 88 * + CASE 40 WHEN 49 + + 61 + 84 / + - CAST ( NULL AS INTEGER ) THEN + 1 ELSE NULL END * - - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - - ( + ( + - 49 ) ) + 42 + - COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-5361
SELECT - - ( + ( + - 49 ) ) + 42 + - COUNT ( * ) col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT 53 * + 10 * 8 * - 34 + + - NULLIF ( - + 26, + 16 * + - 18 + - 49 ) * 16 + + ( - + COUNT( * ) ) AS col1
----
-143745

skipif mysql # not compatible
query I rowsort label-5362
SELECT 53 * + 10 * 8 * - 34 + + - NULLIF ( - + 26, + 16 * + - 18 + - 49 ) * 16 + + ( - + COUNT ( * ) ) AS col1
----
-143745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT + MAX( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT ALL 96 * + 49 + + 14, - ( ( + COUNT( * ) ) ) col0
----
4718
-1

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL 96 * + 49 + + 14, - ( ( + COUNT ( * ) ) ) col0
----
4718
-1

query I rowsort
SELECT + 31 + 66 AS col2
----
97

query I rowsort
SELECT DISTINCT - 31 * + COALESCE ( 51, - 74 ) + 71 - 24 AS col2
----
-1534

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT + COALESCE ( 8, - 63 ) AS col2, - COUNT( + - 1 )
----
8
-1

skipif mysql # not compatible
query II rowsort label-5367
SELECT + COALESCE ( 8, - 63 ) AS col2, - COUNT ( + - 1 )
----
8
-1

query I rowsort
SELECT DISTINCT 30 * 31
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT CASE + + 79 WHEN + 3 * - + ( ( + 48 ) ) + - - 91 + 45 + MIN( DISTINCT - 61 ) THEN - 6 WHEN - 98 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT CASE + + 79 WHEN + 3 * - + ( ( + 48 ) ) + - - 91 + 45 + MIN ( DISTINCT - 61 ) THEN - 6 WHEN - 98 THEN NULL END col2
----
NULL

query I rowsort
SELECT CASE + - 7 WHEN 72 THEN + ( + 62 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT + 64 * 48 * + 28 * - ( - ( + 93 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 64 * 48 * + 28 * - ( - ( + 93 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT ( + 73 ) * 45 * + 83 * - MAX( DISTINCT - 62 ) + - COUNT( * ) + - 37 AS col0
----
16904572

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT ( + 73 ) * 45 * + 83 * - MAX ( DISTINCT - 62 ) + - COUNT ( * ) + - 37 AS col0
----
16904572

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COALESCE ( + COUNT( * ), + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COALESCE ( + COUNT ( * ), + 6 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5374
SELECT - 12 * + NULLIF ( CAST( NULL AS SIGNED ), - CASE 48 WHEN - COUNT( * ) / - 4 THEN CAST( NULL AS SIGNED ) WHEN + 49 + + - COALESCE ( + - ( + 45 ), - 52 * - ( - 36 ) + - 93 ) / + NULLIF ( - - 97, 13 ) * 37 THEN + CAST( NULL AS DECIMAL ) * - 57 END * + 84 ) / + + 9 / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 12 * + NULLIF ( CAST ( NULL AS INTEGER ), - CASE 48 WHEN - COUNT ( * ) / - 4 THEN CAST ( NULL AS INTEGER ) WHEN + 49 + + - COALESCE ( + - ( + 45 ), - 52 * - ( - 36 ) + - 93 ) / + NULLIF ( - - 97, 13 ) * 37 THEN + CAST ( NULL AS REAL ) * - 57 END * + 84 ) / + + 9 / - 29
----
NULL

query I rowsort
SELECT - ( + + 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT COUNT( * ) * + COUNT( DISTINCT + 22 ) - - 55
----
56

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT COUNT ( * ) * + COUNT ( DISTINCT + 22 ) - - 55
----
56

query I rowsort
SELECT DISTINCT 47 * - - 73
----
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL COALESCE ( - + 46, COUNT( * ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL COALESCE ( - + 46, COUNT ( * ) ) AS col2
----
-46

query I rowsort
SELECT ALL - + 79 - + 33
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT DISTINCT + COUNT( * ) DIV + 31 + - + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + COUNT ( * ) / + 31 + - + 73 AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 49 - + 60
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT + 18 DIV - MIN( - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT + 18 / - MIN ( - 15 )
----
1

query I rowsort
SELECT - 88 * - 11 AS col2
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - + COUNT( DISTINCT + + 66 ) + - + 78 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5385
SELECT - + COUNT ( DISTINCT + + 66 ) + - + 78 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL COUNT( ALL + + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL COUNT ( ALL + + 1 ) AS col0
----
1

query I rowsort
SELECT - - 22 + - + 18 + - + 89
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT + - COUNT( * ) * + + 38
----
-38

skipif mysql # not compatible
query I rowsort label-5388
SELECT + - COUNT ( * ) * + + 38
----
-38

query I rowsort
SELECT ALL 47 * - - 1 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT DISTINCT - COALESCE ( - 93, 39, - 58 DIV 91 )
----
93

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT - COALESCE ( - 93, 39, - 58 / 91 )
----
93

query I rowsort
SELECT DISTINCT + - 83 * + 43
----
-3569

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT COALESCE ( 54, + COUNT( * ) * - 7 - COALESCE ( - 84, - MAX( 97 ), 17 * + 74 ), + 15 + 49 + - + 20 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT COALESCE ( 54, + COUNT ( * ) * - 7 - COALESCE ( - 84, - MAX ( 97 ), 17 * + 74 ), + 15 + 49 + - + 20 ) col0
----
54

query II rowsort
SELECT - 57 + 53 + - - 49 * + 79 + + - 21 col1, - 47 AS col0
----
3846
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT - COUNT( * ) * 59 DIV + - 84 + - 10 + - ( 84 ) * + 32
----
-2698

skipif mysql # not compatible
query I rowsort label-5394
SELECT - COUNT ( * ) * 59 / + - 84 + - 10 + - ( 84 ) * + 32
----
-2698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5395
SELECT DISTINCT + COALESCE ( + 80, COUNT( * ), 12 ) AS col0, CAST( NULL AS SIGNED ) * + 33 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-5395
SELECT DISTINCT + COALESCE ( + 80, COUNT ( * ), 12 ) AS col0, CAST ( NULL AS INTEGER ) * + 33 AS col2
----
80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT DISTINCT + 37 DIV + 92 + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT + 37 / + 92 + + 51 AS col2
----
51

query I rowsort
SELECT - 90 - + 4 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT + CASE - + 36 WHEN + 95 + ( 76 ) * + + 43 THEN 34 ELSE - + NULLIF ( + ( - COUNT( * ) ), + 2 - - ( 72 ) ) * 91 END
----
91

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + CASE - + 36 WHEN + 95 + ( 76 ) * + + 43 THEN 34 ELSE - + NULLIF ( + ( - COUNT ( * ) ), + 2 - - ( 72 ) ) * 91 END
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT ALL + 37 AS col1, + MIN( + 63 ) * + 3 col2
----
37
189

skipif mysql # not compatible
query II rowsort label-5399
SELECT ALL + 37 AS col1, + MIN ( + 63 ) * + 3 col2
----
37
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT CAST( - - 55 AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5400
SELECT CAST ( - - 55 AS INTEGER ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT ALL COUNT( * ) DIV - NULLIF ( 19, + SUM( + 60 ) ) + 41 * - 19 AS col1
----
-779

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL COUNT ( * ) / - NULLIF ( 19, + SUM ( + 60 ) ) + 41 * - 19 AS col1
----
-779

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 32 DIV + 82 + ( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5402
SELECT 32 / + 82 + ( - 4 )
----
-4

query I rowsort
SELECT 82 * + 0
----
0

query II rowsort
SELECT + 26 AS col2, - 14 * 25 AS col1
----
26
-350

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT 56 + MIN( ALL + 12 ) + - + COUNT( * ), 50 AS col2
----
67
50

skipif mysql # not compatible
query II rowsort label-5405
SELECT 56 + MIN ( ALL + 12 ) + - + COUNT ( * ), 50 AS col2
----
67
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT ALL - 27, COUNT( * ) * + - 37 col2
----
-27
-37

skipif mysql # not compatible
query II rowsort label-5406
SELECT ALL - 27, COUNT ( * ) * + - 37 col2
----
-27
-37

query II rowsort
SELECT 38 AS col1, + 72 col1
----
38
72

query I rowsort
SELECT 1 - - 78 + 15
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT 72 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5409
SELECT 72 * COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL SUM( DISTINCT + 3 ) - + 43
----
-40

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL SUM ( DISTINCT + 3 ) - + 43
----
-40

query I rowsort
SELECT DISTINCT 70 - + 21 AS col0
----
49

query I rowsort
SELECT 91 + + 49 * - + 21 AS col2
----
-938

query I rowsort
SELECT ALL - 12 * + - 67
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT COUNT( * ) + - MIN( ALL - 29 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5414
SELECT COUNT ( * ) + - MIN ( ALL - 29 ) AS col1
----
30

query I rowsort
SELECT + - 97 * + 64 + 55
----
-6153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT + 86 * + 48 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT + 86 * + 48 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( ( 87 ) )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5418
SELECT - COUNT( * ) DIV NULLIF ( 17, + AVG ( DISTINCT 58 ) DIV - 39 ) AS col1, ( - 83 ) + 14 * 81
----
0
1051

skipif mysql # not compatible
query II rowsort label-5418
SELECT - COUNT ( * ) / NULLIF ( 17, + AVG ( DISTINCT 58 ) / - 39 ) AS col1, ( - 83 ) + 14 * 81
----
0
1051

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL MAX( 40 ) col2
----
40

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL MAX ( 40 ) col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT - 61 + 50 - - - 17 DIV 17 + + + 79 * + 38 * + 87 + + 69 AS col1
----
261231

skipif mysql # not compatible
query I rowsort label-5420
SELECT - 61 + 50 - - - 17 / 17 + + + 79 * + 38 * + 87 + + 69 AS col1
----
261231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT ALL - 80 DIV + 68 + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - 80 / + 68 + - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT - 69 + + + ( MAX( ALL 71 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT - 69 + + + ( MAX ( ALL 71 ) )
----
2

query II rowsort
SELECT ALL - + 10 * - 18, + 27 * 39 AS col1
----
180
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT COUNT( * ) + - 67 * + - ( + - 74 ) * + + 80 * + COUNT( + 38 )
----
-396639

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( * ) + - 67 * + - ( + - 74 ) * + + 80 * + COUNT ( + 38 )
----
-396639

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - COUNT( * ) + - - 67 - + + 0 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - COUNT ( * ) + - - 67 - + + 0 AS col2
----
66

query III rowsort
SELECT 83, - 12 AS col1, - 34 + + ( 94 ) AS col0
----
83
-12
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT ALL - ( + 44 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - ( + 44 ) / + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - 19 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT + CAST( NULL AS SIGNED ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT + CAST ( NULL AS INTEGER ) + + 4
----
NULL

query II rowsort
SELECT - + 82 AS col2, 0 AS col0
----
-82
0

query II rowsort
SELECT + 25 + + 91 + - 67 + - ( + 58 ) + + 57 + + 59, 69 col0
----
107
69

onlyif mysql # DIV for integer division: 
query II rowsort label-5432
SELECT ALL - 99 + - 26, + 0 DIV + 30 * 46 * + 43 AS col0
----
-125
0

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL - 99 + - 26, + 0 / + 30 * 46 * + 43 AS col0
----
-125
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5433
SELECT 48 + + SUM( ALL + 74 ) - COUNT( * ) + + CAST( + AVG ( ALL 50 ) AS SIGNED ) col2, 16 + + 4
----
171
20

skipif mysql # not compatible
query II rowsort label-5433
SELECT 48 + + SUM ( ALL + 74 ) - COUNT ( * ) + + CAST ( + AVG ( ALL 50 ) AS INTEGER ) col2, 16 + + 4
----
171
20

query I rowsort
SELECT ALL 20 * + 52 AS col2
----
1040

query II rowsort
SELECT DISTINCT ( + - 40 ) + + 93 AS col0, 76 AS col0
----
53
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL - 99 + COUNT( 65 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - 99 + COUNT ( 65 ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL + 36 + - CASE - + 17 WHEN + 61 THEN 2 * - 32 + + COUNT( * ) - + - CASE - 18 WHEN - 32 * - MIN( 60 ) THEN NULL WHEN + 8 THEN + 66 END WHEN 32 / + 7 THEN + - 27 * + CAST( + - 92 AS SIGNED ) ELSE NULL END * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + 36 + - CASE - + 17 WHEN + 61 THEN 2 * - 32 + + COUNT ( * ) - + - CASE - 18 WHEN - 32 * - MIN ( 60 ) THEN NULL WHEN + 8 THEN + 66 END WHEN 32 / + 7 THEN + - 27 * + CAST ( + - 92 AS INTEGER ) ELSE NULL END * + 82
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 45, - 87 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT 57 * + 34, 47 * 82 + + + CASE COUNT( * ) WHEN + + COUNT( * ) THEN - 29 + - MAX( ALL - + 59 ) ELSE NULL END + - + 72 AS col1
----
1938
3812

skipif mysql # not compatible
query II rowsort label-5439
SELECT 57 * + 34, 47 * 82 + + + CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN - 29 + - MAX ( ALL - + 59 ) ELSE NULL END + - + 72 AS col1
----
1938
3812

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT COUNT( * ) * - - 66 + + + 31 + - 46 * + 80 * - 86 AS col1
----
316577

skipif mysql # not compatible
query I rowsort label-5440
SELECT COUNT ( * ) * - - 66 + + + 31 + - 46 * + 80 * - 86 AS col1
----
316577

query I rowsort
SELECT DISTINCT - NULLIF ( 92, - ( - 83 ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT - 55 - - - COUNT( * ) + - 5 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - 55 - - - COUNT ( * ) + - 5 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL - NULLIF ( - 12, - CAST( - ( - + 12 ) AS SIGNED ) + - - ( 94 ) / COUNT( * ) ) - - SUM( + 3 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - NULLIF ( - 12, - CAST ( - ( - + 12 ) AS INTEGER ) + - - ( 94 ) / COUNT ( * ) ) - - SUM ( + 3 ) AS col0
----
15

query I rowsort
SELECT ALL - 37 - - + 64 - - 7 * + - 98 * - - 81 * + 99
----
-5501007

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5445
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / 36 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT ALL 49 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL 49 / - + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT 18 * COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-5447
SELECT 18 * COUNT ( * ) col1
----
18

query I rowsort
SELECT DISTINCT - 72 + + 10 AS col0
----
-62

query I rowsort
SELECT ALL - 39 + - 41 * - 28 AS col2
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - - SUM( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5450
SELECT - - SUM ( DISTINCT 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT DISTINCT + 6 + - + CAST( + 12 AS SIGNED ) * - 11 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + 6 + - + CAST ( + 12 AS INTEGER ) * - 11 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5452
SELECT - MAX( DISTINCT 76 ) AS col1, + CAST( + 37 AS SIGNED ) + + ( + - 18 ) * CAST( - 48 AS SIGNED )
----
-76
901

skipif mysql # not compatible
query II rowsort label-5452
SELECT - MAX ( DISTINCT 76 ) AS col1, + CAST ( + 37 AS INTEGER ) + + ( + - 18 ) * CAST ( - 48 AS INTEGER )
----
-76
901

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT ALL MAX( ALL + 66 ) AS col1, - 40
----
66
-40

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL MAX ( ALL + 66 ) AS col1, - 40
----
66
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5454
SELECT ALL CASE WHEN NOT COUNT( * ) NOT IN ( + NULLIF ( 95, - 35 ) * + 72 - + 25, + 46 * + NULLIF ( + 54, - 80 ) ) THEN NULL WHEN + SUM( - + 67 ) * 5 + - - MIN( ALL + 21 ) IS NOT NULL THEN 54 ELSE NULL END + - COALESCE ( - + 35, + 21 + 26, - + 72 DIV - + 82 * - 68 + + 12 + - 27 + COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL CASE WHEN NOT COUNT ( * ) NOT IN ( + NULLIF ( 95, - 35 ) * + 72 - + 25, + 46 * + NULLIF ( + 54, - 80 ) ) THEN NULL WHEN + SUM ( - + 67 ) * 5 + - - MIN ( ALL + 21 ) IS NOT NULL THEN 54 ELSE NULL END + - COALESCE ( - + 35, + 21 + 26, - + 72 / - + 82 * - 68 + + 12 + - 27 + COUNT ( * ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT ALL CASE - CASE - + 39 WHEN 45 * + ( - + 60 ) THEN - + 84 END WHEN + CAST( NULL AS SIGNED ) + - + 49 THEN - + COUNT( * ) * + + 11 + + CASE + - 52 WHEN - 66 * - 40 THEN NULL WHEN 94 + - - 90 THEN + COUNT( * ) + 25 WHEN - + 53 * + - 59 - 20 THEN + 75 END + 2 END + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL CASE - CASE - + 39 WHEN 45 * + ( - + 60 ) THEN - + 84 END WHEN + CAST ( NULL AS INTEGER ) + - + 49 THEN - + COUNT ( * ) * + + 11 + + CASE + - 52 WHEN - 66 * - 40 THEN NULL WHEN 94 + - - 90 THEN + COUNT ( * ) + 25 WHEN - + 53 * + - 59 - 20 THEN + 75 END + 2 END + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT COUNT( * ) * - - 11 * - 84 * + 98
----
-90552

skipif mysql # not compatible
query I rowsort label-5456
SELECT COUNT ( * ) * - - 11 * - 84 * + 98
----
-90552

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL + 13 * - MAX( DISTINCT - 29 ) + + + 54 AS col2
----
431

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + 13 * - MAX ( DISTINCT - 29 ) + + + 54 AS col2
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT CASE + 47 WHEN - 68 THEN + + 5 + + MAX( - 31 ) * - 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT CASE + 47 WHEN - 68 THEN + + 5 + + MAX ( - 31 ) * - 90 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 + - 52
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - COALESCE ( - 5, + COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5460
SELECT - COALESCE ( - 5, + COUNT ( * ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT - COUNT( * ) AS col1, - 54 AS col0
----
-1
-54

skipif mysql # not compatible
query II rowsort label-5461
SELECT - COUNT ( * ) AS col1, - 54 AS col0
----
-1
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT - ( + 39 ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT - ( + 39 ) / - 80 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT + MAX( ALL + + 74 ) / + 93 + - 37 + - CAST( NULL AS SIGNED ) * - COUNT( * ) * + 34 * + COUNT( * ) * - ( - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT + MAX ( ALL + + 74 ) / + 93 + - 37 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 34 * + COUNT ( * ) * - ( - 35 )
----
NULL

query I rowsort
SELECT DISTINCT 60 * - 51 col1
----
-3060

query I rowsort
SELECT + COALESCE ( - 47, + - 81 )
----
-47

query I rowsort
SELECT ALL + CASE + 89 WHEN + - 75 - + 62 + 59 THEN + 8 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT ALL 0 * - + 21 * + COUNT( * ) AS col2, ( - 89 )
----
0
-89

skipif mysql # not compatible
query II rowsort label-5467
SELECT ALL 0 * - + 21 * + COUNT ( * ) AS col2, ( - 89 )
----
0
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5468
SELECT ALL + COUNT( * ) AS col0, - COALESCE ( - 10, + - 73 + COUNT( * ) ) col2
----
1
10

skipif mysql # not compatible
query II rowsort label-5468
SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 10, + - 73 + COUNT ( * ) ) col2
----
1
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT COALESCE ( - ( MIN( - + 87 ) ), 27 * + + 80 + + 47 + - 38 ), + 96 * + 76 AS col1
----
87
7296

skipif mysql # not compatible
query II rowsort label-5469
SELECT COALESCE ( - ( MIN ( - + 87 ) ), 27 * + + 80 + + 47 + - 38 ), + 96 * + 76 AS col1
----
87
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + COUNT( * ) + + 34
----
35

skipif mysql # not compatible
query I rowsort label-5470
SELECT + COUNT ( * ) + + 34
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-5471
SELECT + 46, 92 * 61 DIV + 23 AS col2
----
46
244

skipif mysql # not compatible
query II rowsort label-5471
SELECT + 46, 92 * 61 / + 23 AS col2
----
46
244

query II rowsort
SELECT ALL + + 33, - 89 * - + 80 + 49 AS col1
----
33
7169

query I rowsort
SELECT ALL + 46 * 87 col1
----
4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL + + 57 * 65 + + CAST( + 10 AS SIGNED ) AS col1
----
3715

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + + 57 * 65 + + CAST ( + 10 AS INTEGER ) AS col1
----
3715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT - + 74 * 91 + + 42 + - CAST( - 2 AS SIGNED ) * 56 AS col2
----
-6580

skipif mysql # not compatible
query I rowsort label-5475
SELECT - + 74 * 91 + + 42 + - CAST ( - 2 AS INTEGER ) * 56 AS col2
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT + + 76 * - 91 + - COUNT( * )
----
-6917

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + + 76 * - 91 + - COUNT ( * )
----
-6917

query II rowsort
SELECT DISTINCT - 30, + 63 AS col1
----
-30
63

query I rowsort
SELECT - 23 + - - 62
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5479
SELECT + - CAST( NULL AS SIGNED ) * - NULLIF ( 16, - 62 * - - MAX( + 36 ) + + 61 + + 10 * - + ( 5 ) + + 46 + COUNT( * ) + + 56 * + + 31 / + 45 + 39 + - COUNT( * ) + + 71 * - 14 ), 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5479
SELECT + - CAST ( NULL AS INTEGER ) * - NULLIF ( 16, - 62 * - - MAX ( + 36 ) + + 61 + + 10 * - + ( 5 ) + + 46 + COUNT ( * ) + + 56 * + + 31 / + 45 + 39 + - COUNT ( * ) + + 71 * - 14 ), 97 AS col1
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - - MAX( ALL - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5480
SELECT - - MAX ( ALL - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL MAX( + - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL MAX ( + - 33 ) AS col0
----
-33

query I rowsort
SELECT - - 47 + - NULLIF ( 37, - 10 ) col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT DISTINCT 32 AS col0, - COUNT( - 25 ) AS col0
----
32
-1

skipif mysql # not compatible
query II rowsort label-5483
SELECT DISTINCT 32 AS col0, - COUNT ( - 25 ) AS col0
----
32
-1

query I rowsort
SELECT ALL - - 21 + 3
----
24

query I rowsort
SELECT + - 98 + - 52
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL + 92 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + 92 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + COUNT( * ) + + NULLIF ( - 90, + 98 - - + 9 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-5487
SELECT + COUNT ( * ) + + NULLIF ( - 90, + 98 - - + 9 ) col2
----
-89

query I rowsort
SELECT - 55 * 79 AS col1
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + CASE + 50 WHEN - 48 * - 61 * - 60 + + MIN( - 44 ) THEN 19 + + 9 * ( + - 99 ) END * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT + CASE + 50 WHEN - 48 * - 61 * - 60 + + MIN ( - 44 ) THEN 19 + + 9 * ( + - 99 ) END * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 84 * + 21 * - 59 * 24 AS col0
----
-2497824

query I rowsort
SELECT ALL 19 - 84
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + NULLIF ( 50, - 84 + - + COUNT( * ) - ( 23 ) ) * 61
----
3050

skipif mysql # not compatible
query I rowsort label-5492
SELECT + NULLIF ( 50, - 84 + - + COUNT ( * ) - ( 23 ) ) * 61
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL + 64 * - - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + 64 * - - COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT 65 * SUM( + 78 ) AS col1
----
5070

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT 65 * SUM ( + 78 ) AS col1
----
5070

query I rowsort
SELECT + ( + - 15 ) + + 99
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT + CAST( - 70 AS SIGNED ) * 95 col2
----
-6650

skipif mysql # not compatible
query I rowsort label-5496
SELECT + CAST ( - 70 AS INTEGER ) * 95 col2
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + 53 + + - ( + - SUM( + 54 ) )
----
107

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 53 + + - ( + - SUM ( + 54 ) )
----
107

query II rowsort
SELECT + ( - 85 ) AS col2, 32 * + 70 AS col0
----
-85
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + CASE 93 WHEN 28 - - 30 THEN - - 97 * - - ( NULLIF ( + COUNT( * ), 85 ) ) / - 81 + + - 0 WHEN ( - - 76 ) * + - 11 * 71 * + COUNT( * ) + - 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT + CASE 93 WHEN 28 - - 30 THEN - - 97 * - - ( NULLIF ( + COUNT ( * ), 85 ) ) / - 81 + + - 0 WHEN ( - - 76 ) * + - 11 * 71 * + COUNT ( * ) + - 41 THEN NULL END
----
NULL

query I rowsort
SELECT 74 * - 31 + 50 * 61 * + 36
----
107506

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + COUNT( * ) * 99 col2
----
99

skipif mysql # not compatible
query I rowsort label-5501
SELECT + COUNT ( * ) * 99 col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5502
SELECT DISTINCT - 47 DIV - + CAST( 94 AS SIGNED ) + - + 97 * + COALESCE ( - 12, CASE COUNT( * ) WHEN + 87 THEN - 83 ELSE NULL END DIV - - COUNT( * ), - 35 ) AS col2, + CAST( - + 65 AS SIGNED ) AS col2
----
1164
-65

skipif mysql # not compatible
query II rowsort label-5502
SELECT DISTINCT - 47 / - + CAST ( 94 AS INTEGER ) + - + 97 * + COALESCE ( - 12, CASE COUNT ( * ) WHEN + 87 THEN - 83 ELSE NULL END / - - COUNT ( * ), - 35 ) AS col2, + CAST ( - + 65 AS INTEGER ) AS col2
----
1164
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL + + CAST( - - 30 AS SIGNED ) col0
----
30

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + + CAST ( - - 30 AS INTEGER ) col0
----
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5504
SELECT DISTINCT + NULLIF ( + + CAST( NULL AS SIGNED ), - 55 ) * 18 + + + AVG ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 55 ) * 18 + + + AVG ( - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 69 * - - 80 + + 30
----
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - + 55 * CAST( - 29 AS SIGNED ) + ( 22 )
----
1617

skipif mysql # not compatible
query I rowsort label-5506
SELECT - + 55 * CAST ( - 29 AS INTEGER ) + ( 22 )
----
1617

query I rowsort
SELECT DISTINCT + 26 * - - 29 + + - 58
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL + 90 * - 16 * + ( + MIN( ALL - CAST( NULL AS SIGNED ) ) ) / - + 24 + - CAST( NULL AS SIGNED ) + NULLIF ( 0, - COUNT( * ) / + + 37 / - 14 - 85 * + COUNT( * ) * - ( + + 62 ) * + - COALESCE ( + MAX( + ( + 68 ) ), - 0 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 90 * - 16 * + ( + MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) / - + 24 + - CAST ( NULL AS INTEGER ) + NULLIF ( 0, - COUNT ( * ) / + + 37 / - 14 - 85 * + COUNT ( * ) * - ( + + 62 ) * + - COALESCE ( + MAX ( + ( + 68 ) ), - 0 ) ) AS col1
----
NULL

query II rowsort
SELECT + 17 * + 95, 62 + 23 + 3 * + 0 col2
----
1615
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - + COUNT( * ) * 9 + CASE COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE 86 * CASE + + ( 87 ) WHEN - + ( + 0 ) THEN - 83 * + NULLIF ( + + 63, 27 ) WHEN - + AVG ( DISTINCT + 56 ) THEN NULL END / + 3 END + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT - + COUNT ( * ) * 9 + CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE 86 * CASE + + ( 87 ) WHEN - + ( + 0 ) THEN - 83 * + NULLIF ( + + 63, 27 ) WHEN - + AVG ( DISTINCT + 56 ) THEN NULL END / + 3 END + 62 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - - 88 ) * - 6
----
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5512
SELECT - 44 DIV 1 AS col2, + COUNT( * ) AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-5512
SELECT - 44 / 1 AS col2, + COUNT ( * ) AS col2
----
-44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT ALL + CAST( + 32 AS SIGNED ) * - 17 * - 6 - 43 AS col1
----
3221

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + CAST ( + 32 AS INTEGER ) * - 17 * - 6 - 43 AS col1
----
3221

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + 47 * COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + 47 * COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT 10 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5515
SELECT 10 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT 66 * 74 * 25, COUNT( * ) AS col1
----
122100
1

skipif mysql # not compatible
query II rowsort label-5516
SELECT 66 * 74 * 25, COUNT ( * ) AS col1
----
122100
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT 26 col0, - COUNT( * )
----
26
-1

skipif mysql # not compatible
query II rowsort label-5517
SELECT 26 col0, - COUNT ( * )
----
26
-1

query I rowsort
SELECT 82 - ( - 0 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL 72 * - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL 72 * - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT 45, - MAX( DISTINCT 44 ) AS col2
----
45
-44

skipif mysql # not compatible
query II rowsort label-5520
SELECT 45, - MAX ( DISTINCT 44 ) AS col2
----
45
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT COUNT( * ) * + COUNT( ALL + 83 ) DIV - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT COUNT ( * ) * + COUNT ( ALL + 83 ) / - 11 AS col1
----
0

query I rowsort
SELECT 82 + + + 39 AS col0
----
121

query II rowsort
SELECT 31, 29 AS col0
----
31
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT MAX( DISTINCT - + NULLIF ( + 41, + ( + + 81 ) ) ) * - 9 AS col1
----
369

skipif mysql # not compatible
query I rowsort label-5524
SELECT MAX ( DISTINCT - + NULLIF ( + 41, + ( + + 81 ) ) ) * - 9 AS col1
----
369

onlyif mysql # DIV for integer division: 
query II rowsort label-5525
SELECT - 6 DIV - 94 + - 22 AS col2, 56
----
-22
56

skipif mysql # not compatible
query II rowsort label-5525
SELECT - 6 / - 94 + - 22 AS col2, 56
----
-22
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL COUNT ( * ) + - 47
----
-46

query I rowsort
SELECT 0 * - + 79 * - 64
----
0

query I rowsort
SELECT - 3 + - - 27 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT + 21 + + 41 + + - COUNT( * ) * - 40 + 12 * + 28 AS col0
----
438

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + 21 + + 41 + + - COUNT ( * ) * - 40 + 12 * + 28 AS col0
----
438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT SUM( 5 ) DIV + 75 + 66
----
66

skipif mysql # not compatible
query I rowsort label-5530
SELECT SUM ( 5 ) / + 75 + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT COUNT( + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5531
SELECT COUNT ( + 2 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 18 + 86 AS col1
----
104

query I rowsort
SELECT ALL - 2 * - 80 col1
----
160

query II rowsort
SELECT 92, + 31 * - + 29 col1
----
92
-899

query I rowsort
SELECT 49 - - 77
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + + MAX( 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5536
SELECT + + MAX ( 35 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL + COUNT( * ) - - CAST( 33 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + COUNT ( * ) - - CAST ( 33 AS INTEGER )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - + CAST( - - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - + CAST ( - - 11 AS INTEGER )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT COUNT( * ) + - COALESCE ( - MAX( DISTINCT - + 75 ), 0 + + COALESCE ( + ( + 58 ), 56 ) + 24 ) * CASE 59 WHEN - COUNT( * ) * + + CAST( NULL AS SIGNED ) + COUNT( * ) THEN 9 * + 50 * + - ( + 68 ) WHEN + 31 * 8 + 60 * - COUNT( 54 ) + + 94 THEN NULL WHEN COALESCE ( MIN( + - 89 ), - MAX( + 77 ) * 31 ) + - 88 THEN NULL END + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT COUNT ( * ) + - COALESCE ( - MAX ( DISTINCT - + 75 ), 0 + + COALESCE ( + ( + 58 ), 56 ) + 24 ) * CASE 59 WHEN - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 9 * + 50 * + - ( + 68 ) WHEN + 31 * 8 + 60 * - COUNT ( 54 ) + + 94 THEN NULL WHEN COALESCE ( MIN ( + - 89 ), - MAX ( + 77 ) * 31 ) + - 88 THEN NULL END + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL - NULLIF ( MIN( - 39 ), 20 + - 61 * - + 75 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - NULLIF ( MIN ( - 39 ), 20 + - 61 * - + 75 ) AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5541
SELECT + ( COUNT( * ) ) * 10 DIV MIN( + 4 ) + 34 DIV - COUNT( * ) + - - COUNT( * ) * 63
----
31

skipif mysql # not compatible
query I rowsort label-5541
SELECT + ( COUNT ( * ) ) * 10 / MIN ( + 4 ) + 34 / - COUNT ( * ) + - - COUNT ( * ) * 63
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT 18 - - 98 * - + COUNT( * ) * + - 22
----
2174

skipif mysql # not compatible
query I rowsort label-5542
SELECT 18 - - 98 * - + COUNT ( * ) * + - 22
----
2174

query I rowsort
SELECT + 69 * + 38 AS col1
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + 71 * + NULLIF ( + NULLIF ( + + 59, - 55 ), + CASE + 75 WHEN 19 - + - 71 THEN NULL ELSE 82 + - 42 END ) + ( COUNT( * ) ) - - COALESCE ( 51, - 7 ) * + 85 * - 75 * COUNT( * )
----
-320935

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 71 * + NULLIF ( + NULLIF ( + + 59, - 55 ), + CASE + 75 WHEN 19 - + - 71 THEN NULL ELSE 82 + - 42 END ) + ( COUNT ( * ) ) - - COALESCE ( 51, - 7 ) * + 85 * - 75 * COUNT ( * )
----
-320935

query I rowsort
SELECT ALL 47 - + + 75 + 62 * - 87 AS col2
----
-5422

query I rowsort
SELECT 76 * + 27 col0
----
2052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5547
SELECT 82 + + ( 53 ) + + 77 * + 0 * - 89 col2, - 44 + - CAST( - - 29 AS SIGNED )
----
135
-73

skipif mysql # not compatible
query II rowsort label-5547
SELECT 82 + + ( 53 ) + + 77 * + 0 * - 89 col2, - 44 + - CAST ( - - 29 AS INTEGER )
----
135
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT 92 + - ( - - COUNT( * ) ) col2
----
91

skipif mysql # not compatible
query I rowsort label-5548
SELECT 92 + - ( - - COUNT ( * ) ) col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT ALL 63, COUNT( * ) * + + 21 * + 92 AS col0
----
63
1932

skipif mysql # not compatible
query II rowsort label-5549
SELECT ALL 63, COUNT ( * ) * + + 21 * + 92 AS col0
----
63
1932

query I rowsort
SELECT 1 + - ( - + 83 ) AS col1
----
84

query II rowsort
SELECT 87, - 11 AS col2
----
87
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT - COUNT( + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-5552
SELECT - COUNT ( + 78 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT 30 AS col2, 96 - 7 + - MAX( + - 73 )
----
30
162

skipif mysql # not compatible
query II rowsort label-5553
SELECT 30 AS col2, 96 - 7 + - MAX ( + - 73 )
----
30
162

query I rowsort
SELECT 91 * 91 AS col2
----
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT SUM( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT SUM ( ALL 25 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT 11 AS col2, 43 * - + MIN( - - CASE + + 46 WHEN - 19 THEN NULL WHEN + ( + + 62 ) + - 20 THEN 84 ELSE + 59 + + 19 END ) col0
----
11
-3354

skipif mysql # not compatible
query II rowsort label-5556
SELECT 11 AS col2, 43 * - + MIN ( - - CASE + + 46 WHEN - 19 THEN NULL WHEN + ( + + 62 ) + - 20 THEN 84 ELSE + 59 + + 19 END ) col0
----
11
-3354

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT COUNT( * ) + 80 AS col1, 88 AS col1
----
81
88

skipif mysql # not compatible
query II rowsort label-5557
SELECT COUNT ( * ) + 80 AS col1, 88 AS col1
----
81
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT - CASE WHEN NOT - 20 <= + MIN( 77 ) + + 92 + - COUNT( * ) * - 97 + + NULLIF ( - 73, 49 ) THEN + 14 / 58 END / + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - CASE WHEN NOT - 20 <= + MIN ( 77 ) + + 92 + - COUNT ( * ) * - 97 + + NULLIF ( - 73, 49 ) THEN + 14 / 58 END / + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 2 + - - CASE - + 35 WHEN - 98 THEN ( + 20 ) * - + 99 - - NULLIF ( + 40, + + 96 + - + 90 ) - 52 END AS col2
----
NULL

query I rowsort
SELECT 16 * - - 19
----
304

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT 23 DIV - 32 * 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT 23 / - 32 * 30 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT COUNT( * ) * - - 54 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) * - - 54 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - MAX( ALL - 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - MAX ( ALL - 54 ) col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT 64 * - + CAST( + 18 AS SIGNED )
----
-1152

skipif mysql # not compatible
query I rowsort label-5564
SELECT 64 * - + CAST ( + 18 AS INTEGER )
----
-1152

query I rowsort
SELECT + ( - - 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - 73 * - COUNT( * ) * + COUNT( * ) * - - MAX( DISTINCT 98 ) AS col1
----
7154

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - 73 * - COUNT ( * ) * + COUNT ( * ) * - - MAX ( DISTINCT 98 ) AS col1
----
7154

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + + COUNT( * ) * COALESCE ( - - 24, - 88 * + + 73 ) + + + COALESCE ( + 95, - COUNT( * ), - 35 + - COUNT( * ) + 90 * 19 * ( - NULLIF ( - COUNT( + ( + 53 ) ), 67 ) ) ) + - COUNT( * ) * + + 62 - - COUNT( * ) + - 74 * 42 * - 5
----
15598

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + + COUNT ( * ) * COALESCE ( - - 24, - 88 * + + 73 ) + + + COALESCE ( + 95, - COUNT ( * ), - 35 + - COUNT ( * ) + 90 * 19 * ( - NULLIF ( - COUNT ( + ( + 53 ) ), 67 ) ) ) + - COUNT ( * ) * + + 62 - - COUNT ( * ) + - 74 * 42 * - 5
----
15598

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL - MAX( - - 46 ), + MAX( 0 ) AS col1
----
-46
0

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL - MAX ( - - 46 ), + MAX ( 0 ) AS col1
----
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT COALESCE ( + 8, - - COUNT( * ) + + 84 ) + + COUNT( * ) + + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5569
SELECT COALESCE ( + 8, - - COUNT ( * ) + + 84 ) + + COUNT ( * ) + + COUNT ( * ) AS col1
----
10

query II rowsort
SELECT ALL - 76 AS col0, + 30 + - 57 * 1 + 85 * + 35
----
-76
2948

query I rowsort
SELECT 64 + 21
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5572
SELECT - COUNT( * ) DIV + 49, 57 AS col1
----
0
57

skipif mysql # not compatible
query II rowsort label-5572
SELECT - COUNT ( * ) / + 49, 57 AS col1
----
0
57

query II rowsort
SELECT ALL + 23 AS col0, + 56 * + 94 AS col0
----
23
5264

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL + MIN( ALL + - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + MIN ( ALL + - 84 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5575
SELECT - 23 * + 1 - - + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 62 * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT - 23 * + 1 - - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 62 * - 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL + CAST( - - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + CAST ( - - 27 AS INTEGER )
----
27

query II rowsort
SELECT + 29 AS col1, 88 AS col1
----
29
88

query I rowsort
SELECT - 92 * 45
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT ALL 32 DIV + NULLIF ( + + 80, 89 * 6 * + 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL 32 / + NULLIF ( + + 80, 89 * 6 * + 49 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5580
SELECT ALL + - COUNT( * ) AS col1, 17 + NULLIF ( - COUNT( * ), - 23 )
----
-1
16

skipif mysql # not compatible
query II rowsort label-5580
SELECT ALL + - COUNT ( * ) AS col1, 17 + NULLIF ( - COUNT ( * ), - 23 )
----
-1
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5581
SELECT DISTINCT + 97 * + + NULLIF ( - + 11, + CAST( NULL AS SIGNED ) - + + 60 ) + - + 18 DIV + 29 AS col1
----
-1067

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + 97 * + + NULLIF ( - + 11, + CAST ( NULL AS INTEGER ) - + + 60 ) + - + 18 / + 29 AS col1
----
-1067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5582
SELECT + MIN( + + 95 ) / + 42 + + 41 + + CAST( NULL AS DECIMAL ) * + ( 38 ) + - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT + MIN ( + + 95 ) / + 42 + + 41 + + CAST ( NULL AS REAL ) * + ( 38 ) + - + 75
----
NULL

query II rowsort
SELECT DISTINCT 43 * - + 81 AS col1, 47 * - + 26 AS col0
----
-3483
-1222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT ALL 60 + ( SUM( DISTINCT - - ( + 19 ) ) ) DIV + 56 * + 27
----
60

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL 60 + ( SUM ( DISTINCT - - ( + 19 ) ) ) / + 56 * + 27
----
60

query II rowsort
SELECT + 98 * + + 28 - - 61 col0, 64
----
2805
64

query I rowsort
SELECT + 30 * + + 27
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT SUM( ALL 34 ) + ( - + COALESCE ( - CASE 11 WHEN - COUNT( * ) * + 15 THEN + CAST( 43 AS SIGNED ) WHEN - NULLIF ( - + 40, - - 92 * - 17 ) + + 15 THEN NULL ELSE + 2 * - 29 + - 52 END, + + 59 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT SUM ( ALL 34 ) + ( - + COALESCE ( - CASE 11 WHEN - COUNT ( * ) * + 15 THEN + CAST ( 43 AS INTEGER ) WHEN - NULLIF ( - + 40, - - 92 * - 17 ) + + 15 THEN NULL ELSE + 2 * - 29 + - 52 END, + + 59 ) ) AS col1
----
-76

query II rowsort
SELECT + 94 * - - 57 AS col2, + 94 AS col1
----
5358
94

query I rowsort
SELECT DISTINCT - 70 * + 7 AS col1
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + 88 - + 20 * - COUNT( * ) * + + 61 * COUNT( * ) * ( - 86 )
----
-104832

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 88 - + 20 * - COUNT ( * ) * + + 61 * COUNT ( * ) * ( - 86 )
----
-104832

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - 64 * 18 * + - COUNT( * ) AS col2
----
1152

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 64 * 18 * + - COUNT ( * ) AS col2
----
1152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5592
SELECT ALL - CAST( NULL AS DECIMAL ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - CAST ( NULL AS REAL ) * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT DISTINCT CASE - 58 WHEN - 39 THEN - 15 ELSE + NULLIF ( + 87, NULLIF ( 61, - + 57 - - COUNT( * ) ) * + 56 ) END
----
87

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT CASE - 58 WHEN - 39 THEN - 15 ELSE + NULLIF ( + 87, NULLIF ( 61, - + 57 - - COUNT ( * ) ) * + 56 ) END
----
87

query I rowsort
SELECT ALL ( - 64 ) + 4 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5595
SELECT - ( CASE - ( COUNT( DISTINCT 51 ) ) WHEN - + COUNT( DISTINCT - + 7 ) + - + 85 THEN + 29 * - COUNT( * ) - + - 1 WHEN + MIN( ALL + 64 ) + + CASE 36 WHEN ( + 8 ) + SUM( ALL - + 94 ) * - - 25 THEN CAST( NULL AS SIGNED ) * + AVG ( 3 ) * - 21 WHEN + ( + MIN( + - 78 ) ) THEN + - ( - ( 21 ) ) * + 91 * + - 47 - 64 END THEN NULL ELSE 5 * + 85 END ) * 87
----
-36975

skipif mysql # not compatible
query I rowsort label-5595
SELECT - ( CASE - ( COUNT ( DISTINCT 51 ) ) WHEN - + COUNT ( DISTINCT - + 7 ) + - + 85 THEN + 29 * - COUNT ( * ) - + - 1 WHEN + MIN ( ALL + 64 ) + + CASE 36 WHEN ( + 8 ) + SUM ( ALL - + 94 ) * - - 25 THEN CAST ( NULL AS INTEGER ) * + AVG ( 3 ) * - 21 WHEN + ( + MIN ( + - 78 ) ) THEN + - ( - ( 21 ) ) * + 91 * + - 47 - 64 END THEN NULL ELSE 5 * + 85 END ) * 87
----
-36975

query I rowsort
SELECT ALL + - 67 * + 82
----
-5494

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT + 51 + - 17 DIV + COALESCE ( + + 14, - 15 + + - COALESCE ( 61, - - 86 * NULLIF ( 1, + - 59 + - 16 * + + 61 ) ), + + 15 * - ( - 33 ) + - + 70 + - 9 )
----
50

skipif mysql # not compatible
query I rowsort label-5597
SELECT + 51 + - 17 / + COALESCE ( + + 14, - 15 + + - COALESCE ( 61, - - 86 * NULLIF ( 1, + - 59 + - 16 * + + 61 ) ), + + 15 * - ( - 33 ) + - + 70 + - 9 )
----
50

query I rowsort
SELECT - 21 - - ( 82 ) * 40 AS col2
----
3259

query I rowsort
SELECT ALL + - 91 col0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5600
SELECT DISTINCT + + ( + - 88 ), 3 * 75 DIV 42 col0
----
-88
5

skipif mysql # not compatible
query II rowsort label-5600
SELECT DISTINCT + + ( + - 88 ), 3 * 75 / 42 col0
----
-88
5

query I rowsort
SELECT - + 6 + - 32 + 24 + - 9
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT DISTINCT + SUM( - 51 ) AS col2, 44 - + - 78 + + 67 + + COUNT( * ) + - 18 + - 83 AS col1
----
-51
89

skipif mysql # not compatible
query II rowsort label-5602
SELECT DISTINCT + SUM ( - 51 ) AS col2, 44 - + - 78 + + 67 + + COUNT ( * ) + - 18 + - 83 AS col1
----
-51
89

query I rowsort
SELECT ALL + 20 * + - 68
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - + NULLIF ( 58, - COUNT( * ) ) * - - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5604
SELECT - + NULLIF ( 58, - COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT 28 * - 59 + 53 AS col2
----
-1599

query I rowsort
SELECT + 51 + + 88 - + - 18 * - 0 AS col0
----
139

query II rowsort
SELECT ALL - + 12 * + 85 col2, - 56 AS col0
----
-1020
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - 90 * - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5608
SELECT - 90 * - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL - 68 * + - NULLIF ( - SUM( 17 ), + 82 ) AS col2
----
-1156

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - 68 * + - NULLIF ( - SUM ( 17 ), + 82 ) AS col2
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - - SUM( 17 ) - + 69 * - 39 AS col2
----
2708

skipif mysql # not compatible
query I rowsort label-5610
SELECT - - SUM ( 17 ) - + 69 * - 39 AS col2
----
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT - + SUM( - - 56 ) * 58 + - + 56
----
-3304

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - + SUM ( - - 56 ) * 58 + - + 56
----
-3304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT + - CAST( NULL AS SIGNED ) * + 92 * - ( - - COUNT( * ) ) - - - 86 - 23 + - + 99 * 81 / 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - CAST ( NULL AS INTEGER ) * + 92 * - ( - - COUNT ( * ) ) - - - 86 - 23 + - + 99 * 81 / 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT 44 * - - 12 * - SUM( 40 ) + + COUNT( * ) - + - 70 * 3 * 57 * - + 64
----
-787199

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT 44 * - - 12 * - SUM ( 40 ) + + COUNT ( * ) - + - 70 * 3 * 57 * - + 64
----
-787199

query I rowsort
SELECT + 48 - + 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + 24 - 2 - + - COUNT( * ) - + + 65 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5615
SELECT + 24 - 2 - + - COUNT ( * ) - + + 65 AS col0
----
-42

query I rowsort
SELECT + 12 + - + 98
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT ALL + 74 DIV - MIN( ALL + 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + 74 / - MIN ( ALL + 88 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT + 88 + - 77 * 90 col2, + COUNT( * )
----
-6842
1

skipif mysql # not compatible
query II rowsort label-5618
SELECT + 88 + - 77 * 90 col2, + COUNT ( * )
----
-6842
1

query I rowsort
SELECT ALL 0 * - ( + 93 ) AS col2
----
0

query II rowsort
SELECT DISTINCT 30 AS col1, 32 + + 70 * 34 * - 40
----
30
-95168

query I rowsort
SELECT + 82 * - 82 AS col0
----
-6724

query II rowsort
SELECT DISTINCT ( 91 ) * + 28 AS col0, - 59 + + 90 AS col0
----
2548
31

query I rowsort
SELECT ALL 47 - - + 83
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - 52 * - COALESCE ( + + 79, - 21 * + 82 * + 30 * - MAX( DISTINCT - - 71 ) - + + ( 72 ) * + 12 )
----
4108

skipif mysql # not compatible
query I rowsort label-5624
SELECT - 52 * - COALESCE ( + + 79, - 21 * + 82 * + 30 * - MAX ( DISTINCT - - 71 ) - + + ( 72 ) * + 12 )
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + COUNT( * ) + + ( - - 26 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5625
SELECT + COUNT ( * ) + + ( - - 26 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - CASE - - 15 WHEN + 67 THEN 75 ELSE + 98 * NULLIF ( 5, - COUNT( * ) * + COALESCE ( 55, + 86 ) ) - - 97 END
----
-587

skipif mysql # not compatible
query I rowsort label-5626
SELECT - CASE - - 15 WHEN + 67 THEN 75 ELSE + 98 * NULLIF ( 5, - COUNT ( * ) * + COALESCE ( 55, + 86 ) ) - - 97 END
----
-587

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + NULLIF ( + 44, + CASE + 80 WHEN - 48 * - 70 THEN - + COUNT( * ) * 60 ELSE 56 END ) + - - 17 + - ( - + 24 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5627
SELECT + NULLIF ( + 44, + CASE + 80 WHEN - 48 * - 70 THEN - + COUNT ( * ) * 60 ELSE 56 END ) + - - 17 + - ( - + 24 ) AS col1
----
85

query II rowsort
SELECT ALL 94 AS col1, + 63 AS col2
----
94
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT - CAST( NULL AS SIGNED ) + + 77 + + + 51 * - 0 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT - CAST ( NULL AS INTEGER ) + + 77 + + + 51 * - 0 + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT ALL - CAST( NULL AS SIGNED ) - + 77 * - 0 AS col2, + 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5630
SELECT ALL - CAST ( NULL AS INTEGER ) - + 77 * - 0 AS col2, + 72
----
NULL
72

query I rowsort
SELECT ALL + - 65 * 89 + + - 23 + 20
----
-5788

query I rowsort
SELECT ALL + 24 * 65
----
1560

query I rowsort
SELECT - 81 + - 5
----
-86

query I rowsort
SELECT ALL 69 * + 0 + - 8 + 84 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT 93 * COUNT( * ) + + 52 * - 82
----
-4171

skipif mysql # not compatible
query I rowsort label-5635
SELECT 93 * COUNT ( * ) + + 52 * - 82
----
-4171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT + COALESCE ( 55, 83, CAST( NULL AS SIGNED ) * - - 56, + + 27 ) + + 91 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-5636
SELECT + COALESCE ( 55, 83, CAST ( NULL AS INTEGER ) * - - 56, + + 27 ) + + 91 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - MAX( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5637
SELECT - MAX ( + 34 )
----
-34

query I rowsort
SELECT + 30 + - - 10 * + 55 AS col0
----
580

query I rowsort
SELECT ALL + + 47 + + COALESCE ( - 38, + + 15, 17 ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - COUNT( * ) * + - 26 + 80
----
106

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - COUNT ( * ) * + - 26 + 80
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + - CASE + 7 WHEN - 99 THEN + + 27 * 80 + + 90 WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + - CASE + 7 WHEN - 99 THEN + + 27 * 80 + + 90 WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL + + 72 + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + + 72 + - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT 95 + + + 29 + - 66 * - - COUNT( * ) * - 89
----
5998

skipif mysql # not compatible
query I rowsort label-5643
SELECT 95 + + + 29 + - 66 * - - COUNT ( * ) * - 89
----
5998

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT ALL + COUNT( * ) + + + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + COUNT ( * ) + + + 38 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL - MIN( ALL - 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - MIN ( ALL - 24 ) AS col2
----
24

query I rowsort
SELECT ALL + 88 * + + 3
----
264

query I rowsort
SELECT 91 * - 46
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT + MAX( + 59 ) * 27 AS col0
----
1593

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + MAX ( + 59 ) * 27 AS col0
----
1593

query I rowsort
SELECT ALL - 15 + + 72 * + + 91 AS col0
----
6537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5650
SELECT DISTINCT 42 - + + ( + COUNT( * ) ) DIV + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT 42 - + + ( + COUNT ( * ) ) / + COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT + 70 * + 34
----
2380

query I rowsort
SELECT COALESCE ( + 93, + 74 ) * - + 1 AS col1
----
-93

query I rowsort
SELECT 16 - + 29 col1
----
-13

query I rowsort
SELECT DISTINCT 34 * 43
----
1462

query I rowsort
SELECT 93 * ( + 79 )
----
7347

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL - 75 DIV COALESCE ( + 83, - 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - 75 / COALESCE ( + 83, - 67 ) AS col2
----
0

query I rowsort
SELECT - 56 - - 85 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5658
SELECT CASE CASE + + ( - 37 ) WHEN + - 36 * + 57 THEN + 1 WHEN - COUNT( * ) THEN + MAX( - - 78 ) END WHEN - 76 + + 87 THEN - - ( - 45 ) + - - 64 + 55 * + 59 * + - 94 * - 18 WHEN + 70 * 43 * - NULLIF ( - COUNT( * ), + MIN( ALL CAST( NULL AS SIGNED ) ) / 92 + + 90 + - 98 ) / - 70 * - - ( + 75 ) - 5 - 28 THEN - 59 ELSE NULL END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT CASE CASE + + ( - 37 ) WHEN + - 36 * + 57 THEN + 1 WHEN - COUNT ( * ) THEN + MAX ( - - 78 ) END WHEN - 76 + + 87 THEN - - ( - 45 ) + - - 64 + 55 * + 59 * + - 94 * - 18 WHEN + 70 * 43 * - NULLIF ( - COUNT ( * ), + MIN ( ALL CAST ( NULL AS INTEGER ) ) / 92 + + 90 + - 98 ) / - 70 * - - ( + 75 ) - 5 - 28 THEN - 59 ELSE NULL END * 54
----
NULL

query I rowsort
SELECT DISTINCT - 42 * + 51
----
-2142

query I rowsort
SELECT + 79 * - - NULLIF ( 53, 56 ) AS col1
----
4187

query I rowsort
SELECT + 22 + - + 7 AS col1
----
15

query I rowsort
SELECT ALL 98 + + 11
----
109

query I rowsort
SELECT ALL + 68 + 38
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT DISTINCT + 98 + - 61 * - + 59 * - + 62 * - MIN( ALL + + CAST( 10 AS SIGNED ) ) AS col1
----
2231478

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + 98 + - 61 * - + 59 * - + 62 * - MIN ( ALL + + CAST ( 10 AS INTEGER ) ) AS col1
----
2231478

query I rowsort
SELECT - 86 + - - 45 * - NULLIF ( 33, - 18 ) * + - 29 AS col0
----
42979

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + + 75 * - COUNT( * ) + 71 + - 82
----
-86

skipif mysql # not compatible
query I rowsort label-5666
SELECT + + 75 * - COUNT ( * ) + 71 + - 82
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT + NULLIF ( COUNT( * ), + ( + - 71 ) ), 40 AS col0
----
1
40

skipif mysql # not compatible
query II rowsort label-5667
SELECT + NULLIF ( COUNT ( * ), + ( + - 71 ) ), 40 AS col0
----
1
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5668
SELECT CAST( + - 29 AS SIGNED ) * + COUNT( * ) DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT CAST ( + - 29 AS INTEGER ) * + COUNT ( * ) / + 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5669
SELECT 20 * COUNT( DISTINCT + 79 ) AS col1, + 4 + - COALESCE ( - 28, + + 60, - 93 ) AS col0, + + 56 AS col2
----
20
32
56

skipif mysql # not compatible
query III rowsort label-5669
SELECT 20 * COUNT ( DISTINCT + 79 ) AS col1, + 4 + - COALESCE ( - 28, + + 60, - 93 ) AS col0, + + 56 AS col2
----
20
32
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL 13 * + - NULLIF ( - + 13, + MIN( + - CAST( NULL AS SIGNED ) ) )
----
169

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL 13 * + - NULLIF ( - + 13, + MIN ( + - CAST ( NULL AS INTEGER ) ) )
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT 27 DIV 17 col0
----
1

skipif mysql # not compatible
query I rowsort label-5671
SELECT 27 / 17 col0
----
1

query I rowsort
SELECT ALL - 47 + - - 49
----
2

query I rowsort
SELECT DISTINCT 42 * - 93 AS col2
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT NULLIF ( 33, - - 34 * + - 81 * ( + 99 ) / - + CAST( NULL AS SIGNED ) - 14 ) - + 42 - - + CAST( + + 24 AS SIGNED ) + - - COUNT( * ) * + 12 * - + 32
----
-369

skipif mysql # not compatible
query I rowsort label-5674
SELECT NULLIF ( 33, - - 34 * + - 81 * ( + 99 ) / - + CAST ( NULL AS INTEGER ) - 14 ) - + 42 - - + CAST ( + + 24 AS INTEGER ) + - - COUNT ( * ) * + 12 * - + 32
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT 10 * + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-5675
SELECT 10 * + + COUNT ( * )
----
10

query I rowsort
SELECT ALL 77 * - + 78 * 80
----
-480480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5677
SELECT 84 * COUNT( * ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT 84 * COUNT ( * ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT - 11 DIV + - NULLIF ( 85, 20 )
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - 11 / + - NULLIF ( 85, 20 )
----
0

query I rowsort
SELECT 0 * - 51 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT 42 DIV - 7
----
-6

skipif mysql # not compatible
query I rowsort label-5680
SELECT 42 / - 7
----
-6

query I rowsort
SELECT - 85 * - 72 + + - 41
----
6079

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT 52 - - COUNT( * ) + - 36
----
17

skipif mysql # not compatible
query I rowsort label-5682
SELECT 52 - - COUNT ( * ) + - 36
----
17

query I rowsort
SELECT 26 + + 5
----
31

query I rowsort
SELECT 35 * + + 86 col1
----
3010

query II rowsort
SELECT ALL + 21 * 78 * + 59, 72 AS col0
----
96642
72

query I rowsort
SELECT DISTINCT + 12 * + + 80
----
960

query I rowsort
SELECT DISTINCT + 40 * - 1 AS col2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5688
SELECT - - COALESCE ( - ( - 23 ), - 21 - - NULLIF ( + 65, CAST( - + 86 AS DECIMAL ) ) ) * + - 98
----
-2254

skipif mysql # not compatible
query I rowsort label-5688
SELECT - - COALESCE ( - ( - 23 ), - 21 - - NULLIF ( + 65, CAST ( - + 86 AS REAL ) ) ) * + - 98
----
-2254

query I rowsort
SELECT - - 43 + - + 69 col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5690
SELECT - CAST( - COUNT( + 86 ) AS SIGNED ) AS col2, + 38 * + - 8 + 10 + - 20
----
1
-314

skipif mysql # not compatible
query II rowsort label-5690
SELECT - CAST ( - COUNT ( + 86 ) AS INTEGER ) AS col2, + 38 * + - 8 + 10 + - 20
----
1
-314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL - + COUNT( * ) + - 72 + - MIN( 92 ) + + + 87 + - + 71 * - 70 * CAST( NULL AS SIGNED ) * 16 * 1 * - 44 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - + COUNT ( * ) + - 72 + - MIN ( 92 ) + + + 87 + - + 71 * - 70 * CAST ( NULL AS INTEGER ) * 16 * 1 * - 44 * 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT - 29 / 19 * + 87 * 91 + - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 94 + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT - 29 / 19 * + 87 * 91 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 94 + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT - COUNT( * ) + CASE + + 15 WHEN 81 * + 16 + + ( + MIN( ALL + + 37 ) ) THEN + 85 WHEN + 72 THEN NULL WHEN + 87 * - - 22 THEN NULL ELSE - + 75 * - + 51 - COUNT( * ) * ( - + 37 ) + - 55 END AS col0
----
3806

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - COUNT ( * ) + CASE + + 15 WHEN 81 * + 16 + + ( + MIN ( ALL + + 37 ) ) THEN + 85 WHEN + 72 THEN NULL WHEN + 87 * - - 22 THEN NULL ELSE - + 75 * - + 51 - COUNT ( * ) * ( - + 37 ) + - 55 END AS col0
----
3806

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5694
SELECT ALL 87 + + + SUM( + 71 ), - 5 DIV - MAX( - 76 ) * + 40 * + 54 DIV - + COUNT( * ) col2
----
158
0

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL 87 + + + SUM ( + 71 ), - 5 / - MAX ( - 76 ) * + 40 * + 54 / - + COUNT ( * ) col2
----
158
0

query I rowsort
SELECT + - 0 + NULLIF ( - 14, - 34 ) + - 86 * - + 81
----
6952

query I rowsort
SELECT + 83 * 16 AS col1
----
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - NULLIF ( 48, + COUNT( * ) ) + - 72
----
-120

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - NULLIF ( 48, + COUNT ( * ) ) + - 72
----
-120

query I rowsort
SELECT ALL 76 * CASE - + 94 WHEN + 42 THEN 24 + + 93 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5699
SELECT + 92 * 68 * + 15 - + COUNT( * ) + - 18 DIV - 82
----
93839

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 92 * 68 * + 15 - + COUNT ( * ) + - 18 / - 82
----
93839

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT + COUNT( * ) AS col0, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-5700
SELECT + COUNT ( * ) AS col0, 58
----
1
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5701
SELECT DISTINCT - 5 * - 54 - CASE - 77 WHEN - + 22 THEN NULL ELSE CAST( NULL AS DECIMAL ) / + + 32 + + COUNT( * ) + - - 40 END + + COUNT( * ) * + - COUNT( * ) / - - COUNT( * ) AS col1, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5701
SELECT DISTINCT - 5 * - 54 - CASE - 77 WHEN - + 22 THEN NULL ELSE CAST ( NULL AS REAL ) / + + 32 + + COUNT ( * ) + - - 40 END + + COUNT ( * ) * + - COUNT ( * ) / - - COUNT ( * ) AS col1, + 45
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + 89 + + - COUNT( * ) * - 41 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 89 + + - COUNT ( * ) * - 41 AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT ALL + 28 * 75 / - - 36 - 8 * - 44 * - CASE + COUNT( + ( - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) WHEN - 14 THEN COUNT( DISTINCT + 63 ) * 87 + - + 17 + - 74 * + 99 WHEN - - 12 - - 89 THEN 93 WHEN + 49 THEN - - CASE + - CASE + 29 WHEN + - 87 THEN + 73 WHEN - MAX( + 72 ) THEN - 96 * + 47 * + - 62 + 25 + + - ( + COALESCE ( + - COUNT( * ), - 35 ) ) + + 41 END WHEN - 80 THEN - COUNT( * ) WHEN - 5 THEN + 13 ELSE NULL END * 99 ELSE ( - ( CAST( NULL AS SIGNED ) ) ) * + ( 74 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + 28 * 75 / - - 36 - 8 * - 44 * - CASE + COUNT ( + ( - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) WHEN - 14 THEN COUNT ( DISTINCT + 63 ) * 87 + - + 17 + - 74 * + 99 WHEN - - 12 - - 89 THEN 93 WHEN + 49 THEN - - CASE + - CASE + 29 WHEN + - 87 THEN + 73 WHEN - MAX ( + 72 ) THEN - 96 * + 47 * + - 62 + 25 + + - ( + COALESCE ( + - COUNT ( * ), - 35 ) ) + + 41 END WHEN - 80 THEN - COUNT ( * ) WHEN - 5 THEN + 13 ELSE NULL END * 99 ELSE ( - ( CAST ( NULL AS INTEGER ) ) ) * + ( 74 ) END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 60 * 73
----
4380

query I rowsort
SELECT 88 * + 79 + 13
----
6965

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT CASE + 46 WHEN 52 * + COUNT( * ) + - - 88 THEN - COUNT( * ) + - MIN( - 85 ) ELSE - - 70 END AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5706
SELECT CASE + 46 WHEN 52 * + COUNT ( * ) + - - 88 THEN - COUNT ( * ) + - MIN ( - 85 ) ELSE - - 70 END AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT - 19 * - 23 + - COALESCE ( - 53, - 68 * COALESCE ( 85, + - 86, + 65, - COUNT( 72 ) ), - 23 * 85, ( - ( SUM( ALL - - 41 ) ) ) ) * - MIN( ALL - - 89 ) AS col1
----
-4280

skipif mysql # not compatible
query I rowsort label-5707
SELECT - 19 * - 23 + - COALESCE ( - 53, - 68 * COALESCE ( 85, + - 86, + 65, - COUNT ( 72 ) ), - 23 * 85, ( - ( SUM ( ALL - - 41 ) ) ) ) * - MIN ( ALL - - 89 ) AS col1
----
-4280

query I rowsort
SELECT + 18 * + 22 col0
----
396

query I rowsort
SELECT 52 * 25 + - 16 AS col2
----
1284

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - COALESCE ( COUNT( * ), - 95, - - COALESCE ( 7, 13 ) * + - 65 * + COUNT( * ) ) + + 36 + - 8
----
27

skipif mysql # not compatible
query I rowsort label-5710
SELECT - COALESCE ( COUNT ( * ), - 95, - - COALESCE ( 7, 13 ) * + - 65 * + COUNT ( * ) ) + + 36 + - 8
----
27

query I rowsort
SELECT ALL 88 * 33
----
2904

query I rowsort
SELECT DISTINCT + COALESCE ( 34, + 26 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT COUNT( DISTINCT - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-5713
SELECT COUNT ( DISTINCT - 21 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5714
SELECT ALL - 62 DIV - - 86, 62 AS col2
----
0
62

skipif mysql # not compatible
query II rowsort label-5714
SELECT ALL - 62 / - - 86, 62 AS col2
----
0
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT - 52 * COALESCE ( - - 64, - 32 + - 91 * - COUNT( * ) + - + CAST( + + COUNT( * ) AS SIGNED ) * - 83, - 47 ) AS col2
----
-3328

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 52 * COALESCE ( - - 64, - 32 + - 91 * - COUNT ( * ) + - + CAST ( + + COUNT ( * ) AS INTEGER ) * - 83, - 47 ) AS col2
----
-3328

query I rowsort
SELECT + + 78 * - + 87 * 19 AS col2
----
-128934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL + 92 + CAST( CASE - 95 WHEN + 16 - - COUNT( * ) THEN - + 12 + + 36 * + 61 / COALESCE ( - AVG ( - 87 ), - - 15 ) ELSE - 60 END AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + 92 + CAST ( CASE - 95 WHEN + 16 - - COUNT ( * ) THEN - + 12 + + 36 * + 61 / COALESCE ( - AVG ( - 87 ), - - 15 ) ELSE - 60 END AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT + NULLIF ( + 14, + + 41 + - + 51 * COUNT( * ) + + COUNT( * ) ) * - 50 + + 42 + MAX( + 58 ) AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-5718
SELECT + NULLIF ( + 14, + + 41 + - + 51 * COUNT ( * ) + + COUNT ( * ) ) * - 50 + + 42 + MAX ( + 58 ) AS col2
----
-600

query I rowsort
SELECT ALL - 1 + + 3
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5720
SELECT - COUNT( * ) AS col1, - COALESCE ( - SUM( 12 ), 33 DIV + 6 DIV ( - 97 ) DIV + 83 ) * + 15
----
-1
180

skipif mysql # not compatible
query II rowsort label-5720
SELECT - COUNT ( * ) AS col1, - COALESCE ( - SUM ( 12 ), 33 / + 6 / ( - 97 ) / + 83 ) * + 15
----
-1
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL 1 + + 81 - + NULLIF ( + 63, - + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + + - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL 1 + + 81 - + NULLIF ( + 63, - + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + + - COUNT ( * ) AS col0
----
18

query II rowsort
SELECT ALL - 12 AS col2, + 33 AS col0
----
-12
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - - COUNT( * ) - + 82 + + COUNT( * ) * 67 * - 21 * + 48 + 27 * - - 7
----
-67428

skipif mysql # not compatible
query I rowsort label-5723
SELECT - - COUNT ( * ) - + 82 + + COUNT ( * ) * 67 * - 21 * + 48 + 27 * - - 7
----
-67428

query I rowsort
SELECT ALL - 40 * - COALESCE ( + 43, - + 82 * + - NULLIF ( 97, - 80 ) * + 50, - 98 ) + - 25 col2
----
1695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT - 21 + - - CAST( NULL AS SIGNED ) / - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT - 21 + - - CAST ( NULL AS INTEGER ) / - 83
----
NULL

query I rowsort
SELECT - 34 + - 61 + - - 40 * - 60 AS col1
----
-2495

query II rowsort
SELECT - 39, - 49 col2
----
-39
-49

query I rowsort
SELECT DISTINCT + - ( 52 ) - + 26
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT ALL - - 86 DIV COUNT( * ) * - COALESCE ( 41, 44 )
----
-3526

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - - 86 / COUNT ( * ) * - COALESCE ( 41, 44 )
----
-3526

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5730
SELECT DISTINCT + ( 16 ), COUNT( * ) + - COUNT( * ) DIV + + 27 col2
----
16
1

skipif mysql # not compatible
query II rowsort label-5730
SELECT DISTINCT + ( 16 ), COUNT ( * ) + - COUNT ( * ) / + + 27 col2
----
16
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - 66 * - + COALESCE ( 1, - 51 * - - 40 + - 15 + - 53 ) * - 92 / - 30 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT - 66 * - + COALESCE ( 1, - 51 * - - 40 + - 15 + - 53 ) * - 92 / - 30 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT + ( + COUNT( * ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL - MAX( DISTINCT + - 90 ) * + 58 col2
----
5220

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - MAX ( DISTINCT + - 90 ) * + 58 col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT 20 * + 15 + + + COUNT( * )
----
301

skipif mysql # not compatible
query I rowsort label-5734
SELECT 20 * + 15 + + + COUNT ( * )
----
301

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT - 40 DIV 73 DIV 63 DIV + + 39 + 4
----
4

skipif mysql # not compatible
query I rowsort label-5735
SELECT - 40 / 73 / 63 / + + 39 + 4
----
4

query II rowsort
SELECT + ( - - 34 ) AS col2, - 26
----
34
-26

query I rowsort
SELECT + 94 * - NULLIF ( 72, 35 )
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT - 98 ) * + 10 AS col1
----
-980

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT - 98 ) * + 10 AS col1
----
-980

query I rowsort
SELECT 45 * + - 47 AS col0
----
-2115

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL 70 + - 65 DIV 21
----
67

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 70 + - 65 / 21
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT COUNT( + 84 ) * - 90 + - + 0
----
-90

skipif mysql # not compatible
query I rowsort label-5741
SELECT COUNT ( + 84 ) * - 90 + - + 0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT ALL - COUNT( + 38 ) AS col0, ( 31 ) - - 52
----
-1
83

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL - COUNT ( + 38 ) AS col0, ( 31 ) - - 52
----
-1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT COUNT( * ) + - 92 col2
----
-91

skipif mysql # not compatible
query I rowsort label-5743
SELECT COUNT ( * ) + - 92 col2
----
-91

query I rowsort
SELECT DISTINCT 75 + 52 AS col0
----
127

query I rowsort
SELECT ALL 34 + - 42 AS col2
----
-8

query I rowsort
SELECT 41 + 92 AS col1
----
133

query I rowsort
SELECT + 58 - - ( - ( - + NULLIF ( - - 54, - + 58 * - 84 ) ) ) + - 30
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5748
SELECT 16 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT 16 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 49 * ( + 97 ) + 87 + 31 * + 77
----
7227

query I rowsort
SELECT DISTINCT 51 + 34
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5751
SELECT DISTINCT 90 + 92 AS col2, - CAST( NULL AS SIGNED ) * CASE + 43 WHEN 60 * 75 THEN - MIN( DISTINCT + 16 ) WHEN - CASE - - 56 WHEN + - 65 * + SUM( + 1 ) + + 69 THEN NULL WHEN - 42 * 68 + + + ( - - NULLIF ( + 64, 20 * + ( + MIN( 41 ) ) + - 7 ) ) THEN ( 17 ) END THEN NULL ELSE NULL END + - + 1 + - + ( - COALESCE ( + 82, + + ( - COUNT( ALL 18 ) ) ) ) / CASE - COUNT( * ) WHEN + 88 THEN - 99 ELSE NULL END col2
----
182
NULL

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT 90 + 92 AS col2, - CAST ( NULL AS INTEGER ) * CASE + 43 WHEN 60 * 75 THEN - MIN ( DISTINCT + 16 ) WHEN - CASE - - 56 WHEN + - 65 * + SUM ( + 1 ) + + 69 THEN NULL WHEN - 42 * 68 + + + ( - - NULLIF ( + 64, 20 * + ( + MIN ( 41 ) ) + - 7 ) ) THEN ( 17 ) END THEN NULL ELSE NULL END + - + 1 + - + ( - COALESCE ( + 82, + + ( - COUNT ( ALL 18 ) ) ) ) / CASE - COUNT ( * ) WHEN + 88 THEN - 99 ELSE NULL END col2
----
182
NULL

query I rowsort
SELECT ALL + + COALESCE ( 90, 97, - - 76 * - 11 ) + 49 AS col0
----
139

query I rowsort
SELECT 85 + 20
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT - 5 DIV 57 + 94 + + 54
----
148

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 5 / 57 + 94 + + 54
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + 14 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5755
SELECT + 14 + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT 65 * 22 * CASE - 55 WHEN + 69 * - + 32 THEN - ( 30 ) WHEN - - 96 + 20 * 2 / - CASE 8 WHEN + 82 THEN NULL WHEN + COALESCE ( + 45, - ( - 35 ) ) THEN NULL WHEN + 50 * - - MIN( ALL + + 8 ) + + 46 THEN 69 + - ( - + 71 ) * + + 28 WHEN 77 THEN NULL END + 97 THEN 12 + + COALESCE ( 3, - COUNT( * ) ) ELSE NULL END AS col1, 14 + + 78 + - 41 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5756
SELECT 65 * 22 * CASE - 55 WHEN + 69 * - + 32 THEN - ( 30 ) WHEN - - 96 + 20 * 2 / - CASE 8 WHEN + 82 THEN NULL WHEN + COALESCE ( + 45, - ( - 35 ) ) THEN NULL WHEN + 50 * - - MIN ( ALL + + 8 ) + + 46 THEN 69 + - ( - + 71 ) * + + 28 WHEN 77 THEN NULL END + 97 THEN 12 + + COALESCE ( 3, - COUNT ( * ) ) ELSE NULL END AS col1, 14 + + 78 + - 41 AS col1
----
NULL
51

query II rowsort
SELECT + 88 + 66, - 7 AS col2
----
154
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT ALL MIN( ALL 12 ) AS col0, - 48 * 87 * + 62
----
12
-258912

skipif mysql # not compatible
query II rowsort label-5758
SELECT ALL MIN ( ALL 12 ) AS col0, - 48 * 87 * + 62
----
12
-258912

query I rowsort
SELECT ALL + NULLIF ( 70, 3 )
----
70

query I rowsort
SELECT DISTINCT 20 - + 7
----
13

query I rowsort
SELECT ALL - ( 3 ) * + 87 * 91
----
-23751

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT 17 + - ( - 37 ) + 99 DIV + 9 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5762
SELECT 17 + - ( - 37 ) + 99 / + 9 AS col2
----
65

query I rowsort
SELECT DISTINCT - 15 - - 14
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT - 43 * + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - 43 * + + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT NULLIF ( 61, - COUNT( * ) * - COALESCE ( + + 71, + + MAX( DISTINCT - 53 ) + 8 ) ) * - 41
----
-2501

skipif mysql # not compatible
query I rowsort label-5765
SELECT NULLIF ( 61, - COUNT ( * ) * - COALESCE ( + + 71, + + MAX ( DISTINCT - 53 ) + 8 ) ) * - 41
----
-2501

query I rowsort
SELECT 36 * - 8 AS col1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT 52 + - ( NULLIF ( 65, - 70 + 40 * - + COUNT( * ) / - + 74 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5767
SELECT 52 + - ( NULLIF ( 65, - 70 + 40 * - + COUNT ( * ) / - + 74 ) )
----
-13

query I rowsort
SELECT ALL - CASE - - 21 WHEN + 42 THEN 25 * - 34 WHEN 22 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT 26 * + 76 * - CAST( + COUNT( * ) AS SIGNED ) * - - 31
----
-61256

skipif mysql # not compatible
query I rowsort label-5769
SELECT 26 * + 76 * - CAST ( + COUNT ( * ) AS INTEGER ) * - - 31
----
-61256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5770
SELECT DISTINCT + 80 DIV MAX( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + 80 / MAX ( + 84 )
----
0

query I rowsort
SELECT ALL - 26 + + 8 col1
----
-18

query II rowsort
SELECT ALL + 62 + - 64 + + 97 AS col1, 50
----
95
50

query I rowsort
SELECT 51 + + 37
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT 71 * - + 90 - 15 + - 13 * + 71 + + 88 * + - CAST( NULL AS SIGNED ) * - 3 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT 71 * - + 90 - 15 + - 13 * + 71 + + 88 * + - CAST ( NULL AS INTEGER ) * - 3 * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT DISTINCT + 81 + + + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT + 81 + + + COUNT ( * ) AS col1
----
82

query I rowsort
SELECT ALL + 63 + 92 * + - NULLIF ( - 42, 42 ) - + - 66 AS col2
----
3993

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + MAX( 2 ) * + + 86 * + 49 - + - 48 + - 10 + - 94 * + 19 * - CASE - COUNT( * ) WHEN - COUNT( * ) THEN 71 WHEN 57 THEN NULL ELSE NULL END
----
135272

skipif mysql # not compatible
query I rowsort label-5777
SELECT + MAX ( 2 ) * + + 86 * + 49 - + - 48 + - 10 + - 94 * + 19 * - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 71 WHEN 57 THEN NULL ELSE NULL END
----
135272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT 86 + + CAST( - 23 AS SIGNED ) + + 65 - - - 69 * + 56 AS col1
----
-3736

skipif mysql # not compatible
query I rowsort label-5778
SELECT 86 + + CAST ( - 23 AS INTEGER ) + + 65 - - - 69 * + 56 AS col1
----
-3736

query I rowsort
SELECT ALL - - 61 * 58
----
3538

query II rowsort
SELECT + 43, 68 AS col1
----
43
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + MAX( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5781
SELECT + MAX ( - 50 )
----
-50

query I rowsort
SELECT 62 * 86 + + ( + 16 ) AS col1
----
5348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5783
SELECT DISTINCT - ( + SUM( DISTINCT - 71 ) ), COALESCE ( - + MAX( DISTINCT + 12 ), + 53 * 90 ) * + + MAX( - 93 ) + - 67 + + CAST( + + NULLIF ( - - NULLIF ( - - 51, 7 ), + - 56 ) AS SIGNED ) - 45 col1
----
71
1055

skipif mysql # not compatible
query II rowsort label-5783
SELECT DISTINCT - ( + SUM ( DISTINCT - 71 ) ), COALESCE ( - + MAX ( DISTINCT + 12 ), + 53 * 90 ) * + + MAX ( - 93 ) + - 67 + + CAST ( + + NULLIF ( - - NULLIF ( - - 51, 7 ), + - 56 ) AS INTEGER ) - 45 col1
----
71
1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT 41 * - - ( CASE - + 57 WHEN + + COUNT( * ) THEN + + 78 + + 11 WHEN 82 THEN 52 + + 38 ELSE - 17 END ) + + ( 18 ) - + AVG ( DISTINCT - - 50 ) + + - 32 - - CAST( NULL AS SIGNED ) * + 52 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT 41 * - - ( CASE - + 57 WHEN + + COUNT ( * ) THEN + + 78 + + 11 WHEN 82 THEN 52 + + 38 ELSE - 17 END ) + + ( 18 ) - + AVG ( DISTINCT - - 50 ) + + - 32 - - CAST ( NULL AS INTEGER ) * + 52 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT + 45 * + 85 - 70 col2, - COUNT( * )
----
3755
-1

skipif mysql # not compatible
query II rowsort label-5785
SELECT + 45 * + 85 - 70 col2, - COUNT ( * )
----
3755
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT + 72 DIV - + COUNT( * ) + 95
----
23

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 72 / - + COUNT ( * ) + 95
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - 57 * - + COUNT( * ) + - 63 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - 57 * - + COUNT ( * ) + - 63 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - COUNT( * ) * + 20 + + 25
----
5

skipif mysql # not compatible
query I rowsort label-5788
SELECT - COUNT ( * ) * + 20 + + 25
----
5

query II rowsort
SELECT ALL - 13 AS col0, 75 AS col0
----
-13
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5790
SELECT ALL 8 * - + 15 + - + CASE + ( + 62 ) WHEN ( COUNT( * ) ) THEN CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 8 * - + 15 + - + CASE + ( + 62 ) WHEN ( COUNT ( * ) ) THEN CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT ALL 90 AS col0, COUNT( * ) + - 22
----
90
-21

skipif mysql # not compatible
query II rowsort label-5791
SELECT ALL 90 AS col0, COUNT ( * ) + - 22
----
90
-21

query I rowsort
SELECT 2 - - 57 AS col0
----
59

query II rowsort
SELECT ALL - 90 AS col0, 3 + + 49 + 18 AS col1
----
-90
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT CAST( NULL AS SIGNED ) + 70 + + - 96 - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT CAST ( NULL AS INTEGER ) + 70 + + - 96 - - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ( 29 ) DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT ( 29 ) / - 79 AS col0
----
0

query I rowsort
SELECT 45 * + 32 AS col2
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5797
SELECT 20 + CAST( NULL AS SIGNED ) * 20 + ( + COUNT( DISTINCT - - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT 20 + CAST ( NULL AS INTEGER ) * 20 + ( + COUNT ( DISTINCT - - 76 ) )
----
NULL

query II rowsort
SELECT 55 - + 6, 52 + - 29 * + - 95 AS col2
----
49
2807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT ALL 1 * + 35 * CAST( + + CAST( - 38 AS SIGNED ) AS SIGNED )
----
-1330

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL 1 * + 35 * CAST ( + + CAST ( - 38 AS INTEGER ) AS INTEGER )
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL 0 * - 8 * COUNT( * ) + - ( COUNT( * ) ) * + + SUM( ALL + - 0 ) - - 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL 0 * - 8 * COUNT ( * ) + - ( COUNT ( * ) ) * + + SUM ( ALL + - 0 ) - - 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL + NULLIF ( + 78, 30 * SUM( DISTINCT - - 1 ) )
----
78

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + NULLIF ( + 78, 30 * SUM ( DISTINCT - - 1 ) )
----
78

query I rowsort
SELECT + 64 + ( - 27 ) * 73 AS col2
----
-1907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT NULLIF ( - CASE 21 WHEN 34 * - - 25 / - CAST( NULL AS SIGNED ) THEN ( + 53 ) + + - MAX( - 55 ) + - 99 + - 39 + + 44 - + + CAST( NULL AS SIGNED ) * - 85 * - - 11 WHEN + MAX( ALL - 75 ) + + 0 THEN NULL ELSE NULL END, - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT NULLIF ( - CASE 21 WHEN 34 * - - 25 / - CAST ( NULL AS INTEGER ) THEN ( + 53 ) + + - MAX ( - 55 ) + - 99 + - 39 + + 44 - + + CAST ( NULL AS INTEGER ) * - 85 * - - 11 WHEN + MAX ( ALL - 75 ) + + 0 THEN NULL ELSE NULL END, - 38 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5804
SELECT 95 * + MIN( DISTINCT + 51 ) + - CAST( NULL AS DECIMAL ) * ( 45 ) * - 60 - - 63 * + + 85 + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT 95 * + MIN ( DISTINCT + 51 ) + - CAST ( NULL AS REAL ) * ( 45 ) * - 60 - - 63 * + + 85 + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT + 93 DIV COUNT( * ) + COALESCE ( - 47, - ( - - 13 ), 32 ) - - 62
----
108

skipif mysql # not compatible
query I rowsort label-5805
SELECT + 93 / COUNT ( * ) + COALESCE ( - 47, - ( - - 13 ), 32 ) - - 62
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5806
SELECT - 93 + + CAST( + + 77 AS SIGNED ) + - COUNT( * ) DIV ( + 32 )
----
-16

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 93 + + CAST ( + + 77 AS INTEGER ) + - COUNT ( * ) / ( + 32 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL - 76 * 68 - COUNT( * ) * 13 * + 35 + 13 + 97 * - 72 * + COUNT( DISTINCT + + 60 )
----
-12594

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - 76 * 68 - COUNT ( * ) * 13 * + 35 + 13 + 97 * - 72 * + COUNT ( DISTINCT + + 60 )
----
-12594

query I rowsort
SELECT - 93 + - 99 AS col1
----
-192

query I rowsort
SELECT + - 12 * ( - 35 ) + + 32 + - 11
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT ALL + COUNT( * ) * - 39 - + 17 + + 39 * 63, + 95 - - 45 + 64 + - SUM( DISTINCT + 0 ) col0
----
2401
204

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL + COUNT ( * ) * - 39 - + 17 + + 39 * 63, + 95 - - 45 + 64 + - SUM ( DISTINCT + 0 ) col0
----
2401
204

query I rowsort
SELECT - + 47 + - ( 55 ) * - 58 AS col2
----
3143

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - + 42 * COUNT( * ) * + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5812
SELECT - + 42 * COUNT ( * ) * + - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT - - 83 + + MAX( - + 80 ) DIV - - 75 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5813
SELECT - - 83 + + MAX ( - + 80 ) / - - 75 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT + COUNT( ALL 33 ) - 17 * + CASE - 43 WHEN + CAST( - - 9 AS SIGNED ) THEN NULL WHEN + + CAST( + 50 AS SIGNED ) + 13 THEN + 98 - - 71 ELSE NULL END * + 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT + COUNT ( ALL 33 ) - 17 * + CASE - 43 WHEN + CAST ( - - 9 AS INTEGER ) THEN NULL WHEN + + CAST ( + 50 AS INTEGER ) + 13 THEN + 98 - - 71 ELSE NULL END * + 82 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT - 96 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 96 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT DISTINCT NULLIF ( + - CAST( 83 AS SIGNED ), - 86 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT NULLIF ( + - CAST ( 83 AS INTEGER ), - 86 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT - - COALESCE ( - 54, + ( + COUNT( * ) ) ) - 31 + + - 21
----
-106

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - - COALESCE ( - 54, + ( + COUNT ( * ) ) ) - 31 + + - 21
----
-106

query II rowsort
SELECT - 23 + + 20 AS col2, - 47
----
-3
-47

query I rowsort
SELECT + + 40 * - 70 * - 39 AS col1
----
109200

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT + - 82 + 13 DIV + 65 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5820
SELECT + - 82 + 13 / + 65 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT ALL COALESCE ( + + 23, - 33, + - 70, - 7, - COUNT( * ) * - 75 * + 14 + + 71 ) AS col1, + 94
----
23
94

skipif mysql # not compatible
query II rowsort label-5821
SELECT ALL COALESCE ( + + 23, - 33, + - 70, - 7, - COUNT ( * ) * - 75 * + 14 + + 71 ) AS col1, + 94
----
23
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + + COUNT( * ) + - - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5822
SELECT + + COUNT ( * ) + - - 0 AS col2
----
1

query II rowsort
SELECT 72 AS col1, - 96 - - 70 + - ( + - 21 )
----
72
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + 95 + COUNT( * ) + - 37
----
59

skipif mysql # not compatible
query I rowsort label-5825
SELECT + 95 + COUNT ( * ) + - 37
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL 54 + + - 71 + + - 61 * - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL 54 + + - 71 + + - 61 * - COUNT ( * ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5827
SELECT DISTINCT 24 + + + NULLIF ( - CAST( - + 24 AS SIGNED ), - 73 ) AS col0, 79 + 98 AS col0
----
48
177

skipif mysql # not compatible
query II rowsort label-5827
SELECT DISTINCT 24 + + + NULLIF ( - CAST ( - + 24 AS INTEGER ), - 73 ) AS col0, 79 + 98 AS col0
----
48
177

query I rowsort
SELECT + 36 * - 96 * + - 14 AS col0
----
48384

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT 53 AS col2, MIN( ALL 95 )
----
53
95

skipif mysql # not compatible
query II rowsort label-5829
SELECT 53 AS col2, MIN ( ALL 95 )
----
53
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT - ( - CAST( - - ( - + 55 ) AS SIGNED ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5830
SELECT - ( - CAST ( - - ( - + 55 ) AS INTEGER ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + COUNT( * ) * - + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) * - + 48 AS col1
----
-48

query I rowsort
SELECT + 5 * + 96 AS col1
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT ALL 11 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL 11 / 96 AS col1
----
0

query II rowsort
SELECT + COALESCE ( 16, + 66 ) AS col1, - 77
----
16
-77

query I rowsort
SELECT - 23 + - + 77
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5836
SELECT DISTINCT 46 * - ( - 84 ) / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT 46 * - ( - 84 ) / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + SUM( ALL - 4 ) + + 0
----
-4

skipif mysql # not compatible
query I rowsort label-5837
SELECT + SUM ( ALL - 4 ) + + 0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT + 82 * - + 39 * + 55 DIV + + COUNT( * )
----
-175890

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 82 * - + 39 * + 55 / + + COUNT ( * )
----
-175890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5839
SELECT + 56, 10 * + + 29 * + ( - CAST( NULL AS SIGNED ) ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5839
SELECT + 56, 10 * + + 29 * + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
56
NULL

query II rowsort
SELECT DISTINCT + - 94 * ( - 69 ) AS col1, 73 col2
----
6486
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5841
SELECT ALL + + COALESCE ( COUNT( * ), 37 + + 49 + - CAST( - 90 AS SIGNED ) DIV - 10 DIV - 61, + ( 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + + COALESCE ( COUNT ( * ), 37 + + 49 + - CAST ( - 90 AS INTEGER ) / - 10 / - 61, + ( 99 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT - COUNT( * ) * + - 47 * + 41 AS col1
----
1927

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - COUNT ( * ) * + - 47 * + 41 AS col1
----
1927

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + ( + ( - ( - COUNT( * ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5843
SELECT + ( + ( - ( - COUNT ( * ) ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT + 11 * - - CAST( COUNT( * ) AS SIGNED ) * ( - 40 ) * + - 27 + - 59 + 41 AS col2
----
11862

skipif mysql # not compatible
query I rowsort label-5844
SELECT + 11 * - - CAST ( COUNT ( * ) AS INTEGER ) * ( - 40 ) * + - 27 + - 59 + 41 AS col2
----
11862

query I rowsort
SELECT - 41 + - - 0 AS col0
----
-41

query I rowsort
SELECT DISTINCT - + 77 * + 98
----
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT DISTINCT + CAST( - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + CAST ( - 82 AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT - COUNT( * ) DIV - 77 * - + 62 + - - 87 * - 69 * ( 94 )
----
-564282

skipif mysql # not compatible
query I rowsort label-5848
SELECT - COUNT ( * ) / - 77 * - + 62 + - - 87 * - 69 * ( 94 )
----
-564282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT - + 6 * - CAST( - 18 AS SIGNED ) - + 22 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-5849
SELECT - + 6 * - CAST ( - 18 AS INTEGER ) - + 22 AS col2
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT - - 36 DIV - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-5850
SELECT - - 36 / - COUNT ( * )
----
-36

query I rowsort
SELECT - 87 - + + 14 + - + 85
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - - 35 * + COUNT( ALL - + 14 ) * + + COUNT( * ) * 35 + + - 78 * SUM( DISTINCT + 11 ) AS col0
----
367

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - - 35 * + COUNT ( ALL - + 14 ) * + + COUNT ( * ) * 35 + + - 78 * SUM ( DISTINCT + 11 ) AS col0
----
367

query I rowsort
SELECT - 90 + + + 20 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT COUNT( DISTINCT - ( - - 50 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5854
SELECT COUNT ( DISTINCT - ( - - 50 ) ) AS col1
----
1

query I rowsort
SELECT - 66 + + 92 AS col0
----
26

query I rowsort
SELECT ALL - 39 + + - 78 + 19 AS col2
----
-98

query II rowsort
SELECT ALL 50 col2, + 56
----
50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 45 - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5858
SELECT 45 - - COUNT ( * )
----
46

query I rowsort
SELECT 51 * - - 64
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5860
SELECT 64 + - + 67 + SUM( + 29 ) * + - CAST( - 92 AS SIGNED ) + 59 AS col2, - 23 DIV 44 AS col1, - COUNT( * ) * 18 AS col2
----
2724
0
-18

skipif mysql # not compatible
query III rowsort label-5860
SELECT 64 + - + 67 + SUM ( + 29 ) * + - CAST ( - 92 AS INTEGER ) + 59 AS col2, - 23 / 44 AS col1, - COUNT ( * ) * 18 AS col2
----
2724
0
-18

query I rowsort
SELECT ALL - 76 + - 62 AS col0
----
-138

query I rowsort
SELECT DISTINCT 70 * - 43 AS col0
----
-3010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5863
SELECT 54 + + 19 AS col2, - CAST( NULL AS SIGNED ) / - + 19 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5863
SELECT 54 + + 19 AS col2, - CAST ( NULL AS INTEGER ) / - + 19 AS col1
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5864
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 24
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-5864
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 24
----
NULL
-24

query II rowsort
SELECT + 84 AS col2, - 79
----
84
-79

query I rowsort
SELECT 79 * + 80 * - + 87
----
-549840

query II rowsort
SELECT - 62 AS col2, - 62
----
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT + 67 * + COUNT( * ) + 49 + 26 - - - COUNT( - 2 ), 14 AS col1
----
141
14

skipif mysql # not compatible
query II rowsort label-5868
SELECT + 67 * + COUNT ( * ) + 49 + 26 - - - COUNT ( - 2 ), 14 AS col1
----
141
14

query I rowsort
SELECT 6 * - 64 + - + 40
----
-424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5870
SELECT - COUNT( * ) * - - 63 - - + 88 DIV + + 72
----
-62

skipif mysql # not compatible
query I rowsort label-5870
SELECT - COUNT ( * ) * - - 63 - - + 88 / + + 72
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT COUNT( * ) + + 77 + ( 47 ) / SUM( DISTINCT - - 78 ) * - + CASE 28 WHEN - CASE 79 WHEN + 15 + - 25 THEN NULL ELSE - MAX( ALL - - 5 ) END + - ( - 54 ) + - COUNT( * ) * + 7 THEN NULL WHEN - + 66 THEN - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT COUNT ( * ) + + 77 + ( 47 ) / SUM ( DISTINCT - - 78 ) * - + CASE 28 WHEN - CASE 79 WHEN + 15 + - 25 THEN NULL ELSE - MAX ( ALL - - 5 ) END + - ( - 54 ) + - COUNT ( * ) * + 7 THEN NULL WHEN - + 66 THEN - 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + COUNT( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5872
SELECT + COUNT ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT 85 + + + COUNT( * ) + - 8 * + - 51 + + 85
----
579

skipif mysql # not compatible
query I rowsort label-5873
SELECT 85 + + + COUNT ( * ) + - 8 * + - 51 + + 85
----
579

query I rowsort
SELECT ( + 55 ) + + NULLIF ( 53, - 76 )
----
108

query I rowsort
SELECT DISTINCT - - COALESCE ( + 94, - 50 ) AS col2
----
94

query I rowsort
SELECT ( + CASE + ( + 87 ) WHEN - 2 THEN 45 + + - 83 WHEN - 48 THEN NULL END ) * 44 + + 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 79 * + + 61 AS col1
----
-4819

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT - 4 * - - 67 + - + ( + COUNT( * ) ), 55 AS col2
----
-269
55

skipif mysql # not compatible
query II rowsort label-5878
SELECT - 4 * - - 67 + - + ( + COUNT ( * ) ), 55 AS col2
----
-269
55

query I rowsort
SELECT + 49 * - 12 AS col1
----
-588

query I rowsort
SELECT 54 + 30
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT - 58 + - + 88 col1, COUNT( DISTINCT + 81 ) AS col1
----
-146
1

skipif mysql # not compatible
query II rowsort label-5881
SELECT - 58 + - + 88 col1, COUNT ( DISTINCT + 81 ) AS col1
----
-146
1

query II rowsort
SELECT 45 AS col0, + 90 AS col0
----
45
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5883
SELECT DISTINCT + 18 * - 2 + COUNT( * ) DIV + + COALESCE ( 9, COUNT( * ) DIV - 61 + + + 86 * 33 ), 34 AS col2
----
-36
34

skipif mysql # not compatible
query II rowsort label-5883
SELECT DISTINCT + 18 * - 2 + COUNT ( * ) / + + COALESCE ( 9, COUNT ( * ) / - 61 + + + 86 * 33 ), 34 AS col2
----
-36
34

query I rowsort
SELECT - + 45 * - 94 + 88 * 83
----
11534

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + 41 - - + COUNT( * ) - + 86
----
-44

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 41 - - + COUNT ( * ) - + 86
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL COUNT( * ) + - - 44
----
45

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL COUNT ( * ) + - - 44
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT 34 + 91 DIV ( + - 33 )
----
32

skipif mysql # not compatible
query I rowsort label-5887
SELECT 34 + 91 / ( + - 33 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT MIN( ALL + 87 ) + + - 87
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT MIN ( ALL + 87 ) + + - 87
----
0

query I rowsort
SELECT DISTINCT + 57 * - 47
----
-2679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT ALL + 7 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL + 7 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 + + + 49
----
94

query I rowsort
SELECT ALL - 80 + + + 41
----
-39

query II rowsort
SELECT ALL 42 + + 2 AS col2, + 81 col2
----
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT NULLIF ( - + MIN( 1 ), - 64 ) * - 16 * 70
----
1120

skipif mysql # not compatible
query I rowsort label-5894
SELECT NULLIF ( - + MIN ( 1 ), - 64 ) * - 16 * 70
----
1120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5895
SELECT 70 * - 51 AS col1, 38 + - CAST( NULL AS SIGNED ) + - - 90
----
-3570
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT 70 * - 51 AS col1, 38 + - CAST ( NULL AS INTEGER ) + - - 90
----
-3570
NULL

query I rowsort
SELECT ALL + 35 * - 99 AS col2
----
-3465

query I rowsort
SELECT 51 + + 14
----
65

query I rowsort
SELECT DISTINCT - 63 - 11 AS col0
----
-74

query II rowsort
SELECT 60 * + - 92 AS col2, 65
----
-5520
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT ALL - 45 - 97 + 12 * + MAX( ALL - - 27 ), 67 AS col2
----
182
67

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL - 45 - 97 + 12 * + MAX ( ALL - - 27 ), 67 AS col2
----
182
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT MAX( + - ( - ( - - 95 ) ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT MAX ( + - ( - ( - - 95 ) ) ) AS col2
----
95

query I rowsort
SELECT 95 + 6
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT 21 * COUNT( * ) - - 29
----
50

skipif mysql # not compatible
query I rowsort label-5903
SELECT 21 * COUNT ( * ) - - 29
----
50

query I rowsort
SELECT + 40 * + + 12 * 66 col2
----
31680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL + CAST( - COUNT( + 90 ) AS SIGNED ) * 99 col0
----
-99

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + CAST ( - COUNT ( + 90 ) AS INTEGER ) * 99 col0
----
-99

query II rowsort
SELECT ALL - COALESCE ( + - ( + 62 ), - 96 * 82 ) * 62 + + 51 + - 45 * + 10 - - 44 AS col2, - 12 + + 50
----
3489
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT COUNT( * ) / - 55 - - CAST( NULL AS SIGNED ) + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT COUNT ( * ) / - 55 - - CAST ( NULL AS INTEGER ) + + - 11
----
NULL

query II rowsort
SELECT ALL + - 68 * 84 AS col0, 31
----
-5712
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL - SUM( DISTINCT 90 ) * 21 + COALESCE ( - COUNT( * ), - - MAX( DISTINCT + 6 ) * + 29 * - - 34 ) / + - CAST( NULL AS SIGNED ) + + 83 + - 45 / - + 86 * + 40 * - - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL - SUM ( DISTINCT 90 ) * 21 + COALESCE ( - COUNT ( * ), - - MAX ( DISTINCT + 6 ) * + 29 * - - 34 ) / + - CAST ( NULL AS INTEGER ) + + 83 + - 45 / - + 86 * + 40 * - - 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - 41 * + + SUM( ALL - + 53 ) + + ( 45 ) + 23
----
2241

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - 41 * + + SUM ( ALL - + 53 ) + + ( 45 ) + 23
----
2241

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5911
SELECT 23 DIV 61 + + ( - 73 ) + 71 AS col0, MIN( 60 ) AS col1
----
-2
60

skipif mysql # not compatible
query II rowsort label-5911
SELECT 23 / 61 + + ( - 73 ) + 71 AS col0, MIN ( 60 ) AS col1
----
-2
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5912
SELECT ( + COUNT( * ) ) * + 42, - 49 col2
----
42
-49

skipif mysql # not compatible
query II rowsort label-5912
SELECT ( + COUNT ( * ) ) * + 42, - 49 col2
----
42
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5913
SELECT CAST( NULL AS SIGNED ) DIV + NULLIF ( + CASE CAST( NULL AS SIGNED ) WHEN + - 21 THEN 34 - ( + COUNT( * ) ) WHEN - 99 THEN NULL WHEN 0 THEN - 14 END, - + 69 ) AS col0, + 53 + 78 DIV - 38, + 75 AS col0
----
NULL
51
75

skipif mysql # not compatible
query III rowsort label-5913
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN + - 21 THEN 34 - ( + COUNT ( * ) ) WHEN - 99 THEN NULL WHEN 0 THEN - 14 END, - + 69 ) AS col0, + 53 + 78 / - 38, + 75 AS col0
----
NULL
51
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT ALL - 98 + - - COUNT( * ) * - 31 * 48 - 46 AS col0, - 6 * + 74 AS col2
----
-1632
-444

skipif mysql # not compatible
query II rowsort label-5914
SELECT ALL - 98 + - - COUNT ( * ) * - 31 * 48 - 46 AS col0, - 6 * + 74 AS col2
----
-1632
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL - + 89 + + + 54 - + - 32 + - + ( 14 ) * - + NULLIF ( COUNT( * ), - + 15 - - - 1 - + 99 + - 50 / + - NULLIF ( - + 81, - 87 ) * + COUNT( * ) + - 14 * 28 / + 2 * + 84 )
----
11

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - + 89 + + + 54 - + - 32 + - + ( 14 ) * - + NULLIF ( COUNT ( * ), - + 15 - - - 1 - + 99 + - 50 / + - NULLIF ( - + 81, - 87 ) * + COUNT ( * ) + - 14 * 28 / + 2 * + 84 )
----
11

query I rowsort
SELECT DISTINCT + 65 * - 91 * 23
----
-136045

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL - 54 DIV + 12 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - 54 / + 12 AS col2
----
-4

query I rowsort
SELECT ALL 31 * - 54 AS col2
----
-1674

query I rowsort
SELECT + 37 * + 22 AS col0
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT - COALESCE ( COUNT( * ), - - MIN( - - 36 ) * + COUNT( * ), - 0 * - - COUNT( * ) * ( - 71 ) DIV - 74 - + + NULLIF ( - 7, + 37 ) + - 83 * + 82 * - + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-5920
SELECT - COALESCE ( COUNT ( * ), - - MIN ( - - 36 ) * + COUNT ( * ), - 0 * - - COUNT ( * ) * ( - 71 ) / - 74 - + + NULLIF ( - 7, + 37 ) + - 83 * + 82 * - + 12 )
----
-1

query II rowsort
SELECT 99 col2, 3
----
99
3

query I rowsort
SELECT ALL 95 * 97 AS col1
----
9215

query II rowsort
SELECT + 77 + - ( 77 ) * - - 76 AS col2, - 41 - - 12 AS col1
----
-5775
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5924
SELECT 12, CAST( NULL AS SIGNED ) col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5924
SELECT 12, CAST ( NULL AS INTEGER ) col2
----
12
NULL

query II rowsort
SELECT ALL 13, 60 AS col2
----
13
60

query II rowsort
SELECT ALL ( + 36 ) * 24 AS col2, 8 AS col0
----
864
8

query I rowsort
SELECT + CASE + + 36 WHEN + 62 - - 37 THEN + 85 - + - 38 * - 98 + - + 92 END * + CASE + 17 WHEN - - 74 * - - 95 + + ( 56 ) + - 37 * 23 - + 50 + + 24 THEN - + 1 * 36 + 5 - + 88 WHEN - + 91 THEN NULL WHEN - - 54 THEN NULL END / - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL MIN( ALL + - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL MIN ( ALL + - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + 47 - - + NULLIF ( - - ( ( + ( - + 94 ) ) ), + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 47 - - + NULLIF ( - - ( ( + ( - + 94 ) ) ), + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - COALESCE ( ( - COUNT( * ) ), 24, + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COALESCE ( ( - COUNT ( * ) ), 24, + 47 )
----
1

query I rowsort
SELECT + ( 76 ) + - - ( 44 ) * 64 * + 43 AS col2
----
121164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT + CAST( NULL AS SIGNED ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT + CAST ( NULL AS INTEGER ) * - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5933
SELECT - 94 * 14 DIV + CAST( 83 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5933
SELECT - 94 * 14 / + CAST ( 83 AS INTEGER )
----
-15

query I rowsort
SELECT ALL - NULLIF ( + 6, 34 ) * + 12 AS col2
----
-72

query I rowsort
SELECT - 37 * + 90 AS col1
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL COUNT( * ) + + - 0 - - + ( 77 )
----
78

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL COUNT ( * ) + + - 0 - - + ( 77 )
----
78

query I rowsort
SELECT DISTINCT + 76 + - 88 - + NULLIF ( + 54, 62 ) * + 86 AS col0
----
-4656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT ALL + + 86 DIV + COALESCE ( + ( - ( + - 9 ) ), - 71 ) + 64 * - COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + + 86 / + COALESCE ( + ( - ( + - 9 ) ), - 71 ) + 64 * - COUNT ( * ) col0
----
-55

query II rowsort
SELECT ALL + - 48, - 2 AS col1
----
-48
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT 63, + 43 + COUNT( * ) AS col1
----
63
44

skipif mysql # not compatible
query II rowsort label-5940
SELECT 63, + 43 + COUNT ( * ) AS col1
----
63
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL - - AVG ( - + 56 ) * + COUNT( * ) + + + MAX( ALL - + 65 ) + 44 * - CAST( NULL AS SIGNED ) / 39 * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - - AVG ( - + 56 ) * + COUNT ( * ) + + + MAX ( ALL - + 65 ) + 44 * - CAST ( NULL AS INTEGER ) / 39 * + 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT - - 79 * + 14 + CAST( + - COUNT( * ) AS SIGNED ) + - 36 - + 17 * + + 51 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-5942
SELECT - - 79 * + 14 + CAST ( + - COUNT ( * ) AS INTEGER ) + - 36 - + 17 * + + 51 AS col2
----
202

query I rowsort
SELECT DISTINCT + 35 * 67
----
2345

query I rowsort
SELECT + ( - - 88 ) * + - NULLIF ( + 0, 37 * + 80 ) + + + 5 + CASE + 33 WHEN + 37 THEN + 53 - CASE + 45 WHEN - 83 + + 48 + - + 28 THEN NULL ELSE - 85 / + 95 * - - 72 / + + 9 / - 52 * + + 99 + - 87 END END
----
NULL

query I rowsort
SELECT - 48 * - 35
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT + ( - CASE - - 14 WHEN + ( + 47 ) THEN - - COUNT( * ) * + 8 + + ( + + 42 ) + - 5 * - - 11 - - - 71 * - + CAST( 25 AS SIGNED ) END ) * 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + ( - CASE - - 14 WHEN + ( + 47 ) THEN - - COUNT ( * ) * + 8 + + ( + + 42 ) + - 5 * - - 11 - - - 71 * - + CAST ( 25 AS INTEGER ) END ) * 44 col0
----
NULL

query I rowsort
SELECT NULLIF ( + 14, - CASE + 8 WHEN 30 THEN + - 45 WHEN - 91 * - 91 / + 43 + 42 THEN NULL END )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT CASE AVG ( + 68 ) WHEN - + COUNT( * ) + + - 84 THEN NULL ELSE - - 12 END AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5948
SELECT CASE AVG ( + 68 ) WHEN - + COUNT ( * ) + + - 84 THEN NULL ELSE - - 12 END AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT + CAST( 0 AS SIGNED ) + + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-5949
SELECT + CAST ( 0 AS INTEGER ) + + - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT COUNT( * ) * + + NULLIF ( - + 80, 84 + - 3 + + 64 ) - - - 37 + + CAST( NULL AS SIGNED ) * + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT COUNT ( * ) * + + NULLIF ( - + 80, 84 + - 3 + + 64 ) - - - 37 + + CAST ( NULL AS INTEGER ) * + 23 AS col0
----
NULL

query I rowsort
SELECT - 18 * - 45 AS col0
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5952
SELECT + ( - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * + 45 + - + ( 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT + ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * + 45 + - + ( 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL CAST( - 7 AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL CAST ( - 7 AS INTEGER ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT DISTINCT 86 * + 70 - + 12 DIV + 9 AS col0
----
6019

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT 86 * + 70 - + 12 / + 9 AS col0
----
6019

query I rowsort
SELECT ALL 82 * + 88
----
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL COUNT( * ) * ( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL COUNT ( * ) * ( + 19 ) AS col2
----
19

query I rowsort
SELECT DISTINCT 88 * - 29 AS col2
----
-2552

query I rowsort
SELECT + 17 * 49 AS col0
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT COUNT( * ) * NULLIF ( + + 82, + 54 )
----
82

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT COUNT ( * ) * NULLIF ( + + 82, + 54 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT ALL MIN( DISTINCT + 28 ) AS col1, + 55 AS col0
----
28
55

skipif mysql # not compatible
query II rowsort label-5960
SELECT ALL MIN ( DISTINCT + 28 ) AS col1, + 55 AS col0
----
28
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL 91 + + 14 + ( - - 97 ) * + + 59 * + - COUNT( * )
----
-5618

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 91 + + 14 + ( - - 97 ) * + + 59 * + - COUNT ( * )
----
-5618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT - 46 * + + 92 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT - 46 * + + 92 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - ( 92 ) + - + 86 + - 38
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT + + SUM( + + 97 ) + + + 35 + - 99 * - 64 + + - 66 AS col2
----
6402

skipif mysql # not compatible
query I rowsort label-5964
SELECT + + SUM ( + + 97 ) + + + 35 + - 99 * - 64 + + - 66 AS col2
----
6402

query I rowsort
SELECT ALL NULLIF ( - 42, 43 ) AS col2
----
-42

query I rowsort
SELECT + - 2 + - 70 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - MAX( ALL 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5967
SELECT - MAX ( ALL 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT - ( - - NULLIF ( - 39, + COUNT( * ) ) ) col2
----
39

skipif mysql # not compatible
query I rowsort label-5968
SELECT - ( - - NULLIF ( - 39, + COUNT ( * ) ) ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT - + COALESCE ( - 58, - MAX( + 54 ) ) + - SUM( ALL - - 82 ) + - ( - 86 )
----
62

skipif mysql # not compatible
query I rowsort label-5969
SELECT - + COALESCE ( - 58, - MAX ( + 54 ) ) + - SUM ( ALL - - 82 ) + - ( - 86 )
----
62

query II rowsort
SELECT ALL 41 + 34 - 58 + - 95 AS col0, ( 29 )
----
-78
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT - MAX( ALL + + 86 ) DIV - + 78 + - 76 * 27 + - - COUNT( * ) * + COALESCE ( - + COUNT( + 90 ), + 90 + - - 92 ) + + + 29 * - + 97 + - 47 - + 55 + - 59 AS col2
----
-5026

skipif mysql # not compatible
query I rowsort label-5971
SELECT - MAX ( ALL + + 86 ) / - + 78 + - 76 * 27 + - - COUNT ( * ) * + COALESCE ( - + COUNT ( + 90 ), + 90 + - - 92 ) + + + 29 * - + 97 + - 47 - + 55 + - 59 AS col2
----
-5026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5972
SELECT DISTINCT - + 76 * + 15 * + + CASE + 69 WHEN 80 THEN NULL WHEN + 25 + - - COUNT( * ) + - CAST( NULL AS SIGNED ) THEN - CAST( - 29 AS DECIMAL ) END - + - 65 - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - + 76 * + 15 * + + CASE + 69 WHEN 80 THEN NULL WHEN + 25 + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN - CAST ( - 29 AS REAL ) END - + - 65 - 82 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT DISTINCT COUNT( * ) - - + 2 AS col1, + 48
----
3
48

skipif mysql # not compatible
query II rowsort label-5973
SELECT DISTINCT COUNT ( * ) - - + 2 AS col1, + 48
----
3
48

query I rowsort
SELECT DISTINCT - 70 * - - 19
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT SUM( - - 79 ) * + + COUNT( ALL - - 23 ) - - 77 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-5975
SELECT SUM ( - - 79 ) * + + COUNT ( ALL - - 23 ) - - 77 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL + 95 - NULLIF ( + 92, + COUNT( * ) * COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + 95 - NULLIF ( + 92, + COUNT ( * ) * COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5977
SELECT 42 - + 72 AS col1, COUNT( * ) col2
----
-30
1

skipif mysql # not compatible
query II rowsort label-5977
SELECT 42 - + 72 AS col1, COUNT ( * ) col2
----
-30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT 61 * + - 71 * - COUNT( * )
----
4331

skipif mysql # not compatible
query I rowsort label-5978
SELECT 61 * + - 71 * - COUNT ( * )
----
4331

query II rowsort
SELECT DISTINCT - 4 * - - 89 * 93, 16 AS col2
----
-33108
16

query I rowsort
SELECT ALL 41 * + 67
----
2747

query I rowsort
SELECT ALL - 13 * - 71 AS col1
----
923

query I rowsort
SELECT DISTINCT - NULLIF ( + 76, - 99 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT - 4 * 5 AS col1
----
-20

query I rowsort
SELECT 99 * NULLIF ( - 19, + 77 )
----
-1881

query I rowsort
SELECT 70 + 77 AS col0
----
147

query II rowsort
SELECT ALL 77 AS col1, 37 AS col1
----
77
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5987
SELECT 89 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT 89 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT 93 + CAST( 53 AS SIGNED ) * 19 * - 22
----
-22061

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT 93 + CAST ( 53 AS INTEGER ) * 19 * - 22
----
-22061

query I rowsort
SELECT DISTINCT - 69 + + 25 + 85 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT + NULLIF ( 30, + COALESCE ( + + 22, + - 21 * - - 87 + 23 + COUNT( * ) * + 25 * + - 19, + 94, 25 ) )
----
30

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + NULLIF ( 30, + COALESCE ( + + 22, + - 21 * - - 87 + 23 + COUNT ( * ) * + 25 * + - 19, + 94, 25 ) )
----
30

query I rowsort
SELECT DISTINCT 12 + - 99 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL COUNT( * ) + - + 68 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL COUNT ( * ) + - + 68 AS col1
----
-67

query I rowsort
SELECT DISTINCT - 60 + + 45 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5994
SELECT ALL - + CAST( + 52 AS SIGNED ) * - 48, - 33 AS col2
----
2496
-33

skipif mysql # not compatible
query II rowsort label-5994
SELECT ALL - + CAST ( + 52 AS INTEGER ) * - 48, - 33 AS col2
----
2496
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT DISTINCT 10 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT 10 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - ( + + 38 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT 30 / - - 60 + - + 69 + + + COUNT( + 40 ) * 59 / + CASE - 51 WHEN + ( 51 ) / 74 + 41 * + 36 / + - 71 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - - 60 * ( - 7 ) - - COUNT( DISTINCT + + 26 ) THEN + + 79 END - - 29 + + 35 * - 49 + + 90 * + - ( 34 ) / - - 88 AS col0, + 29 + + ( + 63 ) - ( - COUNT( * ) )
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5997
SELECT 30 / - - 60 + - + 69 + + + COUNT ( + 40 ) * 59 / + CASE - 51 WHEN + ( 51 ) / 74 + 41 * + 36 / + - 71 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - - 60 * ( - 7 ) - - COUNT ( DISTINCT + + 26 ) THEN + + 79 END - - 29 + + 35 * - 49 + + 90 * + - ( 34 ) / - - 88 AS col0, + 29 + + ( + 63 ) - ( - COUNT ( * ) )
----
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT - 19 DIV + 2
----
-9

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - 19 / + 2
----
-9

query I rowsort
SELECT 65 + - + 64 + + 58 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6000
SELECT - CAST( NULL AS DECIMAL ) * + - 97 * - CAST( NULL AS SIGNED ) * 84 * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT - CAST ( NULL AS REAL ) * + - 97 * - CAST ( NULL AS INTEGER ) * 84 * + 11 AS col2
----
NULL

query I rowsort
SELECT - 85 * + - 5
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT 54 DIV + 29 col0
----
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT 54 / + 29 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6003
SELECT + 77 * + CASE - 37 WHEN - - NULLIF ( - CAST( 50 AS DECIMAL ), - 94 ) THEN 91 + + + 56 WHEN + 79 + - COUNT( * ) + - COUNT( * ) THEN NULL WHEN 77 + + 20 + - 16 + + COALESCE ( + + 79, 8, + NULLIF ( - 92, + 92 ) ) THEN 29 ELSE NULL END - 98 + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT + 77 * + CASE - 37 WHEN - - NULLIF ( - CAST ( 50 AS REAL ), - 94 ) THEN 91 + + + 56 WHEN + 79 + - COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN 77 + + 20 + - 16 + + COALESCE ( + + 79, 8, + NULLIF ( - 92, + 92 ) ) THEN 29 ELSE NULL END - 98 + - 69
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 95, + 69 ) col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT SUM( DISTINCT + 53 ) + 94
----
147

skipif mysql # not compatible
query I rowsort label-6005
SELECT SUM ( DISTINCT + 53 ) + 94
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT COUNT( - + 8 ) DIV - 70 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6006
SELECT COUNT ( - + 8 ) / - 70 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + CASE 68 WHEN - + 6 THEN + - 95 WHEN + - 26 / 7 THEN NULL WHEN - + 9 THEN COUNT( * ) ELSE - + 90 END * 80 * - - 44 + - - NULLIF ( + 8, - - 37 + - ( 13 ) )
----
-316792

skipif mysql # not compatible
query I rowsort label-6007
SELECT + CASE 68 WHEN - + 6 THEN + - 95 WHEN + - 26 / 7 THEN NULL WHEN - + 9 THEN COUNT ( * ) ELSE - + 90 END * 80 * - - 44 + - - NULLIF ( + 8, - - 37 + - ( 13 ) )
----
-316792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT DISTINCT 18 * - CAST( 54 AS SIGNED ) AS col1
----
-972

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT 18 * - CAST ( 54 AS INTEGER ) AS col1
----
-972

query I rowsort
SELECT ALL 36 * + 79 AS col2
----
2844

query I rowsort
SELECT + 3 * - 79 + + 61 + - 97
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT ALL + COUNT( * ) DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + COUNT ( * ) / + 92 AS col2
----
0

query II rowsort
SELECT 99 + 21, + 91 * 11 * + 65 AS col2
----
120
65065

query I rowsort
SELECT ALL + 55 + + - 62
----
-7

query II rowsort
SELECT 28 AS col2, + 20 - + 17 AS col0
----
28
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6015
SELECT + 22 AS col2, - 46 - - 44 + - 90 - + - 58 + + 61 * - CAST( NULL AS SIGNED ) - - 0 + 62 / + - 69 * - + 82 + + 61 * - 26 + 94 AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-6015
SELECT + 22 AS col2, - 46 - - 44 + - 90 - + - 58 + + 61 * - CAST ( NULL AS INTEGER ) - - 0 + 62 / + - 69 * - + 82 + + 61 * - 26 + 94 AS col1
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT 9 col2, - COUNT( * )
----
9
-1

skipif mysql # not compatible
query II rowsort label-6016
SELECT 9 col2, - COUNT ( * )
----
9
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6017
SELECT ALL 70 + - + 46 * + - 1 + - CAST( NULL AS SIGNED ) + ( ( - - 8 ) ) * + + MAX( DISTINCT - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 70 + - + 46 * + - 1 + - CAST ( NULL AS INTEGER ) + ( ( - - 8 ) ) * + + MAX ( DISTINCT - 12 ) AS col2
----
NULL

query I rowsort
SELECT 98 * + 9 AS col0
----
882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT ALL - COUNT( ALL 5 ) + + + 72 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - COUNT ( ALL 5 ) + + + 72 / 34
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT DISTINCT - CASE 7 WHEN - CAST( NULL AS SIGNED ) THEN + - MIN( - ( + 40 ) ) - + 86 ELSE NULL END * ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - CASE 7 WHEN - CAST ( NULL AS INTEGER ) THEN + - MIN ( - ( + 40 ) ) - + 86 ELSE NULL END * ( + 48 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6021
SELECT ALL - - 34 + 32 AS col2, 4 * - 97 + 49 DIV - 8 AS col0
----
66
-394

skipif mysql # not compatible
query II rowsort label-6021
SELECT ALL - - 34 + 32 AS col2, 4 * - 97 + 49 / - 8 AS col0
----
66
-394

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT COALESCE ( NULLIF ( 9, - + COUNT( * ) ), 49 ) + COUNT( * ) AS col0, 84
----
10
84

skipif mysql # not compatible
query II rowsort label-6022
SELECT COALESCE ( NULLIF ( 9, - + COUNT ( * ) ), 49 ) + COUNT ( * ) AS col0, 84
----
10
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT - MIN( ALL - 57 ) DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-6023
SELECT - MIN ( ALL - 57 ) / - 22
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT + - ( ( - CAST( NULL AS SIGNED ) ) ) * + NULLIF ( + 72, - + NULLIF ( - + 65, - - 49 / - + 54 * + + 70 + - 65 ) / CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + - ( ( - CAST ( NULL AS INTEGER ) ) ) * + NULLIF ( + 72, - + NULLIF ( - + 65, - - 49 / - + 54 * + + 70 + - 65 ) / CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 27, + 42 + ( 77 ) AS col1
----
27
119

query I rowsort
SELECT ALL - 81 - - 28 AS col0
----
-53

query I rowsort
SELECT - - 76 * + - 62 * 26
----
-122512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT CASE - 2 WHEN - 5 THEN - + 27 - - + 32 * 94 + - CASE + - 92 WHEN 64 THEN - + 76 * + 82 * + COUNT( * ) + - MIN( - + 31 ) - + + MIN( DISTINCT - 27 ) WHEN 40 * - AVG ( DISTINCT + - 1 ) THEN - SUM( DISTINCT 35 ) END WHEN - 64 / + 59 + + CAST( NULL AS SIGNED ) + + COALESCE ( - 4, + - 13 ) THEN NULL WHEN + 49 THEN 89 + COUNT( * ) / + CASE - 22 WHEN + + 90 * + - SUM( + NULLIF ( + 49, + 88 ) ) + 75 + - - CASE 33 WHEN - 30 / - + 59 - 89 + 40 + 48 THEN 99 WHEN + 56 THEN NULL ELSE NULL END + 49 THEN 96 ELSE 18 + + COUNT( ALL 49 + 53 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT CASE - 2 WHEN - 5 THEN - + 27 - - + 32 * 94 + - CASE + - 92 WHEN 64 THEN - + 76 * + 82 * + COUNT ( * ) + - MIN ( - + 31 ) - + + MIN ( DISTINCT - 27 ) WHEN 40 * - AVG ( DISTINCT + - 1 ) THEN - SUM ( DISTINCT 35 ) END WHEN - 64 / + 59 + + CAST ( NULL AS INTEGER ) + + COALESCE ( - 4, + - 13 ) THEN NULL WHEN + 49 THEN 89 + COUNT ( * ) / + CASE - 22 WHEN + + 90 * + - SUM ( + NULLIF ( + 49, + 88 ) ) + 75 + - - CASE 33 WHEN - 30 / - + 59 - 89 + 40 + 48 THEN 99 WHEN + 56 THEN NULL ELSE NULL END + 49 THEN 96 ELSE 18 + + COUNT ( ALL 49 + 53 ) END END AS col1
----
NULL

query I rowsort
SELECT + 47 - 29
----
18

query I rowsort
SELECT ALL 86 * - 70 AS col1
----
-6020

query I rowsort
SELECT + 56 + + + 62 AS col1
----
118

query II rowsort
SELECT - 57 AS col1, 28 * + 51 + + 72
----
-57
1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT DISTINCT NULLIF ( + 12, - + 98 ) * - - ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT NULLIF ( + 12, - + 98 ) * - - ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6034
SELECT + - COUNT( * ) * + MAX( DISTINCT 47 ) * 71 - + 65 / + CAST( NULL AS SIGNED ) - + MIN( 86 ) + - - 69 + + + ( - + COUNT( * ) ) + + 67 * ( 76 ) + - 2 * - 69 * + 72 * + 93 + 24 col2, + 68 + - - 43
----
NULL
111

skipif mysql # not compatible
query II rowsort label-6034
SELECT + - COUNT ( * ) * + MAX ( DISTINCT 47 ) * 71 - + 65 / + CAST ( NULL AS INTEGER ) - + MIN ( 86 ) + - - 69 + + + ( - + COUNT ( * ) ) + + 67 * ( 76 ) + - 2 * - 69 * + 72 * + 93 + 24 col2, + 68 + - - 43
----
NULL
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT + - ( + - CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6035
SELECT + - ( + - CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - 85 * - 38
----
3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT + 54 * + + 28 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 54 * + + 28 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 77 * - 56 AS col1
----
-4312

query I rowsort
SELECT - 18 * - - 77
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT + CASE 63 WHEN + + 25 THEN - COALESCE ( - COUNT( * ), - 6 ) * + + 66 END * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT + CASE 63 WHEN + + 25 THEN - COALESCE ( - COUNT ( * ), - 6 ) * + + 66 END * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT + COALESCE ( + 64, 34, - 53 * - + 41 DIV 25 )
----
64

skipif mysql # not compatible
query I rowsort label-6041
SELECT + COALESCE ( + 64, 34, - 53 * - + 41 / 25 )
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6042
SELECT DISTINCT 29 DIV + 11, + 76 AS col2
----
2
76

skipif mysql # not compatible
query II rowsort label-6042
SELECT DISTINCT 29 / + 11, + 76 AS col2
----
2
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL MIN( + 32 ) * - 95 AS col0
----
-3040

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL MIN ( + 32 ) * - 95 AS col0
----
-3040

query I rowsort
SELECT ALL 23 * - 17
----
-391

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT ALL - 33 * + + COUNT( * ) * + 3 + - 7 + + + 21 * + - 64 + - - 75 AS col0, + 21 + - + 98 col0
----
-1375
-77

skipif mysql # not compatible
query II rowsort label-6045
SELECT ALL - 33 * + + COUNT ( * ) * + 3 + - 7 + + + 21 * + - 64 + - - 75 AS col0, + 21 + - + 98 col0
----
-1375
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - + MAX( ALL + - COALESCE ( - - 33, 78 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6046
SELECT - + MAX ( ALL + - COALESCE ( - - 33, 78 ) )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL COALESCE ( 43, - - CAST( NULL AS SIGNED ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL COALESCE ( 43, - - CAST ( NULL AS INTEGER ) ) AS col2
----
43

query I rowsort
SELECT + - 71 + + + 90 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT - + AVG ( - ( + + CAST( NULL AS SIGNED ) ) ) - + 29 - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT - + AVG ( - ( + + CAST ( NULL AS INTEGER ) ) ) - + 29 - + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - + ( - COUNT( * ) ) + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6050
SELECT - + ( - COUNT ( * ) ) + 33 AS col1
----
34

query I rowsort
SELECT ALL - 91 - + - 85
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL - + 19 - + - 60 + - COUNT( + 19 ) + - 99 * - ( 57 ) * + 12
----
67756

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - + 19 - + - 60 + - COUNT ( + 19 ) + - 99 * - ( 57 ) * + 12
----
67756

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT + - 57 * - 43 + - MIN( - 25 )
----
2476

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + - 57 * - 43 + - MIN ( - 25 )
----
2476

query I rowsort
SELECT - 31 + + 50
----
19

query I rowsort
SELECT - + 13 * - - 5 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + + 90 * - COALESCE ( - 1, - CASE 65 WHEN + + 29 + 62 THEN + + 81 + 14 + + - 41 * + 4 * - 43 END * + + ( - COUNT( * ) ) - + + 35 ) + + - 58
----
32

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + + 90 * - COALESCE ( - 1, - CASE 65 WHEN + + 29 + 62 THEN + + 81 + 14 + + - 41 * + 4 * - 43 END * + + ( - COUNT ( * ) ) - + + 35 ) + + - 58
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT + 91 * + - 33 + ( - - COUNT( * ) ) * - COUNT( * ) + 9 + 28 AS col0
----
-2967

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + 91 * + - 33 + ( - - COUNT ( * ) ) * - COUNT ( * ) + 9 + 28 AS col0
----
-2967

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT - + 64 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT - + 64 / 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + ( - CASE - ( + + 45 ) WHEN - - 8 THEN + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + ( - CASE - ( + + 45 ) WHEN - - 8 THEN + COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6060
SELECT - CAST( NULL AS SIGNED ) * - 90 + 98 col1, + 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6060
SELECT - CAST ( NULL AS INTEGER ) * - 90 + 98 col1, + 37
----
NULL
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT ( - COUNT( * ) ) AS col2, 64 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-6061
SELECT ( - COUNT ( * ) ) AS col2, 64 AS col1
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT + COALESCE ( - 61, - COALESCE ( 81, + 32, - 63 + - 18 * - 5 + + COUNT( * ) ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6062
SELECT + COALESCE ( - 61, - COALESCE ( 81, + 32, - 63 + - 18 * - 5 + + COUNT ( * ) ) )
----
-61

query I rowsort
SELECT DISTINCT NULLIF ( - + 68, - 74 + - 48 * - 24 ) AS col0
----
-68

query II rowsort
SELECT ALL + - 23 + 93 AS col2, + 88 AS col1
----
70
88

query I rowsort
SELECT - - 87 - + COALESCE ( 10, - ( + 55 ) + + + 56, ( + 28 ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT DISTINCT MIN( ALL 31 ) * 36 AS col1, - 16 col0
----
1116
-16

skipif mysql # not compatible
query II rowsort label-6066
SELECT DISTINCT MIN ( ALL 31 ) * 36 AS col1, - 16 col0
----
1116
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT DISTINCT + 72 + - 14 + - COUNT( * ), 25 AS col1
----
57
25

skipif mysql # not compatible
query II rowsort label-6067
SELECT DISTINCT + 72 + - 14 + - COUNT ( * ), 25 AS col1
----
57
25

query I rowsort
SELECT - ( 46 ) + + + 66 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + 94 * - - COUNT( * ) + + 37
----
131

skipif mysql # not compatible
query I rowsort label-6069
SELECT + 94 * - - COUNT ( * ) + + 37
----
131

query I rowsort
SELECT DISTINCT 24 * - 48
----
-1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6071
SELECT ALL 88 DIV COUNT( * ) * 42 DIV + 5 + + 46 * MAX( + - ( - 1 ) ) AS col0
----
785

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL 88 / COUNT ( * ) * 42 / + 5 + + 46 * MAX ( + - ( - 1 ) ) AS col0
----
785

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT ( - ( + - 89 ) ) DIV - 43 + - 18 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6072
SELECT ( - ( + - 89 ) ) / - 43 + - 18 AS col1
----
-20

query I rowsort
SELECT 55 * 84 - + - 73 AS col1
----
4693

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - CASE + COUNT( * ) WHEN + + 86 THEN 98 * + + SUM( DISTINCT - 96 ) * - 85 END + - 73 + - - 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT - CASE + COUNT ( * ) WHEN + + 86 THEN 98 * + + SUM ( DISTINCT - 96 ) * - 85 END + - 73 + - - 39 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6075
SELECT ALL + 15 DIV COUNT( ALL + 57 ) + - 14 DIV - 59 * + 87
----
15

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + 15 / COUNT ( ALL + 57 ) + - 14 / - 59 * + 87
----
15

query I rowsort
SELECT DISTINCT + 83 * - 34 AS col1
----
-2822

query I rowsort
SELECT + 58 + - 50
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + 65 * + NULLIF ( + COUNT( * ), + 11 - - - 34 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + 65 * + NULLIF ( + COUNT ( * ), + 11 - - - 34 ) col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT DISTINCT 0 / CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT 0 / CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6080
SELECT ALL - COUNT( * ) DIV 3 + COALESCE ( + 11, COUNT( * ) + + 97 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - COUNT ( * ) / 3 + COALESCE ( + 11, COUNT ( * ) + + 97 ) AS col2
----
11

query II rowsort
SELECT DISTINCT + 62 AS col0, 37 AS col2
----
62
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT COALESCE ( + ( - 89 ), + AVG ( ALL - 28 ) ) DIV + MAX( ALL 37 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6082
SELECT COALESCE ( + ( - 89 ), + AVG ( ALL - 28 ) ) / + MAX ( ALL 37 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL ( + - COUNT( * ) ) / + CAST( NULL AS SIGNED ) * + + ( + 46 ) + + - 4 + - 80 + 79 + + 15 + + 17 * 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL ( + - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * + + ( + 46 ) + + - 4 + - 80 + 79 + + 15 + + 17 * 26 AS col0
----
NULL

query II rowsort
SELECT ALL - 78 col2, + 54 AS col2
----
-78
54

query I rowsort
SELECT DISTINCT - 47 - 25
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6086
SELECT DISTINCT - 36 DIV NULLIF ( + COUNT( DISTINCT + 18 ), - 6 * 2 ), - 36 AS col1
----
-36
-36

skipif mysql # not compatible
query II rowsort label-6086
SELECT DISTINCT - 36 / NULLIF ( + COUNT ( DISTINCT + 18 ), - 6 * 2 ), - 36 AS col1
----
-36
-36

query I rowsort
SELECT ALL 19 - 21
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL + 3 * + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + 3 * + - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT SUM( ( 49 ) ) * - 87 * + 40 * + + COUNT( 67 ) AS col1
----
-170520

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT SUM ( ( 49 ) ) * - 87 * + 40 * + + COUNT ( 67 ) AS col1
----
-170520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT + 55 DIV - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6090
SELECT + 55 / - COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT 83 * - 69 AS col0
----
-5727

onlyif mysql # DIV for integer division: 
query II rowsort label-6092
SELECT ALL 46, - 27 DIV - 36 + + ( + + 15 ) + - 40 * - 1 AS col1
----
46
55

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL 46, - 27 / - 36 + + ( + + 15 ) + - 40 * - 1 AS col1
----
46
55

query I rowsort
SELECT + 38 * + - 79
----
-3002

query II rowsort
SELECT - 4 * ( + 31 ), + 71 AS col2
----
-124
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL + SUM( 80 ) + COUNT( * ) + - - 55 DIV + 56 * + 97
----
81

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + SUM ( 80 ) + COUNT ( * ) + - - 55 / + 56 * + 97
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6096
SELECT 32 + - - COUNT( * ) + 13 AS col0, MAX( - COALESCE ( 88, + CAST( + 5 AS SIGNED ) + + 95 / + 72 ) ) AS col0
----
46
-88

skipif mysql # not compatible
query II rowsort label-6096
SELECT 32 + - - COUNT ( * ) + 13 AS col0, MAX ( - COALESCE ( 88, + CAST ( + 5 AS INTEGER ) + + 95 / + 72 ) ) AS col0
----
46
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT 89 + + + MAX( + - CASE - + 76 WHEN - - 84 THEN - 69 END ) + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT 89 + + + MAX ( + - CASE - + 76 WHEN - - 84 THEN - 69 END ) + 17 AS col2
----
NULL

query II rowsort
SELECT ALL + 59 + - - 36 - - 41 + 72 * 44, 19 AS col2
----
3304
19

query I rowsort
SELECT 70 * ( + - 60 ) col1
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT COUNT( * ) + + COUNT( 59 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6100
SELECT COUNT ( * ) + + COUNT ( 59 ) AS col2
----
2

query I rowsort
SELECT DISTINCT - 41 + 96 AS col0
----
55

query I rowsort
SELECT 95 * + 43
----
4085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6103
SELECT DISTINCT - 42 - 3 AS col0, ( + ( + 41 ) ) * + + CAST( NULL AS SIGNED ) + - 46
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT DISTINCT - 42 - 3 AS col0, ( + ( + 41 ) ) * + + CAST ( NULL AS INTEGER ) + - 46
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT 8 * ( + 47 ) * + - 70 + - COUNT( * )
----
-26321

skipif mysql # not compatible
query I rowsort label-6104
SELECT 8 * ( + 47 ) * + - 70 + - COUNT ( * )
----
-26321

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL 29 * + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 29 * + COUNT ( * )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT 14 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-6106
SELECT 14 / + 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT + 14 DIV + 59 - + 40 * + - MAX( ALL - + 35 ) AS col2
----
-1400

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 14 / + 59 - + 40 * + - MAX ( ALL - + 35 ) AS col2
----
-1400

query I rowsort
SELECT 98 * + 58
----
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT 4 - NULLIF ( + - 58, COUNT( * ) + - COUNT( DISTINCT + 91 ) * + 20 * + MAX( - 8 ) * + 88 - - COUNT( * ) ) * ( - 89 ) DIV - 71 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6109
SELECT 4 - NULLIF ( + - 58, COUNT ( * ) + - COUNT ( DISTINCT + 91 ) * + 20 * + MAX ( - 8 ) * + 88 - - COUNT ( * ) ) * ( - 89 ) / - 71 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL + NULLIF ( + 32, - + 70 ) * + CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + NULLIF ( + 32, - + 70 ) * + CAST ( NULL AS INTEGER ) * 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT - CAST( NULL AS SIGNED ) * - + 24 - + COALESCE ( - + 74, + 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT - CAST ( NULL AS INTEGER ) * - + 24 - + COALESCE ( - + 74, + 9 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL CAST( 50 AS SIGNED ) * - CASE + 47 WHEN 21 THEN ( + 84 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL CAST ( 50 AS INTEGER ) * - CASE + 47 WHEN 21 THEN ( + 84 ) END AS col1
----
NULL

query I rowsort
SELECT - 77 * + + 35 AS col1
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL + + COUNT( * ) * CASE 47 WHEN + + SUM( DISTINCT - 83 ) * - 69 + MAX( ALL + + 44 ) + - 15 - + 85 / - 26 THEN - 2 / - - 95 * 42 END * + - ( + - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + + COUNT ( * ) * CASE 47 WHEN + + SUM ( DISTINCT - 83 ) * - 69 + MAX ( ALL + + 44 ) + - 15 - + 85 / - 26 THEN - 2 / - - 95 * 42 END * + - ( + - 30 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT + - CAST( - - 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6115
SELECT + - CAST ( - - 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT - 66 + + 56
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT 10 + + SUM( 19 ) * + 98 AS col2
----
1872

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT 10 + + SUM ( 19 ) * + 98 AS col2
----
1872

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6118
SELECT 47 + - 68 + - + 34 * - COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT 47 + - 68 + - + 34 * - COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 49 - + 14 + + ( 50 ) AS col2
----
-13

query I rowsort
SELECT ALL - 42 * + 60
----
-2520

query I rowsort
SELECT ALL - - 31 + + NULLIF ( - - 83, + - 59 )
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT - + ( AVG ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT - + ( AVG ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL SUM( 14 ) + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL SUM ( 14 ) + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6124
SELECT - 25 DIV - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6124
SELECT - 25 / - + COUNT ( * )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT SUM( 39 ) + - CAST( + 39 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT SUM ( 39 ) + - CAST ( + 39 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + + 42 AS col0
----
NULL

query I rowsort
SELECT 46 * 67 + - 5 col1
----
3077

query I rowsort
SELECT 49 * - ( + + 2 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT CAST( - 77 AS SIGNED ) + 13
----
-64

skipif mysql # not compatible
query I rowsort label-6129
SELECT CAST ( - 77 AS INTEGER ) + 13
----
-64

query I rowsort
SELECT 15 * + + 50 * - 84 AS col0
----
-63000

query I rowsort
SELECT DISTINCT COALESCE ( - 95, - 83 * + ( + 96 ) ) + 42 col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6132
SELECT 86, - CAST( + 94 AS SIGNED ) AS col2, + 47 AS col0
----
86
-94
47

skipif mysql # not compatible
query III rowsort label-6132
SELECT 86, - CAST ( + 94 AS INTEGER ) AS col2, + 47 AS col0
----
86
-94
47

query I rowsort
SELECT DISTINCT 6 - + 5
----
1

query I rowsort
SELECT ALL 0 * 91 AS col2
----
0

query I rowsort
SELECT 92 * - 0 + - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT COALESCE ( + - 50, - COALESCE ( - 8, - 11 * - CASE 12 WHEN + AVG ( ALL + COALESCE ( - 39, + 60 ) ) - + - ( - 96 ) THEN NULL ELSE + COUNT( * ) END ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6136
SELECT COALESCE ( + - 50, - COALESCE ( - 8, - 11 * - CASE 12 WHEN + AVG ( ALL + COALESCE ( - 39, + 60 ) ) - + - ( - 96 ) THEN NULL ELSE + COUNT ( * ) END ) ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - COUNT( * ) * + 14 + + + 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6137
SELECT - COUNT ( * ) * + 14 + + + 18 AS col0
----
4

query I rowsort
SELECT - 64 * - 99
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT + MIN( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + MIN ( ALL 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT COUNT( * ) AS col2, MAX( ALL + + COALESCE ( - 83, + - 42 ) ) + + COUNT( * ) AS col1
----
1
-82

skipif mysql # not compatible
query II rowsort label-6140
SELECT COUNT ( * ) AS col2, MAX ( ALL + + COALESCE ( - 83, + - 42 ) ) + + COUNT ( * ) AS col1
----
1
-82

query I rowsort
SELECT - 28 * 52
----
-1456

query I rowsort
SELECT - 9 * + 4 + 81
----
45

query I rowsort
SELECT - 33 * - 23
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - COALESCE ( + NULLIF ( 67, - SUM( ALL + 42 ) * - MIN( 56 ) ), + 22 ) * 44 AS col0
----
-2948

skipif mysql # not compatible
query I rowsort label-6144
SELECT - COALESCE ( + NULLIF ( 67, - SUM ( ALL + 42 ) * - MIN ( 56 ) ), + 22 ) * 44 AS col0
----
-2948

query I rowsort
SELECT DISTINCT - 41 * + ( 10 ) + + 92 * - 23 AS col0
----
-2526

query I rowsort
SELECT ALL 34 * 62 + 32 AS col2
----
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT + NULLIF ( 45, COUNT( * ) * - 54 )
----
45

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + NULLIF ( 45, COUNT ( * ) * - 54 )
----
45

query I rowsort
SELECT - 3 + - 68 * - 53
----
3601

query I rowsort
SELECT DISTINCT - 76 + 45
----
-31

query I rowsort
SELECT - 38 * 61 AS col2
----
-2318

query I rowsort
SELECT ALL 67 + + 95 AS col2
----
162

query I rowsort
SELECT DISTINCT - 86 + + 70 * 71 AS col2
----
4884

query I rowsort
SELECT DISTINCT ( - ( + 45 ) ) AS col1
----
-45

query I rowsort
SELECT - ( - 19 ) + - 48 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT - 72 - + ( - 79 + - CASE ( - 42 ) WHEN + ( - 26 ) THEN 12 ELSE - NULLIF ( + CAST( 83 AS SIGNED ), - 83 ) END ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6155
SELECT - 72 - + ( - 79 + - CASE ( - 42 ) WHEN + ( - 26 ) THEN 12 ELSE - NULLIF ( + CAST ( 83 AS INTEGER ), - 83 ) END ) AS col1
----
-76

query I rowsort
SELECT + 78 * + 50 AS col1
----
3900

query I rowsort
SELECT + 95 + + 9 * 47 AS col1
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT ( + SUM( ALL 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT ( + SUM ( ALL 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT 18 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT 18 * COUNT ( * )
----
18

query I rowsort
SELECT ALL - 41 - ( 62 ) * 95 AS col1
----
-5931

query I rowsort
SELECT + 59 + 98
----
157

query I rowsort
SELECT + 35 + 4 * + 93 AS col2
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL COUNT ( * ) * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT + COALESCE ( + 1, + 78 * + COUNT( ALL + 66 / - 17 ), + ( 64 ) * 44 + 0 * - 7 ) * 67
----
67

skipif mysql # not compatible
query I rowsort label-6164
SELECT + COALESCE ( + 1, + 78 * + COUNT ( ALL + 66 / - 17 ), + ( 64 ) * 44 + 0 * - 7 ) * 67
----
67

query I rowsort
SELECT + 12 + 48
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - COUNT( 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-6166
SELECT - COUNT ( 70 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + 82 * COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-6167
SELECT + 82 * COUNT ( * ) col1
----
82

query I rowsort
SELECT + 5 + + 60 * - 81
----
-4855

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - COUNT( DISTINCT + ( 21 ) ) + 29 * 72
----
2087

skipif mysql # not compatible
query I rowsort label-6169
SELECT - COUNT ( DISTINCT + ( 21 ) ) + 29 * 72
----
2087

query I rowsort
SELECT + 52 * + 32
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT - 89 * + CASE + CAST( ( - 38 ) AS SIGNED ) WHEN 84 * + 49 THEN + COUNT( * ) * 77 WHEN + 2 THEN + 41 ELSE COUNT( * ) * 43 END
----
-3827

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - 89 * + CASE + CAST ( ( - 38 ) AS INTEGER ) WHEN 84 * + 49 THEN + COUNT ( * ) * 77 WHEN + 2 THEN + 41 ELSE COUNT ( * ) * 43 END
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL + NULLIF ( 53, - COUNT( ALL - 22 ) * + 62 - 43 * - 99 )
----
53

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + NULLIF ( 53, - COUNT ( ALL - 22 ) * + 62 - 43 * - 99 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT ( MIN( DISTINCT + CAST( - 63 AS SIGNED ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6173
SELECT ( MIN ( DISTINCT + CAST ( - 63 AS INTEGER ) ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT DISTINCT - 45 DIV + 88 + - 76 * 21 AS col1
----
-1596

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT - 45 / + 88 + - 76 * 21 AS col1
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT ALL - + 33 / - ( - CAST( NULL AS SIGNED ) - 5 * 13 ) + ( - 57 + 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - + 33 / - ( - CAST ( NULL AS INTEGER ) - 5 * 13 ) + ( - 57 + 62 ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( ( 10 ), - 74 / 71 )
----
10

query I rowsort
SELECT - 95 * + 33 AS col2
----
-3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6178
SELECT ALL + CAST( NULL AS SIGNED ) * 14 + + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + CAST ( NULL AS INTEGER ) * 14 + + COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + + 86 - 35
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT + + CAST( 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6180
SELECT + + CAST ( 76 AS INTEGER )
----
76

query I rowsort
SELECT DISTINCT + CASE 36 WHEN - 78 THEN NULL WHEN + 18 / - 61 THEN NULL ELSE COALESCE ( + 87, + 74 * + 77 ) END AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT - + 36 DIV - 8
----
4

skipif mysql # not compatible
query I rowsort label-6182
SELECT - + 36 / - 8
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT DISTINCT + 9 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + 9 / - 59
----
0

query I rowsort
SELECT - 84 - + 91 * - 57
----
5103

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL + - MAX( DISTINCT 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + - MAX ( DISTINCT 14 )
----
-14

query I rowsort
SELECT + - 59 * - 29
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - COALESCE ( + COUNT( * ), 81 + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6187
SELECT - COALESCE ( + COUNT ( * ), 81 + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6188
SELECT ALL CAST( NULL AS DECIMAL ) * + 35 + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL CAST ( NULL AS REAL ) * + 35 + + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + 72 * + COUNT( * ) - - 49 * - 13 AS col1
----
-565

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + 72 * + COUNT ( * ) - - 49 * - 13 AS col1
----
-565

query I rowsort
SELECT - - 9 + - 67
----
-58

query I rowsort
SELECT - - 4 * + ( - 16 * - 51 )
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT ALL + - 88 * MIN( DISTINCT CAST( + 6 AS SIGNED ) ) AS col1
----
-528

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + - 88 * MIN ( DISTINCT CAST ( + 6 AS INTEGER ) ) AS col1
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - 24 * CASE 37 WHEN 21 THEN + 1 * + NULLIF ( COUNT( * ), 48 + - 24 ) WHEN - AVG ( ALL - 22 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - 24 * CASE 37 WHEN 21 THEN + 1 * + NULLIF ( COUNT ( * ), 48 + - 24 ) WHEN - AVG ( ALL - 22 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT DISTINCT - NULLIF ( 58, CAST( NULLIF ( - 22, - COALESCE ( 37, - 93 - + 94 ) - 0 ) AS SIGNED ) ) * + 17
----
-986

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - NULLIF ( 58, CAST ( NULLIF ( - 22, - COALESCE ( 37, - 93 - + 94 ) - 0 ) AS INTEGER ) ) * + 17
----
-986

query I rowsort
SELECT DISTINCT - 55 * + 69 * + 18 AS col2
----
-68310

query I rowsort
SELECT DISTINCT + 92 - 62
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT CAST( + COALESCE ( + 5, 84, - 41 / 42 ) AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT CAST ( + COALESCE ( + 5, 84, - 41 / 42 ) AS INTEGER ) AS col0
----
5

query I rowsort
SELECT - 94 + - 65
----
-159

query I rowsort
SELECT 98 * + - ( - 0 ) * ( - 21 * - 87 + + 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT COUNT( * ) * - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6200
SELECT COUNT ( * ) * - 16 AS col0
----
-16

query I rowsort
SELECT 4 + 87 AS col0
----
91

query I rowsort
SELECT 14 + 91 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT ALL ( 15 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL ( 15 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT COUNT( * ) * - 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6204
SELECT COUNT ( * ) * - 96 AS col2
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6205
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) * 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL ( - - CAST ( NULL AS REAL ) ) * 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT COUNT( * ) - - ( COALESCE ( 46, + 60, - 2 ) )
----
47

skipif mysql # not compatible
query I rowsort label-6206
SELECT COUNT ( * ) - - ( COALESCE ( 46, + 60, - 2 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT + CASE + - 42 WHEN - 43 * + COUNT( * ) THEN + 47 WHEN + 58 THEN NULL ELSE NULL END / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + CASE + - 42 WHEN - 43 * + COUNT ( * ) THEN + 47 WHEN + 58 THEN NULL ELSE NULL END / - 36
----
NULL

query I rowsort
SELECT ALL 40 + + 79 AS col2
----
119

query I rowsort
SELECT 39 - + 12 AS col1
----
27

query I rowsort
SELECT DISTINCT 69 + - 82 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT 23 * + MIN( DISTINCT ( 83 ) )
----
1909

skipif mysql # not compatible
query I rowsort label-6211
SELECT 23 * + MIN ( DISTINCT ( 83 ) )
----
1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6212
SELECT 58 + + ( ( CAST( CASE NULLIF ( 42, 63 - 58 ) WHEN 0 * 44 + 60 THEN MAX( DISTINCT - 36 ) WHEN 68 / 22 THEN - COUNT( * ) END AS SIGNED ) ) ) * ( - MIN( - CAST( 61 AS DECIMAL ) ) * - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT 58 + + ( ( CAST ( CASE NULLIF ( 42, 63 - 58 ) WHEN 0 * 44 + 60 THEN MAX ( DISTINCT - 36 ) WHEN 68 / 22 THEN - COUNT ( * ) END AS INTEGER ) ) ) * ( - MIN ( - CAST ( 61 AS REAL ) ) * - 10 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL COUNT( * ) + - COUNT( * ) + + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 70 AS col0
----
70

query I rowsort
SELECT + 20 * - 79 + ( 12 ) col1
----
-1568

query I rowsort
SELECT + - ( - - 73 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT + 80 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT + 80 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT - 33 DIV - - ( - 15 ) + 41 * 57 AS col2
----
2339

skipif mysql # not compatible
query I rowsort label-6217
SELECT - 33 / - - ( - 15 ) + 41 * 57 AS col2
----
2339

query I rowsort
SELECT + + 34 * 46 - 0 AS col1
----
1564

query I rowsort
SELECT ALL + 46 + + + ( + 37 ) - + 98
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT 52 + - COUNT( * ) + + ( - 81 ) * 7
----
-516

skipif mysql # not compatible
query I rowsort label-6220
SELECT 52 + - COUNT ( * ) + + ( - 81 ) * 7
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - COUNT( * ) + + - 40 * - 54
----
2159

skipif mysql # not compatible
query I rowsort label-6221
SELECT - COUNT ( * ) + + - 40 * - 54
----
2159

query I rowsort
SELECT ALL 16 + - 12 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT + MAX( ALL - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6223
SELECT + MAX ( ALL - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL - CASE + 2 WHEN COALESCE ( COALESCE ( - COALESCE ( 42, + 41 * - COUNT( + 20 ) ), 6 ), - COUNT( * ) + - 53 * COUNT( * ) ) * 24 THEN NULLIF ( CASE - SUM( ALL COALESCE ( - 47, 52 + ( - ( - 46 ) - + 93 ) ) ) WHEN - COUNT( * ) THEN - ( 54 ) - + COUNT( * ) WHEN + 90 - 24 THEN + 63 * + 11 ELSE - 4 - + SUM( 25 ) END, - 51 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - CASE + 2 WHEN COALESCE ( COALESCE ( - COALESCE ( 42, + 41 * - COUNT ( + 20 ) ), 6 ), - COUNT ( * ) + - 53 * COUNT ( * ) ) * 24 THEN NULLIF ( CASE - SUM ( ALL COALESCE ( - 47, 52 + ( - ( - 46 ) - + 93 ) ) ) WHEN - COUNT ( * ) THEN - ( 54 ) - + COUNT ( * ) WHEN + 90 - 24 THEN + 63 * + 11 ELSE - 4 - + SUM ( 25 ) END, - 51 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL + MIN( ALL - 56 ) + 71 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + MIN ( ALL - 56 ) + 71 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + 63 * + COUNT( * ) - + 6
----
57

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + 63 * + COUNT ( * ) - + 6
----
57

query I rowsort
SELECT - ( + - 35 ) AS col2
----
35

query I rowsort
SELECT + 96 + - + 27 AS col2
----
69

query I rowsort
SELECT ALL - 19 - - 84 col1
----
65

query I rowsort
SELECT - NULLIF ( + ( + 8 ), 1 ) * + 67
----
-536

query I rowsort
SELECT DISTINCT + ( - 50 ) - + 29
----
-79

query I rowsort
SELECT 22 * + 18 + + 22 + NULLIF ( 49, 3 )
----
467

query I rowsort
SELECT - ( 25 ) * + 76 col1
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT - + ( - SUM( ALL 35 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - + ( - SUM ( ALL 35 ) ) AS col2
----
35

query I rowsort
SELECT ALL - 78 - - 74 col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT 8 DIV + 36 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT 8 / + 36 * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL + 69 / + + 79 * CASE - 64 WHEN 72 THEN + 12 + - 19 * - COUNT( * ) WHEN 60 * NULLIF ( - 13, - 58 ) THEN + 4 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + 69 / + + 79 * CASE - 64 WHEN 72 THEN + 12 + - 19 * - COUNT ( * ) WHEN 60 * NULLIF ( - 13, - 58 ) THEN + 4 END col1
----
NULL

query I rowsort
SELECT 14 + - - 17
----
31

query I rowsort
SELECT 24 + + - 69 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT ALL 46 AS col0, SUM( - 12 ) AS col2
----
46
-12

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL 46 AS col0, SUM ( - 12 ) AS col2
----
46
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT 33 DIV - ( 3 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6241
SELECT 33 / - ( 3 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6242
SELECT 4 * - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT 7 - + + CASE 82 WHEN 13 THEN 9 WHEN + 62 THEN NULL ELSE 58 * 74 END + - 45 * - 96
----
35

query II rowsort
SELECT ALL 55 AS col0, 7
----
55
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT DISTINCT + 88 + + COUNT( * ) * + + 52 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT + 88 + + COUNT ( * ) * + + 52 AS col2
----
140

query I rowsort
SELECT ALL - ( + 66 ) + + - 62
----
-128

query I rowsort
SELECT ALL + 79 * 9 AS col0
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6248
SELECT 26 AS col1, - 0 - + CASE - 63 WHEN 65 * 30 THEN + 3 * 20 ELSE - 14 / 56 + COUNT( * ) END - 89 * - CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6248
SELECT 26 AS col1, - 0 - + CASE - 63 WHEN 65 * 30 THEN + 3 * 20 ELSE - 14 / 56 + COUNT ( * ) END - 89 * - CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT ALL + 7 + + + 29 * - 69 AS col2
----
-1994

query I rowsort
SELECT 39 + - + 82 AS col2
----
-43

query I rowsort
SELECT ALL 17 + + - 11 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT 49 + + + 85 + 50 + 51 * COUNT( - ( - 34 ) ) * 29 AS col2
----
1663

skipif mysql # not compatible
query I rowsort label-6252
SELECT 49 + + + 85 + 50 + 51 * COUNT ( - ( - 34 ) ) * 29 AS col2
----
1663

query I rowsort
SELECT ALL - 34 + + 33
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT COUNT( + 48 ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-6254
SELECT COUNT ( + 48 ) * 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT 29 * - MAX( + 13 )
----
-377

skipif mysql # not compatible
query I rowsort label-6255
SELECT 29 * - MAX ( + 13 )
----
-377

query II rowsort
SELECT 26, 53 * + 8 + 95 AS col0
----
26
519

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT COUNT( * ) + + - 32 + 98
----
67

skipif mysql # not compatible
query I rowsort label-6257
SELECT COUNT ( * ) + + - 32 + 98
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT 21 DIV 17
----
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT 21 / 17
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6259
SELECT DISTINCT - 80 AS col1, + 9 DIV + 48 AS col2
----
-80
0

skipif mysql # not compatible
query II rowsort label-6259
SELECT DISTINCT - 80 AS col1, + 9 / + 48 AS col2
----
-80
0

query I rowsort
SELECT DISTINCT + 42 * - 50 * + + ( 1 ) AS col0
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT ALL + 8 * 15 + - CASE - CAST( NULL AS SIGNED ) WHEN - CASE + 90 WHEN ( + 20 ) * 39 THEN + 65 END * 32 THEN COUNT( * ) * - 10 - COUNT( * ) ELSE + 38 END * - 48 + COUNT( * ) col2
----
1945

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + 8 * 15 + - CASE - CAST ( NULL AS INTEGER ) WHEN - CASE + 90 WHEN ( + 20 ) * 39 THEN + 65 END * 32 THEN COUNT ( * ) * - 10 - COUNT ( * ) ELSE + 38 END * - 48 + COUNT ( * ) col2
----
1945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6262
SELECT + - 98, 23 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-6262
SELECT + - 98, 23 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
-98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6263
SELECT ALL + 14 DIV - 35 + + CASE COALESCE ( 4, 36 + + COALESCE ( - 56 + AVG ( ALL - 86 - - 71 DIV 12 ), 40 ) ) WHEN COUNT( * ) THEN NULL ELSE 76 END AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 14 / - 35 + + CASE COALESCE ( 4, 36 + + COALESCE ( - 56 + AVG ( ALL - 86 - - 71 / 12 ), 40 ) ) WHEN COUNT ( * ) THEN NULL ELSE 76 END AS col2
----
76

query I rowsort
SELECT 90 * - + 36 AS col2
----
-3240

query I rowsort
SELECT + - ( 65 ) AS col1
----
-65

query I rowsort
SELECT ALL ( 18 ) * - COALESCE ( 68, + 91 * 70 ) * 77 col2
----
-94248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT - 13 DIV COUNT( * ) - 23
----
-36

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 13 / COUNT ( * ) - 23
----
-36

query I rowsort
SELECT 67 * - 99 AS col0
----
-6633

query I rowsort
SELECT NULLIF ( - 68, + - 62 ) AS col1
----
-68

query I rowsort
SELECT 70 - + 15
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - 2 * - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6271
SELECT - 2 * - + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT ALL ( 31 ) DIV + COUNT( 5 )
----
31

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL ( 31 ) / + COUNT ( 5 )
----
31

query I rowsort
SELECT DISTINCT + 29 * - - 45 * 20
----
26100

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL - COALESCE ( 77, + SUM( ALL ( ( + 88 ) ) ), 66 )
----
-77

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - COALESCE ( 77, + SUM ( ALL ( ( + 88 ) ) ), 66 )
----
-77

query I rowsort
SELECT 39 - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT - MIN( DISTINCT + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - MIN ( DISTINCT + 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT CAST( NULL AS SIGNED ) - + + 24 / - 45 * 40 + 94 * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( NULL AS INTEGER ) - + + 24 / - 45 * 40 + 94 * - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6278
SELECT + CAST( NULL AS SIGNED ) * + 72 col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-6278
SELECT + CAST ( NULL AS INTEGER ) * + 72 col2, 36
----
NULL
36

query I rowsort
SELECT + 13 * 60
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT ( - 19 ) * - COUNT( * ) * - ( 26 ) - 77 AS col0
----
-571

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT ( - 19 ) * - COUNT ( * ) * - ( 26 ) - 77 AS col0
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT + 59 + COUNT( * ) + 35 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6281
SELECT + 59 + COUNT ( * ) + 35 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT + 77 * 32 DIV - + 37 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6283
SELECT + 77 * 32 / - + 37 AS col0
----
-66

query I rowsort
SELECT + 35 + - - 21 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT 0 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT 0 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 97 ) + + - ( + 3 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL 35 + - COUNT( * ) * - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL 35 + - COUNT ( * ) * - + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT DISTINCT CASE + 71 WHEN + 44 THEN + 41 + - 24 ELSE - CAST( + 11 AS SIGNED ) * 99 END + 73 * + 58
----
3145

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT CASE + 71 WHEN + 44 THEN + 41 + - 24 ELSE - CAST ( + 11 AS INTEGER ) * 99 END + 73 * + 58
----
3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6289
SELECT + 17 + - COALESCE ( + 25, - 41 DIV 55, NULLIF ( 83, - COUNT( * ) * - 31 ) + - 84 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6289
SELECT + 17 + - COALESCE ( + 25, - 41 / 55, NULLIF ( 83, - COUNT ( * ) * - 31 ) + - 84 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - NULLIF ( + CASE 41 WHEN + 2 * 10 THEN NULL WHEN + ( - ( - 14 ) ) * ( + NULLIF ( + 12, - 78 * 47 ) / CASE + CASE WHEN ( NULL ) >= 98 THEN NULL ELSE COUNT( * ) END * + 68 WHEN + 79 * - 83 THEN - ( COUNT( * ) ) ELSE - 45 END ) - - 35 THEN NULL ELSE + COUNT( * ) + + ( + 78 ) END, 35 )
----
-79

skipif mysql # not compatible
query I rowsort label-6290
SELECT - NULLIF ( + CASE 41 WHEN + 2 * 10 THEN NULL WHEN + ( - ( - 14 ) ) * ( + NULLIF ( + 12, - 78 * 47 ) / CASE + CASE WHEN ( NULL ) >= 98 THEN NULL ELSE COUNT ( * ) END * + 68 WHEN + 79 * - 83 THEN - ( COUNT ( * ) ) ELSE - 45 END ) - - 35 THEN NULL ELSE + COUNT ( * ) + + ( + 78 ) END, 35 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + 11 + + COUNT( ALL + CASE 59 WHEN 63 THEN - 86 ELSE NULL END ) + + MIN( 52 )
----
63

skipif mysql # not compatible
query I rowsort label-6291
SELECT + 11 + + COUNT ( ALL + CASE 59 WHEN 63 THEN - 86 ELSE NULL END ) + + MIN ( 52 )
----
63

query I rowsort
SELECT - CASE + 27 WHEN - 34 * - ( 40 ) THEN ( ( - 52 ) ) WHEN 51 * + 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT - 51 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT - 51 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 12 * - 64 AS col1
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6295
SELECT - 63 + + CASE - + CASE - COUNT( * ) WHEN - 37 THEN NULLIF ( + ( - 59 ), 8 + 13 ) - 43 END WHEN + 57 THEN NULL WHEN - 75 + + 25 * 6 THEN NULL WHEN - COUNT( * ) / 8 THEN NULL WHEN COUNT( * ) * 13 + 21 THEN NULL ELSE + CAST( NULL AS SIGNED ) END + 79 * + 1 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 63 + + CASE - + CASE - COUNT ( * ) WHEN - 37 THEN NULLIF ( + ( - 59 ), 8 + 13 ) - 43 END WHEN + 57 THEN NULL WHEN - 75 + + 25 * 6 THEN NULL WHEN - COUNT ( * ) / 8 THEN NULL WHEN COUNT ( * ) * 13 + 21 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + 79 * + 1 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 3 + - - 17 + - 81 - 18
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6297
SELECT ALL + - 61 - + - COUNT( * ) - - COUNT( * ) DIV MAX( DISTINCT - 20 ) * NULLIF ( - CAST( - 32 AS SIGNED ) + - 60, + CAST( + 93 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + - 61 - + - COUNT ( * ) - - COUNT ( * ) / MAX ( DISTINCT - 20 ) * NULLIF ( - CAST ( - 32 AS INTEGER ) + - 60, + CAST ( + 93 AS INTEGER ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT + - 45 * 33 + COUNT( * ) * - + 91 * - 29
----
1154

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + - 45 * 33 + COUNT ( * ) * - + 91 * - 29
----
1154

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT - SUM( ALL + + 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - SUM ( ALL + + 45 ) col1
----
-45

query I rowsort
SELECT DISTINCT + 85 - 82 - - + 52 + - + 31 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT + CASE - 68 WHEN - NULLIF ( 42, ( - 83 ) - 18 ) / + 81 THEN - 44 / - 7 WHEN + COALESCE ( + 14, - 40 ) + NULLIF ( + CASE 66 WHEN 33 THEN NULL WHEN - 94 THEN + 45 + - 37 WHEN 99 THEN + 93 ELSE 62 / - 74 END, + NULLIF ( 92, COUNT( * ) - - 98 ) * COUNT( * ) ) * 20 THEN - 0 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT + CASE - 68 WHEN - NULLIF ( 42, ( - 83 ) - 18 ) / + 81 THEN - 44 / - 7 WHEN + COALESCE ( + 14, - 40 ) + NULLIF ( + CASE 66 WHEN 33 THEN NULL WHEN - 94 THEN + 45 + - 37 WHEN 99 THEN + 93 ELSE 62 / - 74 END, + NULLIF ( 92, COUNT ( * ) - - 98 ) * COUNT ( * ) ) * 20 THEN - 0 ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT - 90 * 45 + 30 - 92 * + 29 AS col2
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + - CASE - 4 WHEN - SUM( ALL - + 79 ) THEN 44 END * COUNT( * ) + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT + - CASE - 4 WHEN - SUM ( ALL - + 79 ) THEN 44 END * COUNT ( * ) + + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT DISTINCT + + ( - - 47 ) col1, COUNT( * ) + - + 75 - COUNT( * ) * COUNT( * )
----
47
-75

skipif mysql # not compatible
query II rowsort label-6304
SELECT DISTINCT + + ( - - 47 ) col1, COUNT ( * ) + - + 75 - COUNT ( * ) * COUNT ( * )
----
47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL + MIN( + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + MIN ( + - 22 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT CAST( - - 89 AS SIGNED ) * + - NULLIF ( 72, CAST( - 46 AS SIGNED ) * - ( 2 ) - + 22 * 74 ) - COUNT( * )
----
-6409

skipif mysql # not compatible
query I rowsort label-6306
SELECT CAST ( - - 89 AS INTEGER ) * + - NULLIF ( 72, CAST ( - 46 AS INTEGER ) * - ( 2 ) - + 22 * 74 ) - COUNT ( * )
----
-6409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT ALL + - 23 * - 17 - NULLIF ( MIN( 87 ), - 83 ) DIV + ( + 36 ) AS col1
----
389

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + - 23 * - 17 - NULLIF ( MIN ( 87 ), - 83 ) / + ( + 36 ) AS col1
----
389

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT ALL - 36 * - COALESCE ( + 88, + 20 DIV 75 )
----
3168

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - 36 * - COALESCE ( + 88, + 20 / 75 )
----
3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT - 53 DIV + CASE 42 WHEN + 15 DIV 84 THEN NULL WHEN ( - 87 ) * 33 THEN COUNT( * ) + - 80 ELSE - 56 * - 48 END + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6309
SELECT - 53 / + CASE 42 WHEN + 15 / 84 THEN NULL WHEN ( - 87 ) * 33 THEN COUNT ( * ) + - 80 ELSE - 56 * - 48 END + 24 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT DISTINCT - - 52 / + 45 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - - 52 / + 45 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 11 * - + 87 AS col1, 11 * - 91
----
957
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - CASE - COUNT( ALL + 72 ) WHEN + - COUNT( * ) THEN 45 * COUNT( * ) + + MIN( 16 + 16 ) WHEN + COUNT( * ) / + ( + 32 ) THEN 75 + + 87 * + 42 WHEN + 30 / 28 + COUNT( * ) THEN NULL ELSE NULL END * - 52 AS col0
----
4004

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - CASE - COUNT ( ALL + 72 ) WHEN + - COUNT ( * ) THEN 45 * COUNT ( * ) + + MIN ( 16 + 16 ) WHEN + COUNT ( * ) / + ( + 32 ) THEN 75 + + 87 * + 42 WHEN + 30 / 28 + COUNT ( * ) THEN NULL ELSE NULL END * - 52 AS col0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT CASE + 39 WHEN - - 49 * - 89 - 34 THEN NULL WHEN 61 THEN NULL WHEN - 67 THEN - 47 - - SUM( ALL + 95 ) ELSE 4 * 63 + MAX( ALL 64 ) END
----
316

skipif mysql # not compatible
query I rowsort label-6313
SELECT CASE + 39 WHEN - - 49 * - 89 - 34 THEN NULL WHEN 61 THEN NULL WHEN - 67 THEN - 47 - - SUM ( ALL + 95 ) ELSE 4 * 63 + MAX ( ALL 64 ) END
----
316

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL + 69 AS col0, COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL + 69 AS col0, COUNT ( * )
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL + 47 * + - MAX( - 99 ) + - 27 AS col2
----
4626

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL + 47 * + - MAX ( - 99 ) + - 27 AS col2
----
4626

query I rowsort
SELECT - 59 * 96
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT CASE - 34 WHEN + MIN( 13 ) THEN + + 87 * - ( + 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT CASE - 34 WHEN + MIN ( 13 ) THEN + + 87 * - ( + 63 ) END
----
NULL

query II rowsort
SELECT ALL + 88, + 7 col0
----
88
7

query I rowsort
SELECT CASE - 7 WHEN 65 THEN - ( - + 71 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 37 * 89 + 38 * + 29 * 67 AS col2
----
77127

query I rowsort
SELECT + 23 + - 41
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT SUM( - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6322
SELECT SUM ( - 36 ) AS col1
----
-36

query I rowsort
SELECT + CASE - 74 WHEN - 82 * 49 THEN - 55 END * 8 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - NULLIF ( - MIN( ALL - 61 ), - ( + 68 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6324
SELECT - NULLIF ( - MIN ( ALL - 61 ), - ( + 68 ) )
----
-61

query I rowsort
SELECT + 87 * 14 AS col2
----
1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT - 93 + - 93 DIV 59 + + SUM( - 72 ) AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-6326
SELECT - 93 + - 93 / 59 + + SUM ( - 72 ) AS col0
----
-166

query I rowsort
SELECT DISTINCT 16 * + 20 AS col2
----
320

query I rowsort
SELECT ALL 75 - - - 67 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL COUNT( * ) * - 52 * - - 75 AS col2
----
-3900

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL COUNT ( * ) * - 52 * - - 75 AS col2
----
-3900

query I rowsort
SELECT ALL + 56 - + 74 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT + + 76 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-6331
SELECT + + 76 / + 37
----
2

query I rowsort
SELECT - + CASE 15 WHEN + - 42 THEN + 54 WHEN + 65 THEN NULL END
----
NULL

query I rowsort
SELECT - - 95 * 35
----
3325

query I rowsort
SELECT - - 37 * - 40
----
-1480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6335
SELECT ALL + 31 DIV + + 32 + 5 * + MIN( DISTINCT + 87 ) * 82
----
35670

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 31 / + + 32 + 5 * + MIN ( DISTINCT + 87 ) * 82
----
35670

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - + COUNT( * ) + - - 10 + 20 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6336
SELECT - + COUNT ( * ) + - - 10 + 20 AS col0
----
29

query II rowsort
SELECT DISTINCT + 98 * - ( - - 24 ), + ( COALESCE ( - 4, - 61 * 49 ) ) * 65 + 0 AS col2
----
-2352
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - + SUM( DISTINCT + 81 ) * - + 30
----
2430

skipif mysql # not compatible
query I rowsort label-6338
SELECT - + SUM ( DISTINCT + 81 ) * - + 30
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL + - SUM( ALL + - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + - SUM ( ALL + - 36 ) AS col0
----
36

query I rowsort
SELECT DISTINCT - - 92 * 13 - + 77 * - 9
----
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT - 42 * 39 + AVG ( ALL - + 11 ) + - - CASE 10 WHEN 2 + - COUNT( * ) * + 30 THEN 73 * ( - COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 42 * 39 + AVG ( ALL - + 11 ) + - - CASE 10 WHEN 2 + - COUNT ( * ) * + 30 THEN 73 * ( - COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 12 * + 65 AS col0
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6343
SELECT ALL + - 81 AS col1, CAST( NULL AS SIGNED ) + 74
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL + - 81 AS col1, CAST ( NULL AS INTEGER ) + 74
----
-81
NULL

query I rowsort
SELECT ALL - - 50 * - 76 AS col0
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + SUM( + 42 ) * + 20 AS col1
----
840

skipif mysql # not compatible
query I rowsort label-6345
SELECT + SUM ( + 42 ) * + 20 AS col1
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT + + 55 / + 1 + - CAST( NULL AS SIGNED ) + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT + + 55 / + 1 + - CAST ( NULL AS INTEGER ) + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT 68 * - - ( + MAX( DISTINCT - + 35 ) ) - + 90
----
-2470

skipif mysql # not compatible
query I rowsort label-6347
SELECT 68 * - - ( + MAX ( DISTINCT - + 35 ) ) - + 90
----
-2470

query I rowsort
SELECT 8 + 83 * - 69 AS col0
----
-5719

query II rowsort
SELECT + 85, 53 AS col0
----
85
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6350
SELECT ALL - COUNT( * ) DIV - 70 * - 8 * - - NULLIF ( 30, + COUNT( * ) DIV - 18 - CAST( NULL AS SIGNED ) * 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - COUNT ( * ) / - 70 * - 8 * - - NULLIF ( 30, + COUNT ( * ) / - 18 - CAST ( NULL AS INTEGER ) * 70 ) AS col1
----
0

query I rowsort
SELECT ALL + 20 + 88 col0
----
108

query I rowsort
SELECT DISTINCT 83 * 33
----
2739

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT ALL - 4, 74 * + COUNT( * ) AS col1
----
-4
74

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL - 4, 74 * + COUNT ( * ) AS col1
----
-4
74

query I rowsort
SELECT ALL 0 + - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT 43 - - COUNT( DISTINCT 8 ) - + + 52
----
-8

skipif mysql # not compatible
query I rowsort label-6355
SELECT 43 - - COUNT ( DISTINCT 8 ) - + + 52
----
-8

query I rowsort
SELECT ALL + 48 * - ( + 52 )
----
-2496

query I rowsort
SELECT 52 + ( - - 34 ) col0
----
86

query II rowsort
SELECT + 7, + 95 AS col2
----
7
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL - 75 * + COUNT( ALL 77 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - 75 * + COUNT ( ALL 77 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT SUM( + 3 ) * - COUNT( * ) * - 51 + + NULLIF ( + 65, - 61 )
----
218

skipif mysql # not compatible
query I rowsort label-6360
SELECT SUM ( + 3 ) * - COUNT ( * ) * - 51 + + NULLIF ( + 65, - 61 )
----
218

query II rowsort
SELECT - 64, + 27 + 86 col0
----
-64
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT 42 + + + 13 + - - 95 * COUNT( * ) col0
----
150

skipif mysql # not compatible
query I rowsort label-6362
SELECT 42 + + + 13 + - - 95 * COUNT ( * ) col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL - COUNT( ALL + 74 ) * - 10
----
10

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - COUNT ( ALL + 74 ) * - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT + 30 * - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT + 30 * - COUNT ( * ) AS col0
----
-30

query I rowsort
SELECT DISTINCT 75 - - 3
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT ALL 34 DIV - 1
----
-34

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL 34 / - 1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT MIN( + - 67 ) * + SUM( 6 ) - 77 * ( - CASE + 68 WHEN 6 * - 79 THEN + 68 ELSE 32 END ) AS col1
----
2062

skipif mysql # not compatible
query I rowsort label-6367
SELECT MIN ( + - 67 ) * + SUM ( 6 ) - 77 * ( - CASE + 68 WHEN 6 * - 79 THEN + 68 ELSE 32 END ) AS col1
----
2062

query II rowsort
SELECT DISTINCT 26 AS col0, - 54
----
26
-54

query I rowsort
SELECT 67 * - 40 AS col1
----
-2680

query II rowsort
SELECT DISTINCT 81, 1 AS col1
----
81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6371
SELECT CASE + ( COALESCE ( - - ( + - COUNT( * ) ), + 60 ) ) WHEN 29 * 5 THEN - 73 END + CASE - CAST( - CASE COUNT( * ) WHEN 73 THEN 66 WHEN ( 11 ) * 65 THEN NULL END AS SIGNED ) WHEN 85 THEN 23 + 23 * 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT CASE + ( COALESCE ( - - ( + - COUNT ( * ) ), + 60 ) ) WHEN 29 * 5 THEN - 73 END + CASE - CAST ( - CASE COUNT ( * ) WHEN 73 THEN 66 WHEN ( 11 ) * 65 THEN NULL END AS INTEGER ) WHEN 85 THEN 23 + 23 * 43 END AS col2
----
NULL

query I rowsort
SELECT ALL + 35 * 29 AS col2
----
1015

query II rowsort
SELECT + 79, - 42 * 98 AS col2
----
79
-4116

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT - + 19 AS col2, COUNT( DISTINCT 95 )
----
-19
1

skipif mysql # not compatible
query II rowsort label-6374
SELECT - + 19 AS col2, COUNT ( DISTINCT 95 )
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT DISTINCT + SUM( - ( - + 82 ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + SUM ( - ( - + 82 ) ) col0
----
82

query I rowsort
SELECT - 13 + 50 AS col0
----
37

query I rowsort
SELECT DISTINCT 87 * 39
----
3393

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT 14 DIV 9 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT 14 / 9 AS col2
----
1

query I rowsort
SELECT ALL + - 27 + + - 74 col1
----
-101

query I rowsort
SELECT ( - 75 ) + - 65 + - 52 * + 2 + - + 61 * 68 AS col1
----
-4392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6381
SELECT CASE WHEN COUNT( * ) IS NOT NULL THEN + + 14 + + 51 END DIV + CAST( 45 AS SIGNED ) - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-6381
SELECT CASE WHEN COUNT ( * ) IS NOT NULL THEN + + 14 + + 51 END / + CAST ( 45 AS INTEGER ) - + 38
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT - COUNT( * ) * CAST( + 80 AS SIGNED ) + - - 86 col1
----
6

skipif mysql # not compatible
query I rowsort label-6382
SELECT - COUNT ( * ) * CAST ( + 80 AS INTEGER ) + - - 86 col1
----
6

query I rowsort
SELECT ALL - 59 + - 45
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ( + + 60 ) * + CASE - 48 WHEN - MAX( ALL + - 16 ) * + 41 THEN - 21 * - ( + 86 ) WHEN 86 + 42 * + 88 THEN 44 ELSE - 29 * 90 END * 69 + + 51 col2
----
-10805349

skipif mysql # not compatible
query I rowsort label-6384
SELECT ( + + 60 ) * + CASE - 48 WHEN - MAX ( ALL + - 16 ) * + 41 THEN - 21 * - ( + 86 ) WHEN 86 + 42 * + 88 THEN 44 ELSE - 29 * 90 END * 69 + + 51 col2
----
-10805349

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL + 84 + + COUNT( DISTINCT - 31 ) + - + 55 * SUM( - 31 )
----
1790

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + 84 + + COUNT ( DISTINCT - 31 ) + - + 55 * SUM ( - 31 )
----
1790

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT - ( + - COUNT( * ) ) * - 38 + - + 4 * + NULLIF ( 16, + 87 * - 4 ) + 30
----
-72

skipif mysql # not compatible
query I rowsort label-6386
SELECT - ( + - COUNT ( * ) ) * - 38 + - + 4 * + NULLIF ( 16, + 87 * - 4 ) + 30
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT ALL - - CASE - 27 WHEN + 66 THEN 24 / CAST( NULL AS SIGNED ) WHEN + - 2 + + 5 * - 58 THEN + 78 * 76 - + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - - CASE - 27 WHEN + 66 THEN 24 / CAST ( NULL AS INTEGER ) WHEN + - 2 + + 5 * - 58 THEN + 78 * 76 - + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 61 * + 54 AS col1
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT + ( - 90 ) + + - SUM( - 49 )
----
-41

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + ( - 90 ) + + - SUM ( - 49 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT ( - 20 ) + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT ( - 20 ) + COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT ALL - 43 * - 34 AS col2
----
1462

query I rowsort
SELECT ALL + 88 + + 83
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL - ( + + 36 ) - - COUNT( * ) + + 50 + - 15 * + + COALESCE ( + ( 55 ), - 61 * - 61 + 11 * - 87, - CAST( 60 AS SIGNED ) ) AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - ( + + 36 ) - - COUNT ( * ) + + 50 + - 15 * + + COALESCE ( + ( 55 ), - 61 * - 61 + 11 * - 87, - CAST ( 60 AS INTEGER ) ) AS col0
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT 39 + - COUNT( DISTINCT + ( - - ( + + 34 ) ) ) * - + 27
----
66

skipif mysql # not compatible
query I rowsort label-6394
SELECT 39 + - COUNT ( DISTINCT + ( - - ( + + 34 ) ) ) * - + 27
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6395
SELECT 42 * 85 AS col0, 99 DIV + - COUNT( * )
----
3570
-99

skipif mysql # not compatible
query II rowsort label-6395
SELECT 42 * 85 AS col0, 99 / + - COUNT ( * )
----
3570
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - SUM( 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - SUM ( 75 ) AS col0
----
-75

query I rowsort
SELECT DISTINCT + 99 * 81
----
8019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6398
SELECT 67 * + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT 67 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + 81 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + 81 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 74 + + 26
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL + CASE + - 95 WHEN - - 80 + CAST( NULL AS SIGNED ) THEN - ( 84 ) / 12 + 68 ELSE NULL END * MAX( DISTINCT + 9 + + 32 / + CAST( - 5 * NULLIF ( - 88, ( - 56 ) * + 94 ) AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + CASE + - 95 WHEN - - 80 + CAST ( NULL AS INTEGER ) THEN - ( 84 ) / 12 + 68 ELSE NULL END * MAX ( DISTINCT + 9 + + 32 / + CAST ( - 5 * NULLIF ( - 88, ( - 56 ) * + 94 ) AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL - ( - CASE + COUNT( * ) WHEN + 71 THEN NULLIF ( 23, 1 ) WHEN 64 + 28 THEN MAX( ALL + 79 ) * + AVG ( ALL + 83 ) ELSE NULL END ) * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL - ( - CASE + COUNT ( * ) WHEN + 71 THEN NULLIF ( 23, 1 ) WHEN 64 + 28 THEN MAX ( ALL + 79 ) * + AVG ( ALL + 83 ) ELSE NULL END ) * - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT MAX( DISTINCT - 62 ) + 25 + 24 - - 52 * - 76 * - 89 * 57 AS col2
----
20048483

skipif mysql # not compatible
query I rowsort label-6403
SELECT MAX ( DISTINCT - 62 ) + 25 + 24 - - 52 * - 76 * - 89 * 57 AS col2
----
20048483

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT - NULLIF ( 9, + + MIN( + - 40 ) + + COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - NULLIF ( 9, + + MIN ( + - 40 ) + + COUNT ( * ) )
----
-9

query I rowsort
SELECT ALL + 4 * - + COALESCE ( 83, - 68 )
----
-332

query I rowsort
SELECT - 97 * + 23 - + - 81 AS col1
----
-2150

query II rowsort
SELECT ALL + ( 74 ), 10 col0
----
74
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT - + 74 * - + COUNT( * ) * 13 + - MAX( 6 ) AS col1, CAST( 22 AS SIGNED )
----
956
22

skipif mysql # not compatible
query II rowsort label-6408
SELECT - + 74 * - + COUNT ( * ) * 13 + - MAX ( 6 ) AS col1, CAST ( 22 AS INTEGER )
----
956
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + - 68 * + COUNT( * ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT + - 68 * + COUNT ( * ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT ALL COUNT( * ) + + - NULLIF ( - 25, + 62 * - 87 + + + 11 * COALESCE ( + 41, NULLIF ( 46, - COUNT( * ) DIV COUNT( * ) ), 34 ) ) DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COUNT ( * ) + + - NULLIF ( - 25, + 62 * - 87 + + + 11 * COALESCE ( + 41, NULLIF ( 46, - COUNT ( * ) / COUNT ( * ) ), 34 ) ) / + 36
----
1

query I rowsort
SELECT DISTINCT + 30 + - 9 - - - 34 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT + 99 * 9 + + - CAST( NULL AS SIGNED ) + - 45 * - NULLIF ( - 19, + MAX( ALL 84 ) ) / + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT + 99 * 9 + + - CAST ( NULL AS INTEGER ) + - 45 * - NULLIF ( - 19, + MAX ( ALL 84 ) ) / + 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 97 * - + 72 + + - 94 * + 23
----
4822

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + - ( - + 85 ) * + - MAX( + + 54 ) + - MIN( ALL 17 )
----
-4607

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + - ( - + 85 ) * + - MAX ( + + 54 ) + - MIN ( ALL 17 )
----
-4607

query I rowsort
SELECT + 94 * - 12 AS col0
----
-1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT + NULLIF ( + - 20, - NULLIF ( + + 50, - 3 ) + - 8 + - CASE - CASE ( 79 ) WHEN 29 * 50 THEN 58 WHEN - 44 THEN NULL ELSE - 50 + SUM( 0 ) END WHEN NULLIF ( SUM( + 90 ), 15 + - NULLIF ( - 28, 89 ) ) THEN 90 - + SUM( DISTINCT - 65 ) WHEN - 59 THEN 72 END + - 53 * 45 * + CAST( COALESCE ( + 51, 18 * 90, NULLIF ( - 65, 21 ) * - 26 ) AS SIGNED ) ) * + COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6416
SELECT + NULLIF ( + - 20, - NULLIF ( + + 50, - 3 ) + - 8 + - CASE - CASE ( 79 ) WHEN 29 * 50 THEN 58 WHEN - 44 THEN NULL ELSE - 50 + SUM ( 0 ) END WHEN NULLIF ( SUM ( + 90 ), 15 + - NULLIF ( - 28, 89 ) ) THEN 90 - + SUM ( DISTINCT - 65 ) WHEN - 59 THEN 72 END + - 53 * 45 * + CAST ( COALESCE ( + 51, 18 * 90, NULLIF ( - 65, 21 ) * - 26 ) AS INTEGER ) ) * + COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT + 70 + 80 col1
----
150

query II rowsort
SELECT 57 * 19 + - 23 AS col1, 34 AS col2
----
1060
34

query I rowsort
SELECT ALL 58 * + 54
----
3132

query I rowsort
SELECT + 64 * 83
----
5312

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT DISTINCT 70 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT 70 / 73 AS col2
----
0

query I rowsort
SELECT DISTINCT + 12 * 60
----
720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6423
SELECT + 17 / 26 * 25 * + - CAST( NULL AS DECIMAL ) / SUM( - 60 ), - 22 + COALESCE ( 38, ( - COUNT( * ) ) - + 37 ) AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6423
SELECT + 17 / 26 * 25 * + - CAST ( NULL AS REAL ) / SUM ( - 60 ), - 22 + COALESCE ( 38, ( - COUNT ( * ) ) - + 37 ) AS col0
----
NULL
16

query I rowsort
SELECT ALL 22 * + ( - 40 ) AS col1
----
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT ALL + COALESCE ( + + 36, 56 * - 63 * - ( + 62 ) DIV + - 64 * - COALESCE ( 4, - 72 + - 97, 88 * 74 ) + 92, - 84 )
----
36

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + COALESCE ( + + 36, 56 * - 63 * - ( + 62 ) / + - 64 * - COALESCE ( 4, - 72 + - 97, 88 * 74 ) + 92, - 84 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT + COUNT( * ) * - 68 col0
----
-68

skipif mysql # not compatible
query I rowsort label-6426
SELECT + COUNT ( * ) * - 68 col0
----
-68

query I rowsort
SELECT DISTINCT 16 * 32 * - - 54 * 64 AS col1
----
1769472

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT COUNT( DISTINCT 50 )
----
1

skipif mysql # not compatible
query I rowsort label-6428
SELECT COUNT ( DISTINCT 50 )
----
1

query I rowsort
SELECT - 63 * 56
----
-3528

query I rowsort
SELECT + - 13 * - 72 AS col2
----
936

onlyif mysql # aggregate syntax: 
query II rowsort label-6431
SELECT ALL 63, COUNT( * ) AS col1
----
63
1

skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL 63, COUNT ( * ) AS col1
----
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + ( + SUM( 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-6432
SELECT + ( + SUM ( 94 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL NULLIF ( - + COUNT( * ), 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL NULLIF ( - + COUNT ( * ), 92 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT - - 64 DIV - - 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-6434
SELECT - - 64 / - - 58 col2
----
1

query I rowsort
SELECT ALL + 53 + + 80
----
133

query II rowsort
SELECT DISTINCT + 79 AS col2, + 18 AS col0
----
79
18

query I rowsort
SELECT - - 14 + - COALESCE ( + - 24, - 8 * + - 93, + + 5 * 20 ) - - 10 + - 4 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT + + COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT + + COUNT ( * ) + + 37
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6439
SELECT ALL - + CAST( NULL AS DECIMAL ) + + - 17 * + MAX( - 69 ) + - + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - + CAST ( NULL AS REAL ) + + - 17 * + MAX ( - 69 ) + - + 0 AS col2
----
NULL

query I rowsort
SELECT - + 87 + - 64
----
-151

query I rowsort
SELECT - - 6 - - 27
----
33

query II rowsort
SELECT DISTINCT + - 30 * + - 33 + 31 AS col2, + 64
----
1021
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6443
SELECT - + 37 + - ( + 36 ) - + 39, ( - + 37 ) / + CASE + + 32 WHEN + 9 THEN - COUNT( * ) * - AVG ( ALL + 58 ) WHEN + 77 / + 50 THEN + 88 END AS col1
----
-112
NULL

skipif mysql # not compatible
query II rowsort label-6443
SELECT - + 37 + - ( + 36 ) - + 39, ( - + 37 ) / + CASE + + 32 WHEN + 9 THEN - COUNT ( * ) * - AVG ( ALL + 58 ) WHEN + 77 / + 50 THEN + 88 END AS col1
----
-112
NULL

query I rowsort
SELECT ALL 50 - - 95 + + 53 + - CASE - 8 WHEN 30 * 55 THEN - - 13 + - 87 / 84 END * - 99
----
NULL

query I rowsort
SELECT - 20 + NULLIF ( - + 58, - 84 ) + + - 39 + 91 - + 40 * + NULLIF ( + 62, - 34 + + AVG ( DISTINCT + 87 ) * 1 ) * 16 AS col0
----
-39706

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + COUNT( 95 )
----
1

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + COUNT ( 95 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT + COUNT( * ) + + + 72 AS col0, COALESCE ( - 26, + 60 ) AS col2
----
73
-26

skipif mysql # not compatible
query II rowsort label-6447
SELECT + COUNT ( * ) + + + 72 AS col0, COALESCE ( - 26, + 60 ) AS col2
----
73
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) - + COALESCE ( + 49, + - ( + - 75 ), - ( - - ( + 47 ) ) * 74 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) - + COALESCE ( + 49, + - ( + - 75 ), - ( - - ( + 47 ) ) * 74 ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6449
SELECT ALL 82 * NULLIF ( 93, - 17 ) AS col1, + CAST( NULL AS SIGNED )
----
7626
NULL

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL 82 * NULLIF ( 93, - 17 ) AS col1, + CAST ( NULL AS INTEGER )
----
7626
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + CASE 60 WHEN 58 * + - 0 * 76 + - 81 THEN NULL WHEN + COUNT( * ) / + - 82 THEN + 55 * + 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT + CASE 60 WHEN 58 * + - 0 * 76 + - 81 THEN NULL WHEN + COUNT ( * ) / + - 82 THEN + 55 * + 77 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT CAST( - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-6451
SELECT CAST ( - 62 AS INTEGER )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT CAST( - 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6452
SELECT CAST ( - 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 81 * + MIN( ALL 33 )
----
2673

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 81 * + MIN ( ALL 33 )
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6454
SELECT - 5 DIV - + SUM( + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT - 5 / - + SUM ( + 52 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT + 11 * 77, 5 * + COUNT( * ) col0
----
847
5

skipif mysql # not compatible
query II rowsort label-6455
SELECT + 11 * 77, 5 * + COUNT ( * ) col0
----
847
5

query I rowsort
SELECT ( 15 ) AS col2
----
15

query I rowsort
SELECT ( CASE 9 WHEN 15 THEN + ( - - 37 ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6458
SELECT + CAST( - 81 AS SIGNED ), COALESCE ( 64, - - 33 * 13 + + + 95 + - COALESCE ( + 44, - NULLIF ( + 82, 86 + 21 ) ) * 33 * + 7, - 65 * + COUNT( * ) ) * ( - 15 * - 51 ) AS col2
----
-81
48960

skipif mysql # not compatible
query II rowsort label-6458
SELECT + CAST ( - 81 AS INTEGER ), COALESCE ( 64, - - 33 * 13 + + + 95 + - COALESCE ( + 44, - NULLIF ( + 82, 86 + 21 ) ) * 33 * + 7, - 65 * + COUNT ( * ) ) * ( - 15 * - 51 ) AS col2
----
-81
48960

query I rowsort
SELECT + ( + 75 ) AS col2
----
75

query II rowsort
SELECT ( + + 75 ) AS col0, + 80 AS col2
----
75
80

query I rowsort
SELECT + - 68 * 11 + + 28 AS col0
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL - CAST( - ( + + 14 ) AS SIGNED ) * + 84 + CAST( + 93 AS SIGNED )
----
1269

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - CAST ( - ( + + 14 ) AS INTEGER ) * + 84 + CAST ( + 93 AS INTEGER )
----
1269

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT ALL + 24 + - + CASE - COUNT( * ) WHEN - 94 - - 52 * - + COUNT( * ) THEN + 82 ELSE NULL END, + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL + 24 + - + CASE - COUNT ( * ) WHEN - 94 - - 52 * - + COUNT ( * ) THEN + 82 ELSE NULL END, + 0 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + MIN( DISTINCT - 93 ) + - 1 + 39 - + - 16 - - 50
----
11

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + MIN ( DISTINCT - 93 ) + - 1 + 39 - + - 16 - - 50
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT + 2 + - - 37 + + 39 + + + 72 + + - CAST( NULL AS SIGNED ) * - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT + 2 + - - 37 + + 39 + + + 72 + + - CAST ( NULL AS INTEGER ) * - 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - COUNT( * ) + COUNT( * ) + + 86
----
86

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + 86
----
86

query I rowsort
SELECT ALL 76 + + - ( - 83 ) + + ( - ( + 28 ) ) AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT CAST( NULL AS SIGNED ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT CAST ( NULL AS INTEGER ) * 26
----
NULL

query I rowsort
SELECT ALL 38 + + - 68
----
-30

query I rowsort
SELECT ALL - 80 - + 31
----
-111

query I rowsort
SELECT - 9 * 42 AS col0
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - + MAX( ALL ( - 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-6472
SELECT - + MAX ( ALL ( - 82 ) )
----
82

query I rowsort
SELECT ALL + NULLIF ( 89, + + 59 * - 99 - + 94 + + 82 + 24 / + AVG ( ALL ( 48 ) ) ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT CAST( NULL AS SIGNED ) - - 30 / - + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT CAST ( NULL AS INTEGER ) - - 30 / - + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT 62 * - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6475
SELECT 62 * - + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT 33 - + 12 + - CASE + 73 WHEN 14 / - - COALESCE ( 58, CASE - 83 WHEN - + 91 THEN NULL WHEN 42 THEN NULL WHEN - 33 * 40 THEN COUNT( * ) WHEN - 50 * COUNT( * ) THEN NULL ELSE NULL END * + ( - ( + ( + 94 ) ) ), - 16 ) - + 60 / - 28 THEN NULL WHEN - 30 THEN 95 END * AVG ( - 85 * 70 + NULLIF ( 49 + - 50, 75 ) ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT 33 - + 12 + - CASE + 73 WHEN 14 / - - COALESCE ( 58, CASE - 83 WHEN - + 91 THEN NULL WHEN 42 THEN NULL WHEN - 33 * 40 THEN COUNT ( * ) WHEN - 50 * COUNT ( * ) THEN NULL ELSE NULL END * + ( - ( + ( + 94 ) ) ), - 16 ) - + 60 / - 28 THEN NULL WHEN - 30 THEN 95 END * AVG ( - 85 * 70 + NULLIF ( 49 + - 50, 75 ) ) * 34
----
NULL

query I rowsort
SELECT ALL - 84 * 7
----
-588

query I rowsort
SELECT 52 * 15 AS col1
----
780

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6479
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - MIN( ALL - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - MIN ( ALL - 93 ) AS col1
----
93

query I rowsort
SELECT 68 - - 7
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6482
SELECT - 32 * + + 79 * 91 + CAST( 74 AS SIGNED ) AS col1, + ( - 46 )
----
-229974
-46

skipif mysql # not compatible
query II rowsort label-6482
SELECT - 32 * + + 79 * 91 + CAST ( 74 AS INTEGER ) AS col1, + ( - 46 )
----
-229974
-46

query I rowsort
SELECT 51 + 33 - + 65 * + 78 AS col0
----
-4986

query I rowsort
SELECT DISTINCT - ( + 14 ) AS col2
----
-14

query I rowsort
SELECT ALL 28 + - - 6 + 80 * + 97 + + 87
----
7881

query I rowsort
SELECT 32 * + - 30 + - 5 + + - 91
----
-1056

query I rowsort
SELECT ALL - 95 + 30 col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6488
SELECT + 93 * CAST( NULL AS DECIMAL ) * COUNT( * ) + - - 72 * - 49 / + + 97 * + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 93 * CAST ( NULL AS REAL ) * COUNT ( * ) + - - 72 * - 49 / + + 97 * + 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL COALESCE ( + 86, + 85, + - 66 + - 93 + + 83 + - - 46 * + + 88 ) + - + CASE + CASE + 80 WHEN 89 * - COALESCE ( ( COALESCE ( + NULLIF ( + 53, COUNT( * ) + + 51 ), + CASE 39 WHEN - 27 + 27 THEN 46 END - + 60 * - COUNT( - 0 ) ) ), ( 54 ) ) + - COUNT( * ) THEN 70 WHEN - 21 + 89 THEN 99 + + 8 END WHEN - 86 THEN - COALESCE ( 39, + COUNT( * ) * + 95, + 63 ) * 63 WHEN + 23 + - CAST( COALESCE ( 19, 57 + ( 74 ) / + ( + 36 ), 65 * - 11 ) AS SIGNED ) / 61 THEN 32 ELSE NULL END * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL COALESCE ( + 86, + 85, + - 66 + - 93 + + 83 + - - 46 * + + 88 ) + - + CASE + CASE + 80 WHEN 89 * - COALESCE ( ( COALESCE ( + NULLIF ( + 53, COUNT ( * ) + + 51 ), + CASE 39 WHEN - 27 + 27 THEN 46 END - + 60 * - COUNT ( - 0 ) ) ), ( 54 ) ) + - COUNT ( * ) THEN 70 WHEN - 21 + 89 THEN 99 + + 8 END WHEN - 86 THEN - COALESCE ( 39, + COUNT ( * ) * + 95, + 63 ) * 63 WHEN + 23 + - CAST ( COALESCE ( 19, 57 + ( 74 ) / + ( + 36 ), 65 * - 11 ) AS INTEGER ) / 61 THEN 32 ELSE NULL END * 48 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6490
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - + 94 AS col0, 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + 94 AS col0, 82 AS col0
----
NULL
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT DISTINCT - + CASE + - 86 WHEN + ( - + 26 ) * + 1 * ( COUNT( * ) ) THEN - 73 END AS col0, - 10 - + 34 - 23 * 26
----
NULL
-642

skipif mysql # not compatible
query II rowsort label-6491
SELECT DISTINCT - + CASE + - 86 WHEN + ( - + 26 ) * + 1 * ( COUNT ( * ) ) THEN - 73 END AS col0, - 10 - + 34 - 23 * 26
----
NULL
-642

query I rowsort
SELECT DISTINCT + 83 + 24
----
107

query I rowsort
SELECT ALL + 92 + - + 15 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT + 30 * + - 68 + 21 - COUNT( * ) * - 46 + - + 88
----
-2061

skipif mysql # not compatible
query I rowsort label-6494
SELECT + 30 * + - 68 + 21 - COUNT ( * ) * - 46 + - + 88
----
-2061

query I rowsort
SELECT + + ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT 17 AS col2, - COUNT( * ) - - + 72
----
17
71

skipif mysql # not compatible
query II rowsort label-6496
SELECT 17 AS col2, - COUNT ( * ) - - + 72
----
17
71

query I rowsort
SELECT ALL - 90 - 69
----
-159

query I rowsort
SELECT ALL NULLIF ( + - 67, - - NULLIF ( 10, + ( - NULLIF ( 7, - 35 ) ) ) ) - + 51 - 1 + + NULLIF ( + 14, 18 )
----
-105

query I rowsort
SELECT + 88 - 31
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + COALESCE ( - - 19, - - 44 ) + + - 18 - - 14 * + - COUNT( * ) + COUNT( + 82 ) + - 65 * - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6500
SELECT + COALESCE ( - - 19, - - 44 ) + + - 18 - - 14 * + - COUNT ( * ) + COUNT ( + 82 ) + - 65 * - COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT + COALESCE ( ( - + 63 ), 61 + + - COUNT( * ) - - 48 * 28 )
----
-63

skipif mysql # not compatible
query I rowsort label-6501
SELECT + COALESCE ( ( - + 63 ), 61 + + - COUNT ( * ) - - 48 * 28 )
----
-63

query I rowsort
SELECT - 55 + + 24 * - 5 AS col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT 93 + + 62 * COUNT( * ) + + 70
----
225

skipif mysql # not compatible
query I rowsort label-6503
SELECT 93 + + 62 * COUNT ( * ) + + 70
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT 68 - + 62 + + 68 DIV COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6504
SELECT 68 - + 62 + + 68 / COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6505
SELECT ALL 33, CAST( NULL AS SIGNED ) AS col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL 33, CAST ( NULL AS INTEGER ) AS col0
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT COUNT( * ) + ( MIN( DISTINCT - 71 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( * ) + ( MIN ( DISTINCT - 71 ) )
----
-70

query I rowsort
SELECT ALL 53 * 67 * - 42 AS col2
----
-149142

query II rowsort
SELECT DISTINCT 86 AS col2, + 71
----
86
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6509
SELECT DISTINCT 42, + 97 + - CAST( NULL AS SIGNED ) + + 23 + CAST( NULL AS SIGNED ) - - 21 / - 75 AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6509
SELECT DISTINCT 42, + 97 + - CAST ( NULL AS INTEGER ) + + 23 + CAST ( NULL AS INTEGER ) - - 21 / - 75 AS col1
----
42
NULL

query I rowsort
SELECT 61 * 54 AS col0
----
3294

query II rowsort
SELECT ALL 44 AS col1, 46
----
44
46

query I rowsort
SELECT 68 + + + ( - 5 ) AS col0
----
63

query I rowsort
SELECT DISTINCT - 53 * - 98 * NULLIF ( - CASE 5 WHEN 45 THEN NULL ELSE - 73 END, + AVG ( 86 ) ) * - - 21 col0
----
7962402

query I rowsort
SELECT DISTINCT 41 + 20 + + 6
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT 87 + - + 15 DIV + 35 * 16 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6515
SELECT 87 + - + 15 / + 35 * 16 AS col2
----
87

query I rowsort
SELECT COALESCE ( + + 88, + + 86 + 27 + - 25 * + - 29 * + 28, + 74 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6517
SELECT DISTINCT NULLIF ( COUNT( * ), - + 54 * 71 + 72 / - ( - - CAST( CASE + - 79 WHEN - - ( - - 17 ) THEN 60 * + 0 END AS DECIMAL ) ) * MIN( ( + 45 ) ) + - CASE 48 WHEN 62 + 61 THEN NULL WHEN - 25 * COUNT( * ) THEN - 42 + 30 WHEN - 55 + - NULLIF ( ( 84 ), + 30 ) THEN NULL ELSE 68 + COUNT( * ) END ) * COUNT( * ) + NULLIF ( + 99, CAST( NULL AS DECIMAL ) ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT NULLIF ( COUNT ( * ), - + 54 * 71 + 72 / - ( - - CAST ( CASE + - 79 WHEN - - ( - - 17 ) THEN 60 * + 0 END AS REAL ) ) * MIN ( ( + 45 ) ) + - CASE 48 WHEN 62 + 61 THEN NULL WHEN - 25 * COUNT ( * ) THEN - 42 + 30 WHEN - 55 + - NULLIF ( ( 84 ), + 30 ) THEN NULL ELSE 68 + COUNT ( * ) END ) * COUNT ( * ) + NULLIF ( + 99, CAST ( NULL AS REAL ) ) AS col1
----
100

query I rowsort
SELECT ALL 2 * + - 93 * + 21 * - - 88 + - 78 + - 44
----
-343850

query I rowsort
SELECT 77 * 38
----
2926

query I rowsort
SELECT ALL 27 * - 33 + - 62
----
-953

query II rowsort
SELECT DISTINCT - 15 AS col1, - CASE 11 WHEN 29 THEN 97 END AS col2
----
-15
NULL

query I rowsort
SELECT 86 * - 84 * + - 44
----
317856

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL - SUM( DISTINCT + 13 ) * - 9 + + 93 + 89 AS col0
----
299

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - SUM ( DISTINCT + 13 ) * - 9 + + 93 + 89 AS col0
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT DISTINCT + ( + - MIN( ALL 42 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT + ( + - MIN ( ALL 42 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL COUNT( * ) * + 28 * - + 29 * + - 81 + + 8 + CASE + 99 WHEN + 30 THEN NULL ELSE 46 END
----
65826

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL COUNT ( * ) * + 28 * - + 29 * + - 81 + + 8 + CASE + 99 WHEN + 30 THEN NULL ELSE 46 END
----
65826

query I rowsort
SELECT - 4 * + 40 * + 68 * - 42
----
456960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6527
SELECT - + 1 * - 82 * COUNT( 63 ) col0, ( - 45 ) + + 1 + - - 18 + - 80 * - 55 * CAST( NULL AS SIGNED ) * 8 - 28
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6527
SELECT - + 1 * - 82 * COUNT ( 63 ) col0, ( - 45 ) + + 1 + - - 18 + - 80 * - 55 * CAST ( NULL AS INTEGER ) * 8 - 28
----
82
NULL

query II rowsort
SELECT ALL + + 31 AS col2, 51
----
31
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6529
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT 41 * - NULLIF ( - - NULLIF ( 3, + 53 ), + 34 * COUNT( * ) * - 67 ) + - ( - - COUNT( - 79 ) ) - 73 AS col1
----
-197

skipif mysql # not compatible
query I rowsort label-6530
SELECT 41 * - NULLIF ( - - NULLIF ( 3, + 53 ), + 34 * COUNT ( * ) * - 67 ) + - ( - - COUNT ( - 79 ) ) - 73 AS col1
----
-197

query I rowsort
SELECT + 97 * 16 + + 1 AS col2
----
1553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6532
SELECT ALL 94 * + - 35 + - MIN( ALL + CAST( + 51 AS SIGNED ) ) + + - 17
----
-3358

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 94 * + - 35 + - MIN ( ALL + CAST ( + 51 AS INTEGER ) ) + + - 17
----
-3358

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - + 75 * - MAX( + 39 ) + 21 AS col2
----
2946

skipif mysql # not compatible
query I rowsort label-6533
SELECT - + 75 * - MAX ( + 39 ) + 21 AS col2
----
2946

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + - 57 * - MIN( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + - 57 * - MIN ( 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + - NULLIF ( + - 76, + 66 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-6536
SELECT + - 52 AS col0, - 2 DIV + 31 + - + 16 AS col2
----
-52
-16

skipif mysql # not compatible
query II rowsort label-6536
SELECT + - 52 AS col0, - 2 / + 31 + - + 16 AS col2
----
-52
-16

query I rowsort
SELECT ALL + - 82 * - 35 AS col1
----
2870

query I rowsort
SELECT - + 14 * - + 20
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6539
SELECT + 65 * CASE 12 WHEN MAX( - ( - 76 ) ) + - - 77 THEN + ( + MAX( DISTINCT - + CAST( + + 7 AS SIGNED ) ) ) END + + 89 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT + 65 * CASE 12 WHEN MAX ( - ( - 76 ) ) + - - 77 THEN + ( + MAX ( DISTINCT - + CAST ( + + 7 AS INTEGER ) ) ) END + + 89 * 15
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT - + 16, COUNT( ALL - 70 ) col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-6540
SELECT - + 16, COUNT ( ALL - 70 ) col1
----
-16
1

query I rowsort
SELECT + 66 * 60 AS col0
----
3960

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT ALL 60 DIV + - ( - + ( + + NULLIF ( + 47, + 88 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL 60 / + - ( - + ( + + NULLIF ( + 47, + 88 ) ) )
----
1

query I rowsort
SELECT DISTINCT ( + - 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT + NULLIF ( + + 6, + 66 * 5 - + 26 ) DIV - 49 - + - SUM( + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-6544
SELECT + NULLIF ( + + 6, + 66 * 5 - + 26 ) / - 49 - + - SUM ( + + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT ALL CAST( NULL AS SIGNED ) + + 92 + - 36 / - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL CAST ( NULL AS INTEGER ) + + 92 + - 36 / - - 72 AS col1
----
NULL

query I rowsort
SELECT ALL 0 + + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - ( MAX( DISTINCT + 25 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6547
SELECT - ( MAX ( DISTINCT + 25 ) ) AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6548
SELECT - ( + 31 ) AS col2, - NULLIF ( + - COUNT( * ), - 2 ) DIV + COUNT( * ) * - COUNT( * ) AS col0
----
-31
-1

skipif mysql # not compatible
query II rowsort label-6548
SELECT - ( + 31 ) AS col2, - NULLIF ( + - COUNT ( * ), - 2 ) / + COUNT ( * ) * - COUNT ( * ) AS col0
----
-31
-1

query II rowsort
SELECT + NULLIF ( + 92, 30 ) * + 93 * - 3, - ( + - 3 ) + CASE - 50 WHEN + - 57 THEN - + 19 / - - 37 - + 24 ELSE NULL END + + 64 col2
----
-25668
NULL

query I rowsort
SELECT ALL 52 + 74 AS col1
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT DISTINCT 99 * - CAST( + + 97 AS SIGNED ) AS col0
----
-9603

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT 99 * - CAST ( + + 97 AS INTEGER ) AS col0
----
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT ALL + 32 + CASE - 5 WHEN 75 THEN - + 45 WHEN + MIN( + - 26 ) * + 85 + - + 74 THEN - 37 * + 48 / + - COUNT( * ) + + 64 END + 27 * - CAST( MAX( ALL - 69 ) - 65 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + 32 + CASE - 5 WHEN 75 THEN - + 45 WHEN + MIN ( + - 26 ) * + 85 + - + 74 THEN - 37 * + 48 / + - COUNT ( * ) + + 64 END + 27 * - CAST ( MAX ( ALL - 69 ) - 65 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - ( 64 ) AS col2, 69 AS col0
----
-64
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT CAST( + - 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6554
SELECT CAST ( + - 9 AS INTEGER ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT + 85 DIV 5 + - - SUM( + 47 )
----
64

skipif mysql # not compatible
query I rowsort label-6555
SELECT + 85 / 5 + - - SUM ( + 47 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT - CASE COUNT( * ) WHEN - CAST( + 63 AS SIGNED ) THEN + 52 END * - ( - COUNT( * ) ) - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT - CASE COUNT ( * ) WHEN - CAST ( + 63 AS INTEGER ) THEN + 52 END * - ( - COUNT ( * ) ) - 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT ALL 10 / - CASE - 3 WHEN + - 56 THEN NULL WHEN 74 THEN 72 ELSE NULL END + - 72 * + NULLIF ( + CAST( - + 43 AS SIGNED ), ( 13 ) + - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL 10 / - CASE - 3 WHEN + - 56 THEN NULL WHEN 74 THEN 72 ELSE NULL END + - 72 * + NULLIF ( + CAST ( - + 43 AS INTEGER ), ( 13 ) + - 62 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6558
SELECT ALL + - COUNT( * ) * - 15 AS col1, CASE + 88 WHEN + - COUNT( * ) THEN NULL ELSE CAST( NULL AS DECIMAL ) * - - COUNT( * ) END AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6558
SELECT ALL + - COUNT ( * ) * - 15 AS col1, CASE + 88 WHEN + - COUNT ( * ) THEN NULL ELSE CAST ( NULL AS REAL ) * - - COUNT ( * ) END AS col0
----
15
NULL

query I rowsort
SELECT 95 * - 59 + 71 * + + 37 col2
----
-2978

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL + SUM( ALL + 99 ) col1, + 69 AS col2
----
99
69

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL + SUM ( ALL + 99 ) col1, + 69 AS col2
----
99
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT MIN( - 75 ), 28 + 50 * 40 AS col2
----
-75
2028

skipif mysql # not compatible
query II rowsort label-6561
SELECT MIN ( - 75 ), 28 + 50 * 40 AS col2
----
-75
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL + + COALESCE ( + + 66, - COUNT( * ), - 76 * 17 - 65 + CAST( + CASE - - 2 WHEN + + ( + 86 ) THEN NULL ELSE + 19 * - 78 END AS SIGNED ) * + ( ( 31 ) ), 35 + - 30, + COUNT( ALL + 27 ) * - 88 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + + COALESCE ( + + 66, - COUNT ( * ), - 76 * 17 - 65 + CAST ( + CASE - - 2 WHEN + + ( + 86 ) THEN NULL ELSE + 19 * - 78 END AS INTEGER ) * + ( ( 31 ) ), 35 + - 30, + COUNT ( ALL + 27 ) * - 88 ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6563
SELECT - - COUNT( * ) * + 27 + + COUNT( * ) + 20 DIV 63 * COUNT( * ) * - + 76, MIN( - ( 43 ) ) * + 96 * - SUM( ALL + CAST( + 8 AS SIGNED ) ) + - 5 + COALESCE ( - 51 + + ( + 66 ), 93 * 98 + + 2 ) col0
----
28
33034

skipif mysql # not compatible
query II rowsort label-6563
SELECT - - COUNT ( * ) * + 27 + + COUNT ( * ) + 20 / 63 * COUNT ( * ) * - + 76, MIN ( - ( 43 ) ) * + 96 * - SUM ( ALL + CAST ( + 8 AS INTEGER ) ) + - 5 + COALESCE ( - 51 + + ( + 66 ), 93 * 98 + + 2 ) col0
----
28
33034

query I rowsort
SELECT DISTINCT + 40 * + 49
----
1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT - MAX( CASE COALESCE ( + - 7, + + CAST( - 27 AS SIGNED ), 82 + 7 + + - 67 * - - 73 + - 86 + - + 92 * - 74 ) WHEN - 5 THEN 20 ELSE NULL END ) * - ( + 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT - MAX ( CASE COALESCE ( + - 7, + + CAST ( - 27 AS INTEGER ), 82 + 7 + + - 67 * - - 73 + - 86 + - + 92 * - 74 ) WHEN - 5 THEN 20 ELSE NULL END ) * - ( + 83 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT ALL + CAST( NULL AS SIGNED ) * ( - + 98 ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - + 98 ) + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT - COUNT( * ) AS col2, - 52 AS col0
----
-1
-52

skipif mysql # not compatible
query II rowsort label-6567
SELECT - COUNT ( * ) AS col2, - 52 AS col0
----
-1
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL 8 * + 27 + + NULLIF ( - COUNT( * ), + 27 ) * - 55 + - 93 AS col2
----
178

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 8 * + 27 + + NULLIF ( - COUNT ( * ), + 27 ) * - 55 + - 93 AS col2
----
178

query I rowsort
SELECT - 18 - + - 4
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT - 41 AS col0, COUNT( * ) col2
----
-41
1

skipif mysql # not compatible
query II rowsort label-6570
SELECT - 41 AS col0, COUNT ( * ) col2
----
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - SUM( + + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6571
SELECT - SUM ( + + 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + 64 - 10 * - COUNT( * ) * - 19 - + 11
----
-137

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 64 - 10 * - COUNT ( * ) * - 19 - + 11
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT ALL CAST( - 2 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL CAST ( - 2 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT - COUNT( * ) + + 99 + + - 15 AS col2, - ( + + 71 ) AS col0
----
83
-71

skipif mysql # not compatible
query II rowsort label-6574
SELECT - COUNT ( * ) + + 99 + + - 15 AS col2, - ( + + 71 ) AS col0
----
83
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL 46 + 10 + - 89 * 48 * + COUNT( ALL - 45 ) AS col2
----
-4216

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 46 + 10 + - 89 * 48 * + COUNT ( ALL - 45 ) AS col2
----
-4216

query I rowsort
SELECT + 11 + - + ( 36 ) * + + 43
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - 36 + + 64 + + - 81 / + MAX( ALL - ( - CASE + + 17 WHEN + - NULLIF ( - CASE + - 28 WHEN 88 THEN NULL ELSE + 0 * + NULLIF ( + 73, + 70 ) END, 50 * 11 + 75 ) THEN - 88 WHEN 45 THEN NULL END ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - 36 + + 64 + + - 81 / + MAX ( ALL - ( - CASE + + 17 WHEN + - NULLIF ( - CASE + - 28 WHEN 88 THEN NULL ELSE + 0 * + NULLIF ( + 73, + 70 ) END, 50 * 11 + 75 ) THEN - 88 WHEN 45 THEN NULL END ) ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT 93 * 51 AS col2
----
4743

query I rowsort
SELECT DISTINCT 40 * - 94 * - 44
----
165440

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL CASE + COUNT( * ) WHEN 26 THEN NULL WHEN - + ( - + 72 ) * ( - ( - COUNT( * ) ) ) + + 17 THEN NULL WHEN - 84 THEN 54 ELSE + 36 END - 46 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL CASE + COUNT ( * ) WHEN 26 THEN NULL WHEN - + ( - + 72 ) * ( - ( - COUNT ( * ) ) ) + + 17 THEN NULL WHEN - 84 THEN 54 ELSE + 36 END - 46 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT NULLIF ( 92, 5 ) + + MAX( DISTINCT + + 63 ) + + 1
----
156

skipif mysql # not compatible
query I rowsort label-6581
SELECT NULLIF ( 92, 5 ) + + MAX ( DISTINCT + + 63 ) + + 1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-6582
SELECT - 67 AS col1, COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-6582
SELECT - 67 AS col1, COUNT ( * )
----
-67
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6583
SELECT DISTINCT 72 AS col0, + 12 * + CASE + + 42 WHEN - CAST( + - 63 AS DECIMAL ) THEN - COALESCE ( + - 42, + + 85 * - + ( 54 ) + + 36 ) * + + CAST( NULL AS SIGNED ) ELSE CASE - MAX( DISTINCT 73 ) WHEN + 36 * + 27 + 6 THEN NULL WHEN 85 * + 37 THEN NULL ELSE COALESCE ( 62, - 94 * - 46 - 82 ) DIV - 39 END * 34 END
----
72
-408

skipif mysql # not compatible
query II rowsort label-6583
SELECT DISTINCT 72 AS col0, + 12 * + CASE + + 42 WHEN - CAST ( + - 63 AS REAL ) THEN - COALESCE ( + - 42, + + 85 * - + ( 54 ) + + 36 ) * + + CAST ( NULL AS INTEGER ) ELSE CASE - MAX ( DISTINCT 73 ) WHEN + 36 * + 27 + 6 THEN NULL WHEN 85 * + 37 THEN NULL ELSE COALESCE ( 62, - 94 * - 46 - 82 ) / - 39 END * 34 END
----
72
-408

query I rowsort
SELECT DISTINCT 4 * + 55
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT SUM( - ( + - 90 ) ) * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6585
SELECT SUM ( - ( + - 90 ) ) * - COUNT ( * )
----
-90

query I rowsort
SELECT 10 * 93 + + - 73
----
857

query II rowsort
SELECT ALL - - 26, - 35 * - 52 col2
----
26
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - SUM( DISTINCT - - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - SUM ( DISTINCT - - 57 ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6589
SELECT DISTINCT CASE - + CASE + 20 WHEN - 39 * - + 97 THEN NULL WHEN + 86 THEN CAST( NULL AS SIGNED ) END WHEN - 57 * + - AVG ( - 62 ) THEN NULL WHEN - - 9 + - - 88 THEN 92 WHEN NULLIF ( + 40, - COALESCE ( 71, - 5 ) * ( 15 ) ) THEN NULL ELSE - ( 0 ) DIV - 90 END * ( + CAST( 33 AS SIGNED ) + 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT CASE - + CASE + 20 WHEN - 39 * - + 97 THEN NULL WHEN + 86 THEN CAST ( NULL AS INTEGER ) END WHEN - 57 * + - AVG ( - 62 ) THEN NULL WHEN - - 9 + - - 88 THEN 92 WHEN NULLIF ( + 40, - COALESCE ( 71, - 5 ) * ( 15 ) ) THEN NULL ELSE - ( 0 ) / - 90 END * ( + CAST ( 33 AS INTEGER ) + 35 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT ALL 88 * COUNT( * ) * 0 * 64 DIV + 63 + COUNT( * ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL 88 * COUNT ( * ) * 0 * 64 / + 63 + COUNT ( * ) * + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT ALL - COUNT( * ) AS col0, 16 + + COUNT( * )
----
-1
17

skipif mysql # not compatible
query II rowsort label-6591
SELECT ALL - COUNT ( * ) AS col0, 16 + + COUNT ( * )
----
-1
17

query II rowsort
SELECT ALL - 32, 83 * + + 43 AS col0
----
-32
3569

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6593
SELECT - 73 * CAST( NULL AS DECIMAL ) * + COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 73 * CAST ( NULL AS REAL ) * + COUNT ( * ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6594
SELECT 48 AS col2, - CAST( COALESCE ( + + ( - 25 ), + 55 ) AS SIGNED ) AS col1
----
48
25

skipif mysql # not compatible
query II rowsort label-6594
SELECT 48 AS col2, - CAST ( COALESCE ( + + ( - 25 ), + 55 ) AS INTEGER ) AS col1
----
48
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT COUNT( * ) / + ( + 74 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT COUNT ( * ) / + ( + 74 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL - CAST( - 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - CAST ( - 60 AS INTEGER )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT 0 DIV - - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 0 / - - 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT 60 * - MAX( 34 ) * - 93 + + 24
----
189744

skipif mysql # not compatible
query I rowsort label-6598
SELECT 60 * - MAX ( 34 ) * - 93 + + 24
----
189744

query I rowsort
SELECT ALL - COALESCE ( + 6, - 66 ) AS col1
----
-6

query I rowsort
SELECT ALL 18 + + 79
----
97

query I rowsort
SELECT ALL + 68 + + 70
----
138

query I rowsort
SELECT ALL + 46 + 46 AS col0
----
92

query I rowsort
SELECT 68 + - + 31 AS col1
----
37

query I rowsort
SELECT DISTINCT + 35 + - 29 * + 91 + - ( - 93 ) + 45 AS col0
----
-2466

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6605
SELECT 42 DIV - - 36, NULLIF ( COUNT( DISTINCT - - 99 ), + COUNT( * ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6605
SELECT 42 / - - 36, NULLIF ( COUNT ( DISTINCT - - 99 ), + COUNT ( * ) ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6606
SELECT DISTINCT - 22 DIV + ( ( + 66 ) ) AS col2, + ( + 9 ) AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-6606
SELECT DISTINCT - 22 / + ( ( + 66 ) ) AS col2, + ( + 9 ) AS col0
----
0
9

query I rowsort
SELECT ALL + 67 + - 21 * - 40
----
907

query II rowsort
SELECT DISTINCT + 49 + + + 59, 28 AS col2
----
108
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT DISTINCT - COUNT( * ) * - + 44 col1, + NULLIF ( MAX( + - 98 ), - 46 * + MIN( DISTINCT + 63 ) )
----
44
-98

skipif mysql # not compatible
query II rowsort label-6609
SELECT DISTINCT - COUNT ( * ) * - + 44 col1, + NULLIF ( MAX ( + - 98 ), - 46 * + MIN ( DISTINCT + 63 ) )
----
44
-98

query I rowsort
SELECT DISTINCT - 50 - + 33 * - 54 AS col1
----
1732

query I rowsort
SELECT 2 * 90 AS col1
----
180

query I rowsort
SELECT 28 * - - 70 AS col1
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT - ( - + COUNT( + 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - ( - + COUNT ( + 7 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT DISTINCT + 26 DIV + ( + 93 ) * + 34
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT + 26 / + ( + 93 ) * + 34
----
0

query I rowsort
SELECT ALL 60 * + - 60 AS col0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT MAX( DISTINCT - 16 ) - - + 36
----
20

skipif mysql # not compatible
query I rowsort label-6616
SELECT MAX ( DISTINCT - 16 ) - - + 36
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6617
SELECT ALL - - 50 DIV 18 AS col0, + 45 * MAX( 61 )
----
2
2745

skipif mysql # not compatible
query II rowsort label-6617
SELECT ALL - - 50 / 18 AS col0, + 45 * MAX ( 61 )
----
2
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + + COUNT( 67 )
----
1

skipif mysql # not compatible
query I rowsort label-6618
SELECT + + COUNT ( 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT + COUNT( * ) * + - 47 / + 7 + 31 + + COUNT( * ) + + CASE + - COUNT( * ) WHEN COUNT( * ) THEN - - 56 WHEN NULLIF ( - - 26, - NULLIF ( - 42, - 41 ) / + 32 ) THEN NULL END * 22 / 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + COUNT ( * ) * + - 47 / + 7 + 31 + + COUNT ( * ) + + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN - - 56 WHEN NULLIF ( - - 26, - NULLIF ( - 42, - 41 ) / + 32 ) THEN NULL END * 22 / 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + ( - + CASE - + 57 WHEN - MAX( - - 30 ) THEN NULL WHEN 69 THEN NULL ELSE + COUNT( * ) * - 22 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + ( - + CASE - + 57 WHEN - MAX ( - - 30 ) THEN NULL WHEN 69 THEN NULL ELSE + COUNT ( * ) * - 22 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL - - NULLIF ( - CAST( - 28 AS SIGNED ), COUNT( * ) + - 47 )
----
28

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - - NULLIF ( - CAST ( - 28 AS INTEGER ), COUNT ( * ) + - 47 )
----
28

query I rowsort
SELECT 14 * 49 * - + 21 * + 61 AS col1
----
-878766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6623
SELECT DISTINCT - + 45 + COALESCE ( + 79, - ( + 21 ) * 17 + + 38 * - 55 + 86 ) + COALESCE ( + COUNT( * ), - - 41 DIV 90 * + CAST( 34 AS SIGNED ), - 28 DIV 91, - 75 ) + - 74 * MAX( 93 ) col2
----
-6847

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - + 45 + COALESCE ( + 79, - ( + 21 ) * 17 + + 38 * - 55 + 86 ) + COALESCE ( + COUNT ( * ), - - 41 / 90 * + CAST ( 34 AS INTEGER ), - 28 / 91, - 75 ) + - 74 * MAX ( 93 ) col2
----
-6847

query I rowsort
SELECT DISTINCT - 8 + - 91
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL - MIN( 3 ) + 70
----
67

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - MIN ( 3 ) + 70
----
67

query I rowsort
SELECT DISTINCT - ( - NULLIF ( 22, - + 75 ) )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6627
SELECT ( - 76 ) AS col1, - 54 DIV - - COUNT( * )
----
-76
-54

skipif mysql # not compatible
query II rowsort label-6627
SELECT ( - 76 ) AS col1, - 54 / - - COUNT ( * )
----
-76
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT + COUNT( * ) AS col2, - 16 AS col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-6628
SELECT + COUNT ( * ) AS col2, - 16 AS col2
----
1
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6629
SELECT ALL 77 + - COUNT( * ) + + COALESCE ( - 63, 6 ) + + 17 DIV COALESCE ( + 66, - + 43 ) * + 71 - + ( COUNT( * ) ) + - - 39 * - 61 * + CAST( - 95 AS SIGNED ) + - 34
----
225983

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL 77 + - COUNT ( * ) + + COALESCE ( - 63, 6 ) + + 17 / COALESCE ( + 66, - + 43 ) * + 71 - + ( COUNT ( * ) ) + - - 39 * - 61 * + CAST ( - 95 AS INTEGER ) + - 34
----
225983

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL - 9 * 44 * + - 16 * - COUNT( * ) * 53 AS col2
----
-335808

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - 9 * 44 * + - 16 * - COUNT ( * ) * 53 AS col2
----
-335808

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT MAX( ALL - 67 ) + COUNT( DISTINCT - + ( - ( + COALESCE ( + 87, + 64 - 76 ) ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6631
SELECT MAX ( ALL - 67 ) + COUNT ( DISTINCT - + ( - ( + COALESCE ( + 87, + 64 - 76 ) ) ) )
----
-66

query I rowsort
SELECT - CASE + - 85 WHEN + 55 THEN 44 END
----
NULL

query I rowsort
SELECT DISTINCT 76 - 71
----
5

query I rowsort
SELECT - 81 + - 67 * + 43
----
-2962

query I rowsort
SELECT + 93 * 76 AS col2
----
7068

query I rowsort
SELECT - 57 * 99
----
-5643

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6637
SELECT - 45 + - 36 + 72 AS col1, - ( MAX( - 41 ) ) DIV + 93 AS col1
----
-9
0

skipif mysql # not compatible
query II rowsort label-6637
SELECT - 45 + - 36 + 72 AS col1, - ( MAX ( - 41 ) ) / + 93 AS col1
----
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL SUM( - - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL SUM ( - - 3 )
----
3

query I rowsort
SELECT - 98 + - 56 + + - 82
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - - COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - + NULLIF ( - 42, - + 26 + 58 ) * + 43 * + + 99 - + 50 + + 39
----
178783

query I rowsort
SELECT - 37 * - 79
----
2923

query I rowsort
SELECT - - 67 + + - 39 * - + 11 AS col0
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT COALESCE ( + - ( - 29 ), NULLIF ( - ( ( - 34 ) ), - - 20 * + 61 ) ) * + - COUNT( * ) + - + 4 - + + 52 + - - 39 + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT COALESCE ( + - ( - 29 ), NULLIF ( - ( ( - 34 ) ), - - 20 * + 61 ) ) * + - COUNT ( * ) + - + 4 - + + 52 + - - 39 + COUNT ( * ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ALL 47 * + 61 + 0 DIV 98 * 68 AS col2
----
2867

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL 47 * + 61 + 0 / 98 * 68 AS col2
----
2867

query I rowsort
SELECT - COALESCE ( + 4, - 5 )
----
-4

query I rowsort
SELECT - + ( - 5 ) - - ( - - 95 ) AS col1
----
100

query I rowsort
SELECT + - ( - 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT 24 * + COUNT( - + COALESCE ( ( - - 34 ), 71 ) ) + + 16
----
40

skipif mysql # not compatible
query I rowsort label-6649
SELECT 24 * + COUNT ( - + COALESCE ( ( - - 34 ), 71 ) ) + + 16
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6650
SELECT - MIN( + - 48 ) * + + 87 + - CAST( + 80 AS SIGNED ), COUNT( - - 95 ) AS col2
----
4096
1

skipif mysql # not compatible
query II rowsort label-6650
SELECT - MIN ( + - 48 ) * + + 87 + - CAST ( + 80 AS INTEGER ), COUNT ( - - 95 ) AS col2
----
4096
1

query II rowsort
SELECT + + 97 * + + 2 + + 51 AS col2, + 1
----
245
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT - COUNT( * ) * 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - COUNT ( * ) * 38 AS col1
----
-38

query I rowsort
SELECT - 59 + - 95
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT ALL + 41, 48 + NULLIF ( 85, 49 + - + COUNT( ALL - + 67 ) ) AS col2
----
41
133

skipif mysql # not compatible
query II rowsort label-6654
SELECT ALL + 41, 48 + NULLIF ( 85, 49 + - + COUNT ( ALL - + 67 ) ) AS col2
----
41
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + SUM( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6655
SELECT + SUM ( - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6656
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 72 DIV - ( 14 ) + 75 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-6656
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 / - ( 14 ) + 75 AS col2
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL 32 * + ( COUNT( * ) ) - 31
----
1

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL 32 * + ( COUNT ( * ) ) - 31
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT ALL + 78 * - COALESCE ( + 87, 0 * - 80 DIV COUNT( * ) ) - + CASE + 41 WHEN - 97 THEN - COUNT( * ) * + 77 + - + 96 DIV 56 ELSE 2 END * - COUNT( * )
----
-6784

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + 78 * - COALESCE ( + 87, 0 * - 80 / COUNT ( * ) ) - + CASE + 41 WHEN - 97 THEN - COUNT ( * ) * + 77 + - + 96 / 56 ELSE 2 END * - COUNT ( * )
----
-6784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT + 64 * + - 38 * - + CASE + 70 WHEN + - CAST( - + COUNT( * ) AS SIGNED ) THEN NULL WHEN 92 THEN - 80 * + + 50 WHEN - - MIN( - 60 ) * 95 + + 30 - + COUNT( * ) * - 3 * + 62 THEN 44 + COUNT( * ) END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 64 * + - 38 * - + CASE + 70 WHEN + - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 92 THEN - 80 * + + 50 WHEN - - MIN ( - 60 ) * 95 + + 30 - + COUNT ( * ) * - 3 * + 62 THEN 44 + COUNT ( * ) END * - 22
----
NULL

query II rowsort
SELECT DISTINCT + 44, + 91 AS col1
----
44
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6661
SELECT + COALESCE ( - 56, + 73 + - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - 19 DIV + 50 ) * 97 AS col1
----
-5432

skipif mysql # not compatible
query I rowsort label-6661
SELECT + COALESCE ( - 56, + 73 + - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 19 / + 50 ) * 97 AS col1
----
-5432

query I rowsort
SELECT - 34 * + 28 AS col1
----
-952

query III rowsort
SELECT DISTINCT 11, 62 AS col1, - 19 AS col2
----
11
62
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT COUNT( ( - 16 ) ) * + 55 * 11
----
605

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT COUNT ( ( - 16 ) ) * + 55 * 11
----
605

query I rowsort
SELECT + 98 * 3 AS col1
----
294

query I rowsort
SELECT ALL COALESCE ( - - 46, 23 ) * 33 * 88 * - + 33 + - COALESCE ( 26, - 94 * - 48 ) + 74 - - + 38
----
-4408186

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - 12 * + COUNT( * ) * - 97
----
1164

skipif mysql # not compatible
query I rowsort label-6667
SELECT - 12 * + COUNT ( * ) * - 97
----
1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT + 65 - + CAST( NULL AS SIGNED ) / - 52 * - + 55 * - CASE - 37 WHEN - - 53 THEN + + 58 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 65 - + CAST ( NULL AS INTEGER ) / - 52 * - + 55 * - CASE - 37 WHEN - - 53 THEN + + 58 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - - 18, 64 col1
----
18
64

query I rowsort
SELECT DISTINCT - 63 + 77 * - 52
----
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL + COUNT( * ) + 40 * - 30 + 62 AS col2
----
-1137

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + COUNT ( * ) + 40 * - 30 + 62 AS col2
----
-1137

query I rowsort
SELECT - 92 + 52
----
-40

query I rowsort
SELECT ALL - 30 + + 67
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6674
SELECT DISTINCT - 25 AS col0, - CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 12 )
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-6674
SELECT DISTINCT - 25 AS col0, - CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 12 )
----
-25
NULL

query I rowsort
SELECT ALL - - 8 + - + 78
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - MIN( - + 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-6676
SELECT - MIN ( - + 57 ) col2
----
57

query I rowsort
SELECT ALL + 80 * - 42 AS col1
----
-3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6678
SELECT - COALESCE ( 87, 89 DIV - 58 + - 53 + - COALESCE ( + COUNT( * ), + + 55 ) + 46 * CASE 56 WHEN - CAST( NULL AS SIGNED ) THEN + - SUM( ALL - 63 ) + - 16 * COUNT( * ) END * 10 + 33, + 4 ) * + ( + 55 ) + SUM( ALL 64 ) * - 77
----
-9713

skipif mysql # not compatible
query I rowsort label-6678
SELECT - COALESCE ( 87, 89 / - 58 + - 53 + - COALESCE ( + COUNT ( * ), + + 55 ) + 46 * CASE 56 WHEN - CAST ( NULL AS INTEGER ) THEN + - SUM ( ALL - 63 ) + - 16 * COUNT ( * ) END * 10 + 33, + 4 ) * + ( + 55 ) + SUM ( ALL 64 ) * - 77
----
-9713

query I rowsort
SELECT - - 69 - 64 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT + 32 DIV - + COUNT( * ) - 44 * 60 + + 43 col0
----
-2629

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 32 / - + COUNT ( * ) - 44 * 60 + + 43 col0
----
-2629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6681
SELECT - COUNT( * ) * MIN( - CAST( + 14 AS SIGNED ) ) - - 13 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6681
SELECT - COUNT ( * ) * MIN ( - CAST ( + 14 AS INTEGER ) ) - - 13 AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT ALL - 57 DIV 12 * + 40 + - ( + 34 ) AS col2
----
-194

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - 57 / 12 * + 40 + - ( + 34 ) AS col2
----
-194

query II rowsort
SELECT + 22 AS col2, - 96 * + 58
----
22
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT - AVG ( 51 ) + CASE + COUNT( * ) WHEN - - 1 THEN NULL ELSE + 81 END - - + CAST( + 2 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT - AVG ( 51 ) + CASE + COUNT ( * ) WHEN - - 1 THEN NULL ELSE + 81 END - - + CAST ( + 2 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT - 64 * - SUM( + 1 ) * - ( CAST( NULL AS SIGNED ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT - 64 * - SUM ( + 1 ) * - ( CAST ( NULL AS INTEGER ) ) * - 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL + CASE - 76 WHEN CAST( + 20 AS SIGNED ) * 87 THEN - 92 * 68 * + 47 WHEN - + 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL + CASE - 76 WHEN CAST ( + 20 AS INTEGER ) * 87 THEN - 92 * 68 * + 47 WHEN - + 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + ( + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + COUNT( DISTINCT 27 ) * + ( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + COUNT ( DISTINCT 27 ) * + ( + 0 ) AS col1
----
0

query I rowsort
SELECT ALL + 18 - - 43 * + 14 + 23 AS col1
----
643

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT 86 * 89 DIV 2 DIV + + 45
----
85

skipif mysql # not compatible
query I rowsort label-6690
SELECT 86 * 89 / 2 / + + 45
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL 82 - CASE - 8 WHEN - 23 * - 47 + - 0 THEN + MAX( - 25 ) WHEN + 59 THEN + 86 * - 25 * + 52 END - - 88 + - CASE - 82 WHEN COALESCE ( + 26, COUNT( * ) + - 41 * + CAST( NULL AS SIGNED ), 52 ) THEN + COUNT( * ) WHEN + 10 THEN + 13 END * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL 82 - CASE - 8 WHEN - 23 * - 47 + - 0 THEN + MAX ( - 25 ) WHEN + 59 THEN + 86 * - 25 * + 52 END - - 88 + - CASE - 82 WHEN COALESCE ( + 26, COUNT ( * ) + - 41 * + CAST ( NULL AS INTEGER ), 52 ) THEN + COUNT ( * ) WHEN + 10 THEN + 13 END * 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 45, 68 * + 24 * - 69 ) * + - ( + + 7 ) * - 97
----
30555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6693
SELECT COALESCE ( - 44, + + 5 + + - 52 * - COUNT( * ) DIV + 86 ) + + + 58 col1, - SUM( + 4 ) * ( + + 92 ) - + + 81 AS col0
----
14
-449

skipif mysql # not compatible
query II rowsort label-6693
SELECT COALESCE ( - 44, + + 5 + + - 52 * - COUNT ( * ) / + 86 ) + + + 58 col1, - SUM ( + 4 ) * ( + + 92 ) - + + 81 AS col0
----
14
-449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT COALESCE ( - CAST( + + 32 AS SIGNED ), - 50 ) * - - 84 + + 51 AS col2
----
-2637

skipif mysql # not compatible
query I rowsort label-6694
SELECT COALESCE ( - CAST ( + + 32 AS INTEGER ), - 50 ) * - - 84 + + 51 AS col2
----
-2637

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL + MIN( 25 ) * + COUNT( * ) * + + NULLIF ( + - 16, + CASE + - 7 WHEN - 30 THEN - - 95 * + - COALESCE ( - - 63, + 54, + + 71 ) - + COUNT( ALL - + 5 ) WHEN 31 THEN - + 60 + ( + 89 ) WHEN - 77 THEN 62 * + MAX( - 86 ) ELSE 98 END ) AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + MIN ( 25 ) * + COUNT ( * ) * + + NULLIF ( + - 16, + CASE + - 7 WHEN - 30 THEN - - 95 * + - COALESCE ( - - 63, + 54, + + 71 ) - + COUNT ( ALL - + 5 ) WHEN 31 THEN - + 60 + ( + 89 ) WHEN - 77 THEN 62 * + MAX ( - 86 ) ELSE 98 END ) AS col2
----
-400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6696
SELECT 95 DIV 63 AS col0, COUNT( * ) * - 80
----
1
-80

skipif mysql # not compatible
query II rowsort label-6696
SELECT 95 / 63 AS col0, COUNT ( * ) * - 80
----
1
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT 31 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT 31 / - 46
----
0

query I rowsort
SELECT 10 * + - 15 + + 62
----
-88

query I rowsort
SELECT ALL - 74 * + 48
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL - NULLIF ( + - COUNT( + 22 ), + 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - NULLIF ( + - COUNT ( + 22 ), + 13 ) AS col1
----
1

query I rowsort
SELECT 11 + - - 68
----
79

query I rowsort
SELECT DISTINCT + 1 * NULLIF ( - 91, + + 40 * - 50 + + 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6703
SELECT ALL - 47 + - ( - NULLIF ( + COUNT( * ), 76 ) ) * + + 28 + - + 74 AS col0, ( CAST( NULL AS SIGNED ) ) * ( + - 67 ) - + 2
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-6703
SELECT ALL - 47 + - ( - NULLIF ( + COUNT ( * ), 76 ) ) * + + 28 + - + 74 AS col0, ( CAST ( NULL AS INTEGER ) ) * ( + - 67 ) - + 2
----
-93
NULL

query I rowsort
SELECT 27 - 52 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + CASE + 91 WHEN + COUNT( * ) THEN + + 59 END + + 92 - + 43 + COUNT( * ) * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + CASE + 91 WHEN + COUNT ( * ) THEN + + 59 END + + 92 - + 43 + COUNT ( * ) * + 41 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - + 63, 58 * + 98 + + 24 ) + - 72 AS col2
----
-135

query I rowsort
SELECT 46 + + ( + 9 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL CASE + + COUNT( * ) WHEN 10 THEN + 26 ELSE NULL END + - + COUNT( * ) + + 97 * ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL CASE + + COUNT ( * ) WHEN 10 THEN + 26 ELSE NULL END + - + COUNT ( * ) + + 97 * ( + 21 )
----
NULL

query II rowsort
SELECT + ( + 99 ) AS col1, - 41 * - 85 AS col2
----
99
3485

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT DISTINCT + 3 * + 40 AS col0, COUNT( * ) * - - 50 + 32 AS col0
----
120
82

skipif mysql # not compatible
query II rowsort label-6710
SELECT DISTINCT + 3 * + 40 AS col0, COUNT ( * ) * - - 50 + 32 AS col0
----
120
82

query I rowsort
SELECT DISTINCT + 92 + + CASE + + 9 WHEN + 22 THEN + - 12 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL - 34 + + CAST( - 71 AS SIGNED ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - 34 + + CAST ( - 71 AS INTEGER ) AS col0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6713
SELECT DISTINCT 55 * + 43 AS col2, + 64 * - + CAST( NULL AS SIGNED ) col1
----
2365
NULL

skipif mysql # not compatible
query II rowsort label-6713
SELECT DISTINCT 55 * + 43 AS col2, + 64 * - + CAST ( NULL AS INTEGER ) col1
----
2365
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT ALL - 84 + - 22 DIV + 32 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - 84 + - 22 / + 32 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + MAX( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + MAX ( + 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT 58 + + CAST( - + 33 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-6716
SELECT 58 + + CAST ( - + 33 AS INTEGER )
----
25

query I rowsort
SELECT + 52 * + 69 * 32
----
114816

query I rowsort
SELECT ALL 95 - + 67 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT - + NULLIF ( - 9, - + COUNT( * ) + - + 13 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6719
SELECT - + NULLIF ( - 9, - + COUNT ( * ) + - + 13 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT MAX( + 12 ) + 47 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6720
SELECT MAX ( + 12 ) + 47 AS col0
----
59

query I rowsort
SELECT 37 / - + CASE - AVG ( ALL + + 87 ) WHEN - ( + + 33 ) + + ( 75 ) THEN + 21 WHEN + COALESCE ( + 12, 52, + - 58 * - 32 * - - 34 ) / + 47 THEN - 68 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6722
SELECT ALL - 27 DIV - 69, + NULLIF ( + 49, - - 76 + - + 60 ) col1
----
0
49

skipif mysql # not compatible
query II rowsort label-6722
SELECT ALL - 27 / - 69, + NULLIF ( + 49, - - 76 + - + 60 ) col1
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - + COUNT( + 64 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - + COUNT ( + 64 ) AS col2
----
-1

query I rowsort
SELECT 96 * + + CASE 67 WHEN - - 86 THEN 93 * - - 76 + + 82 + + - 84 WHEN + 61 - - 66 - - AVG ( DISTINCT + 55 ) THEN - 24 WHEN 20 + + 95 * + - 85 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT COUNT( * ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT COUNT ( * ) * + 42
----
42

query I rowsort
SELECT ALL + 87 * ( - + 80 )
----
-6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6727
SELECT - 68 DIV + CASE + COALESCE ( 32, - - CAST( - 52 AS SIGNED ), + - 90 + - 63 - MIN( - + 97 ) + - 93 DIV + - 56 + + 12 * - ( + 83 ) * + COUNT( * ) + 98 + - 24 * + 96 ) WHEN 2 THEN NULL ELSE + 83 END + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 68 / + CASE + COALESCE ( 32, - - CAST ( - 52 AS INTEGER ), + - 90 + - 63 - MIN ( - + 97 ) + - 93 / + - 56 + + 12 * - ( + 83 ) * + COUNT ( * ) + 98 + - 24 * + 96 ) WHEN 2 THEN NULL ELSE + 83 END + 5 AS col0
----
5

query II rowsort
SELECT 0 col1, 45
----
0
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL - MIN( + + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - MIN ( + + 26 ) AS col1
----
-26

query I rowsort
SELECT 24 * - 3 - + + 51
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL 11 * + + 72 DIV + 4
----
198

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL 11 * + + 72 / + 4
----
198

query II rowsort
SELECT DISTINCT - 44 AS col1, 5
----
-44
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL - COUNT( * ) + + - 64 + - + 35 * 7 + + NULLIF ( + + 22, - - 62 + + ( 21 ) + - 37 + COUNT( * ) * + + 42 / - 51 * 39 + - 22 ) * - 42 + + 67 * 86
----
4528

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - COUNT ( * ) + + - 64 + - + 35 * 7 + + NULLIF ( + + 22, - - 62 + + ( 21 ) + - 37 + COUNT ( * ) * + + 42 / - 51 * 39 + - 22 ) * - 42 + + 67 * 86
----
4528

query I rowsort
SELECT ALL + 15 + - - 53
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6735
SELECT 37 + 78 DIV 83 col1, + 3
----
37
3

skipif mysql # not compatible
query II rowsort label-6735
SELECT 37 + 78 / 83 col1, + 3
----
37
3

query II rowsort
SELECT - 71, ( + 21 ) AS col0
----
-71
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT DISTINCT COUNT( DISTINCT - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT COUNT ( DISTINCT - 51 )
----
1

query I rowsort
SELECT 27 * + 98 col2
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-6739
SELECT 55 * + COUNT( * ) + 15, 2 AS col2
----
70
2

skipif mysql # not compatible
query II rowsort label-6739
SELECT 55 * + COUNT ( * ) + 15, 2 AS col2
----
70
2

query I rowsort
SELECT ( + 72 ) * - 93 * - 6 + - 52
----
40124

query I rowsort
SELECT DISTINCT + 46 * + + 17 * - 8
----
-6256

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT - 49, - SUM( ALL - 74 ) + - 7 AS col2
----
-49
67

skipif mysql # not compatible
query II rowsort label-6742
SELECT - 49, - SUM ( ALL - 74 ) + - 7 AS col2
----
-49
67

query II rowsort
SELECT DISTINCT 60 AS col2, 84 - - - 97 * - 68 AS col2
----
60
6680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT ALL + + 36 * COUNT( * ) + + MAX( DISTINCT + - CAST( + 61 AS SIGNED ) ) * - 42 * 96 AS col2
----
245988

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + + 36 * COUNT ( * ) + + MAX ( DISTINCT + - CAST ( + 61 AS INTEGER ) ) * - 42 * 96 AS col2
----
245988

query I rowsort
SELECT DISTINCT - - 74 - + - 35 - + 65 * + + 85 * + 93
----
-513716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL + SUM( - CAST( + 1 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + SUM ( - CAST ( + 1 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - - NULLIF ( + ( + 59 ), - 89 * - NULLIF ( - MIN( 30 ), - 31 + - 28 + - 65 * - 15 * + 81 * + 97 ) * + - 53 + 64 * + - 4 * - - 65 + + CASE CASE - 7 WHEN COUNT( * ) * + 6 THEN + ( - NULLIF ( 2, + 54 ) ) END WHEN COUNT( * ) + 9 THEN COALESCE ( AVG ( ALL - 73 ), - SUM( ALL 25 ) * + 42 + COALESCE ( 41 + 14, 97, 93 * 51 ) / - 4, ( 60 ) - AVG ( ALL 4 ) * ( - 73 + + 48 ), 10 ) / 22 + 94 ELSE NULL END + - 33 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6747
SELECT - - NULLIF ( + ( + 59 ), - 89 * - NULLIF ( - MIN ( 30 ), - 31 + - 28 + - 65 * - 15 * + 81 * + 97 ) * + - 53 + 64 * + - 4 * - - 65 + + CASE CASE - 7 WHEN COUNT ( * ) * + 6 THEN + ( - NULLIF ( 2, + 54 ) ) END WHEN COUNT ( * ) + 9 THEN COALESCE ( AVG ( ALL - 73 ), - SUM ( ALL 25 ) * + 42 + COALESCE ( 41 + 14, 97, 93 * 51 ) / - 4, ( 60 ) - AVG ( ALL 4 ) * ( - 73 + + 48 ), 10 ) / 22 + 94 ELSE NULL END + - 33 ) AS col0
----
59

query I rowsort
SELECT - 40 + + + 12
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT DISTINCT 28, 61 + - NULLIF ( + 52, + COUNT( * ) ) AS col2
----
28
9

skipif mysql # not compatible
query II rowsort label-6749
SELECT DISTINCT 28, 61 + - NULLIF ( + 52, + COUNT ( * ) ) AS col2
----
28
9

query II rowsort
SELECT - 39 AS col1, 35
----
-39
35

query I rowsort
SELECT - ( + + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ( - 89 ) - - MIN( DISTINCT - + 64 ) - + 9
----
-162

skipif mysql # not compatible
query I rowsort label-6752
SELECT ( - 89 ) - - MIN ( DISTINCT - + 64 ) - + 9
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL - 98 * - + 39 + 65 * + CAST( - + COUNT( * ) AS SIGNED ) + 31 + - COUNT( * ) AS col0
----
3787

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - 98 * - + 39 + 65 * + CAST ( - + COUNT ( * ) AS INTEGER ) + 31 + - COUNT ( * ) AS col0
----
3787

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT + - MIN( DISTINCT + 95 ) + - 45, 43 * 27 col0
----
-140
1161

skipif mysql # not compatible
query II rowsort label-6754
SELECT + - MIN ( DISTINCT + 95 ) + - 45, 43 * 27 col0
----
-140
1161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT ALL - CASE - + 50 WHEN - MAX( DISTINCT 18 ) THEN + - 56 * + ( - - COUNT( * ) ) * CAST( NULL AS SIGNED ) + - CASE + CAST( NULL AS SIGNED ) WHEN - + 25 - ( - - 87 ) THEN COUNT( + 88 ) + CASE + - 36 WHEN + 90 THEN + ( - 58 ) WHEN - 74 THEN NULL ELSE NULL END - + 57 WHEN + MIN( 77 ) * 21 THEN + 48 * 16 END * MAX( ALL + 96 * 96 + 49 ) END - 4 * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - CASE - + 50 WHEN - MAX ( DISTINCT 18 ) THEN + - 56 * + ( - - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - + 25 - ( - - 87 ) THEN COUNT ( + 88 ) + CASE + - 36 WHEN + 90 THEN + ( - 58 ) WHEN - 74 THEN NULL ELSE NULL END - + 57 WHEN + MIN ( 77 ) * 21 THEN + 48 * 16 END * MAX ( ALL + 96 * 96 + 49 ) END - 4 * 16 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL CAST( NULL AS SIGNED ) - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL CAST ( NULL AS INTEGER ) - + 50
----
NULL

query I rowsort
SELECT DISTINCT - 48 * - - 13 + 35
----
-589

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT ALL MAX( ALL 82 ) * COUNT( * ) col1, - 26 * - ( 16 ) AS col2
----
82
416

skipif mysql # not compatible
query II rowsort label-6758
SELECT ALL MAX ( ALL 82 ) * COUNT ( * ) col1, - 26 * - ( 16 ) AS col2
----
82
416

query I rowsort
SELECT - 0 * 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + 65 - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6760
SELECT + 65 - - COUNT ( * )
----
66

query I rowsort
SELECT 91 * + + 85 * + 52 - - - 34 AS col1
----
402186

query I rowsort
SELECT ALL + 2 * - ( ( - 49 ) ) + + 13 * + 12 AS col2
----
254

query I rowsort
SELECT 92 * + 93 + - 51 * 1 + - 62
----
8443

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT + 23 DIV - + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT + 23 / - + 84 AS col1
----
0

query I rowsort
SELECT ALL 44 * - 51 * - 14 * + + 0 + - ( + + 41 ) AS col1
----
-41

query I rowsort
SELECT + ( - - 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL - SUM( ALL + 87 ) * - ( 8 ) + + 65
----
761

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL - SUM ( ALL + 87 ) * - ( 8 ) + + 65
----
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT DISTINCT + 92 * - + CAST( NULL AS SIGNED ) / - 31 + - 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + 92 * - + CAST ( NULL AS INTEGER ) / - 31 + - 74 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6769
SELECT + 87 + - 96 * NULLIF ( 90, + - 41 ) AS col2, + 12 DIV + 22 * + - 62
----
-8553
0

skipif mysql # not compatible
query II rowsort label-6769
SELECT + 87 + - 96 * NULLIF ( 90, + - 41 ) AS col2, + 12 / + 22 * + - 62
----
-8553
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT + 59 * ( + 54 ) + 41 + + + 15 / + + ( - + CASE - COUNT( * ) WHEN NULLIF ( - - 16, 97 - + 57 ) THEN + 48 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + 59 * ( + 54 ) + 41 + + + 15 / + + ( - + CASE - COUNT ( * ) WHEN NULLIF ( - - 16, 97 - + 57 ) THEN + 48 END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT 20 * + COUNT( * ) * - - 77 + ( COUNT( * ) )
----
1541

skipif mysql # not compatible
query I rowsort label-6771
SELECT 20 * + COUNT ( * ) * - - 77 + ( COUNT ( * ) )
----
1541

query I rowsort
SELECT - 69 * + 33 * + 47 AS col0
----
-107019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 8 AS col2
----
NULL

query I rowsort
SELECT ALL 21 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - 33 + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 33 + - COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT + 75 * COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + 75 * COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ALL - 88 * - 31 * 50 - + 92 - + + COALESCE ( + 38, 14 )
----
136270

query I rowsort
SELECT - 58 + + 32
----
-26

query I rowsort
SELECT DISTINCT + + 34 - 82 + + 54
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6780
SELECT ALL - MAX( ALL + 85 ) / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - MAX ( ALL + 85 ) / - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - - 87 * + 26 AS col0
----
2262

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT - 34 DIV + - 13
----
2

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 34 / + - 13
----
2

query I rowsort
SELECT - ( + 8 ) * + 10 * - 94 AS col2
----
7520

query I rowsort
SELECT DISTINCT - 60 * - + 93
----
5580

query I rowsort
SELECT - 61 + - 88
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6786
SELECT - - COUNT( * ) DIV + - NULLIF ( - 11, + 80 DIV + 15 - - 34 + 64 * + CASE + AVG ( DISTINCT + - 93 ) WHEN NULLIF ( - 53, + - 27 * - 79 * + - CAST( - 53 AS SIGNED ) ) - + - 88 THEN - ( + 52 ) * + 92 - + 86 WHEN 4 + CASE 13 WHEN 67 DIV COALESCE ( - 41, - MAX( ALL - 12 ), 27 + 64 ) THEN NULL WHEN 17 THEN 81 END THEN - ( - NULLIF ( 86, MAX( ALL + 0 ) DIV 69 ) ) ELSE 96 * - 9 - + ( 79 ) END + 9 * + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT - - COUNT ( * ) / + - NULLIF ( - 11, + 80 / + 15 - - 34 + 64 * + CASE + AVG ( DISTINCT + - 93 ) WHEN NULLIF ( - 53, + - 27 * - 79 * + - CAST ( - 53 AS INTEGER ) ) - + - 88 THEN - ( + 52 ) * + 92 - + 86 WHEN 4 + CASE 13 WHEN 67 / COALESCE ( - 41, - MAX ( ALL - 12 ), 27 + 64 ) THEN NULL WHEN 17 THEN 81 END THEN - ( - NULLIF ( 86, MAX ( ALL + 0 ) / 69 ) ) ELSE 96 * - 9 - + ( 79 ) END + 9 * + 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - 41 * COUNT( DISTINCT - 7 ) + NULLIF ( + + 36, - ( SUM( - 10 ) ) ) - - - 6 * + 4 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - 41 * COUNT ( DISTINCT - 7 ) + NULLIF ( + + 36, - ( SUM ( - 10 ) ) ) - - - 6 * + 4 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT - + CAST( NULL AS SIGNED ) * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT - + CAST ( NULL AS INTEGER ) * + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + CASE + + MIN( DISTINCT 10 ) WHEN - - 44 / + + ( + 31 ) THEN NULL ELSE - 96 END AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + CASE + + MIN ( DISTINCT 10 ) WHEN - - 44 / + + ( + 31 ) THEN NULL ELSE - 96 END AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6790
SELECT DISTINCT - COALESCE ( + 98, + SUM( - + 28 ) + + 87 + + - 11 * - CASE + 58 WHEN + + 46 - + CAST( NULL AS SIGNED ) + + + 37 * - 83 THEN NULL WHEN - + AVG ( DISTINCT + + 99 ) THEN - 54 END, + MAX( ( - CAST( - 42 AS SIGNED ) ) ) ) * COUNT( + 72 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - COALESCE ( + 98, + SUM ( - + 28 ) + + 87 + + - 11 * - CASE + 58 WHEN + + 46 - + CAST ( NULL AS INTEGER ) + + + 37 * - 83 THEN NULL WHEN - + AVG ( DISTINCT + + 99 ) THEN - 54 END, + MAX ( ( - CAST ( - 42 AS INTEGER ) ) ) ) * COUNT ( + 72 ) AS col1
----
-98

query I rowsort
SELECT + + 80 + - 20 col0
----
60

query II rowsort
SELECT ALL + ( 76 ) col2, 40
----
76
40

query I rowsort
SELECT - ( - + 67 ) * + 32 col2
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT + 41 + MIN( 13 ) * - NULLIF ( + 58, COUNT( * ) )
----
-713

skipif mysql # not compatible
query I rowsort label-6794
SELECT + 41 + MIN ( 13 ) * - NULLIF ( + 58, COUNT ( * ) )
----
-713

query I rowsort
SELECT ALL 24 + - 22
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT CAST( - ( SUM( DISTINCT 88 ) ) AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6796
SELECT CAST ( - ( SUM ( DISTINCT 88 ) ) AS INTEGER ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL 72 / + - 83 + + CASE 4 WHEN NULLIF ( 59, + 66 * CASE - 54 WHEN + - 76 * - 22 * + - ( - 59 ) * + 32 + COUNT( * ) * - - 36 + SUM( + + 77 ) + - 4 + 16 * + 26 THEN NULL WHEN - 91 * 65 THEN + 56 / 3 END + 18 ) / + 55 THEN + 22 * 40 ELSE SUM( 43 ) * + 5 + COUNT( * ) END + + 5 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL 72 / + - 83 + + CASE 4 WHEN NULLIF ( 59, + 66 * CASE - 54 WHEN + - 76 * - 22 * + - ( - 59 ) * + 32 + COUNT ( * ) * - - 36 + SUM ( + + 77 ) + - 4 + 16 * + 26 THEN NULL WHEN - 91 * 65 THEN + 56 / 3 END + 18 ) / + 55 THEN + 22 * 40 ELSE SUM ( 43 ) * + 5 + COUNT ( * ) END + + 5 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT CAST( CAST( NULLIF ( - 49, + 9 ) AS SIGNED ) AS SIGNED ) AS col2, + ( + 55 ) AS col0
----
-49
55

skipif mysql # not compatible
query II rowsort label-6798
SELECT CAST ( CAST ( NULLIF ( - 49, + 9 ) AS INTEGER ) AS INTEGER ) AS col2, + ( + 55 ) AS col0
----
-49
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6799
SELECT ALL + 66 col2, COALESCE ( - + 36, 29 DIV 59 + - + 11 DIV AVG ( ALL 46 ) + - COUNT( * ) * - - 30, + 29 ) + + 83 AS col0
----
66
47

skipif mysql # not compatible
query II rowsort label-6799
SELECT ALL + 66 col2, COALESCE ( - + 36, 29 / 59 + - + 11 / AVG ( ALL 46 ) + - COUNT ( * ) * - - 30, + 29 ) + + 83 AS col0
----
66
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6800
SELECT COUNT( * ) * 91 + + + CAST( - 9 AS SIGNED ) + + 3 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6800
SELECT COUNT ( * ) * 91 + + + CAST ( - 9 AS INTEGER ) + + 3 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL MAX( ALL + ( + 56 ) ) * + - 80
----
-4480

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL MAX ( ALL + ( + 56 ) ) * + - 80
----
-4480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT CAST( + 35 AS SIGNED ) col1
----
35

skipif mysql # not compatible
query I rowsort label-6802
SELECT CAST ( + 35 AS INTEGER ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - COUNT( * ) * - + 28 + 39 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6803
SELECT - COUNT ( * ) * - + 28 + 39 AS col0
----
67

query I rowsort
SELECT + 57 * 43
----
2451

query I rowsort
SELECT + 16 * - + 60
----
-960

query II rowsort
SELECT DISTINCT + 78 AS col0, 53 AS col2
----
78
53

query I rowsort
SELECT + - 2 * + 78 col0
----
-156

query I rowsort
SELECT + + COALESCE ( - 86, - + 38 + - 21 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT - 64 * + MIN( 71 ) + - 49 AS col0
----
-4593

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - 64 * + MIN ( 71 ) + - 49 AS col0
----
-4593

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - MAX( DISTINCT - ( 85 ) ) * - 11
----
-935

skipif mysql # not compatible
query I rowsort label-6810
SELECT - MAX ( DISTINCT - ( 85 ) ) * - 11
----
-935

query I rowsort
SELECT ALL - - 69 * 55 AS col2
----
3795

query I rowsort
SELECT ALL + 20 * - 15 + + 87 AS col2
----
-213

query I rowsort
SELECT DISTINCT - 3 * 57
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL + COUNT( DISTINCT - - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + COUNT ( DISTINCT - - 3 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT COALESCE ( - ( 24 ), - - CAST( - 47 AS SIGNED ) * 16 * + 18 ) * + 82 + - 81 AS col1
----
-2049

skipif mysql # not compatible
query I rowsort label-6815
SELECT COALESCE ( - ( 24 ), - - CAST ( - 47 AS INTEGER ) * 16 * + 18 ) * + 82 + - 81 AS col1
----
-2049

onlyif mysql # aggregate syntax: 
query III rowsort label-6816
SELECT ALL + 70 * - - 20 * + 51 * 53 + - 21 - + 26 AS col2, COUNT( DISTINCT - 0 ) AS col0, - ( - 39 ) AS col2
----
3784153
1
39

skipif mysql # not compatible
query III rowsort label-6816
SELECT ALL + 70 * - - 20 * + 51 * 53 + - 21 - + 26 AS col2, COUNT ( DISTINCT - 0 ) AS col0, - ( - 39 ) AS col2
----
3784153
1
39

query II rowsort
SELECT - 18 AS col1, 11 AS col0
----
-18
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6818
SELECT + COUNT( * ) AS col2, ( 44 ) AS col0
----
1
44

skipif mysql # not compatible
query II rowsort label-6818
SELECT + COUNT ( * ) AS col2, ( 44 ) AS col0
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT ALL + CAST( + 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + CAST ( + 69 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - 95 * - ( + COUNT( * ) ) + ( - + SUM( DISTINCT 53 ) )
----
42

skipif mysql # not compatible
query I rowsort label-6820
SELECT - 95 * - ( + COUNT ( * ) ) + ( - + SUM ( DISTINCT 53 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - + MIN( + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6821
SELECT - + MIN ( + + 49 )
----
-49

query I rowsort
SELECT ALL + 28 + + + 85 col0
----
113

query I rowsort
SELECT 96 + - 89
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT ALL 35 DIV + + 19
----
1

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL 35 / + + 19
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT DISTINCT + 46 + 7 DIV - COALESCE ( + 92, 55 + + - 30 + 77 + - - 15 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + 46 + 7 / - COALESCE ( + 92, 55 + + - 30 + 77 + - - 15 ) col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6826
SELECT DISTINCT 84 AS col1, 45 * + MIN( DISTINCT + - 27 ) * 60 AS col0
----
84
-72900

skipif mysql # not compatible
query II rowsort label-6826
SELECT DISTINCT 84 AS col1, 45 * + MIN ( DISTINCT + - 27 ) * 60 AS col0
----
84
-72900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT 15 + - 34 - + CAST( + - 15 AS SIGNED ) * + 67 * + 31 AS col2
----
31136

skipif mysql # not compatible
query I rowsort label-6827
SELECT 15 + - 34 - + CAST ( + - 15 AS INTEGER ) * + 67 * + 31 AS col2
----
31136

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + COALESCE ( - + 51, - 1 * + 78 * MAX( + 47 ) ) + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + COALESCE ( - + 51, - 1 * + 78 * MAX ( + 47 ) ) + COUNT ( * )
----
-50

query II rowsort
SELECT DISTINCT - 74 * 30 AS col1, + 53 * - + 48 col1
----
-2220
-2544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT ALL MAX( ALL 79 ) + CASE + 71 WHEN - 48 * + NULLIF ( - - CAST( NULL AS SIGNED ), 43 ) THEN NULL WHEN + + 18 THEN ( - + 99 ) * + 21 * + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL MAX ( ALL 79 ) + CASE + 71 WHEN - 48 * + NULLIF ( - - CAST ( NULL AS INTEGER ), 43 ) THEN NULL WHEN + + 18 THEN ( - + 99 ) * + 21 * + 77 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 95 AS col2, - ( - 15 )
----
95
15

query I rowsort
SELECT - 5 * + 37 - - + 80 + + 71 * - 97 * ( - 62 ) + - - 61 AS col2
----
426950

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + COUNT( * ) - 90
----
-89

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + COUNT ( * ) - 90
----
-89

query I rowsort
SELECT 21 * 10 * + - 42 * - 97
----
855540

query II rowsort
SELECT + 56, + 92 AS col1
----
56
92

query I rowsort
SELECT 30 + 13 AS col2
----
43

query II rowsort
SELECT 49 AS col1, 37
----
49
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - ( - COUNT( * ) ) - - 77 col2
----
78

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - ( - COUNT ( * ) ) - - 77 col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) * - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) * - + 90
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT + 23 AS col0, CASE + - 89 WHEN - 42 * - ( + 36 ) THEN NULL WHEN SUM( ALL - ( 17 ) ) THEN 94 - + - COUNT( * ) * - + 42 / + 66 * 16 * 38 ELSE NULL END
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6840
SELECT + 23 AS col0, CASE + - 89 WHEN - 42 * - ( + 36 ) THEN NULL WHEN SUM ( ALL - ( 17 ) ) THEN 94 - + - COUNT ( * ) * - + 42 / + 66 * 16 * 38 ELSE NULL END
----
23
NULL

query I rowsort
SELECT ALL NULLIF ( + 17, + 40 * - 18 ) * - 85
----
-1445

query I rowsort
SELECT - 54 + - 68
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6843
SELECT + + 35 AS col0, CAST( NULL AS SIGNED ) + 99 + + 95 * + - COUNT( * ) AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-6843
SELECT + + 35 AS col0, CAST ( NULL AS INTEGER ) + 99 + + 95 * + - COUNT ( * ) AS col0
----
35
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT 81 DIV 59 * - - 18
----
18

skipif mysql # not compatible
query I rowsort label-6844
SELECT 81 / 59 * - - 18
----
18

query I rowsort
SELECT - 76 * - 78
----
5928

query I rowsort
SELECT DISTINCT - ( - - 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT ALL - COALESCE ( 80, - 84 + + - 55 ) DIV 23 DIV - 87 * - - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - COALESCE ( 80, - 84 + + - 55 ) / 23 / - 87 * - - 58 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6848
SELECT DISTINCT ( + 46 ) DIV 39 DIV - COUNT( * ) AS col0, + 16
----
-1
16

skipif mysql # not compatible
query II rowsort label-6848
SELECT DISTINCT ( + 46 ) / 39 / - COUNT ( * ) AS col0, + 16
----
-1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL + COUNT( * ) + 74 + 61 * + 49 + 41 AS col0
----
3105

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + COUNT ( * ) + 74 + 61 * + 49 + 41 AS col0
----
3105

query I rowsort
SELECT 81 + - 4 AS col2
----
77

query I rowsort
SELECT - ( - NULLIF ( - + 33, + 89 * - 1 * 73 + + + 4 ) )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT DISTINCT + 91 + 58 + + 0 - + SUM( DISTINCT + 46 ) + - 88 AS col1, 61 * + 18 - + 97 + + + COUNT( * )
----
15
1002

skipif mysql # not compatible
query II rowsort label-6852
SELECT DISTINCT + 91 + 58 + + 0 - + SUM ( DISTINCT + 46 ) + - 88 AS col1, 61 * + 18 - + 97 + + + COUNT ( * )
----
15
1002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT 29 * - 36 + - COUNT( * ) - + COUNT( * ) + - 31 * + - 60 * COUNT( * ) + + 16 + - + 2 DIV + 63
----
830

skipif mysql # not compatible
query I rowsort label-6853
SELECT 29 * - 36 + - COUNT ( * ) - + COUNT ( * ) + - 31 * + - 60 * COUNT ( * ) + + 16 + - + 2 / + 63
----
830

query II rowsort
SELECT + 48 AS col1, 15
----
48
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT CASE - + 95 WHEN 42 THEN 34 WHEN + + 51 * CAST( NULL AS SIGNED ) / - MAX( ALL 31 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT CASE - + 95 WHEN 42 THEN 34 WHEN + + 51 * CAST ( NULL AS INTEGER ) / - MAX ( ALL 31 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT COUNT( * ) + - - 86 - + CAST( - - 20 AS SIGNED ) * + - 87
----
1827

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( * ) + - - 86 - + CAST ( - - 20 AS INTEGER ) * + - 87
----
1827

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6857
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, - ( 62 ) * + - COALESCE ( + 1, + 17 ) AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL CAST ( NULL AS REAL ) AS col1, - ( 62 ) * + - COALESCE ( + 1, + 17 ) AS col0
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT + COUNT( * ) + - - ( + 89 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + COUNT ( * ) + - - ( + 89 ) col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6859
SELECT ( + CAST( NULL AS DECIMAL ) ) * - MAX( ALL + - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ( + CAST ( NULL AS REAL ) ) * - MAX ( ALL + - 38 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6860
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( * ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT 50 + CASE - + 15 WHEN ( + 12 ) + 37 + COUNT( * ) THEN + 93 END + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT 50 + CASE - + 15 WHEN ( + 12 ) + 37 + COUNT ( * ) THEN + 93 END + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT MIN( - 81 ) * CAST( NULL AS SIGNED ) - + 47 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT MIN ( - 81 ) * CAST ( NULL AS INTEGER ) - + 47 + - 8 AS col0
----
NULL

query I rowsort
SELECT 30 * - COALESCE ( + 77, + + 0 * + + 98 - - 70 ) col2
----
-2310

query II rowsort
SELECT NULLIF ( 99, 7 ) AS col1, - 78 AS col2
----
99
-78

query I rowsort
SELECT 46 * - ( - 19 )
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - SUM( + ( + 12 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - SUM ( + ( + 12 ) ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL + CAST( NULL AS SIGNED ) * + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT DISTINCT + 7 * 57 DIV 21 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + 7 * 57 / 21 AS col2
----
19

query I rowsort
SELECT + 77 * + 73 + - 25
----
5596

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + COUNT( ALL + 56 ) * 76 + - + 6 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6870
SELECT + COUNT ( ALL + 56 ) * 76 + - + 6 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT - ( ( + COUNT( * ) ) ) AS col1, ( + - COUNT( ALL + 45 ) ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6871
SELECT - ( ( + COUNT ( * ) ) ) AS col1, ( + - COUNT ( ALL + 45 ) ) AS col2
----
-1
-1

query I rowsort
SELECT + - 32 * + + 28 - - - ( + 74 ) + + + 37 * 38
----
436

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT + 41 DIV - 58 * 90
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT + 41 / - 58 * 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - 89 * 35 * 11 * + ( - COUNT( * ) ) + + + 95
----
34360

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - 89 * 35 * 11 * + ( - COUNT ( * ) ) + + + 95
----
34360

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - 80 * MAX( ALL - - 94 )
----
-7520

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 80 * MAX ( ALL - - 94 )
----
-7520

query I rowsort
SELECT + + 42 * + 16 * - 69 AS col0
----
-46368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT DISTINCT - 20 + - - CAST( NULL AS SIGNED ) + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - 20 + - - CAST ( NULL AS INTEGER ) + 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT ALL + 62 + - 80, - 2 * SUM( ALL ( + + 31 ) ) * - COUNT( * ) AS col2
----
-18
62

skipif mysql # not compatible
query II rowsort label-6878
SELECT ALL + 62 + - 80, - 2 * SUM ( ALL ( + + 31 ) ) * - COUNT ( * ) AS col2
----
-18
62

query I rowsort
SELECT - - 82 - - 39 - 8 - + 63
----
50

query I rowsort
SELECT DISTINCT - 60 + - 71 AS col1
----
-131

query I rowsort
SELECT ALL - 27 + + - 36 - 22 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT + COUNT( * ) + 57 * SUM( DISTINCT - + 18 ) col2
----
-1025

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + COUNT ( * ) + 57 * SUM ( DISTINCT - + 18 ) col2
----
-1025

query I rowsort
SELECT ALL ( - 93 ) + + - 66 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT ALL 76 AS col1, MAX( ALL - 70 ) * - 7 * 68 + + ( - 65 ) + 20 * COALESCE ( + - 76, - 67 ) col2
----
76
31735

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL 76 AS col1, MAX ( ALL - 70 ) * - 7 * 68 + + ( - 65 ) + 20 * COALESCE ( + - 76, - 67 ) col2
----
76
31735

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 71 + COUNT( + 24 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 71 + COUNT ( + 24 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + SUM( DISTINCT - 46 ) * + COUNT( * ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-6886
SELECT + SUM ( DISTINCT - 46 ) * + COUNT ( * ) col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL ( + CASE - CAST( NULL AS SIGNED ) WHEN - - 30 THEN + AVG ( + 29 ) - 10 WHEN 33 / + COUNT( * ) * - + 88 THEN COUNT( * ) + 91 * AVG ( - 30 ) / - 96 + + ( + 14 ) + + + 51 ELSE NULL END ) - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL ( + CASE - CAST ( NULL AS INTEGER ) WHEN - - 30 THEN + AVG ( + 29 ) - 10 WHEN 33 / + COUNT ( * ) * - + 88 THEN COUNT ( * ) + 91 * AVG ( - 30 ) / - 96 + + ( + 14 ) + + + 51 ELSE NULL END ) - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL COUNT( * ) - - ( + 60 ) * 67
----
4021

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL COUNT ( * ) - - ( + 60 ) * 67
----
4021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT DISTINCT CAST( + 44 AS SIGNED ) * CAST( + COALESCE ( + CAST( NULL AS SIGNED ), + 86 * + + 45 + - - 33 + - 55 * + - 97 ) AS SIGNED ) + - 25
----
406447

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT CAST ( + 44 AS INTEGER ) * CAST ( + COALESCE ( + CAST ( NULL AS INTEGER ), + 86 * + + 45 + - - 33 + - 55 * + - 97 ) AS INTEGER ) + - 25
----
406447

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT 3 AS col1, MIN( DISTINCT 95 ) AS col0
----
3
95

skipif mysql # not compatible
query II rowsort label-6890
SELECT 3 AS col1, MIN ( DISTINCT 95 ) AS col0
----
3
95

query I rowsort
SELECT ALL 28 * - 5 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-6892
SELECT ALL COUNT( * ), 21 * - 48 col0
----
1
-1008

skipif mysql # not compatible
query II rowsort label-6892
SELECT ALL COUNT ( * ), 21 * - 48 col0
----
1
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + 93 + - 66 + NULLIF ( 29, - 76 ) + MAX( ALL - + 54 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 93 + - 66 + NULLIF ( 29, - 76 ) + MAX ( ALL - + 54 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL SUM( 33 ) - + + ( 44 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL SUM ( 33 ) - + + ( 44 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT 57 * COUNT( * ) * - - CASE + 81 WHEN + + 51 * 11 * + 16 THEN - 49 / + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT 57 * COUNT ( * ) * - - CASE + 81 WHEN + + 51 * 11 * + 16 THEN - 49 / + 59 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT + 69 + - COUNT( * ) + + - 84 DIV COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6896
SELECT + 69 + - COUNT ( * ) + + - 84 / COUNT ( * )
----
-16

query II rowsort
SELECT ALL 60 AS col0, 10 col1
----
60
10

query I rowsort
SELECT + 57 + + 35 + - + 57 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT 3 AS col2, - SUM( + ( - ( - - ( + + 25 ) ) ) ) * + ( + ( + ( COUNT( * ) ) ) ) * + COALESCE ( + 90, + 86 ) + - 59 / 77 * + 79 + - CASE - + 32 WHEN - 38 * + 78 + - - ( - + MIN( ALL + 27 ) ) + - 22 THEN - 15 END
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6899
SELECT 3 AS col2, - SUM ( + ( - ( - - ( + + 25 ) ) ) ) * + ( + ( + ( COUNT ( * ) ) ) ) * + COALESCE ( + 90, + 86 ) + - 59 / 77 * + 79 + - CASE - + 32 WHEN - 38 * + 78 + - - ( - + MIN ( ALL + 27 ) ) + - 22 THEN - 15 END
----
3
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-6900
SELECT 39 DIV + 33 + + - 2 AS col2, 43, 74 - + 21 * - + 62 AS col0
----
-1
43
1376

skipif mysql # not compatible
query III rowsort label-6900
SELECT 39 / + 33 + + - 2 AS col2, 43, 74 - + 21 * - + 62 AS col0
----
-1
43
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT COUNT( * ) * - 63 + 57 * + + 64 + - - 5 + + 37 * - + 64 + + NULLIF ( + - ( + 87 ), 29 ) * 53 * - 34 * + 77 AS col0
----
12072820

skipif mysql # not compatible
query I rowsort label-6901
SELECT COUNT ( * ) * - 63 + 57 * + + 64 + - - 5 + + 37 * - + 64 + + NULLIF ( + - ( + 87 ), 29 ) * 53 * - 34 * + 77 AS col0
----
12072820

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT - 56 * + MIN( DISTINCT + + 9 ) AS col1, 45
----
-504
45

skipif mysql # not compatible
query II rowsort label-6902
SELECT - 56 * + MIN ( DISTINCT + + 9 ) AS col1, 45
----
-504
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6903
SELECT + 64 DIV - COALESCE ( - - 82, - 5 ) + - CAST( - + SUM( - 61 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-6903
SELECT + 64 / - COALESCE ( - - 82, - 5 ) + - CAST ( - + SUM ( - 61 ) AS INTEGER )
----
-61

query I rowsort
SELECT ( - + 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL - + 62 * + 71 + - + 71 * - COUNT( * ) + ( + 40 ) * + - 43
----
-6051

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - + 62 * + 71 + - + 71 * - COUNT ( * ) + ( + 40 ) * + - 43
----
-6051

query I rowsort
SELECT - 98 * + 58
----
-5684

query I rowsort
SELECT ALL 46 * ( 89 ) + + 78
----
4172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT DISTINCT - NULLIF ( + 36, NULLIF ( + 27, 15 + + CAST( CAST( - 67 AS SIGNED ) AS SIGNED ) + - 7 + 48 ) ) * 2 * + AVG ( 20 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT - NULLIF ( + 36, NULLIF ( + 27, 15 + + CAST ( CAST ( - 67 AS INTEGER ) AS INTEGER ) + - 7 + 48 ) ) * 2 * + AVG ( 20 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL - + COUNT( * ) * - + 45 * - 5 * - - 98 + + 7
----
-22043

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - + COUNT ( * ) * - + 45 * - 5 * - - 98 + + 7
----
-22043

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT ALL + COUNT( * ) col1, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-6910
SELECT ALL + COUNT ( * ) col1, 96
----
1
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6911
SELECT ALL CAST( - + 8 AS DECIMAL ) * - CAST( NULL AS SIGNED ) + - + 35 * + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL CAST ( - + 8 AS REAL ) * - CAST ( NULL AS INTEGER ) + - + 35 * + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6912
SELECT + - CASE + 36 WHEN + COALESCE ( COUNT( * ), + 60 ) THEN NULL WHEN - - CAST( - 18 AS DECIMAL ) THEN NULL ELSE + 84 END + 17 - + - 30 * + 27
----
743

skipif mysql # not compatible
query I rowsort label-6912
SELECT + - CASE + 36 WHEN + COALESCE ( COUNT ( * ), + 60 ) THEN NULL WHEN - - CAST ( - 18 AS REAL ) THEN NULL ELSE + 84 END + 17 - + - 30 * + 27
----
743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT ALL 58 * - CAST( NULL AS SIGNED ) + - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL 58 * - CAST ( NULL AS INTEGER ) + - + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT DISTINCT + - ( COUNT( ALL - + 16 ) ), 3 * + 73 AS col2
----
-1
219

skipif mysql # not compatible
query II rowsort label-6914
SELECT DISTINCT + - ( COUNT ( ALL - + 16 ) ), 3 * + 73 AS col2
----
-1
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6915
SELECT - 41 + - COUNT( * ) DIV + - 53 AS col1, 15 DIV + MIN( 77 ) * - - CASE 92 WHEN - 86 - + CAST( - - 65 AS SIGNED ) THEN COUNT( + 37 ) * 94 END * ( 78 ) + - 6
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-6915
SELECT - 41 + - COUNT ( * ) / + - 53 AS col1, 15 / + MIN ( 77 ) * - - CASE 92 WHEN - 86 - + CAST ( - - 65 AS INTEGER ) THEN COUNT ( + 37 ) * 94 END * ( 78 ) + - 6
----
-41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT - - SUM( DISTINCT - 4 ) * - 51 AS col1, 20
----
204
20

skipif mysql # not compatible
query II rowsort label-6916
SELECT - - SUM ( DISTINCT - 4 ) * - 51 AS col1, 20
----
204
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT DISTINCT - - 66 DIV COALESCE ( - 88, + - 87 + COUNT( ALL + 39 ) ) + - + 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - - 66 / COALESCE ( - 88, + - 87 + COUNT ( ALL + 39 ) ) + - + 91 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6918
SELECT DISTINCT - 88 * COUNT( * ) - 49 - + 82 DIV - 68 - + CAST( 88 AS SIGNED ) * + + 27 AS col0
----
-2512

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - 88 * COUNT ( * ) - 49 - + 82 / - 68 - + CAST ( 88 AS INTEGER ) * + + 27 AS col0
----
-2512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT CAST( - - ( + + MAX( DISTINCT - 67 ) ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT CAST ( - - ( + + MAX ( DISTINCT - 67 ) ) AS INTEGER )
----
-67

query I rowsort
SELECT - 64 * - + 51
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + COUNT( * ) + - + COUNT( * ) * - 53
----
54

skipif mysql # not compatible
query I rowsort label-6921
SELECT + COUNT ( * ) + - + COUNT ( * ) * - 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT COUNT( ALL - 84 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6922
SELECT COUNT ( ALL - 84 ) col1
----
1

query I rowsort
SELECT ALL - 6 * - + 51
----
306

query I rowsort
SELECT ALL - 97 * + 52 AS col2
----
-5044

onlyif mysql # DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT 46 DIV + + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT 46 / + + 72 col1
----
0

query I rowsort
SELECT + 69 * 70 col0
----
4830

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ALL 81 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL 81 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT + COUNT( ALL + 91 ) DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT + COUNT ( ALL + 91 ) / + 68 AS col0
----
0

query I rowsort
SELECT - 75 * - 98
----
7350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT - CAST( - + MAX( 78 ) AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6930
SELECT - CAST ( - + MAX ( 78 ) AS INTEGER ) AS col0
----
78

query I rowsort
SELECT ALL 39 + + - 89 + 24
----
-26

query I rowsort
SELECT 61 + - + 19
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT ALL 56 + - + CAST( + + COUNT( * ) AS SIGNED ) - + 91 * + 69 * - 40
----
251215

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL 56 + - + CAST ( + + COUNT ( * ) AS INTEGER ) - + 91 * + 69 * - 40
----
251215

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL + 23 + + COUNT( ALL + 11 ) - + SUM( DISTINCT - + 82 ) * - 94 col2
----
-7684

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL + 23 + + COUNT ( ALL + 11 ) - + SUM ( DISTINCT - + 82 ) * - 94 col2
----
-7684

query I rowsort
SELECT ALL - + ( + 88 )
----
-88

query I rowsort
SELECT DISTINCT + 53 + 50 + + 6 + 79 + - - 3
----
191

query I rowsort
SELECT ( - 64 ) + + 57 * + 82 col0
----
4610

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT 26 * + COUNT( ALL - 77 ) + + 52 + + - 38 + - 25 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6938
SELECT 26 * + COUNT ( ALL - 77 ) + + 52 + + - 38 + - 25 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - + ( - + NULLIF ( + - COUNT( * ), + 87 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - + ( - + NULLIF ( + - COUNT ( * ), + 87 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6940
SELECT - - 51 DIV - - CASE 77 WHEN - SUM( - ( 87 ) ) THEN NULL WHEN - COUNT( - - CASE + 65 WHEN - CAST( 27 AS SIGNED ) * + 17 * + - 6 + 60 THEN 82 ELSE NULL END ) * + 30 + - - MAX( DISTINCT 64 ) DIV + + 29 * + 85 THEN NULL ELSE - 99 * - SUM( DISTINCT - COALESCE ( 9, - 96 + 61 * - 45 ) ) + - 70 DIV 20 END + - 48 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT - - 51 / - - CASE 77 WHEN - SUM ( - ( 87 ) ) THEN NULL WHEN - COUNT ( - - CASE + 65 WHEN - CAST ( 27 AS INTEGER ) * + 17 * + - 6 + 60 THEN 82 ELSE NULL END ) * + 30 + - - MAX ( DISTINCT 64 ) / + + 29 * + 85 THEN NULL ELSE - 99 * - SUM ( DISTINCT - COALESCE ( 9, - 96 + 61 * - 45 ) ) + - 70 / 20 END + - 48 / 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6941
SELECT - 89 * + - COALESCE ( 47, + CAST( - 14 AS SIGNED ) ) * - 54 * - - 81 AS col0, ( - 86 ) - + 35
----
-18296442
-121

skipif mysql # not compatible
query II rowsort label-6941
SELECT - 89 * + - COALESCE ( 47, + CAST ( - 14 AS INTEGER ) ) * - 54 * - - 81 AS col0, ( - 86 ) - + 35
----
-18296442
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL + + 43 * - COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + + 43 * - COUNT ( * ) col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT + 98 / - CAST( NULL AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT + 98 / - CAST ( NULL AS INTEGER ) * - 6
----
NULL

query I rowsort
SELECT ALL - - ( 11 ) AS col2
----
11

query I rowsort
SELECT DISTINCT + 38 * - + 27
----
-1026

query I rowsort
SELECT ALL - 79 - 55
----
-134

query II rowsort
SELECT ALL + + 68 * + 82 AS col1, - 73 + 92 + + - 61 * + 23 * - 3 * 22 + COALESCE ( 66, - 16, + 56 ) * + + 16 * + + 51 col1
----
5576
146473

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT SUM( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6948
SELECT SUM ( - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT 35 DIV 13 + COALESCE ( 11, + 52 + + 50 + - + 73, 71 ) + + 63
----
76

skipif mysql # not compatible
query I rowsort label-6949
SELECT 35 / 13 + COALESCE ( 11, + 52 + + 50 + - + 73, 71 ) + + 63
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT CASE - 42 WHEN - COALESCE ( - COUNT( * ), CASE + - 27 WHEN - - COUNT( * ) * 2 - - AVG ( - + 53 ) THEN NULL WHEN + 29 * 72 + + + 2 + ( - 0 ) THEN + ( + - CAST( 77 AS SIGNED ) ) WHEN 7 THEN NULL ELSE - + 61 * + 11 / 34 + + + 44 - + + 73 END ) THEN NULL WHEN + 67 / - COUNT( * ) + - ( + 89 ) THEN 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT CASE - 42 WHEN - COALESCE ( - COUNT ( * ), CASE + - 27 WHEN - - COUNT ( * ) * 2 - - AVG ( - + 53 ) THEN NULL WHEN + 29 * 72 + + + 2 + ( - 0 ) THEN + ( + - CAST ( 77 AS INTEGER ) ) WHEN 7 THEN NULL ELSE - + 61 * + 11 / 34 + + + 44 - + + 73 END ) THEN NULL WHEN + 67 / - COUNT ( * ) + - ( + 89 ) THEN 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - 35 * + - MIN( 73 ) * 67 * 99 + 44 AS col1
----
16947359

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - 35 * + - MIN ( 73 ) * 67 * 99 + 44 AS col1
----
16947359

query I rowsort
SELECT DISTINCT + 77 * 86
----
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + CASE + - CASE + NULLIF ( 85, - 70 ) WHEN 28 * - 53 THEN + 1 END WHEN - MIN( - 21 ) + 42 * 80 * + 54 THEN + + 0 * + 2 END - + + 73 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + CASE + - CASE + NULLIF ( 85, - 70 ) WHEN 28 * - 53 THEN + 1 END WHEN - MIN ( - 21 ) + 42 * 80 * + 54 THEN + + 0 * + 2 END - + + 73 + 46
----
NULL

query I rowsort
SELECT 56 * + 79 AS col0
----
4424

query I rowsort
SELECT DISTINCT 64 * 46 AS col0
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL - 66 * + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - 66 * + + COUNT ( * )
----
-66

query I rowsort
SELECT 46 * + 59
----
2714

query I rowsort
SELECT DISTINCT 40 * - 71
----
-2840

query I rowsort
SELECT 30 + + + 13 AS col0
----
43

query I rowsort
SELECT 65 - - 58
----
123

query I rowsort
SELECT ALL + 66 * - 88
----
-5808

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6962
SELECT 36 DIV - ( COALESCE ( - 73, + - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT 36 / - ( COALESCE ( - 73, + - CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT 39 + + 55 + - 41
----
53

query I rowsort
SELECT DISTINCT + 48 * + 69
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT 55 + + MAX( 60 )
----
115

skipif mysql # not compatible
query I rowsort label-6965
SELECT 55 + + MAX ( 60 )
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT ALL + 31 + + COUNT( * ) * 38 col2, - COALESCE ( + - 57, 87 ) - - - 23
----
69
34

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL + 31 + + COUNT ( * ) * 38 col2, - COALESCE ( + - 57, 87 ) - - - 23
----
69
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL 98 + + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL 98 + + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT 65 + + - ( 80 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT COUNT( DISTINCT - - 71 ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-6969
SELECT COUNT ( DISTINCT - - 71 ) + - 89
----
-88

query I rowsort
SELECT - + ( 81 )
----
-81

query I rowsort
SELECT ALL + - 79 + + ( 60 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL - - COUNT( * ) + + ( - 81 ) * + - COUNT( - NULLIF ( - 57, + 30 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - - COUNT ( * ) + + ( - 81 ) * + - COUNT ( - NULLIF ( - 57, + 30 ) ) AS col2
----
82

query II rowsort
SELECT 12 * - 41 * 9 AS col2, 99
----
-4428
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT + 37 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT + 37 / - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT 71 + CASE + - 83 WHEN - 87 * 21 * + + 68 - 35 + - 15 * + COUNT( * ) + + - 25 THEN NULL ELSE - + 37 END
----
34

skipif mysql # not compatible
query I rowsort label-6975
SELECT 71 + CASE + - 83 WHEN - 87 * 21 * + + 68 - 35 + - 15 * + COUNT ( * ) + + - 25 THEN NULL ELSE - + 37 END
----
34

query II rowsort
SELECT + 87 AS col2, 9
----
87
9

query I rowsort
SELECT 97 * + 44 + + - 83 AS col1
----
4185

query I rowsort
SELECT DISTINCT + 89 - - 9
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - - SUM( ALL + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - - SUM ( ALL + + 77 )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT DISTINCT 35 - - ( SUM( + 22 ) ) - 14, + 50 * + - 81 AS col0
----
43
-4050

skipif mysql # not compatible
query II rowsort label-6980
SELECT DISTINCT 35 - - ( SUM ( + 22 ) ) - 14, + 50 * + - 81 AS col0
----
43
-4050

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT DISTINCT - - 44 col0, COUNT( * ) - 42 * MIN( + - 95 ) AS col1
----
44
3991

skipif mysql # not compatible
query II rowsort label-6981
SELECT DISTINCT - - 44 col0, COUNT ( * ) - 42 * MIN ( + - 95 ) AS col1
----
44
3991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6982
SELECT CAST( NULL AS SIGNED ) * ( 90 ) / + 13 - 83 + - 62 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT CAST ( NULL AS INTEGER ) * ( 90 ) / + 13 - 83 + - 62 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - 62 + COUNT( ALL 18 ) + + NULLIF ( - - COUNT( DISTINCT + 21 ), - 85 ) * + 39 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6983
SELECT - 62 + COUNT ( ALL 18 ) + + NULLIF ( - - COUNT ( DISTINCT + 21 ), - 85 ) * + 39 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT - - 82 * - MAX( ALL + ( 75 ) ) + - 71 * NULLIF ( - - 54, + COUNT( ALL - 7 ) ) + 39 - + CAST( NULL AS SIGNED ) / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT - - 82 * - MAX ( ALL + ( 75 ) ) + - 71 * NULLIF ( - - 54, + COUNT ( ALL - 7 ) ) + 39 - + CAST ( NULL AS INTEGER ) / 98
----
NULL

query II rowsort
SELECT DISTINCT 2 - 0 * 53, 82 col1
----
2
82

query I rowsort
SELECT ALL - - NULLIF ( 21, 71 ) col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT COUNT( ( - 9 ) ) * + COALESCE ( 52, - 56 * + CASE - - 33 WHEN 22 THEN CAST( NULL AS SIGNED ) + 61 END * + 6 ) - + - 17
----
69

skipif mysql # not compatible
query I rowsort label-6987
SELECT COUNT ( ( - 9 ) ) * + COALESCE ( 52, - 56 * + CASE - - 33 WHEN 22 THEN CAST ( NULL AS INTEGER ) + 61 END * + 6 ) - + - 17
----
69

query I rowsort
SELECT 42 * - - 91 AS col2
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 73 * - 5 + + COUNT( - + 27 )
----
366

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 73 * - 5 + + COUNT ( - + 27 )
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT 70 * + 3 + + 27 + + COUNT( * ) + - 55 * + + 11 + - 21
----
-388

skipif mysql # not compatible
query I rowsort label-6990
SELECT 70 * + 3 + + 27 + + COUNT ( * ) + - 55 * + + 11 + - 21
----
-388

query II rowsort
SELECT ALL - 66, 58 AS col0
----
-66
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT ALL CASE - + 68 WHEN + - CAST( + 95 AS SIGNED ) THEN + 35 ELSE NULL END / + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL CASE - + 68 WHEN + - CAST ( + 95 AS INTEGER ) THEN + 35 ELSE NULL END / + 77 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT CAST( NULL AS SIGNED ) + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT CAST ( NULL AS INTEGER ) + 10 AS col2
----
NULL

query I rowsort
SELECT ALL + 34 * 45
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT CAST( NULL AS SIGNED ) / COALESCE ( + - 69, + + 52 - - 44, COUNT( * ) * - 49 + - CAST( - MIN( + 19 ) AS SIGNED ), + - ( - + 10 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT CAST ( NULL AS INTEGER ) / COALESCE ( + - 69, + + 52 - - 44, COUNT ( * ) * - 49 + - CAST ( - MIN ( + 19 ) AS INTEGER ), + - ( - + 10 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + 25 * + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT 59 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-6997
SELECT 59 / + 17
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6998
SELECT ( + 44 ) * 74 - - 25 + - COUNT( - 84 ) AS col0, - 34 DIV - SUM( + 30 )
----
3280
1

skipif mysql # not compatible
query II rowsort label-6998
SELECT ( + 44 ) * 74 - - 25 + - COUNT ( - 84 ) AS col0, - 34 / - SUM ( + 30 )
----
3280
1

query I rowsort
SELECT + COALESCE ( - 66, + 27 ) * 47 * - 81 + + 0
----
251262

query I rowsort
SELECT ALL 69 * - ( 63 ) AS col1
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - MAX( DISTINCT 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7001
SELECT - MAX ( DISTINCT 49 ) AS col2
----
-49

query I rowsort
SELECT 75 + - 34 col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT - NULLIF ( + 28, - ( + CAST( + 94 AS SIGNED ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-7003
SELECT - NULLIF ( + 28, - ( + CAST ( + 94 AS INTEGER ) ) )
----
-28

query I rowsort
SELECT - 16 + - - 54 col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL - 8 + CAST( NULL AS SIGNED ) + + 79 * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - 8 + CAST ( NULL AS INTEGER ) + + 79 * 34 AS col2
----
NULL

query II rowsort
SELECT ALL 4 AS col2, 25
----
4
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + COUNT( * ) + ( 14 ) + NULLIF ( - 88, - NULLIF ( - - 57, - 9 + - - CASE - CASE WHEN NOT + COUNT( * ) IN ( + + 81, + AVG ( ALL - 98 ) + - CASE + - 8 WHEN + 94 THEN NULL WHEN + COALESCE ( + 98, COALESCE ( - 49, + NULLIF ( + ( + COUNT( * ) ), - 27 ) * AVG ( 66 ) ), + 26 / - MIN( 38 ) - 99 ) THEN - 85 * + 74 END ) THEN NULL ELSE + 18 END WHEN COUNT( * ) * + AVG ( DISTINCT 68 ) + + CAST( NULL AS SIGNED ) THEN COUNT( * ) - - COUNT( * ) WHEN 9 / + 96 + - 66 THEN NULL ELSE 10 END * 86 ) + + 95 )
----
-73

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + COUNT ( * ) + ( 14 ) + NULLIF ( - 88, - NULLIF ( - - 57, - 9 + - - CASE - CASE WHEN NOT + COUNT ( * ) IN ( + + 81, + AVG ( ALL - 98 ) + - CASE + - 8 WHEN + 94 THEN NULL WHEN + COALESCE ( + 98, COALESCE ( - 49, + NULLIF ( + ( + COUNT ( * ) ), - 27 ) * AVG ( 66 ) ), + 26 / - MIN ( 38 ) - 99 ) THEN - 85 * + 74 END ) THEN NULL ELSE + 18 END WHEN COUNT ( * ) * + AVG ( DISTINCT 68 ) + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) - - COUNT ( * ) WHEN 9 / + 96 + - 66 THEN NULL ELSE 10 END * 86 ) + + 95 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT - COUNT( * ) * 65 AS col1, - 46 + - NULLIF ( 98, - 24 )
----
-65
-144

skipif mysql # not compatible
query II rowsort label-7008
SELECT - COUNT ( * ) * 65 AS col1, - 46 + - NULLIF ( 98, - 24 )
----
-65
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL 10 + CAST( NULL AS SIGNED ) * + 52 * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL 10 + CAST ( NULL AS INTEGER ) * + 52 * + 27 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 70, + 84 )
----
70

query I rowsort
SELECT ALL + 45 + + 79 + - 22
----
102

query II rowsort
SELECT DISTINCT - 90 + - NULLIF ( + 33, - 76 ) * 36 * + 80 AS col2, 34 * + 57 * - - 91
----
-95130
176358

query II rowsort
SELECT - 10 AS col2, 22 + 63 AS col2
----
-10
85

query II rowsort
SELECT - - 39 AS col0, 3 * - 20
----
39
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - + COUNT( * ) * - COUNT( * ) * + ( + 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7015
SELECT - + COUNT ( * ) * - COUNT ( * ) * + ( + 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + COALESCE ( + COUNT( * ), + 24 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + COALESCE ( + COUNT ( * ), + 24 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - MAX( ALL + 20 ) + - MAX( ALL + + ( + 63 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7018
SELECT - MAX ( ALL + 20 ) + - MAX ( ALL + + ( + 63 ) )
----
-83

query II rowsort
SELECT ALL 17 AS col2, 13
----
17
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL + 43 * + + 29 - - 69 + + + COUNT( * )
----
1317

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + 43 * + + 29 - - 69 + + + COUNT ( * )
----
1317

query II rowsort
SELECT ALL + 98, + 82 + + 78 AS col1
----
98
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7022
SELECT DISTINCT + 21 / 80 * + CAST( NULL AS SIGNED ) * + - 25 AS col1, - 1 * - + NULLIF ( COUNT( * ), 66 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7022
SELECT DISTINCT + 21 / 80 * + CAST ( NULL AS INTEGER ) * + - 25 AS col1, - 1 * - + NULLIF ( COUNT ( * ), 66 )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT + 7 DIV + 2
----
3

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 7 / + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - + SUM( DISTINCT 54 ) * - 53 + + 13
----
2875

skipif mysql # not compatible
query I rowsort label-7024
SELECT - + SUM ( DISTINCT 54 ) * - 53 + + 13
----
2875

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT + + 83 + - + ( + + COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7025
SELECT + + 83 + - + ( + + COUNT ( * ) ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT DISTINCT - + ( - 30 ) DIV + 83 * + + 99
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - + ( - 30 ) / + 83 * + + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7027
SELECT - 92 DIV - 40 + - 29 DIV + CAST( 79 AS SIGNED ) * - 9 * + - COUNT( ALL 37 ) + - 96 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7027
SELECT - 92 / - 40 + - 29 / + CAST ( 79 AS INTEGER ) * - 9 * + - COUNT ( ALL 37 ) + - 96 AS col2
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-7028
SELECT 0 col0, 25 DIV + 8 AS col1
----
0
3

skipif mysql # not compatible
query II rowsort label-7028
SELECT 0 col0, 25 / + 8 AS col1
----
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7029
SELECT ALL + 57 AS col0, - ( + 29 ) + COALESCE ( + COUNT( * ), 90 ) + - 67 * + 29 AS col2
----
57
-1971

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL + 57 AS col0, - ( + 29 ) + COALESCE ( + COUNT ( * ), 90 ) + - 67 * + 29 AS col2
----
57
-1971

query II rowsort
SELECT DISTINCT 29 * - + 53 col2, ( + 8 )
----
-1537
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7031
SELECT DISTINCT + MIN( ALL - 30 ) * + + CAST( - 34 AS SIGNED )
----
1020

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + MIN ( ALL - 30 ) * + + CAST ( - 34 AS INTEGER )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7032
SELECT ALL COUNT( * ) * - 6 * + 32 + - CASE ( + + 21 ) WHEN + + 5 DIV + + 91 * 47 * 75 + + 34 THEN NULL WHEN - + 96 THEN 20 * 52 + - + 48 END AS col1, - 0 DIV 72 - - 72 * - 24 * COALESCE ( - COALESCE ( + 94, - CASE - 86 WHEN - 17 - 77 THEN NULL WHEN 63 THEN 81 END + 63, 71 ), - 48 ) + 78
----
NULL
162510

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL COUNT ( * ) * - 6 * + 32 + - CASE ( + + 21 ) WHEN + + 5 / + + 91 * 47 * 75 + + 34 THEN NULL WHEN - + 96 THEN 20 * 52 + - + 48 END AS col1, - 0 / 72 - - 72 * - 24 * COALESCE ( - COALESCE ( + 94, - CASE - 86 WHEN - 17 - 77 THEN NULL WHEN 63 THEN 81 END + 63, 71 ), - 48 ) + 78
----
NULL
162510

query I rowsort
SELECT + CASE + + 37 WHEN - 69 + + NULLIF ( + 72, 16 ) * 32 THEN NULL WHEN + 30 THEN - 15 * - + 90 - 61 + - 45 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT + ( - MAX( DISTINCT - 51 ) ) * + - CAST( NULL AS SIGNED ) / - COUNT( * ) * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT + ( - MAX ( DISTINCT - 51 ) ) * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * ( COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7035
SELECT MIN( 57 ) AS col2, - CAST( + - 10 AS DECIMAL ) - - 3 + + 7 - + + NULLIF ( + 70, COUNT( 27 ) * - COUNT( * ) - 54 + - + COUNT( * ) + - - CASE - + 48 WHEN 97 THEN - 49 * - 28 - - - NULLIF ( 38, + 53 ) END + CAST( NULL AS DECIMAL ) + - 38 + + 6 ) / - CASE - - 92 WHEN - - COUNT( DISTINCT + CAST( 49 AS DECIMAL ) ) THEN COUNT( * ) ELSE NULL END * - COUNT( * )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-7035
SELECT MIN ( 57 ) AS col2, - CAST ( + - 10 AS REAL ) - - 3 + + 7 - + + NULLIF ( + 70, COUNT ( 27 ) * - COUNT ( * ) - 54 + - + COUNT ( * ) + - - CASE - + 48 WHEN 97 THEN - 49 * - 28 - - - NULLIF ( 38, + 53 ) END + CAST ( NULL AS REAL ) + - 38 + + 6 ) / - CASE - - 92 WHEN - - COUNT ( DISTINCT + CAST ( 49 AS REAL ) ) THEN COUNT ( * ) ELSE NULL END * - COUNT ( * )
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL 86 * CAST( NULL AS SIGNED ) + MIN( + 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 86 * CAST ( NULL AS INTEGER ) + MIN ( + 69 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT + 28 - 40 * - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7037
SELECT + 28 - 40 * - + COUNT ( * )
----
68

query I rowsort
SELECT + 4 - - - NULLIF ( 25, ( + 85 ) * + 76 )
----
-21

query I rowsort
SELECT ALL 16 * - AVG ( ALL - CASE 27 WHEN + + 78 THEN - - 70 WHEN - - 75 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL MAX( ALL 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL MAX ( ALL 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7041
SELECT - ( + 31 ) AS col2, 24 + - COUNT( * ) * - - 11 DIV 78 + MIN( - - 23 ) + + 79
----
-31
126

skipif mysql # not compatible
query II rowsort label-7041
SELECT - ( + 31 ) AS col2, 24 + - COUNT ( * ) * - - 11 / 78 + MIN ( - - 23 ) + + 79
----
-31
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL ( 28 ) * + 38 * + 32 - - + 64 + + + 5 * + + 8 + 34 - + + 67 * + + COUNT( * )
----
34119

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL ( 28 ) * + 38 * + 32 - - + 64 + + + 5 * + + 8 + 34 - + + 67 * + + COUNT ( * )
----
34119

query I rowsort
SELECT - ( - + 72 ) col1
----
72

query I rowsort
SELECT ALL 62 + + 84
----
146

query I rowsort
SELECT + 74 * + 85 * 64
----
402560

query I rowsort
SELECT ALL 80 * - 22
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + NULLIF ( COUNT( * ), - 56 ) + + - 63 - - COUNT( * ) * 40
----
-22

skipif mysql # not compatible
query I rowsort label-7047
SELECT + NULLIF ( COUNT ( * ), - 56 ) + + - 63 - - COUNT ( * ) * 40
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - 50 - - 72 * - ( COUNT( * ) )
----
-122

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 50 - - 72 * - ( COUNT ( * ) )
----
-122

query I rowsort
SELECT ALL 56 * 48
----
2688

query I rowsort
SELECT - ( + ( - 94 ) ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT + - 60 + + 68 + 44 + + 94 + + + ( - 46 ) * 46 * 50 DIV + 56 AS col1
----
-1743

skipif mysql # not compatible
query I rowsort label-7051
SELECT + - 60 + + 68 + 44 + + 94 + + + ( - 46 ) * 46 * 50 / + 56 AS col1
----
-1743

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT + + 44 * - ( + - 53 ) * CASE + - NULLIF ( - + 39, - COUNT( * ) ) WHEN + 80 THEN NULL ELSE + 70 END * + 46 - - 85 AS col1
----
7509125

skipif mysql # not compatible
query I rowsort label-7052
SELECT + + 44 * - ( + - 53 ) * CASE + - NULLIF ( - + 39, - COUNT ( * ) ) WHEN + 80 THEN NULL ELSE + 70 END * + 46 - - 85 AS col1
----
7509125

query II rowsort
SELECT ALL + - COALESCE ( 29, + + ( + 7 ), 73 * + 60 * - 43 ) - 80 AS col2, + 95
----
-109
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT + - MIN( 12 ) + - 56 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7054
SELECT + - MIN ( 12 ) + - 56 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL 11 * - - COUNT( * ) * + 90 AS col0
----
990

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL 11 * - - COUNT ( * ) * + 90 AS col0
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7056
SELECT + 55 + 57 * + 56 AS col0, CAST( NULL AS SIGNED ) AS col2
----
3247
NULL

skipif mysql # not compatible
query II rowsort label-7056
SELECT + 55 + 57 * + 56 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
3247
NULL

query II rowsort
SELECT DISTINCT - ( + + 93 ) AS col2, 51 + + 4
----
-93
55

query I rowsort
SELECT ALL + + 23 * 94 * - ( + 70 ) + 78
----
-151262

query I rowsort
SELECT - - 53 + - 47
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7060
SELECT ALL - COUNT( * ) * + 4 * + CAST( + ( AVG ( DISTINCT - + 74 ) ) AS SIGNED ) * + 2 + + 89 AS col1
----
681

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - COUNT ( * ) * + 4 * + CAST ( + ( AVG ( DISTINCT - + 74 ) ) AS INTEGER ) * + 2 + + 89 AS col1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + + COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-7061
SELECT + + COUNT ( * ) * + 32
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - + 45 DIV + - 36 - - 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + 45 / + - 36 - - 54 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL - - MIN( ALL + 17 ) * - ( - 69 ) * 8 + + 40
----
9424

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - - MIN ( ALL + 17 ) * - ( - 69 ) * 8 + + 40
----
9424

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT DISTINCT + 16 DIV 86 + - 26 * + 84 AS col1
----
-2184

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + 16 / 86 + - 26 * + 84 AS col1
----
-2184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7065
SELECT DISTINCT 6 DIV - 53 + + + 40 + + - 59 * CAST( + CAST( CASE - + 55 WHEN - 88 DIV - + 91 THEN NULL WHEN + 48 THEN - 81 ELSE + 25 END AS SIGNED ) AS SIGNED ) AS col2
----
-1435

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 6 / - 53 + + + 40 + + - 59 * CAST ( + CAST ( CASE - + 55 WHEN - 88 / - + 91 THEN NULL WHEN + 48 THEN - 81 ELSE + 25 END AS INTEGER ) AS INTEGER ) AS col2
----
-1435

query II rowsort
SELECT DISTINCT + 91 AS col1, - 57
----
91
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT - 58 + - - 56 * - - SUM( ALL - + ( - CAST( NULL AS SIGNED ) ) ) / - + 56 * - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 58 + - - 56 * - - SUM ( ALL - + ( - CAST ( NULL AS INTEGER ) ) ) / - + 56 * - - 26
----
NULL

query I rowsort
SELECT + 89 * + 23 - - 42
----
2089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT ALL - 16 DIV - MIN( 79 ) * - 54 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - 16 / - MIN ( 79 ) * - 54 * - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT 39 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT 39 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 75 + - 15 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT ALL - 7 + - + 18 + + 51 DIV ( + 55 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - 7 + - + 18 + + 51 / ( + 55 ) col2
----
-25

query I rowsort
SELECT ALL 22 + - 28
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + 26 * + 29 + - MAX( DISTINCT + 98 ) + + COUNT( * ) * - - 20
----
676

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 26 * + 29 + - MAX ( DISTINCT + 98 ) + + COUNT ( * ) * - - 20
----
676

onlyif mysql # aggregate syntax: 
query II rowsort label-7075
SELECT 39, COUNT( * ) col0
----
39
1

skipif mysql # not compatible
query II rowsort label-7075
SELECT 39, COUNT ( * ) col0
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL - COUNT( - - 79 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - COUNT ( - - 79 ) col2
----
-1

query I rowsort
SELECT DISTINCT + CASE + 89 WHEN + - 32 THEN 48 * - 54 ELSE NULL END + - 89
----
NULL

query I rowsort
SELECT ALL AVG ( - 47 ) * 70 * - + CASE + + ( - - 64 ) WHEN + AVG ( DISTINCT - 55 ) / - + 97 THEN - ( + 64 ) WHEN - - 33 / + 18 THEN - - AVG ( + 32 ) WHEN + + 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 44 + + + 61 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7080
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col2, MAX( DISTINCT + 18 ) * COUNT( * ) + + + 50 AS col1
----
-1
68

skipif mysql # not compatible
query II rowsort label-7080
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col2, MAX ( DISTINCT + 18 ) * COUNT ( * ) + + + 50 AS col1
----
-1
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7081
SELECT + 56 AS col2, - CAST( + 1 AS SIGNED ) DIV + 4 - + 62
----
56
-62

skipif mysql # not compatible
query II rowsort label-7081
SELECT + 56 AS col2, - CAST ( + 1 AS INTEGER ) / + 4 - + 62
----
56
-62

query II rowsort
SELECT + 8 AS col1, 56
----
8
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT 45 * - MAX( ALL - + 27 ) * + 28 + + 10 + 94 + + + NULLIF ( - 51, + - 71 ) AS col2, COUNT( * ) - 87 - + + COUNT( * ) AS col0
----
34073
-87

skipif mysql # not compatible
query II rowsort label-7083
SELECT 45 * - MAX ( ALL - + 27 ) * + 28 + + 10 + 94 + + + NULLIF ( - 51, + - 71 ) AS col2, COUNT ( * ) - 87 - + + COUNT ( * ) AS col0
----
34073
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7084
SELECT NULLIF ( - + COUNT( * ), - ( 26 ) + 84 * 35 * - 95 ) + 81 DIV 43 * + CAST( - - 56 AS SIGNED ) * 82 AS col2
----
4591

skipif mysql # not compatible
query I rowsort label-7084
SELECT NULLIF ( - + COUNT ( * ), - ( 26 ) + 84 * 35 * - 95 ) + 81 / 43 * + CAST ( - - 56 AS INTEGER ) * 82 AS col2
----
4591

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL COUNT( * ) - + 14 + 34
----
21

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL COUNT ( * ) - + 14 + 34
----
21

query II rowsort
SELECT 69 + 17 - - + 1 AS col2, 21
----
87
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT - NULLIF ( + 74, + CAST( NULL AS SIGNED ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7087
SELECT - NULLIF ( + 74, + CAST ( NULL AS INTEGER ) ) AS col2
----
-74

query I rowsort
SELECT DISTINCT - 21 * + 62 col0
----
-1302

query I rowsort
SELECT + 6 - 56
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT COUNT( * ) * + - COUNT( DISTINCT 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-7090
SELECT COUNT ( * ) * + - COUNT ( DISTINCT 99 )
----
-1

query II rowsort
SELECT - + 12, 60 col2
----
-12
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7092
SELECT - CAST( COUNT( + + ( - + COALESCE ( + 90, - 65 * + 78 * - 95 ) ) ) AS SIGNED ), + ( + 92 ) AS col2
----
-1
92

skipif mysql # not compatible
query II rowsort label-7092
SELECT - CAST ( COUNT ( + + ( - + COALESCE ( + 90, - 65 * + 78 * - 95 ) ) ) AS INTEGER ), + ( + 92 ) AS col2
----
-1
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT 58 DIV 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7093
SELECT 58 / 58 AS col1
----
1

query I rowsort
SELECT - 98 + 52
----
-46

query II rowsort
SELECT DISTINCT - 45 col1, 41 AS col2
----
-45
41

query I rowsort
SELECT ALL AVG ( + 16 ) * + - CASE - 31 WHEN - 10 THEN - 59 END AS col0
----
NULL

query I rowsort
SELECT 48 * 94
----
4512

query II rowsort
SELECT DISTINCT + 22 col2, + ( - 54 ) AS col2
----
22
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + COUNT( * ) + + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + COUNT ( * ) + + - 42 AS col2
----
-41

query I rowsort
SELECT DISTINCT + 0 + - 36 col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT ALL - CASE - 27 WHEN + 27 THEN NULL ELSE 86 + - COUNT( 35 ) DIV + 80 END AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL - CASE - 27 WHEN + 27 THEN NULL ELSE 86 + - COUNT ( 35 ) / + 80 END AS col2
----
-86

query I rowsort
SELECT DISTINCT - 20 + + 99 AS col2
----
79

query II rowsort
SELECT DISTINCT - - 57, + 70 AS col1
----
57
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL + + 16 + + COUNT( * ) * + 21 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + + 16 + + COUNT ( * ) * + 21 AS col0
----
37

query I rowsort
SELECT 65 + - - 6 * 58
----
413

query I rowsort
SELECT DISTINCT - 30 * + 40 * + 70 AS col2
----
-84000

query I rowsort
SELECT ALL + 75 + 90 - - 81
----
246

query I rowsort
SELECT ALL - 21 * + 30
----
-630

query I rowsort
SELECT 55 * - 33 AS col2
----
-1815

query I rowsort
SELECT DISTINCT - 3 * + 11
----
-33

query II rowsort
SELECT ALL - ( 84 ) AS col2, - 29 AS col2
----
-84
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - COUNT( ALL 22 ) - - + 20 + - 10 + 78 * + COALESCE ( + 53, + + 70 * + - 71 ) * + 80
----
330729

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - COUNT ( ALL 22 ) - - + 20 + - 10 + 78 * + COALESCE ( + 53, + + 70 * + - 71 ) * + 80
----
330729

query I rowsort
SELECT 81 * - 2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT 55 - - ( - 5 ) + SUM( 57 ) col0
----
107

skipif mysql # not compatible
query I rowsort label-7114
SELECT 55 - - ( - 5 ) + SUM ( 57 ) col0
----
107

query I rowsort
SELECT 93 * 31
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT 71 * - - MIN( 27 )
----
1917

skipif mysql # not compatible
query I rowsort label-7116
SELECT 71 * - - MIN ( 27 )
----
1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + SUM( + - 31 ) DIV - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + SUM ( + - 31 ) / - COUNT ( * )
----
31

query I rowsort
SELECT 83 * - 17 AS col1
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( * ) * - 52 * + 4 * - 17
----
3536

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( * ) * - 52 * + 4 * - 17
----
3536

query I rowsort
SELECT 90 - - COALESCE ( - 17, - - 50 + 4 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + COALESCE ( 43, 67 ) - - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7121
SELECT + COALESCE ( 43, 67 ) - - COUNT ( * ) AS col2
----
44

query I rowsort
SELECT DISTINCT 72 * 38 AS col0
----
2736

query I rowsort
SELECT DISTINCT - 14 * 3
----
-42

query I rowsort
SELECT ALL - 81 * + - 11 AS col1
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - COUNT( * ) + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7125
SELECT - COUNT ( * ) + + 23 AS col2
----
22

query I rowsort
SELECT 42 + 6 + - + 44
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT - CAST( 48 AS SIGNED ) - 5 - - - NULLIF ( CAST( NULL AS SIGNED ), 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT - CAST ( 48 AS INTEGER ) - 5 - - - NULLIF ( CAST ( NULL AS INTEGER ), 55 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT + 96 DIV - 46 + + + ( - 50 ) - + ( + 27 ) DIV - 55 * - 18
----
-52

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 96 / - 46 + + + ( - 50 ) - + ( + 27 ) / - 55 * - 18
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT + 40 + 21 + + + 34 + + + 12 + + 15 * - ( - 88 ) - 41 * - 24 + - + 69 * - - COUNT( * ) * - CASE + COUNT( * ) WHEN + + COUNT( * ) + + - COUNT( * ) + - 38 THEN - 10 WHEN - 15 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 40 + 21 + + + 34 + + + 12 + + 15 * - ( - 88 ) - 41 * - 24 + - + 69 * - - COUNT ( * ) * - CASE + COUNT ( * ) WHEN + + COUNT ( * ) + + - COUNT ( * ) + - 38 THEN - 10 WHEN - 15 THEN NULL END col1
----
NULL

query II rowsort
SELECT ALL 84 + - - 92, - 34 * 87 + - 74 + - 5 AS col0
----
176
-3037

query I rowsort
SELECT + 20 * - 63 AS col0
----
-1260

query I rowsort
SELECT ALL 47 + + 81 AS col0
----
128

query I rowsort
SELECT ALL 31 * - - 87 + + + 3
----
2700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7134
SELECT + 5 + + 92 DIV ( - ( 12 ) ), CAST( + 92 AS SIGNED ) AS col2
----
-2
92

skipif mysql # not compatible
query II rowsort label-7134
SELECT + 5 + + 92 / ( - ( 12 ) ), CAST ( + 92 AS INTEGER ) AS col2
----
-2
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL 99 * + + 38 * + COUNT( + 34 ) - - COALESCE ( 34, 87 ) + + MIN( ALL + 28 ) AS col2
----
3824

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL 99 * + + 38 * + COUNT ( + 34 ) - - COALESCE ( 34, 87 ) + + MIN ( ALL + 28 ) AS col2
----
3824

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7136
SELECT ALL COUNT( * ) * COUNT( * ) DIV - 55 * - - 26 - + 53 AS col0, - CASE - ( - 0 ) WHEN - MIN( DISTINCT - 98 ) + - - AVG ( 23 ) THEN - 32 WHEN - 17 THEN + - 4 - - + 34 + - 2 * - - 83 DIV CASE + 70 WHEN COUNT( * ) THEN - 67 WHEN + 58 + MAX( + 86 ) * + CASE + - 27 WHEN + - 83 THEN 59 + - - 65 END DIV 62 THEN NULL ELSE NULL END + + 90 ELSE - ( 53 ) + 2 END AS col1
----
-53
51

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL COUNT ( * ) * COUNT ( * ) / - 55 * - - 26 - + 53 AS col0, - CASE - ( - 0 ) WHEN - MIN ( DISTINCT - 98 ) + - - AVG ( 23 ) THEN - 32 WHEN - 17 THEN + - 4 - - + 34 + - 2 * - - 83 / CASE + 70 WHEN COUNT ( * ) THEN - 67 WHEN + 58 + MAX ( + 86 ) * + CASE + - 27 WHEN + - 83 THEN 59 + - - 65 END / 62 THEN NULL ELSE NULL END + + 90 ELSE - ( 53 ) + 2 END AS col1
----
-53
51

query II rowsort
SELECT ALL + 19 AS col2, - 81 AS col1
----
19
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT MAX( ALL 63 ) DIV 93 + + ( + 91 ) DIV + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7138
SELECT MAX ( ALL 63 ) / 93 + + ( + 91 ) / + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ( - - COUNT( * ) ) * + 21 - - + 31
----
52

skipif mysql # not compatible
query I rowsort label-7139
SELECT ( - - COUNT ( * ) ) * + 21 - - + 31
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT COALESCE ( - + 71, ( 53 ), - 92 ), - COUNT( * ) AS col2
----
-71
-1

skipif mysql # not compatible
query II rowsort label-7140
SELECT COALESCE ( - + 71, ( 53 ), - 92 ), - COUNT ( * ) AS col2
----
-71
-1

query II rowsort
SELECT + ( - 20 ) + + 83 AS col0, 61 AS col2
----
63
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT - COUNT( * ) DIV 72 + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7142
SELECT - COUNT ( * ) / 72 + 67 AS col2
----
67

query I rowsort
SELECT ALL 55 * + 47 - - 90 * - 8
----
1865

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT + COUNT( * ) * - 98 * - 59 AS col1, 65 * - 62 AS col0
----
5782
-4030

skipif mysql # not compatible
query II rowsort label-7144
SELECT + COUNT ( * ) * - 98 * - 59 AS col1, 65 * - 62 AS col0
----
5782
-4030

query I rowsort
SELECT ALL + 81 * - 87 AS col0
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + NULLIF ( 41, + + 27 + - - COUNT( * ) / + COUNT( * ) ) + 88 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-7146
SELECT + NULLIF ( 41, + + 27 + - - COUNT ( * ) / + COUNT ( * ) ) + 88 AS col2
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT DISTINCT + 73 * - + NULLIF ( + COUNT( ALL 8 ), - 50 ) AS col0, 96 AS col0
----
-73
96

skipif mysql # not compatible
query II rowsort label-7147
SELECT DISTINCT + 73 * - + NULLIF ( + COUNT ( ALL 8 ), - 50 ) AS col0, 96 AS col0
----
-73
96

query I rowsort
SELECT - ( 57 ) + + 26 col2
----
-31

query I rowsort
SELECT ALL 97 * + - 18 * - + 27
----
47142

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT DISTINCT + 38 AS col1, - COALESCE ( - + 78, + MAX( ALL + 85 ), 62 )
----
38
78

skipif mysql # not compatible
query II rowsort label-7150
SELECT DISTINCT + 38 AS col1, - COALESCE ( - + 78, + MAX ( ALL + 85 ), 62 )
----
38
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - 68 + COUNT( * ) * - 52
----
-120

skipif mysql # not compatible
query I rowsort label-7151
SELECT - 68 + COUNT ( * ) * - 52
----
-120

query I rowsort
SELECT ALL + - ( - + 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7153
SELECT + 75 * 38 DIV + COALESCE ( - 91, - 17 ) AS col0, COUNT( * ) * - - COUNT( * ) - - - 53 AS col2
----
-31
-52

skipif mysql # not compatible
query II rowsort label-7153
SELECT + 75 * 38 / + COALESCE ( - 91, - 17 ) AS col0, COUNT ( * ) * - - COUNT ( * ) - - - 53 AS col2
----
-31
-52

query I rowsort
SELECT DISTINCT + - 0 + + 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - SUM( DISTINCT + 14 ) + + 58
----
44

skipif mysql # not compatible
query I rowsort label-7155
SELECT - SUM ( DISTINCT + 14 ) + + 58
----
44

query I rowsort
SELECT ALL + + 50 + 13 AS col2
----
63

query I rowsort
SELECT DISTINCT + - 25 + - COALESCE ( + 95, - 91 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT + 33 + COUNT( * ) + + 69 + + 75
----
178

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + 33 + COUNT ( * ) + + 69 + + 75
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT ALL + + 75 + - 61 DIV + - ( + ( - 12 ) ) + - 58 * + + 77 + + 20 - + 5 AS col1
----
-4381

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + + 75 + - 61 / + - ( + ( - 12 ) ) + - 58 * + + 77 + + 20 - + 5 AS col1
----
-4381

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT CASE - CASE - 9 WHEN + ( 12 ) THEN NULL ELSE 33 END WHEN 49 THEN 88 * 43 + - + ( - MAX( ALL - 23 ) ) WHEN - ( + 61 ) * 53 THEN 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT CASE - CASE - 9 WHEN + ( 12 ) THEN NULL ELSE 33 END WHEN 49 THEN 88 * 43 + - + ( - MAX ( ALL - 23 ) ) WHEN - ( + 61 ) * 53 THEN 42 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT - - COUNT( * ) * - - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7161
SELECT - - COUNT ( * ) * - - 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL MAX( ALL - + 94 ) * - 34 AS col1
----
3196

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL MAX ( ALL - + 94 ) * - 34 AS col1
----
3196

query I rowsort
SELECT - 4 - + 55 * 60
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - COUNT( * ) - - MAX( DISTINCT - 38 ) + - 85 + 8 + + 41 + 85 * + 88 * + + 38 col1
----
284165

skipif mysql # not compatible
query I rowsort label-7164
SELECT - COUNT ( * ) - - MAX ( DISTINCT - 38 ) + - 85 + 8 + + 41 + 85 * + 88 * + + 38 col1
----
284165

query I rowsort
SELECT + 87 * + - 76 AS col2
----
-6612

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + + COUNT( * ) + + + 66 - + 93 * - 10 AS col1
----
997

skipif mysql # not compatible
query I rowsort label-7166
SELECT + + COUNT ( * ) + + + 66 - + 93 * - 10 AS col1
----
997

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT - NULLIF ( + COUNT( * ), + 31 ) AS col2, + 44 + - 81
----
-1
-37

skipif mysql # not compatible
query II rowsort label-7167
SELECT - NULLIF ( + COUNT ( * ), + 31 ) AS col2, + 44 + - 81
----
-1
-37

query I rowsort
SELECT DISTINCT + ( + 59 ) * + 35
----
2065

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT - MAX( ALL - 87 ) - + + 93
----
-6

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT - MAX ( ALL - 87 ) - + + 93
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL 0 / - + CAST( NULL AS SIGNED ) / + - 66 * - + AVG ( DISTINCT + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL 0 / - + CAST ( NULL AS INTEGER ) / + - 66 * - + AVG ( DISTINCT + 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT - SUM( + + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7171
SELECT - SUM ( + + 82 ) AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT + 64 - - 36 DIV + - 2
----
46

skipif mysql # not compatible
query I rowsort label-7172
SELECT + 64 - - 36 / + - 2
----
46

query I rowsort
SELECT - COALESCE ( - 9, + 89 * 95 + 61, + - 37 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT ALL 64 DIV - + 17 col1
----
-3

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL 64 / - + 17 col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7175
SELECT CAST( NULL AS SIGNED ) AS col1, - 1 col2, - + CASE + + 93 WHEN + 24 THEN NULL WHEN COUNT( DISTINCT + 2 ) + - 45 * 89 + - 99 THEN - + CAST( NULL AS DECIMAL ) ELSE + CAST( NULL AS DECIMAL ) END + + 14 - + 85
----
NULL
-1
NULL

skipif mysql # not compatible
query III rowsort label-7175
SELECT CAST ( NULL AS INTEGER ) AS col1, - 1 col2, - + CASE + + 93 WHEN + 24 THEN NULL WHEN COUNT ( DISTINCT + 2 ) + - 45 * 89 + - 99 THEN - + CAST ( NULL AS REAL ) ELSE + CAST ( NULL AS REAL ) END + + 14 - + 85
----
NULL
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT + CAST( + 70 AS SIGNED ) + - + CASE + 5 WHEN - - 26 + + 17 + - ( 53 ) + - CAST( NULL AS SIGNED ) - + ( + - 26 ) * - 91 * + 8 THEN - 72 ELSE + - 5 * + - MIN( 99 ) / - + 97 + + + ( + ( + + 46 ) ) + 0 * - - 41 + 9 * + + 51 + + CAST( NULL AS SIGNED ) / - 60 + - COALESCE ( - 72, - 59 ) END + - COUNT( * ) * 9 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT + CAST ( + 70 AS INTEGER ) + - + CASE + 5 WHEN - - 26 + + 17 + - ( 53 ) + - CAST ( NULL AS INTEGER ) - + ( + - 26 ) * - 91 * + 8 THEN - 72 ELSE + - 5 * + - MIN ( 99 ) / - + 97 + + + ( + ( + + 46 ) ) + 0 * - - 41 + 9 * + + 51 + + CAST ( NULL AS INTEGER ) / - 60 + - COALESCE ( - 72, - 59 ) END + - COUNT ( * ) * 9 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT + ( + + MAX( ALL 20 ) )
----
20

skipif mysql # not compatible
query I rowsort label-7177
SELECT + ( + + MAX ( ALL 20 ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT + COUNT( * ) AS col1, 78
----
1
78

skipif mysql # not compatible
query II rowsort label-7178
SELECT + COUNT ( * ) AS col1, 78
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT 49 * - + COUNT( * ) * - + 26 + 22 * 2
----
1318

skipif mysql # not compatible
query I rowsort label-7179
SELECT 49 * - + COUNT ( * ) * - + 26 + 22 * 2
----
1318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT - 38 DIV ( + 19 ) - + 62 + + COUNT( * ) + 1 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 38 / ( + 19 ) - + 62 + + COUNT ( * ) + 1 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT + CAST( NULL AS SIGNED ) * 89 / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT + CAST ( NULL AS INTEGER ) * 89 / 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - 76 * - 62 * 60 + + MIN( DISTINCT - 88 ) AS col0
----
282632

skipif mysql # not compatible
query I rowsort label-7182
SELECT - 76 * - 62 * 60 + + MIN ( DISTINCT - 88 ) AS col0
----
282632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7183
SELECT ALL + 54, + COUNT( * ) DIV + 76 AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-7183
SELECT ALL + 54, + COUNT ( * ) / + 76 AS col0
----
54
0

query I rowsort
SELECT ALL 21 * + 82
----
1722

query II rowsort
SELECT DISTINCT + 67, + 52 AS col0
----
67
52

query I rowsort
SELECT ALL 56 * + 87
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + COUNT( ALL - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + COUNT ( ALL - 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7188
SELECT + CAST( - SUM( DISTINCT + 82 ) AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7188
SELECT + CAST ( - SUM ( DISTINCT + 82 ) AS INTEGER ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL + 86 * CAST( NULL AS SIGNED ) + - SUM( 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 86 * CAST ( NULL AS INTEGER ) + - SUM ( 56 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL + + 12 col2, + 43 * + - NULLIF ( - + 48, COUNT( * ) * - - 71 )
----
12
2064

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL + + 12 col2, + 43 * + - NULLIF ( - + 48, COUNT ( * ) * - - 71 )
----
12
2064

query II rowsort
SELECT + 8, 20 AS col1
----
8
20

query I rowsort
SELECT + NULLIF ( + - 29, - 11 ) AS col2
----
-29

query II rowsort
SELECT + 42 col2, 26
----
42
26

query I rowsort
SELECT ALL + 50 * - 54 + + + 22
----
-2678

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT - 22 + + 97, 53 * - 81 * MAX( + + 12 ) AS col1
----
75
-51516

skipif mysql # not compatible
query II rowsort label-7196
SELECT - 22 + + 97, 53 * - 81 * MAX ( + + 12 ) AS col1
----
75
-51516

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL COUNT( * ) * + - COUNT( * ) * 91 + + 79
----
-12

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * 91 + + 79
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - - COUNT( * ) * - 6
----
-6

skipif mysql # not compatible
query I rowsort label-7198
SELECT - - COUNT ( * ) * - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + 2 + COUNT( * ) + + 39 * + 43
----
1680

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 2 + COUNT ( * ) + + 39 * + 43
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL ( COUNT( DISTINCT + 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL ( COUNT ( DISTINCT + 67 ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7201
SELECT - 49, + COALESCE ( + + 84, + - 67, 0 ) DIV - 60 AS col0
----
-49
-1

skipif mysql # not compatible
query II rowsort label-7201
SELECT - 49, + COALESCE ( + + 84, + - 67, 0 ) / - 60 AS col0
----
-49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT + 85 - + 64 - - + COUNT( * ) - - + 29 * + + 92
----
2690

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 85 - + 64 - - + COUNT ( * ) - - + 29 * + + 92
----
2690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT DISTINCT - + COUNT( DISTINCT + - 91 ) DIV COALESCE ( + 24, - 24 + + 65 - - 76 * + - 71 ) DIV - - 77 + + + 9
----
9

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT - + COUNT ( DISTINCT + - 91 ) / COALESCE ( + 24, - 24 + + 65 - - 76 * + - 71 ) / - - 77 + + + 9
----
9

query I rowsort
SELECT 51 + + 86
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL - + 38 DIV 91 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - + 38 / 91 * - 69
----
0

query I rowsort
SELECT DISTINCT + 99 * + + 70 * - 50
----
-346500

query I rowsort
SELECT 68 + + 9 + ( + - 75 ) + + 16 * - 85
----
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + MAX( 87 ) * + - NULLIF ( + - 45, - + 21 * - 78 * - CASE - 43 WHEN - - COALESCE ( SUM( 6 ), - CASE + 48 WHEN - 70 * 18 / + COUNT( * ) - + 40 THEN + - 62 * - MIN( ALL + - 8 ) END ) + + - MIN( ALL - - 34 ) THEN NULL WHEN 42 THEN 39 * ( - - 23 ) + - + COUNT( * ) WHEN + 1 + + + 18 + - 51 THEN NULL ELSE - 73 END ) - - 65 + 11
----
3991

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + MAX ( 87 ) * + - NULLIF ( + - 45, - + 21 * - 78 * - CASE - 43 WHEN - - COALESCE ( SUM ( 6 ), - CASE + 48 WHEN - 70 * 18 / + COUNT ( * ) - + 40 THEN + - 62 * - MIN ( ALL + - 8 ) END ) + + - MIN ( ALL - - 34 ) THEN NULL WHEN 42 THEN 39 * ( - - 23 ) + - + COUNT ( * ) WHEN + 1 + + + 18 + - 51 THEN NULL ELSE - 73 END ) - - 65 + 11
----
3991

query I rowsort
SELECT DISTINCT - 45 - - 26
----
-19

query I rowsort
SELECT 64 + - + 52 AS col2
----
12

query I rowsort
SELECT 3 + + - 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT COUNT( - 34 ) * + + 24 AS col0, - 77 * 90 AS col2
----
24
-6930

skipif mysql # not compatible
query II rowsort label-7212
SELECT COUNT ( - 34 ) * + + 24 AS col0, - 77 * 90 AS col2
----
24
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7213
SELECT DISTINCT + 82 * 60, - CAST( - 23 AS SIGNED ) * - 96 AS col2
----
4920
-2208

skipif mysql # not compatible
query II rowsort label-7213
SELECT DISTINCT + 82 * 60, - CAST ( - 23 AS INTEGER ) * - 96 AS col2
----
4920
-2208

query I rowsort
SELECT 99 + + + 89 * - 86 AS col1
----
-7555

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ALL 62 * + 33, COUNT( * ) AS col0
----
2046
1

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL 62 * + 33, COUNT ( * ) AS col0
----
2046
1

query II rowsort
SELECT 89 + + 99, + 14 col2
----
188
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - 89 * + 82 * + - 9 - + - COUNT( * ) * + + ( MIN( ALL 36 ) ) * + COUNT( DISTINCT + 97 ) AS col2
----
65718

skipif mysql # not compatible
query I rowsort label-7217
SELECT - 89 * + 82 * + - 9 - + - COUNT ( * ) * + + ( MIN ( ALL 36 ) ) * + COUNT ( DISTINCT + 97 ) AS col2
----
65718

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT 99 DIV + - 14 + - 29
----
-36

skipif mysql # not compatible
query I rowsort label-7218
SELECT 99 / + - 14 + - 29
----
-36

query I rowsort
SELECT DISTINCT 5 + 46 + - - 98 * + 18
----
1815

query I rowsort
SELECT - + 46 * + NULLIF ( + 35, - 68 + + 6 ) + + 92 + - - 95 * 80 * + 31 + 20 * - 4 AS col2
----
234002

query I rowsort
SELECT DISTINCT - 2 * 25
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL 23 + - ( + 55 ) * - ( + COUNT( * ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 23 + - ( + 55 ) * - ( + COUNT ( * ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7223
SELECT 38 * - + 31 * COALESCE ( - 26, + - COUNT( * ) ) + NULLIF ( + ( - COUNT( * ) ), - - COUNT( * ) ) + + - 93 AS col2, - 85 + 5 + 18 * 82 * 5 + + 62 AS col0
----
30534
7362

skipif mysql # not compatible
query II rowsort label-7223
SELECT 38 * - + 31 * COALESCE ( - 26, + - COUNT ( * ) ) + NULLIF ( + ( - COUNT ( * ) ), - - COUNT ( * ) ) + + - 93 AS col2, - 85 + 5 + 18 * 82 * 5 + + 62 AS col0
----
30534
7362

query I rowsort
SELECT ALL - COALESCE ( 1, - 96 ) * COALESCE ( + + 35, 85 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7225
SELECT ALL + + NULLIF ( 48, + 56 ) * + - 95 * - + 76 * 50 + - COALESCE ( 79, + COUNT( * ), 40 DIV - SUM( DISTINCT + - 68 ) ) AS col2
----
17327921

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + + NULLIF ( 48, + 56 ) * + - 95 * - + 76 * 50 + - COALESCE ( 79, + COUNT ( * ), 40 / - SUM ( DISTINCT + - 68 ) ) AS col2
----
17327921

query I rowsort
SELECT - ( - 18 ) + 56 * 42 AS col2
----
2370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT CAST( + 87 AS SIGNED ) col2
----
87

skipif mysql # not compatible
query I rowsort label-7227
SELECT CAST ( + 87 AS INTEGER ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT - COUNT( * ) * - + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT - COUNT ( * ) * - + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + SUM( + ( + + 15 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7229
SELECT + SUM ( + ( + + 15 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - 99 * + 3 + + 5 + - COUNT( * ) col0
----
-293

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 99 * + 3 + + 5 + - COUNT ( * ) col0
----
-293

query I rowsort
SELECT 86 + + 48 * - ( + - 17 )
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - COUNT( * ) * 32 col1
----
-32

skipif mysql # not compatible
query I rowsort label-7232
SELECT - COUNT ( * ) * 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query III rowsort label-7233
SELECT ALL + COUNT( * ) * - MAX( DISTINCT - 10 ) * + 79 * - 1 AS col0, + COALESCE ( - 92, - + 7 + - 48 + + 22 ), + + 34 * - 38 col1
----
-790
-92
-1292

skipif mysql # not compatible
query III rowsort label-7233
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT - 10 ) * + 79 * - 1 AS col0, + COALESCE ( - 92, - + 7 + - 48 + + 22 ), + + 34 * - 38 col1
----
-790
-92
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL + SUM( ALL + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + SUM ( ALL + 55 ) AS col1
----
55

query I rowsort
SELECT 75 * - 83 * 38 * + 57 col0
----
-13483350

query I rowsort
SELECT ALL 88 * + + 13
----
1144

query I rowsort
SELECT 58 - + - 53 AS col2
----
111

query II rowsort
SELECT - 27 AS col2, + 60
----
-27
60

query I rowsort
SELECT 64 * 1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT 0 + - 3 * 40, SUM( ALL 39 ) AS col1
----
-120
39

skipif mysql # not compatible
query II rowsort label-7240
SELECT 0 + - 3 * 40, SUM ( ALL 39 ) AS col1
----
-120
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 9 + - 78 + 95 - 63 DIV - 30
----
28

skipif mysql # not compatible
query I rowsort label-7241
SELECT 9 + - 78 + 95 - 63 / - 30
----
28

query I rowsort
SELECT ALL - 22 + + 13 col2
----
-9

query I rowsort
SELECT 90 * 71 * + + 72 AS col0
----
460080

query I rowsort
SELECT 93 - 73 AS col2
----
20

query I rowsort
SELECT DISTINCT - 41 + - 54 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT + COUNT( * ) AS col2, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-7246
SELECT + COUNT ( * ) AS col2, 42
----
1
42

query I rowsort
SELECT 89 * - 57
----
-5073

query I rowsort
SELECT 25 + + - 40 * NULLIF ( + 3, + 33 ) * 33 + - + ( ( + 83 ) ) AS col1
----
-4018

query II rowsort
SELECT + 60 AS col0, + ( - - 52 )
----
60
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT - 23 * - 73 + 66 + - - 5 + COUNT( * ) DIV 4 * - 94 * - 47
----
1750

skipif mysql # not compatible
query I rowsort label-7250
SELECT - 23 * - 73 + 66 + - - 5 + COUNT ( * ) / 4 * - 94 * - 47
----
1750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT DISTINCT - CASE + + 89 WHEN 8 + - - CAST( NULL AS SIGNED ) THEN - 52 * + + 12 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - CASE + + 89 WHEN 8 + - - CAST ( NULL AS INTEGER ) THEN - 52 * + + 12 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL - 32 * 26 + + 61 DIV - 71
----
-832

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL - 32 * 26 + + 61 / - 71
----
-832

query I rowsort
SELECT + 63 * - 20 AS col2
----
-1260

query I rowsort
SELECT DISTINCT - + 14 * 89 AS col2
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL + COUNT( * ) * 49 * + 49 + + SUM( DISTINCT + 44 )
----
2445

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + COUNT ( * ) * 49 * + 49 + + SUM ( DISTINCT + 44 )
----
2445

query II rowsort
SELECT DISTINCT + 6 * + 58 + + + 28, + 60 col1
----
376
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT + 90 DIV - 85
----
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT + 90 / - 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL - NULLIF ( + - 74, - COUNT( * ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL - NULLIF ( + - 74, - COUNT ( * ) ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT ( + + ( + 81 ) ) * CAST( NULL AS SIGNED ) / - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT ( + + ( + 81 ) ) * CAST ( NULL AS INTEGER ) / - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - + ( - - COUNT( * ) ) * - + 32 - 24 - - - 16
----
-8

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - + ( - - COUNT ( * ) ) * - + 32 - 24 - - - 16
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - 55 * + COUNT( * ) + - ( 32 )
----
-87

skipif mysql # not compatible
query I rowsort label-7261
SELECT - 55 * + COUNT ( * ) + - ( 32 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT + NULLIF ( + 81, + - 55 ) DIV 47 * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT + NULLIF ( + 81, + - 55 ) / 47 * - - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT ALL - - 38 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - - 38 / - 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7264
SELECT ALL + 22, - 12 DIV - COUNT( * ) AS col2
----
22
12

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL + 22, - 12 / - COUNT ( * ) AS col2
----
22
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - + COUNT( * ) * 22 * + 64 + - 22
----
-1430

skipif mysql # not compatible
query I rowsort label-7265
SELECT - + COUNT ( * ) * 22 * + 64 + - 22
----
-1430

query I rowsort
SELECT - 84 * + 51
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - - MIN( DISTINCT 87 ) - + + NULLIF ( + COALESCE ( 52, - 72, - - 20 ), - 60 * - 58 )
----
35

skipif mysql # not compatible
query I rowsort label-7267
SELECT - - MIN ( DISTINCT 87 ) - + + NULLIF ( + COALESCE ( 52, - 72, - - 20 ), - 60 * - 58 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + + 91 - + 3 + - ( + - COUNT( * ) ) + + 26 * - 12
----
-223

skipif mysql # not compatible
query I rowsort label-7268
SELECT + + 91 - + 3 + - ( + - COUNT ( * ) ) + + 26 * - 12
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - + ( - COUNT( * ) ) * CASE COUNT( * ) WHEN - + 20 * + 91 * MIN( 33 ) * + 98 * + 93 THEN NULL ELSE - + 46 * + - 91 * - 5 + + MAX( 44 ) * - ( + 96 ) - + + 31 END * - - 57 + + - 37
----
-1435582

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - + ( - COUNT ( * ) ) * CASE COUNT ( * ) WHEN - + 20 * + 91 * MIN ( 33 ) * + 98 * + 93 THEN NULL ELSE - + 46 * + - 91 * - 5 + + MAX ( 44 ) * - ( + 96 ) - + + 31 END * - - 57 + + - 37
----
-1435582

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL - 5 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - 5 / - + 58
----
0

query I rowsort
SELECT + 92 * - 94 - + 52 + - 37 * + ( - 89 ) * 23 col2
----
67039

query I rowsort
SELECT + 43 * 17 + 6 AS col0
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - COUNT( * ) + 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7273
SELECT - COUNT ( * ) + 13 AS col2
----
12

query I rowsort
SELECT + 5 + + - 98
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + 11 - - 62 + - - MAX( ALL + 60 ) * - 21 * + - COUNT( * ) + - 22 + - COUNT( * ) AS col2
----
1310

skipif mysql # not compatible
query I rowsort label-7275
SELECT + 11 - - 62 + - - MAX ( ALL + 60 ) * - 21 * + - COUNT ( * ) + - 22 + - COUNT ( * ) AS col2
----
1310

query I rowsort
SELECT + 23 * + 44 AS col0
----
1012

query I rowsort
SELECT + 29 * + 10 * - 7 col0
----
-2030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT ALL 34 + - 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL 34 + - 60 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL 87 * 19 * - COUNT( * )
----
-1653

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 87 * 19 * - COUNT ( * )
----
-1653

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT + COUNT( ALL + ( + + 61 ) ) * - COUNT( * ), + 50 AS col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-7280
SELECT + COUNT ( ALL + ( + + 61 ) ) * - COUNT ( * ), + 50 AS col2
----
-1
50

query I rowsort
SELECT ALL 98 + + - 73
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT - 9 + - 21 * ( 29 ) * + - 63 * + 11 * COUNT( * ) * + + 11
----
4642398

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - 9 + - 21 * ( 29 ) * + - 63 * + 11 * COUNT ( * ) * + + 11
----
4642398

query I rowsort
SELECT ALL + ( + 48 ) + + 65
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - 62 * - + NULLIF ( - + ( + 26 ), - MAX( ALL - 85 ) ) AS col2
----
-1612

skipif mysql # not compatible
query I rowsort label-7284
SELECT - 62 * - + NULLIF ( - + ( + 26 ), - MAX ( ALL - 85 ) ) AS col2
----
-1612

query II rowsort
SELECT + 33 + 65 AS col0, - 88 col0
----
98
-88

query I rowsort
SELECT - ( + - 32 ) col2
----
32

query I rowsort
SELECT ALL + + 16 * + + 14 * - COALESCE ( 59, + 5 + 8 + - + 89 * + 63 + - + 14 ) + 79
----
-13137

query II rowsort
SELECT - + 22 + - 20 AS col2, - 18 * + 1 * + 5
----
-42
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL 3 * 40 * - 35 - - 41 * + + COUNT( * ) + - COUNT( * ) + - COUNT( * ) * 71 + + 90 + + 4
----
-4137

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL 3 * 40 * - 35 - - 41 * + + COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) * 71 + + 90 + + 4
----
-4137

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7290
SELECT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * 45
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT + 41 + - - 47 AS col0, 8 DIV - 69 + + - 86 col0
----
88
-86

skipif mysql # not compatible
query II rowsort label-7291
SELECT + 41 + - - 47 AS col0, 8 / - 69 + + - 86 col0
----
88
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + 7 * + 22 + + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-7292
SELECT + 7 * + 22 + + COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT - 15 * - + MIN( 34 )
----
510

skipif mysql # not compatible
query I rowsort label-7293
SELECT - 15 * - + MIN ( 34 )
----
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT ALL - + CAST( NULL AS SIGNED ) * + - COALESCE ( CAST( NULL AS SIGNED ), + 35 + 46 + - - 93 + + + 90 + + 72 + - - 8 - - 41 ) + - + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - COALESCE ( CAST ( NULL AS INTEGER ), + 35 + 46 + - - 93 + + + 90 + + 72 + - - 8 - - 41 ) + - + 90 AS col2
----
NULL

query II rowsort
SELECT - - 6 + - 17, 65 AS col2
----
-11
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7296
SELECT ALL + AVG ( + CASE - 0 WHEN 59 THEN + 94 + + + CAST( NULL AS DECIMAL ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + AVG ( + CASE - 0 WHEN 59 THEN + 94 + + + CAST ( NULL AS REAL ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT - CAST( NULL AS SIGNED ) * - + 79 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT - CAST ( NULL AS INTEGER ) * - + 79 + + 78
----
NULL

query I rowsort
SELECT ALL - + 44 * COALESCE ( + + 16, + 37 )
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + MAX( ALL - 86 ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + MAX ( ALL - 86 ) col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT - + 45 + + 6 * + COUNT( * ) * ( + 84 ) * COUNT( * ) + - 9 + 88 * - 43 - + - CAST( + 30 AS SIGNED ) + + - 47 * + CAST( NULL AS SIGNED ) + + 13 * 45 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + 45 + + 6 * + COUNT ( * ) * ( + 84 ) * COUNT ( * ) + - 9 + 88 * - 43 - + - CAST ( + 30 AS INTEGER ) + + - 47 * + CAST ( NULL AS INTEGER ) + + 13 * 45 * - 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT DISTINCT + 76 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + 76 / - 92
----
0

query I rowsort
SELECT - - 71 * + - 6 AS col2
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - NULLIF ( + + COUNT( * ), - 79 ) * + NULLIF ( 46, - 12 * - CASE + + COUNT( * ) WHEN + - 23 - + + 49 / - 89 THEN NULL WHEN - 62 / - SUM( DISTINCT + 93 ) + - 53 THEN - + 47 * 94 ELSE NULL END * + + 11 ) + 24 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7303
SELECT - NULLIF ( + + COUNT ( * ), - 79 ) * + NULLIF ( 46, - 12 * - CASE + + COUNT ( * ) WHEN + - 23 - + + 49 / - 89 THEN NULL WHEN - 62 / - SUM ( DISTINCT + 93 ) + - 53 THEN - + 47 * 94 ELSE NULL END * + + 11 ) + 24 AS col0
----
-22

query I rowsort
SELECT + 11 + - 20 + 5 AS col0
----
-4

query I rowsort
SELECT + 88 + - + 97 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL ( - - 94 ) * - MIN( ALL - + 36 ) + 7 * + COUNT( * ) col2
----
3391

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL ( - - 94 ) * - MIN ( ALL - + 36 ) + 7 * + COUNT ( * ) col2
----
3391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7307
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * + CASE - 63 WHEN - + CAST( NULL AS SIGNED ) * - 22 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + CASE - 63 WHEN - + CAST ( NULL AS INTEGER ) * - 22 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT + CAST( 62 AS SIGNED ) + 30 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7308
SELECT + CAST ( 62 AS INTEGER ) + 30 AS col0
----
92

query I rowsort
SELECT ALL - 68 + 71
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT MAX( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7310
SELECT MAX ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT DISTINCT MAX( DISTINCT + 52 ) + + + NULLIF ( - 35, + 99 ), - 8 * + + 8 * + 94 * 33 * - + 69 col0
----
17
13698432

skipif mysql # not compatible
query II rowsort label-7311
SELECT DISTINCT MAX ( DISTINCT + 52 ) + + + NULLIF ( - 35, + 99 ), - 8 * + + 8 * + 94 * 33 * - + 69 col0
----
17
13698432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT - CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT - CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - COUNT( * ) - 66 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7313
SELECT - COUNT ( * ) - 66 AS col2
----
-67

query I rowsort
SELECT - COALESCE ( + 91, 87 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT + 15 + - + COUNT( * ) + + - CASE + 15 WHEN - 90 * - 39 THEN + CAST( NULL AS SIGNED ) * + 3 / + 29 + + COUNT( * ) * 42 + - MIN( ( - 31 ) ) WHEN - CAST( - 51 AS SIGNED ) * + + 85 * + + SUM( - 66 ) THEN NULL END / - 9 + - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 15 + - + COUNT ( * ) + + - CASE + 15 WHEN - 90 * - 39 THEN + CAST ( NULL AS INTEGER ) * + 3 / + 29 + + COUNT ( * ) * 42 + - MIN ( ( - 31 ) ) WHEN - CAST ( - 51 AS INTEGER ) * + + 85 * + + SUM ( - 66 ) THEN NULL END / - 9 + - 75 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7317
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN 21 * - 51 / - CAST( NULL AS DECIMAL ) - - + 2 + + 41 * 33 / - COUNT( * ) + - 15 THEN - 9 * + COUNT( * ) + + 16 END - - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN 21 * - 51 / - CAST ( NULL AS REAL ) - - + 2 + + 41 * 33 / - COUNT ( * ) + - 15 THEN - 9 * + COUNT ( * ) + + 16 END - - - 55
----
NULL

query I rowsort
SELECT + 86 * + - 26 AS col0
----
-2236

query II rowsort
SELECT DISTINCT 9 AS col1, - 55 AS col1
----
9
-55

query I rowsort
SELECT + 62 - 12
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT ALL COUNT( * ) * + 67 DIV - + 40 - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL COUNT ( * ) * + 67 / - + 40 - COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT DISTINCT + CASE 98 WHEN + COUNT( * ) * + + 56 THEN NULL ELSE - 12 * + 91 + 59 + + 16 / 35 * + ( + COUNT( * ) ) / - - 40 * + + CAST( NULL AS SIGNED ) + COUNT( * ) END * - + 85 + - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT + CASE 98 WHEN + COUNT ( * ) * + + 56 THEN NULL ELSE - 12 * + 91 + 59 + + 16 / 35 * + ( + COUNT ( * ) ) / - - 40 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) END * - + 85 + - + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT + CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 77 * 26 / - NULLIF ( 24, + CAST( + + 34 AS SIGNED ) ) THEN 49 * + 87 + + 20 WHEN 90 THEN + 81 * - - 82 - 60 + + 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 77 * 26 / - NULLIF ( 24, + CAST ( + + 34 AS INTEGER ) ) THEN 49 * + 87 + + 20 WHEN 90 THEN + 81 * - - 82 - 60 + + 31 END AS col2
----
NULL

query I rowsort
SELECT - CASE - - 52 WHEN - 29 THEN + 64 END
----
NULL

query I rowsort
SELECT 15 * + 46 * + 23 AS col2
----
15870

query I rowsort
SELECT 3 * 73 AS col1
----
219

query I rowsort
SELECT ALL - + CASE - + 16 WHEN 80 * + - 93 + - 37 THEN + - 10 + - 97 + - 65 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + COUNT( 69 )
----
1

skipif mysql # not compatible
query I rowsort label-7328
SELECT + COUNT ( 69 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT 95 DIV + - 95 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7329
SELECT 95 / + - 95 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT 63 DIV - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT 63 / - 78 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT - 2 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 2 / 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT + 41 + - - ( - + 46 ) DIV 83 * - 21 * - SUM( + + 47 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 41 + - - ( - + 46 ) / 83 * - 21 * - SUM ( + + 47 ) AS col2
----
41

query I rowsort
SELECT 64 * - 45 AS col2
----
-2880

query I rowsort
SELECT ALL + 19 + - 47
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ( + - MAX( ALL COALESCE ( - + 41, - 98 ) ) ) * - COUNT( * ) * 69 + + 23 AS col1
----
-2806

skipif mysql # not compatible
query I rowsort label-7335
SELECT ( + - MAX ( ALL COALESCE ( - + 41, - 98 ) ) ) * - COUNT ( * ) * 69 + + 23 AS col1
----
-2806

query I rowsort
SELECT + 21 * 32 + - 29 AS col2
----
643

query I rowsort
SELECT ALL - 28 + - + 54
----
-82

query III rowsort
SELECT 43 + 59 * - 19 AS col0, - ( + 61 ) * - - 37 * + + 3 + 13, 8 AS col0
----
-1078
-6758
8

query II rowsort
SELECT 13 * + ( - 4 ) * 29, - 85 AS col0
----
-1508
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 84 - - COUNT( DISTINCT + - 11 ) + - + 27 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7340
SELECT 84 - - COUNT ( DISTINCT + - 11 ) + - + 27 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL + COUNT( * ) + - ( - 27 )
----
28

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + COUNT ( * ) + - ( - 27 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - COUNT( * ) * + - 31 + + 49
----
80

skipif mysql # not compatible
query I rowsort label-7342
SELECT - COUNT ( * ) * + - 31 + + 49
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + 36 + + COUNT( * ) - - SUM( + + 18 ) * 46
----
865

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + 36 + + COUNT ( * ) - - SUM ( + + 18 ) * 46
----
865

query II rowsort
SELECT - 80, 16 AS col2
----
-80
16

query I rowsort
SELECT 12 + 16
----
28

query II rowsort
SELECT ALL 36 AS col2, 64 AS col1
----
36
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7347
SELECT 9, COUNT( * ) DIV 81 DIV - ( + 72 ) AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-7347
SELECT 9, COUNT ( * ) / 81 / - ( + 72 ) AS col2
----
9
0

query I rowsort
SELECT 93 + + + 75 + - 79 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7349
SELECT COUNT( * ) - - ( - + ( + 10 ) ) + NULLIF ( + - 93, + + 57 ) + + 71 DIV MAX( + + 14 ) * - + COUNT( * ) AS col0, COUNT( * )
----
-107
1

skipif mysql # not compatible
query II rowsort label-7349
SELECT COUNT ( * ) - - ( - + ( + 10 ) ) + NULLIF ( + - 93, + + 57 ) + + 71 / MAX ( + + 14 ) * - + COUNT ( * ) AS col0, COUNT ( * )
----
-107
1

query II rowsort
SELECT 17 AS col1, - ( + 46 ) AS col0
----
17
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT 2 + - - 35 - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7351
SELECT 2 + - - 35 - - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT ALL 45 AS col2, + 67 * SUM( - - 35 )
----
45
2345

skipif mysql # not compatible
query II rowsort label-7352
SELECT ALL 45 AS col2, + 67 * SUM ( - - 35 )
----
45
2345

query I rowsort
SELECT 18 * - - 64
----
1152

query II rowsort
SELECT ALL 2 col0, + 77 AS col0
----
2
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT DISTINCT - 92 - ( - 34 ) * - + 86 AS col2, COUNT( * )
----
-3016
1

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT - 92 - ( - 34 ) * - + 86 AS col2, COUNT ( * )
----
-3016
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT DISTINCT 91 - + - 14 DIV - 84
----
91

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT 91 - + - 14 / - 84
----
91

query I rowsort
SELECT DISTINCT + 20 * + 36 * + 79 AS col2
----
56880

query II rowsort
SELECT ALL 23 AS col1, - 56
----
23
-56

query I rowsort
SELECT + 10 + + + 16
----
26

query I rowsort
SELECT - CASE WHEN ( - 11 ) NOT BETWEEN NULL AND NULL THEN NULL ELSE + - 13 END
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT CAST( + 1 AS SIGNED ) + + 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7361
SELECT CAST ( + 1 AS INTEGER ) + + 4 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7362
SELECT - 95, + 95 * - + ( + - CASE - 97 WHEN + 9 THEN + 37 * - 25 + + 40 + 74 * + 39 * - 28 DIV + AVG ( ALL 3 ) * - 36 ELSE + 60 END ) + - COALESCE ( - 61, 55 * - - CAST( NULL AS SIGNED ) * + 94 * - 81 * - CASE - 80 WHEN - CAST( NULL AS SIGNED ) THEN - + 69 + 76 WHEN + CAST( 7 AS SIGNED ) THEN - 28 END * 79 DIV - 91 + - 90 * + MAX( DISTINCT + COALESCE ( 95, - 42 + ( 98 ), 47, 56 ) ), + 67 ) + COUNT( * ) * + 44 col0
----
-95
5805

skipif mysql # not compatible
query II rowsort label-7362
SELECT - 95, + 95 * - + ( + - CASE - 97 WHEN + 9 THEN + 37 * - 25 + + 40 + 74 * + 39 * - 28 / + AVG ( ALL 3 ) * - 36 ELSE + 60 END ) + - COALESCE ( - 61, 55 * - - CAST ( NULL AS INTEGER ) * + 94 * - 81 * - CASE - 80 WHEN - CAST ( NULL AS INTEGER ) THEN - + 69 + 76 WHEN + CAST ( 7 AS INTEGER ) THEN - 28 END * 79 / - 91 + - 90 * + MAX ( DISTINCT + COALESCE ( 95, - 42 + ( 98 ), 47, 56 ) ), + 67 ) + COUNT ( * ) * + 44 col0
----
-95
5805

onlyif mysql # DIV for integer division: 
query II rowsort label-7363
SELECT ALL 7 AS col0, 7 DIV - 82 AS col2
----
7
0

skipif mysql # not compatible
query II rowsort label-7363
SELECT ALL 7 AS col0, 7 / - 82 AS col2
----
7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT COUNT( * ) * - SUM( + - 2 ) + 86 + 94
----
182

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( * ) * - SUM ( + - 2 ) + 86 + 94
----
182

query I rowsort
SELECT 61 * + 4 + - 60 * 52 * - + 22 - 11
----
68873

query I rowsort
SELECT 48 + + 99 + - - 80 AS col2
----
227

query II rowsort
SELECT + 85 AS col2, + 39 AS col0
----
85
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT COUNT( * ) + + COALESCE ( - + MIN( DISTINCT 33 ), + 48 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7368
SELECT COUNT ( * ) + + COALESCE ( - + MIN ( DISTINCT 33 ), + 48 ) AS col2
----
-32

query I rowsort
SELECT ALL + 93 * + 82 AS col1
----
7626

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT - 82 * + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - 82 * + COUNT ( * )
----
-82

query I rowsort
SELECT - 48 * 91 + - - 75 + + 2 + - - 7
----
-4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT CAST( NULL AS SIGNED ) * + - 77 * - - 28 * + + 93 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT CAST ( NULL AS INTEGER ) * + - 77 * - - 28 * + + 93 * - + 33
----
NULL

query II rowsort
SELECT - 75 AS col1, 88
----
-75
88

query I rowsort
SELECT - 75 * + - 92 * + + 52 - 61 AS col1
----
358739

onlyif mysql # DIV for integer division: 
query II rowsort label-7375
SELECT DISTINCT - 66 DIV + + 19, 62 AS col2
----
-3
62

skipif mysql # not compatible
query II rowsort label-7375
SELECT DISTINCT - 66 / + + 19, 62 AS col2
----
-3
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT ALL + COUNT( * ) + 23 AS col1, - 17
----
24
-17

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL + COUNT ( * ) + 23 AS col1, - 17
----
24
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + COUNT( ALL + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7377
SELECT + COUNT ( ALL + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL 82 + + - 85 * - COUNT( + - 46 ) * - 35 AS col2
----
-2893

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL 82 + + - 85 * - COUNT ( + - 46 ) * - 35 AS col2
----
-2893

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT 3 DIV - COALESCE ( - 70, - 47 + 20, + + 4 DIV + 71, - 80 * - + 4 * 59 * - 18 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT 3 / - COALESCE ( - 70, - 47 + 20, + + 4 / + 71, - 80 * - + 4 * 59 * - 18 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT ALL - CASE - - AVG ( - - 43 ) WHEN 92 THEN NULL ELSE - 49 END * + ( 8 ) AS col0, + COUNT( * )
----
392
1

skipif mysql # not compatible
query II rowsort label-7380
SELECT ALL - CASE - - AVG ( - - 43 ) WHEN 92 THEN NULL ELSE - 49 END * + ( 8 ) AS col0, + COUNT ( * )
----
392
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7381
SELECT DISTINCT 76 DIV + - COUNT( * ) AS col0, 10 + + 80 DIV + + 49 - - CAST( NULL AS SIGNED ) - + 13 AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-7381
SELECT DISTINCT 76 / + - COUNT ( * ) AS col0, 10 + + 80 / + + 49 - - CAST ( NULL AS INTEGER ) - + 13 AS col2
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT CASE + 92 WHEN - ( - ( - COALESCE ( + COUNT( * ), AVG ( ALL - 98 ), 38 * 70 * 41 ) ) ) THEN NULL WHEN + + AVG ( ALL ( 58 ) ) * + 9 THEN NULL ELSE 45 END - + 68 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT CASE + 92 WHEN - ( - ( - COALESCE ( + COUNT ( * ), AVG ( ALL - 98 ), 38 * 70 * 41 ) ) ) THEN NULL WHEN + + AVG ( ALL ( 58 ) ) * + 9 THEN NULL ELSE 45 END - + 68 AS col1
----
-23

query I rowsort
SELECT 38 + - 52 + 14 * - 53
----
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-7384
SELECT ALL + 5 - + MIN( ALL - + 29 ), + ( 46 ) AS col0
----
34
46

skipif mysql # not compatible
query II rowsort label-7384
SELECT ALL + 5 - + MIN ( ALL - + 29 ), + ( 46 ) AS col0
----
34
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT CAST( NULL AS SIGNED ) * - 24 / + - COALESCE ( 2, - - 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT CAST ( NULL AS INTEGER ) * - 24 / + - COALESCE ( 2, - - 10 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 10 ) * - 72
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT 34 + + - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7387
SELECT 34 + + - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL SUM( ALL + - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL SUM ( ALL + - 75 ) AS col1
----
-75

query I rowsort
SELECT + 26 - + 54 + + 88 col1
----
60

query II rowsort
SELECT - 32 * - 57 AS col2, + ( - - 20 )
----
1824
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT - 44 * 13 DIV 84
----
-6

skipif mysql # not compatible
query I rowsort label-7391
SELECT - 44 * 13 / 84
----
-6

query I rowsort
SELECT - 50 + + 50 AS col1
----
0

query I rowsort
SELECT ALL - - 29 * - 23
----
-667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT - CAST( NULL AS SIGNED ) / + 14 * + NULLIF ( + 53, MAX( + 48 ) ) * - ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT - CAST ( NULL AS INTEGER ) / + 14 * + NULLIF ( + 53, MAX ( + 48 ) ) * - ( + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT ALL + - 17 + 84 + - 15 DIV + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + - 17 + 84 + - 15 / + COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT - CAST( NULL AS SIGNED ) - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT - CAST ( NULL AS INTEGER ) - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7397
SELECT - - 33 DIV - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7397
SELECT - - 33 / - COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - + MAX( 19 ) * + 59 col0
----
-1121

skipif mysql # not compatible
query I rowsort label-7398
SELECT - + MAX ( 19 ) * + 59 col0
----
-1121

query I rowsort
SELECT ALL + + 25 + - 44 * 75
----
-3275

query II rowsort
SELECT - ( + 9 ), - 74 AS col2
----
-9
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7401
SELECT - COUNT( * ) * - + 79 + 66 - + 72 DIV + 75, + ( - COALESCE ( + 18, - - 4 ) ) col0
----
145
-18

skipif mysql # not compatible
query II rowsort label-7401
SELECT - COUNT ( * ) * - + 79 + 66 - + 72 / + 75, + ( - COALESCE ( + 18, - - 4 ) ) col0
----
145
-18

query I rowsort
SELECT + 7 * - 97
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT 83 * + 42 + 23 * 45 + + 45 + 31 * COUNT( * ) AS col1
----
4597

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 83 * + 42 + 23 * 45 + + 45 + 31 * COUNT ( * ) AS col1
----
4597

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + 65 * 80 - - COUNT( * ) + 95 AS col0
----
5296

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 65 * 80 - - COUNT ( * ) + 95 AS col0
----
5296

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL 33 * - - COALESCE ( 7, + COUNT( * ) ) + + 49 + 54 AS col0
----
334

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 33 * - - COALESCE ( 7, + COUNT ( * ) ) + + 49 + 54 AS col0
----
334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT + CASE + COUNT( * ) WHEN + - 27 THEN + 97 WHEN + 60 * - + 21 + CAST( + + 61 AS SIGNED ) * + - 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT + CASE + COUNT ( * ) WHEN + - 27 THEN + 97 WHEN + 60 * - + 21 + CAST ( + + 61 AS INTEGER ) * + - 42 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7407
SELECT DISTINCT + 45 AS col0, COUNT( + + 42 ) + - + 19 * + + 88 + - COUNT( * )
----
45
-1672

skipif mysql # not compatible
query II rowsort label-7407
SELECT DISTINCT + 45 AS col0, COUNT ( + + 42 ) + - + 19 * + + 88 + - COUNT ( * )
----
45
-1672

query I rowsort
SELECT - 40 + - 33 AS col2
----
-73

query I rowsort
SELECT + 46 * - 75 AS col1
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + 10 * COUNT( * ) * + 36 * + COUNT( * ) + - 63
----
297

skipif mysql # not compatible
query I rowsort label-7410
SELECT + 10 * COUNT ( * ) * + 36 * + COUNT ( * ) + - 63
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + COUNT( - - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-7411
SELECT + COUNT ( - - 49 )
----
1

query I rowsort
SELECT + 93 + - 38
----
55

query I rowsort
SELECT + ( + + 65 ) col1
----
65

query I rowsort
SELECT + 16 * - 85
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT DISTINCT + 80, + COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT + 80, + COUNT ( * ) AS col2
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT - 33 * COUNT( * ) - - + 78
----
45

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - 33 * COUNT ( * ) - - + 78
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + 63 + + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-7417
SELECT + 63 + + - COUNT ( * )
----
62

query II rowsort
SELECT ALL + 63 col0, ( 6 ) AS col1
----
63
6

query I rowsort
SELECT + 80 * 43
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7420
SELECT - 71 * ( - - 72 ) / + 84 + 77 + + - COUNT( * ) + - 55 + 48 * + - CAST( NULL AS SIGNED ), ( + - ( - ( 65 ) ) ) AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7420
SELECT - 71 * ( - - 72 ) / + 84 + 77 + + - COUNT ( * ) + - 55 + 48 * + - CAST ( NULL AS INTEGER ), ( + - ( - ( 65 ) ) ) AS col2
----
NULL
65

query II rowsort
SELECT ALL 0 AS col0, + 40 AS col2
----
0
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL NULLIF ( - ( - SUM( DISTINCT - 57 ) ), + + ( - 23 ) ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL NULLIF ( - ( - SUM ( DISTINCT - 57 ) ), + + ( - 23 ) ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7423
SELECT - COUNT( * ) DIV - 51 * - - 1 col2, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7423
SELECT - COUNT ( * ) / - 51 * - - 1 col2, + COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT + 3 + + + 82 col0
----
85

query I rowsort
SELECT - 9 + - 3
----
-12

query I rowsort
SELECT ALL 15 * - - 59
----
885

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT + 20 * COALESCE ( + + 29, 94 * 67 DIV + - 10 )
----
580

skipif mysql # not compatible
query I rowsort label-7427
SELECT + 20 * COALESCE ( + + 29, 94 * 67 / + - 10 )
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - CASE - + 83 WHEN + + COALESCE ( - - 26, - COALESCE ( + 74, - 59 / 82 / 68 * + + 31 + - + COUNT( * ), + 66 ) * - - ( - 36 ) * - 83 / + 59 ) * + + 82 + - 68 THEN 10 END + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT - CASE - + 83 WHEN + + COALESCE ( - - 26, - COALESCE ( + 74, - 59 / 82 / 68 * + + 31 + - + COUNT ( * ), + 66 ) * - - ( - 36 ) * - 83 / + 59 ) * + + 82 + - 68 THEN 10 END + + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT - - COUNT( * ) * + - 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - - COUNT ( * ) * + - 75 AS col2
----
-75

query I rowsort
SELECT ALL + - 65 + 11 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - - 79 + 14 + + 57 - + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-7431
SELECT - - 79 + 14 + + 57 - + COUNT ( * )
----
149

query I rowsort
SELECT DISTINCT 7 + + 85 + - + 77 AS col1
----
15

query I rowsort
SELECT ALL - 82 + + 44
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + 94 + 1 * 55 + + - 99 * + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7434
SELECT + 94 + 1 * 55 + + - 99 * + + COUNT ( * ) AS col1
----
50

query II rowsort
SELECT - 81 AS col0, - 78 col1
----
-81
-78

query I rowsort
SELECT + 8 + 25 AS col1
----
33

query I rowsort
SELECT DISTINCT + 90 + + + 46
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT ALL - COUNT( * ) DIV ( + 80 ) - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - COUNT ( * ) / ( + 80 ) - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 21 + 6 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - + 10 + - COUNT( * ) * + + 63 * + 41 + - - 31
----
-2562

skipif mysql # not compatible
query I rowsort label-7440
SELECT - + 10 + - COUNT ( * ) * + + 63 * + 41 + - - 31
----
-2562

query I rowsort
SELECT ALL + 41 + + 73 - + 63
----
51

query I rowsort
SELECT - + CASE + NULLIF ( ( + 87 ), + + 39 ) WHEN - 53 THEN + 53 ELSE NULL END * + 67 + - 20 AS col2
----
NULL

query I rowsort
SELECT - + 60 + 2 AS col0
----
-58

query I rowsort
SELECT DISTINCT + 38 * - - 42
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - 26 * - 67 + - - ( + 41 ) + - + COUNT( * )
----
1782

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 26 * - 67 + - - ( + 41 ) + - + COUNT ( * )
----
1782

query I rowsort
SELECT ALL + - ( 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - 44 * - COUNT( * ) + 48
----
92

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 44 * - COUNT ( * ) + 48
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT + NULLIF ( - + CAST( + - 53 AS SIGNED ), MIN( DISTINCT + + 34 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7448
SELECT + NULLIF ( - + CAST ( + - 53 AS INTEGER ), MIN ( DISTINCT + + 34 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT 41 DIV + - MIN( ALL - 51 ) + + - NULLIF ( + 33, - 17 + 97 ) + + 39
----
6

skipif mysql # not compatible
query I rowsort label-7449
SELECT 41 / + - MIN ( ALL - 51 ) + + - NULLIF ( + 33, - 17 + 97 ) + + 39
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT ALL + ( + COUNT( * ) ) AS col0, 55
----
1
55

skipif mysql # not compatible
query II rowsort label-7450
SELECT ALL + ( + COUNT ( * ) ) AS col0, 55
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT COUNT( * ) * - - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT COUNT ( * ) * - - 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT - MAX( DISTINCT - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - MAX ( DISTINCT - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT 44 * - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7453
SELECT 44 * - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT SUM( DISTINCT 1 ) * 72
----
72

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT SUM ( DISTINCT 1 ) * 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT 34 DIV 52 * - - 24 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT 34 / 52 * - - 24 * - 78
----
0

query I rowsort
SELECT ALL 9 + - 61
----
-52

query I rowsort
SELECT ALL 67 + + 12
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT SUM( DISTINCT - 61 ) - + 76 + + - 16
----
-153

skipif mysql # not compatible
query I rowsort label-7458
SELECT SUM ( DISTINCT - 61 ) - + 76 + + - 16
----
-153

query I rowsort
SELECT ALL - ( 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT DISTINCT + 19 + - - 83 + - 28 - + + 83 + - 38 * - 47 + - ( 68 ) * + COUNT( * ) AS col1, 46 AS col2
----
1709
46

skipif mysql # not compatible
query II rowsort label-7460
SELECT DISTINCT + 19 + - - 83 + - 28 - + + 83 + - 38 * - 47 + - ( 68 ) * + COUNT ( * ) AS col1, 46 AS col2
----
1709
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT 46 * - COUNT( + 60 ) + ( - 21 ) - 13
----
-80

skipif mysql # not compatible
query I rowsort label-7461
SELECT 46 * - COUNT ( + 60 ) + ( - 21 ) - 13
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL CASE + + 13 WHEN - - MIN( + 17 ) * - + 26 * + + 41 THEN 70 WHEN ( - - 63 ) THEN NULL END + + 47 + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL CASE + + 13 WHEN - - MIN ( + 17 ) * - + 26 * + + 41 THEN 70 WHEN ( - - 63 ) THEN NULL END + + 47 + - 32 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT + 79 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-7463
SELECT + 79 / - 75
----
-1

query I rowsort
SELECT 95 + - 71 * + 76 AS col1
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT COUNT( * ) * - - 56 * + 41 + + 39
----
2335

skipif mysql # not compatible
query I rowsort label-7465
SELECT COUNT ( * ) * - - 56 * + 41 + + 39
----
2335

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT - - SUM( DISTINCT - 52 ) AS col2, - NULLIF ( - ( - 58 ), 31 ) * + - ( - + COUNT( * ) ) + + 13 * - - NULLIF ( - - 8, - COUNT( * ) ) + + - ( CASE WHEN 3 IS NULL THEN - - 25 - + 73 * 24 ELSE + 58 END )
----
-52
-12

skipif mysql # not compatible
query II rowsort label-7466
SELECT - - SUM ( DISTINCT - 52 ) AS col2, - NULLIF ( - ( - 58 ), 31 ) * + - ( - + COUNT ( * ) ) + + 13 * - - NULLIF ( - - 8, - COUNT ( * ) ) + + - ( CASE WHEN 3 IS NULL THEN - - 25 - + 73 * 24 ELSE + 58 END )
----
-52
-12

query II rowsort
SELECT DISTINCT 40 * 47, 95 AS col2
----
1880
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - - SUM( DISTINCT 70 ) * + 39 AS col2
----
2730

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - - SUM ( DISTINCT 70 ) * + 39 AS col2
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT 98 + + - CASE - 69 WHEN + 93 THEN + - 57 + COUNT( * ) * 75 * - 84 ELSE - 56 * - + 41 END + 58
----
-2140

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT 98 + + - CASE - 69 WHEN + 93 THEN + - 57 + COUNT ( * ) * 75 * - 84 ELSE - 56 * - + 41 END + 58
----
-2140

query II rowsort
SELECT DISTINCT - 42 * + 81 AS col2, + 28 + + ( + + 16 ) AS col2
----
-3402
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT DISTINCT - COUNT( ALL 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT - COUNT ( ALL 16 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT CASE + NULLIF ( + 91, 70 - + - 93 ) WHEN - + 36 THEN NULL WHEN - - 16 THEN ( - - 80 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT COUNT( * ) - + 86 - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT COUNT ( * ) - + 86 - + COUNT ( * )
----
-86

query I rowsort
SELECT 12 * - 52 col0
----
-624

query I rowsort
SELECT 18 - + 78 col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT ALL SUM( - 60 ) DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL SUM ( - 60 ) / - 52
----
1

query I rowsort
SELECT 37 * - 22 AS col1
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL + COUNT( * ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + COUNT ( * ) * - 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT 47 * - 94 + 43 + + + NULLIF ( + CAST( - 97 AS SIGNED ), + + 56 / - 71 ) * + 88
----
-12911

skipif mysql # not compatible
query I rowsort label-7479
SELECT 47 * - 94 + 43 + + + NULLIF ( + CAST ( - 97 AS INTEGER ), + + 56 / - 71 ) * + 88
----
-12911

query I rowsort
SELECT - 63 * - 9 + + 52 + 14
----
633

query I rowsort
SELECT ALL - 84 + - - 56
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT + COUNT( - - 51 ) + - 63 + COUNT( * ) * - - 70 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + COUNT ( - - 51 ) + - 63 + COUNT ( * ) * - - 70 AS col0
----
8

query I rowsort
SELECT ALL 61 * 51 col1
----
3111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7484
SELECT + CASE - NULLIF ( - - 40, - - CASE + 18 WHEN SUM( + 14 ) * CAST( NULL AS SIGNED ) THEN 10 * 93 - CAST( + 16 AS SIGNED ) WHEN NULLIF ( - NULLIF ( - + MAX( 22 ), + 37 - 37 + 37 + - + 53 - - 50 * - COUNT( * ) / - COALESCE ( - + 4, + 68 ) ), - CAST( NULL AS SIGNED ) - COUNT( * ) ) THEN - - 70 END ) WHEN - - 48 * - 55 + - 55 THEN + MAX( 55 ) - - 47 WHEN + 37 THEN - + 49 ELSE NULL END col0, + COUNT( * ) * + 17 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-7484
SELECT + CASE - NULLIF ( - - 40, - - CASE + 18 WHEN SUM ( + 14 ) * CAST ( NULL AS INTEGER ) THEN 10 * 93 - CAST ( + 16 AS INTEGER ) WHEN NULLIF ( - NULLIF ( - + MAX ( 22 ), + 37 - 37 + 37 + - + 53 - - 50 * - COUNT ( * ) / - COALESCE ( - + 4, + 68 ) ), - CAST ( NULL AS INTEGER ) - COUNT ( * ) ) THEN - - 70 END ) WHEN - - 48 * - 55 + - 55 THEN + MAX ( 55 ) - - 47 WHEN + 37 THEN - + 49 ELSE NULL END col0, + COUNT ( * ) * + 17 AS col2
----
NULL
17

query I rowsort
SELECT ALL - ( 62 ) + 19
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT ( 87 ) + - COUNT( * ) DIV - - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7486
SELECT ( 87 ) + - COUNT ( * ) / - - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL + 65 * - COUNT( + ( - - 69 ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + 65 * - COUNT ( + ( - - 69 ) ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT 38 DIV + 7
----
5

skipif mysql # not compatible
query I rowsort label-7488
SELECT 38 / + 7
----
5

query I rowsort
SELECT ALL 29 + + 22 col1
----
51

query I rowsort
SELECT 86 * - 2 AS col2
----
-172

query I rowsort
SELECT ALL + 5 * + 98
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - 13 - + COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 13 - + COUNT ( * ) col2
----
-14

query I rowsort
SELECT + 92 + 56
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT SUM( ALL + 15 ) - 69 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7494
SELECT SUM ( ALL + 15 ) - 69 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT + 67 DIV + + 78
----
0

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 67 / + + 78
----
0

query I rowsort
SELECT ALL + 89 * + - 37 - - + 12 * - 63 + 84 AS col0
----
-3965

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT 48 * - MAX( ALL + - 26 ) AS col0, 61
----
1248
61

skipif mysql # not compatible
query II rowsort label-7497
SELECT 48 * - MAX ( ALL + - 26 ) AS col0, 61
----
1248
61

query II rowsort
SELECT ALL COALESCE ( 94, 85 ) * + 91, 58 AS col0
----
8554
58

query II rowsort
SELECT ALL 16, 9 AS col1
----
16
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7500
SELECT 18 + COUNT( * ) DIV + + 21 * 62 * COALESCE ( + + 25, + 94 + - 68 + + COUNT( * ) ) - - 98 - - 61, COUNT( - 53 ) AS col2
----
177
1

skipif mysql # not compatible
query II rowsort label-7500
SELECT 18 + COUNT ( * ) / + + 21 * 62 * COALESCE ( + + 25, + 94 + - 68 + + COUNT ( * ) ) - - 98 - - 61, COUNT ( - 53 ) AS col2
----
177
1

query II rowsort
SELECT DISTINCT 20 AS col2, 6
----
20
6

query II rowsort
SELECT DISTINCT + 60, - 97 AS col1
----
60
-97

query I rowsort
SELECT ALL - 19 * 6 + + 46 AS col2
----
-68

query I rowsort
SELECT + 97 * + 60 + - 4 AS col2
----
5816

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL + MAX( - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + MAX ( - 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT - ( + 29 ) + 3 * - 55 AS col0, 69 + + + COUNT( * )
----
-194
70

skipif mysql # not compatible
query II rowsort label-7506
SELECT - ( + 29 ) + 3 * - 55 AS col0, 69 + + + COUNT ( * )
----
-194
70

query I rowsort
SELECT ALL 21 * - 65 + - 90 * + 38 AS col0
----
-4785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7508
SELECT CASE - 78 WHEN COUNT( * ) * + 12 THEN MAX( - 11 ) ELSE CAST( NULL AS SIGNED ) END AS col1, + 20 DIV + - 13 + + 93 * - 25
----
NULL
-2326

skipif mysql # not compatible
query II rowsort label-7508
SELECT CASE - 78 WHEN COUNT ( * ) * + 12 THEN MAX ( - 11 ) ELSE CAST ( NULL AS INTEGER ) END AS col1, + 20 / + - 13 + + 93 * - 25
----
NULL
-2326

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL + 42 * ( + CASE 51 WHEN - - MIN( ALL + 64 ) THEN NULL WHEN - SUM( ALL + + 25 ) * + 69 - + 22 + 75 THEN NULL ELSE 63 END ) + + + 48
----
2694

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + 42 * ( + CASE 51 WHEN - - MIN ( ALL + 64 ) THEN NULL WHEN - SUM ( ALL + + 25 ) * + 69 - + 22 + 75 THEN NULL ELSE 63 END ) + + + 48
----
2694

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT DISTINCT 38 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT 38 / - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT + ( + 72 ) * 19 * + 45 * - SUM( ALL - - 61 ) + - 75 + + 0 - 23 AS col2
----
-3755258

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + ( + 72 ) * 19 * + 45 * - SUM ( ALL - - 61 ) + - 75 + + 0 - 23 AS col2
----
-3755258

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + 26 * + - COUNT( * ) + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + 26 * + - COUNT ( * ) + + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT - COUNT( * ) * + - 54 DIV - 9 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7513
SELECT - COUNT ( * ) * + - 54 / - 9 AS col2
----
-6

query I rowsort
SELECT ALL 65 * - + 15 + + 15 * 72
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT - 77 * + - 82 * + COUNT( * ) - - 32
----
6346

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 77 * + - 82 * + COUNT ( * ) - - 32
----
6346

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT COUNT( * ) AS col2, 0 + - 53 AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-7516
SELECT COUNT ( * ) AS col2, 0 + - 53 AS col2
----
1
-53

query II rowsort
SELECT + 71 col2, - 70 AS col2
----
71
-70

query I rowsort
SELECT - 35 * + 17 - + 67 AS col0
----
-662

query II rowsort
SELECT DISTINCT 0, 83 AS col2
----
0
83

query I rowsort
SELECT + 7 * - 70 - + - 16 - + ( + 7 )
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL + MIN( DISTINCT + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + MIN ( DISTINCT + - 8 )
----
-8

onlyif mysql # DIV for integer division: 
query III rowsort label-7522
SELECT DISTINCT - ( 92 ) AS col2, 62 DIV - 87 AS col1, + 53
----
-92
0
53

skipif mysql # not compatible
query III rowsort label-7522
SELECT DISTINCT - ( 92 ) AS col2, 62 / - 87 AS col1, + 53
----
-92
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COUNT( DISTINCT + + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COUNT ( DISTINCT + + 12 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7524
SELECT - + 78, 81 + + + NULLIF ( COUNT( DISTINCT 16 ), - 48 ) col2
----
-78
82

skipif mysql # not compatible
query II rowsort label-7524
SELECT - + 78, 81 + + + NULLIF ( COUNT ( DISTINCT 16 ), - 48 ) col2
----
-78
82

query I rowsort
SELECT ALL ( - + 99 ) AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT - + 98 * CAST( + 2 AS SIGNED ) * - 26
----
5096

skipif mysql # not compatible
query I rowsort label-7526
SELECT - + 98 * CAST ( + 2 AS INTEGER ) * - 26
----
5096

query I rowsort
SELECT - + 29 + 70 AS col0
----
41

query I rowsort
SELECT - COALESCE ( - + 27, + 97 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7529
SELECT - 29 AS col0, 57 - + - 56 + + COUNT( * ) DIV 60 col1
----
-29
113

skipif mysql # not compatible
query II rowsort label-7529
SELECT - 29 AS col0, 57 - + - 56 + + COUNT ( * ) / 60 col1
----
-29
113

query II rowsort
SELECT + 60 + + 10 AS col2, 57 * + ( - 15 ) AS col1
----
70
-855

query I rowsort
SELECT + 64 - - 38
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7532
SELECT ALL 1 AS col2, - 99 * + - SUM( ALL - - CAST( NULL AS SIGNED ) ) + - 15 + - 20 * 86 * + 93 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL 1 AS col2, - 99 * + - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + - 15 + - 20 * 86 * + 93 col0
----
1
NULL

query II rowsort
SELECT DISTINCT + 1 + - 61, 31 AS col1
----
-60
31

query I rowsort
SELECT ALL ( 74 ) col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7535
SELECT ALL CAST( - 44 AS SIGNED ) AS col0, 98 AS col0
----
-44
98

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL CAST ( - 44 AS INTEGER ) AS col0, 98 AS col0
----
-44
98

query I rowsort
SELECT - CASE - 90 WHEN + + 85 THEN - - 97 WHEN + NULLIF ( - 63, - 6 ) THEN NULL WHEN 52 * 22 + 57 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7537
SELECT - 52 - + - CAST( NULL AS DECIMAL ) - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT - 52 - + - CAST ( NULL AS REAL ) - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - 28 - SUM( ALL - 23 )
----
-5

skipif mysql # not compatible
query I rowsort label-7538
SELECT - 28 - SUM ( ALL - 23 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT + 34 * - 63 * COALESCE ( - + COUNT( * ), - 35, + 51 + COUNT( * ) DIV - 12 * - + CASE 29 WHEN 81 THEN - 37 WHEN + 70 THEN NULL ELSE NULL END ) AS col2
----
2142

skipif mysql # not compatible
query I rowsort label-7539
SELECT + 34 * - 63 * COALESCE ( - + COUNT ( * ), - 35, + 51 + COUNT ( * ) / - 12 * - + CASE 29 WHEN 81 THEN - 37 WHEN + 70 THEN NULL ELSE NULL END ) AS col2
----
2142

query I rowsort
SELECT - ( + + 15 ) col2
----
-15

query I rowsort
SELECT + 4 * 48 AS col1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT CAST( + COALESCE ( + 0, + + ( - 34 ) * - 90 + + CAST( NULL AS SIGNED ) / + - 50 / - 74 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7542
SELECT CAST ( + COALESCE ( + 0, + + ( - 34 ) * - 90 + + CAST ( NULL AS INTEGER ) / + - 50 / - 74 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT + 80 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 80 / - 89
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7544
SELECT + 86 DIV - 57 AS col2, 53 AS col1
----
-1
53

skipif mysql # not compatible
query II rowsort label-7544
SELECT + 86 / - 57 AS col2, 53 AS col1
----
-1
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7545
SELECT ALL CAST( NULL AS DECIMAL ) / + 12 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL CAST ( NULL AS REAL ) / + 12 + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT + 98 - - COUNT( + - 63 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7546
SELECT + 98 - - COUNT ( + - 63 ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT - 15 DIV + COUNT( * ) + 37
----
22

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - 15 / + COUNT ( * ) + 37
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT COUNT( * ) DIV 56 + MIN( 16 ) * - + 24
----
-384

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT COUNT ( * ) / 56 + MIN ( 16 ) * - + 24
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + 38 + MAX( - 71 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7549
SELECT + 38 + MAX ( - 71 ) AS col0
----
-33

query I rowsort
SELECT ( + 77 ) col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT + 10 * - - COUNT( * ) + 27 + + COALESCE ( + + 61, - + 98 * + COUNT( ALL - - 8 ) + + 15 + + 79 DIV + 81 + + 48 * 68, - 33 - + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-7551
SELECT + 10 * - - COUNT ( * ) + 27 + + COALESCE ( + + 61, - + 98 * + COUNT ( ALL - - 8 ) + + 15 + + 79 / + 81 + + 48 * 68, - 33 - + COUNT ( * ) )
----
98

query I rowsort
SELECT - COALESCE ( + 32, - 69 ) - - + 29 * - + 98 AS col0
----
-2874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7553
SELECT - COALESCE ( - 73, COUNT( * ) - - 51 ) - COALESCE ( CAST( 93 AS SIGNED ), + 69 * 67 + + 20, CAST( + - 13 AS SIGNED ) * - - COUNT( * ) + COUNT( + 88 ) + - 62 + 79 + + 64 * 80 + + + 18 )
----
-20

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COALESCE ( - 73, COUNT ( * ) - - 51 ) - COALESCE ( CAST ( 93 AS INTEGER ), + 69 * 67 + + 20, CAST ( + - 13 AS INTEGER ) * - - COUNT ( * ) + COUNT ( + 88 ) + - 62 + 79 + + 64 * 80 + + + 18 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7554
SELECT ALL + MIN( ALL 67 ) AS col1, + MAX( DISTINCT - 33 ) col0
----
67
-33

skipif mysql # not compatible
query II rowsort label-7554
SELECT ALL + MIN ( ALL 67 ) AS col1, + MAX ( DISTINCT - 33 ) col0
----
67
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL + - NULLIF ( COUNT( * ), - NULLIF ( + 10, + 16 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + - NULLIF ( COUNT ( * ), - NULLIF ( + 10, + 16 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT ALL - 82 * + CASE - 78 WHEN - 85 - - COUNT( * ) * + + COUNT( * ) / - - 56 * 13 * 91 THEN ( - - AVG ( ALL - 45 ) ) + + + ( + - 61 ) * ( + + CAST( 7 AS SIGNED ) ) END + - MIN( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - 82 * + CASE - 78 WHEN - 85 - - COUNT ( * ) * + + COUNT ( * ) / - - 56 * 13 * 91 THEN ( - - AVG ( ALL - 45 ) ) + + + ( + - 61 ) * ( + + CAST ( 7 AS INTEGER ) ) END + - MIN ( + 22 )
----
NULL

query I rowsort
SELECT ALL + 45 * - + 47 * 34 - + - ( - 92 ) - + 31 * 54
----
-73676

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + 92 * + + 96 * 61 * - 36 * COUNT( * ) * 44 + + - SUM( DISTINCT - 90 ) + + 88 AS col0
----
-853382990

skipif mysql # not compatible
query I rowsort label-7558
SELECT + 92 * + + 96 * 61 * - 36 * COUNT ( * ) * 44 + + - SUM ( DISTINCT - 90 ) + + 88 AS col0
----
-853382990

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT - 22 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 22 / 70
----
0

query I rowsort
SELECT + 61 + - 78 AS col2
----
-17

query I rowsort
SELECT - 35 * + - 61 AS col1
----
2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7562
SELECT DISTINCT NULLIF ( + 14, - 0 + + ( + + 52 ) * CAST( - + CASE 4 WHEN + + NULLIF ( + + MIN( DISTINCT - 82 ), 5 * + 89 * - COUNT( * ) + + CAST( - SUM( - CAST( - 75 AS DECIMAL ) ) AS SIGNED ) * - 49 + 56 ) THEN + 95 + + 48 WHEN + + 90 * - - 11 - COUNT( * ) + 58 THEN - + 96 ELSE + 0 * - 66 + + - ( + 95 ) * + ( CASE - 17 WHEN - - COUNT( DISTINCT 57 ) + + + 65 THEN COUNT( * ) WHEN - AVG ( 38 ) THEN NULL END ) - 99 END AS SIGNED ) * - 81 + 33 * + 45 )
----
14

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT NULLIF ( + 14, - 0 + + ( + + 52 ) * CAST ( - + CASE 4 WHEN + + NULLIF ( + + MIN ( DISTINCT - 82 ), 5 * + 89 * - COUNT ( * ) + + CAST ( - SUM ( - CAST ( - 75 AS REAL ) ) AS INTEGER ) * - 49 + 56 ) THEN + 95 + + 48 WHEN + + 90 * - - 11 - COUNT ( * ) + 58 THEN - + 96 ELSE + 0 * - 66 + + - ( + 95 ) * + ( CASE - 17 WHEN - - COUNT ( DISTINCT 57 ) + + + 65 THEN COUNT ( * ) WHEN - AVG ( 38 ) THEN NULL END ) - 99 END AS INTEGER ) * - 81 + 33 * + 45 )
----
14

query I rowsort
SELECT - - 61 * - + 28
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL + + 83 + - 37 + 21 * + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + + 83 + - 37 + 21 * + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - ( COUNT( + 87 ) ) + - + 46 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7565
SELECT - ( COUNT ( + 87 ) ) + - + 46 AS col0
----
-47

query II rowsort
SELECT ALL 12 AS col2, - 84 AS col1
----
12
-84

query I rowsort
SELECT 37 * 0 AS col0
----
0

query I rowsort
SELECT ALL + 88 + + 65 AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7569
SELECT 18 + + NULLIF ( CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ), - + 63 * CAST( NULL AS SIGNED ) ) - 46
----
-29

skipif mysql # not compatible
query I rowsort label-7569
SELECT 18 + + NULLIF ( CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ), - + 63 * CAST ( NULL AS INTEGER ) ) - 46
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - 15 + + 59 * - COALESCE ( - - CAST( + 5 AS SIGNED ), - - 39 ) * + 86 * + 5 * + 85
----
-10782265

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - 15 + + 59 * - COALESCE ( - - CAST ( + 5 AS INTEGER ), - - 39 ) * + 86 * + 5 * + 85
----
-10782265

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT COUNT( * ) + - - 72 col0
----
73

skipif mysql # not compatible
query I rowsort label-7571
SELECT COUNT ( * ) + - - 72 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT + 70 + - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT + 70 + - COUNT ( * ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( - 46 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( - 46 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT 43 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7574
SELECT 43 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT - COALESCE ( 71, + + 38 * 25, - + COUNT( * ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - COALESCE ( 71, + + 38 * 25, - + COUNT ( * ) ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7576
SELECT 52 * 20 * - 66 AS col0, + CAST( NULL AS SIGNED ) col0
----
-68640
NULL

skipif mysql # not compatible
query II rowsort label-7576
SELECT 52 * 20 * - 66 AS col0, + CAST ( NULL AS INTEGER ) col0
----
-68640
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT 53 * + - CASE - - ( + - 50 ) WHEN + - 30 THEN - 84 + - + NULLIF ( + + 15, - + 59 ) + + SUM( ALL NULLIF ( + 16, - ( + + 92 ) + + 66 * - 36 + - ( + 27 ) ) ) WHEN 96 + + - 34 + + 24 * - ( 97 ) THEN - ( - 95 ) + + 24 WHEN AVG ( DISTINCT + 27 ) + 88 THEN - 1 / - - 42 END + AVG ( - 15 ) * + ( - - 42 ) * 38 + - ( - + 26 ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT 53 * + - CASE - - ( + - 50 ) WHEN + - 30 THEN - 84 + - + NULLIF ( + + 15, - + 59 ) + + SUM ( ALL NULLIF ( + 16, - ( + + 92 ) + + 66 * - 36 + - ( + 27 ) ) ) WHEN 96 + + - 34 + + 24 * - ( 97 ) THEN - ( - 95 ) + + 24 WHEN AVG ( DISTINCT + 27 ) + 88 THEN - 1 / - - 42 END + AVG ( - 15 ) * + ( - - 42 ) * 38 + - ( - + 26 ) + + 57
----
NULL

query I rowsort
SELECT ALL 2 - + - ( 86 ) * 91 * 69
----
539996

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT 96 * + 10 + + SUM( DISTINCT + 73 )
----
1033

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT 96 * + 10 + + SUM ( DISTINCT + 73 )
----
1033

query II rowsort
SELECT DISTINCT - 67, + 37 * + - 98 col1
----
-67
-3626

query I rowsort
SELECT + + 83 * - - NULLIF ( + 22, + 97 ) + 53
----
1879

query I rowsort
SELECT ALL 53 * + 29
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 15 * - SUM( DISTINCT 41 ) col0
----
-615

skipif mysql # not compatible
query I rowsort label-7583
SELECT 15 * - SUM ( DISTINCT 41 ) col0
----
-615

query I rowsort
SELECT ALL 62 * + 84
----
5208

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT + CASE + COUNT( * ) WHEN + - 83 * - NULLIF ( - 97, - 42 / 21 - 93 * + 35 + + 10 * + 22 ) * + 32 THEN NULL WHEN 10 THEN + COALESCE ( - 87, + 19 ) END AS col2, 68 * - - COALESCE ( + + 39, ( + - 58 ) ) + + 9
----
NULL
2661

skipif mysql # not compatible
query II rowsort label-7585
SELECT + CASE + COUNT ( * ) WHEN + - 83 * - NULLIF ( - 97, - 42 / 21 - 93 * + 35 + + 10 * + 22 ) * + 32 THEN NULL WHEN 10 THEN + COALESCE ( - 87, + 19 ) END AS col2, 68 * - - COALESCE ( + + 39, ( + - 58 ) ) + + 9
----
NULL
2661

query I rowsort
SELECT 64 - + 31 * + 23 AS col0
----
-649

query II rowsort
SELECT + NULLIF ( 88, - 32 ), + 24 col1
----
88
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT + 28 + - + MAX( ALL - 96 ) AS col0, + CAST( NULL AS SIGNED )
----
124
NULL

skipif mysql # not compatible
query II rowsort label-7588
SELECT + 28 + - + MAX ( ALL - 96 ) AS col0, + CAST ( NULL AS INTEGER )
----
124
NULL

query I rowsort
SELECT ALL - 32 + + - 82
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - + COUNT( - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-7590
SELECT - + COUNT ( - 41 )
----
-1

query I rowsort
SELECT ALL - + 31 + - 15 col1
----
-46

query I rowsort
SELECT 64 + - ( 96 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT + COUNT( * ) - - 72 * + 56 * + 40 * - 78 + + - 10 AS col0, COUNT( 16 )
----
-12579849
1

skipif mysql # not compatible
query II rowsort label-7593
SELECT + COUNT ( * ) - - 72 * + 56 * + 40 * - 78 + + - 10 AS col0, COUNT ( 16 )
----
-12579849
1

query I rowsort
SELECT ALL 83 * + 15 AS col2
----
1245

query I rowsort
SELECT ALL 23 * + + 26 AS col1
----
598

query I rowsort
SELECT DISTINCT + ( 21 ) + + 5 AS col0
----
26

query I rowsort
SELECT 57 * - 15
----
-855

query I rowsort
SELECT 63 + - + 21
----
42

query I rowsort
SELECT ALL + 84 + - - 67 col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7600
SELECT DISTINCT ( + - CAST( 84 AS SIGNED ) ) + + 90 AS col1, 31 * - - CAST( 59 AS SIGNED ) AS col2
----
6
1829

skipif mysql # not compatible
query II rowsort label-7600
SELECT DISTINCT ( + - CAST ( 84 AS INTEGER ) ) + + 90 AS col1, 31 * - - CAST ( 59 AS INTEGER ) AS col2
----
6
1829

query I rowsort
SELECT 46 * - 95 AS col0
----
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT 22 + MIN( ALL + 15 ) + + 8 + - NULLIF ( COUNT( * ), + - 8 * - + 60 ) + - 21 * - - 16 * + 49 + COUNT( * )
----
-16419

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT 22 + MIN ( ALL + 15 ) + + 8 + - NULLIF ( COUNT ( * ), + - 8 * - + 60 ) + - 21 * - - 16 * + 49 + COUNT ( * )
----
-16419

query I rowsort
SELECT 46 * + 77 AS col1
----
3542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7604
SELECT ALL - 94 * + CAST( - + ( - 89 ) AS SIGNED ) DIV + COUNT( * ) + + 48
----
-8318

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - 94 * + CAST ( - + ( - 89 ) AS INTEGER ) / + COUNT ( * ) + + 48
----
-8318

query I rowsort
SELECT 52 + - - 86
----
138

query II rowsort
SELECT 88 * + 33 AS col0, + 47 - + 63 col1
----
2904
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL - 85 * - ( + COUNT( * ) ) * 71 * + + 32 + + 20
----
193140

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - 85 * - ( + COUNT ( * ) ) * 71 * + + 32 + + 20
----
193140

query I rowsort
SELECT DISTINCT + 67 * + 58 AS col0
----
3886

query II rowsort
SELECT 71 * - 46, 0 AS col2
----
-3266
0

query I rowsort
SELECT 78 - - 78 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT - ( - COUNT( - 94 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - ( - COUNT ( - 94 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + + 94 * - COUNT( * ) - CASE - + 38 WHEN + 67 THEN 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + 94 * - COUNT ( * ) - CASE - + 38 WHEN + 67 THEN 44 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT + ( + 60 ) DIV 22 + - 40
----
-38

skipif mysql # not compatible
query I rowsort label-7613
SELECT + ( + 60 ) / 22 + - 40
----
-38

query I rowsort
SELECT ALL + - 7 * - + 52 + - 55
----
309

query I rowsort
SELECT + 9 * + NULLIF ( + 24, - 70 ) + + + 71 + + 71 + - 97 + + 76
----
337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7616
SELECT + NULLIF ( - 89, 68 / - 58 / COUNT( * ) ) - + CAST( NULL AS SIGNED ) + + - 85 + - 7 + - 30 AS col0, 16 * 59 AS col0
----
NULL
944

skipif mysql # not compatible
query II rowsort label-7616
SELECT + NULLIF ( - 89, 68 / - 58 / COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + - 85 + - 7 + - 30 AS col0, 16 * 59 AS col0
----
NULL
944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT ALL + 5 DIV + + COUNT( * ) - + + 26 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 5 / + + COUNT ( * ) - + + 26 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT - ( + 51 ) DIV 54 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT - ( + 51 ) / 54 * - 14
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT COUNT( * ) * + 7 * 54 * + 5 + 2 + + 13 + + + 9, 66 * + 36 col2
----
1914
2376

skipif mysql # not compatible
query II rowsort label-7619
SELECT COUNT ( * ) * + 7 * 54 * + 5 + 2 + + 13 + + + 9, 66 * + 36 col2
----
1914
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT 36 * - 24 - 55 + COUNT( * ) AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-7620
SELECT 36 * - 24 - 55 + COUNT ( * ) AS col0
----
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT DISTINCT + CAST( - CAST( - 38 AS SIGNED ) AS SIGNED ) * 19 * - 81 - - 90
----
-58392

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + CAST ( - CAST ( - 38 AS INTEGER ) AS INTEGER ) * 19 * - 81 - - 90
----
-58392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT COALESCE ( + + NULLIF ( + 36, - 57 DIV - 29 ), COUNT( * ), + 32 DIV - 98 - ( - 58 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7622
SELECT COALESCE ( + + NULLIF ( + 36, - 57 / - 29 ), COUNT ( * ), + 32 / - 98 - ( - 58 ) ) AS col0
----
36

query I rowsort
SELECT ALL 9 + 63 * - 66
----
-4149

query I rowsort
SELECT ALL 14 + 14 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - 33 * + 61 + + 80 + + + 6 + - 93 * - COUNT( * ) col1
----
-1834

skipif mysql # not compatible
query I rowsort label-7625
SELECT - 33 * + 61 + + 80 + + + 6 + - 93 * - COUNT ( * ) col1
----
-1834

query I rowsort
SELECT ALL - 79 + 1 AS col2
----
-78

query I rowsort
SELECT ALL 80 + + 29
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7628
SELECT + - 98 + 69 AS col1, - COALESCE ( 12, 24 * + COUNT( * ) DIV - ( + 3 ) + + 45 + - 79 ) AS col1
----
-29
-12

skipif mysql # not compatible
query II rowsort label-7628
SELECT + - 98 + 69 AS col1, - COALESCE ( 12, 24 * + COUNT ( * ) / - ( + 3 ) + + 45 + - 79 ) AS col1
----
-29
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7629
SELECT DISTINCT 98 + - - ( - ( + + COUNT( ALL + 50 ) ) ) + - 93 + COUNT( * ) * + - ( - - 30 ) + COUNT( * ) DIV - 10 * MAX( DISTINCT - 50 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT 98 + - - ( - ( + + COUNT ( ALL + 50 ) ) ) + - 93 + COUNT ( * ) * + - ( - - 30 ) + COUNT ( * ) / - 10 * MAX ( DISTINCT - 50 ) AS col2
----
-26

query I rowsort
SELECT + 5 + + 23
----
28

query II rowsort
SELECT ALL 66, 87 AS col1
----
66
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - MAX( DISTINCT - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7632
SELECT - MAX ( DISTINCT - 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT + 75 + 60 * - + 73 * MAX( ALL + 18 ) * COUNT( + CAST( - 15 AS SIGNED ) ) - - 54 - 41 + 82 * - ( + - ( - CASE + 78 WHEN - 3 THEN + 52 + - CAST( + 26 AS SIGNED ) / 82 ELSE NULL END ) ) + - NULLIF ( + + ( + 51 ), - CASE - - 27 WHEN 73 * 45 + + + CASE - + 20 WHEN - AVG ( - 66 ) THEN NULL WHEN + 22 THEN ( + - COUNT( * ) ) * - 79 * - 17 END THEN NULL ELSE - 26 + + + 66 END ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT + 75 + 60 * - + 73 * MAX ( ALL + 18 ) * COUNT ( + CAST ( - 15 AS INTEGER ) ) - - 54 - 41 + 82 * - ( + - ( - CASE + 78 WHEN - 3 THEN + 52 + - CAST ( + 26 AS INTEGER ) / 82 ELSE NULL END ) ) + - NULLIF ( + + ( + 51 ), - CASE - - 27 WHEN 73 * 45 + + + CASE - + 20 WHEN - AVG ( - 66 ) THEN NULL WHEN + 22 THEN ( + - COUNT ( * ) ) * - 79 * - 17 END THEN NULL ELSE - 26 + + + 66 END ) * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL + 53 - - - 64 + - NULLIF ( - - 73, 62 ) * - - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 53 - - - 64 + - NULLIF ( - - 73, 62 ) * - - COUNT ( * )
----
-84

query I rowsort
SELECT DISTINCT 74 * - - 98 AS col1
----
7252

onlyif mysql # DIV for integer division: 
query II rowsort label-7636
SELECT + 39 + + 38 DIV - 91, + 30 AS col2
----
39
30

skipif mysql # not compatible
query II rowsort label-7636
SELECT + 39 + + 38 / - 91, + 30 AS col2
----
39
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - COUNT( * ) - 92 * - - 46
----
-4233

skipif mysql # not compatible
query I rowsort label-7637
SELECT - COUNT ( * ) - 92 * - - 46
----
-4233

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7638
SELECT - CAST( NULL AS DECIMAL ) * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT - CAST ( NULL AS REAL ) * + 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT - CAST( NULL AS SIGNED ) - 75 + 43 - - COUNT( ALL 64 ) + 56 + AVG ( DISTINCT 72 ) + - + 94 + - - ( 89 ) * 11 * + MIN( + 46 ) * - + 32 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT - CAST ( NULL AS INTEGER ) - 75 + 43 - - COUNT ( ALL 64 ) + 56 + AVG ( DISTINCT 72 ) + - + 94 + - - ( 89 ) * 11 * + MIN ( + 46 ) * - + 32 * + 52
----
NULL

query I rowsort
SELECT ALL 27 * - 12 AS col1
----
-324

query I rowsort
SELECT ALL 86 * + + 63
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + COUNT( * ) * - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7642
SELECT + COUNT ( * ) * - 83 AS col0
----
-83

query I rowsort
SELECT ALL 73 * - + 15 * + ( + 63 )
----
-68985

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 51, + NULLIF ( - + 45, + 5 + + + 73 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT + 96 * 23 * - 91 * MAX( 55 ) * COUNT( * ) + 14 - - + 70 * - 45
----
-11054176

skipif mysql # not compatible
query I rowsort label-7645
SELECT + 96 * 23 * - 91 * MAX ( 55 ) * COUNT ( * ) + 14 - - + 70 * - 45
----
-11054176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7646
SELECT - + 32 * + MIN( + 48 ) + - 14 DIV 47 AS col1, MAX( + 83 ) AS col0
----
-1536
83

skipif mysql # not compatible
query II rowsort label-7646
SELECT - + 32 * + MIN ( + 48 ) + - 14 / 47 AS col1, MAX ( + 83 ) AS col0
----
-1536
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + + 64 * - + COUNT( * ) * COUNT( * ) + - MIN( 3 ) + 80 + - COUNT( * ) / + CASE MAX( ALL 52 ) WHEN - 81 THEN + 85 * + + 90 + - 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + + 64 * - + COUNT ( * ) * COUNT ( * ) + - MIN ( 3 ) + 80 + - COUNT ( * ) / + CASE MAX ( ALL 52 ) WHEN - 81 THEN + 85 * + + 90 + - 56 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL + - MAX( DISTINCT + ( 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL + - MAX ( DISTINCT + ( 87 ) )
----
-87

query I rowsort
SELECT - + 71 * - 86 AS col1
----
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL + + COALESCE ( 75, + NULLIF ( - COUNT( * ), + 69 * - 61 * - 42 * - 81 + - COALESCE ( - 4, + + COUNT( * ) ) ), - 61 * + 36 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + + COALESCE ( 75, + NULLIF ( - COUNT ( * ), + 69 * - 61 * - 42 * - 81 + - COALESCE ( - 4, + + COUNT ( * ) ) ), - 61 * + 36 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - - ( COUNT( * ) ) * + 62 * - + 65 + 91
----
-3939

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - - ( COUNT ( * ) ) * + 62 * - + 65 + 91
----
-3939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT - ( - + 40 ) * + 30 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT - ( - + 40 ) * + 30 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + MIN( + 21 ) * + - 89 + - - 94 + - + MIN( 56 )
----
-1831

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + MIN ( + 21 ) * + - 89 + - - 94 + - + MIN ( 56 )
----
-1831

query I rowsort
SELECT ALL + ( + + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - - SUM( ALL 86 ) * + 21 + - ( - 65 ) - 0 + + 77 - 9 + 99
----
2038

skipif mysql # not compatible
query I rowsort label-7655
SELECT - - SUM ( ALL 86 ) * + 21 + - ( - 65 ) - 0 + + 77 - 9 + 99
----
2038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT + COUNT( * ) DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT + COUNT ( * ) / - - 43
----
0

query I rowsort
SELECT - 82 * 7 * + 58
----
-33292

query I rowsort
SELECT ALL 93 * + + 67 AS col1
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT DISTINCT - ( + + 29 ) * - + COUNT( * ) * 11 - + - 63 AS col1
----
382

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT - ( + + 29 ) * - + COUNT ( * ) * 11 - + - 63 AS col1
----
382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT + MIN( ALL 7 ) + + COUNT( - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7660
SELECT + MIN ( ALL 7 ) + + COUNT ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
7

query I rowsort
SELECT - 22 * + 49
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT ALL 33 * - + CAST( - 25 AS SIGNED )
----
825

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL 33 * - + CAST ( - 25 AS INTEGER )
----
825

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT DISTINCT 29, COUNT( - ( - 61 ) ) col0
----
29
1

skipif mysql # not compatible
query II rowsort label-7663
SELECT DISTINCT 29, COUNT ( - ( - 61 ) ) col0
----
29
1

query I rowsort
SELECT DISTINCT 51 * - + ( 8 )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( * ) + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( * ) + 28 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT + CAST( NULL AS SIGNED ) / - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT + CAST ( NULL AS INTEGER ) / - + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7667
SELECT 74, CASE + 71 WHEN + + MAX( 41 ) THEN NULL WHEN 61 * - 10 + - 58 + + 18 * - + 92 * + ( + + CASE + + MIN( DISTINCT 40 ) WHEN - 99 THEN - 28 ELSE 70 - - ( + 16 ) END ) + 36 + - + CASE + - NULLIF ( + 8, + COUNT( * ) - + 44 + - COUNT( ALL - 64 ) * + + 23 ) WHEN ( + + 54 ) THEN - + 82 ELSE NULL END * + 4 + - - 80 * - - COUNT( * ) THEN - 4 + + 8 * - 66 * - COUNT( * ) ELSE + - 54 DIV - - COUNT( * ) - + + 94 END AS col0
----
74
-148

skipif mysql # not compatible
query II rowsort label-7667
SELECT 74, CASE + 71 WHEN + + MAX ( 41 ) THEN NULL WHEN 61 * - 10 + - 58 + + 18 * - + 92 * + ( + + CASE + + MIN ( DISTINCT 40 ) WHEN - 99 THEN - 28 ELSE 70 - - ( + 16 ) END ) + 36 + - + CASE + - NULLIF ( + 8, + COUNT ( * ) - + 44 + - COUNT ( ALL - 64 ) * + + 23 ) WHEN ( + + 54 ) THEN - + 82 ELSE NULL END * + 4 + - - 80 * - - COUNT ( * ) THEN - 4 + + 8 * - 66 * - COUNT ( * ) ELSE + - 54 / - - COUNT ( * ) - + + 94 END AS col0
----
74
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT - CAST( - - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-7668
SELECT - CAST ( - - 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + 14 * + CASE COUNT( * ) WHEN - 32 THEN ( - ( + NULLIF ( - 29, 46 - - 95 * 92 * - MIN( - 12 ) ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 14 * + CASE COUNT ( * ) WHEN - 32 THEN ( - ( + NULLIF ( - 29, 46 - - 95 * 92 * - MIN ( - 12 ) ) ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL 19 + + 78 col2
----
97

query I rowsort
SELECT + 89 - - - 28 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT 28 * COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT 28 * COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + 16 + + ( - COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 16 + + ( - COUNT ( * ) ) AS col2
----
15

query I rowsort
SELECT - 86 * - 14 * + 68 AS col1
----
81872

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT DISTINCT - + 88 DIV + 7 + + + 62 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT - + 88 / + 7 + + + 62 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT ALL + - 37 + + CASE + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - COUNT( * ) + - ( - ( - - 84 ) ) + - + 24 * - 48 - + - SUM( ALL - - 71 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + - 37 + + CASE + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - COUNT ( * ) + - ( - ( - - 84 ) ) + - + 24 * - 48 - + - SUM ( ALL - - 71 ) END AS col1
----
NULL

query I rowsort
SELECT + 39 - - 66
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL - 3 * - COUNT( + 16 ) * + + CAST( NULL AS SIGNED ) * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - 3 * - COUNT ( + 16 ) * + + CAST ( NULL AS INTEGER ) * - 39 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 86 WHEN + 55 THEN 14 * 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT 31 + - CASE - + 7 WHEN + 23 + COUNT( * ) THEN 30 WHEN 88 THEN NULL ELSE NULL END - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT 31 + - CASE - + 7 WHEN + 23 + COUNT ( * ) THEN 30 WHEN 88 THEN NULL ELSE NULL END - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT 86 AS col2, 32 * + 77 + 15 * - - COUNT( * ) AS col2
----
86
2479

skipif mysql # not compatible
query II rowsort label-7681
SELECT 86 AS col2, 32 * + 77 + 15 * - - COUNT ( * ) AS col2
----
86
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - + COUNT( - - 12 ) + - + 37 col1
----
-38

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - + COUNT ( - - 12 ) + - + 37 col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7683
SELECT + 93 col1, - CAST( 72 AS SIGNED ) * 28 + + 55 + 23
----
93
-1938

skipif mysql # not compatible
query II rowsort label-7683
SELECT + 93 col1, - CAST ( 72 AS INTEGER ) * 28 + + 55 + 23
----
93
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT 8 - + COUNT( * ) + + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7684
SELECT 8 - + COUNT ( * ) + + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL + + ( COUNT( * ) ) * - + MAX( + - 10 ) + + 95 * NULLIF ( + - 26, + 74 ) * - 45 * + - 46
----
-5112890

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + + ( COUNT ( * ) ) * - + MAX ( + - 10 ) + + 95 * NULLIF ( + - 26, + 74 ) * - 45 * + - 46
----
-5112890

query I rowsort
SELECT + - 62 * - - 37 - - 24 AS col2
----
-2270

query II rowsort
SELECT + + 41 AS col1, 97
----
41
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL - - COUNT( ALL + CAST( NULL AS SIGNED ) ) - - 43
----
43

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) - - 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT CASE - 0 WHEN 31 THEN - MAX( ALL - - 97 ) WHEN 75 + 70 THEN 70 + + ( + 13 ) END * + COALESCE ( - 34, - 54, 21 + - + ( + 90 ) * MAX( ALL 21 ) * + NULLIF ( MIN( - CAST( NULL AS SIGNED ) ), - 95 + 64 ), 18 / - 73 * + 61 + + 4 / - 18 + CASE + 24 WHEN 15 + - COUNT( * ) - - - 65 + - 54 / + 4 * - CAST( NULL AS SIGNED ) * 2 THEN - 63 + + ( + 21 ) + - 85 ELSE NULL END * + 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT CASE - 0 WHEN 31 THEN - MAX ( ALL - - 97 ) WHEN 75 + 70 THEN 70 + + ( + 13 ) END * + COALESCE ( - 34, - 54, 21 + - + ( + 90 ) * MAX ( ALL 21 ) * + NULLIF ( MIN ( - CAST ( NULL AS INTEGER ) ), - 95 + 64 ), 18 / - 73 * + 61 + + 4 / - 18 + CASE + 24 WHEN 15 + - COUNT ( * ) - - - 65 + - 54 / + 4 * - CAST ( NULL AS INTEGER ) * 2 THEN - 63 + + ( + 21 ) + - 85 ELSE NULL END * + 2 ) AS col0
----
NULL

query I rowsort
SELECT ALL 64 * + + 13
----
832

query I rowsort
SELECT 56 + - ( + - 13 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7692
SELECT ALL - 71 - + + 11 + + NULLIF ( + 21, - ( + 42 ) ) DIV + 19 + - ( 78 ) + + - 92 - + 2 DIV + 11, + 75 AS col0
----
-251
75

skipif mysql # not compatible
query II rowsort label-7692
SELECT ALL - 71 - + + 11 + + NULLIF ( + 21, - ( + 42 ) ) / + 19 + - ( 78 ) + + - 92 - + 2 / + 11, + 75 AS col0
----
-251
75

query I rowsort
SELECT 37 * - 13 * 71
----
-34151

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT 72 * MAX( ALL + ( - 2 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-7694
SELECT 72 * MAX ( ALL + ( - 2 ) )
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT 25 * 30 + + - 53 + NULLIF ( + - MIN( DISTINCT + 23 ), + 25 * - 36 / - 78 ) * + CAST( - - 89 AS SIGNED ) + - - COUNT( * ) * + 80 * + COUNT( * )
----
-1270

skipif mysql # not compatible
query I rowsort label-7695
SELECT 25 * 30 + + - 53 + NULLIF ( + - MIN ( DISTINCT + 23 ), + 25 * - 36 / - 78 ) * + CAST ( - - 89 AS INTEGER ) + - - COUNT ( * ) * + 80 * + COUNT ( * )
----
-1270

query II rowsort
SELECT 52 + - 89 AS col1, - 9
----
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT ALL - 35 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 35 / + 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT 62 + + COUNT( * ) DIV - + ( + ( - 89 ) )
----
62

skipif mysql # not compatible
query I rowsort label-7698
SELECT 62 + + COUNT ( * ) / - + ( + ( - 89 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7699
SELECT 97 * + COUNT ( * )
----
97

query II rowsort
SELECT 71 * - 15, 73 AS col2
----
-1065
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7701
SELECT COUNT( - - 81 ) + - 29, CAST( NULL AS SIGNED ) + 28 AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT COUNT ( - - 81 ) + - 29, CAST ( NULL AS INTEGER ) + 28 AS col2
----
-28
NULL

query I rowsort
SELECT DISTINCT + 81 + - 43 - + 49
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7703
SELECT ALL ( + - 16 ) * 28 DIV 20 + - + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL ( + - 16 ) * 28 / 20 + - + COUNT ( * ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query III rowsort label-7704
SELECT COUNT( * ) + - COALESCE ( + 29, ( + + 68 ) * + + 20 * 77 ), 13 col1, + 89 AS col1
----
-28
13
89

skipif mysql # not compatible
query III rowsort label-7704
SELECT COUNT ( * ) + - COALESCE ( + 29, ( + + 68 ) * + + 20 * 77 ), 13 col1, + 89 AS col1
----
-28
13
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT 77 + + COUNT( * ) - ( + + CASE 88 WHEN 53 * + 90 THEN + 74 END ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT 77 + + COUNT ( * ) - ( + + CASE 88 WHEN 53 * + 90 THEN + 74 END ) + 42
----
NULL

query I rowsort
SELECT ALL 96 + + 12
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ( + NULLIF ( - COUNT( * ), - 4 ) ) + + 83
----
82

skipif mysql # not compatible
query I rowsort label-7707
SELECT ( + NULLIF ( - COUNT ( * ), - 4 ) ) + + 83
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL - COUNT( * ) + + 0 DIV 77 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - COUNT ( * ) + + 0 / 77 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + COUNT( * ) + - 4 * + - 8 + - 2 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( * ) + - 4 * + - 8 + - 2 AS col1
----
31

query I rowsort
SELECT DISTINCT 2 + + - 80
----
-78

query II rowsort
SELECT ALL + 93 * 2 AS col2, - 65
----
186
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT ALL CAST( NULL AS SIGNED ) + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL CAST ( NULL AS INTEGER ) + - 86 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 49 - + 64
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL ( + - 2 ) * + CAST( + - 31 AS SIGNED ) - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL ( + - 2 ) * + CAST ( + - 31 AS INTEGER ) - + COUNT ( * )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT + 14 DIV - 87 + - 33 * 30
----
-990

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 14 / - 87 + - 33 * 30
----
-990

onlyif mysql # DIV for integer division: 
query II rowsort label-7716
SELECT 64 * - 49 AS col1, + 21 DIV + NULLIF ( + + 18, - 25 * + 14 - 8 )
----
-3136
1

skipif mysql # not compatible
query II rowsort label-7716
SELECT 64 * - 49 AS col1, + 21 / + NULLIF ( + + 18, - 25 * + 14 - 8 )
----
-3136
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( * ) + + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( * ) + + 26 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + NULLIF ( COUNT( * ), + 51 * + + 1 ) - - 52 col2
----
53

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + NULLIF ( COUNT ( * ), + 51 * + + 1 ) - - 52 col2
----
53

query II rowsort
SELECT DISTINCT - 98 AS col0, + 61
----
-98
61

query I rowsort
SELECT 82 * 92 AS col2
----
7544

query I rowsort
SELECT 52 * 78
----
4056

query II rowsort
SELECT + 73 AS col1, 74 + - ( - 23 ) AS col2
----
73
97

query I rowsort
SELECT ALL - 40 * - 20
----
800

query I rowsort
SELECT 72 * - - 20 AS col2
----
1440

query II rowsort
SELECT + 84 AS col2, 51
----
84
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT ALL COUNT( * ) AS col0, - 47
----
1
-47

skipif mysql # not compatible
query II rowsort label-7726
SELECT ALL COUNT ( * ) AS col0, - 47
----
1
-47

query I rowsort
SELECT ALL - 31 + - 84 * + - 59 * - 10 * + 15 AS col2
----
-743431

query I rowsort
SELECT ALL + 77 + + - 95
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-7729
SELECT 35 AS col2, - 28 DIV + 71 col1
----
35
0

skipif mysql # not compatible
query II rowsort label-7729
SELECT 35 AS col2, - 28 / + 71 col1
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL MIN( ALL - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL MIN ( ALL - - 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT 87 DIV - 87 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7731
SELECT 87 / - 87 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT 22 + + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7732
SELECT 22 + + + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT - 8, + 89 * + - 31 * - COUNT( * ) + - COALESCE ( + + 7, 12, - - NULLIF ( + + 84, + 65 ) * + COUNT( * ) - + 6 * - + COALESCE ( - - 31, - MAX( 17 ) * COUNT( * ) + 29 ) * 76 + - 61 + - + 48 + + - COUNT( * ), - 36 ) AS col2
----
-8
2752

skipif mysql # not compatible
query II rowsort label-7733
SELECT - 8, + 89 * + - 31 * - COUNT ( * ) + - COALESCE ( + + 7, 12, - - NULLIF ( + + 84, + 65 ) * + COUNT ( * ) - + 6 * - + COALESCE ( - - 31, - MAX ( 17 ) * COUNT ( * ) + 29 ) * 76 + - 61 + - + 48 + + - COUNT ( * ), - 36 ) AS col2
----
-8
2752

query II rowsort
SELECT - + 84 AS col2, + 14
----
-84
14

query I rowsort
SELECT - 7 * - 37 + + + 49
----
308

query I rowsort
SELECT DISTINCT + 56 * 23 AS col1
----
1288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7737
SELECT DISTINCT - ( - COALESCE ( - 33, + - 81 ) ) * 27 * - 33 * + 11 + - 76 col2, 48 * + - CAST( NULL AS SIGNED )
----
323357
NULL

skipif mysql # not compatible
query II rowsort label-7737
SELECT DISTINCT - ( - COALESCE ( - 33, + - 81 ) ) * 27 * - 33 * + 11 + - 76 col2, 48 * + - CAST ( NULL AS INTEGER )
----
323357
NULL

query I rowsort
SELECT DISTINCT CASE - 86 WHEN + + 69 + 5 THEN NULL WHEN 74 * - - ( 21 ) THEN - 11 + - 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 56 + 37
----
93

query I rowsort
SELECT + ( - + 83 )
----
-83

query I rowsort
SELECT - + 82 + - 33 col0
----
-115

query I rowsort
SELECT - 23 * + + ( 42 ) AS col0
----
-966

query I rowsort
SELECT ALL - 60 * + 4 AS col1
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - ( - 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - ( - 85 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL 81 * MAX( - 82 )
----
-6642

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL 81 * MAX ( - 82 )
----
-6642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT + + 25 * + 16 + 49 + - MAX( DISTINCT + - COALESCE ( + NULLIF ( - 83, - 25 ), 67 ) ) * - 97 DIV COUNT( * ) + - 37 + 21 AS col0
----
8484

skipif mysql # not compatible
query I rowsort label-7746
SELECT + + 25 * + 16 + 49 + - MAX ( DISTINCT + - COALESCE ( + NULLIF ( - 83, - 25 ), 67 ) ) * - 97 / COUNT ( * ) + - 37 + 21 AS col0
----
8484

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL + - 20, + 56 * COUNT( * ) * - + 76 - - COUNT( * ) + - 40 + + 66 AS col0
----
-20
-4229

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL + - 20, + 56 * COUNT ( * ) * - + 76 - - COUNT ( * ) + - 40 + + 66 AS col0
----
-20
-4229

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT + + 99 * + + 66 * - 53 + + + 82 col1, - 20 * + ( COUNT( * ) ) - MIN( 48 )
----
-346220
-68

skipif mysql # not compatible
query II rowsort label-7748
SELECT + + 99 * + + 66 * - 53 + + + 82 col1, - 20 * + ( COUNT ( * ) ) - MIN ( 48 )
----
-346220
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-7749
SELECT DISTINCT 38 DIV - - NULLIF ( 25, + 14 ) AS col2, - 52
----
1
-52

skipif mysql # not compatible
query II rowsort label-7749
SELECT DISTINCT 38 / - - NULLIF ( 25, + 14 ) AS col2, - 52
----
1
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7750
SELECT - 64 * + + CAST( - + 42 AS SIGNED ) + + 50 AS col2, - ( - + 80 ) col2
----
2738
80

skipif mysql # not compatible
query II rowsort label-7750
SELECT - 64 * + + CAST ( - + 42 AS INTEGER ) + + 50 AS col2, - ( - + 80 ) col2
----
2738
80

query I rowsort
SELECT ALL 11 * ( + 92 )
----
1012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT + COUNT( * ) * - - CASE + + 87 WHEN AVG ( ALL - + 17 ) / - AVG ( - 80 ) + - 52 - - MIN( 76 ) - - - COALESCE ( - 31, + CAST( NULL AS SIGNED ) * - ( 25 ) + - - COALESCE ( 6, + + 64 + + ( + COUNT( * ) ) ) - ( - NULLIF ( - - 10, + 39 * + - 53 * - 97 + - 20 * 8 + + 39 * + 43 * + 36 ) ) + 48 * + 52 * + 27 - 83 * + 88 / NULLIF ( 91, + 98 ) ) THEN NULL WHEN - 70 THEN + 88 + + - COUNT( * ) - - COALESCE ( + 0, + 92 ) * + 11 + - + AVG ( DISTINCT 31 ) * 65 + 51 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT + COUNT ( * ) * - - CASE + + 87 WHEN AVG ( ALL - + 17 ) / - AVG ( - 80 ) + - 52 - - MIN ( 76 ) - - - COALESCE ( - 31, + CAST ( NULL AS INTEGER ) * - ( 25 ) + - - COALESCE ( 6, + + 64 + + ( + COUNT ( * ) ) ) - ( - NULLIF ( - - 10, + 39 * + - 53 * - 97 + - 20 * 8 + + 39 * + 43 * + 36 ) ) + 48 * + 52 * + 27 - 83 * + 88 / NULLIF ( 91, + 98 ) ) THEN NULL WHEN - 70 THEN + 88 + + - COUNT ( * ) - - COALESCE ( + 0, + 92 ) * + 11 + - + AVG ( DISTINCT 31 ) * 65 + 51 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT COUNT( * ) * - + ( - - COUNT( DISTINCT - - 38 ) ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7753
SELECT COUNT ( * ) * - + ( - - COUNT ( DISTINCT - - 38 ) ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7754
SELECT + 81 - CASE + + COUNT( ALL - - 11 ) WHEN 10 THEN ( - NULLIF ( - - 53, + - COUNT( * ) + + + 99 + + ( COUNT( * ) ) * - 39 / + - CAST( NULL AS DECIMAL ) * + 95 * - + 44 + CASE 30 WHEN - 92 * - MAX( ( - + 17 ) ) THEN + 1 END ) ) WHEN + + COUNT( * ) THEN + 54 ELSE NULL END
----
27

skipif mysql # not compatible
query I rowsort label-7754
SELECT + 81 - CASE + + COUNT ( ALL - - 11 ) WHEN 10 THEN ( - NULLIF ( - - 53, + - COUNT ( * ) + + + 99 + + ( COUNT ( * ) ) * - 39 / + - CAST ( NULL AS REAL ) * + 95 * - + 44 + CASE 30 WHEN - 92 * - MAX ( ( - + 17 ) ) THEN + 1 END ) ) WHEN + + COUNT ( * ) THEN + 54 ELSE NULL END
----
27

query I rowsort
SELECT + CASE - 76 WHEN + 13 THEN 76 - - 92 END AS col2
----
NULL

query I rowsort
SELECT ALL 75 * + 66 AS col2
----
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7757
SELECT ALL 95 * CASE - COUNT( * ) WHEN MIN( - 26 ) * + + COALESCE ( COALESCE ( - 99, + 78 + + 33 - + + 45 * + + 40 / 73 * + 56 ), + MIN( DISTINCT - 75 ) ) + 23 THEN + + 85 + SUM( ALL + ( + - 34 ) ) WHEN + 13 THEN 20 + 80 * + - 85 * + 61 END + 95 AS col0, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7757
SELECT ALL 95 * CASE - COUNT ( * ) WHEN MIN ( - 26 ) * + + COALESCE ( COALESCE ( - 99, + 78 + + 33 - + + 45 * + + 40 / 73 * + 56 ), + MIN ( DISTINCT - 75 ) ) + 23 THEN + + 85 + SUM ( ALL + ( + - 34 ) ) WHEN + 13 THEN 20 + 80 * + - 85 * + 61 END + 95 AS col0, + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT + CAST( NULL AS SIGNED ) / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT + CAST ( NULL AS INTEGER ) / 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL 45 * COUNT( * ) + - + COUNT( * ) * + - 82 + 31
----
158

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL 45 * COUNT ( * ) + - + COUNT ( * ) * + - 82 + 31
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT MAX( ALL - + NULLIF ( 88, + + 73 ) ), 88 AS col2
----
-88
88

skipif mysql # not compatible
query II rowsort label-7760
SELECT MAX ( ALL - + NULLIF ( 88, + + 73 ) ), 88 AS col2
----
-88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL 82 * + 65 + + - 24 + - COUNT( * )
----
5305

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL 82 * + 65 + + - 24 + - COUNT ( * )
----
5305

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT 0 * + COUNT( * ) * - - 80 + + 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7762
SELECT 0 * + COUNT ( * ) * - - 80 + + 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT COUNT( DISTINCT - 43 ) col1, COUNT( DISTINCT 59 ) * - 72 AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-7763
SELECT COUNT ( DISTINCT - 43 ) col1, COUNT ( DISTINCT 59 ) * - 72 AS col2
----
1
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL MIN( DISTINCT CASE + - 27 WHEN - 12 * - CAST( NULL AS SIGNED ) * + - 42 * + 72 + - 38 THEN + - 63 + 92 WHEN - 75 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL MIN ( DISTINCT CASE + - 27 WHEN - 12 * - CAST ( NULL AS INTEGER ) * + - 42 * + 72 + - 38 THEN + - 63 + 92 WHEN - 75 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT + CAST( NULL AS SIGNED ) + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT + CAST ( NULL AS INTEGER ) + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT DISTINCT - 65 * + 34 DIV COUNT( * ) + + 70 + + + 29 AS col0
----
-2111

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - 65 * + 34 / COUNT ( * ) + + 70 + + + 29 AS col0
----
-2111

query II rowsort
SELECT - 85 * - 22, + 31 AS col0
----
1870
31

query I rowsort
SELECT DISTINCT + 91 * - + ( - + 60 ) * 52 - + 0 AS col1
----
283920

query I rowsort
SELECT DISTINCT 20 + - 74
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7770
SELECT - 96 * 56 * - CAST( NULL AS SIGNED ) + + + 9, + ( 52 ) AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7770
SELECT - 96 * 56 * - CAST ( NULL AS INTEGER ) + + + 9, + ( 52 ) AS col2
----
NULL
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7771
SELECT ALL - ( COUNT( - - 4 ) ) - - CAST( - 78 AS SIGNED ) DIV - 98 + COUNT( * ) AS col1, - 37
----
0
-37

skipif mysql # not compatible
query II rowsort label-7771
SELECT ALL - ( COUNT ( - - 4 ) ) - - CAST ( - 78 AS INTEGER ) / - 98 + COUNT ( * ) AS col1, - 37
----
0
-37

query I rowsort
SELECT - + 46 + + + 31 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT DISTINCT + CASE 38 WHEN - - NULLIF ( COUNT( * ), - 88 ) * SUM( + 86 ) / + CAST( NULL AS SIGNED ) - + - 70 + - COUNT( * ) THEN - 15 END * - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + CASE 38 WHEN - - NULLIF ( COUNT ( * ), - 88 ) * SUM ( + 86 ) / + CAST ( NULL AS INTEGER ) - + - 70 + - COUNT ( * ) THEN - 15 END * - + 54
----
NULL

query I rowsort
SELECT + + 60 + - 54
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - COUNT( * ) + COUNT( * ) + - COUNT( * ) - + - 61 - - 46 * ( + 74 ) AS col1
----
3464

skipif mysql # not compatible
query I rowsort label-7775
SELECT - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) - + - 61 - - 46 * ( + 74 ) AS col1
----
3464

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT + COUNT( 4 ) col1, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-7776
SELECT + COUNT ( 4 ) col1, 80
----
1
80

query I rowsort
SELECT ( ( - 48 ) )
----
-48

query I rowsort
SELECT - 55 + 18 + 63
----
26

query I rowsort
SELECT ALL - 75 - 43 AS col0
----
-118

query I rowsort
SELECT - 98 * + 66 AS col0
----
-6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-7781
SELECT ALL + - 38 DIV 81 * + 92 DIV 34 AS col1, + 14 col0, COUNT( * ) - ( - 99 ) * + CASE + 87 WHEN + + AVG ( ALL 65 ) THEN NULL WHEN 41 * - CAST( - 13 AS SIGNED ) + 6 DIV ( ( + + CASE + ( + NULLIF ( - + 25, 87 ) ) WHEN + ( + 73 ) * + - ( 91 ) * MAX( + + 76 ) THEN + - 11 * + 77 WHEN - + 54 THEN NULL WHEN + 46 THEN NULL ELSE COUNT( * ) + 12 - - 70 DIV - 28 + ( - 97 ) - + COUNT( * ) * - - CAST( NULL AS DECIMAL ) END ) ) * 9 * 69 THEN + + 40 + + + AVG ( ALL - 93 ) + + + MIN( DISTINCT + 77 ) * 33 * + 80 WHEN + NULLIF ( + 51, CAST( NULL AS DECIMAL ) + + 63 ) + CAST( NULL AS SIGNED ) THEN 38 ELSE NULL END + NULLIF ( - CASE + COUNT( * ) WHEN + 86 THEN - MAX( - 38 ) + MIN( 9 ) * - 63 WHEN 57 * - 34 THEN NULL END + + 48, - COALESCE ( 80, - 6 ) DIV + 85 ) * ( 45 )
----
0
14
NULL

skipif mysql # not compatible
query III rowsort label-7781
SELECT ALL + - 38 / 81 * + 92 / 34 AS col1, + 14 col0, COUNT ( * ) - ( - 99 ) * + CASE + 87 WHEN + + AVG ( ALL 65 ) THEN NULL WHEN 41 * - CAST ( - 13 AS INTEGER ) + 6 / ( ( + + CASE + ( + NULLIF ( - + 25, 87 ) ) WHEN + ( + 73 ) * + - ( 91 ) * MAX ( + + 76 ) THEN + - 11 * + 77 WHEN - + 54 THEN NULL WHEN + 46 THEN NULL ELSE COUNT ( * ) + 12 - - 70 / - 28 + ( - 97 ) - + COUNT ( * ) * - - CAST ( NULL AS REAL ) END ) ) * 9 * 69 THEN + + 40 + + + AVG ( ALL - 93 ) + + + MIN ( DISTINCT + 77 ) * 33 * + 80 WHEN + NULLIF ( + 51, CAST ( NULL AS REAL ) + + 63 ) + CAST ( NULL AS INTEGER ) THEN 38 ELSE NULL END + NULLIF ( - CASE + COUNT ( * ) WHEN + 86 THEN - MAX ( - 38 ) + MIN ( 9 ) * - 63 WHEN 57 * - 34 THEN NULL END + + 48, - COALESCE ( 80, - 6 ) / + 85 ) * ( 45 )
----
0
14
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT - COUNT( * ) DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COUNT ( * ) / - - 67
----
0

query II rowsort
SELECT DISTINCT + 83 * - COALESCE ( - 1, + + 54 ), 45 AS col2
----
83
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL + + MAX( + 45 ) * - - 94
----
4230

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + + MAX ( + 45 ) * - - 94
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - + 45 + - 26 - - + 61 + + COUNT( DISTINCT - NULLIF ( - 57, - 41 * 49 * + 38 * - 76 ) ) * - + 12
----
-22

skipif mysql # not compatible
query I rowsort label-7785
SELECT - + 45 + - 26 - - + 61 + + COUNT ( DISTINCT - NULLIF ( - 57, - 41 * 49 * + 38 * - 76 ) ) * - + 12
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT ALL + + 46 DIV COUNT( * ) DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + + 46 / COUNT ( * ) / + 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + SUM( DISTINCT 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7787
SELECT + SUM ( DISTINCT 80 ) AS col1
----
80

query I rowsort
SELECT - + 53 * 23 AS col0
----
-1219

query I rowsort
SELECT DISTINCT + + 34 * 85 - - 94
----
2984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7790
SELECT 66 / CASE + NULLIF ( - 45, MAX( 97 ) ) WHEN + ( 83 ) THEN 41 END + + 73 AS col2, - CAST( NULL AS SIGNED ) * - - MIN( DISTINCT 6 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7790
SELECT 66 / CASE + NULLIF ( - 45, MAX ( 97 ) ) WHEN + ( 83 ) THEN 41 END + + 73 AS col2, - CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT 6 ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT DISTINCT 54 DIV - - 46 + - - ( - - 87 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT 54 / - - 46 + - - ( - - 87 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + ( + + COUNT( * ) ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-7792
SELECT + ( + + COUNT ( * ) ) * + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7793
SELECT ALL CASE 75 WHEN - 37 THEN CAST( + + 15 AS SIGNED ) WHEN + - CAST( NULL AS SIGNED ) THEN - MAX( ALL - 90 ) * + CAST( - - 22 AS SIGNED ) END / - 34 + - 41 - - 85 * + 27 * 8 AS col2, 55 col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7793
SELECT ALL CASE 75 WHEN - 37 THEN CAST ( + + 15 AS INTEGER ) WHEN + - CAST ( NULL AS INTEGER ) THEN - MAX ( ALL - 90 ) * + CAST ( - - 22 AS INTEGER ) END / - 34 + - 41 - - 85 * + 27 * 8 AS col2, 55 col1
----
NULL
55

query II rowsort
SELECT ALL + 52 AS col0, + 33 col2
----
52
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT DISTINCT + 48 / 63 + CAST( NULL AS SIGNED ) * + - 80 + + - 63 + + 31 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + 48 / 63 + CAST ( NULL AS INTEGER ) * + - 80 + + - 63 + + 31 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7796
SELECT DISTINCT + CAST( NULL AS SIGNED ), NULLIF ( + 68, + + 47 ) AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-7796
SELECT DISTINCT + CAST ( NULL AS INTEGER ), NULLIF ( + 68, + + 47 ) AS col1
----
NULL
68

query I rowsort
SELECT ( - + ( ( + NULLIF ( 94, + ( + + 21 ) ) ) ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7798
SELECT - ( 1 ) DIV NULLIF ( COUNT( * ), + MAX( - 42 ) + - + 36 - - COALESCE ( + 53, 73 ) * - 46 ) DIV - 30 + - - 32 - - 30 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7798
SELECT - ( 1 ) / NULLIF ( COUNT ( * ), + MAX ( - 42 ) + - + 36 - - COALESCE ( + 53, 73 ) * - 46 ) / - 30 + - - 32 - - 30 AS col1
----
62

query I rowsort
SELECT ( 95 ) * + + 59 * 86 * 10 - + ( 40 )
----
4820260

query I rowsort
SELECT + 9 + - NULLIF ( + 53, - - 55 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL ( - + 93 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL ( - + 93 ) * COUNT ( * )
----
-93

query I rowsort
SELECT ALL + 5 * + 37 AS col0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT ALL - 71 AS col2, + ( + + CASE + - 46 WHEN - + 66 * + 28 + + - 43 THEN NULL WHEN + 18 THEN - + CASE + 40 WHEN 78 * + + COALESCE ( - 76, - + ( - 94 ) ) THEN - - 15 + - + 53 * 12 / COUNT( * ) WHEN + 86 THEN NULL ELSE NULL END ELSE NULL END ) + - + 71 col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL - 71 AS col2, + ( + + CASE + - 46 WHEN - + 66 * + 28 + + - 43 THEN NULL WHEN + 18 THEN - + CASE + 40 WHEN 78 * + + COALESCE ( - 76, - + ( - 94 ) ) THEN - - 15 + - + 53 * 12 / COUNT ( * ) WHEN + 86 THEN NULL ELSE NULL END ELSE NULL END ) + - + 71 col1
----
-71
NULL

query I rowsort
SELECT DISTINCT 20 * - 6
----
-120

query I rowsort
SELECT DISTINCT 79 - + 28 col1
----
51

query II rowsort
SELECT ALL 5 AS col2, 96
----
5
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7807
SELECT DISTINCT 56 AS col1, MAX( - - 59 ) * + + 31 + 51
----
56
1880

skipif mysql # not compatible
query II rowsort label-7807
SELECT DISTINCT 56 AS col1, MAX ( - - 59 ) * + + 31 + 51
----
56
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT NULLIF ( - 45, - COUNT( * ) ) - - 56
----
11

skipif mysql # not compatible
query I rowsort label-7808
SELECT NULLIF ( - 45, - COUNT ( * ) ) - - 56
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT 6 DIV - ( 85 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT 6 / - ( 85 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - MAX( + 76 ) * - 23 + + SUM( DISTINCT 46 ) col2
----
1794

skipif mysql # not compatible
query I rowsort label-7810
SELECT - MAX ( + 76 ) * - 23 + + SUM ( DISTINCT 46 ) col2
----
1794

query I rowsort
SELECT 50 * - 52
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ( ( CASE 3 WHEN + MAX( DISTINCT 54 ) * + 92 THEN + AVG ( DISTINCT + 93 ) + - 22 * - 5 ELSE NULL END ) ) * CASE + COUNT( * ) WHEN + 80 * - 44 THEN NULL ELSE - 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ( ( CASE 3 WHEN + MAX ( DISTINCT 54 ) * + 92 THEN + AVG ( DISTINCT + 93 ) + - 22 * - 5 ELSE NULL END ) ) * CASE + COUNT ( * ) WHEN + 80 * - 44 THEN NULL ELSE - 48 END AS col2
----
NULL

query I rowsort
SELECT ALL + 43 * + 54
----
2322

query I rowsort
SELECT ALL ( - ( + 36 ) ) * + 13
----
-468

query I rowsort
SELECT 66 * ( 15 ) AS col2
----
990

query I rowsort
SELECT ALL - 80 + 31
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT COUNT( * ) + CASE 38 WHEN 42 THEN + 19 + COUNT( * ) ELSE + ( + 81 ) END
----
82

skipif mysql # not compatible
query I rowsort label-7817
SELECT COUNT ( * ) + CASE 38 WHEN 42 THEN + 19 + COUNT ( * ) ELSE + ( + 81 ) END
----
82

query I rowsort
SELECT 82 - 55
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT 56 + COUNT( * ) * - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7819
SELECT 56 + COUNT ( * ) * - 57 AS col0
----
-1

query I rowsort
SELECT 91 * - 77 AS col0
----
-7007

query I rowsort
SELECT ALL 58 + + 27 * 15
----
463

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT DISTINCT - 90 DIV 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - 90 / 56 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT + COUNT( * ) + + 87 col0
----
88

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + COUNT ( * ) + + 87 col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL - 8 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 8 / + 67
----
0

query I rowsort
SELECT ALL + 17 + 18 * + 59 AS col1
----
1079

query I rowsort
SELECT ALL + 8 * 88 AS col2
----
704

query I rowsort
SELECT DISTINCT + 36 + - 58 AS col0
----
-22

query I rowsort
SELECT 71 * 71
----
5041

query I rowsort
SELECT 7 * 82 AS col1
----
574

query I rowsort
SELECT ALL - 72 * 41
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL + COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + COUNT ( * ) + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + ( + 22 ) * COUNT( * ) + 12 * + 28 AS col1
----
358

skipif mysql # not compatible
query I rowsort label-7832
SELECT + ( + 22 ) * COUNT ( * ) + 12 * + 28 AS col1
----
358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT - CAST( + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - CAST ( + 1 AS INTEGER )
----
-1

query I rowsort
SELECT ALL + 18 - 72 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT - CASE 49 WHEN - 51 THEN + 8 * 85 ELSE + ( + COUNT( * ) ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - CASE 49 WHEN - 51 THEN + 8 * 85 ELSE + ( + COUNT ( * ) ) END col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL COUNT( * ) - - 76
----
77

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( * ) - - 76
----
77

query I rowsort
SELECT DISTINCT 2 * + 8
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT 19 * + CAST( NULL AS SIGNED ) + - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT 19 * + CAST ( NULL AS INTEGER ) + - 89 AS col1
----
NULL

query I rowsort
SELECT ALL 20 * 84
----
1680

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 67, + 9 - 66 * 99 ) ) AS col1
----
67

query I rowsort
SELECT 7 + + 74
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT SUM( DISTINCT + 26 ) + 16 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7842
SELECT SUM ( DISTINCT + 26 ) + 16 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT - - 5 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - - 5 * - COUNT ( * )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT + 80 DIV + 75
----
1

skipif mysql # not compatible
query I rowsort label-7844
SELECT + 80 / + 75
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL - MAX( DISTINCT + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - MAX ( DISTINCT + 78 ) AS col0
----
-78

query I rowsort
SELECT - 89 + - 0 * - 72
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT ALL - + CASE + MAX( + CAST( NULL AS SIGNED ) ) WHEN - 90 THEN NULL ELSE - 22 - 53 * 95 END * - 6
----
-30342

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - + CASE + MAX ( + CAST ( NULL AS INTEGER ) ) WHEN - 90 THEN NULL ELSE - 22 - 53 * 95 END * - 6
----
-30342

query I rowsort
SELECT ALL + + 92 * - 0 AS col1
----
0

query I rowsort
SELECT 77 + + ( 59 )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT - COUNT( * ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT - COUNT ( * ) / 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT 23 + + ( COUNT( * ) + 2 * MAX( ALL 57 * 22 ) ) AS col2
----
2532

skipif mysql # not compatible
query I rowsort label-7851
SELECT 23 + + ( COUNT ( * ) + 2 * MAX ( ALL 57 * 22 ) ) AS col2
----
2532

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL MAX( DISTINCT 14 ) + - 13 * 21 AS col2
----
-259

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL MAX ( DISTINCT 14 ) + - 13 * 21 AS col2
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - 56 * MAX( DISTINCT + 72 + 24 ) AS col0
----
-5376

skipif mysql # not compatible
query I rowsort label-7853
SELECT - 56 * MAX ( DISTINCT + 72 + 24 ) AS col0
----
-5376

query I rowsort
SELECT - ( + 80 ) + 32 AS col0
----
-48

query I rowsort
SELECT ALL 0 + - 4 * 89
----
-356

query I rowsort
SELECT DISTINCT 4 + - 57 col2
----
-53

query I rowsort
SELECT + 96 * - 32
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL - ( - ( COUNT( * ) ) ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - ( - ( COUNT ( * ) ) ) + 0
----
1

query I rowsort
SELECT DISTINCT 71 + 46 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT COALESCE ( 6, - MAX( + 30 ) DIV - 85 ) * 93 AS col2
----
558

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT COALESCE ( 6, - MAX ( + 30 ) / - 85 ) * 93 AS col2
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT ALL + 49 + + 33 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + 49 + + 33 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - COUNT( + ( - 29 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7862
SELECT - COUNT ( + ( - 29 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT ALL 11 * 22 DIV 97 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 11 * 22 / 97 AS col0
----
2

query I rowsort
SELECT 91 * 42 * - 34
----
-129948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT - SUM( ALL + CAST( - 14 AS SIGNED ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7865
SELECT - SUM ( ALL + CAST ( - 14 AS INTEGER ) ) AS col1
----
14

query I rowsort
SELECT ALL 27 * - 72 + 6
----
-1938

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT + 39 DIV 27 - - 93 * - 14
----
-1301

skipif mysql # not compatible
query I rowsort label-7867
SELECT + 39 / 27 - - 93 * - 14
----
-1301

query I rowsort
SELECT 81 * + 12 * 35 AS col0
----
34020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7869
SELECT - MAX( - + 12 ) DIV + 64 + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7869
SELECT - MAX ( - + 12 ) / + 64 + 36 AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT ALL + CASE - 96 WHEN AVG ( ALL - 1 ) THEN + 3 + + ( + NULLIF ( - CAST( 83 AS SIGNED ), - 86 + COALESCE ( - ( 29 ) - + 26, - 1 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL + CASE - 96 WHEN AVG ( ALL - 1 ) THEN + 3 + + ( + NULLIF ( - CAST ( 83 AS INTEGER ), - 86 + COALESCE ( - ( 29 ) - + 26, - 1 ) ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 56 * 80 AS col1
----
-4480

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT ALL - NULLIF ( + ( - 36 ), - 85 ) DIV - 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - NULLIF ( + ( - 36 ), - 85 ) / - 26 AS col2
----
-1

query I rowsort
SELECT - 32 * - 98 AS col1
----
3136

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT DISTINCT 97 DIV + - 83
----
-1

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT 97 / + - 83
----
-1

query I rowsort
SELECT DISTINCT + ( + - 31 ) * 83 col2
----
-2573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL - 14 * NULLIF ( + 13, COUNT( * ) * + CAST( 15 AS SIGNED ) + - COALESCE ( 77, 2 * 25 ) * - 65 )
----
-182

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - 14 * NULLIF ( + 13, COUNT ( * ) * + CAST ( 15 AS INTEGER ) + - COALESCE ( 77, 2 * 25 ) * - 65 )
----
-182

query I rowsort
SELECT - 26 * - 4
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL - 42 * + - NULLIF ( 86, CAST( NULL AS SIGNED ) + 84 )
----
3612

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - 42 * + - NULLIF ( 86, CAST ( NULL AS INTEGER ) + 84 )
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT - 2 * 19 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-7879
SELECT - 2 * 19 * + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7880
SELECT - 73 - ( - COUNT( * ) ) + 68 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT - 73 - ( - COUNT ( * ) ) + 68 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + + CASE + 64 WHEN + COUNT( * ) * + 12 THEN 47 WHEN 20 THEN + 41 + 79 ELSE - COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7881
SELECT + + CASE + 64 WHEN + COUNT ( * ) * + 12 THEN 47 WHEN 20 THEN + 41 + 79 ELSE - COUNT ( * ) END AS col2
----
-1

query I rowsort
SELECT - + 67 + + 20
----
-47

query I rowsort
SELECT - - 98 * - 53 col1
----
-5194

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT + MAX( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT + MAX ( + 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7885
SELECT DISTINCT - + 2 * + - 5 / - CASE 68 WHEN 29 + CASE + CASE + ( + 91 ) WHEN - 23 - 39 THEN COALESCE ( + 54, + 25 * - COUNT( * ) - + NULLIF ( + 37, 12 * - 15 ) * - 27 ) / 23 + - 8 / - COUNT( * ) ELSE COALESCE ( 28, - 39 * - 14 ) + NULLIF ( 85, 21 * + COUNT( * ) ) END + - 12 WHEN - 36 THEN - CAST( + 61 AS DECIMAL ) END * + 31 THEN + 17 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - + 2 * + - 5 / - CASE 68 WHEN 29 + CASE + CASE + ( + 91 ) WHEN - 23 - 39 THEN COALESCE ( + 54, + 25 * - COUNT ( * ) - + NULLIF ( + 37, 12 * - 15 ) * - 27 ) / 23 + - 8 / - COUNT ( * ) ELSE COALESCE ( 28, - 39 * - 14 ) + NULLIF ( 85, 21 * + COUNT ( * ) ) END + - 12 WHEN - 36 THEN - CAST ( + 61 AS REAL ) END * + 31 THEN + 17 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL + + 31 + + - CAST( 21 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + + 31 + + - CAST ( 21 AS INTEGER ) AS col0
----
10

query I rowsort
SELECT DISTINCT - - 2 + 8 * 41
----
330

query I rowsort
SELECT ALL + 52 + - - 81 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT - - COUNT( * ) - + - 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7889
SELECT - - COUNT ( * ) - + - 89 AS col2
----
90

query I rowsort
SELECT - + 71 * + 80 + 48 * 4 AS col1
----
-5488

query I rowsort
SELECT + + 66 * NULLIF ( + 32, - 22 * 16 ) * 97
----
204864

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL + 27 * - NULLIF ( CASE + 74 WHEN 45 THEN + 57 * + 46 + 65 END, 21 * COALESCE ( 12 / - 37, 18, - COUNT( * ) ) + - ( 18 + - 64 ) * 33 ) + - 71 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + 27 * - NULLIF ( CASE + 74 WHEN 45 THEN + 57 * + 46 + 65 END, 21 * COALESCE ( 12 / - 37, 18, - COUNT ( * ) ) + - ( 18 + - 64 ) * 33 ) + - 71 * 88
----
NULL

query I rowsort
SELECT ALL 20 + + + 7 AS col1
----
27

query I rowsort
SELECT - 90 - + - 64 AS col0
----
-26

query I rowsort
SELECT ALL 34 + - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT + 78 + + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + 78 + + - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - 35 * - - 71 AS col1
----
-2485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col1
----
1

query II rowsort
SELECT 35, + 27 * 64 AS col2
----
35
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - 10 + + 68 + - COUNT( * ) * 38 * 69
----
-2564

skipif mysql # not compatible
query I rowsort label-7900
SELECT - 10 + + 68 + - COUNT ( * ) * 38 * 69
----
-2564

query I rowsort
SELECT + 63 + - - 20 + + 17 * - 78
----
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT + 69 * ( + COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7902
SELECT + 69 * ( + COUNT ( * ) ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT + 80 * COALESCE ( 3, - 79 + + COALESCE ( COALESCE ( - ( - 34 ), 3 DIV - 52 + + 20, 56, 37 ), 65 ), + 94 * - 81 - MIN( - 4 - + 25 ) ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-7903
SELECT + 80 * COALESCE ( 3, - 79 + + COALESCE ( COALESCE ( - ( - 34 ), 3 / - 52 + + 20, 56, 37 ), 65 ), + 94 * - 81 - MIN ( - 4 - + 25 ) ) AS col2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT + 39 + + 88 DIV 46 col2
----
40

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 39 + + 88 / 46 col2
----
40

query II rowsort
SELECT ALL + 71 AS col1, 68 AS col0
----
71
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7906
SELECT ALL + 42 AS col2, - 44 * + ( CAST( NULL AS SIGNED ) ) * - 79 AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL + 42 AS col2, - 44 * + ( CAST ( NULL AS INTEGER ) ) * - 79 AS col2
----
42
NULL

query I rowsort
SELECT ALL 27 * - 86 * 5 AS col1
----
-11610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT 18 * + 49 + - + MAX( 33 ) DIV CASE 1 WHEN 86 THEN COALESCE ( + 95, 54 ) ELSE + NULLIF ( 99, 14 ) END AS col0
----
882

skipif mysql # not compatible
query I rowsort label-7908
SELECT 18 * + 49 + - + MAX ( 33 ) / CASE 1 WHEN 86 THEN COALESCE ( + 95, 54 ) ELSE + NULLIF ( 99, 14 ) END AS col0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL COUNT( * ) * 9 * - 43
----
-387

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL COUNT ( * ) * 9 * - 43
----
-387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT CAST( - + COUNT( - + 76 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7910
SELECT CAST ( - + COUNT ( - + 76 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT 56 * + - COUNT( - 44 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT 56 * + - COUNT ( - 44 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + CASE + 88 WHEN 39 THEN 48 WHEN + SUM( DISTINCT - ( - 94 ) ) THEN 3 / 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT + CASE + 88 WHEN 39 THEN 48 WHEN + SUM ( DISTINCT - ( - 94 ) ) THEN 3 / 82 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT + CAST( + - 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7913
SELECT + CAST ( + - 54 AS INTEGER ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + 85 + - COUNT( * ) * - 95 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 85 + - COUNT ( * ) * - 95 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL MIN( ALL + + ( + 17 ) ) * 77
----
1309

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL MIN ( ALL + + ( + 17 ) ) * 77
----
1309

query I rowsort
SELECT ( - 79 ) col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT - 2 * + + 22 * + CASE + 26 WHEN - ( 24 ) THEN - 72 * CAST( NULL AS SIGNED ) ELSE NULL END * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 2 * + + 22 * + CASE + 26 WHEN - ( 24 ) THEN - 72 * CAST ( NULL AS INTEGER ) ELSE NULL END * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ( + MIN( ALL 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-7918
SELECT ( + MIN ( ALL 22 ) )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT + ( - 13 ) DIV - - 29 - - 85 * + ( 61 )
----
5185

skipif mysql # not compatible
query I rowsort label-7919
SELECT + ( - 13 ) / - - 29 - - 85 * + ( 61 )
----
5185

query I rowsort
SELECT ALL + 26 * 66 + - 72 AS col0
----
1644

query I rowsort
SELECT + 83 * - 34 - - 5
----
-2817

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - ( - 87 ) + CASE - 96 WHEN + 44 THEN 48 + 51 WHEN CASE 47 WHEN 7 THEN + COUNT( * ) END * - 36 + 91 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT - ( - 87 ) + CASE - 96 WHEN + 44 THEN 48 + 51 WHEN CASE 47 WHEN 7 THEN + COUNT ( * ) END * - 36 + 91 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT - - 61 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT - - 61 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL - CASE + COALESCE ( + - COUNT( ALL 92 ), 9 ) WHEN + MAX( + 43 ) * 35 THEN + 81 WHEN + 53 * 37 THEN NULL END * + ( + ( - 32 ) * - NULLIF ( - 44 + + 38, 89 ) + - 79 ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - CASE + COALESCE ( + - COUNT ( ALL 92 ), 9 ) WHEN + MAX ( + 43 ) * 35 THEN + 81 WHEN + 53 * 37 THEN NULL END * + ( + ( - 32 ) * - NULLIF ( - 44 + + 38, 89 ) + - 79 ) + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - + CASE - 60 WHEN - 14 + ( + 99 + 72 ) THEN ( 95 ) + 39 END * COUNT( ALL - ( - 94 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT - + CASE - 60 WHEN - 14 + ( + 99 + 72 ) THEN ( 95 ) + 39 END * COUNT ( ALL - ( - 94 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL COALESCE ( - 88, ( - 95 ), + 0 ) * + COUNT( * ) + 96 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COALESCE ( - 88, ( - 95 ), + 0 ) * + COUNT ( * ) + 96 AS col0
----
8

query I rowsort
SELECT - 91 * 31 + - 93 AS col2
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-7928
SELECT + COUNT ( * ) + - 52
----
-51

query I rowsort
SELECT + 96 * + - 72 - 63 + 80 AS col1
----
-6895

query I rowsort
SELECT DISTINCT + + ( 72 ) * - 58 - - 85
----
-4091

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL - + 25 * - + COUNT( ALL - 11 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL - + 25 * - + COUNT ( ALL - 11 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT - CAST( NULL AS SIGNED ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT - CAST ( NULL AS INTEGER ) * + 19 AS col1
----
NULL

query I rowsort
SELECT - - 62 + 47
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT ALL - 96 * - 41 + + 73 DIV COUNT( * )
----
4009

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - 96 * - 41 + + 73 / COUNT ( * )
----
4009

query I rowsort
SELECT - + 34 + + CASE - 58 WHEN - 57 THEN + 37 + 51 WHEN 39 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7936
SELECT ALL 55 AS col1, + COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-7936
SELECT ALL 55 AS col1, + COUNT ( * )
----
55
1

query I rowsort
SELECT - + 85 + + - 75
----
-160

query I rowsort
SELECT - - 10 + - 82 + - 80 + 1
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT - COUNT( * ) * - 37, 58 + SUM( ALL + 43 ) AS col1
----
37
101

skipif mysql # not compatible
query II rowsort label-7939
SELECT - COUNT ( * ) * - 37, 58 + SUM ( ALL + 43 ) AS col1
----
37
101

query I rowsort
SELECT - 16 * - 5
----
80

query I rowsort
SELECT 16 + 31 * 64 * - 55 * + 57 AS col1
----
-6219824

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT 97 * - 69 * - CASE 70 WHEN + ( - COUNT( * ) ) THEN 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT 97 * - 69 * - CASE 70 WHEN + ( - COUNT ( * ) ) THEN 42 END
----
NULL

query I rowsort
SELECT DISTINCT CASE 66 WHEN + 97 THEN 7 ELSE NULL END * 90 col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 53, 98 ) * 63 * 17 - 68 AS col2
----
-56831

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT ALL + 59 * 89 DIV 78 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + 59 * 89 / 78 AS col1
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7946
SELECT ALL - 87 * - 54, - 27 + + 91 * - ( + 43 * CASE 2 WHEN - AVG ( ALL + 65 ) * 61 THEN ( + 29 ) DIV 87 ELSE + 62 END ) AS col2
----
4698
-242633

skipif mysql # not compatible
query II rowsort label-7946
SELECT ALL - 87 * - 54, - 27 + + 91 * - ( + 43 * CASE 2 WHEN - AVG ( ALL + 65 ) * 61 THEN ( + 29 ) / 87 ELSE + 62 END ) AS col2
----
4698
-242633

query I rowsort
SELECT 96 * 94 * - 43 AS col1
----
-388032

query I rowsort
SELECT COALESCE ( 98, - 73 ) * - 62 AS col1
----
-6076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7949
SELECT - CAST( - 11 AS SIGNED ) DIV + 31 - + MIN( DISTINCT 57 ) + + 2
----
-55

skipif mysql # not compatible
query I rowsort label-7949
SELECT - CAST ( - 11 AS INTEGER ) / + 31 - + MIN ( DISTINCT 57 ) + + 2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT DISTINCT NULLIF ( - 14, + - 89 ) + - CAST( 31 AS SIGNED ) * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT NULLIF ( - 14, + - 89 ) + - CAST ( 31 AS INTEGER ) * COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL 37 + + + CASE 86 WHEN 49 * 12 THEN + SUM( DISTINCT + 52 ) + 78 END + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL 37 + + + CASE 86 WHEN 49 * 12 THEN + SUM ( DISTINCT + 52 ) + 78 END + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL - + COALESCE ( + 61, COUNT( ALL + + 17 ) * 0 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - + COALESCE ( + 61, COUNT ( ALL + + 17 ) * 0 ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT + CASE MAX( ALL 30 ) WHEN + 4 * + 38 THEN CAST( + 88 AS SIGNED ) * 19 END * + 86 + - 6 * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT + CASE MAX ( ALL 30 ) WHEN + 4 * + 38 THEN CAST ( + 88 AS INTEGER ) * 19 END * + 86 + - 6 * 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT 25 + - COUNT( * ) * 75 * + 39 + - 11
----
-2911

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT 25 + - COUNT ( * ) * 75 * + 39 + - 11
----
-2911

query II rowsort
SELECT ALL + 26 + + - 9 col1, 55 + 99 + 67
----
17
221

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + - NULLIF ( 4, - MIN( ALL 89 ) / + 35 )
----
-4

skipif mysql # not compatible
query I rowsort label-7956
SELECT + - NULLIF ( 4, - MIN ( ALL 89 ) / + 35 )
----
-4

query I rowsort
SELECT + 27 + + 91 + 93 AS col2
----
211

query I rowsort
SELECT 21 * + 26 - 44 * + 62
----
-2182

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT - SUM( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - SUM ( 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7960
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 71 AS col2, CAST( + + COUNT( * ) AS SIGNED )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7960
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 71 AS col2, CAST ( + + COUNT ( * ) AS INTEGER )
----
NULL
1

query I rowsort
SELECT DISTINCT + 33 * + ( - + 87 )
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL - SUM( - 90 ) + COALESCE ( + + ( COALESCE ( + 89, - 18 ) ), + ( 97 ) ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - SUM ( - 90 ) + COALESCE ( + + ( COALESCE ( + 89, - 18 ) ), + ( 97 ) ) AS col0
----
179

query I rowsort
SELECT ALL + NULLIF ( 37, - 15 * - 80 / - ( + 65 ) ) - + 0
----
37

query I rowsort
SELECT 0 * - + ( + 10 )
----
0

query I rowsort
SELECT ALL ( + 87 ) col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT - COALESCE ( + COUNT( * ), + - 71 - - 86, + 74 * 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-7966
SELECT - COALESCE ( + COUNT ( * ), + - 71 - - 86, + 74 * 74 )
----
-1

query I rowsort
SELECT ALL 55 - 3 + - - 61 + + 51
----
164

query II rowsort
SELECT + 99 * 75, 76 col2
----
7425
76

query I rowsort
SELECT 10 - - 51
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT 19 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT 19 / + - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7971
SELECT ALL - COUNT( * ) * + COUNT( * ) DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL - COUNT ( * ) * + COUNT ( * ) / - 75 AS col1
----
0

query I rowsort
SELECT 90 * + - 23 col1
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT 6 - + 44 - + + 57 * ( - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-7973
SELECT 6 - + 44 - + + 57 * ( - COUNT ( * ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7974
SELECT DISTINCT SUM( + 68 ) * - + 61 col2, CAST( - COALESCE ( 69, + 12 * - 60 ) AS SIGNED ) - - 91 * - 62 AS col1
----
-4148
-5711

skipif mysql # not compatible
query II rowsort label-7974
SELECT DISTINCT SUM ( + 68 ) * - + 61 col2, CAST ( - COALESCE ( 69, + 12 * - 60 ) AS INTEGER ) - - 91 * - 62 AS col1
----
-4148
-5711

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT 6 + + 32 + 34 * 90 DIV - 91 + + NULLIF ( + 21 + 98, - 50 + + 72 * 58 ) * 80
----
9525

skipif mysql # not compatible
query I rowsort label-7975
SELECT 6 + + 32 + 34 * 90 / - 91 + + NULLIF ( + 21 + 98, - 50 + + 72 * 58 ) * 80
----
9525

query II rowsort
SELECT ALL 34 AS col1, 54 AS col0
----
34
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL + NULLIF ( - COUNT( * ), COUNT( * ) * + - COUNT( ALL - 31 ) ) + MAX( 6 + 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + NULLIF ( - COUNT ( * ), COUNT ( * ) * + - COUNT ( ALL - 31 ) ) + MAX ( 6 + 7 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT 15 + + - AVG ( ALL + 6 ) / - + CAST( NULL AS SIGNED ) + + 8 - 34 * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT 15 + + - AVG ( ALL + 6 ) / - + CAST ( NULL AS INTEGER ) + + 8 - 34 * + 87 AS col0
----
NULL

query I rowsort
SELECT 25 + 4 + - 14 col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7980
SELECT ALL COUNT( * ) AS col1, - COALESCE ( + + CAST( - 32 AS SIGNED ), ( - 50 ) * - 15 ) AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-7980
SELECT ALL COUNT ( * ) AS col1, - COALESCE ( + + CAST ( - 32 AS INTEGER ), ( - 50 ) * - 15 ) AS col2
----
1
32

query I rowsort
SELECT ALL + 92 + 58
----
150

query I rowsort
SELECT ALL COALESCE ( - + 70, - 96 ) * + 98 + + 57 AS col2
----
-6803

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT + 81 * 56 DIV + 48 + 66 + - 75
----
85

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + 81 * 56 / + 48 + 66 + - 75
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - MIN( - 65 ) * CASE + 39 WHEN + + 65 + - 52 THEN 10 + 22 WHEN + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT - MIN ( - 65 ) * CASE + 39 WHEN + + 65 + - 52 THEN 10 + 22 WHEN + 48 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT 70 * + COUNT( * ) - - + NULLIF ( + 15, + - 92 ) - + 77 * COUNT( 29 ) + - MAX( 1 ) * 6 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT 70 * + COUNT ( * ) - - + NULLIF ( + 15, + - 92 ) - + 77 * COUNT ( 29 ) + - MAX ( 1 ) * 6 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT 46 DIV - 88 DIV 10 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT 46 / - 88 / 10 * - 56
----
0

query I rowsort
SELECT - ( 76 ) * 13 + - 71 + + - 88 - - 95 * 15
----
278

query I rowsort
SELECT + - ( - + 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT + 95 * 48 * ( + ( 22 ) ) + + CAST( + COALESCE ( MAX( ALL 22 ), 5, 21 ) + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + 95 * 48 * ( + ( 22 ) ) + + CAST ( + COALESCE ( MAX ( ALL 22 ), 5, 21 ) + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 12 - NULLIF ( 51, + 32 ) AS col2
----
-63

query I rowsort
SELECT ALL 0 * 75 + 60
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT + 45 * - 11 * + + 23 - + 58 DIV - 25 - 3 + + 76 DIV 81
----
-11386

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 45 * - 11 * + + 23 - + 58 / - 25 - 3 + + 76 / 81
----
-11386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL CAST( + 9 AS SIGNED ) * + 86 * + 21 + 98
----
16352

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL CAST ( + 9 AS INTEGER ) * + 86 * + 21 + 98
----
16352

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + + COUNT( * ) + + 65 * NULLIF ( 23, + - 77 + + 6 ) AS col2
----
1496

skipif mysql # not compatible
query I rowsort label-7994
SELECT + + COUNT ( * ) + + 65 * NULLIF ( 23, + - 77 + + 6 ) AS col2
----
1496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT - 69 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 69 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL 55 col2, + CASE 67 WHEN 33 * COUNT( * ) + - 63 + 8 THEN + 66 + 81 WHEN 0 * 71 THEN NULL END + 58
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL 55 col2, + CASE 67 WHEN 33 * COUNT ( * ) + - 63 + 8 THEN + 66 + 81 WHEN 0 * 71 THEN NULL END + 58
----
55
NULL

query II rowsort
SELECT ALL 6 AS col1, 36
----
6
36

query I rowsort
SELECT + 40 * + + 44
----
1760

query I rowsort
SELECT ALL 46 * + - ( + ( + + 19 ) ) AS col0
----
-874

query I rowsort
SELECT + 57 + 7 + + + 95
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT 81 AS col0, + 64 + + COUNT( * ) + + 88 AS col1
----
81
153

skipif mysql # not compatible
query II rowsort label-8001
SELECT 81 AS col0, + 64 + + COUNT ( * ) + + 88 AS col1
----
81
153

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8002
SELECT ALL 64 AS col2, 40 DIV + COALESCE ( + 82, - 57 DIV CASE - 60 WHEN - 20 * 71 THEN - 28 * 32 WHEN 55 DIV ( + 67 ) THEN NULL WHEN - 59 * 13 + - CAST( NULL AS DECIMAL ) THEN NULL END + COUNT( * ) - MIN( ( + 7 ) ) ) + 44 AS col1
----
64
44

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL 64 AS col2, 40 / + COALESCE ( + 82, - 57 / CASE - 60 WHEN - 20 * 71 THEN - 28 * 32 WHEN 55 / ( + 67 ) THEN NULL WHEN - 59 * 13 + - CAST ( NULL AS REAL ) THEN NULL END + COUNT ( * ) - MIN ( ( + 7 ) ) ) + 44 AS col1
----
64
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT + 34 + + CAST( + + 44 AS SIGNED ) + + 69
----
147

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 34 + + CAST ( + + 44 AS INTEGER ) + + 69
----
147

query I rowsort
SELECT + 10 + 56 + 67 AS col0
----
133

query I rowsort
SELECT - 86 + + - 31
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT - 62 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT - 62 / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL 68 + - MAX( + + 52 ) * + 62 AS col1
----
-3156

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL 68 + - MAX ( + + 52 ) * + 62 AS col1
----
-3156

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + 74 * + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8008
SELECT + 74 * + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT - 80 + + 55 AS col2
----
-25

query I rowsort
SELECT + 50 * + 62
----
3100

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT ALL + ( - 64 ) + + 35 + - 69 AS col2, MIN( 40 ) * - 34 + 6
----
-98
-1354

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL + ( - 64 ) + + 35 + - 69 AS col2, MIN ( 40 ) * - 34 + 6
----
-98
-1354

query III rowsort
SELECT 94 AS col2, - 56 AS col0, 35 AS col0
----
94
-56
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8013
SELECT ALL 32 + + 67 DIV + ( - 45 ) col1, MAX( COALESCE ( CASE 40 WHEN 66 THEN NULL WHEN 1 - - ( 62 ) DIV 24 THEN + 86 WHEN ( 24 ) THEN NULL END, CAST( - 40 AS SIGNED ) ) )
----
31
-40

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL 32 + + 67 / + ( - 45 ) col1, MAX ( COALESCE ( CASE 40 WHEN 66 THEN NULL WHEN 1 - - ( 62 ) / 24 THEN + 86 WHEN ( 24 ) THEN NULL END, CAST ( - 40 AS INTEGER ) ) )
----
31
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL NULLIF ( SUM( 97 ), - CAST( NULL AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL NULLIF ( SUM ( 97 ), - CAST ( NULL AS INTEGER ) ) AS col2
----
97

query II rowsort
SELECT ALL + 97 + 13 AS col1, COALESCE ( + 71, + + 55 )
----
110
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT ALL CAST( NULL AS SIGNED ) * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL CAST ( NULL AS INTEGER ) * - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT + 10 DIV 99 - - - 50 col1
----
-50

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 10 / 99 - - - 50 col1
----
-50

query I rowsort
SELECT - + 99 * + 4 - 65 AS col2
----
-461

query II rowsort
SELECT + NULLIF ( ( + 39 ), - 62 ), 51 AS col1
----
39
51

query I rowsort
SELECT + + 98 * + 81 + - 68 * 66 + - 55 AS col0
----
3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT DISTINCT 80 * 38 * - CAST( CASE CASE COUNT( * ) WHEN 6 THEN - 82 END WHEN - 38 + + COALESCE ( 34, 93 / 22 ) THEN NULL ELSE - 19 + 12 END AS SIGNED ) - 83
----
21197

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT 80 * 38 * - CAST ( CASE CASE COUNT ( * ) WHEN 6 THEN - 82 END WHEN - 38 + + COALESCE ( 34, 93 / 22 ) THEN NULL ELSE - 19 + 12 END AS INTEGER ) - 83
----
21197

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL - - 18 * - 47 + + - NULLIF ( + + 19, + + 81 * + - 2 * + COUNT( * ) ) AS col2
----
-865

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - - 18 * - 47 + + - NULLIF ( + + 19, + + 81 * + - 2 * + COUNT ( * ) ) AS col2
----
-865

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - + 38 * COUNT( * ) + 56
----
18

skipif mysql # not compatible
query I rowsort label-8023
SELECT - + 38 * COUNT ( * ) + 56
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT ALL - COUNT( * ) DIV + 87 + - - 93
----
93

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - COUNT ( * ) / + 87 + - - 93
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8025
SELECT ALL + 50 AS col1, 42 + - - 57 DIV + MIN( DISTINCT - + 10 )
----
50
37

skipif mysql # not compatible
query II rowsort label-8025
SELECT ALL + 50 AS col1, 42 + - - 57 / + MIN ( DISTINCT - + 10 )
----
50
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + NULLIF ( + CASE 16 WHEN + SUM( + + 61 ) THEN - - 31 END, + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + NULLIF ( + CASE 16 WHEN + SUM ( + + 61 ) THEN - - 31 END, + 7 )
----
NULL

query I rowsort
SELECT ALL - 83 * + 0 + + 28 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8028
SELECT 72 DIV 88 + + NULLIF ( - + 96, + CAST( NULL AS SIGNED ) ) * 20 + 3
----
-1917

skipif mysql # not compatible
query I rowsort label-8028
SELECT 72 / 88 + + NULLIF ( - + 96, + CAST ( NULL AS INTEGER ) ) * 20 + 3
----
-1917

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT + + 17 AS col0, ( - COUNT( * ) ) + + + 67
----
17
66

skipif mysql # not compatible
query II rowsort label-8029
SELECT + + 17 AS col0, ( - COUNT ( * ) ) + + + 67
----
17
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT - 11 DIV - 23 * - - 75
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 11 / - 23 * - - 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT + - 23 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT + - 23 / 53 AS col0
----
0

query I rowsort
SELECT - + 12 * + 41 * 75
----
-36900

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + + COUNT( * ) + ( + - MIN( + 20 ) ) + + ( + 14 ) - 79
----
-84

skipif mysql # not compatible
query I rowsort label-8033
SELECT + + COUNT ( * ) + ( + - MIN ( + 20 ) ) + + ( + 14 ) - 79
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT - + 1 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - + 1 / - 48 AS col2
----
0

query I rowsort
SELECT COALESCE ( + 71, - 99 ) col0
----
71

query I rowsort
SELECT + CASE 38 WHEN - 19 * - 73 + + 6 + 41 THEN + ( - 8 ) ELSE - 74 * + 48 END
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - ( COUNT( * ) ) - - - ( + - 30 )
----
29

skipif mysql # not compatible
query I rowsort label-8037
SELECT - ( COUNT ( * ) ) - - - ( + - 30 )
----
29

query I rowsort
SELECT ALL + 53 * + CASE 60 WHEN + 8 + - - 82 THEN NULL ELSE - 53 END * + NULLIF ( 8, 19 * + 93 ) + + 11 AS col1
----
-22461

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + 74 + 91 + - 56 + + 32 * + 42 * - - 45 * + COUNT( * ) * ( 95 ) AS col2
----
5745709

skipif mysql # not compatible
query I rowsort label-8039
SELECT + 74 + 91 + - 56 + + 32 * + 42 * - - 45 * + COUNT ( * ) * ( 95 ) AS col2
----
5745709

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT SUM( DISTINCT + 94 ) AS col0, SUM( + - 86 ) AS col0
----
94
-86

skipif mysql # not compatible
query II rowsort label-8040
SELECT SUM ( DISTINCT + 94 ) AS col0, SUM ( + - 86 ) AS col0
----
94
-86

query I rowsort
SELECT + 50 * + - 65 * 27 * + 68 * 66 AS col0
----
-393822000

query I rowsort
SELECT - NULLIF ( - 13, 4 )
----
13

query I rowsort
SELECT ALL ( 1 ) + + 87 col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT DISTINCT 91 + - 14 AS col0, - SUM( ALL + 17 ) - 83
----
77
-100

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT 91 + - 14 AS col0, - SUM ( ALL + 17 ) - 83
----
77
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + 20 - + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 20 - + COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL COUNT( * ) + + 58 * - + 49
----
-2841

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL COUNT ( * ) + + 58 * - + 49
----
-2841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT - CAST( 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-8047
SELECT - CAST ( 71 AS INTEGER )
----
-71

query I rowsort
SELECT ALL 78 - - - 61 * + 81 * + 85 AS col1
----
-419907

query II rowsort
SELECT + 84 + - 23 AS col2, + 19 AS col2
----
61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - COUNT( ALL 22 ) * + 34 + + - 42 * COALESCE ( + 14, + NULLIF ( + 40, 73 ) * COUNT( * ) - - ( 38 + 20 ), + 44 )
----
-622

skipif mysql # not compatible
query I rowsort label-8050
SELECT - COUNT ( ALL 22 ) * + 34 + + - 42 * COALESCE ( + 14, + NULLIF ( + 40, 73 ) * COUNT ( * ) - - ( 38 + 20 ), + 44 )
----
-622

query I rowsort
SELECT + + ( + ( - 46 ) ) + - 33 * 8
----
-310

query II rowsort
SELECT - + 53 - + 44 AS col2, 84 col1
----
-97
84

query I rowsort
SELECT ALL + 73 - 74 * - 84
----
6289

query II rowsort
SELECT ALL 76 * + 45 AS col1, - 24 * - 18
----
3420
432

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT + - 79 * - + 56 + + - 95 + - COALESCE ( - + 34, - + 98 + 33 DIV 81 ) * 93 AS col1
----
7491

skipif mysql # not compatible
query I rowsort label-8055
SELECT + - 79 * - + 56 + + - 95 + - COALESCE ( - + 34, - + 98 + 33 / 81 ) * 93 AS col1
----
7491

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL + COUNT( 79 ) AS col0, + COALESCE ( + - COALESCE ( + + 28, + - 57 ), + 95 * - 45 ) AS col2
----
1
-28

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL + COUNT ( 79 ) AS col0, + COALESCE ( + - COALESCE ( + + 28, + - 57 ), + 95 * - 45 ) AS col2
----
1
-28

query I rowsort
SELECT + - ( + + 45 ) * 11
----
-495

query I rowsort
SELECT - - 26 * - 67 AS col0
----
-1742

query I rowsort
SELECT - 5 + - - 75 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MIN( - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8060
SELECT MIN ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT ALL - + MAX( DISTINCT - 4 ) * - - 7 AS col2, + 99 * 60 * 29 * 13
----
28
2239380

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL - + MAX ( DISTINCT - 4 ) * - - 7 AS col2, + 99 * 60 * 29 * 13
----
28
2239380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT - 18 * + + COALESCE ( CASE + - COUNT( * ) WHEN + - 59 THEN - 14 * COUNT( * ) WHEN 60 THEN NULL END, - 10 ) DIV + COUNT( * ) + 9 * + MAX( + 31 )
----
459

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 18 * + + COALESCE ( CASE + - COUNT ( * ) WHEN + - 59 THEN - 14 * COUNT ( * ) WHEN 60 THEN NULL END, - 10 ) / + COUNT ( * ) + 9 * + MAX ( + 31 )
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL SUM( ALL - 54 ) + + 87 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL SUM ( ALL - 54 ) + + 87 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT DISTINCT - 38 * 99 DIV + 46 * COUNT( * ) - - COUNT( * ) * - + 63 * - 45
----
2754

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - 38 * 99 / + 46 * COUNT ( * ) - - COUNT ( * ) * - + 63 * - 45
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL + COUNT( ALL + 29 ) + - + 33
----
-32

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + COUNT ( ALL + 29 ) + - + 33
----
-32

query I rowsort
SELECT ALL + + 98 + 8
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT + COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + COUNT ( * ) + - 53
----
-52

query I rowsort
SELECT 23 * + + 55 + - 65 + - 20
----
1180

query II rowsort
SELECT 6 AS col2, 97
----
6
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8070
SELECT ALL + ( 54 ) + - CAST( NULL AS DECIMAL ) AS col0, + 12 col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-8070
SELECT ALL + ( 54 ) + - CAST ( NULL AS REAL ) AS col0, + 12 col0
----
NULL
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT 15 + - 55 DIV 86 * + 56 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8071
SELECT 15 + - 55 / 86 * + 56 AS col2
----
15

query I rowsort
SELECT 25 + 19
----
44

query I rowsort
SELECT 31 * - + COALESCE ( + 70, + 35 + - 96 ) col1
----
-2170

query I rowsort
SELECT ALL 38 + - 7 * 4 + ( 60 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT 41 + - CASE - - 63 WHEN - MAX( DISTINCT 30 ) * + + 19 + + 44 - + COUNT( * ) + SUM( 56 ) * - 13 / - 23 THEN + 98 ELSE 73 + 61 * - COALESCE ( COALESCE ( 37, + ( - 16 ), + 20 + NULLIF ( COUNT( * ), + COUNT( * ) / COALESCE ( 4 * - 4, COUNT( * ) / + 84, 93 ) - - 12 / + 36 ), 86 ) + + 51, 96 ) END + CASE + NULLIF ( + 45, + 78 * - 65 ) WHEN + CAST( NULL AS SIGNED ) THEN + 2 ELSE NULL END * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT 41 + - CASE - - 63 WHEN - MAX ( DISTINCT 30 ) * + + 19 + + 44 - + COUNT ( * ) + SUM ( 56 ) * - 13 / - 23 THEN + 98 ELSE 73 + 61 * - COALESCE ( COALESCE ( 37, + ( - 16 ), + 20 + NULLIF ( COUNT ( * ), + COUNT ( * ) / COALESCE ( 4 * - 4, COUNT ( * ) / + 84, 93 ) - - 12 / + 36 ), 86 ) + + 51, 96 ) END + CASE + NULLIF ( + 45, + 78 * - 65 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 2 ELSE NULL END * 5
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8076
SELECT ALL 36 AS col1, 85 DIV + 59
----
36
1

skipif mysql # not compatible
query II rowsort label-8076
SELECT ALL 36 AS col1, 85 / + 59
----
36
1

query I rowsort
SELECT 31 * 33
----
1023

query II rowsort
SELECT - 96 col0, 84
----
-96
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT 73, - COUNT( * ) col1
----
73
-1

skipif mysql # not compatible
query II rowsort label-8079
SELECT 73, - COUNT ( * ) col1
----
73
-1

query I rowsort
SELECT ALL 72 * - 10
----
-720

query I rowsort
SELECT 56 * - 68 * + - 40 AS col0
----
152320

query I rowsort
SELECT DISTINCT + - 9 * - + 24 + + ( 81 ) + - 41 AS col1
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT + COUNT( * ), + 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-8083
SELECT + COUNT ( * ), + 93 AS col1
----
1
93

query I rowsort
SELECT 44 * - - 20 * 32
----
28160

query II rowsort
SELECT DISTINCT - 3 col0, 63 AS col2
----
-3
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT DISTINCT 48 DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT 48 / - - 55
----
0

query I rowsort
SELECT ALL NULLIF ( 26, - + 13 )
----
26

query I rowsort
SELECT CASE 99 WHEN 48 THEN ( + 94 ) END + - 44 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 57 AS col0, 99 * - CASE - 52 WHEN 43 * + - ( - 44 ) THEN - ( - 23 ) ELSE NULL END
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8090
SELECT - - 13, AVG ( + CAST( NULL AS SIGNED ) ) * - + 20 * - 2 * 1 / CASE + CAST( NULL AS SIGNED ) WHEN + 29 * - 98 THEN NULL WHEN + MAX( - 41 ) + - 0 * COUNT( * ) THEN + 61 WHEN 68 THEN NULL WHEN NULLIF ( + 54, + 5 ) THEN + 16 ELSE - 54 * 19 + - 81 END - 52 AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8090
SELECT - - 13, AVG ( + CAST ( NULL AS INTEGER ) ) * - + 20 * - 2 * 1 / CASE + CAST ( NULL AS INTEGER ) WHEN + 29 * - 98 THEN NULL WHEN + MAX ( - 41 ) + - 0 * COUNT ( * ) THEN + 61 WHEN 68 THEN NULL WHEN NULLIF ( + 54, + 5 ) THEN + 16 ELSE - 54 * 19 + - 81 END - 52 AS col2
----
13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT COUNT( * ) - 93 DIV - COUNT( - 47 ) DIV + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8091
SELECT COUNT ( * ) - 93 / - COUNT ( - 47 ) / + COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8092
SELECT + + 44, CAST( - CASE - - SUM( - 11 ) WHEN 30 THEN 49 END AS SIGNED ) - - - 0 * 58 AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-8092
SELECT + + 44, CAST ( - CASE - - SUM ( - 11 ) WHEN 30 THEN 49 END AS INTEGER ) - - - 0 * 58 AS col0
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL 33 * + 46 + 60 * - COUNT( * ) * - 77 + + 90 * - 77 * - - COUNT( * ) - + 15
----
-807

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL 33 * + 46 + 60 * - COUNT ( * ) * - 77 + + 90 * - 77 * - - COUNT ( * ) - + 15
----
-807

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT - 2 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT - 2 / + - 77
----
0

query I rowsort
SELECT ALL - 89 + - ( + 23 ) + 55 + + - 38
----
-95

query I rowsort
SELECT ALL 77 + + 43
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8097
SELECT ALL - - 46 + - COUNT( * ) + + - 14 - + 90 * 20 + + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) * - 21 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - - 46 + - COUNT ( * ) + + - 14 - + 90 * 20 + + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) * - 21 * 28
----
NULL

query I rowsort
SELECT - 50 * + 51 + - + 97 AS col1
----
-2647

query I rowsort
SELECT ALL 22 + - + 63 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - COUNT( ALL 36 ) * + + COUNT( + 76 ) + + - 53 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8100
SELECT - COUNT ( ALL 36 ) * + + COUNT ( + 76 ) + + - 53 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT COALESCE ( + - COUNT( * ), + - 74 ) * 89 - + - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8101
SELECT COALESCE ( + - COUNT ( * ), + - 74 ) * 89 - + - COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT 51 + - 37 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT + 83 * + 57 AS col0, + SUM( + ( 39 ) ) AS col1
----
4731
39

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT + 83 * + 57 AS col0, + SUM ( + ( 39 ) ) AS col1
----
4731
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT 41 * - 92, - COUNT( * ) + - 95 AS col0
----
-3772
-96

skipif mysql # not compatible
query II rowsort label-8104
SELECT 41 * - 92, - COUNT ( * ) + - 95 AS col0
----
-3772
-96

query I rowsort
SELECT DISTINCT + 47 - - 55
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 40 - - 41 - - 76 * + - 13 col1
----
-907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) * SUM( 43 ) * 99 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) * SUM ( 43 ) * 99 + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT - 48 - - ( + CAST( - + 28 AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - 48 - - ( + CAST ( - + 28 AS INTEGER ) )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT 69 * + 76 AS col0, + COUNT( * ) - + 78 AS col0
----
5244
-77

skipif mysql # not compatible
query II rowsort label-8110
SELECT 69 * + 76 AS col0, + COUNT ( * ) - + 78 AS col0
----
5244
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ( 93 ) - - + 92 + + 90 * + + ( + 12 ) * - ( + NULLIF ( - 41, + 9 ) ) + - ( COUNT( * ) )
----
44464

skipif mysql # not compatible
query I rowsort label-8111
SELECT ( 93 ) - - + 92 + + 90 * + + ( + 12 ) * - ( + NULLIF ( - 41, + 9 ) ) + - ( COUNT ( * ) )
----
44464

query I rowsort
SELECT - 7 * + 81 AS col1
----
-567

query I rowsort
SELECT 35 + + 62 col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) * - + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * - + 74 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT - ( 73 ) + + 21 DIV + 49 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8115
SELECT - ( 73 ) + + 21 / + 49 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT NULLIF ( 13, - CAST( NULL AS SIGNED ) * 39 - - + 25 + + - 49 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8116
SELECT NULLIF ( 13, - CAST ( NULL AS INTEGER ) * 39 - - + 25 + + - 49 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL + 4 * MIN( DISTINCT + 19 )
----
76

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + 4 * MIN ( DISTINCT + 19 )
----
76

query I rowsort
SELECT - - COALESCE ( + 9, - - 70 + 95 * 72 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT ALL + 60 + + COUNT( + 48 ) + - + 77 AS col0, 67 + + 47
----
-16
114

skipif mysql # not compatible
query II rowsort label-8119
SELECT ALL + 60 + + COUNT ( + 48 ) + - + 77 AS col0, 67 + + 47
----
-16
114

query I rowsort
SELECT - COALESCE ( 57, - 39 ) AS col0
----
-57

query I rowsort
SELECT ALL + + ( - - 29 ) AS col1
----
29

query I rowsort
SELECT DISTINCT + 55 * + 56 + - 63
----
3017

query I rowsort
SELECT - - 41 * - NULLIF ( - 21, - 64 ) + + + 24 + + 11 + + - 99
----
797

query I rowsort
SELECT ALL - 12 * + + 87 + + - 78 * 78 + 0 + - + 23 + - 28 * - + 5 * 30 * 87 AS col0
----
358249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT ALL + 77 * + - COUNT( * ) * - 11 * 64 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + 77 * + - COUNT ( * ) * - 11 * 64 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 63 * 67
----
4221

query I rowsort
SELECT ALL 69 * + COALESCE ( 8, + 81 )
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8128
SELECT + 81 DIV + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8128
SELECT + 81 / + COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8129
SELECT + COUNT( * ) + 35 + 37 col1, 88 * 98 + + 83 + - CAST( + 18 AS SIGNED ) AS col0
----
73
8689

skipif mysql # not compatible
query II rowsort label-8129
SELECT + COUNT ( * ) + 35 + 37 col1, 88 * 98 + + 83 + - CAST ( + 18 AS INTEGER ) AS col0
----
73
8689

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT 4 * - - SUM( DISTINCT 22 ) * ( + ( - + 17 ) ) col0
----
-1496

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT 4 * - - SUM ( DISTINCT 22 ) * ( + ( - + 17 ) ) col0
----
-1496

query I rowsort
SELECT + 27 * + 80 AS col2
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT 97 * 82 + + - 42 * + COUNT( DISTINCT - + 75 ) + ( + 28 ) + + 26
----
7966

skipif mysql # not compatible
query I rowsort label-8132
SELECT 97 * 82 + + - 42 * + COUNT ( DISTINCT - + 75 ) + ( + 28 ) + + 26
----
7966

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + COUNT( * ) + + 6 + 56 + + 43 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-8133
SELECT + COUNT ( * ) + + 6 + 56 + + 43 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + ( + COUNT( DISTINCT + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8134
SELECT + ( + COUNT ( DISTINCT + 59 ) )
----
1

query I rowsort
SELECT + 97 + 28 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT 97 * 25 + + ( 70 ) + - 8 * + 89 - 17 DIV + - 70 + - 10 * + COUNT( * )
----
1773

skipif mysql # not compatible
query I rowsort label-8136
SELECT 97 * 25 + + ( 70 ) + - 8 * + 89 - 17 / + - 70 + - 10 * + COUNT ( * )
----
1773

query I rowsort
SELECT + 68 * ( 45 ) AS col1
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + 61 + NULLIF ( 3, 98 ) * + - SUM( - - 39 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8138
SELECT + 61 + NULLIF ( 3, 98 ) * + - SUM ( - - 39 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ( + ( 79 ) ) * - - COUNT( * ) + 60 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-8139
SELECT ( + ( 79 ) ) * - - COUNT ( * ) + 60 AS col1
----
139

query I rowsort
SELECT ALL + 34 * - - 44 * + - 72 * + + 10 AS col0
----
-1077120

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT CASE - + 51 WHEN - 88 THEN NULL WHEN - + 86 + - COUNT( * ) * ( COUNT( * ) ) THEN + + 13 * - 97 * + - ( - 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT CASE - + 51 WHEN - 88 THEN NULL WHEN - + 86 + - COUNT ( * ) * ( COUNT ( * ) ) THEN + + 13 * - 97 * + - ( - 30 ) END
----
NULL

query I rowsort
SELECT - 95 + 87 + - ( - 90 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT - 9 DIV - 93 * - - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 9 / - 93 * - - 40 AS col0
----
0

query II rowsort
SELECT + - 45 * + + 25 + - - 25 col0, 37 AS col2
----
-1100
37

query I rowsort
SELECT ALL + COALESCE ( + 90, - 48 - - 15 ) AS col0
----
90

query II rowsort
SELECT ALL + - ( + 3 ) + + + 71, 35 * + 53 AS col1
----
68
1855

query I rowsort
SELECT - - 64 + 31 AS col0
----
95

query I rowsort
SELECT ALL - - 92 + - 97 + + 65 * 15 AS col2
----
970

onlyif mysql # aggregate syntax: 
query II rowsort label-8149
SELECT ALL 53 AS col2, 91 * COUNT( * )
----
53
91

skipif mysql # not compatible
query II rowsort label-8149
SELECT ALL 53 AS col2, 91 * COUNT ( * )
----
53
91

query I rowsort
SELECT DISTINCT + + ( 40 ) + 58 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - - 12 + - 12 + + 95 * + COUNT( * ) + - 7 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8151
SELECT - - 12 + - 12 + + 95 * + COUNT ( * ) + - 7 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - COUNT( * ) * - 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) * - 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT SUM( + ( + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-8153
SELECT SUM ( + ( + 88 ) )
----
88

query III rowsort
SELECT - - 68 - 88 + - 64 AS col1, - 9 + - ( - 49 ) - 21 + - 12, + - 0 col2
----
-84
7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + - COUNT( DISTINCT 98 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8155
SELECT + - COUNT ( DISTINCT 98 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT - + CAST( - 17 AS SIGNED ) - + 53
----
-36

skipif mysql # not compatible
query I rowsort label-8156
SELECT - + CAST ( - 17 AS INTEGER ) - + 53
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT + + 88 * 52 - + 62 DIV - + 25 + - - 46 AS col0
----
4624

skipif mysql # not compatible
query I rowsort label-8157
SELECT + + 88 * 52 - + 62 / - + 25 + - - 46 AS col0
----
4624

query II rowsort
SELECT DISTINCT + 96 AS col0, 19
----
96
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT ALL - 27 DIV + 34 - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - 27 / + 34 - + 84
----
-84

query I rowsort
SELECT + 4 * 71 AS col2
----
284

query I rowsort
SELECT DISTINCT + ( - NULLIF ( + 73, + 2 ) ) col2
----
-73

query II rowsort
SELECT DISTINCT + 86, - 20 * - - 3 AS col0
----
86
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8163
SELECT CAST( NULL AS SIGNED ) AS col1, + 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-8163
SELECT CAST ( NULL AS INTEGER ) AS col1, + 88
----
NULL
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8164
SELECT CAST( NULL AS SIGNED ), + COUNT( * ) DIV + COALESCE ( + 8, + MIN( DISTINCT 27 ) * 80 * - + 92 * - + 15 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8164
SELECT CAST ( NULL AS INTEGER ), + COUNT ( * ) / + COALESCE ( + 8, + MIN ( DISTINCT 27 ) * 80 * - + 92 * - + 15 ) AS col2
----
NULL
0

query I rowsort
SELECT + 74 * + 33 * 18
----
43956

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + 91 + - - COALESCE ( - 27, - COUNT( * ) ) * - + ( - 16 ) + - + 17 - 52
----
-410

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 91 + - - COALESCE ( - 27, - COUNT ( * ) ) * - + ( - 16 ) + - + 17 - 52
----
-410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT + CAST( + + ( + + AVG ( ALL 37 ) ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-8167
SELECT + CAST ( + + ( + + AVG ( ALL 37 ) ) AS INTEGER )
----
37

query II rowsort
SELECT + 1 * - ( 57 ) + - + 67 AS col2, - 8
----
-124
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT ALL - 48 DIV - - ( - - SUM( + - 65 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - 48 / - - ( - - SUM ( + - 65 ) )
----
0

query I rowsort
SELECT + 38 * + 14
----
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ( ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ( ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 61 * - 84 AS col1
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL 32 * + COUNT( * ) + - 4 + - - 10
----
38

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL 32 * + COUNT ( * ) + - 4 + - - 10
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8174
SELECT + CAST( NULL AS SIGNED ), 88 * + ( - CASE 70 WHEN - - 91 THEN + 59 END ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8174
SELECT + CAST ( NULL AS INTEGER ), 88 * + ( - CASE 70 WHEN - - 91 THEN + 59 END ) col1
----
NULL
NULL

query I rowsort
SELECT + COALESCE ( + 94, + 20 ) AS col2
----
94

query I rowsort
SELECT 59 * - + 60 AS col2
----
-3540

query II rowsort
SELECT - ( + - 92 ) AS col2, - 82 * + + 48
----
92
-3936

query II rowsort
SELECT 56 AS col2, 58 + 45
----
56
103

query I rowsort
SELECT 6 + + 84 AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT - COUNT( * ) AS col2, 22
----
-1
22

skipif mysql # not compatible
query II rowsort label-8180
SELECT - COUNT ( * ) AS col2, 22
----
-1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - 4 + - 51 + CASE + 66 WHEN + MIN( ALL + 86 ) - + - ( + 61 ) THEN NULL WHEN - AVG ( ALL - 4 ) + - 64 * + 35 THEN NULL ELSE + CAST( 86 AS SIGNED ) END * 60 * + ( 30 ) AS col1
----
154745

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - 4 + - 51 + CASE + 66 WHEN + MIN ( ALL + 86 ) - + - ( + 61 ) THEN NULL WHEN - AVG ( ALL - 4 ) + - 64 * + 35 THEN NULL ELSE + CAST ( 86 AS INTEGER ) END * 60 * + ( 30 ) AS col1
----
154745

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + CASE + 32 WHEN + COUNT( * ) THEN + 53 WHEN 23 THEN NULL ELSE NULL END * - - COALESCE ( + 28, 41 * - 13 + - + 94 ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT + CASE + 32 WHEN + COUNT ( * ) THEN + 53 WHEN 23 THEN NULL ELSE NULL END * - - COALESCE ( + 28, 41 * - 13 + - + 94 ) + - COUNT ( * ) AS col2
----
NULL

query III rowsort
SELECT - + 83 AS col1, 82, 62 AS col0
----
-83
82
62

query I rowsort
SELECT DISTINCT - 55 * + 96 AS col1
----
-5280

query I rowsort
SELECT ALL ( + 21 ) + + 46 + - COALESCE ( - 70, - 31, + 47 * + - 11 ) AS col1
----
137

query II rowsort
SELECT ALL - 22 * 28 AS col1, - 86 AS col0
----
-616
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL + 63 + - CAST( NULL AS SIGNED ) + + 31 - + 61 * - ( + 98 ) / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 63 + - CAST ( NULL AS INTEGER ) + + 31 - + 61 * - ( + 98 ) / - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - 96 - + 8 + - 66 * + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 96 - + 8 + - 66 * + - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT CASE - 64 WHEN ( ( + + 33 ) ) - - 60 + + COUNT( + 49 ) * - 8 THEN NULL WHEN - NULLIF ( 70, 60 + + ( COUNT( * ) ) * + 59 ) THEN NULL ELSE 60 END + 62 * + 17
----
1114

skipif mysql # not compatible
query I rowsort label-8189
SELECT CASE - 64 WHEN ( ( + + 33 ) ) - - 60 + + COUNT ( + 49 ) * - 8 THEN NULL WHEN - NULLIF ( 70, 60 + + ( COUNT ( * ) ) * + 59 ) THEN NULL ELSE 60 END + 62 * + 17
----
1114

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT 55 + COUNT( * ) * - + ( + - 78 ) AS col0, 42
----
133
42

skipif mysql # not compatible
query II rowsort label-8190
SELECT 55 + COUNT ( * ) * - + ( + - 78 ) AS col0, 42
----
133
42

query I rowsort
SELECT 98 * 11 + + ( - 78 ) AS col1
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL - MIN( ALL 5 ) * 0 * - 97 * + 37 * + - 87 * + 71 - MIN( DISTINCT - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - MIN ( ALL 5 ) * 0 * - 97 * + 37 * + - 87 * + 71 - MIN ( DISTINCT - 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT + 62 + 84 + - - AVG ( DISTINCT - 91 ) / - 30 * - + 7 + - + 58 + + 13 * + - CAST( NULL AS SIGNED ) + + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 62 + 84 + - - AVG ( DISTINCT - 91 ) / - 30 * - + 7 + - + 58 + + 13 * + - CAST ( NULL AS INTEGER ) + + - 71 AS col1
----
NULL

query II rowsort
SELECT 92 AS col2, - 23 AS col0
----
92
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT COALESCE ( - CAST( NULL AS SIGNED ), 41, 29 )
----
41

skipif mysql # not compatible
query I rowsort label-8195
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), 41, 29 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL - COUNT( * ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL - COUNT ( * ) - + 28
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT - 59 * - 64 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT - 59 * - 64 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + ( ( + 72 ) ) + + 60 * COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-8198
SELECT + ( ( + 72 ) ) + + 60 * COUNT ( * )
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - + 84 - - - CAST( SUM( + 21 ) AS SIGNED ) - - - 56 AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - + 84 - - - CAST ( SUM ( + 21 ) AS INTEGER ) - - - 56 AS col1
----
-161

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8200
SELECT ALL + 6 * + + CAST( NULL AS DECIMAL ), - 37 DIV - 83 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL + 6 * + + CAST ( NULL AS REAL ), - 37 / - 83 AS col2
----
NULL
0

query I rowsort
SELECT 50 * 39 AS col0
----
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8202
SELECT DISTINCT + 33 DIV + + 31 AS col1, + 20 * CASE 49 WHEN + - ( + 50 ) * 87 - 20 THEN NULL ELSE - - MAX( + 59 ) END
----
1
1180

skipif mysql # not compatible
query II rowsort label-8202
SELECT DISTINCT + 33 / + + 31 AS col1, + 20 * CASE 49 WHEN + - ( + 50 ) * 87 - 20 THEN NULL ELSE - - MAX ( + 59 ) END
----
1
1180

query I rowsort
SELECT 25 * - + ( + 14 )
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT ALL - COALESCE ( + 16, + COALESCE ( + + 49, + COALESCE ( + - 3, - ( - 9 ) - + 34 ) * 58 + + 2 * - - 97 * - 58 - MIN( ALL 69 + 63 DIV - 96 ) + ( - 66 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - COALESCE ( + 16, + COALESCE ( + + 49, + COALESCE ( + - 3, - ( - 9 ) - + 34 ) * 58 + + 2 * - - 97 * - 58 - MIN ( ALL 69 + 63 / - 96 ) + ( - 66 ) ) )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT 40 + + CAST( NULL AS SIGNED ) + 19 * + NULLIF ( - 75, - 1 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT 40 + + CAST ( NULL AS INTEGER ) + 19 * + NULLIF ( - 75, - 1 ) col2
----
NULL

query I rowsort
SELECT 79 * + 64 col1
----
5056

query I rowsort
SELECT DISTINCT - 34 * 91 * + 86 * + 12
----
-3193008

query I rowsort
SELECT 69 * 88
----
6072

query I rowsort
SELECT ALL - 44 * 95 * + - 33
----
137940

query I rowsort
SELECT ALL NULLIF ( 0, - - 27 * - 37 ) + - 88 col0
----
-88

query I rowsort
SELECT ALL + 71 + + 37 * + 96 col2
----
3623

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8212
SELECT CAST( NULL AS DECIMAL ) * 1 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT CAST ( NULL AS REAL ) * 1 + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL 66 + + NULLIF ( 30, + COUNT( * ) + - 6 DIV - 3 ) * - - 58 + - 10 + + 13 + + + 33 DIV - - 65 AS col1
----
1809

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 66 + + NULLIF ( 30, + COUNT ( * ) + - 6 / - 3 ) * - - 58 + - 10 + + 13 + + + 33 / - - 65 AS col1
----
1809

query I rowsort
SELECT 75 + - 76 - + 24 + + - 70 * - + 62 AS col1
----
4315

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT 21 DIV 3 DIV - 30 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT 21 / 3 / - 30 * + 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL 70 + + CAST( 61 AS SIGNED ) + + 82
----
213

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL 70 + + CAST ( 61 AS INTEGER ) + + 82
----
213

query I rowsort
SELECT ALL - - 21 + COALESCE ( - - 25, 22 )
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8218
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( + 53 ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( + 53 ) + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT DISTINCT - 15 + + + 31 * + 81 * - 61 + + + 88 AS col0, - 49 - + - COUNT( * ) * 9 * SUM( - 41 ) * - 25 + + 96 + - COUNT( * )
----
-153098
9271

skipif mysql # not compatible
query II rowsort label-8219
SELECT DISTINCT - 15 + + + 31 * + 81 * - 61 + + + 88 AS col0, - 49 - + - COUNT ( * ) * 9 * SUM ( - 41 ) * - 25 + + 96 + - COUNT ( * )
----
-153098
9271

query I rowsort
SELECT ( + 72 ) + - 21
----
51

query I rowsort
SELECT ALL - 82 - - 0 + 64 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT - ( - 90 ) col0, COUNT( * ) - + COUNT( * ) AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-8222
SELECT - ( - 90 ) col0, COUNT ( * ) - + COUNT ( * ) AS col0
----
90
0

query I rowsort
SELECT 69 * ( - + 81 )
----
-5589

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT 13 + + 32, COUNT( * ) AS col0
----
45
1

skipif mysql # not compatible
query II rowsort label-8224
SELECT 13 + + 32, COUNT ( * ) AS col0
----
45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT 51 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT 51 + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 98 AS col2, 71 AS col1
----
98
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL CASE - - 53 WHEN + - 30 * ( COALESCE ( - MIN( + + 7 ), - 4 + + 81 ) ) THEN - 69 END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL CASE - - 53 WHEN + - 30 * ( COALESCE ( - MIN ( + + 7 ), - 4 + + 81 ) ) THEN - 69 END * 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT 60 + - 54 DIV 76 + - - 94 * - 27 + - + COUNT( * ) + + 85 DIV + 1 AS col0
----
-2394

skipif mysql # not compatible
query I rowsort label-8228
SELECT 60 + - 54 / 76 + - - 94 * - 27 + - + COUNT ( * ) + + 85 / + 1 AS col0
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ( + - 8 ) * COUNT( + 3 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8229
SELECT ( + - 8 ) * COUNT ( + 3 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT ( - + 21 ) * 2 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT 75 * MAX( DISTINCT + 75 )
----
5625

skipif mysql # not compatible
query I rowsort label-8231
SELECT 75 * MAX ( DISTINCT + 75 )
----
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT DISTINCT 5 * + 0 + + 98, COUNT( * ) col1
----
98
1

skipif mysql # not compatible
query II rowsort label-8232
SELECT DISTINCT 5 * + 0 + + 98, COUNT ( * ) col1
----
98
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8233
SELECT - CAST( - 77 AS SIGNED ) - + 91 + - 34 * - + 88 + - 86 DIV + 83 + 14 col1
----
2991

skipif mysql # not compatible
query I rowsort label-8233
SELECT - CAST ( - 77 AS INTEGER ) - + 91 + - 34 * - + 88 + - 86 / + 83 + 14 col1
----
2991

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL + 85 DIV - + 3 col2
----
-28

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + 85 / - + 3 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT COUNT( DISTINCT 70 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8235
SELECT COUNT ( DISTINCT 70 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT - SUM( 66 ) * - + NULLIF ( - COUNT( * ), CASE + 90 WHEN + + 11 + COALESCE ( 66, 99 * ( - 21 ) - + 75 ) THEN + 60 * + 23 + ( 80 + - 25 ) * CASE + 81 + 33 WHEN + 44 * + 0 THEN NULL ELSE 31 END WHEN CASE 89 WHEN - CAST( NULL AS SIGNED ) THEN - SUM( ALL 41 ) END * + 96 THEN 73 * - 98 END ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8236
SELECT - SUM ( 66 ) * - + NULLIF ( - COUNT ( * ), CASE + 90 WHEN + + 11 + COALESCE ( 66, 99 * ( - 21 ) - + 75 ) THEN + 60 * + 23 + ( 80 + - 25 ) * CASE + 81 + 33 WHEN + 44 * + 0 THEN NULL ELSE 31 END WHEN CASE 89 WHEN - CAST ( NULL AS INTEGER ) THEN - SUM ( ALL 41 ) END * + 96 THEN 73 * - 98 END ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT - 78 * - SUM( DISTINCT + 82 ) * + 84 - 47 * + 48 * - + 62
----
677136

skipif mysql # not compatible
query I rowsort label-8237
SELECT - 78 * - SUM ( DISTINCT + 82 ) * + 84 - 47 * + 48 * - + 62
----
677136

query II rowsort
SELECT + 99 AS col1, - ( + 32 )
----
99
-32

query II rowsort
SELECT ALL + - 96 * + 8 + - 86 * + 16, + 84 + + 29 AS col1
----
-2144
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT ALL + CAST( - + 76 AS SIGNED ) * 60 * + 68 AS col0
----
-310080

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + CAST ( - + 76 AS INTEGER ) * 60 * + 68 AS col0
----
-310080

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT DISTINCT - 18 * + 15 + - - 66 AS col0, - 24 * + - CASE - - COUNT( * ) WHEN + ( - - 43 ) THEN NULL WHEN + 13 THEN NULL WHEN 59 * + 45 * - 62 THEN + 52 ELSE - 58 END - + 8
----
-204
-1400

skipif mysql # not compatible
query II rowsort label-8241
SELECT DISTINCT - 18 * + 15 + - - 66 AS col0, - 24 * + - CASE - - COUNT ( * ) WHEN + ( - - 43 ) THEN NULL WHEN + 13 THEN NULL WHEN 59 * + 45 * - 62 THEN + 52 ELSE - 58 END - + 8
----
-204
-1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8242
SELECT + CASE - 5 WHEN 6 * + 93 - - 42 - 81 + + + CAST( NULL AS SIGNED ) * - + 37 THEN 54 * 62 - + + COUNT( * ) * - - 74 * + 98 WHEN 67 THEN + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT + CASE - 5 WHEN 6 * + 93 - - 42 - 81 + + + CAST ( NULL AS INTEGER ) * - + 37 THEN 54 * 62 - + + COUNT ( * ) * - - 74 * + 98 WHEN 67 THEN + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( + ( + + 21 ) ) AS col1
----
21

query II rowsort
SELECT ALL + 56, 57 col1
----
56
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + - CASE + COUNT( DISTINCT + 14 ) WHEN - - 91 + - 4 / 66 THEN - COALESCE ( 88, + 16 ) * + - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT + - CASE + COUNT ( DISTINCT + 14 ) WHEN - - 91 + - 4 / 66 THEN - COALESCE ( 88, + 16 ) * + - 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT + CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-8246
SELECT + CAST ( - 56 AS INTEGER )
----
-56

query I rowsort
SELECT + 91 * - - 36
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + + COUNT( * ) / + - CASE + MAX( 85 ) WHEN + 13 THEN + 70 END / + MAX( - 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + + COUNT ( * ) / + - CASE + MAX ( 85 ) WHEN + 13 THEN + 70 END / + MAX ( - 48 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - 31 + + COUNT( * ) + - - 51 * - 58 AS col1
----
-2988

skipif mysql # not compatible
query I rowsort label-8249
SELECT - 31 + + COUNT ( * ) + - - 51 * - 58 AS col1
----
-2988

onlyif mysql # DIV for integer division: 
query II rowsort label-8250
SELECT ALL - ( 71 ) - - - 36, 23 DIV - 7 AS col0
----
-107
-3

skipif mysql # not compatible
query II rowsort label-8250
SELECT ALL - ( 71 ) - - - 36, 23 / - 7 AS col0
----
-107
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT - - COALESCE ( - 95, + 23 + + MAX( ALL - 65 ) DIV 92 )
----
-95

skipif mysql # not compatible
query I rowsort label-8251
SELECT - - COALESCE ( - 95, + 23 + + MAX ( ALL - 65 ) / 92 )
----
-95

query I rowsort
SELECT DISTINCT - ( + 68 ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT ALL + + 13 DIV 75 * 45 + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + + 13 / 75 * 45 + - 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8254
SELECT + - COUNT( + 93 ) DIV 4 * - + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT + - COUNT ( + 93 ) / 4 * - + 34 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8255
SELECT DISTINCT 6 * + - COALESCE ( 83, 26 - 95, + + CAST( + AVG ( + 64 ) AS SIGNED ) ) col0, + 72 + + 18
----
-498
90

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT 6 * + - COALESCE ( 83, 26 - 95, + + CAST ( + AVG ( + 64 ) AS INTEGER ) ) col0, + 72 + + 18
----
-498
90

query I rowsort
SELECT ALL - 20 * 21 AS col1
----
-420

query I rowsort
SELECT + + 15 - - 24 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - + 45 + - + COUNT( - - 91 ) + - - 48
----
2

skipif mysql # not compatible
query I rowsort label-8258
SELECT - + 45 + - + COUNT ( - - 91 ) + - - 48
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + - NULLIF ( SUM( 25 ), 84 * + - 44 + + 93 * + + COUNT( 83 ) + - + 58 + + MAX( - 0 ) ) + - 87 + - 29 * NULLIF ( 5, 15 * + 97 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + - NULLIF ( SUM ( 25 ), 84 * + - 44 + + 93 * + + COUNT ( 83 ) + - + 58 + + MAX ( - 0 ) ) + - 87 + - 29 * NULLIF ( 5, 15 * + 97 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8260
SELECT - 33 DIV + SUM( 44 ) AS col2, + 66 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-8260
SELECT - 33 / + SUM ( 44 ) AS col2, + 66 AS col0
----
0
66

onlyif mysql # DIV for integer division: 
query II rowsort label-8261
SELECT + 98 DIV 7, ( - + 14 ) * 40 - - 71 AS col2
----
14
-489

skipif mysql # not compatible
query II rowsort label-8261
SELECT + 98 / 7, ( - + 14 ) * 40 - - 71 AS col2
----
14
-489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT + COUNT( - - NULLIF ( - - 55, 96 * + - 94 + - ( + 27 ) + + 88 ) ) + 67 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-8262
SELECT + COUNT ( - - NULLIF ( - - 55, 96 * + - 94 + - ( + 27 ) + + 88 ) ) + 67 / + 9
----
8

query I rowsort
SELECT - 69 + + 41
----
-28

query I rowsort
SELECT + 45 + - 94
----
-49

query I rowsort
SELECT ALL 3 + - 13 + + 51 * - 53 - - - 72 col1
----
-2785

query I rowsort
SELECT ALL 27 + - + 60
----
-33

query I rowsort
SELECT + ( + 46 ) + - 96 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8268
SELECT + ( + COALESCE ( - 66, + 36 + + CAST( NULL AS SIGNED ) + - 58 ) ) * 38 DIV 39 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8268
SELECT + ( + COALESCE ( - 66, + 36 + + CAST ( NULL AS INTEGER ) + - 58 ) ) * 38 / 39 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT ( + 8 ) / MIN( DISTINCT + + ( + + 54 ) ) + + + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) / - 5 - + + COUNT( * ) * - - COUNT( * ) ) - + 18 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT ( + 8 ) / MIN ( DISTINCT + + ( + + 54 ) ) + + + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) / - 5 - + + COUNT ( * ) * - - COUNT ( * ) ) - + 18 + 79
----
NULL

query I rowsort
SELECT + COALESCE ( + 54, - 16 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT ALL COUNT( * ) DIV 82 + COUNT( * ) + 4 + + 19
----
24

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL COUNT ( * ) / 82 + COUNT ( * ) + 4 + + 19
----
24

query I rowsort
SELECT - 79 * - 70
----
5530

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT SUM( 87 ) * - + 50 + 68 + - 57 AS col1
----
-4339

skipif mysql # not compatible
query I rowsort label-8273
SELECT SUM ( 87 ) * - + 50 + 68 + - 57 AS col1
----
-4339

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT ALL 82 DIV 13 + + + 12 + 72
----
90

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 82 / 13 + + + 12 + 72
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT + CAST( 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-8275
SELECT + CAST ( 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL COUNT( * ) * + 77 col0
----
77

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL COUNT ( * ) * + 77 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT + SUM( DISTINCT + 32 ) * COUNT( * ) * 50 - 17 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + SUM ( DISTINCT + 32 ) * COUNT ( * ) * 50 - 17 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 30 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT + + 60 * 43 + MIN( - + 66 )
----
2514

skipif mysql # not compatible
query I rowsort label-8279
SELECT + + 60 * 43 + MIN ( - + 66 )
----
2514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL + CASE - - 71 WHEN + 79 * + 35 / + CAST( - 97 AS SIGNED ) * + 12 * AVG ( - - 63 ) + + 51 THEN + + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) / - 8 * 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + CASE - - 71 WHEN + 79 * + 35 / + CAST ( - 97 AS INTEGER ) * + 12 * AVG ( - - 63 ) + + 51 THEN + + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) / - 8 * 75 END AS col0
----
NULL

query I rowsort
SELECT - 38 * - 63 + - 26 col2
----
2368

query I rowsort
SELECT DISTINCT + + 11 * 69
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - + COUNT( * ) * + - 79 + + + 11
----
90

skipif mysql # not compatible
query I rowsort label-8283
SELECT - + COUNT ( * ) * + - 79 + + + 11
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT ALL + 38 * + - COUNT( * ), + ( - 53 ) AS col1
----
-38
-53

skipif mysql # not compatible
query II rowsort label-8284
SELECT ALL + 38 * + - COUNT ( * ), + ( - 53 ) AS col1
----
-38
-53

query I rowsort
SELECT - 22 * 17
----
-374

query I rowsort
SELECT - 92 * + 93 * + + 77 AS col0
----
-658812

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT ALL + + ( + - 27 ) * + + 99 + - 12, COUNT( * ) AS col2
----
-2685
1

skipif mysql # not compatible
query II rowsort label-8287
SELECT ALL + + ( + - 27 ) * + + 99 + - 12, COUNT ( * ) AS col2
----
-2685
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - COALESCE ( + NULLIF ( - - 59, 6 ), - MAX( DISTINCT 34 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COALESCE ( + NULLIF ( - - 59, 6 ), - MAX ( DISTINCT 34 ) )
----
-59

query I rowsort
SELECT DISTINCT - 2 + + + 13 col2
----
11

query I rowsort
SELECT ALL - 20 + 24 + + 88 * - 59
----
-5188

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - SUM( DISTINCT 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8291
SELECT - SUM ( DISTINCT 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL + 57 + - CAST( NULL AS SIGNED ) / - - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + 57 + - CAST ( NULL AS INTEGER ) / - - 30 AS col2
----
NULL

query I rowsort
SELECT ALL 86 + - 55
----
31

query I rowsort
SELECT ALL - 85 * 56 * NULLIF ( + 27, - - 80 ) AS col0
----
-128520

query I rowsort
SELECT ALL 50 + - 61 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT MAX( DISTINCT + 67 ) - - 67 + - 14 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8296
SELECT MAX ( DISTINCT + 67 ) - - 67 + - 14 AS col0
----
120

query II rowsort
SELECT 52 AS col1, + 5 AS col2
----
52
5

query I rowsort
SELECT ALL + 13 * + 3
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL - 58 - + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - 58 - + + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT + COUNT( ALL + 2 ) - + + CASE - 80 WHEN - ( + 38 ) THEN 20 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + COUNT ( ALL + 2 ) - + + CASE - 80 WHEN - ( + 38 ) THEN 20 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ( + 53 ) * + 42 + 11
----
2237

query I rowsort
SELECT DISTINCT - 38 * - - 12 AS col0
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + MIN( DISTINCT + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8303
SELECT + MIN ( DISTINCT + 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + + MAX( ALL - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8304
SELECT + + MAX ( ALL - 77 )
----
-77

query I rowsort
SELECT ALL - NULLIF ( - 9, + 82 + + - 93 * - + 42 ) AS col2
----
9

query I rowsort
SELECT 98 * - - 62
----
6076

query I rowsort
SELECT + 46 * 18 AS col2
----
828

query I rowsort
SELECT ALL - 94 * 98 AS col0
----
-9212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT + + CAST( + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8309
SELECT + + CAST ( + 20 AS INTEGER ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT + 73 DIV - 73 + - 57 DIV 57
----
-2

skipif mysql # not compatible
query I rowsort label-8310
SELECT + 73 / - 73 + - 57 / 57
----
-2

query I rowsort
SELECT + 13 * 87 AS col0
----
1131

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT DISTINCT - COALESCE ( - + 8, - COUNT( * ) * + 47 * COUNT( * ) + - - 10 + + SUM( ALL + + COALESCE ( ( + + NULLIF ( + 78, - 44 ) ), + - 63 ) ) ) AS col1, - 57
----
8
-57

skipif mysql # not compatible
query II rowsort label-8312
SELECT DISTINCT - COALESCE ( - + 8, - COUNT ( * ) * + 47 * COUNT ( * ) + - - 10 + + SUM ( ALL + + COALESCE ( ( + + NULLIF ( + 78, - 44 ) ), + - 63 ) ) ) AS col1, - 57
----
8
-57

query I rowsort
SELECT 98 - - 25 AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT - 40 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 40 / + 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT - - COALESCE ( 40, - 12, 79 ) DIV - 64 + + MAX( ALL - CAST( + 11 AS SIGNED ) ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT - - COALESCE ( 40, - 12, 79 ) / - 64 + + MAX ( ALL - CAST ( + 11 AS INTEGER ) ) col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT 47 + - + 85 - + + 42 + ( COUNT( * ) ), - 22 AS col1
----
-79
-22

skipif mysql # not compatible
query II rowsort label-8316
SELECT 47 + - + 85 - + + 42 + ( COUNT ( * ) ), - 22 AS col1
----
-79
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8317
SELECT + + 90 AS col2, + 26 DIV CASE - 68 WHEN + NULLIF ( - 79, + 66 * - + MIN( DISTINCT + - 55 ) DIV + - SUM( + 80 ) - - MIN( DISTINCT - 24 ) ) - + ( + - COUNT( * ) ) THEN NULL ELSE 91 END
----
90
0

skipif mysql # not compatible
query II rowsort label-8317
SELECT + + 90 AS col2, + 26 / CASE - 68 WHEN + NULLIF ( - 79, + 66 * - + MIN ( DISTINCT + - 55 ) / + - SUM ( + 80 ) - - MIN ( DISTINCT - 24 ) ) - + ( + - COUNT ( * ) ) THEN NULL ELSE 91 END
----
90
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8318
SELECT - NULLIF ( COUNT( * ), + 15 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT - NULLIF ( COUNT ( * ), + 15 ) / 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT COUNT( * ) DIV - ( + COUNT( * ) ) + + 28
----
27

skipif mysql # not compatible
query I rowsort label-8319
SELECT COUNT ( * ) / - ( + COUNT ( * ) ) + + 28
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT ALL + COUNT( * ) + - NULLIF ( + 28, + - 73 * 0 + + ( 95 ) - + CAST( NULL AS SIGNED ) ) + - - 25
----
-2

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + COUNT ( * ) + - NULLIF ( + 28, + - 73 * 0 + + ( 95 ) - + CAST ( NULL AS INTEGER ) ) + - - 25
----
-2

query I rowsort
SELECT + 15 + + 99
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT + 89 * 11 * + - CAST( - 48 AS SIGNED ) + + 54 * + MIN( - + 95 ) AS col0
----
41862

skipif mysql # not compatible
query I rowsort label-8322
SELECT + 89 * 11 * + - CAST ( - 48 AS INTEGER ) + + 54 * + MIN ( - + 95 ) AS col0
----
41862

query I rowsort
SELECT ALL + + 33 * + 51
----
1683

query I rowsort
SELECT ALL - 61 + + - 57 * + 86 AS col1
----
-4963

query I rowsort
SELECT 53 + + + 52
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT 63 + + 50 + NULLIF ( ( - 95 ), 1 ) + + COUNT( * ) * 90 + + - 45
----
63

skipif mysql # not compatible
query I rowsort label-8326
SELECT 63 + + 50 + NULLIF ( ( - 95 ), 1 ) + + COUNT ( * ) * 90 + + - 45
----
63

query I rowsort
SELECT ALL 21 * - 78
----
-1638

query I rowsort
SELECT ALL + 62 + - + 12 AS col0
----
50

query II rowsort
SELECT DISTINCT - 98 * + CASE + ( - 27 ) WHEN - + 78 THEN 21 * - 69 + 88 + + 15 END AS col1, - 75 AS col2
----
NULL
-75

query I rowsort
SELECT 88 + + 14 - - 80 AS col0
----
182

query I rowsort
SELECT 59 * + 16 AS col1
----
944

query I rowsort
SELECT 98 + - 28 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + 26 + + + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + 26 + + + COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 69 + CASE 39 WHEN - 25 + + 15 * - - 36 * COUNT( * ) THEN 67 END * - - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT 69 + CASE 39 WHEN - 25 + + 15 * - - 36 * COUNT ( * ) THEN 67 END * - - 73 AS col2
----
NULL

query II rowsort
SELECT - 73, - 65 AS col2
----
-73
-65

query I rowsort
SELECT 78 + + + 90 + 24
----
192

query II rowsort
SELECT - 30 AS col0, + 57 * 41 AS col2
----
-30
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL + 26 - - - COALESCE ( - COUNT( * ), 2 + 63 ) - - 25 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + 26 - - - COALESCE ( - COUNT ( * ), 2 + 63 ) - - 25 AS col0
----
52

query I rowsort
SELECT ALL 96 - + 23 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT ALL - 54 DIV - 78 * - 91
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - 54 / - 78 * - 91
----
0

query I rowsort
SELECT DISTINCT - 36 * 28 * 30
----
-30240

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL + 82 * - COUNT( * ) * - 1
----
82

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + 82 * - COUNT ( * ) * - 1
----
82

query I rowsort
SELECT ALL - 40 * + + 27 + - - 88
----
-992

query I rowsort
SELECT + 31 * 30 + 79
----
1009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT - + 41 DIV COUNT( * ) + - 84 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-8345
SELECT - + 41 / COUNT ( * ) + - 84 AS col0
----
-125

query I rowsort
SELECT 13 * + + 75 AS col0
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8347
SELECT + 44 * + 25 / CASE 77 WHEN - 84 + 82 THEN + + COUNT( * ) * + CASE - 91 WHEN - + CASE + CAST( - + 92 AS DECIMAL ) WHEN - - 18 / - + 74 + + CAST( NULL AS SIGNED ) + 84 * + 39 THEN 67 - 40 END THEN NULLIF ( - 42, + CAST( CAST( 97 AS SIGNED ) AS SIGNED ) ) WHEN 83 * 80 + 66 THEN - 57 END * - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT + 44 * + 25 / CASE 77 WHEN - 84 + 82 THEN + + COUNT ( * ) * + CASE - 91 WHEN - + CASE + CAST ( - + 92 AS REAL ) WHEN - - 18 / - + 74 + + CAST ( NULL AS INTEGER ) + 84 * + 39 THEN 67 - 40 END THEN NULLIF ( - 42, + CAST ( CAST ( 97 AS INTEGER ) AS INTEGER ) ) WHEN 83 * 80 + 66 THEN - 57 END * - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT ALL - - COUNT( * ) col1, - 79 AS col1
----
1
-79

skipif mysql # not compatible
query II rowsort label-8348
SELECT ALL - - COUNT ( * ) col1, - 79 AS col1
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - COUNT( * ) * + ( + 74 ) * + - 78 * - 41
----
-236652

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - COUNT ( * ) * + ( + 74 ) * + - 78 * - 41
----
-236652

query I rowsort
SELECT + 78 * + 16 + - 82 AS col2
----
1166

query I rowsort
SELECT DISTINCT - ( + - 54 ) AS col1
----
54

query I rowsort
SELECT DISTINCT 98 + 48 + - 68 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT + 77 * ( + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-8353
SELECT + 77 * ( + COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8354
SELECT + NULLIF ( - 38, + ( - 5 ) * + 49 ) + + 96, ( COUNT( * ) ) col1
----
58
1

skipif mysql # not compatible
query II rowsort label-8354
SELECT + NULLIF ( - 38, + ( - 5 ) * + 49 ) + + 96, ( COUNT ( * ) ) col1
----
58
1

query II rowsort
SELECT + + 46 AS col0, - 63
----
46
-63

query II rowsort
SELECT + - 92, 34 AS col0
----
-92
34

query II rowsort
SELECT + + 36 AS col1, 34
----
36
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - COUNT( * ) * - ( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8358
SELECT - COUNT ( * ) * - ( 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ( 18 ) * + - 16 + - 19 + - 2 * 83 * + 83 * + ( - COUNT( * ) ) * 20 + - + 37 AS col1
----
275216

skipif mysql # not compatible
query I rowsort label-8359
SELECT ( 18 ) * + - 16 + - 19 + - 2 * 83 * + 83 * + ( - COUNT ( * ) ) * 20 + - + 37 AS col1
----
275216

onlyif mysql # DIV for integer division: 
query II rowsort label-8360
SELECT + 48 AS col0, - 91 DIV + + 63 + - - NULLIF ( + 10, - 10 * 53 + + - 87 ) AS col2
----
48
9

skipif mysql # not compatible
query II rowsort label-8360
SELECT + 48 AS col0, - 91 / + + 63 + - - NULLIF ( + 10, - 10 * 53 + + - 87 ) AS col2
----
48
9

query I rowsort
SELECT ALL 96 + 23 + - 79 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT COUNT ( * ) * 37
----
37

query I rowsort
SELECT DISTINCT - ( ( - + 90 ) ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT ALL 10 + + 8 AS col0, COUNT( * ) * - 54 AS col0
----
18
-54

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL 10 + + 8 AS col0, COUNT ( * ) * - 54 AS col0
----
18
-54

query I rowsort
SELECT DISTINCT 39 + - COALESCE ( 11, - 54 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - MIN( ALL 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8366
SELECT - MIN ( ALL 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + MAX( - 72 ) * + ( 43 ) col1
----
-3096

skipif mysql # not compatible
query I rowsort label-8367
SELECT + MAX ( - 72 ) * + ( 43 ) col1
----
-3096

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT DISTINCT - 67 * - COUNT( * ) col2, - COALESCE ( + 54, + + 75 + 91 - - + 3 - COUNT( * ) * + - SUM( - NULLIF ( 1, - - 36 ) ) + + 71 )
----
67
-54

skipif mysql # not compatible
query II rowsort label-8368
SELECT DISTINCT - 67 * - COUNT ( * ) col2, - COALESCE ( + 54, + + 75 + 91 - - + 3 - COUNT ( * ) * + - SUM ( - NULLIF ( 1, - - 36 ) ) + + 71 )
----
67
-54

query I rowsort
SELECT + 26 * - 45
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL SUM( DISTINCT - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL SUM ( DISTINCT - 44 ) AS col1
----
-44

query I rowsort
SELECT DISTINCT COALESCE ( + 3, - 70 )
----
3

query II rowsort
SELECT DISTINCT 67 * - + 49 AS col2, ( + - 38 )
----
-3283
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT MIN( 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT MIN ( 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT DISTINCT - 50 * COUNT( * ), 42 + 90 AS col1
----
-50
132

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT - 50 * COUNT ( * ), 42 + 90 AS col1
----
-50
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT ALL MIN( DISTINCT - + 8 ), MIN( ALL + 30 ) AS col0
----
-8
30

skipif mysql # not compatible
query II rowsort label-8375
SELECT ALL MIN ( DISTINCT - + 8 ), MIN ( ALL + 30 ) AS col0
----
-8
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT - ( + COALESCE ( + COUNT( * ), + + ( - 50 ) DIV + AVG ( + - 81 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8376
SELECT - ( + COALESCE ( + COUNT ( * ), + + ( - 50 ) / + AVG ( + - 81 ) ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT - 72 + + 35 - + - ( 37 ) DIV + ( + - ( - - 62 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8377
SELECT - 72 + + 35 - + - ( 37 ) / + ( + - ( - - 62 ) ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT DISTINCT + - 96 DIV - + 56
----
1

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + - 96 / - + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL + + CASE - MAX( ALL - ( + 32 ) ) WHEN - + CASE WHEN NULL > ( 21 ) THEN NULL ELSE - COALESCE ( - 69, - COUNT( * ), 24 ) END THEN + - MAX( 19 ) + - + 12 + + + MAX( DISTINCT 36 ) * - 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + + CASE - MAX ( ALL - ( + 32 ) ) WHEN - + CASE WHEN NULL > ( 21 ) THEN NULL ELSE - COALESCE ( - 69, - COUNT ( * ), 24 ) END THEN + - MAX ( 19 ) + - + 12 + + + MAX ( DISTINCT 36 ) * - 77 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - - 19 * - MAX( - 21 ) + COUNT( * ) + + 25 + + 29 * SUM( DISTINCT + 99 ) AS col2
----
3296

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - - 19 * - MAX ( - 21 ) + COUNT ( * ) + + 25 + + 29 * SUM ( DISTINCT + 99 ) AS col2
----
3296

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT - - CASE 48 WHEN 82 DIV - + 66 * - 57 THEN NULL ELSE COALESCE ( - 83, + 19 + - 99 + + - 3 + + 80, - 64 ) END DIV + 67
----
-1

skipif mysql # not compatible
query I rowsort label-8381
SELECT - - CASE 48 WHEN 82 / - + 66 * - 57 THEN NULL ELSE COALESCE ( - 83, + 19 + - 99 + + - 3 + + 80, - 64 ) END / + 67
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8382
SELECT - 31 DIV + + 69, + ( - COUNT( * ) ) * + - AVG ( DISTINCT - 12 ) DIV ( CAST( NULL AS SIGNED ) ) - + COUNT( * ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT - 31 / + + 69, + ( - COUNT ( * ) ) * + - AVG ( DISTINCT - 12 ) / ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + 21 * 36 * 2 - + COUNT( * ) + 33
----
1544

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + 21 * 36 * 2 - + COUNT ( * ) + 33
----
1544

query II rowsort
SELECT - 70 - - 86 AS col1, 4 AS col0
----
16
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + - 29 * CASE WHEN NULL < AVG ( - - 7 ) THEN - COUNT( * ) - COALESCE ( - - 81, + COALESCE ( 99, - 91 * + + 36 ), 44 + - COALESCE ( + COUNT( * ), CASE - COUNT( * ) WHEN + 44 THEN NULL ELSE + 41 END ) ) + + 48 END - + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + - 29 * CASE WHEN NULL < AVG ( - - 7 ) THEN - COUNT ( * ) - COALESCE ( - - 81, + COALESCE ( 99, - 91 * + + 36 ), 44 + - COALESCE ( + COUNT ( * ), CASE - COUNT ( * ) WHEN + 44 THEN NULL ELSE + 41 END ) ) + + 48 END - + 12 AS col0
----
NULL

query I rowsort
SELECT - 88 * 50 AS col0
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL - 6 * + 50 + + 50 + - COUNT( * ) AS col0
----
-251

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - 6 * + 50 + + 50 + - COUNT ( * ) AS col0
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL 66 * - 39 - + ( + - COUNT( * ) ) * 51 + ( - SUM( DISTINCT - 29 ) ) - + - 5 + + 66 * 61 col0
----
1537

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL 66 * - 39 - + ( + - COUNT ( * ) ) * 51 + ( - SUM ( DISTINCT - 29 ) ) - + - 5 + + 66 * 61 col0
----
1537

query I rowsort
SELECT + + 30 - - + 12 * + 78 AS col0
----
966

query II rowsort
SELECT + 51 AS col0, + 86 AS col1
----
51
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT - 63 + + - 13 DIV + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8391
SELECT - 63 + + - 13 / + COUNT ( * )
----
-76

query I rowsort
SELECT + COALESCE ( + 36, - ( - 75 ), ( - 46 ) ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT MIN( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8393
SELECT MIN ( ALL 96 )
----
96

query II rowsort
SELECT ALL 68 * + 72 * + 13, - 91 * + + 43 AS col0
----
63648
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT 62 * 18 + CAST( COUNT( * ) AS SIGNED ) AS col0
----
1117

skipif mysql # not compatible
query I rowsort label-8395
SELECT 62 * 18 + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT ALL 54 * + CAST( NULL AS SIGNED ) - + CASE - 69 WHEN - MAX( ALL 88 ) * 29 THEN NULL WHEN + 46 THEN - - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL 54 * + CAST ( NULL AS INTEGER ) - + CASE - 69 WHEN - MAX ( ALL 88 ) * 29 THEN NULL WHEN + 46 THEN - - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 72 * 86 AS col0
----
6192

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + ( SUM( ( + 7 ) ) ) + - 4 * - 93
----
379

skipif mysql # not compatible
query I rowsort label-8398
SELECT + ( SUM ( ( + 7 ) ) ) + - 4 * - 93
----
379

query I rowsort
SELECT + ( 70 ) * - 29 + 66 - - 66 * + - 49 AS col0
----
-5198

query I rowsort
SELECT ALL 32 * + + 59 AS col2
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT MAX( + 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-8401
SELECT MAX ( + 98 ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + 79 + + 58 * ( + 53 ) * - ( - - 16 ) + 8 + COUNT( * ) * + + 50 * - 30 col2
----
-50597

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 79 + + 58 * ( + 53 ) * - ( - - 16 ) + 8 + COUNT ( * ) * + + 50 * - 30 col2
----
-50597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT + ( + COUNT( * ) ) DIV - + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT + ( + COUNT ( * ) ) / - + 74 AS col1
----
0

query I rowsort
SELECT + 55 + 85
----
140

query II rowsort
SELECT ALL 36 AS col0, 42
----
36
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT + 72 * - COUNT( * ) DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT + 72 * - COUNT ( * ) / + + 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT ALL COUNT( * ) AS col1, 41 - - - 83 * - 66 AS col0
----
1
5519

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL COUNT ( * ) AS col1, 41 - - - 83 * - 66 AS col0
----
1
5519

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT ALL ( - + 73 ) DIV 13 + - + 67 * + + 27 AS col0
----
-1814

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL ( - + 73 ) / 13 + - + 67 * + + 27 AS col0
----
-1814

onlyif mysql # DIV for integer division: 
query II rowsort label-8409
SELECT + 60 * + - ( + + 16 ) AS col1, 45 DIV - 95 col2
----
-960
0

skipif mysql # not compatible
query II rowsort label-8409
SELECT + 60 * + - ( + + 16 ) AS col1, 45 / - 95 col2
----
-960
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL MIN( + ( 42 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL MIN ( + ( 42 ) ) AS col0
----
42

query I rowsort
SELECT DISTINCT + 15 + - 25
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL NULLIF ( SUM( ALL 16 ), 84 * - 74 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL NULLIF ( SUM ( ALL 16 ), 84 * - 74 ) AS col0
----
16

query I rowsort
SELECT ALL + 46 + + - 82 AS col1
----
-36

query I rowsort
SELECT DISTINCT + 88 + 44
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - 2 * - + CASE - 45 WHEN + COUNT( * ) THEN + + 78 ELSE - 20 END * - 84 AS col1
----
3360

skipif mysql # not compatible
query I rowsort label-8415
SELECT - 2 * - + CASE - 45 WHEN + COUNT ( * ) THEN + + 78 ELSE - 20 END * - 84 AS col1
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + COUNT( - - NULLIF ( + 9, ( 39 ) / + 20 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8416
SELECT + COUNT ( - - NULLIF ( + 9, ( 39 ) / + 20 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT ALL - - 77 DIV + + COUNT( * ) + - 78 - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - - 77 / + + COUNT ( * ) + - 78 - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT COUNT( * ), 51 * - 58 + - 6 col0
----
1
-2964

skipif mysql # not compatible
query II rowsort label-8418
SELECT COUNT ( * ), 51 * - 58 + - 6 col0
----
1
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - COUNT( 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8419
SELECT - COUNT ( 46 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + NULLIF ( - MAX( ALL 53 ), - 93 * + + 24 )
----
-53

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + NULLIF ( - MAX ( ALL 53 ), - 93 * + + 24 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8421
SELECT - - ( - - NULLIF ( - 77, ( + - 75 ) ) ) + - COUNT( * ), + ( ( + - CAST( + AVG ( DISTINCT 43 ) AS SIGNED ) ) ) + + + 6 * - 63 + + COUNT( * ) AS col2
----
-78
-420

skipif mysql # not compatible
query II rowsort label-8421
SELECT - - ( - - NULLIF ( - 77, ( + - 75 ) ) ) + - COUNT ( * ), + ( ( + - CAST ( + AVG ( DISTINCT 43 ) AS INTEGER ) ) ) + + + 6 * - 63 + + COUNT ( * ) AS col2
----
-78
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT 19 DIV 96 - + 36 + + - ( + 87 ) * 10
----
-906

skipif mysql # not compatible
query I rowsort label-8422
SELECT 19 / 96 - + 36 + + - ( + 87 ) * 10
----
-906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT + COALESCE ( 16, - - 40 + - 46 - NULLIF ( + - 36, + 92 ) * 53 ) * + ( 79 ) DIV COUNT( * ) + + 60 + 76 * + - 17 * COUNT( * ) * + 50 + COUNT( * ) + NULLIF ( + COUNT( * ), 46 * - 51 )
----
-63274

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COALESCE ( 16, - - 40 + - 46 - NULLIF ( + - 36, + 92 ) * 53 ) * + ( 79 ) / COUNT ( * ) + + 60 + 76 * + - 17 * COUNT ( * ) * + 50 + COUNT ( * ) + NULLIF ( + COUNT ( * ), 46 * - 51 )
----
-63274

query I rowsort
SELECT NULLIF ( 23, - + 17 ) * + - 66
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT ALL + - CASE + COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN - 66 END * - + 6 - + - 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL + - CASE + COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN - 66 END * - + 6 - + - 76 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT - COUNT( * ) + - 48 * - COUNT( * ), + 65 col1
----
47
65

skipif mysql # not compatible
query II rowsort label-8426
SELECT - COUNT ( * ) + - 48 * - COUNT ( * ), + 65 col1
----
47
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT ALL + 78 - - + 67 + COUNT( * ) AS col1, 19 AS col2
----
146
19

skipif mysql # not compatible
query II rowsort label-8427
SELECT ALL + 78 - - + 67 + COUNT ( * ) AS col1, 19 AS col2
----
146
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT 88 + 20 + + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-8428
SELECT 88 + 20 + + COUNT ( * )
----
109

query I rowsort
SELECT 59 * + + ( - 0 ) * 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT CASE - COUNT( * ) WHEN - + 57 * + + 62 + + COUNT( * ) * + 77 THEN 33 * + 54 + - ( - 17 ) ELSE - 30 END * + COUNT( * ) + + - 77 * + 40 * + 16 + + + 15 + - 18 col1
----
-49313

skipif mysql # not compatible
query I rowsort label-8430
SELECT CASE - COUNT ( * ) WHEN - + 57 * + + 62 + + COUNT ( * ) * + 77 THEN 33 * + 54 + - ( - 17 ) ELSE - 30 END * + COUNT ( * ) + + - 77 * + 40 * + 16 + + + 15 + - 18 col1
----
-49313

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - NULLIF ( + 46, MAX( + 80 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - NULLIF ( + 46, MAX ( + 80 ) )
----
-46

query I rowsort
SELECT DISTINCT + 85 * 66 AS col1
----
5610

query I rowsort
SELECT 97 * - + NULLIF ( + 61, - - 8 * 70 )
----
-5917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8434
SELECT 87 * - COUNT( * ) * CAST( + - 65 AS SIGNED ), 13 * + 81 + + ( 48 ) AS col0
----
5655
1101

skipif mysql # not compatible
query II rowsort label-8434
SELECT 87 * - COUNT ( * ) * CAST ( + - 65 AS INTEGER ), 13 * + 81 + + ( 48 ) AS col0
----
5655
1101

query I rowsort
SELECT COALESCE ( - 4, 55 ) * + - 16
----
64

query I rowsort
SELECT ALL ( + - 32 ) + 73 + - 34 AS col0
----
7

query I rowsort
SELECT NULLIF ( + 50, 98 * - 32 ) * + 68
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + 32 / - 89 * + + NULLIF ( CASE 72 WHEN + 44 / - 7 + + ( + 77 ) + + + COUNT( * ) + - 35 THEN + 98 * + 99 + 46 / + COUNT( - 3 ) WHEN COUNT( ALL - 8 ) THEN NULL END, + + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + 32 / - 89 * + + NULLIF ( CASE 72 WHEN + 44 / - 7 + + ( + 77 ) + + + COUNT ( * ) + - 35 THEN + 98 * + 99 + 46 / + COUNT ( - 3 ) WHEN COUNT ( ALL - 8 ) THEN NULL END, + + 17 ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8439
SELECT ALL CAST( NULL AS DECIMAL ) * + 93 * + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL CAST ( NULL AS REAL ) * + 93 * + + 17
----
NULL

query I rowsort
SELECT ALL + 23 + - 72
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL NULLIF ( - COUNT( DISTINCT - 61 ), + CASE + 50 WHEN + 62 THEN NULL WHEN + 32 + + + CASE 18 WHEN 88 * COUNT( * ) + CAST( NULL AS SIGNED ) THEN - 50 / - 24 / - + 82 + 98 WHEN 32 * + COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) - 22 * 94 THEN 47 + + 63 * + COALESCE ( MIN( ALL 46 ) + ( + 78 ), - COUNT( * ) - + 4, - 3 ) WHEN 13 THEN 2 END THEN 51 END ) + + ( 7 ) * + 82
----
573

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL NULLIF ( - COUNT ( DISTINCT - 61 ), + CASE + 50 WHEN + 62 THEN NULL WHEN + 32 + + + CASE 18 WHEN 88 * COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN - 50 / - 24 / - + 82 + 98 WHEN 32 * + COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - 22 * 94 THEN 47 + + 63 * + COALESCE ( MIN ( ALL 46 ) + ( + 78 ), - COUNT ( * ) - + 4, - 3 ) WHEN 13 THEN 2 END THEN 51 END ) + + ( 7 ) * + 82
----
573

query I rowsort
SELECT ALL + 17 + - 45 col0
----
-28

query I rowsort
SELECT DISTINCT + 59 + - - 33 AS col2
----
92

query I rowsort
SELECT ALL ( 73 ) + + 69
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT 80 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-8445
SELECT 80 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT + 57 + SUM( DISTINCT + - 47 )
----
10

skipif mysql # not compatible
query I rowsort label-8446
SELECT + 57 + SUM ( DISTINCT + - 47 )
----
10

query I rowsort
SELECT DISTINCT + 1 + 64
----
65

query I rowsort
SELECT ALL + + 24 * + 2
----
48

query I rowsort
SELECT DISTINCT - NULLIF ( - 37, + + 6 )
----
37

query I rowsort
SELECT DISTINCT - 82 * + + 27
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + COALESCE ( - + CASE - CASE - 32 WHEN + 12 * + COALESCE ( + - ( + CASE - 38 WHEN - + 60 + + + 65 * + + 0 THEN + 85 / - ( + COUNT( * ) ) ELSE NULL END ), - 22 * + 40 / + + 67, + 39 ) THEN - COALESCE ( + 91, 9 ) WHEN - SUM( DISTINCT 91 ) THEN AVG ( + 32 ) * 96 ELSE NULL END WHEN + 78 THEN NULL WHEN 39 * - ( - 10 / + 89 ) THEN NULL WHEN COUNT( * ) THEN COALESCE ( + 80, - 67 ) ELSE 38 - CASE 31 WHEN COALESCE ( 81, - 80 + 46 * - AVG ( + 37 ) ) THEN NULL WHEN 27 + 55 THEN 22 * - MAX( 70 * - 33 ) + + 88 * + 85 END * COUNT( * ) END, 78 ) - + 74 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + COALESCE ( - + CASE - CASE - 32 WHEN + 12 * + COALESCE ( + - ( + CASE - 38 WHEN - + 60 + + + 65 * + + 0 THEN + 85 / - ( + COUNT ( * ) ) ELSE NULL END ), - 22 * + 40 / + + 67, + 39 ) THEN - COALESCE ( + 91, 9 ) WHEN - SUM ( DISTINCT 91 ) THEN AVG ( + 32 ) * 96 ELSE NULL END WHEN + 78 THEN NULL WHEN 39 * - ( - 10 / + 89 ) THEN NULL WHEN COUNT ( * ) THEN COALESCE ( + 80, - 67 ) ELSE 38 - CASE 31 WHEN COALESCE ( 81, - 80 + 46 * - AVG ( + 37 ) ) THEN NULL WHEN 27 + 55 THEN 22 * - MAX ( 70 * - 33 ) + + 88 * + 85 END * COUNT ( * ) END, 78 ) - + 74 AS col1
----
4

query I rowsort
SELECT 47 - - - 78 AS col0
----
-31

query I rowsort
SELECT 7 * + 31
----
217

query II rowsort
SELECT DISTINCT - 17 AS col1, + 21 AS col1
----
-17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT - COALESCE ( - 23, - - SUM( 86 ), - 13 * 29, COUNT( DISTINCT + 8 ) + - 3 + COUNT( * ) * + + 80 ) * + 14 * 52
----
16744

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT - COALESCE ( - 23, - - SUM ( 86 ), - 13 * 29, COUNT ( DISTINCT + 8 ) + - 3 + COUNT ( * ) * + + 80 ) * + 14 * 52
----
16744

onlyif mysql # aggregate syntax: 
query II rowsort label-8456
SELECT ALL - 33 AS col1, COUNT( DISTINCT + + 53 ) AS col2
----
-33
1

skipif mysql # not compatible
query II rowsort label-8456
SELECT ALL - 33 AS col1, COUNT ( DISTINCT + + 53 ) AS col2
----
-33
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8457
SELECT DISTINCT - COUNT( * ) col1, - 82
----
-1
-82

skipif mysql # not compatible
query II rowsort label-8457
SELECT DISTINCT - COUNT ( * ) col1, - 82
----
-1
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT ALL - 27 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - 27 / + + 36
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 87 + + - 26 - 43 / 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 87 + + - 26 - 43 / 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + COUNT( ALL + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-8460
SELECT + COUNT ( ALL + 85 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8461
SELECT 87 + 9 + + 13 - + COUNT( * ) * - 30 * COUNT( * ) + + 13 DIV 73 DIV + 37 * 55 * - + 6 * + + 11 * + + CASE - 66 WHEN - + 71 * + 19 THEN NULL WHEN + CASE CASE COUNT( * ) WHEN + COUNT( - 28 ) * 68 THEN 96 WHEN 24 * - COUNT( - CAST( NULL AS DECIMAL ) ) THEN NULL END WHEN CAST( NULL AS SIGNED ) - + COUNT( 63 ) THEN NULL WHEN 58 + SUM( 64 ) THEN 83 ELSE NULL END DIV - COUNT( * ) THEN NULL ELSE - 22 * + 85 END AS col1
----
139

skipif mysql # not compatible
query I rowsort label-8461
SELECT 87 + 9 + + 13 - + COUNT ( * ) * - 30 * COUNT ( * ) + + 13 / 73 / + 37 * 55 * - + 6 * + + 11 * + + CASE - 66 WHEN - + 71 * + 19 THEN NULL WHEN + CASE CASE COUNT ( * ) WHEN + COUNT ( - 28 ) * 68 THEN 96 WHEN 24 * - COUNT ( - CAST ( NULL AS REAL ) ) THEN NULL END WHEN CAST ( NULL AS INTEGER ) - + COUNT ( 63 ) THEN NULL WHEN 58 + SUM ( 64 ) THEN 83 ELSE NULL END / - COUNT ( * ) THEN NULL ELSE - 22 * + 85 END AS col1
----
139

query I rowsort
SELECT 23 * - - 92 AS col1
----
2116

query I rowsort
SELECT ALL + 36 + + 80 + ( + 99 ) AS col2
----
215

query I rowsort
SELECT 3 + - + 94
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8465
SELECT DISTINCT + COALESCE ( + 76, 48 + + SUM( ALL + - 82 ), - CAST( - - ( - - 84 ) AS SIGNED ), - + 88 ) * - COUNT( * ), + 30 col1
----
-76
30

skipif mysql # not compatible
query II rowsort label-8465
SELECT DISTINCT + COALESCE ( + 76, 48 + + SUM ( ALL + - 82 ), - CAST ( - - ( - - 84 ) AS INTEGER ), - + 88 ) * - COUNT ( * ), + 30 col1
----
-76
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 45 AS col2
----
NULL

query I rowsort
SELECT ALL + 37 + - 28 AS col0
----
9

query I rowsort
SELECT DISTINCT 25 + + 84 * + + 1 AS col1
----
109

query I rowsort
SELECT DISTINCT + 19 + - 94
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - COUNT( * ) * + 65
----
-65

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( * ) * + 65
----
-65

query I rowsort
SELECT - + ( 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT - COUNT( * ) + - + 33
----
-34

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - COUNT ( * ) + - + 33
----
-34

query I rowsort
SELECT ALL - - 85 + - 82 col0
----
3

query I rowsort
SELECT 26 * 3 + + - 78 + - + 87
----
-87

query I rowsort
SELECT ALL - - 93 - + + ( + - CASE - 91 WHEN - 81 THEN + 50 ELSE 25 END )
----
118

query I rowsort
SELECT + 77 * 23 + + 29 AS col0
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + + COUNT( * ) - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-8477
SELECT + + COUNT ( * ) - + 81
----
-80

query I rowsort
SELECT DISTINCT - + 43 - + 22
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL - CASE - + 34 WHEN + COUNT( * ) THEN - 57 ELSE + - ( 40 ) * - 25 END AS col0
----
-1000

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - CASE - + 34 WHEN + COUNT ( * ) THEN - 57 ELSE + - ( 40 ) * - 25 END AS col0
----
-1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8480
SELECT + - 42 + - 1 + + 16 + + + CASE - 54 WHEN + COUNT( * ) THEN NULL WHEN - + ( - 38 ) + 16 + + 18 THEN + 35 WHEN - COALESCE ( - 92, + 48 + + + 51 + AVG ( ALL + 83 ) * + - 34 * - COUNT( * ), 12 ) - CAST( - CASE - 65 WHEN COUNT( * ) * 56 THEN NULL WHEN CAST( 59 AS SIGNED ) + + 29 * 29 THEN + 53 ELSE COALESCE ( COALESCE ( - 11, + CAST( NULL AS SIGNED ) - - MIN( 23 - 12 ), 65 / + ( + 21 * + AVG ( 57 ) ) ), 91 / 91 ) + + 59 END AS DECIMAL ) THEN NULL ELSE NULL END * 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT + - 42 + - 1 + + 16 + + + CASE - 54 WHEN + COUNT ( * ) THEN NULL WHEN - + ( - 38 ) + 16 + + 18 THEN + 35 WHEN - COALESCE ( - 92, + 48 + + + 51 + AVG ( ALL + 83 ) * + - 34 * - COUNT ( * ), 12 ) - CAST ( - CASE - 65 WHEN COUNT ( * ) * 56 THEN NULL WHEN CAST ( 59 AS INTEGER ) + + 29 * 29 THEN + 53 ELSE COALESCE ( COALESCE ( - 11, + CAST ( NULL AS INTEGER ) - - MIN ( 23 - 12 ), 65 / + ( + 21 * + AVG ( 57 ) ) ), 91 / 91 ) + + 59 END AS REAL ) THEN NULL ELSE NULL END * 44 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT + 4 / - ( 34 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT + 4 / - ( 34 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 41 col0, + ( - 88 ) AS col0
----
-41
-88

query I rowsort
SELECT + + 67 * + 71
----
4757

query I rowsort
SELECT ALL + ( 28 ) col2
----
28

query I rowsort
SELECT + 66 + 14 * - + 22
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - 63 * - ( 46 ) * - SUM( DISTINCT 51 ) - 90 AS col2
----
-147888

skipif mysql # not compatible
query I rowsort label-8486
SELECT - 63 * - ( 46 ) * - SUM ( DISTINCT 51 ) - 90 AS col2
----
-147888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT - 84 * - - ( - 46 ) + + ( CAST( NULL AS SIGNED ) ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - 84 * - - ( - 46 ) + + ( CAST ( NULL AS INTEGER ) ) * + 41 AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - - 85
----
3825

query I rowsort
SELECT + 29 * - 84 + + 29 + - 26
----
-2433

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + COALESCE ( - COALESCE ( 2, COUNT( * ) ), - + 65, + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8490
SELECT + COALESCE ( - COALESCE ( 2, COUNT ( * ) ), - + 65, + COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT ALL + 68 AS col0, 13 * COUNT( * ) AS col0
----
68
13

skipif mysql # not compatible
query II rowsort label-8491
SELECT ALL + 68 AS col0, 13 * COUNT ( * ) AS col0
----
68
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT - 73 / + 71 * + ( 65 ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 73 / + 71 * + ( 65 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 39, - 97 AS col2
----
39
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL 68 * - 90 DIV + 6
----
-1020

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 68 * - 90 / + 6
----
-1020

query I rowsort
SELECT + 74 * - 99
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT CASE + SUM( DISTINCT + + 86 ) WHEN - 69 + - 20 + - 52 * ( - - 26 ) THEN NULL WHEN 78 THEN + 84 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT CASE + SUM ( DISTINCT + + 86 ) WHEN - 69 + - 20 + - 52 * ( - - 26 ) THEN NULL WHEN 78 THEN + 84 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + COUNT( ALL 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8497
SELECT + COUNT ( ALL 92 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT - 85 * - COUNT( * ) + - 34 DIV + 64 * + 32
----
85

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 85 * - COUNT ( * ) + - 34 / + 64 * + 32
----
85

query I rowsort
SELECT ALL + ( + 49 ) * + 81 + ( + 30 ) * + 22 + + 67 AS col2
----
4696

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT COALESCE ( + - SUM( ALL 34 ), - COUNT( * ) ) AS col0, - 76 AS col1
----
-34
-76

skipif mysql # not compatible
query II rowsort label-8500
SELECT COALESCE ( + - SUM ( ALL 34 ), - COUNT ( * ) ) AS col0, - 76 AS col1
----
-34
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8501
SELECT 41 * + 42 + - 3 * - CAST( NULL AS DECIMAL ) * - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT 41 * + 42 + - 3 * - CAST ( NULL AS REAL ) * - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8502
SELECT + 44 * - COUNT( * ), + 48 AS col1
----
-44
48

skipif mysql # not compatible
query II rowsort label-8502
SELECT + 44 * - COUNT ( * ), + 48 AS col1
----
-44
48

onlyif mysql # DIV for integer division: 
query II rowsort label-8503
SELECT DISTINCT + 55, 57 DIV - - 50 AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-8503
SELECT DISTINCT + 55, 57 / - - 50 AS col2
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT DISTINCT - 92 * 52 + + SUM( DISTINCT + - 48 ) * - 97
----
-128

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - 92 * 52 + + SUM ( DISTINCT + - 48 ) * - 97
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT + 14 * CAST( AVG ( + - 98 ) AS SIGNED ) + - + 14 AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT + 14 * CAST ( AVG ( + - 98 ) AS INTEGER ) + - + 14 AS col1
----
-1386

query I rowsort
SELECT ALL 59 * + + 27 + + 15
----
1608

query II rowsort
SELECT + 88, 48 AS col0
----
88
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8508
SELECT ALL SUM( DISTINCT + + 10 ) DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL SUM ( DISTINCT + + 10 ) / + 88 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT + 60 DIV - ( - COUNT( DISTINCT + 74 ) )
----
60

skipif mysql # not compatible
query I rowsort label-8509
SELECT + 60 / - ( - COUNT ( DISTINCT + 74 ) )
----
60

query I rowsort
SELECT - 66 * 33 * 99
----
-215622

query I rowsort
SELECT + 98 * - + 48 * ( - 66 )
----
310464

query I rowsort
SELECT DISTINCT - - 95 * 63
----
5985

query I rowsort
SELECT ALL + + 33 - - - NULLIF ( - ( - 71 ), 72 ) + 96 + - 16 * - + 10
----
218

query I rowsort
SELECT ALL + 34 - + 3
----
31

query I rowsort
SELECT - 25 - 66
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT DISTINCT + 7 * + ( 40 ) - + 95 + + CAST( + 42 AS SIGNED ) + - - 81 * 22 * + COUNT( * ) + + - 47 + 5 + COUNT( * ) * + 90 + - - 75 + + 9 * 16 * + 50
----
9332

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT + 7 * + ( 40 ) - + 95 + + CAST ( + 42 AS INTEGER ) + - - 81 * 22 * + COUNT ( * ) + + - 47 + 5 + COUNT ( * ) * + 90 + - - 75 + + 9 * 16 * + 50
----
9332

query I rowsort
SELECT DISTINCT - - 91 * + 15 AS col0
----
1365

query I rowsort
SELECT - - 88 * - 95
----
-8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT - SUM( 12 ) + COUNT( * ) + + 94 * CAST( NULL AS SIGNED ) * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT - SUM ( 12 ) + COUNT ( * ) + + 94 * CAST ( NULL AS INTEGER ) * + 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT - + ( - NULLIF ( + 85, + 94 ) ) - - - 4 + - CAST( - - 25 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-8520
SELECT - + ( - NULLIF ( + 85, + 94 ) ) - - - 4 + - CAST ( - - 25 AS INTEGER )
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8521
SELECT + 0 AS col1, ( - + MAX( ALL CAST( NULL AS DECIMAL ) ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8521
SELECT + 0 AS col1, ( - + MAX ( ALL CAST ( NULL AS REAL ) ) )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8522
SELECT ALL + 40 AS col2, + CAST( NULL AS DECIMAL ) * + 84 + CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8522
SELECT ALL + 40 AS col2, + CAST ( NULL AS REAL ) * + 84 + CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT DISTINCT 90, + 72 + 21 * + + COUNT( * ) AS col0
----
90
93

skipif mysql # not compatible
query II rowsort label-8523
SELECT DISTINCT 90, + 72 + 21 * + + COUNT ( * ) AS col0
----
90
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL ( + 83 ) * + 57 + - + 66 + + - ( MIN( ALL 50 ) ) / - ( + + CAST( NULL AS SIGNED ) ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL ( + 83 ) * + 57 + - + 66 + + - ( MIN ( ALL 50 ) ) / - ( + + CAST ( NULL AS INTEGER ) ) + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT - + 61 * + COUNT( DISTINCT + 31 )
----
-61

skipif mysql # not compatible
query I rowsort label-8525
SELECT - + 61 * + COUNT ( DISTINCT + 31 )
----
-61

query I rowsort
SELECT ALL 22 * + 70 col1
----
1540

query I rowsort
SELECT + CASE + 4 WHEN + + 80 THEN 65 / 86 + + 28 * 27 * 54 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - SUM( ALL - 88 ) * - - 91 AS col0
----
8008

skipif mysql # not compatible
query I rowsort label-8528
SELECT - SUM ( ALL - 88 ) * - - 91 AS col0
----
8008

query I rowsort
SELECT + 80 * + 45 col2
----
3600

query I rowsort
SELECT - 50 * COALESCE ( - - 97, - 26 )
----
-4850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT ALL + 80 DIV 47 + - - NULLIF ( + COUNT( * ), + 73 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + 80 / 47 + - - NULLIF ( + COUNT ( * ), + 73 ) AS col0
----
2

query II rowsort
SELECT - 68 - + 47 col1, 3 AS col1
----
-115
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + COUNT( + + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8533
SELECT + COUNT ( + + 42 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8534
SELECT CAST( - 99 AS SIGNED ), 35 AS col1
----
-99
35

skipif mysql # not compatible
query II rowsort label-8534
SELECT CAST ( - 99 AS INTEGER ), 35 AS col1
----
-99
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT - 43 * - CAST( NULL AS SIGNED ) - + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT - 43 * - CAST ( NULL AS INTEGER ) - + 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT + 50 * NULLIF ( - 92, - - COUNT( * ) ) * 20 DIV - 79
----
1164

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 50 * NULLIF ( - 92, - - COUNT ( * ) ) * 20 / - 79
----
1164

query I rowsort
SELECT ALL ( 33 ) * - 67 col0
----
-2211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT ALL - CASE - 24 WHEN COUNT( * ) THEN + + 37 + + + 21 + + 93 + - + 99 / - 2 WHEN 97 + + 41 THEN 93 * - CAST( NULL AS SIGNED ) * 65 * + - 27 * 27 * + CASE 37 WHEN 67 THEN - 6 * + - ( + 27 ) * + + 76 * MAX( 91 ) + + 27 + 98 * + ( 21 ) WHEN 81 / 27 + 65 THEN 9 * 74 ELSE NULL END + CASE 52 + 96 WHEN + 9 * + CAST( NULL AS SIGNED ) + 63 THEN ( 33 ) WHEN - 10 THEN 32 WHEN - 47 * 52 + 2 THEN NULLIF ( 45, + 66 ) END END * 66 + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - CASE - 24 WHEN COUNT ( * ) THEN + + 37 + + + 21 + + 93 + - + 99 / - 2 WHEN 97 + + 41 THEN 93 * - CAST ( NULL AS INTEGER ) * 65 * + - 27 * 27 * + CASE 37 WHEN 67 THEN - 6 * + - ( + 27 ) * + + 76 * MAX ( 91 ) + + 27 + 98 * + ( 21 ) WHEN 81 / 27 + 65 THEN 9 * 74 ELSE NULL END + CASE 52 + 96 WHEN + 9 * + CAST ( NULL AS INTEGER ) + 63 THEN ( 33 ) WHEN - 10 THEN 32 WHEN - 47 * 52 + 2 THEN NULLIF ( 45, + 66 ) END END * 66 + - 7
----
NULL

query I rowsort
SELECT ( + + COALESCE ( - - 52, 47 ) )
----
52

query I rowsort
SELECT + ( + CASE - - 7 WHEN - 12 THEN NULL ELSE ( + 63 ) END ) AS col0
----
63

query I rowsort
SELECT + 60 + + - 65
----
-5

query I rowsort
SELECT ALL - 38 * + 61 - + 81
----
-2399

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + 54 + COALESCE ( + COUNT( * ), + 77 ) - + + 20 * 81 AS col1
----
-1565

skipif mysql # not compatible
query I rowsort label-8543
SELECT + 54 + COALESCE ( + COUNT ( * ), + 77 ) - + + 20 * 81 AS col1
----
-1565

query I rowsort
SELECT DISTINCT 84 * - + 26 * + 67 + - 81 AS col0
----
-146409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT CAST( - 55 AS SIGNED ) * - 93 AS col2
----
5115

skipif mysql # not compatible
query I rowsort label-8545
SELECT CAST ( - 55 AS INTEGER ) * - 93 AS col2
----
5115

query I rowsort
SELECT 12 + 11
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT + CAST( + 13 AS SIGNED ) + + + CASE 91 WHEN - ( + + 80 ) + - 32 THEN - 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + CAST ( + 13 AS INTEGER ) + + + CASE 91 WHEN - ( + + 80 ) + - 32 THEN - 37 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 76 * - - COALESCE ( - 75, 72 + + 92 + 36 ) * - 21 + 17
----
119717

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT DISTINCT 38 DIV + - 2
----
-19

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT 38 / + - 2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT 81 + COUNT( * ) + + 15 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT 81 + COUNT ( * ) + + 15 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT ALL + - COUNT( * ) * - 26 AS col2, 28 AS col0
----
26
28

skipif mysql # not compatible
query II rowsort label-8551
SELECT ALL + - COUNT ( * ) * - 26 AS col2, 28 AS col0
----
26
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT DISTINCT + + 76 * 97 DIV + - MIN( - + 37 ) AS col2
----
199

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT + + 76 * 97 / + - MIN ( - + 37 ) AS col2
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT ALL - 59 + 4 + - 27 DIV + 37 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 59 + 4 + - 27 / + 37 AS col1
----
-55

query I rowsort
SELECT ALL - 1 * + 95 AS col1
----
-95

query I rowsort
SELECT ALL + + 0 + 11 + - 25
----
-14

query II rowsort
SELECT ALL - ( + 45 ) col1, 33 + - 54 * + 12
----
-45
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL - COUNT( * ) + + + ( - 63 )
----
-64

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - COUNT ( * ) + + + ( - 63 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT 4 + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8558
SELECT 4 + COUNT ( * ) AS col2
----
5

query II rowsort
SELECT 26 AS col0, ( + 96 ) AS col0
----
26
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8560
SELECT - 97 AS col0, - CASE + - MIN( - - 41 ) WHEN 40 + - + 87 THEN + - 59 WHEN + + 51 DIV + - 20 * 33 + + 63 - - ( - + 74 ) + MIN( ALL CAST( NULL AS SIGNED ) ) + + 79 * - - COUNT( * ) THEN + 57 DIV - - CASE + 90 WHEN - 40 THEN + + SUM( - - 30 ) WHEN + 23 THEN ( SUM( DISTINCT + 9 ) ) ELSE NULL END * - 93 ELSE 14 END * 74 AS col2
----
-97
-1036

skipif mysql # not compatible
query II rowsort label-8560
SELECT - 97 AS col0, - CASE + - MIN ( - - 41 ) WHEN 40 + - + 87 THEN + - 59 WHEN + + 51 / + - 20 * 33 + + 63 - - ( - + 74 ) + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 79 * - - COUNT ( * ) THEN + 57 / - - CASE + 90 WHEN - 40 THEN + + SUM ( - - 30 ) WHEN + 23 THEN ( SUM ( DISTINCT + 9 ) ) ELSE NULL END * - 93 ELSE 14 END * 74 AS col2
----
-97
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT COUNT( * ) + 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8561
SELECT COUNT ( * ) + 24 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL + MIN( DISTINCT + 25 ) + + 97 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + MIN ( DISTINCT + 25 ) + + 97 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL + COUNT( * ) + + 90 + MIN( + - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + COUNT ( * ) + + 90 + MIN ( + - 91 )
----
0

query I rowsort
SELECT 3 + + + 15 + - + 61
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + 77 * - 22 * + + 0 * + COUNT( * ) * 63 * 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 77 * - 22 * + + 0 * + COUNT ( * ) * 63 * 1 AS col0
----
0

query II rowsort
SELECT + 18, + 35 - + + 76 * - + 61 * + 72 col0
----
18
333827

query I rowsort
SELECT ALL 8 + - 9 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT 69 * MIN( - ( - CAST( NULL AS SIGNED ) ) ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT 69 * MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) + - 0
----
NULL

query II rowsort
SELECT 42 AS col0, - 95
----
42
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8570
SELECT - 26 DIV + + 15 + + + MAX( + 26 ) * ( 39 ) - - + 32 + - ( - + ( + MAX( 68 ) ) ) AS col2, - 80
----
1113
-80

skipif mysql # not compatible
query II rowsort label-8570
SELECT - 26 / + + 15 + + + MAX ( + 26 ) * ( 39 ) - - + 32 + - ( - + ( + MAX ( 68 ) ) ) AS col2, - 80
----
1113
-80

query II rowsort
SELECT + 29, 29 + 6 + + 86 AS col1
----
29
121

query I rowsort
SELECT 48 + 84
----
132

query II rowsort
SELECT + 32, 12 + - - 16 col0
----
32
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL - CAST( - 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - CAST ( - 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8575
SELECT COUNT( * ) DIV - 59 * + 82 AS col2, 76 + - - 52 + - 55, + 37 + 6 + - ( + + 8 ) AS col2
----
0
73
35

skipif mysql # not compatible
query III rowsort label-8575
SELECT COUNT ( * ) / - 59 * + 82 AS col2, 76 + - - 52 + - 55, + 37 + 6 + - ( + + 8 ) AS col2
----
0
73
35

query II rowsort
SELECT DISTINCT - - 42 AS col0, 1 AS col1
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT - + MIN( DISTINCT - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - + MIN ( DISTINCT - 74 )
----
74

query I rowsort
SELECT 11 * 93 col0
----
1023

query II rowsort
SELECT - 79 col2, - 16 * - 99
----
-79
1584

query II rowsort
SELECT + 90, 58 AS col0
----
90
58

query I rowsort
SELECT ALL 27 * + 80 col1
----
2160

query I rowsort
SELECT 90 * + + 63 + - 66 AS col0
----
5604

query I rowsort
SELECT + 66 + 45
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL COUNT( + + 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL COUNT ( + + 71 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8585
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8585
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 3 AS col0
----
NULL
-3

query I rowsort
SELECT + 23 - - + 52
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT - 32 * + - COALESCE ( + + 15, 41 ) DIV COUNT( * ) + 83 AS col1
----
563

skipif mysql # not compatible
query I rowsort label-8587
SELECT - 32 * + - COALESCE ( + + 15, 41 ) / COUNT ( * ) + 83 AS col1
----
563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT DISTINCT + 72 * CAST( NULL AS SIGNED ) + 85 + + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + 72 * CAST ( NULL AS INTEGER ) + 85 + + - 66
----
NULL

query I rowsort
SELECT DISTINCT 85 + + - 44 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL + CASE 36 WHEN 54 - + NULLIF ( 50, + 72 - - + COALESCE ( - 18, + 27 / + + 61 ) + - 76 - + ( 55 ) * - 94 ) * COUNT( * ) THEN + 68 + - 94 * + - 28 WHEN COUNT( * ) / CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) THEN 85 / 74 - - 37 END + COALESCE ( + 90, 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + CASE 36 WHEN 54 - + NULLIF ( 50, + 72 - - + COALESCE ( - 18, + 27 / + + 61 ) + - 76 - + ( 55 ) * - 94 ) * COUNT ( * ) THEN + 68 + - 94 * + - 28 WHEN COUNT ( * ) / CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) THEN 85 / 74 - - 37 END + COALESCE ( + 90, 12 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 47 + - 89 + + COALESCE ( 90, 7 ) * 96 + 76 + + 0 AS col1, 52 - 7 * - 58 * - 68 * + + 73 * + - 20
----
8674
40307732

query I rowsort
SELECT ALL - 48 + + 70 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT NULLIF ( + NULLIF ( - 66, + - 97 + - CAST( NULL AS SIGNED ) * NULLIF ( + 70, - 72 ) * - 86 * - 91 + - 37 ), 28 ) * 37 + 30 + - MAX( ( + 8 ) ) - + 71 * + 88 * + 92 AS col1
----
-577236

skipif mysql # not compatible
query I rowsort label-8593
SELECT NULLIF ( + NULLIF ( - 66, + - 97 + - CAST ( NULL AS INTEGER ) * NULLIF ( + 70, - 72 ) * - 86 * - 91 + - 37 ), 28 ) * 37 + 30 + - MAX ( ( + 8 ) ) - + 71 * + 88 * + 92 AS col1
----
-577236

query II rowsort
SELECT 39 + - 3, 23 AS col2
----
36
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8595
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + ( + 43 ) - 3 * - 19 + + 42 AS col0, 53 * - + 24 + - CAST( - 67 AS DECIMAL ) * - COUNT( * ) * CAST( NULL AS SIGNED ) * + - 47 + + - ( - ( + - COUNT( * ) ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8595
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + ( + 43 ) - 3 * - 19 + + 42 AS col0, 53 * - + 24 + - CAST ( - 67 AS REAL ) * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 47 + + - ( - ( + - COUNT ( * ) ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL - 37 + - - MIN( DISTINCT + 0 )
----
-37

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - 37 + - - MIN ( DISTINCT + 0 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT 44 * + 60 * - NULLIF ( 71, + - 14 ) * - + COUNT( * ) AS col2
----
187440

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 44 * + 60 * - NULLIF ( 71, + - 14 ) * - + COUNT ( * ) AS col2
----
187440

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - 77 * 42 * + 74 - - COUNT( * ) + + ( + 21 )
----
-239294

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - 77 * 42 * + 74 - - COUNT ( * ) + + ( + 21 )
----
-239294

query I rowsort
SELECT DISTINCT - NULLIF ( - 79, - 94 )
----
79

query I rowsort
SELECT DISTINCT COALESCE ( + 76, + 15, + - 80 ) * - + 53 + - 19 * - - 34
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT 42 * COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8601
SELECT 42 * COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT SUM( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8602
SELECT SUM ( + 62 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT CAST( NULL AS SIGNED ) * - + 35 * - ( - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT CAST ( NULL AS INTEGER ) * - + 35 * - ( - 42 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT MAX( - + 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8604
SELECT MAX ( - + 71 ) AS col2
----
-71

query I rowsort
SELECT - 97 * 35 + - 20
----
-3415

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT MAX( ALL + - 20 ) * + 10
----
-200

skipif mysql # not compatible
query I rowsort label-8606
SELECT MAX ( ALL + - 20 ) * + 10
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT 47 / 76 * - + 45 + - - 29 * + 89 * + - NULLIF ( - CAST( NULL AS SIGNED ), - + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT 47 / 76 * - + 45 + - - 29 * + 89 * + - NULLIF ( - CAST ( NULL AS INTEGER ), - + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT - 5 * - CASE - ( + + 51 ) WHEN + 74 THEN + MAX( + 58 ) / - - 85 * 91 * - AVG ( DISTINCT + 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - 5 * - CASE - ( + + 51 ) WHEN + 74 THEN + MAX ( + 58 ) / - - 85 * 91 * - AVG ( DISTINCT + 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 56 * 10 col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL + - COUNT( * ) * + - 4
----
4

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + - COUNT ( * ) * + - 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT DISTINCT + CASE 5 WHEN - + 45 THEN CAST( - + 52 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + CASE 5 WHEN - + 45 THEN CAST ( - + 52 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 84 * 4
----
-336

onlyif mysql # DIV for integer division: 
query II rowsort label-8613
SELECT - 72 + + 43, - 57 DIV - + 40 AS col2
----
-29
1

skipif mysql # not compatible
query II rowsort label-8613
SELECT - 72 + + 43, - 57 / - + 40 AS col2
----
-29
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT + + 84 DIV COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8614
SELECT + + 84 / COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - CASE + COUNT( * ) WHEN - - 96 THEN - 38 ELSE + + 5 - 16 END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8615
SELECT - CASE + COUNT ( * ) WHEN - - 96 THEN - 38 ELSE + + 5 - 16 END AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT - - 15 + + CAST( + 4 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8616
SELECT - - 15 + + CAST ( + 4 AS INTEGER ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + - CASE + - 84 WHEN - 69 THEN + COUNT( * ) WHEN - + 22 THEN NULL ELSE NULL END / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT + - CASE + - 84 WHEN - 69 THEN + COUNT ( * ) WHEN - + 22 THEN NULL ELSE NULL END / + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + 45 + - - COUNT( * ) * - 12 * COUNT( ALL + ( + 75 ) ) + + + 34 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + 45 + - - COUNT ( * ) * - 12 * COUNT ( ALL + ( + 75 ) ) + + + 34 AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT - 17 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 17 / - 49 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8620
SELECT DISTINCT + COUNT( + 13 ) AS col2, CAST( NULL AS SIGNED ) * + 45
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT + COUNT ( + 13 ) AS col2, CAST ( NULL AS INTEGER ) * + 45
----
1
NULL

query II rowsort
SELECT ALL + + 29 + + 79 AS col1, - 30 AS col1
----
108
-30

query I rowsort
SELECT DISTINCT 79 * 81 + 8 + + COALESCE ( - + 24, + - 17 * 18 ) + - + 72 AS col2
----
6311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL - CASE + 5 WHEN 17 * CAST( - 99 AS SIGNED ) * + 82 * + 66 + COUNT( * ) + COUNT( * ) / + - 17 THEN - - COALESCE ( 19, - 43 ) * COUNT( 26 ) * + - 82 + - 90 - - 50 * - 57 * - - 9 WHEN + - 64 THEN + COALESCE ( COUNT( * ), - 99 - COUNT( * ), 70 * - 80 ) * 77 WHEN + CAST( NULL AS SIGNED ) THEN + 53 END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - CASE + 5 WHEN 17 * CAST ( - 99 AS INTEGER ) * + 82 * + 66 + COUNT ( * ) + COUNT ( * ) / + - 17 THEN - - COALESCE ( 19, - 43 ) * COUNT ( 26 ) * + - 82 + - 90 - - 50 * - 57 * - - 9 WHEN + - 64 THEN + COALESCE ( COUNT ( * ), - 99 - COUNT ( * ), 70 * - 80 ) * 77 WHEN + CAST ( NULL AS INTEGER ) THEN + 53 END + 41
----
NULL

query I rowsort
SELECT - + 88 + 37 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + + MAX( + 59 ) * - 32
----
-1888

skipif mysql # not compatible
query I rowsort label-8625
SELECT + + MAX ( + 59 ) * - 32
----
-1888

query I rowsort
SELECT ALL - 19 + + 82 * + 98
----
8017

query II rowsort
SELECT 51 AS col1, 53 AS col0
----
51
53

query I rowsort
SELECT ALL ( - 6 ) * - 68 + + 26
----
434

query I rowsort
SELECT + 45 + 63
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + 21 + + - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8630
SELECT + 21 + + - COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT ALL 5 AS col0, 35 + COUNT( DISTINCT - 31 ) AS col0
----
5
36

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL 5 AS col0, 35 + COUNT ( DISTINCT - 31 ) AS col0
----
5
36

query I rowsort
SELECT - NULLIF ( + 51, 66 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL ( + ( - NULLIF ( + 35, + 82 + + + MAX( + - 91 ) ) ) ) - - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL ( + ( - NULLIF ( + 35, + 82 + + + MAX ( + - 91 ) ) ) ) - - COUNT ( * ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT DISTINCT 26 DIV 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT 26 / 22 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + 91 + + MIN( 69 ) * + + 91
----
6370

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 91 + + MIN ( 69 ) * + + 91
----
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT CASE - NULLIF ( + 29, + COALESCE ( + 10, + - COUNT( * ) ) ) WHEN 50 * + 30 + + 29 THEN - 37 END - - - 24 * - + 62 - + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT CASE - NULLIF ( + 29, + COALESCE ( + 10, + - COUNT ( * ) ) ) WHEN 50 * + 30 + + 29 THEN - 37 END - - - 24 * - + 62 - + 46 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT + 67 + - - 38 DIV - 73
----
67

skipif mysql # not compatible
query I rowsort label-8637
SELECT + 67 + - - 38 / - 73
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8638
SELECT ALL 73 DIV - 21 * + COUNT( DISTINCT + 58 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL 73 / - 21 * + COUNT ( DISTINCT + 58 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT - COUNT( * ) + + COUNT( - 12 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT - COUNT ( * ) + + COUNT ( - 12 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - 18 / - AVG ( DISTINCT + + 47 ) + 42 + - - 24 * - + CASE - 61 WHEN - + 52 * + COUNT( * ) THEN + - 25 * + 29 + - + 73 * 78 + 63 - - + 31 * + + 51 * 32 - 29 + + 54 END / - 18 + + 23 + - ( + - 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 18 / - AVG ( DISTINCT + + 47 ) + 42 + - - 24 * - + CASE - 61 WHEN - + 52 * + COUNT ( * ) THEN + - 25 * + 29 + - + 73 * 78 + 63 - - + 31 * + + 51 * 32 - 29 + + 54 END / - 18 + + 23 + - ( + - 36 ) AS col0
----
NULL

query I rowsort
SELECT - 20 * + - 65
----
1300

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT ALL 25 * 95 DIV - 97
----
-24

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL 25 * 95 / - 97
----
-24

query I rowsort
SELECT + 31 + - 27 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ALL 37 DIV 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL 37 / 15 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL + NULLIF ( + + 70, - 44 ), 23 * - COUNT( * ) AS col0
----
70
-23

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL + NULLIF ( + + 70, - 44 ), 23 * - COUNT ( * ) AS col0
----
70
-23

query II rowsort
SELECT DISTINCT + 89, + 7 AS col0
----
89
7

query I rowsort
SELECT ALL - 15 * + 2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8648
SELECT + COUNT( ALL - CAST( 44 AS SIGNED ) ) AS col0, + MIN( 28 ) AS col1
----
1
28

skipif mysql # not compatible
query II rowsort label-8648
SELECT + COUNT ( ALL - CAST ( 44 AS INTEGER ) ) AS col0, + MIN ( 28 ) AS col1
----
1
28

query I rowsort
SELECT - - 30 + - 94 col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT + 74 AS col2, MAX( + 35 ) + COUNT( * ) AS col2
----
74
36

skipif mysql # not compatible
query II rowsort label-8650
SELECT + 74 AS col2, MAX ( + 35 ) + COUNT ( * ) AS col2
----
74
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT ALL - 15 * + COALESCE ( 47, 62 * - COALESCE ( SUM( DISTINCT - - 19 ), 34 DIV + - COUNT( * ) ) ) * - 96 + - 24 + + - 19 - - - 85 - - 84 + COUNT( * ) AS col0
----
67637

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 15 * + COALESCE ( 47, 62 * - COALESCE ( SUM ( DISTINCT - - 19 ), 34 / + - COUNT ( * ) ) ) * - 96 + - 24 + + - 19 - - - 85 - - 84 + COUNT ( * ) AS col0
----
67637

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT ALL - + COUNT( * ) * COALESCE ( 16, + ( - NULLIF ( + 10, + NULLIF ( COUNT( * ), - CASE WHEN - 87 = 47 THEN COUNT( * ) ELSE + 77 * - ( COUNT( DISTINCT + 66 ) ) / 87 END * + 97 ) ) ) ) + - - 14 AS col2, 69 AS col0
----
-2
69

skipif mysql # not compatible
query II rowsort label-8652
SELECT ALL - + COUNT ( * ) * COALESCE ( 16, + ( - NULLIF ( + 10, + NULLIF ( COUNT ( * ), - CASE WHEN - 87 = 47 THEN COUNT ( * ) ELSE + 77 * - ( COUNT ( DISTINCT + 66 ) ) / 87 END * + 97 ) ) ) ) + - - 14 AS col2, 69 AS col0
----
-2
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL + 86 * - ( + COUNT( * ) ) + + 2 * 10 * + + CAST( + - 35 AS SIGNED ) + + 38 AS col2
----
-748

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + 86 * - ( + COUNT ( * ) ) + + 2 * 10 * + + CAST ( + - 35 AS INTEGER ) + + 38 AS col2
----
-748

query I rowsort
SELECT + + NULLIF ( 84, + 77 * + 39 * - 84 + 96 ) col1
----
84

query I rowsort
SELECT ALL 39 * + + 97 + - - 42 - - 38 * - 60 * - 5 AS col1
----
15225

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - - COUNT( * ) * 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8656
SELECT - - COUNT ( * ) * 27 AS col2
----
27

query I rowsort
SELECT ALL - 22 * 46
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT COUNT( + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT COUNT ( + 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT 67 * 37 * 33 * 57 * - COALESCE ( + 97, + 12 + 82 + + + ( + - 83 ), - NULLIF ( + 49, + MIN( DISTINCT 11 ) ) + - 64 ) - - 26 * - 13 col0
----
-452311241

skipif mysql # not compatible
query I rowsort label-8659
SELECT 67 * 37 * 33 * 57 * - COALESCE ( + 97, + 12 + 82 + + + ( + - 83 ), - NULLIF ( + 49, + MIN ( DISTINCT 11 ) ) + - 64 ) - - 26 * - 13 col0
----
-452311241

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT - 66 AS col0, CASE + ( + 84 ) WHEN - 41 + - 38 THEN 48 * 76 + - 12 + 38 + - - COUNT( * ) * 69 * + MIN( ALL - 0 ) + - 44 END / COALESCE ( + - 92, + 60 + + + 74 + 66 - + 94, - 3 )
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-8660
SELECT - 66 AS col0, CASE + ( + 84 ) WHEN - 41 + - 38 THEN 48 * 76 + - 12 + 38 + - - COUNT ( * ) * 69 * + MIN ( ALL - 0 ) + - 44 END / COALESCE ( + - 92, + 60 + + + 74 + 66 - + 94, - 3 )
----
-66
NULL

query I rowsort
SELECT - 22 - 44 * + 44 * - 83 * CASE + 11 WHEN - 20 THEN + 76 END AS col2
----
NULL

query I rowsort
SELECT - 80 - 34
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8663
SELECT - 98 * + NULLIF ( - + MIN( ALL + ( + 50 ) ), - 77 - 72 + 91 + - 17 * - 87 * + CASE - 86 WHEN 80 THEN MAX( ALL + 40 ) * - 17 * + 37 WHEN - COALESCE ( + 22, + - 56, ( - - 31 ) * - - CAST( NULL AS DECIMAL ) + + 52 ) / - 50 THEN + 84 * + ( + 70 ) END ) AS col2
----
4900

skipif mysql # not compatible
query I rowsort label-8663
SELECT - 98 * + NULLIF ( - + MIN ( ALL + ( + 50 ) ), - 77 - 72 + 91 + - 17 * - 87 * + CASE - 86 WHEN 80 THEN MAX ( ALL + 40 ) * - 17 * + 37 WHEN - COALESCE ( + 22, + - 56, ( - - 31 ) * - - CAST ( NULL AS REAL ) + + 52 ) / - 50 THEN + 84 * + ( + 70 ) END ) AS col2
----
4900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL CAST( + 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL CAST ( + 10 AS INTEGER ) AS col2
----
10

query I rowsort
SELECT - NULLIF ( - 68, 87 )
----
68

query I rowsort
SELECT ALL 85 * 78
----
6630

query I rowsort
SELECT + 91 + + - 7
----
84

query I rowsort
SELECT - ( + 23 ) AS col0
----
-23

query II rowsort
SELECT - 38 * + 55, + 70 + - - 27 AS col2
----
-2090
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL 50 * - ( - COUNT( * ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL 50 * - ( - COUNT ( * ) ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT 41 + + 43 DIV + - 27
----
40

skipif mysql # not compatible
query I rowsort label-8671
SELECT 41 + + 43 / + - 27
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - CAST( - 45 AS SIGNED ) * - 82
----
-3690

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - CAST ( - 45 AS INTEGER ) * - 82
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8673
SELECT DISTINCT 76 AS col0, MIN( - + CAST( - 30 AS SIGNED ) ) AS col2
----
76
30

skipif mysql # not compatible
query II rowsort label-8673
SELECT DISTINCT 76 AS col0, MIN ( - + CAST ( - 30 AS INTEGER ) ) AS col2
----
76
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT 67 DIV + + 73 col1
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT 67 / + + 73 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT ALL 72 + 97 DIV + + 98 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL 72 + 97 / + + 98 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT ALL - 12, - 18 + COUNT( * ) AS col1
----
-12
-17

skipif mysql # not compatible
query II rowsort label-8676
SELECT ALL - 12, - 18 + COUNT ( * ) AS col1
----
-12
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8677
SELECT NULLIF ( + COUNT( * ), 29 ) + CASE COUNT( * ) WHEN - 86 THEN + 88 + - 52 WHEN + 10 THEN NULL END, + 48 / + 34 - 20 + - 53 - + 35 / - ( CAST( - 66 AS SIGNED ) ) * 74 - - + CAST( NULL AS SIGNED ) / - + 41 + + COUNT( * ) + CAST( - 33 AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8677
SELECT NULLIF ( + COUNT ( * ), 29 ) + CASE COUNT ( * ) WHEN - 86 THEN + 88 + - 52 WHEN + 10 THEN NULL END, + 48 / + 34 - 20 + - 53 - + 35 / - ( CAST ( - 66 AS INTEGER ) ) * 74 - - + CAST ( NULL AS INTEGER ) / - + 41 + + COUNT ( * ) + CAST ( - 33 AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8678
SELECT + + 9, 59 * + - MAX( DISTINCT 41 ) + - 83 AS col0
----
9
-2502

skipif mysql # not compatible
query II rowsort label-8678
SELECT + + 9, 59 * + - MAX ( DISTINCT 41 ) + - 83 AS col0
----
9
-2502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT + ( + 1 ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + ( + 1 ) / + + COUNT ( * )
----
1

query II rowsort
SELECT + 97, 83 AS col2
----
97
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT 55 DIV - 12 + 13
----
9

skipif mysql # not compatible
query I rowsort label-8681
SELECT 55 / - 12 + 13
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT ALL 93 + + - 32 + CAST( NULL AS SIGNED ) * + - CASE + 42 WHEN 76 - 92 / 6 THEN AVG ( DISTINCT 10 ) - 0 - + 58 * + + 0 * CASE + 77 WHEN + + NULLIF ( - 41, - + 10 ) - COUNT( * ) THEN + 77 * + ( 2 ) * + 21 / - 59 WHEN - 45 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 93 + + - 32 + CAST ( NULL AS INTEGER ) * + - CASE + 42 WHEN 76 - 92 / 6 THEN AVG ( DISTINCT 10 ) - 0 - + 58 * + + 0 * CASE + 77 WHEN + + NULLIF ( - 41, - + 10 ) - COUNT ( * ) THEN + 77 * + ( 2 ) * + 21 / - 59 WHEN - 45 THEN NULL END END
----
NULL

query I rowsort
SELECT ALL - 87 * + - 28 + + - 9 AS col2
----
2427

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT 55 + + + COUNT( * ) - ( - 90 )
----
146

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT 55 + + + COUNT ( * ) - ( - 90 )
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT ALL + - 67 + + 79 DIV - 41 + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + - 67 + + 79 / - 41 + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT 77 + - 56 - - - CASE WHEN NOT + 59 IS NULL THEN NULL WHEN NOT NULL NOT BETWEEN NULLIF ( + 63, - - 15 + + 97 ) / - COUNT( * ) AND COUNT( * ) * 40 + - 86 + + 8 THEN NULL ELSE + + ( 85 ) * - 11 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT 77 + - 56 - - - CASE WHEN NOT + 59 IS NULL THEN NULL WHEN NOT NULL NOT BETWEEN NULLIF ( + 63, - - 15 + + 97 ) / - COUNT ( * ) AND COUNT ( * ) * 40 + - 86 + + 8 THEN NULL ELSE + + ( 85 ) * - 11 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT 45 * - NULLIF ( 20, - 38 ) + 90 + 32 + 59 * + ( 88 ) + - COUNT( * ) + 88 - - - 10 * + 6 col1
----
4441

skipif mysql # not compatible
query I rowsort label-8687
SELECT 45 * - NULLIF ( 20, - 38 ) + 90 + 32 + 59 * + ( 88 ) + - COUNT ( * ) + 88 - - - 10 * + 6 col1
----
4441

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT + 70 + + SUM( 79 ) + 37, 45 * 4 - - - CASE ( COUNT( * ) ) WHEN + 68 THEN NULL WHEN - - 78 THEN 49 * 67 + + SUM( - 34 ) ELSE NULL END AS col1
----
186
NULL

skipif mysql # not compatible
query II rowsort label-8688
SELECT + 70 + + SUM ( 79 ) + 37, 45 * 4 - - - CASE ( COUNT ( * ) ) WHEN + 68 THEN NULL WHEN - - 78 THEN 49 * 67 + + SUM ( - 34 ) ELSE NULL END AS col1
----
186
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT 82 * - + 20 + 95 + - + COALESCE ( - 18, + - 82 ) * 29 + CAST( - 50 AS SIGNED ) * - 54
----
1677

skipif mysql # not compatible
query I rowsort label-8689
SELECT 82 * - + 20 + 95 + - + COALESCE ( - 18, + - 82 ) * 29 + CAST ( - 50 AS INTEGER ) * - 54
----
1677

query II rowsort
SELECT + 38 col2, ( + 23 ) AS col0
----
38
23

query I rowsort
SELECT DISTINCT - + COALESCE ( - - 79, 6 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT ALL + + 99 - ( CASE + COALESCE ( - + 84, - 9 ) WHEN 86 THEN 99 DIV 79 + - ( - ( - COALESCE ( - 0, + 52, - COUNT( * ), + + COUNT( * ) * 14 + - + 36 * 67 + - 86 ) ) ) ELSE + 17 END ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + + 99 - ( CASE + COALESCE ( - + 84, - 9 ) WHEN 86 THEN 99 / 79 + - ( - ( - COALESCE ( - 0, + 52, - COUNT ( * ), + + COUNT ( * ) * 14 + - + 36 * 67 + - 86 ) ) ) ELSE + 17 END ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT 22 * + ( + 96 ) * - + COUNT( * ) + + AVG ( DISTINCT 43 ) + + + 34 + - - CASE COUNT( * ) WHEN - 91 * + + 97 + 23 + + - COUNT( * ) THEN + - 4 WHEN - 20 THEN 59 + SUM( + 92 ) + - COUNT( * ) / + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT 22 * + ( + 96 ) * - + COUNT ( * ) + + AVG ( DISTINCT 43 ) + + + 34 + - - CASE COUNT ( * ) WHEN - 91 * + + 97 + 23 + + - COUNT ( * ) THEN + - 4 WHEN - 20 THEN 59 + SUM ( + 92 ) + - COUNT ( * ) / + 72 END
----
NULL

query I rowsort
SELECT ALL - + 87 * - 91 * - + 67 AS col2
----
-530439

query I rowsort
SELECT + 19 + + - 85 AS col1
----
-66

query II rowsort
SELECT ALL 62 * + 56, - ( + 3 ) AS col0
----
3472
-3

query I rowsort
SELECT DISTINCT + 5 - + 57 AS col0
----
-52

query I rowsort
SELECT ALL - 14 * 73 * + 42 * 25
----
-1073100

query I rowsort
SELECT 42 + 95 AS col2
----
137

query I rowsort
SELECT 51 + ( 9 ) - - + 96 AS col2
----
156

query I rowsort
SELECT 28 + - 41 * - 84 * 78
----
268660

query I rowsort
SELECT 38 + + + 32
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT ALL + 88 DIV - ( - 43 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + 88 / - ( - 43 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT 48 + - + COUNT( DISTINCT - 60 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8704
SELECT 48 + - + COUNT ( DISTINCT - 60 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL + 15 + NULLIF ( + 63, + 63 ) * + CAST( NULL AS SIGNED ) + - - 69 - - 44 * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 15 + NULLIF ( + 63, + 63 ) * + CAST ( NULL AS INTEGER ) + - - 69 - - 44 * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 57 * + - COALESCE ( + 42, + CASE + - COUNT( * ) WHEN 30 THEN COALESCE ( - 25, + COALESCE ( + 16, + - 57 ) ) END * - 98 * - 94 )
----
-2394

skipif mysql # not compatible
query I rowsort label-8706
SELECT 57 * + - COALESCE ( + 42, + CASE + - COUNT ( * ) WHEN 30 THEN COALESCE ( - 25, + COALESCE ( + 16, + - 57 ) ) END * - 98 * - 94 )
----
-2394

query I rowsort
SELECT 63 + + 66
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT SUM( - 42 ) + + 94 - + + 7
----
45

skipif mysql # not compatible
query I rowsort label-8708
SELECT SUM ( - 42 ) + + 94 - + + 7
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT 47 * COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8709
SELECT 47 * COUNT ( * ) AS col1
----
47

query I rowsort
SELECT 53 + - + 89 * 45 * + - 73 AS col2
----
292418

query I rowsort
SELECT ALL + + 27 + 13 + - 83 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT + 19 DIV - + NULLIF ( ( 90 ), COUNT( * ) + + ( 42 ) ) - + + 22 DIV + + 91 + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8712
SELECT + 19 / - + NULLIF ( ( 90 ), COUNT ( * ) + + ( 42 ) ) - + + 22 / + + 91 + 84 AS col1
----
84

query II rowsort
SELECT + ( + 72 ), - 17 AS col1
----
72
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT + 60 + - COUNT( - + 26 ) col2, - 78 - - 16 AS col0
----
59
-62

skipif mysql # not compatible
query II rowsort label-8714
SELECT + 60 + - COUNT ( - + 26 ) col2, - 78 - - 16 AS col0
----
59
-62

query II rowsort
SELECT ALL - - 35 + + - 24 AS col0, 17 AS col0
----
11
17

query I rowsort
SELECT ALL - + 18 col1
----
-18

query I rowsort
SELECT ALL 27 + ( - 19 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT + + 64 * - CAST( - CAST( + + 20 AS SIGNED ) AS SIGNED ) + + + 10 AS col2
----
1290

skipif mysql # not compatible
query I rowsort label-8718
SELECT + + 64 * - CAST ( - CAST ( + + 20 AS INTEGER ) AS INTEGER ) + + + 10 AS col2
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - 10 + + ( + COUNT( * ) ) * - 91 + - + 85 + + + 75
----
-111

skipif mysql # not compatible
query I rowsort label-8719
SELECT - 10 + + ( + COUNT ( * ) ) * - 91 + - + 85 + + + 75
----
-111

query I rowsort
SELECT + NULLIF ( 94, 56 ) AS col2
----
94

query I rowsort
SELECT DISTINCT - COALESCE ( - 2, - - 16 + - 12 + - 1 )
----
2

query I rowsort
SELECT + 33 * - - 57 + + - 8 AS col1
----
1873

onlyif mysql # DIV for integer division: 
query II rowsort label-8723
SELECT DISTINCT - 89 DIV + 67 AS col1, + 0 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-8723
SELECT DISTINCT - 89 / + 67 AS col1, + 0 AS col0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT DISTINCT 25 - + COUNT( * ) AS col2, COUNT( * ) AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-8724
SELECT DISTINCT 25 - + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
24
1

query I rowsort
SELECT ALL 29 * 28 * - + 67 col2
----
-54404

query II rowsort
SELECT - 99 * 64, 86 AS col0
----
-6336
86

query I rowsort
SELECT ALL - - 57 col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT - 26 DIV + + 97 * + 13 * - - 19
----
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT - 26 / + + 97 * + 13 * - - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT SUM( 48 ) * - 1 * - 1 + - 21
----
27

skipif mysql # not compatible
query I rowsort label-8729
SELECT SUM ( 48 ) * - 1 * - 1 + - 21
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT - 69 * 97 * + 0 - - 98 DIV + - MAX( DISTINCT + ( + 2 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8730
SELECT - 69 * 97 * + 0 - - 98 / + - MAX ( DISTINCT + ( + 2 ) ) AS col0
----
-49

query I rowsort
SELECT + 32 * - - 96
----
3072

query I rowsort
SELECT + 91 - - 86 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT + 1 + COUNT( * ) * 57 * - + 51 AS col1
----
-2906

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT + 1 + COUNT ( * ) * 57 * - + 51 AS col1
----
-2906

query I rowsort
SELECT ALL - 29 + 92
----
63

query II rowsort
SELECT - 23 col0, + 79
----
-23
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8736
SELECT ALL 24, CAST( COALESCE ( - 93, COUNT( * ) * 16 + - - 10 - - ( + - 87 ) * - + 59 ) AS SIGNED ) AS col2
----
24
-93

skipif mysql # not compatible
query II rowsort label-8736
SELECT ALL 24, CAST ( COALESCE ( - 93, COUNT ( * ) * 16 + - - 10 - - ( + - 87 ) * - + 59 ) AS INTEGER ) AS col2
----
24
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - ( - COUNT( * ) ) - CASE 16 WHEN 40 * - - 79 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - ( - COUNT ( * ) ) - CASE 16 WHEN 40 * - - 79 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT DISTINCT - 39 + - ( + CAST( CASE + + 79 WHEN - 52 THEN NULL ELSE - 55 + + - 36 * - COUNT( * ) + - 52 - + + 25 END AS SIGNED ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - 39 + - ( + CAST ( CASE + + 79 WHEN - 52 THEN NULL ELSE - 55 + + - 36 * - COUNT ( * ) + - 52 - + + 25 END AS INTEGER ) ) AS col1
----
57

query I rowsort
SELECT ALL - 21 + - 96 AS col1
----
-117

query II rowsort
SELECT - 36 AS col2, - 22 * + 26
----
-36
-572

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT - ( + 94 ) * - 55, MAX( 42 ) AS col2
----
5170
42

skipif mysql # not compatible
query II rowsort label-8741
SELECT - ( + 94 ) * - 55, MAX ( 42 ) AS col2
----
5170
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8742
SELECT - 45 DIV + - 24 + + COUNT( * ) AS col0, COALESCE ( 26, + COUNT( * ), + 13 * + - MAX( 21 ) DIV - - 28 ) + - 66 - - CAST( + NULLIF ( - 22, CASE + + 31 WHEN 56 THEN NULL WHEN - 31 THEN - + 66 END ) AS SIGNED ) + + 62 + + 64 col2
----
2
64

skipif mysql # not compatible
query II rowsort label-8742
SELECT - 45 / + - 24 + + COUNT ( * ) AS col0, COALESCE ( 26, + COUNT ( * ), + 13 * + - MAX ( 21 ) / - - 28 ) + - 66 - - CAST ( + NULLIF ( - 22, CASE + + 31 WHEN 56 THEN NULL WHEN - 31 THEN - + 66 END ) AS INTEGER ) + + 62 + + 64 col2
----
2
64

query II rowsort
SELECT + 43 AS col0, 52 AS col0
----
43
52

query I rowsort
SELECT ALL - - 96 + + ( + 64 ) AS col1
----
160

query I rowsort
SELECT ALL - 96 - 40 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - COUNT( * ) + - - 57
----
56

skipif mysql # not compatible
query I rowsort label-8746
SELECT - COUNT ( * ) + - - 57
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - - COUNT( * ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-8747
SELECT - - COUNT ( * ) + + 63
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT - + 30 - 54 DIV 71 + + 82 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8748
SELECT - + 30 - 54 / 71 + + 82 AS col0
----
52

query II rowsort
SELECT + 66, 94 AS col0
----
66
94

query I rowsort
SELECT + 30 * - 40
----
-1200

query I rowsort
SELECT ALL + 44 * + - 57 + - 97 col2
----
-2605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8752
SELECT ALL + - 14 AS col2, 29 + + CAST( - 52 AS SIGNED ) * + 93
----
-14
-4807

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL + - 14 AS col2, 29 + + CAST ( - 52 AS INTEGER ) * + 93
----
-14
-4807

query II rowsort
SELECT + 84 col2, 57 * - 87 + - - 95 * - + 65 AS col2
----
84
-11134

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - 88 + - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8754
SELECT - 88 + - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT ALL + 0 * 5 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + + 14 - - 49 + 22 + - COUNT( * ) - + + 46 * ( - 49 )
----
2338

skipif mysql # not compatible
query I rowsort label-8756
SELECT + + 14 - - 49 + 22 + - COUNT ( * ) - + + 46 * ( - 49 )
----
2338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT - 45 DIV + COUNT( * ) - 90 + + - COUNT( * ) col2
----
-136

skipif mysql # not compatible
query I rowsort label-8757
SELECT - 45 / + COUNT ( * ) - 90 + + - COUNT ( * ) col2
----
-136

query I rowsort
SELECT - 63 * + 87
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + CASE + CASE - - 94 WHEN COUNT( - 39 ) + + 76 * + 73 * 10 THEN + AVG ( - 57 ) ELSE - 23 / + ( + + NULLIF ( + 30, 50 * - 21 + + COUNT( * ) ) ) END WHEN + - 82 * + 6 + - 4 THEN 29 * + 73 + - 6 + + 24 ELSE NULL END * COUNT( * ) + COUNT( * ) * - + COALESCE ( + 4, + + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + CASE + CASE - - 94 WHEN COUNT ( - 39 ) + + 76 * + 73 * 10 THEN + AVG ( - 57 ) ELSE - 23 / + ( + + NULLIF ( + 30, 50 * - 21 + + COUNT ( * ) ) ) END WHEN + - 82 * + 6 + - 4 THEN 29 * + 73 + - 6 + + 24 ELSE NULL END * COUNT ( * ) + COUNT ( * ) * - + COALESCE ( + 4, + + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT NULLIF ( 84, - - SUM( DISTINCT - - 64 ) ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8760
SELECT NULLIF ( 84, - - SUM ( DISTINCT - - 64 ) ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + ( + 21 ) + - + 97 - COUNT( * ) * - COUNT( * ) - + 3 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8761
SELECT + ( + 21 ) + - + 97 - COUNT ( * ) * - COUNT ( * ) - + 3 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8762
SELECT + 15 + + - NULLIF ( 24, + 67 ) * - + NULLIF ( - - 93, + CAST( NULL AS SIGNED ) ) * + - 57 * - 21 + - + 29 DIV 7 AS col0
----
2671715

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 15 + + - NULLIF ( 24, + 67 ) * - + NULLIF ( - - 93, + CAST ( NULL AS INTEGER ) ) * + - 57 * - 21 + - + 29 / 7 AS col0
----
2671715

query I rowsort
SELECT ALL 27 * - 30 AS col0
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT + 32 * - CAST( NULL AS SIGNED ) * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT + 32 * - CAST ( NULL AS INTEGER ) * + + 4
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 39 + - + 99
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT + 67 + + - 9 col0, - NULLIF ( 74, - COUNT( * ) ) - - 45 + 85 + + + 1 * + MAX( - 88 )
----
58
-32

skipif mysql # not compatible
query II rowsort label-8766
SELECT + 67 + + - 9 col0, - NULLIF ( 74, - COUNT ( * ) ) - - 45 + 85 + + + 1 * + MAX ( - 88 )
----
58
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8767
SELECT - ( + 43 ) AS col1, - COUNT( * ) * + - 69 * - 26 AS col0
----
-43
-1794

skipif mysql # not compatible
query II rowsort label-8767
SELECT - ( + 43 ) AS col1, - COUNT ( * ) * + - 69 * - 26 AS col0
----
-43
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT ALL NULLIF ( + 97, - 34 ) * + + COUNT( * ) + - CAST( NULL AS SIGNED ) * + - ( 91 ) + 24 + 75 * - - 80 + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL NULLIF ( + 97, - 34 ) * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - ( 91 ) + 24 + 75 * - - 80 + + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT SUM( DISTINCT ( + 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8769
SELECT SUM ( DISTINCT ( + 55 ) ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL 67 * COALESCE ( + 31, - 28, ( - COUNT( * ) ), + 52 )
----
2077

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL 67 * COALESCE ( + 31, - 28, ( - COUNT ( * ) ), + 52 )
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + CASE + + 25 WHEN - 81 + + + 57 * - - 41 * 51 THEN - COUNT( * ) WHEN + + 68 THEN NULL ELSE - 1 END * - + 61
----
61

skipif mysql # not compatible
query I rowsort label-8771
SELECT + CASE + + 25 WHEN - 81 + + + 57 * - - 41 * 51 THEN - COUNT ( * ) WHEN + + 68 THEN NULL ELSE - 1 END * - + 61
----
61

query I rowsort
SELECT + 37 + + 83 * - 5 * 65 AS col0
----
-26938

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - NULLIF ( + - 29, + COUNT( * ) * + 96 * - + COUNT( * ) + 73 )
----
29

skipif mysql # not compatible
query I rowsort label-8773
SELECT - NULLIF ( + - 29, + COUNT ( * ) * + 96 * - + COUNT ( * ) + 73 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT + 55 DIV + ( 12 )
----
4

skipif mysql # not compatible
query I rowsort label-8774
SELECT + 55 / + ( 12 )
----
4

query I rowsort
SELECT ALL 61 + ( 76 ) AS col0
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT + COALESCE ( 66, + - 4 DIV - - NULLIF ( - + COUNT( * ), - 82 ) + 56, + COUNT( * ) ) + - - 40 + - 37 * - 76
----
2918

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COALESCE ( 66, + - 4 / - - NULLIF ( - + COUNT ( * ), - 82 ) + 56, + COUNT ( * ) ) + - - 40 + - 37 * - 76
----
2918

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT MAX( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT MAX ( DISTINCT 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 19 + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 19 + COUNT ( * ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT + CAST( 85 AS SIGNED ) + - 3
----
82

skipif mysql # not compatible
query I rowsort label-8779
SELECT + CAST ( 85 AS INTEGER ) + - 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - + 61 * - + ( + 98 ) + MAX( - 75 ) + + 91 * + + 62 AS col1
----
11545

skipif mysql # not compatible
query I rowsort label-8780
SELECT - + 61 * - + ( + 98 ) + MAX ( - 75 ) + + 91 * + + 62 AS col1
----
11545

query I rowsort
SELECT - + 70 + 64 + + 34
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT - NULLIF ( 49, CASE - - NULLIF ( + 42, - 83 ) WHEN - - ( + COUNT( * ) ) * - 99 THEN - - 88 END ) * - 41 * - + 94 AS col0
----
-188846

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - NULLIF ( 49, CASE - - NULLIF ( + 42, - 83 ) WHEN - - ( + COUNT ( * ) ) * - 99 THEN - - 88 END ) * - 41 * - + 94 AS col0
----
-188846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT + - 0 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT + - 0 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT - 6 + + 51 / + 15 - + CAST( NULL AS SIGNED ) + - - CASE + 22 WHEN + - 97 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT - 6 + + 51 / + 15 - + CAST ( NULL AS INTEGER ) + - - CASE + 22 WHEN + - 97 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT - 72 * - 17, - COUNT( * ) AS col0
----
1224
-1

skipif mysql # not compatible
query II rowsort label-8785
SELECT - 72 * - 17, - COUNT ( * ) AS col0
----
1224
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8786
SELECT ALL - - 80 DIV - NULLIF ( COUNT( * ), - NULLIF ( 70, - CAST( NULL AS SIGNED ) ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - - 80 / - NULLIF ( COUNT ( * ), - NULLIF ( 70, - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-80

query I rowsort
SELECT DISTINCT - 90 * 64 AS col0
----
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - + 74 * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8788
SELECT - + 74 * COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT DISTINCT + 10 * - 52 AS col1
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT - SUM( ALL 26 ) + + 53 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - SUM ( ALL 26 ) + + 53 AS col2
----
27

query I rowsort
SELECT DISTINCT 62 + 27
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8792
SELECT DISTINCT 21 + 3 DIV + 48, 87 * 43 * - + 12 AS col2
----
21
-44892

skipif mysql # not compatible
query II rowsort label-8792
SELECT DISTINCT 21 + 3 / + 48, 87 * 43 * - + 12 AS col2
----
21
-44892

query I rowsort
SELECT ALL 79 + + 45 AS col0
----
124

query I rowsort
SELECT 41 + - 88 AS col0
----
-47

query I rowsort
SELECT ALL 20 + 33
----
53

query I rowsort
SELECT DISTINCT 72 * + 69
----
4968

query I rowsort
SELECT 76 - + 34
----
42

query I rowsort
SELECT ALL 7 - + + 55 col0
----
-48

query I rowsort
SELECT DISTINCT - 49 * + 44
----
-2156

query II rowsort
SELECT ALL 88, 39 AS col1
----
88
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT + 54 * - - 12 + CAST( NULL AS SIGNED ) - + + 0 + + COALESCE ( - - CAST( NULL AS SIGNED ), COUNT( * ) ) * + + 89 * - 63 + - 76 * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 54 * - - 12 + CAST ( NULL AS INTEGER ) - + + 0 + + COALESCE ( - - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * + + 89 * - 63 + - 76 * - 21 AS col0
----
NULL

query I rowsort
SELECT 47 - + 18 + + 92 AS col1
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT - ( - + 78 ) DIV 87 * NULLIF ( - 22, + ( 50 ) + - 39 * - 23 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT - ( - + 78 ) / 87 * NULLIF ( - 22, + ( 50 ) + - 39 * - 23 ) AS col1
----
0

query II rowsort
SELECT 64, 2 col0
----
64
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL AVG ( + ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8806
SELECT ALL - COUNT( * ), - 8 col1
----
-1
-8

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL - COUNT ( * ), - 8 col1
----
-1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + COUNT( ALL COALESCE ( - - 8, + 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + COUNT ( ALL COALESCE ( - - 8, + 69 ) )
----
1

query I rowsort
SELECT ALL - - 78 * ( - + ( + - 71 ) ) * 53 * + + 29 * + 3 AS col1
----
25535718

query I rowsort
SELECT ALL - ( 46 ) AS col2
----
-46

query I rowsort
SELECT 83 + - + 13
----
70

query I rowsort
SELECT - 78 * 24 + + + ( - + 56 ) * - - 79 AS col2
----
-6296

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT - 45 + - 69 + SUM( - + 21 ) + + 94 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8812
SELECT - 45 + - 69 + SUM ( - + 21 ) + + 94 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + 67
----
67

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL COUNT( ALL - - 51 ) + + + 24
----
25

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL COUNT ( ALL - - 51 ) + + + 24
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - MIN( 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - MIN ( 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8816
SELECT 51 + + 34 - - CASE - 0 WHEN - + 81 + + 29 THEN NULL WHEN - - 81 THEN - COALESCE ( COUNT( * ), + 97 ) ELSE NULL END - COALESCE ( - 70, + COUNT( * ) * + + 96 / + 92 + + + 11 * 79 * + 65, 51 * + COUNT( * ) ) * - 48 + + - 76 + - - 67 * - + CASE COUNT( * ) WHEN - + 48 * 92 * + COALESCE ( - ( + 19 ), - 42 ) + - COUNT( - 31 + 0 ) * 36 THEN + 79 * ( 22 ) + - CAST( 23 AS SIGNED ) * - ( - 91 ) ELSE 0 / + COUNT( * ) + CAST( 82 + 92 * + 62 AS DECIMAL ) END * - 30 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT 51 + + 34 - - CASE - 0 WHEN - + 81 + + 29 THEN NULL WHEN - - 81 THEN - COALESCE ( COUNT ( * ), + 97 ) ELSE NULL END - COALESCE ( - 70, + COUNT ( * ) * + + 96 / + 92 + + + 11 * 79 * + 65, 51 * + COUNT ( * ) ) * - 48 + + - 76 + - - 67 * - + CASE COUNT ( * ) WHEN - + 48 * 92 * + COALESCE ( - ( + 19 ), - 42 ) + - COUNT ( - 31 + 0 ) * 36 THEN + 79 * ( 22 ) + - CAST ( 23 AS INTEGER ) * - ( - 91 ) ELSE 0 / + COUNT ( * ) + CAST ( 82 + 92 * + 62 AS REAL ) END * - 30 * + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8817
SELECT DISTINCT + 42 DIV - - 99 AS col0, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8817
SELECT DISTINCT + 42 / - - 99 AS col0, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) * - COALESCE ( COUNT( * ), COUNT( * ) ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) * - COALESCE ( COUNT ( * ), COUNT ( * ) ) + + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT + COUNT( * ), 69 AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-8819
SELECT + COUNT ( * ), 69 AS col2
----
1
69

query I rowsort
SELECT + 18 * + + 43 + - - 3 col2
----
777

query I rowsort
SELECT 57 * - 54 * + 31
----
-95418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT 92 * + 84 DIV COUNT( * ) * 22
----
170016

skipif mysql # not compatible
query I rowsort label-8822
SELECT 92 * + 84 / COUNT ( * ) * 22
----
170016

query I rowsort
SELECT ALL + 25 * + - 9 AS col2
----
-225

query I rowsort
SELECT 66 + - 39 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + CASE 62 WHEN + COUNT( * ) THEN NULL ELSE + 89 + + + 48 END * 1 + + SUM( 56 ) AS col1
----
193

skipif mysql # not compatible
query I rowsort label-8825
SELECT + CASE 62 WHEN + COUNT ( * ) THEN NULL ELSE + 89 + + + 48 END * 1 + + SUM ( 56 ) AS col1
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT ALL + 35 - - MAX( + 54 ) * - 7 * - 9 + + 64, COUNT( * ) col2
----
3501
1

skipif mysql # not compatible
query II rowsort label-8826
SELECT ALL + 35 - - MAX ( + 54 ) * - 7 * - 9 + + 64, COUNT ( * ) col2
----
3501
1

query I rowsort
SELECT DISTINCT - 80 * 84
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT MIN( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT MIN ( + 30 )
----
30

query I rowsort
SELECT 92 * + + 22
----
2024

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT DISTINCT MAX( 71 ), - ( + 41 ) AS col2
----
71
-41

skipif mysql # not compatible
query II rowsort label-8830
SELECT DISTINCT MAX ( 71 ), - ( + 41 ) AS col2
----
71
-41

query I rowsort
SELECT 72 + + - 69 * - 95
----
6627

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT DISTINCT + COUNT( * ), 98 AS col1
----
1
98

skipif mysql # not compatible
query II rowsort label-8832
SELECT DISTINCT + COUNT ( * ), 98 AS col1
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL MAX( - + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL MAX ( - + 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT CASE 90 WHEN NULLIF ( - ( - 57 ), + 64 * - - 10 * + 3 + - - 79 ) THEN NULL WHEN + + 5 THEN + - 0 ELSE + 65 + + - 53 * - CAST( NULL AS SIGNED ) END + - + 88 + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT CASE 90 WHEN NULLIF ( - ( - 57 ), + 64 * - - 10 * + 3 + - - 79 ) THEN NULL WHEN + + 5 THEN + - 0 ELSE + 65 + + - 53 * - CAST ( NULL AS INTEGER ) END + - + 88 + - 71 AS col1
----
NULL

query I rowsort
SELECT + 27 + - 7 + + 10
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT DISTINCT + - 72 DIV - SUM( + ( - 80 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + - 72 / - SUM ( + ( - 80 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT 18 DIV - 97 * + 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT 18 / - 97 * + 22 AS col2
----
0

query I rowsort
SELECT ALL + 12 + - - ( - 59 ) - - 42
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT DISTINCT - 54 + - + NULLIF ( 99, 28 ) + + CAST( NULL AS SIGNED ) * 95 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - 54 + - + NULLIF ( 99, 28 ) + + CAST ( NULL AS INTEGER ) * 95 + - 62
----
NULL

query II rowsort
SELECT 4 AS col1, ( - - 85 )
----
4
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8841
SELECT - 91 AS col0, + 13 * 38 DIV - 31 AS col2
----
-91
-15

skipif mysql # not compatible
query II rowsort label-8841
SELECT - 91 AS col0, + 13 * 38 / - 31 AS col2
----
-91
-15

query I rowsort
SELECT - 77 + + 92 + + 5 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL - 21 + - 12 + 90 * + 10 - - COUNT( + 13 )
----
868

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - 21 + - 12 + 90 * + 10 - - COUNT ( + 13 )
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT 41 + COUNT( * ) * - 86 * 47 - + + COUNT( 36 ) AS col2
----
-4002

skipif mysql # not compatible
query I rowsort label-8844
SELECT 41 + COUNT ( * ) * - 86 * 47 - + + COUNT ( 36 ) AS col2
----
-4002

query I rowsort
SELECT + + 41 * + 3 col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8846
SELECT CAST( NULL AS SIGNED ), - 96 AS col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-8846
SELECT CAST ( NULL AS INTEGER ), - 96 AS col1
----
NULL
-96

query II rowsort
SELECT 78, 0 AS col2
----
78
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT 84 AS col2, + 90 * + ( - 6 ) + + 49 + - 83 + - - COUNT( * ) * + 73
----
84
-501

skipif mysql # not compatible
query II rowsort label-8848
SELECT 84 AS col2, + 90 * + ( - 6 ) + + 49 + - 83 + - - COUNT ( * ) * + 73
----
84
-501

query I rowsort
SELECT DISTINCT - ( - COALESCE ( 28, + CASE + 32 WHEN - 5 THEN NULL ELSE + + 96 END ) ) * + + 73 + + 39 AS col1
----
2083

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + MIN( + + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8850
SELECT + MIN ( + + 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8851
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ), COUNT( * ) * + 92 + + 55 * + 97 * - 39 + + + ( + 73 ) + - 59 DIV 42 * - 21 + + - 87 AS col0
----
NULL
-207966

skipif mysql # not compatible
query II rowsort label-8851
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ), COUNT ( * ) * + 92 + + 55 * + 97 * - 39 + + + ( + 73 ) + - 59 / 42 * - 21 + + - 87 AS col0
----
NULL
-207966

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ALL SUM( 21 ) * + - 28 - + MIN( DISTINCT - 58 ) * - 0 * + 69 + + 19 AS col0
----
-569

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL SUM ( 21 ) * + - 28 - + MIN ( DISTINCT - 58 ) * - 0 * + 69 + + 19 AS col0
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + 50 * + CASE - COUNT( * ) WHEN + 87 THEN + 68 END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 50 * + CASE - COUNT ( * ) WHEN + 87 THEN + 68 END * 31 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - + 89, + 12 + 19 + + 36 )
----
-89

query II rowsort
SELECT ALL 96 * + 23 AS col0, 38 col1
----
2208
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8856
SELECT + COUNT( * ) DIV + 63 * - CASE + 0 WHEN + + 71 DIV + 87 THEN COUNT( * ) WHEN - 47 DIV + 64 + + + 33 THEN - 3 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8856
SELECT + COUNT ( * ) / + 63 * - CASE + 0 WHEN + + 71 / + 87 THEN COUNT ( * ) WHEN - 47 / + 64 + + + 33 THEN - 3 END AS col0
----
0

query I rowsort
SELECT DISTINCT 43 * + 67 * - 71 col1
----
-204551

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + CASE - 88 WHEN + 4 THEN COUNT( * ) WHEN + - COALESCE ( + - 37, - 92 ) THEN NULL END / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + CASE - 88 WHEN + 4 THEN COUNT ( * ) WHEN + - COALESCE ( + - 37, - 92 ) THEN NULL END / + 97
----
NULL

query I rowsort
SELECT + 42 + + - 49 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - 48 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8860
SELECT - 48 * COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT MAX( DISTINCT 27 ), 56 AS col0
----
27
56

skipif mysql # not compatible
query II rowsort label-8861
SELECT MAX ( DISTINCT 27 ), 56 AS col0
----
27
56

query I rowsort
SELECT 94 * - - 24 + 24 * + + 23
----
2808

query I rowsort
SELECT - 42 + - 76 AS col0
----
-118

query I rowsort
SELECT ALL + 19 * + - 0 * - 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT - - 13 + 8 + + COUNT( * ) AS col2, ( + 3 ) + - CASE 94 WHEN + - 10 / - SUM( ALL - + 39 ) THEN NULL WHEN + 43 THEN 42 + - - 68 + + + COALESCE ( COUNT( DISTINCT - 96 ), + 48 / + + COUNT( * ) * + 84 ) + + + 37 * - 29 * - 35 WHEN 84 THEN + + 68 - + - 88 END * - + 43 AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8865
SELECT - - 13 + 8 + + COUNT ( * ) AS col2, ( + 3 ) + - CASE 94 WHEN + - 10 / - SUM ( ALL - + 39 ) THEN NULL WHEN + 43 THEN 42 + - - 68 + + + COALESCE ( COUNT ( DISTINCT - 96 ), + 48 / + + COUNT ( * ) * + 84 ) + + + 37 * - 29 * - 35 WHEN 84 THEN + + 68 - + - 88 END * - + 43 AS col1
----
22
NULL

query I rowsort
SELECT ALL - COALESCE ( + 6, + ( + 14 ) ) col0
----
-6

query I rowsort
SELECT - + 38 + 95 + - 96 - + 15
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + COALESCE ( - COUNT( * ), - ( + - MAX( DISTINCT 37 ) ), - 91 ) * - MAX( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + COALESCE ( - COUNT ( * ), - ( + - MAX ( DISTINCT 37 ) ), - 91 ) * - MAX ( ALL - 3 )
----
-3

query I rowsort
SELECT - 25 * 7 * - 71 * 20 AS col2
----
248500

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT ( - - SUM( + 40 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT ( - - SUM ( + 40 ) ) AS col0
----
40

query I rowsort
SELECT ALL + ( 23 ) + + ( 34 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT CAST( + - ( + - 21 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-8872
SELECT CAST ( + - ( + - 21 ) AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT - ( - 81 ) - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT - ( - 81 ) - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 33 + 9
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT - COUNT( * ) * + 31 AS col0, ( + - NULLIF ( + 94, + 0 ) ) AS col1
----
-31
-94

skipif mysql # not compatible
query II rowsort label-8875
SELECT - COUNT ( * ) * + 31 AS col0, ( + - NULLIF ( + 94, + 0 ) ) AS col1
----
-31
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL ( - CASE + CAST( - 13 AS SIGNED ) WHEN + - 27 / - 70 * - 41 THEN - 1 + + + 94 + + MAX( DISTINCT + 10 ) ELSE NULL END ) * - - SUM( ALL + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL ( - CASE + CAST ( - 13 AS INTEGER ) WHEN + - 27 / - 70 * - 41 THEN - 1 + + + 94 + + MAX ( DISTINCT + 10 ) ELSE NULL END ) * - - SUM ( ALL + 61 )
----
NULL

query I rowsort
SELECT ALL + + 2 + + + ( - + 2 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + - COUNT( * ) * - NULLIF ( 6, COUNT( * ) / ( - + 30 ) * + 59 * + 89 + - - 24 + + 18 )
----
6

skipif mysql # not compatible
query I rowsort label-8878
SELECT + - COUNT ( * ) * - NULLIF ( 6, COUNT ( * ) / ( - + 30 ) * + 59 * + 89 + - - 24 + + 18 )
----
6

query II rowsort
SELECT - 56 + + 30 * 39 AS col2, - 8
----
1114
-8

query I rowsort
SELECT + 62 - - 54 + 1 - + 17 * NULLIF ( - 23, - 4 ) AS col2
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - COUNT( * ) + - MAX( DISTINCT + 51 )
----
-52

skipif mysql # not compatible
query I rowsort label-8881
SELECT - COUNT ( * ) + - MAX ( DISTINCT + 51 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT + CAST( NULL AS SIGNED ) / 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + CAST ( NULL AS INTEGER ) / 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT 43 * + - 12 + - + 52 + + 78 + + 74 DIV + - 86
----
-490

skipif mysql # not compatible
query I rowsort label-8883
SELECT 43 * + - 12 + - + 52 + + 78 + + 74 / + - 86
----
-490

query I rowsort
SELECT + 91 * 14
----
1274

query II rowsort
SELECT ALL + 31 AS col0, - ( COALESCE ( + ( + 71 ), - 27 * 81 + - 69 ) )
----
31
-71

query I rowsort
SELECT DISTINCT + 80 * + 45
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT + 10 DIV + + 42 + - - 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-8887
SELECT + 10 / + + 42 + - - 73 col1
----
73

query II rowsort
SELECT ALL + 21 AS col1, + 93 col0
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT + 49 + + 35 * + SUM( + + 32 ) AS col1
----
1169

skipif mysql # not compatible
query I rowsort label-8889
SELECT + 49 + + 35 * + SUM ( + + 32 ) AS col1
----
1169

query I rowsort
SELECT ( + + 77 ) col2
----
77

query I rowsort
SELECT - 18 * 33 AS col0
----
-594

query I rowsort
SELECT DISTINCT + + 21 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-8893
SELECT + COUNT ( * ) * + 86
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8894
SELECT + 9 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 9 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 2 * + CASE - 2 WHEN - 85 THEN 60 END + 61 + 36 col1
----
NULL

query I rowsort
SELECT ALL - + ( ( - 67 ) ) * + - 63 + + + 55
----
-4166

query I rowsort
SELECT ALL + + 93 * - 37 - 76 + + 71 AS col1
----
-3446

query I rowsort
SELECT - + 59 - - + 58
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8899
SELECT ALL CASE - 9 WHEN - 21 THEN + 95 * + ( - - 83 ) - + 75 * - - 33 DIV 64 * - COUNT( * ) + + 80 + 72 DIV + 44 + - COUNT( * ) - - MAX( 56 ) WHEN 62 THEN NULL WHEN - + 57 * + COUNT( * ) THEN NULL END, 59 DIV + + ( 44 ) + - 63 AS col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL CASE - 9 WHEN - 21 THEN + 95 * + ( - - 83 ) - + 75 * - - 33 / 64 * - COUNT ( * ) + + 80 + 72 / + 44 + - COUNT ( * ) - - MAX ( 56 ) WHEN 62 THEN NULL WHEN - + 57 * + COUNT ( * ) THEN NULL END, 59 / + + ( 44 ) + - 63 AS col1
----
NULL
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT - COUNT( * ) col1, 37
----
-1
37

skipif mysql # not compatible
query II rowsort label-8900
SELECT - COUNT ( * ) col1, 37
----
-1
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT - - 85 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-8901
SELECT - - 85 / 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - - 26 + 7 * - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8902
SELECT - - 26 + 7 * - + COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT - - 4 DIV - - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - - 4 / - - 37 AS col0
----
0

query I rowsort
SELECT ALL + - 42 + + NULLIF ( + 42, - 97 * 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8905
SELECT - ( + + 40 ) + 33 + + COUNT( * ) * 40 + 42 * 25 + - COUNT( * ) - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT - ( + + 40 ) + 33 + + COUNT ( * ) * 40 + 42 * 25 + - COUNT ( * ) - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8906
SELECT 81 * CAST( NULL AS DECIMAL ) * - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT 81 * CAST ( NULL AS REAL ) * - - 70 AS col1
----
NULL

query I rowsort
SELECT 12 + + 36 + - 20 + - 9
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT - - 27, + ( 7 ) * + COUNT( * ) + 74 + 21 * + - 93 * - 67 AS col2
----
27
130932

skipif mysql # not compatible
query II rowsort label-8908
SELECT - - 27, + ( 7 ) * + COUNT ( * ) + 74 + 21 * + - 93 * - 67 AS col2
----
27
130932

query II rowsort
SELECT ALL - 71 AS col2, - 75
----
-71
-75

query II rowsort
SELECT 76, 46 AS col0
----
76
46

query I rowsort
SELECT 81 + ( - - 63 ) * + 48 + - 79
----
3026

query I rowsort
SELECT ALL + 78 * 83
----
6474

query I rowsort
SELECT 76 + + - 63 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT DISTINCT - 21 DIV - + ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - 21 / - + ( 63 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT 82 * + + COALESCE ( 24, - 63 - ( CAST( NULL AS SIGNED ) ) ) * + CAST( - CASE - COUNT( * ) WHEN + 84 * - MAX( DISTINCT - 48 ) THEN NULL WHEN + COUNT( * ) THEN - - 77 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT 82 * + + COALESCE ( 24, - 63 - ( CAST ( NULL AS INTEGER ) ) ) * + CAST ( - CASE - COUNT ( * ) WHEN + 84 * - MAX ( DISTINCT - 48 ) THEN NULL WHEN + COUNT ( * ) THEN - - 77 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT 8 * - MIN( - 62 ) AS col0
----
496

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT 8 * - MIN ( - 62 ) AS col0
----
496

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT DISTINCT - 21 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - 21 / 23
----
0

query I rowsort
SELECT 95 * - 19 AS col1
----
-1805

query I rowsort
SELECT ALL - 3 * + + 28 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT 72 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT 72 / + + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 40 * - 87 - + - 16 + - - MAX( DISTINCT 58 ) AS col1
----
-3406

skipif mysql # not compatible
query I rowsort label-8921
SELECT 40 * - 87 - + - 16 + - - MAX ( DISTINCT 58 ) AS col1
----
-3406

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT DISTINCT 42 DIV + - 37
----
-1

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 42 / + - 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT + 31 + 38 + + + 97 - + - 37 DIV + 74
----
166

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + 31 + 38 + + + 97 - + - 37 / + 74
----
166

query I rowsort
SELECT DISTINCT + 69 + 89 AS col1
----
158

query I rowsort
SELECT - 46 * + + 80 * + 23
----
-84640

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - 98 * - COUNT( * ) + - COUNT( - NULLIF ( - 87, - 58 ) ) + - COUNT( * ) * + 53
----
44

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 98 * - COUNT ( * ) + - COUNT ( - NULLIF ( - 87, - 58 ) ) + - COUNT ( * ) * + 53
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT CAST( NULL AS SIGNED ) * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT CAST ( NULL AS INTEGER ) * + 32 AS col0
----
NULL

query I rowsort
SELECT ALL 17 + - 34
----
-17

query I rowsort
SELECT 96 + 21 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL + CASE + NULLIF ( + + 30, + 25 ) WHEN - 97 THEN NULL WHEN - - MAX( + + 51 ) * - NULLIF ( - 52, + 75 - - 48 ) THEN - 65 END - ( + + 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + CASE + NULLIF ( + + 30, + 25 ) WHEN - 97 THEN NULL WHEN - - MAX ( + + 51 ) * - NULLIF ( - 52, + 75 - - 48 ) THEN - 65 END - ( + + 23 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT - COUNT( * ) - 52 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - COUNT ( * ) - 52 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + 37 * + COUNT( * ) + - 58
----
-21

skipif mysql # not compatible
query I rowsort label-8932
SELECT + 37 * + COUNT ( * ) + - 58
----
-21

query I rowsort
SELECT - ( 16 ) * - 38
----
608

query I rowsort
SELECT 86 * + 59 AS col2
----
5074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT CAST( 12 AS SIGNED ) * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8935
SELECT CAST ( 12 AS INTEGER ) * - COUNT ( * )
----
-12

query I rowsort
SELECT ALL 85 * - 97
----
-8245

query II rowsort
SELECT 13, 78 - - + 27 AS col1
----
13
105

query I rowsort
SELECT ALL 79 * 97
----
7663

query I rowsort
SELECT 1 - + 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + SUM( ALL 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-8940
SELECT + SUM ( ALL 18 ) col0
----
18

query I rowsort
SELECT 17 * - 77
----
-1309

query I rowsort
SELECT ALL - 47 * + 11 + + + 45 + 74 - - 43 * 54 AS col0
----
1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT + 51 * - - 83 * + 48 + + CAST( NULL AS SIGNED ) / - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 51 * - - 83 * + 48 + + CAST ( NULL AS INTEGER ) / - 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 * 97 + 91 AS col2
----
188

query I rowsort
SELECT ALL + 47 * + 60 + - - 5 + 36 * + 80 * + + 60
----
175625

query I rowsort
SELECT ALL - - 63 * 57 * - + 61
----
-219051

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - 83 * + COUNT( * ) + - + ( + + COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8947
SELECT - 83 * + COUNT ( * ) + - + ( + + COUNT ( * ) ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT - CAST( CASE + + 44 WHEN + COUNT( * ) / + - ( - 89 ) THEN + 25 END AS SIGNED ) * + + COALESCE ( 36, - - ( + - COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - CAST ( CASE + + 44 WHEN + COUNT ( * ) / + - ( - 89 ) THEN + 25 END AS INTEGER ) * + + COALESCE ( 36, - - ( + - COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT 85 * + NULLIF ( - + CAST( - + MIN( ALL - 11 ) AS SIGNED ), 21 ) + 45
----
-890

skipif mysql # not compatible
query I rowsort label-8949
SELECT 85 * + NULLIF ( - + CAST ( - + MIN ( ALL - 11 ) AS INTEGER ), 21 ) + 45
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) + + - 19
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8951
SELECT ALL - 4 - + - CASE + CAST( + + COALESCE ( - - 38, + 47 * 4 ) AS SIGNED ) WHEN + 85 THEN NULL WHEN + 82 + CAST( NULL AS SIGNED ) + + COUNT( * ) + - ( - 37 ) THEN - + 36 * 13 + ( - 24 ) ELSE + - COUNT( * ) END AS col2, - 27 + - 99
----
-5
-126

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL - 4 - + - CASE + CAST ( + + COALESCE ( - - 38, + 47 * 4 ) AS INTEGER ) WHEN + 85 THEN NULL WHEN + 82 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - ( - 37 ) THEN - + 36 * 13 + ( - 24 ) ELSE + - COUNT ( * ) END AS col2, - 27 + - 99
----
-5
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT + COUNT( * ) * 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + COUNT ( * ) * 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT - + AVG ( ALL + + 3 ) - + - CAST( NULL AS SIGNED ) + + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - + AVG ( ALL + + 3 ) - + - CAST ( NULL AS INTEGER ) + + 58 col2
----
NULL

query II rowsort
SELECT DISTINCT + + 29 AS col1, - 97 AS col0
----
29
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT + - NULLIF ( 62, CAST( 74 AS SIGNED ) * COALESCE ( 65, - 59 * + COALESCE ( SUM( ALL + + 10 ), 46 * COUNT( * ) + 98, - 91 + - + ( + 87 ) - - + 64 / + - COUNT( * ), + + 84 * + 23 ) ) - - 6 + + 42 + - 56 * + CAST( NULL AS SIGNED ) * + + 29 * + + 91 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8955
SELECT + - NULLIF ( 62, CAST ( 74 AS INTEGER ) * COALESCE ( 65, - 59 * + COALESCE ( SUM ( ALL + + 10 ), 46 * COUNT ( * ) + 98, - 91 + - + ( + 87 ) - - + 64 / + - COUNT ( * ), + + 84 * + 23 ) ) - - 6 + + 42 + - 56 * + CAST ( NULL AS INTEGER ) * + + 29 * + + 91 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT ALL + 63 - + 75 + - 41, + COUNT( * ) + ( - 0 ) AS col1
----
-53
1

skipif mysql # not compatible
query II rowsort label-8956
SELECT ALL + 63 - + 75 + - 41, + COUNT ( * ) + ( - 0 ) AS col1
----
-53
1

query I rowsort
SELECT - 60 + - 66 * - 38 + - + 83 + 74 * - 1 + + - 91
----
2200

query I rowsort
SELECT + 30 - + - ( - + 18 ) + 15
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + 34 * - COUNT( * ) * + 45 * + 34
----
-52020

skipif mysql # not compatible
query I rowsort label-8959
SELECT + 34 * - COUNT ( * ) * + 45 * + 34
----
-52020

query I rowsort
SELECT + 3 + ( 7 ) * + + 33 AS col1
----
234

query I rowsort
SELECT ALL - 39 * - + 75
----
2925

query II rowsort
SELECT ALL 90, + 26 col0
----
90
26

query I rowsort
SELECT + ( 33 ) + - 86 AS col2
----
-53

query III rowsort
SELECT ALL 92, + 28 AS col2, + ( + 62 ) col0
----
92
28
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8965
SELECT DISTINCT 44 * ( - 74 ) * - CAST( NULL AS DECIMAL ) * + + COUNT( * ) * - 37 / + 65 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT 44 * ( - 74 ) * - CAST ( NULL AS REAL ) * + + COUNT ( * ) * - 37 / + 65 / - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + CASE - 51 WHEN + 44 + COUNT( * ) THEN - COUNT( * ) END + + 99 - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT + CASE - 51 WHEN + 44 + COUNT ( * ) THEN - COUNT ( * ) END + + 99 - 17 AS col1
----
NULL

query I rowsort
SELECT ALL 38 + - + 43 AS col1
----
-5

query I rowsort
SELECT + 50 + - 9 + 26
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8969
SELECT + NULLIF ( + MAX( ALL + 10 ), + 67 ) DIV - + 10 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8969
SELECT + NULLIF ( + MAX ( ALL + 10 ), + 67 ) / - + 10 AS col2
----
-1

query I rowsort
SELECT + 26 + 39 + 77 * + 22 - - - 43
----
1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL 32 + + 93 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 32 + + 93 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT + 96 * - SUM( - + 48 ) AS col1
----
4608

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 96 * - SUM ( - + 48 ) AS col1
----
4608

query I rowsort
SELECT - 2 + - 39
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - COALESCE ( + 77, 28 * - 71 * + 77 * - + COUNT( * ) * + 81 * ( - - 62 ), - 83 )
----
-77

skipif mysql # not compatible
query I rowsort label-8974
SELECT - COALESCE ( + 77, 28 * - 71 * + 77 * - + COUNT ( * ) * + 81 * ( - - 62 ), - 83 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8975
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) DIV - COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8975
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) / - COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8976
SELECT ALL 96 + CAST( 83 AS SIGNED ) DIV 32 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL 96 + CAST ( 83 AS INTEGER ) / 32 AS col0
----
98

query I rowsort
SELECT + 66 * - 45 * + 99
----
-294030

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ALL 3 DIV 68 + 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL 3 / 68 + 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT COUNT( * ) * + - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT COUNT ( * ) * + - 63 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT ALL + 87 / - CAST( + AVG ( ALL - 51 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + 87 / - CAST ( + AVG ( ALL - 51 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT + 81, - COUNT( * ) + - - CASE 0 WHEN + 23 THEN + NULLIF ( + + COUNT( * ), + 79 ) * - + 27 * + + 68 ELSE COUNT( * ) END col0
----
81
0

skipif mysql # not compatible
query II rowsort label-8981
SELECT + 81, - COUNT ( * ) + - - CASE 0 WHEN + 23 THEN + NULLIF ( + + COUNT ( * ), + 79 ) * - + 27 * + + 68 ELSE COUNT ( * ) END col0
----
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + SUM( 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + SUM ( 34 ) col0
----
34

query II rowsort
SELECT ALL 24 * - - 39 AS col1, + 20
----
936
20

query I rowsort
SELECT + 30 * - + 69 AS col2
----
-2070

query I rowsort
SELECT - 36 * - 78 AS col2
----
2808

query I rowsort
SELECT + NULLIF ( 61, + 29 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT + - 85 * - COUNT( + 86 ) * - + 32 * 4 + - CAST( NULL AS SIGNED ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + - 85 * - COUNT ( + 86 ) * - + 32 * 4 + - CAST ( NULL AS INTEGER ) + + 51
----
NULL

query I rowsort
SELECT + + ( - - CASE + 37 WHEN 3 * - - 46 + - ( 82 ) THEN - - 30 END ) AS col2
----
NULL

query I rowsort
SELECT - 92 * + - 1
----
92

query II rowsort
SELECT + 56 AS col1, + COALESCE ( + - 88, 41 )
----
56
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + 51 * 35 * - - 59 + COUNT( * )
----
105316

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 51 * 35 * - - 59 + COUNT ( * )
----
105316

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL - + 80 * CASE ( + COUNT( * ) ) WHEN + - 67 THEN + 51 + + 43 WHEN - + 57 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - + 80 * CASE ( + COUNT ( * ) ) WHEN + - 67 THEN + 51 + + 43 WHEN - + 57 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT - 12 AS col1, + CASE COUNT( * ) WHEN + - 17 + + 94 THEN 97 ELSE + COUNT( * ) + - ( + 74 ) END AS col1
----
-12
-73

skipif mysql # not compatible
query II rowsort label-8994
SELECT - 12 AS col1, + CASE COUNT ( * ) WHEN + - 17 + + 94 THEN 97 ELSE + COUNT ( * ) + - ( + 74 ) END AS col1
----
-12
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT DISTINCT 34 AS col0, COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-8995
SELECT DISTINCT 34 AS col0, COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT ALL + + 51 * + 86 + 16 + - 98 AS col2
----
4304

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT COUNT( DISTINCT + + 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8997
SELECT COUNT ( DISTINCT + + 16 ) AS col1
----
1

query I rowsort
SELECT - COALESCE ( - 93, - + 31 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - COUNT( * ) + - - 84 + 45 - 50 * - 77 * - - 49 AS col1
----
188778

skipif mysql # not compatible
query I rowsort label-8999
SELECT - COUNT ( * ) + - - 84 + 45 - 50 * - 77 * - - 49 AS col1
----
188778

query I rowsort
SELECT - NULLIF ( - 66, - 18 - + 52 + + 94 ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL 32 + - ( + COUNT( * ) ) * - - 68 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL 32 + - ( + COUNT ( * ) ) * - - 68 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT - 38 - - 90, - COUNT( * ) + COUNT( * ) AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-9002
SELECT - 38 - - 90, - COUNT ( * ) + COUNT ( * ) AS col0
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - COUNT( DISTINCT 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-9003
SELECT - COUNT ( DISTINCT 90 )
----
-1

query I rowsort
SELECT + 2 * + 42 * + 72 AS col0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT - NULLIF ( + - 4, + 31 ) - 94 * + - ( 21 ) * - - COALESCE ( + 81, 36 * + 15 ) + COUNT( * )
----
159899

skipif mysql # not compatible
query I rowsort label-9005
SELECT - NULLIF ( + - 4, + 31 ) - 94 * + - ( 21 ) * - - COALESCE ( + 81, 36 * + 15 ) + COUNT ( * )
----
159899

query I rowsort
SELECT ALL 84 + - 70 + 74 AS col2
----
88

query II rowsort
SELECT + 90 - - 95 AS col2, + 95 * + 54 AS col0
----
185
5130

query I rowsort
SELECT ALL + 90 * - + 47
----
-4230

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT + 66 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 66 / - 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL CASE - 39 WHEN + + 79 + 37 THEN NULL WHEN - CAST( COALESCE ( 99, 41, + 69 ) AS SIGNED ) + 19 THEN NULL ELSE + 81 - - COUNT( * ) END + - 99 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL CASE - 39 WHEN + + 79 + 37 THEN NULL WHEN - CAST ( COALESCE ( 99, 41, + 69 ) AS INTEGER ) + 19 THEN NULL ELSE + 81 - - COUNT ( * ) END + - 99 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT SUM( ALL - + 60 ) * COUNT( * ) * 67 * - 99 AS col2
----
397980

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT SUM ( ALL - + 60 ) * COUNT ( * ) * 67 * - 99 AS col2
----
397980

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT + 60 - - 88 + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-9012
SELECT + 60 - - 88 + COUNT ( * )
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT 18 DIV + 74 - 68
----
-68

skipif mysql # not compatible
query I rowsort label-9013
SELECT 18 / + 74 - 68
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9014
SELECT ALL 18 - - 32 DIV COUNT( DISTINCT 20 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 18 - - 32 / COUNT ( DISTINCT 20 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT + 31 * - + SUM( 90 )
----
-2790

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 31 * - + SUM ( 90 )
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + COALESCE ( + + 89, + 25 + + 80 * - COUNT( * ) * + - COALESCE ( + 61, + 55 ), + COUNT( * ) - + NULLIF ( 36, - - 52 + 66 ) + + CASE + + 68 WHEN - - 83 / 41 THEN - COUNT( * ) ELSE NULL END ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9016
SELECT + COALESCE ( + + 89, + 25 + + 80 * - COUNT ( * ) * + - COALESCE ( + 61, + 55 ), + COUNT ( * ) - + NULLIF ( 36, - - 52 + 66 ) + + CASE + + 68 WHEN - - 83 / 41 THEN - COUNT ( * ) ELSE NULL END ) AS col1
----
89

query I rowsort
SELECT - - 28 * + 2 + ( + - 98 ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9018
SELECT ALL - + COUNT( + - 25 ) AS col1, + ( - 81 ) + - 31, - ( - CAST( NULL AS SIGNED ) ) AS col2
----
-1
-112
NULL

skipif mysql # not compatible
query III rowsort label-9018
SELECT ALL - + COUNT ( + - 25 ) AS col1, + ( - 81 ) + - 31, - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-1
-112
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT DISTINCT - 18 DIV - + 20
----
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - 18 / - + 20
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT - 67 + COUNT( * ) AS col0, NULLIF ( + + 85, + 28 * - 82 - - MAX( ALL + - 68 ) ) + + 22 AS col1
----
-66
107

skipif mysql # not compatible
query II rowsort label-9020
SELECT - 67 + COUNT ( * ) AS col0, NULLIF ( + + 85, + 28 * - 82 - - MAX ( ALL + - 68 ) ) + + 22 AS col1
----
-66
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) / + 89 - - + 5 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) / + 89 - - + 5 * - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 89 * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 89 * - COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + MAX( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9023
SELECT + MAX ( 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT + CASE 5 WHEN CASE + 96 WHEN - 55 THEN CAST( NULL AS SIGNED ) WHEN 42 THEN + + COALESCE ( 84, - - COUNT( * ), - 65 ) + 88 ELSE + - 81 - + COUNT( * ) END + 19 / + 85 THEN + 24 * - 89 + + 94 + + 74 + - 93 WHEN - - 51 + + COUNT( * ) + 79 * - 28 + + 65 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + CASE 5 WHEN CASE + 96 WHEN - 55 THEN CAST ( NULL AS INTEGER ) WHEN 42 THEN + + COALESCE ( 84, - - COUNT ( * ), - 65 ) + 88 ELSE + - 81 - + COUNT ( * ) END + 19 / + 85 THEN + 24 * - 89 + + 94 + + 74 + - 93 WHEN - - 51 + + COUNT ( * ) + 79 * - 28 + + 65 THEN NULL END col2
----
NULL

query I rowsort
SELECT 48 * 89 AS col1
----
4272

query I rowsort
SELECT 81 + - 90 + ( + 87 ) * - 29 * + 66
----
-166527

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - + MIN( DISTINCT - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - + MIN ( DISTINCT - - 42 )
----
-42

query II rowsort
SELECT DISTINCT + - 15 + + 7, 34 col2
----
-8
34

query I rowsort
SELECT ALL - 9 + - + 13 + - 76 * 81 + ( - 45 ) AS col1
----
-6223

query I rowsort
SELECT DISTINCT + 94 + - 83 + - 16 * - 37
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT CAST( COUNT( * ) AS SIGNED ) - - - 77 + - 38 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT CAST ( COUNT ( * ) AS INTEGER ) - - - 77 + - 38 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 24 AS col0, - 51
----
24
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT CAST( - - 56 AS SIGNED ) + + 76 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-9033
SELECT CAST ( - - 56 AS INTEGER ) + + 76 AS col2
----
132

query I rowsort
SELECT DISTINCT + 76 + + 53
----
129

query I rowsort
SELECT 11 + + 67 + + - 41 * 85 * - 92 AS col0
----
320698

query II rowsort
SELECT 10 col0, 21 + ( 40 ) + - 78 * - 53 AS col1
----
10
4195

query I rowsort
SELECT 91 + 17
----
108

query I rowsort
SELECT DISTINCT - 76 + + + 17 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9039
SELECT ALL - 58 * - CAST( 78 AS SIGNED ) AS col0, - 56
----
4524
-56

skipif mysql # not compatible
query II rowsort label-9039
SELECT ALL - 58 * - CAST ( 78 AS INTEGER ) AS col0, - 56
----
4524
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT DISTINCT 14 AS col2, COUNT( * )
----
14
1

skipif mysql # not compatible
query II rowsort label-9040
SELECT DISTINCT 14 AS col2, COUNT ( * )
----
14
1

query I rowsort
SELECT DISTINCT - 32 - + 39 AS col0
----
-71

query II rowsort
SELECT DISTINCT 72 col1, 43 AS col0
----
72
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - COUNT( * ) - - 5
----
4

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - COUNT ( * ) - - 5
----
4

query I rowsort
SELECT NULLIF ( + 43, + ( + 68 ) ) + - + 55 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9045
SELECT ALL 34 AS col1, + COALESCE ( - + 25, + COUNT( * ) ) * - + 41
----
34
1025

skipif mysql # not compatible
query II rowsort label-9045
SELECT ALL 34 AS col1, + COALESCE ( - + 25, + COUNT ( * ) ) * - + 41
----
34
1025

query I rowsort
SELECT ALL 68 * - 26 col0
----
-1768

query I rowsort
SELECT ( + - 43 )
----
-43

query I rowsort
SELECT ALL + 6 - + 0
----
6

query I rowsort
SELECT + 47 * + 98 - 35 AS col2
----
4571

query I rowsort
SELECT DISTINCT + - 51 * 71 + - 65
----
-3686

query II rowsort
SELECT ALL - + 90, + 73 * - 73 AS col2
----
-90
-5329

onlyif mysql # DIV for integer division: 
query II rowsort label-9052
SELECT + - 47 AS col2, 4 DIV - 50 AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-9052
SELECT + - 47 AS col2, 4 / - 50 AS col2
----
-47
0

query I rowsort
SELECT + 65 * - - 56 * ( 58 ) AS col0
----
211120

query II rowsort
SELECT DISTINCT - - 39 AS col1, 70 * + ( - 85 ) + - ( 25 ) + - 46 * - 45
----
39
-3905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT - CAST( NULL AS SIGNED ) * + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT - CAST ( NULL AS INTEGER ) * + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - - 30 * - 76 - + COUNT( * )
----
-2281

skipif mysql # not compatible
query I rowsort label-9056
SELECT - - 30 * - 76 - + COUNT ( * )
----
-2281

query II rowsort
SELECT ALL - - 57 AS col2, - 39 AS col1
----
57
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - MIN( ALL - 39 ) + - - 74 - - 92 + - + 18 AS col0
----
187

skipif mysql # not compatible
query I rowsort label-9058
SELECT - MIN ( ALL - 39 ) + - - 74 - - 92 + - + 18 AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT 86 * COUNT( * ) * - 22
----
-1892

skipif mysql # not compatible
query I rowsort label-9059
SELECT 86 * COUNT ( * ) * - 22
----
-1892

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT 16 DIV 84 - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-9060
SELECT 16 / 84 - + 99
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT DISTINCT - 47, - MIN( ALL + 65 ) AS col2
----
-47
-65

skipif mysql # not compatible
query II rowsort label-9061
SELECT DISTINCT - 47, - MIN ( ALL + 65 ) AS col2
----
-47
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT SUM( + 93 ) - + + 11 * - 24 * ( 70 ) * - 99 AS col1
----
-1829427

skipif mysql # not compatible
query I rowsort label-9062
SELECT SUM ( + 93 ) - + + 11 * - 24 * ( 70 ) * - 99 AS col1
----
-1829427

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT ALL 37 DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 37 / - 49 AS col0
----
0

query I rowsort
SELECT ALL - 13 + 4 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + MIN( ALL + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9065
SELECT + MIN ( ALL + 87 ) AS col0
----
87

query I rowsort
SELECT ALL - 80 + - 36 AS col2
----
-116

query I rowsort
SELECT 44 + 32 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT DISTINCT 56 + + 6 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT 56 + + 6 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9069
SELECT ALL COUNT( * ) * - 94 DIV ( + + 23 ) AS col1, - 30 - - + 67 + + + 86 * - 40 * CAST( - + 59 AS SIGNED ) + - 60 AS col1
----
-4
202937

skipif mysql # not compatible
query II rowsort label-9069
SELECT ALL COUNT ( * ) * - 94 / ( + + 23 ) AS col1, - 30 - - + 67 + + + 86 * - 40 * CAST ( - + 59 AS INTEGER ) + - 60 AS col1
----
-4
202937

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT - CASE - - CASE - 52 WHEN - 1 THEN NULL WHEN + 72 THEN NULL WHEN + 23 / 78 THEN - + COUNT( * ) - 34 + + 17 ELSE ( - 34 ) END WHEN - - 30 THEN 89 * 4 * 82 * + 84 WHEN + 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - CASE - - CASE - 52 WHEN - 1 THEN NULL WHEN + 72 THEN NULL WHEN + 23 / 78 THEN - + COUNT ( * ) - 34 + + 17 ELSE ( - 34 ) END WHEN - - 30 THEN 89 * 4 * 82 * + 84 WHEN + 26 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 17 + - 88 * + - 38 - + 13
----
3314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT ALL COUNT( - + 40 ) * + - 39 DIV - - 23
----
-1

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL COUNT ( - + 40 ) * + - 39 / - - 23
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9073
SELECT NULLIF ( + + 72, - 90 + + + 86 ) + - CAST( NULL AS SIGNED ), 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9073
SELECT NULLIF ( + + 72, - 90 + + + 86 ) + - CAST ( NULL AS INTEGER ), 3 AS col0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT COUNT( DISTINCT - + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT COUNT ( DISTINCT - + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT COUNT( * ) - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT COUNT ( * ) - + 57
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT - COUNT( * ) DIV 8 * - 8 * 41
----
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - COUNT ( * ) / 8 * - 8 * 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + MAX( - 1 ) - + + CASE 49 WHEN - 58 * + 44 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + MAX ( - 1 ) - + + CASE 49 WHEN - 58 * + 44 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT ALL - 27 * + ( ( CAST( NULL AS SIGNED ) ) ) AS col2, - 48 * + 96
----
NULL
-4608

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - 27 * + ( ( CAST ( NULL AS INTEGER ) ) ) AS col2, - 48 * + 96
----
NULL
-4608

query I rowsort
SELECT + 7 * - ( + 93 )
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL COUNT( DISTINCT - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL COUNT ( DISTINCT - 98 )
----
1

query I rowsort
SELECT - 1 - 1 AS col2
----
-2

query I rowsort
SELECT ALL 65 * 26 * 24 AS col1
----
40560

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL NULLIF ( - 41, - MAX( ALL + 1 ) / + 26 )
----
-41

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL NULLIF ( - 41, - MAX ( ALL + 1 ) / + 26 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - - MIN( + - 3 ) + - 91
----
-94

skipif mysql # not compatible
query I rowsort label-9084
SELECT - - MIN ( + - 3 ) + - 91
----
-94

query I rowsort
SELECT ALL + - 49 * + 46
----
-2254

query II rowsort
SELECT - 44 * + 12 AS col2, CASE 84 WHEN - 29 THEN ( + 3 ) WHEN + 69 THEN 59 END / + + 72
----
-528
NULL

query I rowsort
SELECT - + 91 * + 68
----
-6188

query I rowsort
SELECT - 88 + - 47 * + 88
----
-4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT - 58 - - + COUNT( * ) * 53 * - - 11 + + - 82 + + 23 - - 80 DIV - + 73 AS col0
----
465

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 58 - - + COUNT ( * ) * 53 * - - 11 + + - 82 + + 23 - - 80 / - + 73 AS col0
----
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9090
SELECT ALL - 69 DIV 83 + + ( + 76 ) AS col1, COUNT( * ) AS col2
----
76
1

skipif mysql # not compatible
query II rowsort label-9090
SELECT ALL - 69 / 83 + + ( + 76 ) AS col1, COUNT ( * ) AS col2
----
76
1

query II rowsort
SELECT - 71 - - 81 AS col2, - 98
----
10
-98

query I rowsort
SELECT - 78 * - - ( + 68 ) + - - 52 * + 39
----
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT + + 11 DIV 63 + 82
----
82

skipif mysql # not compatible
query I rowsort label-9093
SELECT + + 11 / 63 + 82
----
82

query I rowsort
SELECT + CASE WHEN NOT 10 >= NULL THEN + - ( - 94 ) * + - 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9095
SELECT DISTINCT 36 * + 4 + CAST( NULL AS DECIMAL ) + - 19 + 62 + - 98 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT 36 * + 4 + CAST ( NULL AS REAL ) + - 19 + 62 + - 98 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( + + 35 )
----
35

query I rowsort
SELECT DISTINCT + 75 * 64 + + 24 + 56 + - 75
----
4805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT - 31 * 33 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + MIN( DISTINCT - 85 ) * 15 + - 83 * - 86 * - NULLIF ( - 99, - + 69 + - 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT - 31 * 33 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + MIN ( DISTINCT - 85 ) * 15 + - 83 * - 86 * - NULLIF ( - 99, - + 69 + - 90 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9099
SELECT - 2 DIV + CAST( + + 13 AS SIGNED ) * COUNT( * ) + + 35 * + + 4 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 2 / + CAST ( + + 13 AS INTEGER ) * COUNT ( * ) + + 35 * + + 4 AS col0
----
140

query I rowsort
SELECT + ( 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL + SUM( DISTINCT - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + SUM ( DISTINCT - 90 )
----
-90

query I rowsort
SELECT - 0 * - 28 * - 46 + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL 81 * - 8 - + - COUNT( * ) + - + 44 * - COALESCE ( + 8, COUNT( * ), - 81 ) AS col1
----
-295

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL 81 * - 8 - + - COUNT ( * ) + - + 44 * - COALESCE ( + 8, COUNT ( * ), - 81 ) AS col1
----
-295

query I rowsort
SELECT + 43 * - + 85
----
-3655

onlyif mysql # aggregate syntax: 
query III rowsort label-9105
SELECT - COUNT( * ) * + 61 * 17 + ( - - 4 ) * + NULLIF ( - 37, - 46 ) * + ( + 59 ), 54 * + 10 + - 33 AS col0, - NULLIF ( + - COUNT( * ), - NULLIF ( + 88, - COUNT( * ) + - - 20 ) ) + 37 + - 40 AS col0
----
-9769
507
-2

skipif mysql # not compatible
query III rowsort label-9105
SELECT - COUNT ( * ) * + 61 * 17 + ( - - 4 ) * + NULLIF ( - 37, - 46 ) * + ( + 59 ), 54 * + 10 + - 33 AS col0, - NULLIF ( + - COUNT ( * ), - NULLIF ( + 88, - COUNT ( * ) + - - 20 ) ) + 37 + - 40 AS col0
----
-9769
507
-2

query I rowsort
SELECT ALL 25 * - 57
----
-1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT - CAST( - + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9107
SELECT - CAST ( - + 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - COUNT( * ) + + NULLIF ( - 30, + 13 / - + NULLIF ( - + COUNT( * ), 83 ) * - 63 / + ( - 42 ) + 52 )
----
-31

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) + + NULLIF ( - 30, + 13 / - + NULLIF ( - + COUNT ( * ), 83 ) * - 63 / + ( - 42 ) + 52 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + 25 + - - 48 + MIN( DISTINCT - 26 ) * + + 69 * 61
----
-109361

skipif mysql # not compatible
query I rowsort label-9109
SELECT + 25 + - - 48 + MIN ( DISTINCT - 26 ) * + + 69 * 61
----
-109361

query I rowsort
SELECT + 84 * - - 59 * - 67
----
-332052

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9111
SELECT - 18 col1, SUM( DISTINCT 43 ) DIV 57 * - COUNT( ALL + + 58 ) + + COUNT( * ) + + 63
----
-18
64

skipif mysql # not compatible
query II rowsort label-9111
SELECT - 18 col1, SUM ( DISTINCT 43 ) / 57 * - COUNT ( ALL + + 58 ) + + COUNT ( * ) + + 63
----
-18
64

query I rowsort
SELECT ALL 7 * + - 21 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL NULLIF ( - 85, + CASE MIN( DISTINCT + + 61 ) WHEN - 28 THEN + + 74 ELSE NULL END * 86 )
----
-85

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL NULLIF ( - 85, + CASE MIN ( DISTINCT + + 61 ) WHEN - 28 THEN + + 74 ELSE NULL END * 86 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + 54 * + COUNT( * ) col0
----
54

skipif mysql # not compatible
query I rowsort label-9114
SELECT + 54 * + COUNT ( * ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT - + CASE - + COUNT( * ) WHEN - ( ( 6 ) ) + 58 * - 30 THEN - 90 END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - + CASE - + COUNT ( * ) WHEN - ( ( 6 ) ) + 58 * - 30 THEN - 90 END * 69
----
NULL

query I rowsort
SELECT - 42 + - 33 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT ALL 16 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL 16 / + 71 AS col1
----
0

query I rowsort
SELECT - 56 + - 16
----
-72

query I rowsort
SELECT - + 54 + + 8 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9120
SELECT - - ( + - 82 ) DIV + 92 AS col1, + 67 + - - 15 + + 59 * + - CASE - 50 WHEN - ( - COUNT( ALL 6 ) ) * + 66 THEN ( - COUNT( * ) ) WHEN 43 + - MIN( - 22 ) THEN NULL WHEN - + 32 THEN NULL ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9120
SELECT - - ( + - 82 ) / + 92 AS col1, + 67 + - - 15 + + 59 * + - CASE - 50 WHEN - ( - COUNT ( ALL 6 ) ) * + 66 THEN ( - COUNT ( * ) ) WHEN 43 + - MIN ( - 22 ) THEN NULL WHEN - + 32 THEN NULL ELSE NULL END AS col2
----
0
NULL

query I rowsort
SELECT ALL + 74 + 66 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - + 68 * - 28 * - COUNT( * ) * 94 AS col1
----
-178976

skipif mysql # not compatible
query I rowsort label-9122
SELECT - + 68 * - 28 * - COUNT ( * ) * 94 AS col1
----
-178976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT ALL + 63 * - ( 59 ) * + + CAST( + ( + 22 ) AS SIGNED ) - + 52 AS col2
----
-81826

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + 63 * - ( 59 ) * + + CAST ( + ( + 22 ) AS INTEGER ) - + 52 AS col2
----
-81826

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT ALL - COALESCE ( - - 39, - - 51 * 62 * + 9 DIV - 75 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - COALESCE ( - - 39, - - 51 * 62 * + 9 / - 75 ) col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9125
SELECT ALL - 64 DIV + 91 * 7 + + 13 - - 68 - - COUNT( * ) DIV COALESCE ( + CAST( - + 5 AS SIGNED ), 59 * - 51 - - + 61 + - 96 * + 46 * 39 * + 33 ) * - 8 + - 69 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - 64 / + 91 * 7 + + 13 - - 68 - - COUNT ( * ) / COALESCE ( + CAST ( - + 5 AS INTEGER ), 59 * - 51 - - + 61 + - 96 * + 46 * 39 * + 33 ) * - 8 + - 69 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + + MIN( - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9126
SELECT + + MIN ( - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + 58 * + + 68 + - COUNT( + 23 )
----
3943

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 58 * + + 68 + - COUNT ( + 23 )
----
3943

onlyif mysql # aggregate syntax: 
query III rowsort label-9128
SELECT - - 36 + - MIN( + 84 ) AS col1, 65 - - 61 / + + ( - CASE - 15 WHEN - + 77 THEN NULL WHEN + ( - 57 ) * 75 THEN + 2 + 39 * + COUNT( * ) + + - 12 ELSE NULL END ) AS col1, 95 AS col2
----
-48
NULL
95

skipif mysql # not compatible
query III rowsort label-9128
SELECT - - 36 + - MIN ( + 84 ) AS col1, 65 - - 61 / + + ( - CASE - 15 WHEN - + 77 THEN NULL WHEN + ( - 57 ) * 75 THEN + 2 + 39 * + COUNT ( * ) + + - 12 ELSE NULL END ) AS col1, 95 AS col2
----
-48
NULL
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT - - 78 * - - 18 * CAST( NULL AS SIGNED ) * - SUM( ( 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT - - 78 * - - 18 * CAST ( NULL AS INTEGER ) * - SUM ( ( 52 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT ALL + + COUNT( ALL - + 10 ) DIV - NULLIF ( - 54, + + 12 ) * COUNT( * ) - 30
----
-30

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + + COUNT ( ALL - + 10 ) / - NULLIF ( - 54, + + 12 ) * COUNT ( * ) - 30
----
-30

query I rowsort
SELECT ALL + COALESCE ( + 14, + - 97, + 3 )
----
14

query II rowsort
SELECT DISTINCT + 33, - 98 AS col2
----
33
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-9133
SELECT - 50 - - 55 - - 28 DIV + - 3 - - 10 + 58 col1, - 15
----
64
-15

skipif mysql # not compatible
query II rowsort label-9133
SELECT - 50 - - 55 - - 28 / + - 3 - - 10 + 58 col1, - 15
----
64
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL MAX( - - 72 ) * - 80 AS col0
----
-5760

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL MAX ( - - 72 ) * - 80 AS col0
----
-5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT ALL COUNT( * ) DIV 15 - + - 90
----
90

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( * ) / 15 - + - 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT - COALESCE ( + - SUM( DISTINCT + 62 ), - - 40, 79, + 66 + - 6 ) * - - 91 AS col2
----
5642

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - COALESCE ( + - SUM ( DISTINCT + 62 ), - - 40, 79, + 66 + - 6 ) * - - 91 AS col2
----
5642

query II rowsort
SELECT + 98 AS col1, 95 col1
----
98
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9138
SELECT 94 + 64 + + - 18 + - 61 DIV NULLIF ( - 94, CAST( - 33 AS SIGNED ) ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-9138
SELECT 94 + 64 + + - 18 + - 61 / NULLIF ( - 94, CAST ( - 33 AS INTEGER ) ) AS col0
----
140

query II rowsort
SELECT DISTINCT - 68 AS col0, 44
----
-68
44

query I rowsort
SELECT 39 - - 46
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT CASE - + 96 WHEN 67 THEN - COUNT( * ) + 92 + + - 13 WHEN COUNT( DISTINCT ( + CAST( - 14 AS SIGNED ) ) ) THEN NULL END * - CAST( + - ( - - 54 ) AS SIGNED ) / - 19 - 70 + 2 + - ( 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT CASE - + 96 WHEN 67 THEN - COUNT ( * ) + 92 + + - 13 WHEN COUNT ( DISTINCT ( + CAST ( - 14 AS INTEGER ) ) ) THEN NULL END * - CAST ( + - ( - - 54 ) AS INTEGER ) / - 19 - 70 + 2 + - ( 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT DISTINCT ( COUNT( * ) ) DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT ( COUNT ( * ) ) / + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL 48 * - + COALESCE ( + + 11, - + SUM( DISTINCT - - 44 ) )
----
-528

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL 48 * - + COALESCE ( + + 11, - + SUM ( DISTINCT - - 44 ) )
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COALESCE ( + COUNT( * ), - CASE - - 96 WHEN + COUNT( + 56 ) * + - 18 * - 45 + - + 41 THEN - 77 * - 91 WHEN - COUNT( * ) * - - 59 - - 62 + + + COUNT( * ) THEN NULL END + + 97, - - 95 ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9144
SELECT COALESCE ( + COUNT ( * ), - CASE - - 96 WHEN + COUNT ( + 56 ) * + - 18 * - 45 + - + 41 THEN - 77 * - 91 WHEN - COUNT ( * ) * - - 59 - - 62 + + + COUNT ( * ) THEN NULL END + + 97, - - 95 ) * - + COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT 25 AS col0, - 65 AS col2
----
25
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT DISTINCT ( - + ( - ( - 51 ) ) ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT ( - + ( - ( - 51 ) ) ) / + 61
----
0

query II rowsort
SELECT 77, 31 + - + 33 AS col1
----
77
-2

query I rowsort
SELECT ALL 12 * + - ( + - 52 ) AS col2
----
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9149
SELECT COALESCE ( + + NULLIF ( CAST( NULL AS SIGNED ), + + 34 ), + 48 DIV - + 68 ) + - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9149
SELECT COALESCE ( + + NULLIF ( CAST ( NULL AS INTEGER ), + + 34 ), + 48 / - + 68 ) + - - COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + COUNT( * ) * + + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9150
SELECT + COUNT ( * ) * + + 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT MIN( DISTINCT - - 4 ) * + 37 col2
----
148

skipif mysql # not compatible
query I rowsort label-9151
SELECT MIN ( DISTINCT - - 4 ) * + 37 col2
----
148

query I rowsort
SELECT ALL - 78 + 90 * - 92 AS col1
----
-8358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT DISTINCT + CAST( - - 81 AS SIGNED ) + 32 col2
----
113

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + CAST ( - - 81 AS INTEGER ) + 32 col2
----
113

query I rowsort
SELECT ALL 90 + - 54
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - - NULLIF ( 96, - 34 + - - 46 + + 12 * + MAX( ALL - ( - 14 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-9155
SELECT - - NULLIF ( 96, - 34 + - - 46 + + 12 * + MAX ( ALL - ( - 14 ) ) )
----
96

query I rowsort
SELECT - 33 + - 52 col0
----
-85

query II rowsort
SELECT ALL 3 + + 37, ( - 8 ) col0
----
40
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9158
SELECT DISTINCT 37 AS col1, COALESCE ( - - 91, - 72 + + + 74, 29 * - + 89 + + - 22 + + + COUNT( * ) * - 50 - + + 21 + - 39 - MIN( 64 ) + - 17 + + 57 + - 20 * 47 * - 66 DIV - 25 + + - 85 - - AVG ( DISTINCT + - ( COALESCE ( + 46, - ( - - 19 ) ) ) ) DIV - COUNT( * ) )
----
37
91

skipif mysql # not compatible
query II rowsort label-9158
SELECT DISTINCT 37 AS col1, COALESCE ( - - 91, - 72 + + + 74, 29 * - + 89 + + - 22 + + + COUNT ( * ) * - 50 - + + 21 + - 39 - MIN ( 64 ) + - 17 + + 57 + - 20 * 47 * - 66 / - 25 + + - 85 - - AVG ( DISTINCT + - ( COALESCE ( + 46, - ( - - 19 ) ) ) ) / - COUNT ( * ) )
----
37
91

query I rowsort
SELECT ALL - AVG ( + CASE 17 WHEN - 0 * + 69 * + 28 - - 50 THEN + 22 + - 91 WHEN + + 60 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 17, 60 )
----
-17

query II rowsort
SELECT - 15 AS col2, + 92 + - ( - + 19 )
----
-15
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-9162
SELECT + COUNT ( * ) + - 87
----
-86

query I rowsort
SELECT - ( + + 73 ) col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL + 1 - + 44 + CASE + + 76 WHEN + 49 / 91 THEN 36 WHEN + 90 THEN + 68 * CAST( - COUNT( * ) AS SIGNED ) * + 46 * + - 26 + + 90 * 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + 1 - + 44 + CASE + + 76 WHEN + 49 / 91 THEN 36 WHEN + 90 THEN + 68 * CAST ( - COUNT ( * ) AS INTEGER ) * + 46 * + - 26 + + 90 * 10 END
----
NULL

query I rowsort
SELECT - 22 * - - 79 + 87 AS col0
----
-1651

query II rowsort
SELECT - 92 * + + 36 * - + 27 * 99, NULLIF ( + 68, 65 ) col1
----
8852976
68

query I rowsort
SELECT DISTINCT + 57 * + 88
----
5016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT - - 44 DIV - + 51 + + + ( ( + 21 ) ) + - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9168
SELECT - - 44 / - + 51 + + + ( ( + 21 ) ) + - - COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9169
SELECT ALL MAX( + - ( - CAST( NULL AS SIGNED ) ) ) - - 53 + - COUNT( * ) AS col2, 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9169
SELECT ALL MAX ( + - ( - CAST ( NULL AS INTEGER ) ) ) - - 53 + - COUNT ( * ) AS col2, 46 AS col1
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT 11 * + + SUM( + 67 ) * - - 80 AS col2
----
58960

skipif mysql # not compatible
query I rowsort label-9170
SELECT 11 * + + SUM ( + 67 ) * - - 80 AS col2
----
58960

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT 14 + COUNT( * ) AS col0, 33
----
15
33

skipif mysql # not compatible
query II rowsort label-9171
SELECT 14 + COUNT ( * ) AS col0, 33
----
15
33

query I rowsort
SELECT ALL 32 * - ( 60 ) AS col0
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT 30 DIV COUNT( * ) * + 66
----
1980

skipif mysql # not compatible
query I rowsort label-9173
SELECT 30 / COUNT ( * ) * + 66
----
1980

query II rowsort
SELECT ALL - ( 68 ) AS col0, 94
----
-68
94

query I rowsort
SELECT - 92 * + 68 + + + 84 - ( 31 )
----
-6203

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT COUNT( * ) * + 20, 20 - 26 AS col0
----
20
-6

skipif mysql # not compatible
query II rowsort label-9176
SELECT COUNT ( * ) * + 20, 20 - 26 AS col0
----
20
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL - MAX( 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - MAX ( 85 ) AS col1
----
-85

query I rowsort
SELECT ALL + 96 * 28
----
2688

query I rowsort
SELECT ALL + ( - 86 ) + - 15
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT 96 * - 42 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT 96 * - 42 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 66 + 2 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL + SUM( DISTINCT + - 36 ) + + + 79 - - 91 * MIN( - + 7 ) * + 45 * - SUM( DISTINCT - 9 ) AS col1
----
-257942

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + SUM ( DISTINCT + - 36 ) + + + 79 - - 91 * MIN ( - + 7 ) * + 45 * - SUM ( DISTINCT - 9 ) AS col1
----
-257942

query I rowsort
SELECT 25 * 21 AS col1
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + 97 * + - 76 + - COUNT( * ) * 66
----
-7438

skipif mysql # not compatible
query I rowsort label-9184
SELECT + 97 * + - 76 + - COUNT ( * ) * 66
----
-7438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT + 79 + 56 + - CAST( NULL AS SIGNED ) + 38 + - 69 + + 72 + 68 + - - ( + ( - 86 ) ) * - + NULLIF ( 62, + + MAX( 74 ) * + 95 + 79 ) + + 1 * - 68 / - COALESCE ( - 12, + 68 + - 81 ) + + + COALESCE ( - 3, - - 66 * + - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + 79 + 56 + - CAST ( NULL AS INTEGER ) + 38 + - 69 + + 72 + 68 + - - ( + ( - 86 ) ) * - + NULLIF ( 62, + + MAX ( 74 ) * + 95 + 79 ) + + 1 * - 68 / - COALESCE ( - 12, + 68 + - 81 ) + + + COALESCE ( - 3, - - 66 * + - 2 )
----
NULL

query I rowsort
SELECT ALL - 24 + + - 42 AS col0
----
-66

query I rowsort
SELECT - NULLIF ( + 97, - + 48 ) + + 57
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL + 7 + 10 + - 72 + 85 * COUNT( * ) * + 5 * - ( - - 99 )
----
-42130

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + 7 + 10 + - 72 + 85 * COUNT ( * ) * + 5 * - ( - - 99 )
----
-42130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT DISTINCT + - NULLIF ( + ( - + 71 ), + + ( ( + 9 ) ) + CAST( NULL AS SIGNED ) + MIN( DISTINCT - 95 ) + + - CAST( NULL AS SIGNED ) ) + - 56 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT + - NULLIF ( + ( - + 71 ), + + ( ( + 9 ) ) + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - 95 ) + + - CAST ( NULL AS INTEGER ) ) + - 56 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT ALL 34 DIV + COUNT( * ) + + 70 * - 70 AS col2
----
-4866

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL 34 / + COUNT ( * ) + + 70 * - 70 AS col2
----
-4866

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT MAX( - 32 ) * - + ( - MAX( - - 24 ) ) * - COUNT( * ) * + 68
----
52224

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT MAX ( - 32 ) * - + ( - MAX ( - - 24 ) ) * - COUNT ( * ) * + 68
----
52224

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + MIN( ALL - 96 ) + ( - 75 )
----
-171

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + MIN ( ALL - 96 ) + ( - 75 )
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - 96 * - MIN( DISTINCT 12 ) AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - 96 * - MIN ( DISTINCT 12 ) AS col1
----
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT ALL + ( - SUM( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + ( - SUM ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - SUM( ALL 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-9195
SELECT - SUM ( ALL 33 )
----
-33

query I rowsort
SELECT - 54 + NULLIF ( 83, + 24 )
----
29

query I rowsort
SELECT DISTINCT + 72 * 84
----
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT DISTINCT + ( + 3 ) * 51 DIV - - MIN( + 11 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT + ( + 3 ) * 51 / - - MIN ( + 11 ) AS col1
----
13

query I rowsort
SELECT ALL + CASE - + CASE 36 WHEN 68 THEN + 85 * 1 END WHEN + 88 + 66 THEN - + 21 / + + 68 / + + 25 + - ( - - 37 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT ALL + + COUNT( DISTINCT - 29 ) AS col0, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL + + COUNT ( DISTINCT - 29 ) AS col0, 33
----
1
33

query I rowsort
SELECT + 44 * + - 5 * + 57
----
-12540

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + COUNT( * ) + - + 19 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9202
SELECT + COUNT ( * ) + - + 19 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + NULLIF ( - COALESCE ( + ( ( - 62 ) ), - 6 * - + 54 + + + 49 + 25 * - ( - COUNT( * ) ), - 5 + - + 76 + 10 * + 43 * 73 * - 60 * + - 63 ), + 60 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9203
SELECT + NULLIF ( - COALESCE ( + ( ( - 62 ) ), - 6 * - + 54 + + + 49 + 25 * - ( - COUNT ( * ) ), - 5 + - + 76 + 10 * + 43 * 73 * - 60 * + - 63 ), + 60 ) AS col1
----
62

query I rowsort
SELECT CASE - 70 WHEN - 10 THEN - + 38 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9205
SELECT - ( NULLIF ( + + MIN( - 29 ), 20 * - - 94 ) ) * - ( + ( 58 ) ) * - ( - 32 ) + - 56 + + SUM( 65 ) + - 84 + - - 22 + + 11 + + - CAST( ( + - COUNT( * ) ) AS SIGNED ) * + 16 AS col0
----
-53850

skipif mysql # not compatible
query I rowsort label-9205
SELECT - ( NULLIF ( + + MIN ( - 29 ), 20 * - - 94 ) ) * - ( + ( 58 ) ) * - ( - 32 ) + - 56 + + SUM ( 65 ) + - 84 + - - 22 + + 11 + + - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) * + 16 AS col0
----
-53850

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL ( - - 60 ) * - - 15 + + + SUM( - 36 )
----
864

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL ( - - 60 ) * - - 15 + + + SUM ( - 36 )
----
864

query II rowsort
SELECT ALL + 84 AS col0, + 76 AS col0
----
84
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + NULLIF ( + SUM( 70 ), + + COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-9208
SELECT + NULLIF ( + SUM ( 70 ), + + COUNT ( * ) )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9209
SELECT ALL + 0 AS col0, CASE - - CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) * 89 * - 38 THEN NULL WHEN + - 66 THEN + - 87 + + + CASE + 2 WHEN 59 - - 70 THEN COUNT( * ) * + + 33 END END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL + 0 AS col0, CASE - - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) * 89 * - 38 THEN NULL WHEN + - 66 THEN + - 87 + + + CASE + 2 WHEN 59 - - 70 THEN COUNT ( * ) * + + 33 END END
----
0
NULL

query I rowsort
SELECT + 78 * + 74
----
5772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9211
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) + + COUNT( * ) AS col0, + ( + ( + 72 ) ) col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9211
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) AS col0, + ( + ( + 72 ) ) col2
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT 2 * - + MAX( ALL 7 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT 2 * - + MAX ( ALL 7 ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT + 42 DIV + 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 42 / + 16 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - 48 * - + 40 / - 76 * + AVG ( DISTINCT + 71 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - 48 * - + 40 / - 76 * + AVG ( DISTINCT + 71 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 19 * - 20 AS col1
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - NULLIF ( - 1, + COUNT( * ) ) * - 49 + - + 66 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-9216
SELECT - NULLIF ( - 1, + COUNT ( * ) ) * - 49 + - + 66 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + SUM( + ( 32 ) ) col1
----
32

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + SUM ( + ( 32 ) ) col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9218
SELECT ALL - 50 + + COUNT( * ) + + + 33, - 7 DIV - 7 + 53 col0
----
-16
54

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL - 50 + + COUNT ( * ) + + + 33, - 7 / - 7 + 53 col0
----
-16
54

query II rowsort
SELECT + CASE 25 WHEN - - NULLIF ( - ( + 15 ), - 22 ) + - 31 THEN NULL ELSE CASE + 49 WHEN - - 34 * + 94 THEN + 96 * + - 29 ELSE NULL END - 24 END AS col0, 46
----
NULL
46

query II rowsort
SELECT - 21 AS col0, 78 * - + 25 * + 96
----
-21
-187200

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + 95 - + MAX( - 67 ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + 95 - + MAX ( - 67 ) AS col2
----
162

query I rowsort
SELECT DISTINCT + - ( + 28 ) * + 29 AS col2
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - 68 + - COUNT( * ) + - COUNT( * ) - - 59 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 68 + - COUNT ( * ) + - COUNT ( * ) - - 59 AS col2
----
-11

query II rowsort
SELECT - 55 AS col0, 28 * + + 11 AS col1
----
-55
308

query I rowsort
SELECT ALL - - 22 - 85
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - + NULLIF ( - 50, - 54 + + 8 - + - 66 * + 31 * + COUNT( * ) ) * - - 73
----
3650

skipif mysql # not compatible
query I rowsort label-9226
SELECT - + NULLIF ( - 50, - 54 + + 8 - + - 66 * + 31 * + COUNT ( * ) ) * - - 73
----
3650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT - CAST( - ( + 60 ) AS SIGNED ) + CAST( - COALESCE ( - - 74, - - ( + - 66 ) ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9227
SELECT - CAST ( - ( + 60 ) AS INTEGER ) + CAST ( - COALESCE ( - - 74, - - ( + - 66 ) ) AS INTEGER ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - + ( MIN( - 46 ) ) * + 75 * + 32 col1
----
110400

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - + ( MIN ( - 46 ) ) * + 75 * + 32 col1
----
110400

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL - COUNT( * ), 93 col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL - COUNT ( * ), 93 col1
----
-1
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT - + 79 + COALESCE ( - MIN( DISTINCT 29 ), - 79 + 45 * - 31 + - COUNT( * ) * - 40 DIV - 38 * - 55, - - 42 * - 54 ) - - - 69 DIV + 5
----
-121

skipif mysql # not compatible
query I rowsort label-9230
SELECT - + 79 + COALESCE ( - MIN ( DISTINCT 29 ), - 79 + 45 * - 31 + - COUNT ( * ) * - 40 / - 38 * - 55, - - 42 * - 54 ) - - - 69 / + 5
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9231
SELECT ALL - - COALESCE ( - + CAST( NULL AS SIGNED ), 88 + 65 - - 92 * 62 DIV + + COUNT( * ), 39 + - ( + - 23 ) ) - + COUNT( * )
----
5856

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - - COALESCE ( - + CAST ( NULL AS INTEGER ), 88 + 65 - - 92 * 62 / + + COUNT ( * ), 39 + - ( + - 23 ) ) - + COUNT ( * )
----
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - - 4 + MAX( + 92 ) - + 19 + + - 69 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9232
SELECT - - 4 + MAX ( + 92 ) - + 19 + + - 69 AS col0
----
8

query II rowsort
SELECT DISTINCT + 77 AS col0, 11 + - ( - 49 ) + - 12 AS col2
----
77
48

query I rowsort
SELECT ALL 71 * 94 AS col2
----
6674

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT + 41 DIV 19
----
2

skipif mysql # not compatible
query I rowsort label-9235
SELECT + 41 / 19
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT ALL - 7 DIV 83 * - + NULLIF ( - - 64, - - ( + 16 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - 7 / 83 * - + NULLIF ( - - 64, - - ( + 16 ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - MIN( ALL + ( 74 ) ) + - 51 col1
----
-125

skipif mysql # not compatible
query I rowsort label-9237
SELECT - MIN ( ALL + ( 74 ) ) + - 51 col1
----
-125

query I rowsort
SELECT - 32 * - 38 AS col0
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT - 91 + - COUNT( * ) AS col0, 43
----
-92
43

skipif mysql # not compatible
query II rowsort label-9239
SELECT - 91 + - COUNT ( * ) AS col0, 43
----
-92
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT + 97 + 18 + + 7 + - 57 AS col2, 33 + + CASE - 89 WHEN - - 44 * + CASE 87 WHEN + 82 THEN - COUNT( * ) + - 10 END / NULLIF ( + 75, + COUNT( * ) * - - ( + + COUNT( * ) ) ) THEN - COUNT( * ) * + 57 + - 47 ELSE NULL END AS col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9240
SELECT + 97 + 18 + + 7 + - 57 AS col2, 33 + + CASE - 89 WHEN - - 44 * + CASE 87 WHEN + 82 THEN - COUNT ( * ) + - 10 END / NULLIF ( + 75, + COUNT ( * ) * - - ( + + COUNT ( * ) ) ) THEN - COUNT ( * ) * + 57 + - 47 ELSE NULL END AS col1
----
65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT ALL + 24 DIV 83 * - + 79 + - 92 * + + 29
----
-2668

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + 24 / 83 * - + 79 + - 92 * + + 29
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT 5 * - COUNT( * ) + + 74 + - ( - 25 )
----
94

skipif mysql # not compatible
query I rowsort label-9242
SELECT 5 * - COUNT ( * ) + + 74 + - ( - 25 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + CASE + - 84 WHEN 73 + - + 30 THEN NULL WHEN - + CASE - ( + COALESCE ( + NULLIF ( 90, 73 + + - COALESCE ( + MAX( ALL 63 ), - 93 ) ), + + 46 ) ) WHEN + 88 THEN - COUNT( * ) WHEN + 9 THEN NULL WHEN + 5 + NULLIF ( - + 8, - 84 * COUNT( * ) ) THEN + 93 - - 25 + COALESCE ( - 74, - + 76 ) / - 49 + - - 12 * + 86 + - ( 35 ) + - 5 * COUNT( ALL - 70 ) * + + 42 END THEN - ( + - 45 ) + + COUNT( * ) WHEN + 10 THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + CASE + - 84 WHEN 73 + - + 30 THEN NULL WHEN - + CASE - ( + COALESCE ( + NULLIF ( 90, 73 + + - COALESCE ( + MAX ( ALL 63 ), - 93 ) ), + + 46 ) ) WHEN + 88 THEN - COUNT ( * ) WHEN + 9 THEN NULL WHEN + 5 + NULLIF ( - + 8, - 84 * COUNT ( * ) ) THEN + 93 - - 25 + COALESCE ( - 74, - + 76 ) / - 49 + - - 12 * + 86 + - ( 35 ) + - 5 * COUNT ( ALL - 70 ) * + + 42 END THEN - ( + - 45 ) + + COUNT ( * ) WHEN + 10 THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + NULLIF ( - 81, + MIN( ALL + 50 ) + + 35 + ( + 12 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9244
SELECT + NULLIF ( - 81, + MIN ( ALL + 50 ) + + 35 + ( + 12 ) )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT 41 DIV + COALESCE ( + + 96, + ( - 73 ) ) + - + 78 * + MIN( ALL 80 )
----
-6240

skipif mysql # not compatible
query I rowsort label-9245
SELECT 41 / + COALESCE ( + + 96, + ( - 73 ) ) + - + 78 * + MIN ( ALL 80 )
----
-6240

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT ALL 2 DIV - - CASE - + AVG ( DISTINCT + - 65 ) WHEN - - 95 THEN NULL ELSE + - 77 END DIV + 3 + 62
----
62

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL 2 / - - CASE - + AVG ( DISTINCT + - 65 ) WHEN - - 95 THEN NULL ELSE + - 77 END / + 3 + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - COUNT( * ) * + ( + 90 ) + 93 - 16
----
-13

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( * ) * + ( + 90 ) + 93 - 16
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ( - COUNT( DISTINCT + 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT ( - COUNT ( DISTINCT + 21 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9249
SELECT ( + - 45 ) col1, - 53 + + 52 DIV + 22
----
-45
-51

skipif mysql # not compatible
query II rowsort label-9249
SELECT ( + - 45 ) col1, - 53 + + 52 / + 22
----
-45
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT + 71 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT + 71 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9251
SELECT + 89 + + NULLIF ( - + 87, + SUM( + ( 90 ) ) DIV - 35 * + 77 ) DIV + + NULLIF ( - + NULLIF ( + + 34, - COUNT( * ) ), MAX( - 9 ) * - 13 - COUNT( * ) * 39 ) - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 89 + + NULLIF ( - + 87, + SUM ( + ( 90 ) ) / - 35 * + 77 ) / + + NULLIF ( - + NULLIF ( + + 34, - COUNT ( * ) ), MAX ( - 9 ) * - 13 - COUNT ( * ) * 39 ) - COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT + 87 * - - 40 * - 99 - 95 AS col2
----
-344615

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT + + COUNT( + + 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + + COUNT ( + + 47 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT ALL ( - 46 ) * + 66 + - 5 DIV + - COUNT( * ) AS col2
----
-3031

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL ( - 46 ) * + 66 + - 5 / + - COUNT ( * ) AS col2
----
-3031

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT + COALESCE ( - + MIN( DISTINCT ( 84 ) ), + 33, - 23 + + 2 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + COALESCE ( - + MIN ( DISTINCT ( 84 ) ), + 33, - 23 + + 2 ) AS col1
----
-84

query I rowsort
SELECT - - 69 + - 62
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9257
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) DIV - ( + COALESCE ( 41, - 93 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / - ( + COALESCE ( 41, - 93 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT DISTINCT + - 58 DIV - 69 + + COUNT( * ) + + 48 * - + 95
----
-4559

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + - 58 / - 69 + + COUNT ( * ) + + 48 * - + 95
----
-4559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT - + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT 64 * - SUM( + 73 ) * + + 58 * + - 84
----
22761984

skipif mysql # not compatible
query I rowsort label-9260
SELECT 64 * - SUM ( + 73 ) * + + 58 * + - 84
----
22761984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9261
SELECT ALL - - CAST( NULL AS SIGNED ) * ( - CAST( NULL AS DECIMAL ) ) + 26 AS col1, - MIN( ALL - 29 ) * - COUNT( * ) * - 74 + COUNT( * )
----
NULL
2147

skipif mysql # not compatible
query II rowsort label-9261
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS REAL ) ) + 26 AS col1, - MIN ( ALL - 29 ) * - COUNT ( * ) * - 74 + COUNT ( * )
----
NULL
2147

query I rowsort
SELECT ALL - 62 * + 97
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + MIN( DISTINCT + + 85 ) * - - 22
----
1870

skipif mysql # not compatible
query I rowsort label-9263
SELECT + MIN ( DISTINCT + + 85 ) * - - 22
----
1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9264
SELECT + 52 + - - CASE + 95 WHEN 14 + 63 - + - 25 THEN - COUNT( * ) + + 30 * - COUNT( * ) ELSE NULL END, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9264
SELECT + 52 + - - CASE + 95 WHEN 14 + 63 - + - 25 THEN - COUNT ( * ) + + 30 * - COUNT ( * ) ELSE NULL END, CAST ( NULL AS INTEGER )
----
NULL
NULL

query III rowsort
SELECT DISTINCT 32 col1, 71 + - 88, - 96 * 2 * + + 16 + - 23 AS col0
----
32
-17
-3095

query I rowsort
SELECT 13 * - 63 * + 59
----
-48321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT 49 * - - CAST( + - COUNT( * ) AS SIGNED ) * - 7
----
343

skipif mysql # not compatible
query I rowsort label-9267
SELECT 49 * - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 7
----
343

query II rowsort
SELECT 27 AS col2, 53 AS col1
----
27
53

query I rowsort
SELECT 39 * 52
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9270
SELECT ALL 49 * CASE + + 40 WHEN - CAST( + 78 AS SIGNED ) THEN + CAST( NULL AS DECIMAL ) WHEN - 19 + - COUNT( * ) - 81 THEN + + 1 ELSE NULL END * - 14 / + 85 + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL 49 * CASE + + 40 WHEN - CAST ( + 78 AS INTEGER ) THEN + CAST ( NULL AS REAL ) WHEN - 19 + - COUNT ( * ) - 81 THEN + + 1 ELSE NULL END * - 14 / + 85 + + 15 AS col1
----
NULL

query I rowsort
SELECT 19 - 71 AS col1
----
-52

query I rowsort
SELECT ALL + 37 * + 14 AS col0
----
518

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9273
SELECT 27 AS col0, - CAST( 39 AS SIGNED ) AS col2
----
27
-39

skipif mysql # not compatible
query II rowsort label-9273
SELECT 27 AS col0, - CAST ( 39 AS INTEGER ) AS col2
----
27
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT 74 * - MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT 74 * - MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 89 * + 13 AS col0
----
1157

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT 48 * + 98 * + COUNT( * ) AS col1
----
4704

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT 48 * + 98 * + COUNT ( * ) AS col1
----
4704

query I rowsort
SELECT DISTINCT - 92 - - + 24
----
-68

query I rowsort
SELECT 64 - - COALESCE ( + 9, - + 62, + ( 29 ) )
----
73

query I rowsort
SELECT DISTINCT - ( - - 58 )
----
-58

query I rowsort
SELECT + 97 * + + 79 + - 11 AS col2
----
7652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9281
SELECT DISTINCT - 57 * - COALESCE ( + COUNT( * ), + 27, 47 ) AS col1, - COUNT( * ) * - 48 + + 99 DIV - + 88 DIV - + COUNT( DISTINCT 46 )
----
57
49

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT - 57 * - COALESCE ( + COUNT ( * ), + 27, 47 ) AS col1, - COUNT ( * ) * - 48 + + 99 / - + 88 / - + COUNT ( DISTINCT 46 )
----
57
49

query I rowsort
SELECT 94 + - - 90 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - COUNT( ALL + 28 ) * + + 9 * + 23
----
-207

skipif mysql # not compatible
query I rowsort label-9283
SELECT - COUNT ( ALL + 28 ) * + + 9 * + 23
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT ALL + ( + COUNT( * ) ) DIV - 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + ( + COUNT ( * ) ) / - 21 AS col1
----
0

query I rowsort
SELECT + 50 * + 13 AS col1
----
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9286
SELECT 60 * + 92 * - - 63 AS col0, - 10 - 92 - + COALESCE ( + - 65, - 88, + - 40 * + 91 + + 10 + - 38 + + COUNT( * ) * + - 22 + - + 71 + - 90 + - CAST( + + 61 AS SIGNED ) - + 73 * 15 ) DIV - + 71
----
347760
-102

skipif mysql # not compatible
query II rowsort label-9286
SELECT 60 * + 92 * - - 63 AS col0, - 10 - 92 - + COALESCE ( + - 65, - 88, + - 40 * + 91 + + 10 + - 38 + + COUNT ( * ) * + - 22 + - + 71 + - 90 + - CAST ( + + 61 AS INTEGER ) - + 73 * 15 ) / - + 71
----
347760
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL 90 * 60 * + + 50 * 76 + + - MAX( ALL + + 26 ) col2
----
20519974

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL 90 * 60 * + + 50 * 76 + + - MAX ( ALL + + 26 ) col2
----
20519974

query I rowsort
SELECT DISTINCT + 85 * + 96 AS col1
----
8160

query I rowsort
SELECT 40 * + 12 * + 34 AS col1
----
16320

query I rowsort
SELECT DISTINCT + 40 * + 28 AS col2
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT 73 + - + COUNT( * ) + - MIN( - + 40 ) * - 91 AS col2, 80 * - + 23 * - - 67
----
-3568
-123280

skipif mysql # not compatible
query II rowsort label-9291
SELECT 73 + - + COUNT ( * ) + - MIN ( - + 40 ) * - 91 AS col2, 80 * - + 23 * - - 67
----
-3568
-123280

query I rowsort
SELECT + 9 - - + 47 * + ( 75 )
----
3534

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT 32 DIV - ( 41 )
----
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT 32 / - ( 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT + 80 * + COUNT( * ) - + + 33 + 13
----
60

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 80 * + COUNT ( * ) - + + 33 + 13
----
60

query I rowsort
SELECT ALL ( - ( 95 ) ) AS col1
----
-95

query II rowsort
SELECT 7, ( 60 ) * + + 67 - + 98 * - 82 * + 82 AS col0
----
7
662972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT + MIN( ALL 13 ) DIV + 5
----
2

skipif mysql # not compatible
query I rowsort label-9297
SELECT + MIN ( ALL 13 ) / + 5
----
2

query I rowsort
SELECT ALL + + 88 + 83
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT 42 + - COUNT( - 64 )
----
41

skipif mysql # not compatible
query I rowsort label-9299
SELECT 42 + - COUNT ( - 64 )
----
41

query I rowsort
SELECT ALL - CASE - 89 WHEN + 24 THEN + - NULLIF ( + 67, 28 + 2 ) ELSE NULL END + + ( - 40 ) * - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT COUNT( * ) + 37 + - 76 + + ( + + 14 )
----
-24

skipif mysql # not compatible
query I rowsort label-9301
SELECT COUNT ( * ) + 37 + - 76 + + ( + + 14 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL 68 + - - COUNT( ALL - - 75 ) + - COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL 68 + - - COUNT ( ALL - - 75 ) + - COUNT ( * ) col0
----
68

query I rowsort
SELECT 48 + 42 + 91
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL COUNT( * ) + - 67 * ( - 33 )
----
2212

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL COUNT ( * ) + - 67 * ( - 33 )
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT COUNT( * ) * 49 * - 96 AS col1
----
-4704

skipif mysql # not compatible
query I rowsort label-9305
SELECT COUNT ( * ) * 49 * - 96 AS col1
----
-4704

query II rowsort
SELECT 64 + - 74 AS col1, 4 AS col0
----
-10
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT DISTINCT + 51 * + 99, - ( MIN( DISTINCT 95 ) ) AS col2
----
5049
-95

skipif mysql # not compatible
query II rowsort label-9307
SELECT DISTINCT + 51 * + 99, - ( MIN ( DISTINCT 95 ) ) AS col2
----
5049
-95

query II rowsort
SELECT 99 AS col0, - 11
----
99
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT 74 + - MAX( 77 ) / 8 - + + CASE + 82 WHEN - 28 THEN - COUNT( * ) * - AVG ( 83 ) ELSE 50 * - CAST( NULL AS SIGNED ) END + + + NULLIF ( + CAST( 93 AS SIGNED ), 59 * - 40 + - 58 + + - COALESCE ( + - 40, + 19 ) * + 31 * + COUNT( * ) * CAST( NULL AS SIGNED ) / + + COUNT( * ) * - 22 ) - MAX( DISTINCT + - 13 ) * + 96 + - 65 * - CASE AVG ( ALL - 44 ) WHEN COUNT( * ) THEN 26 / + - 91 * + - 3 WHEN 78 * + - 93 + + CASE COUNT( * ) WHEN + 88 / - 24 + COUNT( DISTINCT + ( - + ( - CAST( NULL AS SIGNED ) ) ) ) THEN + 81 WHEN - COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + 53 * 63 THEN CAST( NULL AS SIGNED ) + + COUNT( * ) END * 65 THEN - 83 ELSE - 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT 74 + - MAX ( 77 ) / 8 - + + CASE + 82 WHEN - 28 THEN - COUNT ( * ) * - AVG ( 83 ) ELSE 50 * - CAST ( NULL AS INTEGER ) END + + + NULLIF ( + CAST ( 93 AS INTEGER ), 59 * - 40 + - 58 + + - COALESCE ( + - 40, + 19 ) * + 31 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * - 22 ) - MAX ( DISTINCT + - 13 ) * + 96 + - 65 * - CASE AVG ( ALL - 44 ) WHEN COUNT ( * ) THEN 26 / + - 91 * + - 3 WHEN 78 * + - 93 + + CASE COUNT ( * ) WHEN + 88 / - 24 + COUNT ( DISTINCT + ( - + ( - CAST ( NULL AS INTEGER ) ) ) ) THEN + 81 WHEN - COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + 53 * 63 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) END * 65 THEN - 83 ELSE - 5 END AS col2
----
NULL

query I rowsort
SELECT 45 * - 75 AS col0
----
-3375

query I rowsort
SELECT DISTINCT - NULLIF ( + 94, 68 - + + 8 - 23 * - 25 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT COUNT( * ), ( + 51 ) AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-9312
SELECT COUNT ( * ), ( + 51 ) AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9313
SELECT ALL - 90 AS col1, MAX( ALL 6 )
----
-90
6

skipif mysql # not compatible
query II rowsort label-9313
SELECT ALL - 90 AS col1, MAX ( ALL 6 )
----
-90
6

query I rowsort
SELECT ALL - NULLIF ( - - 59, + 75 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL - MIN( - 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - MIN ( - 17 ) AS col0
----
17

query II rowsort
SELECT + 23 AS col1, 55 * - 58
----
23
-3190

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT ALL - 15, COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-9317
SELECT ALL - 15, COUNT ( * ) AS col2
----
-15
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT 54 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT 54 / - 58
----
0

query I rowsort
SELECT + - NULLIF ( - 1, 56 * - - ( + NULLIF ( 19, + 35 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + COUNT( * ) * - - 60 + - - 37 + + - 98 * - + 30 AS col0
----
3037

skipif mysql # not compatible
query I rowsort label-9320
SELECT + COUNT ( * ) * - - 60 + - - 37 + + - 98 * - + 30 AS col0
----
3037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT - + MIN( ALL + 54 ) * - 97 + 86 DIV + 80 AS col0
----
5239

skipif mysql # not compatible
query I rowsort label-9321
SELECT - + MIN ( ALL + 54 ) * - 97 + 86 / + 80 AS col0
----
5239

query I rowsort
SELECT 29 * - 90 AS col1
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL + + COUNT( * ) * - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + + COUNT ( * ) * - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT - + MIN( - + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - + MIN ( - + 42 ) AS col0
----
42

query I rowsort
SELECT ALL - 86 + + - 92 + + - 5 AS col1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + - NULLIF ( - - 37, + + COUNT( * ) + - + 55 * + SUM( DISTINCT - + 31 ) ) * + - 55 + 63 AS col1
----
2098

skipif mysql # not compatible
query I rowsort label-9326
SELECT + - NULLIF ( - - 37, + + COUNT ( * ) + - + 55 * + SUM ( DISTINCT - + 31 ) ) * + - 55 + 63 AS col1
----
2098

query I rowsort
SELECT ALL + + 36 + - 62 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - + 95 * - SUM( ALL CASE + 83 WHEN 92 THEN 77 ELSE NULL END ) * - 23 + + + 28 + - 70 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT - + 95 * - SUM ( ALL CASE + 83 WHEN 92 THEN 77 ELSE NULL END ) * - 23 + + + 28 + - 70 * + 19
----
NULL

query II rowsort
SELECT - 19 AS col1, + 69 + 75 AS col2
----
-19
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL MAX( + - 75 ) + + 82
----
7

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL MAX ( + - 75 ) + + 82
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9331
SELECT - 3 AS col0, - CASE 48 WHEN 46 THEN NULL ELSE - 70 + - + CAST( - - ( + + 47 ) AS SIGNED ) DIV 68 END AS col2, - 93 + + ( + 9 ) * + 87 + 56 AS col2
----
-3
70
746

skipif mysql # not compatible
query III rowsort label-9331
SELECT - 3 AS col0, - CASE 48 WHEN 46 THEN NULL ELSE - 70 + - + CAST ( - - ( + + 47 ) AS INTEGER ) / 68 END AS col2, - 93 + + ( + 9 ) * + 87 + 56 AS col2
----
-3
70
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + 34 + + COUNT( * ) + + 57 + - 42 * - 26 + 23 AS col0
----
1207

skipif mysql # not compatible
query I rowsort label-9332
SELECT + 34 + + COUNT ( * ) + + 57 + - 42 * - 26 + 23 AS col0
----
1207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL COUNT( * ) + - 47 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL COUNT ( * ) + - 47 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + 87 * + ( MAX( - 72 ) ) AS col2
----
-6264

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 87 * + ( MAX ( - 72 ) ) AS col2
----
-6264

query II rowsort
SELECT ALL - 79 * 4, 44 AS col2
----
-316
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT DISTINCT ( + 78 ) * + CAST( 36 AS SIGNED )
----
2808

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT ( + 78 ) * + CAST ( 36 AS INTEGER )
----
2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT ALL CAST( NULL AS SIGNED ) + - - 54 + + 89 + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL CAST ( NULL AS INTEGER ) + - - 54 + + 89 + - 23 AS col1
----
NULL

query I rowsort
SELECT + 26 * 28
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9339
SELECT + COALESCE ( + ( - 37 ), - COALESCE ( - - 97, + + CAST( NULL AS SIGNED ) ), - 54 - + - CAST( COUNT( ALL - 90 ) AS SIGNED ) ) * - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9339
SELECT + COALESCE ( + ( - 37 ), - COALESCE ( - - 97, + + CAST ( NULL AS INTEGER ) ), - 54 - + - CAST ( COUNT ( ALL - 90 ) AS INTEGER ) ) * - COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9340
SELECT ALL CAST( NULL AS SIGNED ) * 10, - 73 AS col0
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL CAST ( NULL AS INTEGER ) * 10, - 73 AS col0
----
NULL
-73

query I rowsort
SELECT + 2 * 35 * - 19
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9342
SELECT - CASE + - 31 WHEN - 55 + - COUNT( DISTINCT 91 ) THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - - 59 END col1, CAST( - 50 AS SIGNED ) + + 89 - + NULLIF ( - COUNT( * ), SUM( 40 ) )
----
-59
40

skipif mysql # not compatible
query II rowsort label-9342
SELECT - CASE + - 31 WHEN - 55 + - COUNT ( DISTINCT 91 ) THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - - 59 END col1, CAST ( - 50 AS INTEGER ) + + 89 - + NULLIF ( - COUNT ( * ), SUM ( 40 ) )
----
-59
40

query I rowsort
SELECT + 96 * - - 83 * 10 * - COALESCE ( 76, - 54 ) AS col0
----
-6055680

query I rowsort
SELECT - 2 * + ( 51 ) AS col1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT DISTINCT 8 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT 8 / - 73 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT + AVG ( - ( CAST( NULL AS SIGNED ) ) ) - + 35 + + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT + AVG ( - ( CAST ( NULL AS INTEGER ) ) ) - + 35 + + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9347
SELECT DISTINCT + 29 - COUNT( * ) AS col1, - ( + 83 )
----
28
-83

skipif mysql # not compatible
query II rowsort label-9347
SELECT DISTINCT + 29 - COUNT ( * ) AS col1, - ( + 83 )
----
28
-83

query I rowsort
SELECT DISTINCT + 20 * 81
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - COALESCE ( - + COUNT( - 97 ), + - COUNT( * ) ) * + + 58 * COUNT( * ) * - ( COUNT( * ) ) * - 65
----
3770

skipif mysql # not compatible
query I rowsort label-9349
SELECT - COALESCE ( - + COUNT ( - 97 ), + - COUNT ( * ) ) * + + 58 * COUNT ( * ) * - ( COUNT ( * ) ) * - 65
----
3770

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT ( - COALESCE ( + 50, + - 24 * - 46 * + 78, 60 DIV - 95 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-9350
SELECT ( - COALESCE ( + 50, + - 24 * - 46 * + 78, 60 / - 95 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * CAST( - - 80 AS SIGNED ) * 23 + + COUNT( * ) + - 97 - - 84 + - - 71
----
-1781

skipif mysql # not compatible
query I rowsort label-9351
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * CAST ( - - 80 AS INTEGER ) * 23 + + COUNT ( * ) + - 97 - - 84 + - - 71
----
-1781

query I rowsort
SELECT DISTINCT + 3 * + - 20 AS col0
----
-60

query I rowsort
SELECT - 46 + + 46
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT + 8 * - 54 - + COALESCE ( - 29, 60, - - 95 * - + 51 * - + ( - + 92 ) - + 81 + 49 + - 48 ) + CAST( 98 AS SIGNED )
----
-305

skipif mysql # not compatible
query I rowsort label-9354
SELECT + 8 * - 54 - + COALESCE ( - 29, 60, - - 95 * - + 51 * - + ( - + 92 ) - + 81 + 49 + - 48 ) + CAST ( 98 AS INTEGER )
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL - + 11 * - + 85 * + NULLIF ( - 18, + MAX( ALL - + 97 ) ) * - 20 + - - 31 * - 66 + - 1 + + COUNT( * ) + 33 - - 70 * + 57 * + 8
----
366507

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - + 11 * - + 85 * + NULLIF ( - 18, + MAX ( ALL - + 97 ) ) * - 20 + - - 31 * - 66 + - 1 + + COUNT ( * ) + 33 - - 70 * + 57 * + 8
----
366507

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - MAX( + 58 ) * ( - 76 ) AS col0
----
4408

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - MAX ( + 58 ) * ( - 76 ) AS col0
----
4408

onlyif mysql # DIV for integer division: 
query II rowsort label-9357
SELECT ALL - + ( - 42 ) * - 9 + + - COALESCE ( + - 27, 45 DIV - 84 * - 75 ) + - 15 + COALESCE ( + 92, 21 ) AS col1, + 83 DIV + 6 col2
----
-274
13

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL - + ( - 42 ) * - 9 + + - COALESCE ( + - 27, 45 / - 84 * - 75 ) + - 15 + COALESCE ( + 92, 21 ) AS col1, + 83 / + 6 col2
----
-274
13

query II rowsort
SELECT ALL - 30 * 61 AS col1, 64 AS col2
----
-1830
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - CASE + - 57 WHEN - MAX( - NULLIF ( 19, - 71 ) ) + 98 THEN NULL WHEN 56 THEN 62 ELSE NULL END * - 98 * + - 35 + 73 * + 5 * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - CASE + - 57 WHEN - MAX ( - NULLIF ( 19, - 71 ) ) + 98 THEN NULL WHEN 56 THEN 62 ELSE NULL END * - 98 * + - 35 + 73 * + 5 * + 44 AS col1
----
NULL

query I rowsort
SELECT - 26 + - - 15
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT + 32 - - CASE + CAST( 64 AS SIGNED ) WHEN - 15 THEN + MAX( DISTINCT + - 98 ) + - 53 WHEN + + 8 * - + 15 THEN - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 32 - - CASE + CAST ( 64 AS INTEGER ) WHEN - 15 THEN + MAX ( DISTINCT + - 98 ) + - 53 WHEN + + 8 * - + 15 THEN - 12 END AS col0
----
NULL

query I rowsort
SELECT - 3 + + 2 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT - COUNT( * ) * - 4 * - - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9363
SELECT - COUNT ( * ) * - 4 * - - COUNT ( * ) AS col0
----
4

query I rowsort
SELECT - 79 + + - 64
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - ( - MAX( DISTINCT + + 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9365
SELECT - ( - MAX ( DISTINCT + + 76 ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL 90 - SUM( + - 94 ) * 11 AS col1
----
1124

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL 90 - SUM ( + - 94 ) * 11 AS col1
----
1124

query I rowsort
SELECT ALL 67 * 32 AS col1
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + CASE WHEN NOT ( 1 ) >= + - 72 THEN - COUNT( 30 ) * - COUNT( * ) + + + NULLIF ( 78, + 11 * + 19 + - 41 ) - 31 END + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT + CASE WHEN NOT ( 1 ) >= + - 72 THEN - COUNT ( 30 ) * - COUNT ( * ) + + + NULLIF ( 78, + 11 * + 19 + - 41 ) - 31 END + 21 AS col0
----
NULL

query I rowsort
SELECT ALL 84 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + COUNT( * ) + - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9370
SELECT + COUNT ( * ) + - 61 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT - ( + - COUNT( + 20 ) ), - 24 + + 37 + - COUNT( * ) AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-9371
SELECT - ( + - COUNT ( + 20 ) ), - 24 + + 37 + - COUNT ( * ) AS col0
----
1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT DISTINCT 57, + 17 - + - 41 * COUNT( * ) AS col2
----
57
58

skipif mysql # not compatible
query II rowsort label-9372
SELECT DISTINCT 57, + 17 - + - 41 * COUNT ( * ) AS col2
----
57
58

query I rowsort
SELECT + COALESCE ( + 31, 22 * + 14 ) + + 66
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT 54, ( + 18 ) + + COUNT( * ) * + - 41 * - 19 * 91 AS col2
----
54
70907

skipif mysql # not compatible
query II rowsort label-9374
SELECT 54, ( + 18 ) + + COUNT ( * ) * + - 41 * - 19 * 91 AS col2
----
54
70907

query I rowsort
SELECT + 95 + 2 + - 85 * + - 69
----
5962

query I rowsort
SELECT + 12 * - 40
----
-480

query I rowsort
SELECT + 71 + - - 77
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - 88 * + SUM( + 41 ) * - - 4 + - 72
----
-14504

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 88 * + SUM ( + 41 ) * - - 4 + - 72
----
-14504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT ALL + 13 DIV - 12 + - MIN( ALL + 16 )
----
-17

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 13 / - 12 + - MIN ( ALL + 16 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT 32 DIV 34 + 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT 32 / 34 + 69 AS col1
----
69

query I rowsort
SELECT 46 * - 74
----
-3404

query I rowsort
SELECT ALL 9 + + 21 AS col1
----
30

query I rowsort
SELECT DISTINCT + 39 + 6
----
45

query II rowsort
SELECT 15 AS col2, 39
----
15
39

query I rowsort
SELECT ALL 36 * + - 76 AS col1
----
-2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT + 61 * 59 * COALESCE ( - 15, - 35 * + 17 * + ( 76 ) + - + CAST( COUNT( * ) AS SIGNED ) + 67 - - 85 ) + + 51 + + 42
----
-53892

skipif mysql # not compatible
query I rowsort label-9386
SELECT + 61 * 59 * COALESCE ( - 15, - 35 * + 17 * + ( 76 ) + - + CAST ( COUNT ( * ) AS INTEGER ) + 67 - - 85 ) + + 51 + + 42
----
-53892

query II rowsort
SELECT + + 84 AS col1, + 21 col1
----
84
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL + COUNT( * ) + 13 - 14 * + ( - 13 )
----
196

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + COUNT ( * ) + 13 - 14 * + ( - 13 )
----
196

query I rowsort
SELECT ( - NULLIF ( - 72, 52 - - 77 + 42 + + 39 / 82 ) ) + - + ( 67 )
----
5

query II rowsort
SELECT ALL - + 86 AS col0, + 45
----
-86
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9391
SELECT 94 + - 49 + + + 38 + - + CAST( - ( COUNT( * ) ) AS SIGNED ) DIV + 69
----
83

skipif mysql # not compatible
query I rowsort label-9391
SELECT 94 + - 49 + + + 38 + - + CAST ( - ( COUNT ( * ) ) AS INTEGER ) / + 69
----
83

query I rowsort
SELECT ALL - - 68 - - - ( 26 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT - + SUM( DISTINCT NULLIF ( + + 72, - + 4 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - + SUM ( DISTINCT NULLIF ( + + 72, - + 4 ) )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT DISTINCT - 1 * 8 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - 1 * 8 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT 48 * + - ( + COUNT( * ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9395
SELECT 48 * + - ( + COUNT ( * ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL - COALESCE ( + 43, 27 * 0, + 83 ) DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - COALESCE ( + 43, 27 * 0, + 83 ) / COUNT ( * )
----
-43

query I rowsort
SELECT DISTINCT + 29 - - 16 AS col1
----
45

query I rowsort
SELECT ALL + 20 * + + 63 col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + NULLIF ( - MAX( ALL + + 66 ), 20 ) * + 3
----
-198

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + NULLIF ( - MAX ( ALL + + 66 ), 20 ) * + 3
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-9400
SELECT DISTINCT - 29 * + CASE WHEN 2 IS NULL THEN NULL ELSE ( - MIN( DISTINCT - 58 ) ) END col2, COUNT( * )
----
-1682
1

skipif mysql # not compatible
query II rowsort label-9400
SELECT DISTINCT - 29 * + CASE WHEN 2 IS NULL THEN NULL ELSE ( - MIN ( DISTINCT - 58 ) ) END col2, COUNT ( * )
----
-1682
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT 83 * NULLIF ( + 13, COUNT( * ) + + COALESCE ( 73, + - ( - - MIN( + + 26 ) ) + + + 72 ) ) * - COUNT( * ) + ( + - ( 40 ) ) AS col1
----
-1119

skipif mysql # not compatible
query I rowsort label-9401
SELECT 83 * NULLIF ( + 13, COUNT ( * ) + + COALESCE ( 73, + - ( - - MIN ( + + 26 ) ) + + + 72 ) ) * - COUNT ( * ) + ( + - ( 40 ) ) AS col1
----
-1119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9402
SELECT 73 * + - SUM( DISTINCT - 86 ) * - 21 + + + 63 - + - 42 * CAST( NULL AS SIGNED ), 95 AS col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9402
SELECT 73 * + - SUM ( DISTINCT - 86 ) * - 21 + + + 63 - + - 42 * CAST ( NULL AS INTEGER ), 95 AS col0
----
NULL
95

query I rowsort
SELECT ALL + 57 + - 82 * + 91
----
-7405

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT MIN( DISTINCT + - 89 ) - ( - + 64 ), 76 AS col0
----
-25
76

skipif mysql # not compatible
query II rowsort label-9404
SELECT MIN ( DISTINCT + - 89 ) - ( - + 64 ), 76 AS col0
----
-25
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL 29 + + COUNT( * ) * + + 63 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL 29 + + COUNT ( * ) * + + 63 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9406
SELECT DISTINCT + 68 + + COALESCE ( + CAST( + - ( - 39 ) AS SIGNED ), - + 53 ) DIV 20 col1
----
69

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + 68 + + COALESCE ( + CAST ( + - ( - 39 ) AS INTEGER ), - + 53 ) / 20 col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT - NULLIF ( - 49, - CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-9407
SELECT - NULLIF ( - 49, - CAST ( NULL AS INTEGER ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 63 + 52 + - COALESCE ( - 19, - + COUNT( * ), - 69 ) + - - 11 - ( - 25 )
----
170

skipif mysql # not compatible
query I rowsort label-9408
SELECT 63 + 52 + - COALESCE ( - 19, - + COUNT ( * ), - 69 ) + - - 11 - ( - 25 )
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT - 51 * 80 DIV 10 * - 99 + - 15
----
40377

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 51 * 80 / 10 * - 99 + - 15
----
40377

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + 24 * - MAX( + + 99 ) AS col0
----
-2376

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + 24 * - MAX ( + + 99 ) AS col0
----
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT DISTINCT ( + MIN( DISTINCT 78 ) ) + NULLIF ( - MIN( DISTINCT + + 63 ), ( + + 35 ) * COUNT( * ) ) AS col2, - 41 AS col2
----
15
-41

skipif mysql # not compatible
query II rowsort label-9411
SELECT DISTINCT ( + MIN ( DISTINCT 78 ) ) + NULLIF ( - MIN ( DISTINCT + + 63 ), ( + + 35 ) * COUNT ( * ) ) AS col2, - 41 AS col2
----
15
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + ( COUNT( DISTINCT 50 ) ) * - 89 + + - 35
----
-124

skipif mysql # not compatible
query I rowsort label-9412
SELECT + ( COUNT ( DISTINCT 50 ) ) * - 89 + + - 35
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT 53 - + 86 * + CAST( - ( - 12 ) AS SIGNED )
----
-979

skipif mysql # not compatible
query I rowsort label-9413
SELECT 53 - + 86 * + CAST ( - ( - 12 ) AS INTEGER )
----
-979

query I rowsort
SELECT CASE ( - - 16 ) WHEN 72 THEN - - 19 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 43 + - 40 + - + 18 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL + 74 + - - 75 - - 43 + + 81 + + 53 * - + CASE - 45 WHEN - 9 THEN NULL WHEN ( - - 10 ) THEN - 87 * + - COALESCE ( COUNT( * ), 77 ) - 61 * - - ( + - 3 ) + - - 28 * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + 74 + - - 75 - - 43 + + 81 + + 53 * - + CASE - 45 WHEN - 9 THEN NULL WHEN ( - - 10 ) THEN - 87 * + - COALESCE ( COUNT ( * ), 77 ) - 61 * - - ( + - 3 ) + - - 28 * 91 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT + CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - + SUM( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - + SUM ( - 77 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT DISTINCT 65 DIV 2 * + 84 AS col2
----
2688

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT 65 / 2 * + 84 AS col2
----
2688

query I rowsort
SELECT + ( - 84 ) + - 6 AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL 14 DIV 47 + - - 26
----
26

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL 14 / 47 + - - 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - - MAX( + 3 ) * + 20 + - 22 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - - MAX ( + 3 ) * + 20 + - 22 AS col1
----
38

query I rowsort
SELECT + 76 * + 80 AS col0
----
6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT ALL + NULLIF ( 2, + 18 ) - COUNT( * ) - 38 * 94 DIV + 97 - + 51 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + NULLIF ( 2, + 18 ) - COUNT ( * ) - 38 * 94 / + 97 - + 51 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT 12, + COUNT( * ) AS col1
----
12
1

skipif mysql # not compatible
query II rowsort label-9425
SELECT 12, + COUNT ( * ) AS col1
----
12
1

query I rowsort
SELECT ALL 91 * - 6 AS col2
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + MIN( ALL - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9427
SELECT + MIN ( ALL - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + 21 * - - SUM( + ( 72 ) ) * 92 - + - COALESCE ( - 17, - - COUNT( * ), + 26 * - + 42 + + 84 + - 62 * 75 * + 46 ) * - - 72 AS col1
----
137880

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 21 * - - SUM ( + ( 72 ) ) * 92 - + - COALESCE ( - 17, - - COUNT ( * ), + 26 * - + 42 + + 84 + - 62 * 75 * + 46 ) * - - 72 AS col1
----
137880

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL MIN( - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL MIN ( - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT 83 * + COUNT( - 79 )
----
83

skipif mysql # not compatible
query I rowsort label-9430
SELECT 83 * + COUNT ( - 79 )
----
83

query I rowsort
SELECT 89 - + - 74 AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL - 25 + + 64 + NULLIF ( 35, + 13 ) * MAX( + - 39 ) + - + 72 * - COUNT( * ) * - ( + - 1 ) * - 41
----
-4278

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - 25 + + 64 + NULLIF ( 35, + 13 ) * MAX ( + - 39 ) + - + 72 * - COUNT ( * ) * - ( + - 1 ) * - 41
----
-4278

query I rowsort
SELECT 73 + + 53 AS col0
----
126

query I rowsort
SELECT 8 * + + 98 AS col1
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT + NULLIF ( 78, - COALESCE ( - 75, 91 * 43, - COUNT( * ) + + - ( 45 ), - - ( 28 ) ) / COUNT( * ) / + - 14 + + 74 - 24 ) + - COUNT( + 46 ) * - 36 * + 66
----
2454

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + NULLIF ( 78, - COALESCE ( - 75, 91 * 43, - COUNT ( * ) + + - ( 45 ), - - ( 28 ) ) / COUNT ( * ) / + - 14 + + 74 - 24 ) + - COUNT ( + 46 ) * - 36 * + 66
----
2454

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT 6 + + + ( - 24 ) * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT 6 + + + ( - 24 ) * COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL + 26 + ( + - NULLIF ( + ( + MAX( DISTINCT - - 48 ) ), + + 40 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + 26 + ( + - NULLIF ( + ( + MAX ( DISTINCT - - 48 ) ), + + 40 ) )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT - ( - ( + COUNT( + 89 ) ) ) + + 48 AS col1, 76 * 61
----
49
4636

skipif mysql # not compatible
query II rowsort label-9438
SELECT - ( - ( + COUNT ( + 89 ) ) ) + + 48 AS col1, 76 * 61
----
49
4636

query I rowsort
SELECT ALL + 53 + 10 + - + 42 + + 83 * - + 71 + - ( - + 6 ) col0
----
-5866

query I rowsort
SELECT DISTINCT - 99 * 36 * 16 AS col2
----
-57024

query I rowsort
SELECT - 12 + 99
----
87

query I rowsort
SELECT ALL 23 + + 94
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL - 81 * + ( COUNT( DISTINCT 35 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - 81 * + ( COUNT ( DISTINCT 35 ) )
----
-81

query I rowsort
SELECT ALL + COALESCE ( - 90, 72 ) + - 4 * - 43 AS col2
----
82

query I rowsort
SELECT DISTINCT COALESCE ( 49, + 95, + 78 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - MAX( DISTINCT 43 ) * 81 AS col2
----
-3483

skipif mysql # not compatible
query I rowsort label-9446
SELECT - MAX ( DISTINCT 43 ) * 81 AS col2
----
-3483

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT + 82 + 35 DIV + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9447
SELECT + 82 + 35 / + 81 AS col1
----
82

query I rowsort
SELECT ALL COALESCE ( 78, - 26 * + ( 86 ) ) AS col2
----
78

query I rowsort
SELECT DISTINCT COALESCE ( 35, 91 )
----
35

query I rowsort
SELECT DISTINCT + 88 * ( 27 ) - + 19
----
2357

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL CASE + 51 WHEN 12 * ( - 51 / + 52 ) + + COUNT( * ) THEN + 23 + 63 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL CASE + 51 WHEN 12 * ( - 51 / + 52 ) + + COUNT ( * ) THEN + 23 + 63 END * - 7
----
NULL

query I rowsort
SELECT DISTINCT 81 * 96 - 53 AS col2
----
7723

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT + ( + 69 ) DIV COALESCE ( + 7 + - 79, 7 + 60, 51 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + ( + 69 ) / COALESCE ( + 7 + - 79, 7 + 60, 51 ) AS col2
----
0

query I rowsort
SELECT - 10 * + 81 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + COUNT( * ) * + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9455
SELECT + COUNT ( * ) * + 51 AS col1
----
51

query I rowsort
SELECT ALL + 19 * - 51
----
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT - 27 + - 19 DIV 6 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9457
SELECT - 27 + - 19 / 6 AS col2
----
-30

query I rowsort
SELECT 28 * + 88 - - 98 AS col0
----
2562

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT 19 * - 71 + COALESCE ( 5, - 24 DIV 57 )
----
-1344

skipif mysql # not compatible
query I rowsort label-9459
SELECT 19 * - 71 + COALESCE ( 5, - 24 / 57 )
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + CASE 43 WHEN - 94 THEN NULL WHEN 76 + - 48 THEN + 11 + 63 WHEN 45 THEN NULL ELSE + COALESCE ( 95, - 74 * - 39, COUNT( * ) * COUNT( * ), + 75 ) END
----
95

skipif mysql # not compatible
query I rowsort label-9460
SELECT + CASE 43 WHEN - 94 THEN NULL WHEN 76 + - 48 THEN + 11 + 63 WHEN 45 THEN NULL ELSE + COALESCE ( 95, - 74 * - 39, COUNT ( * ) * COUNT ( * ), + 75 ) END
----
95

query I rowsort
SELECT - 80 * - 17 AS col0
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT + SUM( COALESCE ( + 25, - 25 + 76 ) )
----
25

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + SUM ( COALESCE ( + 25, - 25 + 76 ) )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL 44 DIV - ( - 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL 44 / - ( - 69 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT + CASE COALESCE ( 69, + 93 ) WHEN - NULLIF ( 87, - 55 * 6 ) + - 29 THEN - 79 * CAST( - 34 AS SIGNED ) END + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT + CASE COALESCE ( 69, + 93 ) WHEN - NULLIF ( 87, - 55 * 6 ) + - 29 THEN - 79 * CAST ( - 34 AS INTEGER ) END + 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT MIN( ALL + 9 ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT MIN ( ALL + 9 ) / 36 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT 73 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT 73 / - 32
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT COUNT( ALL + CAST( 85 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9467
SELECT COUNT ( ALL + CAST ( 85 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL 79 * + COUNT( * ) + MAX( ALL 13 )
----
92

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL 79 * + COUNT ( * ) + MAX ( ALL 13 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT + 4 * CASE + CAST( NULL AS SIGNED ) WHEN + 89 * 52 THEN NULL WHEN 91 - 80 * COUNT( * ) THEN + 49 + + 49 ELSE NULL END + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 4 * CASE + CAST ( NULL AS INTEGER ) WHEN + 89 * 52 THEN NULL WHEN 91 - 80 * COUNT ( * ) THEN + 49 + + 49 ELSE NULL END + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + MIN( DISTINCT - 32 ) * 84 col1
----
-2688

skipif mysql # not compatible
query I rowsort label-9470
SELECT + MIN ( DISTINCT - 32 ) * 84 col1
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COALESCE ( 61, + 53 * - COALESCE ( + 92, 10 * + COUNT( * ), 91, - 20 * SUM( ALL 42 ) ) )
----
-61

skipif mysql # not compatible
query I rowsort label-9471
SELECT - COALESCE ( 61, + 53 * - COALESCE ( + 92, 10 * + COUNT ( * ), 91, - 20 * SUM ( ALL 42 ) ) )
----
-61

query I rowsort
SELECT - 72 + 14 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT - COALESCE ( - COUNT( * ), 4 + + 53 DIV 23 )
----
1

skipif mysql # not compatible
query I rowsort label-9473
SELECT - COALESCE ( - COUNT ( * ), 4 + + 53 / 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL MIN( 89 ) + + 1 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL MIN ( 89 ) + + 1 AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT + CASE - 35 WHEN - 58 * - COALESCE ( + ( 1 ) * + 4, - 23 ) THEN - CAST( NULL AS SIGNED ) * - NULLIF ( - 17, - 66 * - 7 ) WHEN 65 * + 72 THEN NULL END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT + CASE - 35 WHEN - 58 * - COALESCE ( + ( 1 ) * + 4, - 23 ) THEN - CAST ( NULL AS INTEGER ) * - NULLIF ( - 17, - 66 * - 7 ) WHEN 65 * + 72 THEN NULL END * 14 AS col2
----
NULL

query I rowsort
SELECT ALL 66 * + 39
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - 94 + - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - 94 + - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT DISTINCT + ( 88 ) + 29 * 77 AS col2
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL COALESCE ( 60, + COUNT( * ) + - 98, - 51 )
----
60

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL COALESCE ( 60, + COUNT ( * ) + - 98, - 51 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT + 12 DIV + ( COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 12 / + ( COUNT ( * ) )
----
12

query I rowsort
SELECT - 30 * + 6 AS col0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT ALL 94 + + 34 DIV - NULLIF ( 56 * 83, + 89 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL 94 + + 34 / - NULLIF ( 56 * 83, + 89 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + 0 - ( 91 ) * ( COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 0 - ( 91 ) * ( COUNT ( * ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT - 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - 66 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT ALL + 7 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + 7 / - 80
----
0

query I rowsort
SELECT - 42 + 28 * 45
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT + 74 * COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + 74 * COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL + 58 * - 51 AS col1
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - MIN( DISTINCT + 81 ) - 10 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9489
SELECT - MIN ( DISTINCT + 81 ) - 10 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9490
SELECT ALL + 47 DIV + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + 47 / + COUNT ( * ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT - + ( + SUM( - ( + CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + ( + SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - - 77 - - NULLIF ( 39, + COUNT( * ) ) * - COUNT( DISTINCT + 33 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-9492
SELECT - - 77 - - NULLIF ( 39, + COUNT ( * ) ) * - COUNT ( DISTINCT + 33 ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT + ( + MAX( + 95 ) ) * - 25 col0
----
-2375

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + ( + MAX ( + 95 ) ) * - 25 col0
----
-2375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL + CAST( 22 AS SIGNED ) * COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + CAST ( 22 AS INTEGER ) * COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9495
SELECT + + COUNT( + 8 ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9495
SELECT + + COUNT ( + 8 ) / 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT - - CAST( NULL AS SIGNED ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT - - CAST ( NULL AS INTEGER ) + - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT - 49 * CASE 29 * - CASE 72 WHEN - 89 THEN 49 WHEN - 1 THEN NULL ELSE NULL END WHEN - CAST( 43 AS SIGNED ) THEN - ( - 40 ) WHEN + COUNT( * ) / 10 THEN + ( - 91 ) + + COUNT( * ) / COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT - 49 * CASE 29 * - CASE 72 WHEN - 89 THEN 49 WHEN - 1 THEN NULL ELSE NULL END WHEN - CAST ( 43 AS INTEGER ) THEN - ( - 40 ) WHEN + COUNT ( * ) / 10 THEN + ( - 91 ) + + COUNT ( * ) / COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT - CAST( ( COALESCE ( COUNT( * ), 36 + + 65 * 54 ) ) AS SIGNED ) - 42 * 66
----
-2773

skipif mysql # not compatible
query I rowsort label-9498
SELECT - CAST ( ( COALESCE ( COUNT ( * ), 36 + + 65 * 54 ) ) AS INTEGER ) - 42 * 66
----
-2773

query I rowsort
SELECT - 15 * + 31 AS col0
----
-465

query I rowsort
SELECT + + ( 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - COALESCE ( SUM( ALL ( + 41 ) ), 51 * + 13 )
----
-41

skipif mysql # not compatible
query I rowsort label-9501
SELECT - COALESCE ( SUM ( ALL ( + 41 ) ), 51 * + 13 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT DISTINCT 38 DIV + ( COALESCE ( 33, 8, 77 + + 67 DIV + 54 ) ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT 38 / + ( COALESCE ( 33, 8, 77 + + 67 / + 54 ) ) + + 9
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT ALL COUNT( * ) * + ( - 99 ) DIV + 44 col1
----
-2

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL COUNT ( * ) * + ( - 99 ) / + 44 col1
----
-2

query I rowsort
SELECT - ( + 11 ) * - ( + 60 ) AS col2
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT ALL COUNT( * ) DIV 86 DIV 69 + - 42 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL COUNT ( * ) / 86 / 69 + - 42 AS col1
----
-42

query I rowsort
SELECT + COALESCE ( - 71, 95 * 92 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ( + SUM( ALL 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-9507
SELECT ( + SUM ( ALL 15 ) )
----
15

query I rowsort
SELECT ALL 50 * 9 + 89
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT 12 * - COUNT( * ) + 8 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT 12 * - COUNT ( * ) + 8 AS col1
----
-4

query I rowsort
SELECT + COALESCE ( - 99, ( 9 ) ) AS col2
----
-99

query I rowsort
SELECT ALL 54 + + 37 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - 53 + + - 49 + COUNT( * ) * 84
----
-18

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - 53 + + - 49 + COUNT ( * ) * 84
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - NULLIF ( - + COALESCE ( COUNT( ALL 71 ), + 13 ), - AVG ( 79 ) - + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - NULLIF ( - + COALESCE ( COUNT ( ALL 71 ), + 13 ), - AVG ( 79 ) - + 42 )
----
1

query I rowsort
SELECT ALL 18 + + + 38
----
56

query I rowsort
SELECT 79 + NULLIF ( - 38, - 76 + 17 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 14 * 4 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9516
SELECT 14 * 4 * - COUNT ( * )
----
-56

query I rowsort
SELECT + 18 * - 97 + + 91 col2
----
-1655

query I rowsort
SELECT ( 97 ) - 83 AS col1
----
14

query I rowsort
SELECT 98 + 49 * CASE - 27 WHEN 74 * + 97 THEN 26 ELSE NULL END
----
NULL

query I rowsort
SELECT 33 - 50 + + 86 AS col1
----
69

query I rowsort
SELECT ALL 88 - - + 14 * 94
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT CASE NULLIF ( 55, ( COUNT( - 41 ) ) ) WHEN - COUNT( * ) THEN 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT CASE NULLIF ( 55, ( COUNT ( - 41 ) ) ) WHEN - COUNT ( * ) THEN 7 END AS col2
----
NULL

query I rowsort
SELECT - 61 + - 65 * 33
----
-2206

query I rowsort
SELECT DISTINCT 35 - + 35
----
0

query I rowsort
SELECT DISTINCT + 45 * NULLIF ( + 49, 2 ) - + 47 AS col1
----
2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - COALESCE ( 33, 66 * COUNT( * ) + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - COALESCE ( 33, 66 * COUNT ( * ) + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT + CASE - - 69 WHEN + ( - 58 ) THEN + 65 WHEN 88 THEN 15 END + NULLIF ( 47, + 88 + + 48 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT + CASE - - 69 WHEN + ( - 58 ) THEN + 65 WHEN 88 THEN 15 END + NULLIF ( 47, + 88 + + 48 * - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT - 6 * - COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 6 * - COUNT ( * ) col2
----
6

query I rowsort
SELECT ALL ( + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT MAX( DISTINCT + 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT MAX ( DISTINCT + 2 ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + 72 + + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9531
SELECT + 72 + + - COUNT ( * ) AS col2
----
71

query I rowsort
SELECT 38 * - 80 AS col2
----
-3040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT CAST( + 16 AS SIGNED ) col2
----
16

skipif mysql # not compatible
query I rowsort label-9533
SELECT CAST ( + 16 AS INTEGER ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT SUM( DISTINCT 21 ) + - 22 * + 38
----
-815

skipif mysql # not compatible
query I rowsort label-9534
SELECT SUM ( DISTINCT 21 ) + - 22 * + 38
----
-815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL - MIN( ALL 67 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - MIN ( ALL 67 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + 56
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9537
SELECT + CASE COUNT( * ) WHEN + CAST( + 6 AS SIGNED ) THEN 6 * - 52 ELSE - 52 END
----
-52

skipif mysql # not compatible
query I rowsort label-9537
SELECT + CASE COUNT ( * ) WHEN + CAST ( + 6 AS INTEGER ) THEN 6 * - 52 ELSE - 52 END
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - ( + CASE COUNT( ALL CASE 89 WHEN + 35 * + 23 THEN + 42 ELSE NULL END ) WHEN COALESCE ( + 12, 59 ) + 60 * CASE ( 86 ) + + 77 WHEN 18 - 34 THEN ( 44 ) END THEN NULL ELSE + 7 + + COUNT( * ) END )
----
-8

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - ( + CASE COUNT ( ALL CASE 89 WHEN + 35 * + 23 THEN + 42 ELSE NULL END ) WHEN COALESCE ( + 12, 59 ) + 60 * CASE ( 86 ) + + 77 WHEN 18 - 34 THEN ( 44 ) END THEN NULL ELSE + 7 + + COUNT ( * ) END )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT 79 * 66 * COUNT( * ) col1
----
5214

skipif mysql # not compatible
query I rowsort label-9540
SELECT 79 * 66 * COUNT ( * ) col1
----
5214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9541
SELECT - 36 DIV + 19 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 36 / + 19 + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL COUNT( * ) + + 4 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL COUNT ( * ) + + 4 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT 45 + COUNT( * ) - + 3 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9543
SELECT 45 + COUNT ( * ) - + 3 AS col2
----
43

query II rowsort
SELECT + 79, + 4 * + 86 AS col0
----
79
344

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT 89 + - ( + COUNT( * ) ) + 57
----
145

skipif mysql # not compatible
query I rowsort label-9545
SELECT 89 + - ( + COUNT ( * ) ) + 57
----
145

query I rowsort
SELECT DISTINCT + 84 + + 8
----
92

query II rowsort
SELECT + 36 col1, - 54 + - - 93 AS col0
----
36
39

query I rowsort
SELECT 99 + - 41 + + 24 * - 72
----
-1670

query I rowsort
SELECT - ( + - 22 ) * 19 + ( - NULLIF ( 12, 52 * 62 ) + 87 * + 88 )
----
8062

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + COUNT( - 63 ) + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + COUNT ( - 63 ) + 56 AS col0
----
57

query I rowsort
SELECT 92 * 38
----
3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9552
SELECT ALL - 28, COUNT( * ) DIV + MIN( 58 ) AS col0
----
-28
0

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL - 28, COUNT ( * ) / + MIN ( 58 ) AS col0
----
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL 48 + - - CASE - + COUNT( * ) WHEN + COUNT( * ) + - COUNT( * ) THEN + 77 * ( - 31 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 48 + - - CASE - + COUNT ( * ) WHEN + COUNT ( * ) + - COUNT ( * ) THEN + 77 * ( - 31 ) END
----
NULL

query I rowsort
SELECT DISTINCT 66 * - 13
----
-858

query I rowsort
SELECT 82 * - - 16
----
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT 24 + + - 83 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT 24 + + - 83 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - ( + COUNT( ALL - ( 94 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - ( + COUNT ( ALL - ( 94 ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT COUNT( * ) + + 73 DIV COALESCE ( CAST( NULL AS SIGNED ), + 26 )
----
3

skipif mysql # not compatible
query I rowsort label-9558
SELECT COUNT ( * ) + + 73 / COALESCE ( CAST ( NULL AS INTEGER ), + 26 )
----
3

query I rowsort
SELECT 43 + + + 5
----
48

query I rowsort
SELECT DISTINCT + 77 - - - 89
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT COALESCE ( 95, 50, COUNT( * ), - CAST( NULL AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-9561
SELECT COALESCE ( 95, 50, COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
95

query II rowsort
SELECT DISTINCT + 81, 36 * - 56 * + 35 AS col1
----
81
-70560

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL 21 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL 21 / 20
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT 83 DIV - MAX( 60 ) + 22 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9564
SELECT 83 / - MAX ( 60 ) + 22 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9565
SELECT ALL 73, COALESCE ( - - 78, 62 DIV 57 - 90, 67, + 29 DIV + CAST( 97 AS SIGNED ) ) * - COUNT( * ) AS col1
----
73
-78

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL 73, COALESCE ( - - 78, 62 / 57 - 90, 67, + 29 / + CAST ( 97 AS INTEGER ) ) * - COUNT ( * ) AS col1
----
73
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT - CAST( NULL AS SIGNED ) - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT - CAST ( NULL AS INTEGER ) - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + COUNT( * ) * - 16 + 29 col0
----
13

skipif mysql # not compatible
query I rowsort label-9567
SELECT + COUNT ( * ) * - 16 + 29 col0
----
13

query I rowsort
SELECT 32 - 80 + - 6 * 98 * - 1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COALESCE ( COUNT( * ), + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COALESCE ( COUNT ( * ), + 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT 81 AS col1, + COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-9570
SELECT 81 AS col1, + COUNT ( * )
----
81
1

query I rowsort
SELECT - + CASE + + 4 WHEN - + 62 THEN 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + 70 * - + COUNT( + 0 ) * 38 AS col2
----
-2660

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 70 * - + COUNT ( + 0 ) * 38 AS col2
----
-2660

query I rowsort
SELECT 53 + + + 0 + - 14
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COUNT( * ) + - 8 * - - 89
----
-711

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COUNT ( * ) + - 8 * - - 89
----
-711

query I rowsort
SELECT ALL - NULLIF ( 70, - - 83 ) AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT ALL + 99 AS col1, + 81 + - - CAST( NULL AS SIGNED ) + - 15 * - 53 * + 37
----
99
NULL

skipif mysql # not compatible
query II rowsort label-9576
SELECT ALL + 99 AS col1, + 81 + - - CAST ( NULL AS INTEGER ) + - 15 * - 53 * + 37
----
99
NULL

query I rowsort
SELECT ALL - 40 + + 16 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9578
SELECT ALL 41 AS col0, + CAST( NULL AS SIGNED )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-9578
SELECT ALL 41 AS col0, + CAST ( NULL AS INTEGER )
----
41
NULL

query I rowsort
SELECT 32 * - ( - 77 ) AS col0
----
2464

query I rowsort
SELECT DISTINCT CASE 39 WHEN 48 THEN 70 END + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL MAX( ALL + ( + 95 ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL MAX ( ALL + ( + 95 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL 94 + - COUNT( * ) * - 36 * 78
----
2902

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL 94 + - COUNT ( * ) * - 36 * 78
----
2902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT - CASE + COUNT( * ) WHEN - 81 + 57 THEN NULL WHEN - 67 + SUM( 1 ) / AVG ( - 83 ) THEN 32 * 33 + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT - CASE + COUNT ( * ) WHEN - 81 + 57 THEN NULL WHEN - 67 + SUM ( 1 ) / AVG ( - 83 ) THEN 32 * 33 + CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT COALESCE ( 81, - CAST( NULL AS SIGNED ) + 64, + 60 * 96 ) * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9584
SELECT COALESCE ( 81, - CAST ( NULL AS INTEGER ) + 64, + 60 * 96 ) * COUNT ( * )
----
81

query I rowsort
SELECT CASE WHEN + 95 IN ( - 50 + + 24 ) THEN 92 * - 34 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT + 92 DIV 59 + 61 + - 25 col2
----
37

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 92 / 59 + 61 + - 25 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT 2 - - CASE + MAX( ALL 78 ) WHEN 0 THEN + 32 * 56 + 25 END * + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT 2 - - CASE + MAX ( ALL 78 ) WHEN 0 THEN + 32 * 56 + 25 END * + 47 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT NULLIF ( 90, CAST( - COUNT( 61 ) AS SIGNED ) + 41 )
----
90

skipif mysql # not compatible
query I rowsort label-9588
SELECT NULLIF ( 90, CAST ( - COUNT ( 61 ) AS INTEGER ) + 41 )
----
90

query I rowsort
SELECT ALL 11 * + ( + 89 ) + 61
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + CASE COUNT( * ) WHEN 33 + - COALESCE ( NULLIF ( 39, + 42 * + 88 ), - 3, + 32 * - COUNT( * ) - 25 ) + + CASE 23 WHEN 16 * + 45 THEN - 0 WHEN 64 THEN + 9 WHEN ( + 89 ) THEN NULL ELSE NULL END * 83 * + 17 THEN - 91 + - SUM( ALL 83 - - 63 ) * + 67 WHEN 1 THEN 43 * 77 - 16 ELSE NULL END AS col2
----
3295

skipif mysql # not compatible
query I rowsort label-9590
SELECT + CASE COUNT ( * ) WHEN 33 + - COALESCE ( NULLIF ( 39, + 42 * + 88 ), - 3, + 32 * - COUNT ( * ) - 25 ) + + CASE 23 WHEN 16 * + 45 THEN - 0 WHEN 64 THEN + 9 WHEN ( + 89 ) THEN NULL ELSE NULL END * 83 * + 17 THEN - 91 + - SUM ( ALL 83 - - 63 ) * + 67 WHEN 1 THEN 43 * 77 - 16 ELSE NULL END AS col2
----
3295

query II rowsort
SELECT ALL - 98 * 87, - 60 AS col0
----
-8526
-60

query I rowsort
SELECT ALL 48 * - 97 - - + 25 * + 30
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT 26 * + + 50 + + 94 + - CAST( 25 AS SIGNED ) - COALESCE ( + COUNT( * ), 19, 63 )
----
1368

skipif mysql # not compatible
query I rowsort label-9593
SELECT 26 * + + 50 + + 94 + - CAST ( 25 AS INTEGER ) - COALESCE ( + COUNT ( * ), 19, 63 )
----
1368

query I rowsort
SELECT - 89 * + 62
----
-5518

query II rowsort
SELECT - 65 * + + 31 AS col0, 24 * - 59 + 83
----
-2015
-1333

query I rowsort
SELECT + 95 * - 3 AS col1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL + CASE + + CASE + - 18 WHEN + - 49 + 64 THEN COUNT( * ) WHEN - COUNT( * ) THEN NULL END WHEN + 63 THEN 8 + 86 * 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + CASE + + CASE + - 18 WHEN + - 49 + 64 THEN COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END WHEN + 63 THEN 8 + 86 * 25 END
----
NULL

query I rowsort
SELECT - 71 - - - 33
----
-104

query I rowsort
SELECT - 29 * + + 62 AS col0
----
-1798

query I rowsort
SELECT 63 * + 52 - + 25
----
3251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT ALL + - COALESCE ( - 42, - 91, MIN( DISTINCT 71 ), 86 DIV ( 34 ) + + COALESCE ( + 15, + 56 + 6 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + - COALESCE ( - 42, - 91, MIN ( DISTINCT 71 ), 86 / ( 34 ) + + COALESCE ( + 15, + 56 + 6 ) )
----
42

query I rowsort
SELECT + ( - ( - - 63 ) )
----
-63

query I rowsort
SELECT - - 79 + + - 11 * 66 AS col0
----
-647

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL - - MIN( + 46 ) * - COUNT( * ) + - + 92 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - - MIN ( + 46 ) * - COUNT ( * ) + - + 92 AS col2
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT - 80 * - 67 * 29 + - 81 + NULLIF ( 69 + 45, + COALESCE ( 71, 51 ) ) DIV 90 AS col0
----
155360

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 80 * - 67 * 29 + - 81 + NULLIF ( 69 + 45, + COALESCE ( 71, 51 ) ) / 90 AS col0
----
155360

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT ALL - 35 * + 45, COUNT( * ) AS col2
----
-1575
1

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL - 35 * + 45, COUNT ( * ) AS col2
----
-1575
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT - - 29 + + 73 * COUNT( * ) - MIN( + 13 ) DIV + 72 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9607
SELECT - - 29 + + 73 * COUNT ( * ) - MIN ( + 13 ) / + 72 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT + + 24 - + 78 - + 79 DIV + 71 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9608
SELECT + + 24 - + 78 - + 79 / + 71 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT + 24 DIV + COUNT( DISTINCT - 4 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 24 / + COUNT ( DISTINCT - 4 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + + COUNT( * ) + + ( + + 40 ) + - COUNT( * ) * - 41 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + + COUNT ( * ) + + ( + + 40 ) + - COUNT ( * ) * - 41 AS col0
----
82

query I rowsort
SELECT - CASE WHEN NULL IS NOT NULL THEN 95 END + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT ALL + 52 DIV - + 8 * - + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 52 / - + 8 * - + COUNT ( * ) col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9613
SELECT - - 47 DIV + 79 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9613
SELECT - - 47 / + 79 + + COUNT ( * )
----
1

query I rowsort
SELECT - 95 + - 79 - - - 21 AS col2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT 39 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT 39 / + 92 AS col1
----
0

query I rowsort
SELECT + NULLIF ( - 87, + 63 + - 47 - ( + 40 ) ) + 25 AS col2
----
-62

query I rowsort
SELECT - + 3 * - 41 AS col2
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9618
SELECT + - 97 * + + CAST( NULL AS DECIMAL ) * - - 90 * COALESCE ( ( 87 ), + 28 ) - - 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT + - 97 * + + CAST ( NULL AS REAL ) * - - 90 * COALESCE ( ( 87 ), + 28 ) - - 42 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9619
SELECT ALL + COUNT( + - ( - 33 ) ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL + COUNT ( + - ( - 33 ) ) / - 9
----
0

query I rowsort
SELECT - 57 + 5 * + 91
----
398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT - - ( MIN( DISTINCT - 36 ) ) * 47 DIV ( 97 ) + + 48
----
31

skipif mysql # not compatible
query I rowsort label-9621
SELECT - - ( MIN ( DISTINCT - 36 ) ) * 47 / ( 97 ) + + 48
----
31

query I rowsort
SELECT + + 22 + + 98 AS col2
----
120

query I rowsort
SELECT - 70 + + + 12 AS col1
----
-58

query I rowsort
SELECT DISTINCT 3 + 80
----
83

query I rowsort
SELECT ALL 38 - + + 75
----
-37

query I rowsort
SELECT + 43 * - 27 AS col2
----
-1161

query I rowsort
SELECT ALL ( + + 97 ) col2
----
97

query I rowsort
SELECT + CASE - - 50 WHEN - 51 THEN NULL ELSE + 11 + + + 96 * 97 END col1
----
9323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL + MAX( DISTINCT NULLIF ( + 8, CAST( NULL AS SIGNED ) ) ) col1
----
8

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + MAX ( DISTINCT NULLIF ( + 8, CAST ( NULL AS INTEGER ) ) ) col1
----
8

query I rowsort
SELECT + 63 * + 99 + - 22 col2
----
6215

query II rowsort
SELECT ALL + 34, - 5 + + + 63 AS col0
----
34
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT ALL 44 DIV + - NULLIF ( - COUNT( * ), 82 ) - COUNT( * ) DIV 33 col2
----
44

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 44 / + - NULLIF ( - COUNT ( * ), 82 ) - COUNT ( * ) / 33 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + COUNT( ALL 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9633
SELECT + COUNT ( ALL 33 ) AS col1
----
1

query I rowsort
SELECT + 7 + - 6
----
1

query I rowsort
SELECT + 66 * 37
----
2442

query I rowsort
SELECT + CASE 37 WHEN - 85 THEN + 51 - - - 22 * 60 ELSE NULL END * - 3 col0
----
NULL

query I rowsort
SELECT + 83 + + 58
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT 95 DIV MIN( ( + 77 ) ) + + + 30 * MIN( - 87 * 64 )
----
-167039

skipif mysql # not compatible
query I rowsort label-9638
SELECT 95 / MIN ( ( + 77 ) ) + + + 30 * MIN ( - 87 * 64 )
----
-167039

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT + 30 DIV - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT + 30 / - 87 col1
----
0

query I rowsort
SELECT + 47 + - + 71
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT ALL - 4 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 4 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT CASE + 61 WHEN + MAX( DISTINCT + 63 ) THEN - + 22 + + ( - ( - 62 ) ) WHEN + 19 THEN + 69 ELSE NULL END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT CASE + 61 WHEN + MAX ( DISTINCT + 63 ) THEN - + 22 + + ( - ( - 62 ) ) WHEN + 19 THEN + 69 ELSE NULL END * - 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT - + 19 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT - + 19 / - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT 42 * - + MAX( - + 77 ) * - ( + 61 ) + + 29
----
-197245

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT 42 * - + MAX ( - + 77 ) * - ( + 61 ) + + 29
----
-197245

query I rowsort
SELECT - 86 + + 69
----
-17

query I rowsort
SELECT DISTINCT + 13 * + 37 + 65 AS col2
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL COUNT( * ) * - + 72 + - 95 * - ( 89 ) AS col1
----
8383

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL COUNT ( * ) * - + 72 + - 95 * - ( 89 ) AS col1
----
8383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT + COUNT( * ) * + - 65 + + 38 + 19 DIV 19 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) * + - 65 + + 38 + 19 / 19 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - - MIN( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9649
SELECT - - MIN ( ALL 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL - 20 * - 28 + 85 - COUNT( CAST( NULL AS SIGNED ) ) + + CAST( - CASE 35 WHEN 63 + + 30 * NULLIF ( COUNT( ALL - 64 ) * - COUNT( * ), 60 + + 40 ) THEN NULL WHEN + 20 THEN 91 * - 65 ELSE + 25 + ( + ( + 92 ) ) END AS SIGNED )
----
528

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - 20 * - 28 + 85 - COUNT ( CAST ( NULL AS INTEGER ) ) + + CAST ( - CASE 35 WHEN 63 + + 30 * NULLIF ( COUNT ( ALL - 64 ) * - COUNT ( * ), 60 + + 40 ) THEN NULL WHEN + 20 THEN 91 * - 65 ELSE + 25 + ( + ( + 92 ) ) END AS INTEGER )
----
528

query I rowsort
SELECT - + ( - - 17 ) * + 17
----
-289

query I rowsort
SELECT ALL 56 * + 54 + - 21
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + + 32 - - 7 - - 28 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9653
SELECT + + 32 - - 7 - - 28 * + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + - CASE - ( - COUNT( * ) ) WHEN - COUNT( * ) + - 15 THEN - 82 ELSE NULL END * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + - CASE - ( - COUNT ( * ) ) WHEN - COUNT ( * ) + - 15 THEN - 82 ELSE NULL END * 84
----
NULL

query I rowsort
SELECT - 15 * + 79
----
-1185

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT + COUNT( * ) AS col1, 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-9656
SELECT + COUNT ( * ) AS col1, 20 AS col2
----
1
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT - 59 + - + 58 + - - COUNT( * ) DIV + 75 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-9657
SELECT - 59 + - + 58 + - - COUNT ( * ) / + 75 AS col2
----
-117

query I rowsort
SELECT ALL - + ( + + 25 ) - - 43 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT ALL + CASE + 61 WHEN MAX( - 10 ) THEN - 37 WHEN 98 THEN NULL WHEN COUNT( DISTINCT 15 ) THEN ( CAST( NULL AS SIGNED ) ) * - 98 ELSE 53 END AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + CASE + 61 WHEN MAX ( - 10 ) THEN - 37 WHEN 98 THEN NULL WHEN COUNT ( DISTINCT 15 ) THEN ( CAST ( NULL AS INTEGER ) ) * - 98 ELSE 53 END AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT 83 * + 81 * + 29 * 1 * - + NULLIF ( 28, + COUNT( * ) )
----
-5459076

skipif mysql # not compatible
query I rowsort label-9660
SELECT 83 * + 81 * + 29 * 1 * - + NULLIF ( 28, + COUNT ( * ) )
----
-5459076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9661
SELECT ALL 78 col2, 19 + ( - + 8 ) + 55 DIV - + COUNT( * )
----
78
-44

skipif mysql # not compatible
query II rowsort label-9661
SELECT ALL 78 col2, 19 + ( - + 8 ) + 55 / - + COUNT ( * )
----
78
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT DISTINCT + 25 - - - 77 DIV + 93
----
25

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + 25 - - - 77 / + 93
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT COUNT( * ) - - - 22 + 86 * + 11 * - 35 + - 83 + 47 * 99 col2
----
-28561

skipif mysql # not compatible
query I rowsort label-9663
SELECT COUNT ( * ) - - - 22 + 86 * + 11 * - 35 + - 83 + 47 * 99 col2
----
-28561

query I rowsort
SELECT ALL + 8 - + 63 * + 97
----
-6103

query II rowsort
SELECT DISTINCT 37, - ( 89 ) AS col2
----
37
-89

query II rowsort
SELECT - 90 AS col0, + 15 + + 61
----
-90
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT 18 * + + NULLIF ( + 85, + - CAST( NULL AS SIGNED ) )
----
1530

skipif mysql # not compatible
query I rowsort label-9667
SELECT 18 * + + NULLIF ( + 85, + - CAST ( NULL AS INTEGER ) )
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT + COUNT( ALL + 50 ) DIV - 68 * MIN( - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + COUNT ( ALL + 50 ) / - 68 * MIN ( - 18 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ( - 81 ) / - 41 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ( - 81 ) / - 41 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT SUM( + 28 ) * + + 75
----
2100

skipif mysql # not compatible
query I rowsort label-9670
SELECT SUM ( + 28 ) * + + 75
----
2100

query II rowsort
SELECT + 0, 64 * + 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT 8 * + - COUNT( * ) * + + COUNT( * ) * 89 AS col2
----
-712

skipif mysql # not compatible
query I rowsort label-9672
SELECT 8 * + - COUNT ( * ) * + + COUNT ( * ) * 89 AS col2
----
-712

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT ALL - COUNT( * ) AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9673
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT 46 AS col1, 39 + - 59 + + MAX( ALL - 20 )
----
46
-40

skipif mysql # not compatible
query II rowsort label-9674
SELECT 46 AS col1, 39 + - 59 + + MAX ( ALL - 20 )
----
46
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9675
SELECT ALL - 88, CASE + COUNT( * ) WHEN 73 + + 42 THEN ( 4 ) WHEN + 70 THEN + 28 / - 65 WHEN 74 THEN - 62 END * + COUNT( * ) AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-9675
SELECT ALL - 88, CASE + COUNT ( * ) WHEN 73 + + 42 THEN ( 4 ) WHEN + 70 THEN + 28 / - 65 WHEN 74 THEN - 62 END * + COUNT ( * ) AS col0
----
-88
NULL

query II rowsort
SELECT ALL - 59 col1, + 6 AS col2
----
-59
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9677
SELECT COUNT( * ) * + 18 * + COALESCE ( + ( + + CAST( NULL AS SIGNED ) ), 2 * - COALESCE ( 5, - 10 * 10 ), - ( 11 ) )
----
-180

skipif mysql # not compatible
query I rowsort label-9677
SELECT COUNT ( * ) * + 18 * + COALESCE ( + ( + + CAST ( NULL AS INTEGER ) ), 2 * - COALESCE ( 5, - 10 * 10 ), - ( 11 ) )
----
-180

query I rowsort
SELECT 0 * + 63 + - 15 + - 8
----
-23

query II rowsort
SELECT 43 AS col1, 97
----
43
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT - 1 DIV - 19 + + 80 + - - 29 * 32 * ( 41 ) * - 5 AS col0
----
-190160

skipif mysql # not compatible
query I rowsort label-9680
SELECT - 1 / - 19 + + 80 + - - 29 * 32 * ( 41 ) * - 5 AS col0
----
-190160

query I rowsort
SELECT 82 * + 5 - + 67 + + + 35 - + 88 * - 94 + + 32 AS col1
----
8682

onlyif mysql # aggregate syntax: 
query III rowsort label-9682
SELECT + - COUNT( * ) AS col2, + 8 AS col1, + 90
----
-1
8
90

skipif mysql # not compatible
query III rowsort label-9682
SELECT + - COUNT ( * ) AS col2, + 8 AS col1, + 90
----
-1
8
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + COUNT( - 22 ) + - - CASE - 5 WHEN - - 67 THEN - 63 WHEN 90 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + COUNT ( - 22 ) + - - CASE - 5 WHEN - - 67 THEN - 63 WHEN 90 THEN COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT - CAST( + - 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - CAST ( + - 13 AS INTEGER ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT ALL - CAST( NULL AS SIGNED ) + + - 41 + - NULLIF ( 18, 32 + 31 ) / + NULLIF ( + NULLIF ( + 24, 29 ) * COUNT( * ) - - 37, 80 - - 87 / - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 41 + - NULLIF ( 18, 32 + 31 ) / + NULLIF ( + NULLIF ( + 24, 29 ) * COUNT ( * ) - - 37, 80 - - 87 / - 49 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT COUNT( ALL + - 69 ) * COUNT( * ) DIV ( + - 11 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT COUNT ( ALL + - 69 ) * COUNT ( * ) / ( + - 11 ) AS col0
----
0

query I rowsort
SELECT ALL + 16 + - 33 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT DISTINCT - 94 + + 97 - + 35 * 43 * 15 * - 83 * COUNT( * )
----
1873728

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT - 94 + + 97 - + 35 * 43 * 15 * - 83 * COUNT ( * )
----
1873728

onlyif mysql # DIV for integer division: 
query II rowsort label-9689
SELECT DISTINCT 42 * 24 AS col0, 56 * 89 DIV + 48 col2
----
1008
103

skipif mysql # not compatible
query II rowsort label-9689
SELECT DISTINCT 42 * 24 AS col0, 56 * 89 / + 48 col2
----
1008
103

query II rowsort
SELECT 86 + + 24 AS col1, 99 AS col2
----
110
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL CASE + 90 WHEN + 86 THEN + MAX( ALL - + 31 ) * ( 49 ) WHEN + ( COUNT( * ) ) + + 38 THEN NULL ELSE NULL END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL CASE + 90 WHEN + 86 THEN + MAX ( ALL - + 31 ) * ( 49 ) WHEN + ( COUNT ( * ) ) + + 38 THEN NULL ELSE NULL END * + 9
----
NULL

query I rowsort
SELECT 76 - 9
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 79 + - MAX( - 86 ) col0
----
165

skipif mysql # not compatible
query I rowsort label-9693
SELECT 79 + - MAX ( - 86 ) col0
----
165

query I rowsort
SELECT - 37 * - 17 * - - ( + 35 ) + 38 * + 87
----
25321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL + NULLIF ( 22, - + ( 28 ) / - - 48 ) - + MAX( + CAST( ( 68 ) AS SIGNED ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + NULLIF ( 22, - + ( 28 ) / - - 48 ) - + MAX ( + CAST ( ( 68 ) AS INTEGER ) )
----
-46

query I rowsort
SELECT ALL + 89 * 42 * - + 29 - - 75 col2
----
-108327

query I rowsort
SELECT 2 + + - 8 + 24 col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9698
SELECT CAST( + - CAST( + MIN( - ( + 53 ) ) AS DECIMAL ) AS SIGNED ) + - + COUNT( * ) * + 21 * 98 - 12
----
-2017

skipif mysql # not compatible
query I rowsort label-9698
SELECT CAST ( + - CAST ( + MIN ( - ( + 53 ) ) AS REAL ) AS INTEGER ) + - + COUNT ( * ) * + 21 * 98 - 12
----
-2017

query I rowsort
SELECT DISTINCT + 94 * - 37
----
-3478

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT 8 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT 8 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL CASE 29 WHEN + - 87 + + - 10 - 78 + 62 * - - 92 * + 85 / 80 THEN 52 ELSE - 61 END * COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CASE 29 WHEN + - 87 + + - 10 - 78 + 62 * - - 92 * + 85 / 80 THEN 52 ELSE - 61 END * COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT DISTINCT 41 * - ( - 36 ) + + 21
----
1497

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT - 22 DIV + CASE - + 13 WHEN - 19 THEN NULL WHEN + 20 THEN + + 2 WHEN - NULLIF ( + ( 78 ), + 88 ) * 85 THEN NULL ELSE 62 END + 44
----
44

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 22 / + CASE - + 13 WHEN - 19 THEN NULL WHEN + 20 THEN + + 2 WHEN - NULLIF ( + ( 78 ), + 88 ) * 85 THEN NULL ELSE 62 END + 44
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ALL - 97 * 76 + 41 + 32 DIV + 32 - + 20 + + 97 * - 37 AS col1
----
-10939

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - 97 * 76 + 41 + 32 / + 32 - + 20 + + 97 * - 37 AS col1
----
-10939

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT 23 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT 23 / - + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT 53 * - 48 + + + 1 + + ( - COALESCE ( + 42, - 35 * 35 ) ) * - NULLIF ( - 4 DIV - 51, 19 )
----
-2543

skipif mysql # not compatible
query I rowsort label-9706
SELECT 53 * - 48 + + + 1 + + ( - COALESCE ( + 42, - 35 * 35 ) ) * - NULLIF ( - 4 / - 51, 19 )
----
-2543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT + + 26 * - ( - NULLIF ( - + CAST( NULL AS SIGNED ), + COUNT( - 25 ) ) ) + - 1 * 17 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT + + 26 * - ( - NULLIF ( - + CAST ( NULL AS INTEGER ), + COUNT ( - 25 ) ) ) + - 1 * 17 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT MIN( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9708
SELECT MIN ( ALL 60 )
----
60

query I rowsort
SELECT ALL - COALESCE ( - ( + 53 ), + - 56 * + - 17 ) AS col1
----
53

query I rowsort
SELECT DISTINCT - + 37 * - 69 + + 56 + 39 * - + 26 - - + 6 AS col2
----
1601

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + - 65 + - SUM( 33 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + - 65 + - SUM ( 33 ) AS col1
----
-98

query II rowsort
SELECT ALL - ( 69 ), 36 AS col2
----
-69
36

query I rowsort
SELECT ALL 87 + - 75 * - 74
----
5637

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL + - MAX( DISTINCT - 79 ) * - 18 AS col2
----
-1422

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + - MAX ( DISTINCT - 79 ) * - 18 AS col2
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + + ( - + ( - 71 ) ) * + COALESCE ( - NULLIF ( 45, - - 78 ), 95, + 0, - COUNT( * ) * 33 + + 30 ) + 33
----
-3162

skipif mysql # not compatible
query I rowsort label-9715
SELECT + + ( - + ( - 71 ) ) * + COALESCE ( - NULLIF ( 45, - - 78 ), 95, + 0, - COUNT ( * ) * 33 + + 30 ) + 33
----
-3162

query I rowsort
SELECT DISTINCT 49 - - - 55 + + - 6 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT + + COUNT( * ) * + + COUNT( * ), - 89 - 47 AS col1
----
1
-136

skipif mysql # not compatible
query II rowsort label-9717
SELECT + + COUNT ( * ) * + + COUNT ( * ), - 89 - 47 AS col1
----
1
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT DISTINCT 76 DIV - 83 + - + 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT 76 / - 83 + - + 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + 80 * COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + 80 * COUNT ( * ) col0
----
80

query I rowsort
SELECT + 73 * + ( + 52 ) AS col0
----
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT - NULLIF ( + 63, - + 75 ) * COALESCE ( 23, + NULLIF ( 7, + - 23 ), NULLIF ( - 74, 65 / COUNT( - 57 ) ) ) * 33 AS col0
----
-47817

skipif mysql # not compatible
query I rowsort label-9721
SELECT - NULLIF ( + 63, - + 75 ) * COALESCE ( 23, + NULLIF ( 7, + - 23 ), NULLIF ( - 74, 65 / COUNT ( - 57 ) ) ) * 33 AS col0
----
-47817

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT + 73 * - 11 * - 94 AS col0, - COUNT( * ) * - 69
----
75482
69

skipif mysql # not compatible
query II rowsort label-9722
SELECT + 73 * - 11 * - 94 AS col0, - COUNT ( * ) * - 69
----
75482
69

query I rowsort
SELECT ALL 79 * - 41
----
-3239

query I rowsort
SELECT + 85 - 77
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT + 90 DIV 4 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 90 / 4 AS col1
----
22

query II rowsort
SELECT 1 AS col1, + 58
----
1
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9727
SELECT + CAST( + 63 AS SIGNED ) * + 35 * - COUNT( * ), - 17 + - COUNT( * ) + + 78 AS col2
----
-2205
60

skipif mysql # not compatible
query II rowsort label-9727
SELECT + CAST ( + 63 AS INTEGER ) * + 35 * - COUNT ( * ), - 17 + - COUNT ( * ) + + 78 AS col2
----
-2205
60

query I rowsort
SELECT - 43 * + 83 AS col0
----
-3569

query I rowsort
SELECT - NULLIF ( - 67, + 52 )
----
67

query I rowsort
SELECT + 48 * + 73 * - 89 AS col0
----
-311856

query I rowsort
SELECT + 7 - + 87 - + 27 + + - 58 * 70 AS col1
----
-4167

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT 71 + - 98 DIV + - 93
----
72

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT 71 + - 98 / + - 93
----
72

query I rowsort
SELECT - 83 + 94 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - NULLIF ( + MAX( DISTINCT 76 ), + - 54 + + 57 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9734
SELECT - NULLIF ( + MAX ( DISTINCT 76 ), + - 54 + + 57 ) AS col0
----
-76

query I rowsort
SELECT + 12 * - 67
----
-804

query II rowsort
SELECT - 61 AS col1, - ( + 68 ) AS col2
----
-61
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT + 0 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + 0 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ( + 14 ) col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT - 70 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 70 / + 42
----
-1

query I rowsort
SELECT DISTINCT - 28 * - 65 AS col1
----
1820

query I rowsort
SELECT ALL - 8 * + 82 + + 31
----
-625

query II rowsort
SELECT DISTINCT + 42 AS col2, + 73 AS col2
----
42
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT - COALESCE ( - 17, - 40 * - 63, - 63 ) DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT - COALESCE ( - 17, - 40 * - 63, - 63 ) / + + 22
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT DISTINCT + COUNT( * ) AS col0, ( - 16 ) + 6 AS col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-9744
SELECT DISTINCT + COUNT ( * ) AS col0, ( - 16 ) + 6 AS col0
----
1
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9745
SELECT + CAST( 63 AS SIGNED ) * 19
----
1197

skipif mysql # not compatible
query I rowsort label-9745
SELECT + CAST ( 63 AS INTEGER ) * 19
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + - NULLIF ( MIN( - 62 ), + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-9746
SELECT + - NULLIF ( MIN ( - 62 ), + COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT 19 * + COUNT( * ) + - + 2 + + 41
----
58

skipif mysql # not compatible
query I rowsort label-9747
SELECT 19 * + COUNT ( * ) + - + 2 + + 41
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - - COUNT( * ) - + 23 + + 20 * - - 98 AS col1
----
1938

skipif mysql # not compatible
query I rowsort label-9748
SELECT - - COUNT ( * ) - + 23 + + 20 * - - 98 AS col1
----
1938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT - + ( + ( - + 54 ) ) + + 4 * + 13 * + + CAST( - - 41 AS SIGNED ) AS col1
----
2186

skipif mysql # not compatible
query I rowsort label-9749
SELECT - + ( + ( - + 54 ) ) + + 4 * + 13 * + + CAST ( - - 41 AS INTEGER ) AS col1
----
2186

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - - 70 + - + MAX( + 71 ) * 17 - - COALESCE ( + 38, 99 + + 92, 59 ) + 95 * 30
----
1751

skipif mysql # not compatible
query I rowsort label-9750
SELECT - - 70 + - + MAX ( + 71 ) * 17 - - COALESCE ( + 38, 99 + + 92, 59 ) + 95 * 30
----
1751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT + CAST( - MIN( - - 95 ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9751
SELECT + CAST ( - MIN ( - - 95 ) AS INTEGER )
----
-95

query I rowsort
SELECT ALL - - CASE WHEN NOT 92 IS NOT NULL THEN - + 90 ELSE NULL END * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + 66 * + 13 + + 49 + - - COUNT( * ) * - 87 + 16 * + 66 AS col2
----
1876

skipif mysql # not compatible
query I rowsort label-9753
SELECT + 66 * + 13 + + 49 + - - COUNT ( * ) * - 87 + 16 * + 66 AS col2
----
1876

query I rowsort
SELECT - 62 + 96 AS col0
----
34

query I rowsort
SELECT + 75 + - + 89 * - 21 * - - 55 AS col1
----
102870

query I rowsort
SELECT + 67 + 83 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - 96 * + NULLIF ( 86, - COALESCE ( - 45, COUNT( * ) ) / - 97 + + COUNT( * ) / + 64 ) + MIN( ALL - 17 - + 66 * - 64 ) * - COALESCE ( NULLIF ( - 10, COALESCE ( 83, - 32 * + COALESCE ( 84 * - 39, 47 ) ) ) * - 86, 43 ) AS col2
----
-3626276

skipif mysql # not compatible
query I rowsort label-9757
SELECT - 96 * + NULLIF ( 86, - COALESCE ( - 45, COUNT ( * ) ) / - 97 + + COUNT ( * ) / + 64 ) + MIN ( ALL - 17 - + 66 * - 64 ) * - COALESCE ( NULLIF ( - 10, COALESCE ( 83, - 32 * + COALESCE ( 84 * - 39, 47 ) ) ) * - 86, 43 ) AS col2
----
-3626276

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT ( + MAX( DISTINCT - COALESCE ( 56, 94 * - 19 ) ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT ( + MAX ( DISTINCT - COALESCE ( 56, 94 * - 19 ) ) ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL COUNT( * ) + - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL COUNT ( * ) + - 74 AS col1
----
-73

query I rowsort
SELECT + 48 * + 3
----
144

query I rowsort
SELECT + 7 + - 27
----
-20

query I rowsort
SELECT ALL ( - 42 ) + - NULLIF ( - 6, + - 86 + + + 19 ) + + + ( + 91 ) * 26 + - 2
----
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - 13 + MAX( 49 ) + + - 86 - + + 47 + ( + 3 ) + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 13 + MAX ( 49 ) + + - 86 - + + 47 + ( + 3 ) + COUNT ( * )
----
-93

query I rowsort
SELECT - NULLIF ( 89, + 42 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9765
SELECT ALL 29 + 99 DIV - + 22 DIV - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL 29 + 99 / - + 22 / - COUNT ( * )
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9766
SELECT + 59 + + 80 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 59 + + 80 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 64 - + 4 * + 34 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT + + 9 + + 56 DIV 65
----
9

skipif mysql # not compatible
query I rowsort label-9768
SELECT + + 9 + + 56 / 65
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + 7 * - 55 + + COUNT( * ) AS col0
----
-384

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 7 * - 55 + + COUNT ( * ) AS col0
----
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9770
SELECT ALL + NULLIF ( 3, + + CASE - 36 WHEN 72 THEN - AVG ( - - 78 ) END ) AS col1, - MIN( ALL - 59 ) DIV 28 + 9 AS col0
----
3
11

skipif mysql # not compatible
query II rowsort label-9770
SELECT ALL + NULLIF ( 3, + + CASE - 36 WHEN 72 THEN - AVG ( - - 78 ) END ) AS col1, - MIN ( ALL - 59 ) / 28 + 9 AS col0
----
3
11

query I rowsort
SELECT + - 23 * + - 80
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT MIN( DISTINCT 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9772
SELECT MIN ( DISTINCT 90 ) AS col1
----
90

query II rowsort
SELECT - - 85 * - 20 col1, 52
----
-1700
52

query I rowsort
SELECT ALL + 2 * - 53 * - 89
----
9434

query I rowsort
SELECT - NULLIF ( - 87, 74 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT ALL - SUM( 81 ), 26 AS col0
----
-81
26

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL - SUM ( 81 ), 26 AS col0
----
-81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT 33 * + COUNT( * ) + + 32
----
65

skipif mysql # not compatible
query I rowsort label-9777
SELECT 33 * + COUNT ( * ) + + 32
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9778
SELECT DISTINCT - 66, - CAST( NULL AS SIGNED ) * - 36 AS col0, 36 + - 65 + + 95 * + 20 AS col2
----
-66
NULL
1871

skipif mysql # not compatible
query III rowsort label-9778
SELECT DISTINCT - 66, - CAST ( NULL AS INTEGER ) * - 36 AS col0, 36 + - 65 + + 95 * + 20 AS col2
----
-66
NULL
1871

query I rowsort
SELECT 1 * 15 AS col0
----
15

query I rowsort
SELECT ALL 43 + + 24
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT + 63 + + - 10 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + 63 + + - 10 * - COUNT ( * )
----
73

query I rowsort
SELECT ALL + 17 + 77
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9783
SELECT DISTINCT - CAST( + 19 AS SIGNED ) * 66 + + - COUNT( * ) + - - 51 * 48 AS col2, - 49 - + COUNT( DISTINCT 51 ) + - 71 * - MAX( + 94 * + 84 ) col1
----
1193
560566

skipif mysql # not compatible
query II rowsort label-9783
SELECT DISTINCT - CAST ( + 19 AS INTEGER ) * 66 + + - COUNT ( * ) + - - 51 * 48 AS col2, - 49 - + COUNT ( DISTINCT 51 ) + - 71 * - MAX ( + 94 * + 84 ) col1
----
1193
560566

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT + COUNT( * ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + COUNT ( * ) + - 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL COUNT( * ) * 11
----
11

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL COUNT ( * ) * 11
----
11

query I rowsort
SELECT 17 + + 20
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL - CAST( NULL AS SIGNED ) * + 10 / + CASE + - 25 WHEN + CAST( NULL AS SIGNED ) * 52 / + 37 THEN + 20 + 66 WHEN 73 * + 97 THEN 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - CAST ( NULL AS INTEGER ) * + 10 / + CASE + - 25 WHEN + CAST ( NULL AS INTEGER ) * 52 / + 37 THEN + 20 + 66 WHEN 73 * + 97 THEN 32 END
----
NULL

query I rowsort
SELECT 26 + + 5 AS col1
----
31

query I rowsort
SELECT 68 + + + 91 AS col1
----
159

query I rowsort
SELECT DISTINCT 77 + + + 48 * - - 43 * - 54 col1
----
-111379

query I rowsort
SELECT 42 * - 82
----
-3444

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT ALL 12 - - + COUNT( DISTINCT + 13 ) AS col2, COUNT( + - 77 )
----
13
1

skipif mysql # not compatible
query II rowsort label-9792
SELECT ALL 12 - - + COUNT ( DISTINCT + 13 ) AS col2, COUNT ( + - 77 )
----
13
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT 71 DIV 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT 71 / 28 AS col2
----
2

query II rowsort
SELECT 63 AS col1, 13 + + 44
----
63
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT ALL + ( - - 77 ) - COUNT( ALL + - 53 ) + - ( - ( + 11 ) ) + 61 col1, - 32
----
148
-32

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL + ( - - 77 ) - COUNT ( ALL + - 53 ) + - ( - ( + 11 ) ) + 61 col1, - 32
----
148
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT 20 DIV - SUM( - 26 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT 20 / - SUM ( - 26 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT ALL CASE - CASE COUNT( * ) WHEN + 82 THEN - + 68 * - - COUNT( DISTINCT ( 96 ) ) ELSE - 60 END WHEN - NULLIF ( 31, - CAST( NULL AS SIGNED ) + - NULLIF ( 88 + COUNT( * ) * + 2, 56 ) * COUNT( * ) ) THEN - 85 * MAX( - 56 ) WHEN + 30 THEN 97 * - 6 WHEN 18 THEN 83 ELSE NULL END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL CASE - CASE COUNT ( * ) WHEN + 82 THEN - + 68 * - - COUNT ( DISTINCT ( 96 ) ) ELSE - 60 END WHEN - NULLIF ( 31, - CAST ( NULL AS INTEGER ) + - NULLIF ( 88 + COUNT ( * ) * + 2, 56 ) * COUNT ( * ) ) THEN - 85 * MAX ( - 56 ) WHEN + 30 THEN 97 * - 6 WHEN 18 THEN 83 ELSE NULL END * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT COUNT( * ) * - NULLIF ( NULLIF ( - 59, + SUM( ALL + 64 ) + - 5 + 92 + COUNT( * ) + - 34 * 97 * + 66 ), COUNT( * ) ) * COUNT( * ) - 3 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9798
SELECT COUNT ( * ) * - NULLIF ( NULLIF ( - 59, + SUM ( ALL + 64 ) + - 5 + 92 + COUNT ( * ) + - 34 * 97 * + 66 ), COUNT ( * ) ) * COUNT ( * ) - 3 AS col1
----
56

query I rowsort
SELECT - 41 - 92 AS col1
----
-133

query I rowsort
SELECT ALL + 48 * - + 10 * - 67 AS col2
----
32160

query I rowsort
SELECT ALL - ( - 50 ) * - ( - 69 )
----
3450

query II rowsort
SELECT ALL - 20 AS col1, + 3 AS col0
----
-20
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT CAST( - CAST( - SUM( 75 ) AS SIGNED ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-9803
SELECT CAST ( - CAST ( - SUM ( 75 ) AS INTEGER ) AS INTEGER )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9804
SELECT ALL 0 + - 9 DIV + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL 0 + - 9 / + COUNT ( * ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT 76 * + 81 / + - CASE 42 WHEN + + 94 / - 44 - + 50 - + 59 + - CASE - 40 WHEN + 82 THEN NULL ELSE 73 END + 51 * 44 THEN 34 + 3 * - 74 WHEN NULLIF ( CAST( NULL AS SIGNED ), - 38 * 70 ) * 28 THEN 27 ELSE NULL END + 32 + 32 / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT 76 * + 81 / + - CASE 42 WHEN + + 94 / - 44 - + 50 - + 59 + - CASE - 40 WHEN + 82 THEN NULL ELSE 73 END + 51 * 44 THEN 34 + 3 * - 74 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - 38 * 70 ) * 28 THEN 27 ELSE NULL END + 32 + 32 / 78
----
NULL

query I rowsort
SELECT 68 * 42 AS col1
----
2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT - + CAST( NULL AS SIGNED ) * - 37 - + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT - + CAST ( NULL AS INTEGER ) * - 37 - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL 27 + + 82 - - 28 + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL 27 + + 82 - - 28 + COUNT ( * )
----
138

query I rowsort
SELECT - 97 + + 1 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT COUNT( * ) + + ( - 57 ) + 14 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9810
SELECT COUNT ( * ) + + ( - 57 ) + 14 AS col1
----
-42

query I rowsort
SELECT ALL + 40 + + 90 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL 20 + - COUNT( DISTINCT - 71 ) - - 66 col2
----
85

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 20 + - COUNT ( DISTINCT - 71 ) - - 66 col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9813
SELECT DISTINCT 55 + - 82, 60 DIV + COUNT( * ) AS col2
----
-27
60

skipif mysql # not compatible
query II rowsort label-9813
SELECT DISTINCT 55 + - 82, 60 / + COUNT ( * ) AS col2
----
-27
60

query II rowsort
SELECT ALL COALESCE ( 21, + 57 + 24, + + 42 ) + - - 28, 46 AS col2
----
49
46

query II rowsort
SELECT ALL - 1 AS col1, + 10 * - - 97 AS col2
----
-1
970

query I rowsort
SELECT 36 + + + CASE 7 WHEN + + 50 THEN + COALESCE ( - 30, - 12 * + 1 + + + 99, 47 ) + 48 WHEN 46 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT 46 + + + SUM( DISTINCT 90 ) * + ( 50 )
----
4546

skipif mysql # not compatible
query I rowsort label-9817
SELECT 46 + + + SUM ( DISTINCT 90 ) * + ( 50 )
----
4546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9818
SELECT CAST( NULL AS DECIMAL ) / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT CAST ( NULL AS REAL ) / 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT ALL 93 AS col1, - COUNT( * )
----
93
-1

skipif mysql # not compatible
query II rowsort label-9819
SELECT ALL 93 AS col1, - COUNT ( * )
----
93
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9820
SELECT - MAX( DISTINCT 60 ), 52 + + 6 + + CAST( + 66 AS SIGNED ) * + + 86 * - CAST( - + 66 AS SIGNED ) * + - 13 * - 68 + + 14 AS col0
----
-60
331160616

skipif mysql # not compatible
query II rowsort label-9820
SELECT - MAX ( DISTINCT 60 ), 52 + + 6 + + CAST ( + 66 AS INTEGER ) * + + 86 * - CAST ( - + 66 AS INTEGER ) * + - 13 * - 68 + + 14 AS col0
----
-60
331160616

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT 62 + NULLIF ( + - 24, + + COUNT( * ) ) + 68 + + 2 * - 36 * + 15 + - COUNT( * ) + - MIN( - + 96 ) + - 72 * + 58 AS col0
----
-5055

skipif mysql # not compatible
query I rowsort label-9821
SELECT 62 + NULLIF ( + - 24, + + COUNT ( * ) ) + 68 + + 2 * - 36 * + 15 + - COUNT ( * ) + - MIN ( - + 96 ) + - 72 * + 58 AS col0
----
-5055

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT 42 * 14 * - + ( - - SUM( ALL 26 ) ) col0
----
-15288

skipif mysql # not compatible
query I rowsort label-9822
SELECT 42 * 14 * - + ( - - SUM ( ALL 26 ) ) col0
----
-15288

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT ALL 48 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL 48 / - 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT 52 * + 6, + COUNT( * ) AS col2
----
312
1

skipif mysql # not compatible
query II rowsort label-9824
SELECT 52 * + 6, + COUNT ( * ) AS col2
----
312
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9825
SELECT DISTINCT 61 AS col0, + CAST( - NULLIF ( - 41, + - 40 ) AS SIGNED ) * - + 31 + - + ( 12 ) * - + ( + 71 )
----
61
-419

skipif mysql # not compatible
query II rowsort label-9825
SELECT DISTINCT 61 AS col0, + CAST ( - NULLIF ( - 41, + - 40 ) AS INTEGER ) * - + 31 + - + ( 12 ) * - + ( + 71 )
----
61
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT 71 + 3 * - COUNT( * ) col1
----
68

skipif mysql # not compatible
query I rowsort label-9826
SELECT 71 + 3 * - COUNT ( * ) col1
----
68

query I rowsort
SELECT 42 * + 87 AS col2
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT COUNT( ALL + - 61 ) * + 1 * + 39 - - 34 + 60 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-9828
SELECT COUNT ( ALL + - 61 ) * + 1 * + 39 - - 34 + 60 AS col1
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT - - 45, + 27 + - COUNT( * ) AS col2
----
45
26

skipif mysql # not compatible
query II rowsort label-9829
SELECT - - 45, + 27 + - COUNT ( * ) AS col2
----
45
26

query II rowsort
SELECT ALL + 32 AS col0, 45 + 15
----
32
60

query I rowsort
SELECT + ( - ( - 70 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + 25 + + 25 * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT + 25 + + 25 * - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - + 57 * 98 * - 25
----
139650

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT DISTINCT + COUNT( * ) AS col1, + 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-9834
SELECT DISTINCT + COUNT ( * ) AS col1, + 13 AS col2
----
1
13

query II rowsort
SELECT ALL 31 * + 30 AS col0, 29 col1
----
930
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - 1 + - - SUM( 69 ) * + + NULLIF ( - MIN( ALL - 44 ), - 53 ) * - ( COUNT( * ) ) * + - 81 + COUNT( * ) + - COUNT( * ) * + 19 + 64 * + 33 AS col1
----
248009

skipif mysql # not compatible
query I rowsort label-9836
SELECT - 1 + - - SUM ( 69 ) * + + NULLIF ( - MIN ( ALL - 44 ), - 53 ) * - ( COUNT ( * ) ) * + - 81 + COUNT ( * ) + - COUNT ( * ) * + 19 + 64 * + 33 AS col1
----
248009

query II rowsort
SELECT ALL - COALESCE ( 10, - 43, + + 24 ) AS col1, - ( 76 ) AS col1
----
-10
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - SUM( ALL + - 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9838
SELECT - SUM ( ALL + - 49 ) AS col0
----
49

query II rowsort
SELECT + 13 AS col2, 5
----
13
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9840
SELECT + 28 DIV - 13 col0, - 31 AS col2
----
-2
-31

skipif mysql # not compatible
query II rowsort label-9840
SELECT + 28 / - 13 col0, - 31 AS col2
----
-2
-31

query I rowsort
SELECT - - 30 * - 9 AS col2
----
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT + 46 DIV + 38 + - CASE + 35 WHEN - - 86 THEN + + 62 ELSE - - 20 END + - 93 * - 87 * - COUNT( * ) + - - 76
----
-8034

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 46 / + 38 + - CASE + 35 WHEN - - 86 THEN + + 62 ELSE - - 20 END + - 93 * - 87 * - COUNT ( * ) + - - 76
----
-8034

query II rowsort
SELECT ALL + - 11 col0, 58
----
-11
58

query I rowsort
SELECT + ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT + COUNT( * ) * + ( + NULLIF ( + 70, + - ( + 93 ) ) ), - ( - ( 20 ) ) * + - 11 AS col1
----
70
-220

skipif mysql # not compatible
query II rowsort label-9845
SELECT + COUNT ( * ) * + ( + NULLIF ( + 70, + - ( + 93 ) ) ), - ( - ( 20 ) ) * + - 11 AS col1
----
70
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT - + COALESCE ( ( + COUNT( * ) ), - - 72 * - + MAX( ALL + 2 ) * - - 76 ) * - - COUNT( * ) + + 45 + - 29 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - + COALESCE ( ( + COUNT ( * ) ), - - 72 * - + MAX ( ALL + 2 ) * - - 76 ) * - - COUNT ( * ) + + 45 + - 29 AS col0
----
15

query I rowsort
SELECT ALL + 0 * - 79 col1
----
0

query I rowsort
SELECT DISTINCT + - 32 * 10 + + 60 + 31 + - 57 AS col2
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9849
SELECT + CASE + ( - COUNT( ALL - + 46 ) ) WHEN - + 68 / - + 28 + 48 + 32 THEN NULL ELSE - CAST( NULL AS SIGNED ) + + 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + CASE + ( - COUNT ( ALL - + 46 ) ) WHEN - + 68 / - + 28 + 48 + 32 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + + 43 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT - CASE 46 WHEN + - 48 + - COUNT( * ) THEN + - 7 END * + AVG ( DISTINCT 76 ), 15 AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9850
SELECT - CASE 46 WHEN + - 48 + - COUNT ( * ) THEN + - 7 END * + AVG ( DISTINCT 76 ), 15 AS col2
----
NULL
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT + COUNT( DISTINCT 12 ) * - + 49 AS col0, + COUNT( * ) AS col0
----
-49
1

skipif mysql # not compatible
query II rowsort label-9851
SELECT + COUNT ( DISTINCT 12 ) * - + 49 AS col0, + COUNT ( * ) AS col0
----
-49
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9852
SELECT ALL 90 * 51 / - 81 * CASE - CAST( NULL AS SIGNED ) WHEN - - ( - 29 ) THEN - - 46 + 25 * - CASE WHEN 82 IN ( 30 ) THEN - COUNT( * ) ELSE NULL END WHEN 97 THEN NULL END / COUNT( ALL 69 / + 60 ) - CAST( 32 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL 90 * 51 / - 81 * CASE - CAST ( NULL AS INTEGER ) WHEN - - ( - 29 ) THEN - - 46 + 25 * - CASE WHEN 82 IN ( 30 ) THEN - COUNT ( * ) ELSE NULL END WHEN 97 THEN NULL END / COUNT ( ALL 69 / + 60 ) - CAST ( 32 AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9853
SELECT ALL CAST( NULL AS SIGNED ) * - + 64 AS col0, + COUNT( * ) * + 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9853
SELECT ALL CAST ( NULL AS INTEGER ) * - + 64 AS col0, + COUNT ( * ) * + 0
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT + 18 - + COALESCE ( + + 27, + ( + + 12 ) ) AS col1, - 26 * MIN( - 72 ) * 59 + + 44 * - 82 AS col1
----
-9
106840

skipif mysql # not compatible
query II rowsort label-9854
SELECT + 18 - + COALESCE ( + + 27, + ( + + 12 ) ) AS col1, - 26 * MIN ( - 72 ) * 59 + + 44 * - 82 AS col1
----
-9
106840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9855
SELECT ALL COALESCE ( - 75, + 72 + + 10 * - 18 ) - - 73 DIV SUM( ALL + 1 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL COALESCE ( - 75, + 72 + + 10 * - 18 ) - - 73 / SUM ( ALL + 1 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + 82 + - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 82 + - COUNT ( * ) AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT - 88 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT - 88 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - ( - - COALESCE ( 81, + COUNT( * ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9858
SELECT - ( - - COALESCE ( 81, + COUNT ( * ) ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT + - CASE - 7 WHEN + CAST( 86 AS SIGNED ) THEN - COUNT( * ) + - - 1 END / - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT + - CASE - 7 WHEN + CAST ( 86 AS INTEGER ) THEN - COUNT ( * ) + - - 1 END / - + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT ALL CAST( + 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL CAST ( + 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT - COUNT( * ) + 25 * 43 - COUNT( * )
----
1073

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - COUNT ( * ) + 25 * 43 - COUNT ( * )
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - MAX( 24 ) + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9862
SELECT - MAX ( 24 ) + COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT ALL - + 15 * + 49 * 54 + + 64 AS col2
----
-39626

query II rowsort
SELECT ALL - + 99 + - 74 col2, 37 * + 33 + 18
----
-173
1239

query I rowsort
SELECT - - ( + 70 ) * 17 + + 98
----
1288

query I rowsort
SELECT + + 34 - 70 + + 53 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - + NULLIF ( - 33, + + MAX( + 40 ) + + 69 + + - ( + ( + 26 ) ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9867
SELECT - + NULLIF ( - 33, + + MAX ( + 40 ) + + 69 + + - ( + ( + 26 ) ) ) AS col0
----
33

query I rowsort
SELECT - - 1 + - 68
----
-67

query III rowsort
SELECT - + 85 * + 80 AS col2, 6, + 96 * ( 87 ) AS col1
----
-6800
6
8352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9870
SELECT DISTINCT - - 94 * 67 + + + COUNT( * ) * + 28 * - + 66 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - - 94 * 67 + + + COUNT ( * ) * + 28 * - + 66 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL 32 DIV - ( - + 20 ) + + 94 * - + 11 AS col0
----
-1033

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL 32 / - ( - + 20 ) + + 94 * - + 11 AS col0
----
-1033

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9872
SELECT - CAST( NULL AS DECIMAL ) * 16 - - - 50 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT - CAST ( NULL AS REAL ) * 16 - - - 50 + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9873
SELECT + ( 85 ) * + + 58 - 16 col1, CASE WHEN NULL IS NOT NULL THEN - 1 ELSE - + 55 END + + CAST( 3 AS SIGNED )
----
4914
-52

skipif mysql # not compatible
query II rowsort label-9873
SELECT + ( 85 ) * + + 58 - 16 col1, CASE WHEN NULL IS NOT NULL THEN - 1 ELSE - + 55 END + + CAST ( 3 AS INTEGER )
----
4914
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT - 49 + - + 49 * 1 * + 78 + - - CASE + 82 WHEN 94 THEN + CASE + + 63 WHEN + MIN( DISTINCT 10 ) THEN NULL WHEN - COUNT( * ) + 28 THEN 96 * + 30 + + 84 * + COALESCE ( + 39, + NULLIF ( + 36, - 3 * - 49 + - 41 * + 69 ), COALESCE ( - 95, 53, - CAST( NULL AS SIGNED ) + - 93 * 93 ), + 89 ) END * - 12 WHEN 6 THEN 33 * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - 49 + - + 49 * 1 * + 78 + - - CASE + 82 WHEN 94 THEN + CASE + + 63 WHEN + MIN ( DISTINCT 10 ) THEN NULL WHEN - COUNT ( * ) + 28 THEN 96 * + 30 + + 84 * + COALESCE ( + 39, + NULLIF ( + 36, - 3 * - 49 + - 41 * + 69 ), COALESCE ( - 95, 53, - CAST ( NULL AS INTEGER ) + - 93 * 93 ), + 89 ) END * - 12 WHEN 6 THEN 33 * - 28 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT ALL + 33 DIV - COUNT( * ) - - 77 * - 49 * 31
----
-116996

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + 33 / - COUNT ( * ) - - 77 * - 49 * 31
----
-116996

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT - NULLIF ( - 33, - 1 * - 40 + + COUNT( * ) * - - ( + 87 ) + COUNT( * ) ) * - - 72 AS col2
----
2376

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - NULLIF ( - 33, - 1 * - 40 + + COUNT ( * ) * - - ( + 87 ) + COUNT ( * ) ) * - - 72 AS col2
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + ( - CASE - 7 WHEN - 52 + MAX( DISTINCT 56 ) * SUM( DISTINCT + 88 ) THEN - COUNT( * ) / - - 21 WHEN - NULLIF ( + 5, - + 6 ) + - 5 THEN 79 / 34 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + ( - CASE - 7 WHEN - 52 + MAX ( DISTINCT 56 ) * SUM ( DISTINCT + 88 ) THEN - COUNT ( * ) / - - 21 WHEN - NULLIF ( + 5, - + 6 ) + - 5 THEN 79 / 34 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + COUNT( * ) * - 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9878
SELECT + COUNT ( * ) * - 71 AS col1
----
-71

query II rowsort
SELECT DISTINCT + 13 AS col0, + 34
----
13
34

query I rowsort
SELECT ALL + CASE + 86 WHEN 79 THEN - - 74 WHEN 28 THEN - - 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9881
SELECT + ( - 57 ) + + - 13 - - CAST( NULL AS DECIMAL ) + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT + ( - 57 ) + + - 13 - - CAST ( NULL AS REAL ) + - 52 AS col0
----
NULL

query I rowsort
SELECT + 12 * + 81
----
972

query I rowsort
SELECT 58 * + + 23
----
1334

query II rowsort
SELECT 60 AS col2, 70 AS col0
----
60
70

query I rowsort
SELECT ALL 17 + 53 AS col1
----
70

query I rowsort
SELECT DISTINCT + 18 + - 97 + 31 * + 52 + + 99
----
1632

query II rowsort
SELECT ALL 13 AS col2, 76 AS col0
----
13
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - 96 + 47 + - 36 + 80 + + CASE + 45 WHEN - 85 / 66 + + + ( CASE + 7 WHEN COUNT( DISTINCT 87 ) THEN 20 + - COALESCE ( - 88 - - 18, ( 59 ) ) WHEN 25 THEN NULL ELSE NULL END ) / + 24 THEN + 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - 96 + 47 + - 36 + 80 + + CASE + 45 WHEN - 85 / 66 + + + ( CASE + 7 WHEN COUNT ( DISTINCT 87 ) THEN 20 + - COALESCE ( - 88 - - 18, ( 59 ) ) WHEN 25 THEN NULL ELSE NULL END ) / + 24 THEN + 47 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT - CASE - - 26 WHEN + CAST( 36 AS SIGNED ) + + 26 / + - COUNT( * ) THEN CAST( - 14 AS SIGNED ) ELSE NULL END * 13 * + 13 * - + 2 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT - CASE - - 26 WHEN + CAST ( 36 AS INTEGER ) + + 26 / + - COUNT ( * ) THEN CAST ( - 14 AS INTEGER ) ELSE NULL END * 13 * + 13 * - + 2 * + 53 AS col2
----
NULL

query I rowsort
SELECT ALL + 85 + - 22 * + + 71 AS col0
----
-1477

query II rowsort
SELECT + 75 AS col2, + 81 - - 2 + + 50 AS col0
----
75
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL + SUM( DISTINCT - 19 ) + 83 + MAX( - 41 )
----
23

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + SUM ( DISTINCT - 19 ) + 83 + MAX ( - 41 )
----
23

query I rowsort
SELECT ALL + COALESCE ( - 61, 32, 54 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT - COUNT( * ) + - - CASE + 68 WHEN + 63 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 47 * + CASE + + 62 WHEN 44 * - - 37 THEN - 50 * 67 ELSE + CAST( + 4 AS SIGNED ) * + 27 END END / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT - COUNT ( * ) + - - CASE + 68 WHEN + 63 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 47 * + CASE + + 62 WHEN 44 * - - 37 THEN - 50 * 67 ELSE + CAST ( + 4 AS INTEGER ) * + 27 END END / + 52
----
NULL

query I rowsort
SELECT + ( - + 41 ) * + 60 AS col2
----
-2460

query I rowsort
SELECT - 49 + + 70 + - 3
----
18

query I rowsort
SELECT - 19 + - 92
----
-111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9898
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + 67 col0
----
NULL

query I rowsort
SELECT DISTINCT 37 + 72 + COALESCE ( + 97, - + 81 )
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT + COUNT( * ) - + 12 * 36 + 40 * - 36
----
-1871

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + COUNT ( * ) - + 12 * 36 + 40 * - 36
----
-1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT - 12 / + ( 10 ) * + 37 * - + 80 + 73 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT - 12 / + ( 10 ) * + 37 * - + 80 + 73 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - + COUNT( - - 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - + COUNT ( - - 32 ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( 62, 31, + 88, + 12 )
----
62

query I rowsort
SELECT ( 90 ) * 11 AS col2
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL - CAST( NULL AS SIGNED ) * 51 * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - CAST ( NULL AS INTEGER ) * 51 * - 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) + - ( CAST( NULL AS SIGNED ) ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) + - ( CAST ( NULL AS INTEGER ) ) + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL + ( 11 ) - - - CASE 52 WHEN + 37 * - 9 THEN + 92 * + COUNT( * ) ELSE 12 END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + ( 11 ) - - - CASE 52 WHEN + 37 * - 9 THEN + 92 * + COUNT ( * ) ELSE 12 END AS col2
----
-1

query I rowsort
SELECT ALL 31 * 82 * - - 15 AS col1
----
38130

query I rowsort
SELECT 68 * 11
----
748

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT 42 - + 85 DIV 76 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9910
SELECT 42 - + 85 / 76 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT 80 * - SUM( DISTINCT + 9 )
----
-720

skipif mysql # not compatible
query I rowsort label-9911
SELECT 80 * - SUM ( DISTINCT + 9 )
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT ALL + 65 + ( - 93 ) * 89 + + CAST( + 96 AS SIGNED ) AS col2
----
-8116

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + 65 + ( - 93 ) * 89 + + CAST ( + 96 AS INTEGER ) AS col2
----
-8116

query II rowsort
SELECT ALL + 56 * 34, 36 AS col2
----
1904
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT 58 DIV - 23
----
-2

skipif mysql # not compatible
query I rowsort label-9914
SELECT 58 / - 23
----
-2

query I rowsort
SELECT ALL 47 * - 38 AS col2
----
-1786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT 70 DIV COALESCE ( - 44, ( 50 ) + + - 54 * + - MAX( DISTINCT + + COALESCE ( + 2, 6 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT 70 / COALESCE ( - 44, ( 50 ) + + - 54 * + - MAX ( DISTINCT + + COALESCE ( + 2, 6 ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 66 + + + 38 + + + 98
----
202

query I rowsort
SELECT DISTINCT - 11 + + 61
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL COUNT( * ) + NULLIF ( 33, - COUNT( * ) ) + + 57 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL COUNT ( * ) + NULLIF ( 33, - COUNT ( * ) ) + + 57 AS col1
----
91

query I rowsort
SELECT ALL 99 + 5 + 30 + + 35 + - 61
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT COUNT( * ) - ( - MIN( 86 ) ) * 54 AS col1
----
4645

skipif mysql # not compatible
query I rowsort label-9921
SELECT COUNT ( * ) - ( - MIN ( 86 ) ) * 54 AS col1
----
4645

query I rowsort
SELECT ALL - + 44 * 5 AS col2
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT + 58 DIV + 81 * + - COUNT( * ) + + 63
----
63

skipif mysql # not compatible
query I rowsort label-9923
SELECT + 58 / + 81 * + - COUNT ( * ) + + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + - COUNT( * ) + + 2 - 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + - COUNT ( * ) + + 2 - 41 AS col1
----
-40

query I rowsort
SELECT 30 * 42 * + COALESCE ( + 65, - + 12 * + 1, ( - 45 ) ) * 56
----
4586400

query I rowsort
SELECT - 25 + - + 77 * - - 39
----
-3028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9927
SELECT COUNT( * ) + - 64 + CAST( NULL AS DECIMAL ) + 93 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT COUNT ( * ) + - 64 + CAST ( NULL AS REAL ) + 93 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - COUNT( * ) - + 67 * - 38 + - 14 * + 34 * + 52
----
-22207

skipif mysql # not compatible
query I rowsort label-9928
SELECT - COUNT ( * ) - + 67 * - 38 + - 14 * + 34 * + 52
----
-22207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT - NULLIF ( + 83, + 9 + COALESCE ( + 66, + COUNT( * ) * 91, CAST( + + 53 AS SIGNED ) * - - 28 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9929
SELECT - NULLIF ( + 83, + 9 + COALESCE ( + 66, + COUNT ( * ) * 91, CAST ( + + 53 AS INTEGER ) * - - 28 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT ALL + 4 - - 96 * - NULLIF ( - 87, - + CAST( NULL AS SIGNED ) + + + 76 ) AS col1
----
8356

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + 4 - - 96 * - NULLIF ( - 87, - + CAST ( NULL AS INTEGER ) + + + 76 ) AS col1
----
8356

query II rowsort
SELECT DISTINCT 5 - + + 69, - 40 + + 14 col0
----
-64
-26

query II rowsort
SELECT + 74 + - 57 + 84 * + + 33, - 86 AS col1
----
2789
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL - 13 * + - ( + + COUNT( * ) ) * + 8 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - 13 * + - ( + + COUNT ( * ) ) * + 8 AS col2
----
104

query I rowsort
SELECT DISTINCT + - 43 - + 98
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT + COUNT( * ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + COUNT ( * ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 38 * 91 + + 92 AS col1
----
3550

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9937
SELECT DISTINCT COUNT( DISTINCT 26 ) AS col0, - CAST( + 60 AS DECIMAL ) * + ( + - 41 ) + - - CASE + - 38 WHEN + 99 - 28 - + 9 + + - 57 + + 3 + COUNT( * ) * - 4 * 55 THEN - COUNT( * ) END + + 17 * COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9937
SELECT DISTINCT COUNT ( DISTINCT 26 ) AS col0, - CAST ( + 60 AS REAL ) * + ( + - 41 ) + - - CASE + - 38 WHEN + 99 - 28 - + 9 + + - 57 + + 3 + COUNT ( * ) * - 4 * 55 THEN - COUNT ( * ) END + + 17 * COUNT ( * ) AS col1
----
1
NULL

query I rowsort
SELECT ( 55 ) * + 88 - 55 AS col1
----
4785

query I rowsort
SELECT - 84 * 3 * - 62 - + 83
----
15541

onlyif mysql # DIV for integer division: 
query II rowsort label-9940
SELECT ALL - 17, - 12 DIV + 24 AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL - 17, - 12 / + 24 AS col0
----
-17
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9941
SELECT ALL CAST( 24 AS SIGNED ) DIV - - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL CAST ( 24 AS INTEGER ) / - - 89 AS col0
----
0

query I rowsort
SELECT 61 * + 98
----
5978

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ( + MAX( + + ( + 43 ) ) ) + 0 - + 3 * + 4
----
31

skipif mysql # not compatible
query I rowsort label-9943
SELECT ( + MAX ( + + ( + 43 ) ) ) + 0 - + 3 * + 4
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT COUNT( * ) * + - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9944
SELECT COUNT ( * ) * + - 72 AS col0
----
-72

query I rowsort
SELECT 71 * - - 39 AS col0
----
2769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT ALL CAST( NULL AS SIGNED ) * - 57 + + 30 + - + 62 + + 56 - + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 + + 30 + - + 62 + + 56 - + - 92
----
NULL

query I rowsort
SELECT ALL + ( - ( + - 0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL 27 * - - 36 + - 1 * CASE - 16 WHEN + - 95 + + - 75 * + COALESCE ( - AVG ( - 31 ), + + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ) ) ) + 97 THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL 27 * - - 36 + - 1 * CASE - 16 WHEN + - 95 + + - 75 * + COALESCE ( - AVG ( - 31 ), + + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) ) + 97 THEN - 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + COUNT( * ) + + 1 - + 60
----
-58

skipif mysql # not compatible
query I rowsort label-9949
SELECT + COUNT ( * ) + + 1 - + 60
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL 58 * COUNT( * ) + + - 6 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 58 * COUNT ( * ) + + - 6 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT DISTINCT ( + 23 ) * + - SUM( 98 ) * - 79 + - CAST( NULL AS SIGNED ) + + + 69 * + ( - + CAST( NULL AS SIGNED ) ) + CASE - 33 WHEN + ( - 47 ) THEN ( + - COUNT( * ) ) WHEN + 93 * - 90 THEN + 50 * 32 END + CAST( 85 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT ( + 23 ) * + - SUM ( 98 ) * - 79 + - CAST ( NULL AS INTEGER ) + + + 69 * + ( - + CAST ( NULL AS INTEGER ) ) + CASE - 33 WHEN + ( - 47 ) THEN ( + - COUNT ( * ) ) WHEN + 93 * - 90 THEN + 50 * 32 END + CAST ( 85 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT ALL - 3 * - 68 + - ( 32 ) DIV + + 79 * + 80 - - + NULLIF ( - - 50, + + 38 ) - 17 AS col0
----
237

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - 3 * - 68 + - ( 32 ) / + + 79 * + 80 - - + NULLIF ( - - 50, + + 38 ) - 17 AS col0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + 89 * CASE + 2 WHEN - - 74 * - + CASE - - COUNT( * ) WHEN + - 93 * + + 73 THEN NULL ELSE + - 1 END THEN 90 END + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 89 * CASE + 2 WHEN - - 74 * - + CASE - - COUNT ( * ) WHEN + - 93 * + + 73 THEN NULL ELSE + - 1 END THEN 90 END + ( + 11 )
----
NULL

query I rowsort
SELECT DISTINCT 39 * + 92 * + CASE - 46 WHEN 79 * - 60 * + 18 THEN NULL WHEN + 36 THEN COALESCE ( + 53, + 22, + 54 + + 79 * + 57 ) ELSE NULL END + - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + - MIN( + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-9955
SELECT + - MIN ( + 75 )
----
-75

query I rowsort
SELECT ALL + 69 + + 58 + - - 5 AS col2
----
132

query I rowsort
SELECT - 95 * - 18 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT - 65 * - NULLIF ( - MIN( ALL 28 ), 14 ) AS col1, - 75 + 17 + 56 col2
----
-1820
-2

skipif mysql # not compatible
query II rowsort label-9958
SELECT - 65 * - NULLIF ( - MIN ( ALL 28 ), 14 ) AS col1, - 75 + 17 + 56 col2
----
-1820
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - + 47 + - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9959
SELECT - + 47 + - + COUNT ( * )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT DISTINCT + + 79 + - 82 DIV - 62 + - 61
----
19

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + + 79 + - 82 / - 62 + - 61
----
19

query I rowsort
SELECT DISTINCT + 19 * - + 20
----
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT - AVG ( + ( CAST( NULL AS SIGNED ) ) ) + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT - AVG ( + ( CAST ( NULL AS INTEGER ) ) ) + + 10 AS col1
----
NULL

query I rowsort
SELECT ALL + - 37 * 18 * + - 10 AS col0
----
6660

query I rowsort
SELECT DISTINCT - - 75 * - - 53 AS col0
----
3975

query I rowsort
SELECT - + 45 + 12 - - + ( 36 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9966
SELECT + - 65 - 7 + - SUM( CAST( - 71 AS SIGNED ) ) * - - 14 AS col2, SUM( ALL - + 97 ) * 1
----
922
-97

skipif mysql # not compatible
query II rowsort label-9966
SELECT + - 65 - 7 + - SUM ( CAST ( - 71 AS INTEGER ) ) * - - 14 AS col2, SUM ( ALL - + 97 ) * 1
----
922
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT - + 96 * - CAST( NULLIF ( - + 2, - + 9 ) AS SIGNED ) + + + CASE - 93 WHEN 75 * CASE + CASE + ( 32 ) WHEN - 87 THEN NULL WHEN + - 77 THEN NULL WHEN + CASE 63 WHEN - SUM( ALL + 55 ) / 61 THEN NULL ELSE + 36 * - 90 END * 72 THEN NULL ELSE + ( - COUNT( * ) ) END WHEN + 35 * 58 THEN - ( - 98 ) + - 77 END + MAX( ALL + 2 ) * 49 THEN - AVG ( + 84 ) * 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - + 96 * - CAST ( NULLIF ( - + 2, - + 9 ) AS INTEGER ) + + + CASE - 93 WHEN 75 * CASE + CASE + ( 32 ) WHEN - 87 THEN NULL WHEN + - 77 THEN NULL WHEN + CASE 63 WHEN - SUM ( ALL + 55 ) / 61 THEN NULL ELSE + 36 * - 90 END * 72 THEN NULL ELSE + ( - COUNT ( * ) ) END WHEN + 35 * 58 THEN - ( - 98 ) + - 77 END + MAX ( ALL + 2 ) * 49 THEN - AVG ( + 84 ) * 51 END AS col0
----
NULL

query I rowsort
SELECT + + 90 + 94 + 97 AS col2
----
281

query II rowsort
SELECT 74, + 63 col2
----
74
63

query II rowsort
SELECT DISTINCT ( - + 36 ), - 35 AS col2
----
-36
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT ( + MAX( - + 68 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT ( + MAX ( - + 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + COUNT( * ) + 41 + 59 * COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-9972
SELECT + COUNT ( * ) + 41 + 59 * COUNT ( * ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT - COALESCE ( + 57, - 74 * - + CASE + - ( - + 79 ) WHEN COUNT( * ) THEN - 12 - - 7 + - + 72 ELSE - + MAX( ALL CAST( NULL AS SIGNED ) ) END + - + 28 )
----
-57

skipif mysql # not compatible
query I rowsort label-9973
SELECT - COALESCE ( + 57, - 74 * - + CASE + - ( - + 79 ) WHEN COUNT ( * ) THEN - 12 - - 7 + - + 72 ELSE - + MAX ( ALL CAST ( NULL AS INTEGER ) ) END + - + 28 )
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9974
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT CAST ( NULL AS REAL ) + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL COUNT( * ) + + CASE + - ( - COALESCE ( - 88, - 80 ) ) WHEN + - 39 THEN NULL WHEN 39 THEN NULL WHEN 21 / - ( 11 ) THEN + + 48 ELSE - SUM( ALL 62 ) + + 70 + 86 END + + 84 * 15 AS col1
----
1355

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL COUNT ( * ) + + CASE + - ( - COALESCE ( - 88, - 80 ) ) WHEN + - 39 THEN NULL WHEN 39 THEN NULL WHEN 21 / - ( 11 ) THEN + + 48 ELSE - SUM ( ALL 62 ) + + 70 + 86 END + + 84 * 15 AS col1
----
1355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9976
SELECT - MAX( 63 ) DIV - ( 83 ) + CAST( + 20 AS SIGNED ) DIV + + 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT - MAX ( 63 ) / - ( 83 ) + CAST ( + 20 AS INTEGER ) / + + 85 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT + ( 90 ) * - CAST( NULL AS SIGNED ) * - - MIN( - + 49 ) * + 60 - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT + ( 90 ) * - CAST ( NULL AS INTEGER ) * - - MIN ( - + 49 ) * + 60 - 2 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9978
SELECT ALL NULLIF ( 69, + 75 + + + 33 - - COUNT( * ) + + 93 ) DIV - 37 + 64
----
63

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL NULLIF ( 69, + 75 + + + 33 - - COUNT ( * ) + + 93 ) / - 37 + 64
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + COALESCE ( + ( - + 86 ), - COUNT( * ), - 80 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9979
SELECT + COALESCE ( + ( - + 86 ), - COUNT ( * ), - 80 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + MAX( DISTINCT - + 70 ) + 25 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9980
SELECT + MAX ( DISTINCT - + 70 ) + 25 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT + ( - 59 ) DIV 39 * COUNT( ALL 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-9981
SELECT + ( - 59 ) / 39 * COUNT ( ALL 3 )
----
-1

query I rowsort
SELECT + 79 * + 24 + - 65
----
1831

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT DISTINCT 48 DIV + 75 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT 48 / + 75 + - 47
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL 98 * CAST( - + 31 AS SIGNED ) + + NULLIF ( 59, - 31 - + 65 + + 27 ) + + SUM( - 76 )
----
-3055

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL 98 * CAST ( - + 31 AS INTEGER ) + + NULLIF ( 59, - 31 - + 65 + + 27 ) + + SUM ( - 76 )
----
-3055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT + ( + CASE 39 WHEN - + 13 THEN + CASE 21 WHEN + COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + ( + CASE 39 WHEN - + 13 THEN + CASE 21 WHEN + COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END END )
----
NULL

query II rowsort
SELECT ALL + 16 AS col1, 69 + - + 13
----
16
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + 6 * - + CASE + 81 WHEN - 20 + + 12 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT + 6 * - + CASE + 81 WHEN - 20 + + 12 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 93 * - 30
----
2790

query I rowsort
SELECT DISTINCT 66 * 90 + - 35 AS col0
----
5905

query I rowsort
SELECT + 70 - + 20 * 22 + - 65 AS col0
----
-435

query II rowsort
SELECT + - 80, 60 AS col0
----
-80
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9992
SELECT ALL + + 19 AS col0, - CAST( + - COALESCE ( 19, 18 * 6 / + ( - COUNT( * ) ) ) AS SIGNED ) + 37 + + 59 * 35 AS col1
----
19
2121

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL + + 19 AS col0, - CAST ( + - COALESCE ( 19, 18 * 6 / + ( - COUNT ( * ) ) ) AS INTEGER ) + 37 + + 59 * 35 AS col1
----
19
2121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT + - CAST( NULL AS SIGNED ) - + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT + - CAST ( NULL AS INTEGER ) - + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT + - MAX( DISTINCT 0 ) * + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + - MAX ( DISTINCT 0 ) * + 30 AS col2
----
0

query I rowsort
SELECT ALL - + 34 * - + 60 - - 77
----
2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9996
SELECT DISTINCT + + 3 AS col1, 26 DIV - + COUNT( * ) - + 17 + - 33 * - COALESCE ( + 0, + + 37 ) + + 85 * - + 12
----
3
-1063

skipif mysql # not compatible
query II rowsort label-9996
SELECT DISTINCT + + 3 AS col1, 26 / - + COUNT ( * ) - + 17 + - 33 * - COALESCE ( + 0, + + 37 ) + + 85 * - + 12
----
3
-1063

query II rowsort
SELECT - 43 - 87 AS col0, - 6
----
-130
-6

query II rowsort
SELECT 52 AS col1, + 35 AS col0
----
52
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT MAX( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT MAX ( + 84 )
----
84

