hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 21 * + 38
----
798

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT + + 28 * 33 - NULLIF ( - COUNT( * ), + - ( - - COUNT( - + 6 ) ) ) + - + ( - 9 ), + 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1
SELECT + + 28 * 33 - NULLIF ( - COUNT ( * ), + - ( - - COUNT ( - + 6 ) ) ) + - + ( - 9 ), + 66 AS col2
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT DISTINCT - + MAX( DISTINCT - + 41 ) + + - COUNT( * ) + - + ( 75 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - + MAX ( DISTINCT - + 41 ) + + - COUNT ( * ) + - + ( 75 ) AS col1
----
-35

query I rowsort
SELECT - 12 * - ( + - 9 ) AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL - 30 + + ( 5 ) * - MIN( + - 42 ) + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - 30 + + ( 5 ) * - MIN ( + - 42 ) + COUNT ( * )
----
181

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

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

query I rowsort
SELECT - ( + NULLIF ( + + 1, COALESCE ( - 16, - - 65, - 49 ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT - 70 + - + COUNT( * ) DIV - - 88 * 27
----
-70

skipif mysql # not compatible
query I rowsort label-7
SELECT - 70 + - + COUNT ( * ) / - - 88 * 27
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8
SELECT - - MIN( + 29 ) * + 51 + + - ( - - 73 ) + 55 + + 8 + + 81 DIV + 12 col2
----
1475

skipif mysql # not compatible
query I rowsort label-8
SELECT - - MIN ( + 29 ) * + 51 + + - ( - - 73 ) + 55 + + 8 + + 81 / + 12 col2
----
1475

query II rowsort
SELECT + + 11 - - 40, - 25 AS col1
----
51
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL 32 + + 9 + - + 12 + + 95 + - + COUNT( * ) * + ( 39 ) - + + 60 * + 1 + - - MAX( 88 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL 32 + + 9 + - + 12 + + 95 + - + COUNT ( * ) * + ( 39 ) - + + 60 * + 1 + - - MAX ( 88 ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - COUNT( * ) + - - 28 * + - 39 AS col2
----
-1093

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - COUNT ( * ) + - - 28 * + - 39 AS col2
----
-1093

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT + NULLIF ( 81, + + AVG ( DISTINCT - 69 ) + NULLIF ( + ( + 68 ), + CASE 34 WHEN + + 67 THEN + - 24 END ) + + 79 ) * CASE - 75 WHEN - COALESCE ( AVG ( ALL - COALESCE ( 34, - + 50 + - - 18 ) ), 54 * + - 85, - SUM( COALESCE ( 8, + 24 - 40 + + 59 ) ) ) * + 27 THEN NULL WHEN + 76 * 95 - + 71 THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT + NULLIF ( 81, + + AVG ( DISTINCT - 69 ) + NULLIF ( + ( + 68 ), + CASE 34 WHEN + + 67 THEN + - 24 END ) + + 79 ) * CASE - 75 WHEN - COALESCE ( AVG ( ALL - COALESCE ( 34, - + 50 + - - 18 ) ), 54 * + - 85, - SUM ( COALESCE ( 8, + 24 - 40 + + 59 ) ) ) * + 27 THEN NULL WHEN + 76 * 95 - + 71 THEN - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT - MIN( - - 74 ) * - 49 AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - MIN ( - - 74 ) * - 49 AS col0
----
3626

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT 66 - COUNT( DISTINCT - 17 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT 66 - COUNT ( DISTINCT - 17 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT + 95 * + 94 * + MAX( ALL - 93 )
----
-830490

skipif mysql # not compatible
query I rowsort label-17
SELECT + 95 * + 94 * + MAX ( ALL - 93 )
----
-830490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT + CASE + 28 WHEN + 39 THEN CASE + - 68 WHEN SUM( DISTINCT - 71 ) THEN 87 END * COUNT( * ) ELSE NULL END / - 59 + CASE MAX( + CAST( NULL AS SIGNED ) ) WHEN + 92 THEN - COALESCE ( - 37, - + 6 ) + + 96 + + 38 END + + CAST( NULL AS SIGNED ) + + - 19 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT + CASE + 28 WHEN + 39 THEN CASE + - 68 WHEN SUM ( DISTINCT - 71 ) THEN 87 END * COUNT ( * ) ELSE NULL END / - 59 + CASE MAX ( + CAST ( NULL AS INTEGER ) ) WHEN + 92 THEN - COALESCE ( - 37, - + 6 ) + + 96 + + 38 END + + CAST ( NULL AS INTEGER ) + + - 19 + + 19
----
NULL

query I rowsort
SELECT + 59 - - 0 col1
----
59

query I rowsort
SELECT + 18 * 37
----
666

query I rowsort
SELECT + 35 + 40 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT - CASE + ( + - ( + 21 ) ) WHEN ( COUNT( * ) ) + + 59 THEN NULL WHEN - 42 THEN 33 * 45 * 6 - 90 + + 52 * - - ( 69 ) + + 92 + - 69 WHEN 56 THEN NULL ELSE + 54 END * - 36 + 70 * + ( + 43 ) AS col0
----
4954

skipif mysql # not compatible
query I rowsort label-22
SELECT - CASE + ( + - ( + 21 ) ) WHEN ( COUNT ( * ) ) + + 59 THEN NULL WHEN - 42 THEN 33 * 45 * 6 - 90 + + 52 * - - ( 69 ) + + 92 + - 69 WHEN 56 THEN NULL ELSE + 54 END * - 36 + 70 * + ( + 43 ) AS col0
----
4954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT - MAX( ALL - - 12 ) - + 1 DIV + 76
----
-12

skipif mysql # not compatible
query I rowsort label-23
SELECT - MAX ( ALL - - 12 ) - + 1 / + 76
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT 3 * + + MIN( - 75 ) + 55 AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-24
SELECT 3 * + + MIN ( - 75 ) + 55 AS col1
----
-170

query I rowsort
SELECT - 58 - + 33 * - 12 * - + 1 * - + 90
----
35582

query I rowsort
SELECT + ( + + 35 ) col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-27
SELECT + 98 * + COUNT( * ) + 70 + - 82 / - - CAST( NULL AS SIGNED ) + 6 + - - 69 * + - 81 + - 24 / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + 98 * + COUNT ( * ) + 70 + - 82 / - - CAST ( NULL AS INTEGER ) + 6 + - - 69 * + - 81 + - 24 / - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + COUNT( DISTINCT NULLIF ( - 38, - 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + COUNT ( DISTINCT NULLIF ( - 38, - 33 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL - 88 * + + ( - 44 ) * + 3 + - 47 + 19 * - 79 * + MAX( 2 ) + COUNT( DISTINCT 95 ) * + ( + 46 )
----
8613

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - 88 * + + ( - 44 ) * + 3 + - 47 + 19 * - 79 * + MAX ( 2 ) + COUNT ( DISTINCT 95 ) * + ( + 46 )
----
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL - COUNT( * ) * - - 25 * - 94 + - - 94 AS col0
----
2444

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL - COUNT ( * ) * - - 25 * - 94 + - - 94 AS col0
----
2444

query I rowsort
SELECT ALL + 9 * + 41 + - + 30
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT 56 * + 49 + + - SUM( DISTINCT - 32 ) AS col1
----
2776

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT 56 * + 49 + + - SUM ( DISTINCT - 32 ) AS col1
----
2776

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT ALL + 2 * 71 DIV - + 83 + 98 + 13
----
110

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL + 2 * 71 / - + 83 + 98 + 13
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT ALL - + 26 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - + 26 / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + 63 + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-35
SELECT + 63 + - COUNT ( * ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT - 33 DIV - 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-36
SELECT - 33 / - 16 AS col2
----
2

query I rowsort
SELECT DISTINCT - 93 + + 95
----
2

query I rowsort
SELECT ALL + + 13 + - ( + 97 ) * - - 28
----
-2703

query I rowsort
SELECT ALL - + 51 + - - 49
----
-2

query I rowsort
SELECT ALL 60 * 48 AS col1
----
2880

query II rowsort
SELECT DISTINCT + NULLIF ( 6, + 17 + 57 + - 94 ) AS col2, + 93
----
6
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-42
SELECT - + 63 + + CASE + CAST( - 31 AS DECIMAL ) WHEN - 92 / COALESCE ( + - COUNT( * ), + + COALESCE ( - - 51, ( - + 59 ) ) + 19, + CAST( NULL AS SIGNED ) ) * - - 54 THEN + COUNT( * ) * + 30 * 92 * - + 95 + - - 4 END + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT - + 63 + + CASE + CAST ( - 31 AS REAL ) WHEN - 92 / COALESCE ( + - COUNT ( * ), + + COALESCE ( - - 51, ( - + 59 ) ) + 19, + CAST ( NULL AS INTEGER ) ) * - - 54 THEN + COUNT ( * ) * + 30 * 92 * - + 95 + - - 4 END + 90 AS col1
----
NULL

query I rowsort
SELECT - - 89 + + - 64
----
25

query I rowsort
SELECT ALL + 78 - + + 2 + + 94
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL ( - - NULLIF ( - 31, + NULLIF ( + CASE - ( 0 ) WHEN SUM( + + 57 ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 85 * 94 * + 38 - 33 + + 57 * 77 * + 59 THEN 48 END, + 46 + - 36 ) ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL ( - - NULLIF ( - 31, + NULLIF ( + CASE - ( 0 ) WHEN SUM ( + + 57 ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 85 * 94 * + 38 - 33 + + 57 * 77 * + 59 THEN 48 END, + 46 + - 36 ) ) ) AS col2
----
-31

query I rowsort
SELECT - 95 + - 97 AS col0
----
-192

query I rowsort
SELECT + 72 + + ( 17 ) AS col2
----
89

query I rowsort
SELECT - 42 * - - 54
----
-2268

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-50
SELECT ALL CAST( 94 AS SIGNED ) DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL CAST ( 94 AS INTEGER ) / 89
----
1

query I rowsort
SELECT - 59 + - 3
----
-62

query II rowsort
SELECT DISTINCT ( - COALESCE ( + - 41, - 24 ) ), 77 AS col1
----
41
77

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

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

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

query I rowsort
SELECT ALL - 97 * + - 63 * 53
----
323883

query I rowsort
SELECT ALL + CASE - 15 WHEN - 63 * 12 + 28 + - 89 * - - 90 THEN - 24 WHEN + 6 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT - 58 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT - 58 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT + 64 DIV 86 * 49
----
0

skipif mysql # not compatible
query I rowsort label-58
SELECT + 64 / 86 * 49
----
0

query II rowsort
SELECT ALL 70 * + + 16, 32 AS col2
----
1120
32

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT CASE - MAX( 73 ) WHEN + 1 THEN 73 WHEN + 78 - + 71 THEN - 16 - - 58 + + 75 * + ( + - 43 ) END * 12 / 80 + - + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT CASE - MAX ( 73 ) WHEN + 1 THEN 73 WHEN + 78 - + 71 THEN - 16 - - 58 + + 75 * + ( + - 43 ) END * 12 / 80 + - + 58 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT 63 / CASE + - 2 WHEN + 98 THEN NULL WHEN 82 * - 88 + 36 - NULLIF ( + AVG ( ALL + - 86 ), MAX( DISTINCT - 3 ) ) THEN NULL WHEN 63 THEN + 52 + 72 ELSE NULL END + + 83 * - + 51 * - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT 63 / CASE + - 2 WHEN + 98 THEN NULL WHEN 82 * - 88 + 36 - NULLIF ( + AVG ( ALL + - 86 ), MAX ( DISTINCT - 3 ) ) THEN NULL WHEN 63 THEN + 52 + 72 ELSE NULL END + + 83 * - + 51 * - - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT + 28 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-63
SELECT + 28 / + 65
----
0

query I rowsort
SELECT + 34 + + 20 AS col0
----
54

query I rowsort
SELECT ALL 40 + - - 89 + 47 col0
----
176

query II rowsort
SELECT + 23, - 0 + + 51 AS col0
----
23
51

query I rowsort
SELECT DISTINCT 57 + 95 + 59
----
211

query II rowsort
SELECT DISTINCT 69 + - 23, + 64 col0
----
46
64

query II rowsort
SELECT ALL + 16 + - + 94 AS col2, 80
----
-78
80

query II rowsort
SELECT ALL + - 91 + - 5 * - 70 * 16 col2, + 57 * - + 95 AS col2
----
5509
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL - 56 + + - COUNT( - 95 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL - 56 + + - COUNT ( - 95 ) AS col1
----
-57

query I rowsort
SELECT + 38 - + + 45 AS col0
----
-7

query II rowsort
SELECT + - 98, ( + 17 ) col0
----
-98
17

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT 0 + - COUNT( * ) - + + 85 - + - 14 + 63 * - 85 * + 89 * - COUNT( * ) AS col2
----
476523

skipif mysql # not compatible
query I rowsort label-74
SELECT 0 + - COUNT ( * ) - + + 85 - + - 14 + 63 * - 85 * + 89 * - COUNT ( * ) AS col2
----
476523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT - COUNT( * ) * - - COALESCE ( + COUNT( * ), - 94 * COUNT( * ) * + + 95 DIV - 54 + - 59 - + 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-75
SELECT - COUNT ( * ) * - - COALESCE ( + COUNT ( * ), - 94 * COUNT ( * ) * + + 95 / - 54 + - 59 - + 87 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-76
SELECT + 8, 22 DIV + 64 AS col1
----
8
0

skipif mysql # not compatible
query II rowsort label-76
SELECT + 8, 22 / + 64 AS col1
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT 53 * - 36 + - COUNT( * ) * - - 83
----
-1991

skipif mysql # not compatible
query I rowsort label-77
SELECT 53 * - 36 + - COUNT ( * ) * - - 83
----
-1991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-78
SELECT - 58 col0, CAST( NULL AS SIGNED ) / - 52 AS col0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-78
SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0
----
-58
NULL

query III rowsort
SELECT ALL 31, 26 AS col0, - 11 col2
----
31
26
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT + 54 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT + 54 / + 77 AS col2
----
0

query I rowsort
SELECT 46 * 31
----
1426

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT - + 33 AS col2, - MAX( DISTINCT + ( + 61 ) ) + - 3 + 44 * + - 38 * + NULLIF ( - + 56, 61 )
----
-33
93568

skipif mysql # not compatible
query II rowsort label-82
SELECT - + 33 AS col2, - MAX ( DISTINCT + ( + 61 ) ) + - 3 + 44 * + - 38 * + NULLIF ( - + 56, 61 )
----
-33
93568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-83
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) + - - MIN( + + 93 ) * + 46 - COUNT( * ) AS col1, COALESCE ( - 33, + - NULLIF ( + - 89, - - 82 * + 95 ) * - - CASE - 83 WHEN COUNT( * ) THEN NULL WHEN - + 27 * + 8 + - 69 + - 51 THEN NULL WHEN CASE + 25 WHEN + 86 THEN - - 26 * + - COALESCE ( + 33, 41 ) WHEN + - 13 THEN NULL END THEN NULL ELSE - + 97 END DIV - 86 * - 29 )
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-83
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) + - - MIN ( + + 93 ) * + 46 - COUNT ( * ) AS col1, COALESCE ( - 33, + - NULLIF ( + - 89, - - 82 * + 95 ) * - - CASE - 83 WHEN COUNT ( * ) THEN NULL WHEN - + 27 * + 8 + - 69 + - 51 THEN NULL WHEN CASE + 25 WHEN + 86 THEN - - 26 * + - COALESCE ( + 33, 41 ) WHEN + - 13 THEN NULL END THEN NULL ELSE - + 97 END / - 86 * - 29 )
----
NULL
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT - 83 DIV - 25
----
3

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - 83 / - 25
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-85
SELECT 37 - 48 AS col1, CAST( NULL AS SIGNED ) + + COUNT( * ) + 65 * + - CAST( + 57 AS SIGNED ) * 74 * 47 * - - COUNT( * ) * + 9 AS col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-85
SELECT 37 - 48 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 65 * + - CAST ( + 57 AS INTEGER ) * 74 * 47 * - - COUNT ( * ) * + 9 AS col2
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL - 74 * COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - 74 * COUNT ( * )
----
-74

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

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

query I rowsort
SELECT ALL + 11 * 19
----
209

query II rowsort
SELECT 18 * 67 AS col1, 75 AS col1
----
1206
75

query I rowsort
SELECT ALL + 2 * - + 58 AS col2
----
-116

query I rowsort
SELECT ALL + ( - 0 ) + - - CASE + 85 WHEN + 68 / 37 + + 24 * + - 79 * + + 70 THEN + 16 WHEN + - ( + 3 ) THEN NULL ELSE 63 * - 87 * - 80 END * - + 38 AS col1
----
-16662240

query I rowsort
SELECT 24 + 36
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT 39 DIV 39 + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-93
SELECT 39 / 39 + - 22
----
-21

query I rowsort
SELECT 69 * - - 7 AS col1
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL - 66 + - - 41 * + + MAX( + ( + + 17 ) ) AS col0
----
631

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - 66 + - - 41 * + + MAX ( + ( + + 17 ) ) AS col0
----
631

query I rowsort
SELECT 49 + + - NULLIF ( + 54, 53 )
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-97
SELECT ALL 93 + - 53 * + 44 + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL 93 + - 53 * + 44 + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + MIN( + 29 ) * - 92 * + COALESCE ( + 93, + 86, - COUNT( - 65 ), + - 92 + + - 49 ) + 39 - + + 98 * 34 AS col1
----
-251417

skipif mysql # not compatible
query I rowsort label-98
SELECT + MIN ( + 29 ) * - 92 * + COALESCE ( + 93, + 86, - COUNT ( - 65 ), + - 92 + + - 49 ) + 39 - + + 98 * 34 AS col1
----
-251417

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + 4 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + 4 + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT DISTINCT - - 84 * - - 45 AS col0, COUNT( ALL - 45 ) AS col2
----
3780
1

skipif mysql # not compatible
query II rowsort label-100
SELECT DISTINCT - - 84 * - - 45 AS col0, COUNT ( ALL - 45 ) AS col2
----
3780
1

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT + 70 + + - COUNT( DISTINCT - + 33 ) + + 64 * - + 53 * + 3
----
-10107

skipif mysql # not compatible
query I rowsort label-101
SELECT + 70 + + - COUNT ( DISTINCT - + 33 ) + + 64 * - + 53 * + 3
----
-10107

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - + 34 * - COUNT( * ) * - 89
----
-3026

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - + 34 * - COUNT ( * ) * - 89
----
-3026

query I rowsort
SELECT + 63 * 79 - + CASE 65 WHEN + + 70 THEN + 97 + - - 64 * - 94 + + 40 ELSE NULL END + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT COUNT( DISTINCT 60 ) - + 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-104
SELECT COUNT ( DISTINCT 60 ) - + 88 AS col0
----
-87

query I rowsort
SELECT 99 * + 43 + + 50 + - ( - - 22 )
----
4285

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + 45 * + - COUNT( ALL - 94 )
----
-45

skipif mysql # not compatible
query I rowsort label-106
SELECT + 45 * + - COUNT ( ALL - 94 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - - 57 * + 30 + - + 21 * - COUNT( + 32 ) + - + 66
----
1665

skipif mysql # not compatible
query I rowsort label-107
SELECT - - 57 * + 30 + - + 21 * - COUNT ( + 32 ) + - + 66
----
1665

onlyif mysql # DIV for integer division: 
query II rowsort label-108
SELECT DISTINCT 93 DIV - 19 + + 14 AS col1, - 18 col2
----
10
-18

skipif mysql # not compatible
query II rowsort label-108
SELECT DISTINCT 93 / - 19 + + 14 AS col1, - 18 col2
----
10
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT ALL + 44 DIV + ( + SUM( + + 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 44 / + ( + SUM ( + + 89 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT COUNT( + 55 ) * - 24 * COUNT( * ) + 87 col0
----
63

skipif mysql # not compatible
query I rowsort label-110
SELECT COUNT ( + 55 ) * - 24 * COUNT ( * ) + 87 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL 55 - + 23 + + - COUNT( * ) * SUM( ALL - 2 ) * 72
----
176

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL 55 - + 23 + + - COUNT ( * ) * SUM ( ALL - 2 ) * 72
----
176

query I rowsort
SELECT ALL 25 * + 12 * - 98
----
-29400

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL 82 * 30 * - CASE + 79 WHEN + + 56 * + COUNT( * ) / 46 * + 80 THEN - + 96 * - - COUNT( * ) + + 74 WHEN - + ( 5 ) THEN + + 61 + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL 82 * 30 * - CASE + 79 WHEN + + 56 * + COUNT ( * ) / 46 * + 80 THEN - + 96 * - - COUNT ( * ) + + 74 WHEN - + ( 5 ) THEN + + 61 + 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT + COUNT( ALL 41 ) + ( + 65 ) * - - COUNT( - - 76 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-114
SELECT + COUNT ( ALL 41 ) + ( + 65 ) * - - COUNT ( - - 76 ) AS col1
----
66

query II rowsort
SELECT DISTINCT 10 * - + 91 AS col2, + 10 AS col1
----
-910
10

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT 18 DIV - 5 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-116
SELECT 18 / - 5 AS col1
----
-3

query II rowsort
SELECT DISTINCT 82 AS col1, 32 AS col2
----
82
32

query I rowsort
SELECT DISTINCT 42 * - + 41 AS col2
----
-1722

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

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

query I rowsort
SELECT 69 + + - 7 * - - 49 * 39
----
-13308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT ALL + 35 + + + 33 * + COALESCE ( + NULLIF ( + ( + SUM( DISTINCT + - ( + 93 ) ) ), 74 * - - 69 * + 26 * + 40 + - MIN( DISTINCT + ( 58 ) ) ), - + 75 + + - COALESCE ( - 53, - - 51, + 97 ) * 77 * 9 * - 83 * + ( 93 ) * + + 43 * + - CAST( NULL AS SIGNED ) + + 38 + COUNT( * ) ) col0
----
-3034

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + 35 + + + 33 * + COALESCE ( + NULLIF ( + ( + SUM ( DISTINCT + - ( + 93 ) ) ), 74 * - - 69 * + 26 * + 40 + - MIN ( DISTINCT + ( 58 ) ) ), - + 75 + + - COALESCE ( - 53, - - 51, + 97 ) * 77 * 9 * - 83 * + ( 93 ) * + + 43 * + - CAST ( NULL AS INTEGER ) + + 38 + COUNT ( * ) ) col0
----
-3034

query I rowsort
SELECT - NULLIF ( 18, - + 0 )
----
-18

query I rowsort
SELECT - 35 + - 26 AS col2
----
-61

query I rowsort
SELECT DISTINCT - 62 * - 47
----
2914

query I rowsort
SELECT ALL + 8 + 51 * 47 - - 81
----
2486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT - COUNT( * ) DIV - 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT - COUNT ( * ) / - 28 col2
----
0

query I rowsort
SELECT - 99 * - 32 AS col1
----
3168

query I rowsort
SELECT ALL + ( 84 ) col1
----
84

query II rowsort
SELECT + 73 AS col0, 95
----
73
95

query I rowsort
SELECT ALL 35 * - 85 + + 61 AS col1
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + CASE - - 42 WHEN + - COUNT( * ) + - + 93 THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT + CASE - - 42 WHEN + - COUNT ( * ) + - + 93 THEN + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-132
SELECT - - 8 * 92 * MIN( ALL + 52 ), 90 * + 32 AS col2
----
38272
2880

skipif mysql # not compatible
query II rowsort label-132
SELECT - - 8 * 92 * MIN ( ALL + 52 ), 90 * + 32 AS col2
----
38272
2880

query I rowsort
SELECT - - 3 * 54 col1
----
162

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

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL 19 * + COUNT ( * ) - - ( - 37 ) + + - COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT + COUNT( * ) AS col0, + 36 - - 12 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-135
SELECT + COUNT ( * ) AS col0, + 36 - - 12 AS col0
----
1
48

query I rowsort
SELECT + COALESCE ( + + 74, 57 )
----
74

query I rowsort
SELECT DISTINCT - - 7 * + 61 * + 56
----
23912

query II rowsort
SELECT + 20 AS col1, + 13
----
20
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-139
SELECT ALL + - 26 AS col1, MAX( DISTINCT 81 ) + - 39 + - CAST( NULL AS SIGNED )
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL + - 26 AS col1, MAX ( DISTINCT 81 ) + - 39 + - CAST ( NULL AS INTEGER )
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - - MAX( + - 86 ) * - 85 AS col1
----
7310

skipif mysql # not compatible
query I rowsort label-140
SELECT - - MAX ( + - 86 ) * - 85 AS col1
----
7310

query II rowsort
SELECT ALL + 96 AS col0, 32 AS col0
----
96
32

query I rowsort
SELECT 7 * 39 - + 71
----
202

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT - - 16 * + MIN( DISTINCT - 67 ) + + 8
----
-1064

skipif mysql # not compatible
query I rowsort label-145
SELECT - - 16 * + MIN ( DISTINCT - 67 ) + + 8
----
-1064

query II rowsort
SELECT 71 AS col1, NULLIF ( - 45, 20 + 41 )
----
71
-45

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

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

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

skipif mysql # not compatible
query I rowsort label-148
SELECT - 35 * - COUNT ( * ) + 66 + + + 73 AS col0
----
174

query I rowsort
SELECT + - 77 * + - 63
----
4851

query I rowsort
SELECT DISTINCT - 19 * 32
----
-608

query I rowsort
SELECT + 37 * 95
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT + COUNT( - - 65 ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + COUNT ( - - 65 ) + - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-153
SELECT DISTINCT 42 + - COUNT( * ) AS col0, 12 / + + CASE ( + 40 ) WHEN - CASE + - 60 WHEN + 42 * 58 THEN NULL WHEN + ( - CASE - + 98 WHEN COUNT( * ) THEN + 85 + - + 75 END ) THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE CAST( - - 51 AS SIGNED ) END THEN - CAST( - + COUNT( - 0 ) AS SIGNED ) / 16 * - + 97 * - + SUM( + 3 ) ELSE NULL END AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-153
SELECT DISTINCT 42 + - COUNT ( * ) AS col0, 12 / + + CASE ( + 40 ) WHEN - CASE + - 60 WHEN + 42 * 58 THEN NULL WHEN + ( - CASE - + 98 WHEN COUNT ( * ) THEN + 85 + - + 75 END ) THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE CAST ( - - 51 AS INTEGER ) END THEN - CAST ( - + COUNT ( - 0 ) AS INTEGER ) / 16 * - + 97 * - + SUM ( + 3 ) ELSE NULL END AS col2
----
41
NULL

query I rowsort
SELECT - 77 * + 23 * 17
----
-30107

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 83 * SUM( + + 52 ) AS col0
----
4316

skipif mysql # not compatible
query I rowsort label-155
SELECT + 83 * SUM ( + + 52 ) AS col0
----
4316

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT - CAST( + 43 AS SIGNED ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-158
SELECT - CAST ( + 43 AS INTEGER ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL ( - - COUNT( * ) ) * + MIN( + 56 ) * - - 84 * - 46
----
-216384

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL ( - - COUNT ( * ) ) * + MIN ( + 56 ) * - - 84 * - 46
----
-216384

query II rowsort
SELECT - ( + 35 ), - 96 * + 56 col1
----
-35
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL NULLIF ( - 28, - + 98 + + COALESCE ( + 55, + + 78, 69 * - 95 ) + - 78 * + 62 * + + 56 + - - 98 * - 74 * - + ( + - COUNT( * ) ) * + - 55 )
----
-28

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL NULLIF ( - 28, - + 98 + + COALESCE ( + 55, + + 78, 69 * - 95 ) + - 78 * + 62 * + + 56 + - - 98 * - 74 * - + ( + - COUNT ( * ) ) * + - 55 )
----
-28

query I rowsort
SELECT + 87 + 94 AS col2
----
181

query I rowsort
SELECT + 93 - + 89 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT + ( - 13 ) * + COUNT( 35 ) col0, 16
----
-13
16

skipif mysql # not compatible
query II rowsort label-164
SELECT + ( - 13 ) * + COUNT ( 35 ) col0, 16
----
-13
16

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

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

query I rowsort
SELECT ALL + - COALESCE ( - 74, - 51 + - - 26 ) * + - 84
----
-6216

query I rowsort
SELECT + + 88 + - ( 29 )
----
59

query I rowsort
SELECT ALL + 77 * + - 62 col1
----
-4774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT - MAX( DISTINCT 79 ) * CASE + - 98 WHEN - - 77 THEN NULL ELSE 7 + + - 76 + - 61 + - MAX( + 76 ) * + 59 * + 34 + - 42 * - + ( - COUNT( * ) ) + - 63 END + - + CAST( NULL AS SIGNED ) / - 44 + - 77 * - 29 * - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT - MAX ( DISTINCT 79 ) * CASE + - 98 WHEN - - 77 THEN NULL ELSE 7 + + - 76 + - 61 + - MAX ( + 76 ) * + 59 * + 34 + - 42 * - + ( - COUNT ( * ) ) + - 63 END + - + CAST ( NULL AS INTEGER ) / - 44 + - 77 * - 29 * - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL - - ( COUNT( * ) ) * - + 21 * 6 * 82 + 23
----
-10309

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - - ( COUNT ( * ) ) * - + 21 * 6 * 82 + 23
----
-10309

query I rowsort
SELECT DISTINCT - 74 * + 58 col0
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-172
SELECT ALL + COUNT( + + 21 ) AS col2, + 25 + + CAST( + AVG ( ALL + 2 ) AS SIGNED ) AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + COUNT ( + + 21 ) AS col2, + 25 + + CAST ( + AVG ( ALL + 2 ) AS INTEGER ) AS col0
----
1
27

query I rowsort
SELECT - 68 + 3 AS col2
----
-65

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - COUNT( * ) * + 71 * - 5
----
355

skipif mysql # not compatible
query I rowsort label-176
SELECT - COUNT ( * ) * + 71 * - 5
----
355

query I rowsort
SELECT ALL + 55 * + - 15 * + 17 + - ( + 23 ) AS col1
----
-14048

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - 70 + + + MAX( ALL - 18 )
----
-88

skipif mysql # not compatible
query I rowsort label-178
SELECT - 70 + + + MAX ( ALL - 18 )
----
-88

query I rowsort
SELECT ALL + - 12 * - 21 AS col1
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT DISTINCT - ( - - CAST( - 36 AS SIGNED ) ) * - COUNT( * ) + + 65 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - ( - - CAST ( - 36 AS INTEGER ) ) * - COUNT ( * ) + + 65 AS col1
----
29

query II rowsort
SELECT DISTINCT 35 * - 91 * 30 + - - ( - 54 ) AS col0, 33 - + + 88
----
-95604
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT ALL + COUNT( * ) * + 52 + - + CAST( + 44 AS SIGNED ) col2
----
8

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + COUNT ( * ) * + 52 + - + CAST ( + 44 AS INTEGER ) col2
----
8

query I rowsort
SELECT - 60 * - 69
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - CASE - ( + + 40 ) WHEN + + 46 THEN + MIN( - + 99 ) + + + 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT - CASE - ( + + 40 ) WHEN + + 46 THEN + MIN ( - + 99 ) + + + 35 END AS col1
----
NULL

query I rowsort
SELECT - 77 + - + 96
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-186
SELECT DISTINCT + 12 * - 48 / COALESCE ( 46, 30 ) + - - CAST( NULL AS SIGNED ) + - CASE + AVG ( ALL + 54 ) WHEN + 80 * + CAST( + 99 AS SIGNED ) THEN + 54 + + - COUNT( * ) ELSE + - 92 END col2, 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-186
SELECT DISTINCT + 12 * - 48 / COALESCE ( 46, 30 ) + - - CAST ( NULL AS INTEGER ) + - CASE + AVG ( ALL + 54 ) WHEN + 80 * + CAST ( + 99 AS INTEGER ) THEN + 54 + + - COUNT ( * ) ELSE + - 92 END col2, 79 AS col1
----
NULL
79

query I rowsort
SELECT ALL 41 + + 32 AS col2
----
73

query I rowsort
SELECT ALL 0 + 33 col1
----
33

query I rowsort
SELECT ALL + 80 * 50 col1
----
4000

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-191
SELECT ALL 94 DIV + NULLIF ( + 43, - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL 94 / + NULLIF ( + 43, - COUNT ( * ) )
----
2

query I rowsort
SELECT ALL - 8 - + + 75
----
-83

query I rowsort
SELECT ALL 75 - - 45 AS col1
----
120

query I rowsort
SELECT ALL 34 * + 67
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ( 97 ) + - + MIN( - 92 ) AS col2
----
189

skipif mysql # not compatible
query I rowsort label-195
SELECT ( 97 ) + - + MIN ( - 92 ) AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT MIN( DISTINCT - - 59 ) * - 59 * - - 66 + - 17 - MIN( + 99 ) + - 45 * + 99
----
-234317

skipif mysql # not compatible
query I rowsort label-196
SELECT MIN ( DISTINCT - - 59 ) * - 59 * - - 66 + - 17 - MIN ( + 99 ) + - 45 * + 99
----
-234317

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT 46 - + 51 * CASE - 74 WHEN + 53 * + 15 THEN NULL ELSE 5 + - COUNT( * ) + + - COUNT( ALL + - 4 ) * - COUNT( * ) * - ( - COUNT( * ) ) END
----
-209

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT 46 - + 51 * CASE - 74 WHEN + 53 * + 15 THEN NULL ELSE 5 + - COUNT ( * ) + + - COUNT ( ALL + - 4 ) * - COUNT ( * ) * - ( - COUNT ( * ) ) END
----
-209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT - ( 1 ) * - ( CASE 61 WHEN - 64 + + + 36 + + 10 + + 98 * + + ( - - 7 ) - - COUNT( * ) * + NULLIF ( - NULLIF ( - - NULLIF ( - COUNT( * ), + 15 ), 82 - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ), COUNT( * ) ) THEN - ( + 13 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT - ( 1 ) * - ( CASE 61 WHEN - 64 + + + 36 + + 10 + + 98 * + + ( - - 7 ) - - COUNT ( * ) * + NULLIF ( - NULLIF ( - - NULLIF ( - COUNT ( * ), + 15 ), 82 - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ), COUNT ( * ) ) THEN - ( + 13 ) END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 37 * + 76 AS col0
----
2812

query II rowsort
SELECT DISTINCT - 69 AS col2, 81
----
-69
81

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT NULLIF ( 53, 39 ) * - - ( + - 17 ) + - 36 * + COUNT( * )
----
-937

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT NULLIF ( 53, 39 ) * - - ( + - 17 ) + - 36 * + COUNT ( * )
----
-937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT ALL - CAST( 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - CAST ( 36 AS INTEGER ) AS col2
----
-36

query I rowsort
SELECT 90 * + ( 17 ) + + 91
----
1621

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

skipif mysql # not compatible
query II rowsort label-204
SELECT + - 67 col2, + COUNT ( * )
----
-67
1

query I rowsort
SELECT 69 * - 61 AS col0
----
-4209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT - 88 * CAST( NULL AS SIGNED ) + - ( 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT - 88 * CAST ( NULL AS INTEGER ) + - ( 79 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT + 97 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-207
SELECT + 97 / + 39
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) + + NULLIF ( + 15, + 29 * - 57 ) * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) + + NULLIF ( + 15, + 29 * - 57 ) * 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT - 77 * + - 89 - - 46 * + + CAST( ( + + COUNT( ALL 77 ) ) AS SIGNED )
----
6899

skipif mysql # not compatible
query I rowsort label-209
SELECT - 77 * + - 89 - - 46 * + + CAST ( ( + + COUNT ( ALL 77 ) ) AS INTEGER )
----
6899

query I rowsort
SELECT ALL 15 + + 16 AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT + CAST( - + 13 AS SIGNED ) * 96 + + + 30
----
-1218

skipif mysql # not compatible
query I rowsort label-211
SELECT + CAST ( - + 13 AS INTEGER ) * 96 + + + 30
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT DISTINCT 33 + + NULLIF ( - MIN( DISTINCT 41 ), 24 )
----
-8

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT 33 + + NULLIF ( - MIN ( DISTINCT 41 ), 24 )
----
-8

query I rowsort
SELECT + CASE WHEN NOT 79 IS NOT NULL THEN NULL WHEN NOT ( NULL IS NOT NULL ) THEN + - 83 + - - 43 END
----
-40

query I rowsort
SELECT ALL 54 + + ( - 29 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT 84 * - 8 + + COUNT( * ) - 85 AS col2
----
-756

skipif mysql # not compatible
query I rowsort label-215
SELECT 84 * - 8 + + COUNT ( * ) - 85 AS col2
----
-756

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

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

query II rowsort
SELECT + 29, + 95 * 91 * 53 * - ( - 36 ) AS col1
----
29
16494660

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

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

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

query I rowsort
SELECT ALL - CASE + - 74 WHEN - 7 THEN + - 59 * + + 32 * 29 * - 29 * 35 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT DISTINCT + 39 + COALESCE ( + 32, - CAST( NULL AS SIGNED ) ) - 20 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + 39 + COALESCE ( + 32, - CAST ( NULL AS INTEGER ) ) - 20 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + 21 - - - MAX( ALL 0 ) * MAX( DISTINCT ( - - 10 ) ) * + ( - 48 ) - - 68 * - 45 * + 49 * - - 22 + + 31 AS col1
----
-3298628

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 21 - - - MAX ( ALL 0 ) * MAX ( DISTINCT ( - - 10 ) ) * + ( - 48 ) - - 68 * - 45 * + 49 * - - 22 + + 31 AS col1
----
-3298628

query I rowsort
SELECT 52 * 61 * + 5 AS col1
----
15860

query I rowsort
SELECT 62 + - - 35 - 49 * - 62
----
3135

query II rowsort
SELECT ALL 49, - 40 AS col1
----
49
-40

query I rowsort
SELECT DISTINCT - 94 * + - 91 AS col1
----
8554

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT 49 - - - 16 + NULLIF ( - 54, 94 ) DIV - 31 col2
----
34

skipif mysql # not compatible
query I rowsort label-227
SELECT 49 - - - 16 + NULLIF ( - 54, 94 ) / - 31 col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL - 86 * NULLIF ( + 12, COUNT( 89 ) )
----
-1032

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL - 86 * NULLIF ( + 12, COUNT ( 89 ) )
----
-1032

query I rowsort
SELECT 68 * - 75
----
-5100

query I rowsort
SELECT 84 - - 20 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-232
SELECT COUNT( * ) DIV 75 DIV 45 * - + 84, ( - - 37 ) col2
----
0
37

skipif mysql # not compatible
query II rowsort label-232
SELECT COUNT ( * ) / 75 / 45 * - + 84, ( - - 37 ) col2
----
0
37

onlyif mysql # DIV for integer division: 
query II rowsort label-233
SELECT ALL + 69 AS col2, + 92 DIV - 84 col2
----
69
-1

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL + 69 AS col2, + 92 / - 84 col2
----
69
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT DISTINCT - + 58 / - 68 - - - 56 + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - + 58 / - 68 - - - 56 + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT - 45 - - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-235
SELECT - 45 - - COUNT ( * ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT 5 * - + 71 * + ( - - SUM( - 92 ) ) + COUNT( * ) * + 89
----
32749

skipif mysql # not compatible
query I rowsort label-236
SELECT 5 * - + 71 * + ( - - SUM ( - 92 ) ) + COUNT ( * ) * + 89
----
32749

query I rowsort
SELECT ALL + - 46 + ( + 4 ) + - ( + - 53 ) - - 97 * 45 * 68 * 40 + 49
----
11872860

onlyif mysql # aggregate syntax: 
query II rowsort label-238
SELECT COUNT( * ) - - 54, - NULLIF ( 96, + - 70 + - - 50 ) AS col1
----
55
-96

skipif mysql # not compatible
query II rowsort label-238
SELECT COUNT ( * ) - - 54, - NULLIF ( 96, + - 70 + - - 50 ) AS col1
----
55
-96

query II rowsort
SELECT ALL - 94, + 89 AS col1
----
-94
89

query I rowsort
SELECT - 3 + - 1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - 61 * - CASE 37 WHEN + 98 THEN 5 END + - + 81 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - 61 * - CASE 37 WHEN + 98 THEN 5 END + - + 81 + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-242
SELECT ALL - + 7 * + 30 + - - CAST( - 33 AS SIGNED ) + + 70 + - CAST( NULL AS DECIMAL ) * + 14 - + + 83 + - 90, - 32 + + 71 + + - 51 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL - + 7 * + 30 + - - CAST ( - 33 AS INTEGER ) + + 70 + - CAST ( NULL AS REAL ) * + 14 - + + 83 + - 90, - 32 + + 71 + + - 51 AS col0
----
NULL
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-243
SELECT CAST( NULL AS SIGNED ) + + + 62 + - 79 * MAX( 1 ) * - 35 AS col2, - 71 + - 25 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-243
SELECT CAST ( NULL AS INTEGER ) + + + 62 + - 79 * MAX ( 1 ) * - 35 AS col2, - 71 + - 25 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT - 68 * - ( - + 18 ) + + 12 + - COUNT( DISTINCT ( + 34 ) ) + - 72 + - 61 DIV - 47 - COALESCE ( + 4, - 20 + 6 ) * + 80
----
-1604

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - 68 * - ( - + 18 ) + + 12 + - COUNT ( DISTINCT ( + 34 ) ) + - 72 + - 61 / - 47 - COALESCE ( + 4, - 20 + 6 ) * + 80
----
-1604

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL - - SUM( + - 44 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - - SUM ( + - 44 ) col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT 53 + + - COUNT( * ) - - + NULLIF ( - 85, - 0 )
----
-33

skipif mysql # not compatible
query I rowsort label-246
SELECT 53 + + - COUNT ( * ) - - + NULLIF ( - 85, - 0 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-247
SELECT 27 DIV SUM( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-247
SELECT 27 / SUM ( - 5 ) AS col0
----
-5

query I rowsort
SELECT + 42 + + 83 AS col2
----
125

query I rowsort
SELECT ALL 64 * - + 12 - + + 46 + COALESCE ( 21, + + 83, ( 60 ) * - 61 ) + - 97 * - 15 * 97 AS col0
----
140342

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT + MIN( + NULLIF ( - 26, - 75 * 97 * 46 - 80 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-250
SELECT + MIN ( + NULLIF ( - 26, - 75 * 97 * 46 - 80 ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL 70 * - CAST( NULL AS SIGNED ) * + 1 - + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 70 * - CAST ( NULL AS INTEGER ) * + 1 - + - 48 AS col2
----
NULL

query I rowsort
SELECT + 6 * + 89 * 44
----
23496

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

skipif mysql # not compatible
query I rowsort label-253
SELECT MAX ( ALL - - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT COUNT( * ) DIV - 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT COUNT ( * ) / - 9 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-255
SELECT COUNT( ALL + 57 ) AS col1, 97 / CAST( NULL AS DECIMAL ) * - + 98 / 6 * COUNT( * ) * - + 1 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-255
SELECT COUNT ( ALL + 57 ) AS col1, 97 / CAST ( NULL AS REAL ) * - + 98 / 6 * COUNT ( * ) * - + 1 AS col0
----
1
NULL

query I rowsort
SELECT ALL 65 - - 95 AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT 23 * + 45 * + SUM( - + 92 )
----
-95220

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT 23 * + 45 * + SUM ( - + 92 )
----
-95220

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL MAX( ALL - - 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL MAX ( ALL - - 85 ) AS col1
----
85

query I rowsort
SELECT + 16 * + + 25 * - 25 AS col2
----
-10000

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

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

query I rowsort
SELECT + 34 + + 28 + - + 2 + + 29 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT DISTINCT COALESCE ( COUNT( * ), + 37 * + - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT COALESCE ( COUNT ( * ), + 37 * + - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL CASE + 43 WHEN - 86 * - + 19 - - - COUNT( * ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL CASE + 43 WHEN - 86 * - + 19 - - - COUNT ( * ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT - ( + - CAST( + 69 AS SIGNED ) ) + - 40
----
29

skipif mysql # not compatible
query I rowsort label-264
SELECT - ( + - CAST ( + 69 AS INTEGER ) ) + - 40
----
29

query I rowsort
SELECT ALL - - 98 * - 33 AS col0
----
-3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT - CAST( NULL AS SIGNED ) + + 39 * 37 * - 32 * - ( - + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT - CAST ( NULL AS INTEGER ) + + 39 * 37 * - 32 * - ( - + 25 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - SUM ( + ( - 22 ) ) * - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT - + 18 + - - 34 * + 46 col0
----
1546

query I rowsort
SELECT ALL - 54 + + - 65 + + + 22 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT - - COALESCE ( - 46, - - 80, + SUM( + 53 ) * + + 14 DIV - 92 + + 65 ) * 60 + + 91
----
-2669

skipif mysql # not compatible
query I rowsort label-270
SELECT - - COALESCE ( - 46, - - 80, + SUM ( + 53 ) * + + 14 / - 92 + + 65 ) * 60 + + 91
----
-2669

query II rowsort
SELECT ALL + + 93 + + - 80 AS col0, 80 AS col0
----
13
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - COALESCE ( + - 48, - 62 ) * - + MIN( 76 ) * + - 56 * - 78
----
-15934464

skipif mysql # not compatible
query I rowsort label-274
SELECT - COALESCE ( + - 48, - 62 ) * - + MIN ( 76 ) * + - 56 * - 78
----
-15934464

query I rowsort
SELECT ALL - ( - 91 ) + - 67
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-276
SELECT ALL 67 DIV COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL 67 / COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
67
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT ALL + 13 DIV - + 3 + - 20 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + 13 / - + 3 + - 20 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-279
SELECT - + 16 * + - COUNT( * ) + - 52 + - CAST( + 76 AS SIGNED ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-279
SELECT - + 16 * + - COUNT ( * ) + - 52 + - CAST ( + 76 AS INTEGER ) AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT DISTINCT + + 89 / + CAST( NULL AS SIGNED ) * - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + + 89 / + CAST ( NULL AS INTEGER ) * - 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT 47 DIV 49 - 90 * + + COUNT( - 80 ) * + 0 + 17 * + COALESCE ( + 71, - 10, + 60 ) - - 4 AS col1
----
1211

skipif mysql # not compatible
query I rowsort label-281
SELECT 47 / 49 - 90 * + + COUNT ( - 80 ) * + 0 + 17 * + COALESCE ( + 71, - 10, + 60 ) - - 4 AS col1
----
1211

onlyif mysql # DIV for integer division: 
query II rowsort label-282
SELECT + ( - - 4 ) AS col2, + 12 * 62 - 17 + + 32 DIV 1
----
4
759

skipif mysql # not compatible
query II rowsort label-282
SELECT + ( - - 4 ) AS col2, + 12 * 62 - 17 + + 32 / 1
----
4
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT ( - CAST( - 99 AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-283
SELECT ( - CAST ( - 99 AS INTEGER ) )
----
99

query I rowsort
SELECT - 30 * - 14
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-285
SELECT + 10 * 34 - + CAST( + 5 AS SIGNED ) - - + CASE - + MAX( DISTINCT - 49 ) WHEN + 4 THEN 99 - - COUNT( * ) WHEN 97 + + CASE + + 36 WHEN + 37 THEN + 44 WHEN + - 18 THEN + 98 DIV - + 12 ELSE + + 81 END THEN + - 77 WHEN + 56 THEN - + ( - - SUM( ALL + + 68 ) ) DIV + + 63 DIV + - 18 * - 88 * + + 12 DIV - + COUNT( * ) ELSE - + 0 + 88 DIV - 18 * - + 1 END - - + 24
----
363

skipif mysql # not compatible
query I rowsort label-285
SELECT + 10 * 34 - + CAST ( + 5 AS INTEGER ) - - + CASE - + MAX ( DISTINCT - 49 ) WHEN + 4 THEN 99 - - COUNT ( * ) WHEN 97 + + CASE + + 36 WHEN + 37 THEN + 44 WHEN + - 18 THEN + 98 / - + 12 ELSE + + 81 END THEN + - 77 WHEN + 56 THEN - + ( - - SUM ( ALL + + 68 ) ) / + + 63 / + - 18 * - 88 * + + 12 / - + COUNT ( * ) ELSE - + 0 + 88 / - 18 * - + 1 END - - + 24
----
363

query II rowsort
SELECT ALL + 27 AS col1, 92 + 9 AS col2
----
27
101

query II rowsort
SELECT ALL + 70 * - + 75 - - + 44 col2, 14
----
-5206
14

query I rowsort
SELECT + 0 * 10 * - 8 * - - 54
----
0

query I rowsort
SELECT DISTINCT 24 * + 94
----
2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT 58 * + + COUNT( * ) * - 31 + 1 + + 51 + - 50 * 65 DIV + 62 AS col1
----
-1798

skipif mysql # not compatible
query I rowsort label-290
SELECT 58 * + + COUNT ( * ) * - 31 + 1 + + 51 + - 50 * 65 / + 62 AS col1
----
-1798

query I rowsort
SELECT - 64 * - 67
----
4288

query II rowsort
SELECT + ( - 79 ) + - + 18 AS col1, - COALESCE ( - 32, 57 ) * + 8
----
-97
256

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT SUM( 80 ) * - 79 * 58 - + + 9 + + 49
----
-366520

skipif mysql # not compatible
query I rowsort label-293
SELECT SUM ( 80 ) * - 79 * 58 - + + 9 + + 49
----
-366520

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT CASE - 52 WHEN 97 + + COUNT( * ) / + MAX( ALL + + 64 ) THEN - 36 ELSE + 71 END col0
----
71

skipif mysql # not compatible
query I rowsort label-294
SELECT CASE - 52 WHEN 97 + + COUNT ( * ) / + MAX ( ALL + + 64 ) THEN - 36 ELSE + 71 END col0
----
71

query I rowsort
SELECT 49 * 38 + + 0 - + 20
----
1842

query II rowsort
SELECT DISTINCT + 39 AS col2, 20 - - - 58
----
39
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT ALL 11 DIV + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL 11 / + - 81 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT + NULLIF ( + - 33, + 54 ) DIV 15 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-298
SELECT + NULLIF ( + - 33, + 54 ) / 15 AS col0
----
-2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-301
SELECT + ( + + 20 ) + CAST( NULL AS SIGNED ) AS col2, - 13 + 53 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-301
SELECT + ( + + 20 ) + CAST ( NULL AS INTEGER ) AS col2, - 13 + 53 AS col0
----
NULL
40

query I rowsort
SELECT ALL 75 * - - 11 col1
----
825

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT DISTINCT + 72 * - 42 + + SUM( - 6 ) AS col2, 54 + - 27 AS col0
----
-3030
27

skipif mysql # not compatible
query II rowsort label-303
SELECT DISTINCT + 72 * - 42 + + SUM ( - 6 ) AS col2, 54 + - 27 AS col0
----
-3030
27

query I rowsort
SELECT - COALESCE ( 34, - - 65 )
----
-34

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

query I rowsort
SELECT - 41 * + 77
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL COUNT( * ) + - 44 * 41 * + - COUNT( * ) + + 63 * - MAX( - 44 ) * + ( MAX( ALL + 96 ) ) + - + 86 + 31 + + + 63 AS col0
----
267925

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL COUNT ( * ) + - 44 * 41 * + - COUNT ( * ) + + 63 * - MAX ( - 44 ) * + ( MAX ( ALL + 96 ) ) + - + 86 + 31 + + + 63 AS col0
----
267925

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT 1 AS col0, - 76 + - 18 + MIN( ALL 44 ) * + 8 + + 21 * ( + 14 )
----
1
552

skipif mysql # not compatible
query II rowsort label-308
SELECT 1 AS col0, - 76 + - 18 + MIN ( ALL 44 ) * + 8 + + 21 * ( + 14 )
----
1
552

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-309
SELECT DISTINCT NULLIF ( - 55, COUNT( * ) ), CAST( NULL AS DECIMAL ) * - 83 * - 20 - 39 * COUNT( * ) col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-309
SELECT DISTINCT NULLIF ( - 55, COUNT ( * ) ), CAST ( NULL AS REAL ) * - 83 * - 20 - 39 * COUNT ( * ) col1
----
-55
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-310
SELECT - NULLIF ( + 70, + MAX( ALL 23 ) + + + 15 ) - + CAST( 94 AS SIGNED ) + - ( COUNT( * ) ) col1, + 70
----
-165
70

skipif mysql # not compatible
query II rowsort label-310
SELECT - NULLIF ( + 70, + MAX ( ALL 23 ) + + + 15 ) - + CAST ( 94 AS INTEGER ) + - ( COUNT ( * ) ) col1, + 70
----
-165
70

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL + COUNT( * ) + + CASE - + COALESCE ( COUNT( * ), + 94 ) WHEN 72 + + ( + 61 ) * 80 THEN + + 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + COUNT ( * ) + + CASE - + COALESCE ( COUNT ( * ), + 94 ) WHEN 72 + + ( + 61 ) * 80 THEN + + 71 END AS col1
----
NULL

query I rowsort
SELECT ALL - 51 + + CASE + 60 WHEN + 37 THEN - 16 WHEN + ( - 9 ) THEN NULL ELSE NULL END + - 43 * - 47 * - + 16 * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT MIN( ALL + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-313
SELECT MIN ( ALL + 62 ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT ALL + - 86 * NULLIF ( - 85, - - COUNT( DISTINCT + CAST( + 68 AS SIGNED ) ) * + 6 )
----
7310

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + - 86 * NULLIF ( - 85, - - COUNT ( DISTINCT + CAST ( + 68 AS INTEGER ) ) * + 6 )
----
7310

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT - + 71 - - 38 DIV 49
----
-71

skipif mysql # not compatible
query I rowsort label-315
SELECT - + 71 - - 38 / 49
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT + 48 * 52 + 22 + COALESCE ( - - 4, 61 + + 57 + + 41, 7 ) + COUNT( * )
----
2523

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT + 48 * 52 + 22 + COALESCE ( - - 4, 61 + + 57 + + 41, 7 ) + COUNT ( * )
----
2523

query II rowsort
SELECT - - 54 col2, - 2 col1
----
54
-2

query I rowsort
SELECT + NULLIF ( - ( + + 43 ), + 51 ) + + - 98
----
-141

query I rowsort
SELECT ALL - ( 47 ) AS col1
----
-47

query I rowsort
SELECT + 44 * + 47 + + + 65
----
2133

query I rowsort
SELECT 43 * + + 39 AS col0
----
1677

query I rowsort
SELECT 78 * + + 2 * - 13 AS col2
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT MAX( DISTINCT - 78 ) + 48 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-323
SELECT MAX ( DISTINCT - 78 ) + 48 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-324
SELECT ALL + 63 DIV - + 53 AS col1, 96 * CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-324
SELECT ALL + 63 / - + 53 AS col1, 96 * CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-325
SELECT 3 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 70 * + + 83 * ( - 61 ) col0
----
-354410

query I rowsort
SELECT 93 + + + 3 + 10 col1
----
106

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

query I rowsort
SELECT 83 + - 81 + + 55 AS col0
----
57

query II rowsort
SELECT 86 - + - 71 AS col0, 31 AS col0
----
157
31

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT CASE + + ( ( + 60 ) ) WHEN - 36 THEN COUNT( * ) * - + 22 * + 47 ELSE NULL END + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT CASE + + ( ( + 60 ) ) WHEN - 36 THEN COUNT ( * ) * - + 22 * + 47 ELSE NULL END + - 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT - 4 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - 4 / - 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT ALL + 46 + - 69 AS col1, - 24 - + COUNT( * ) + + 49
----
-23
24

skipif mysql # not compatible
query II rowsort label-333
SELECT ALL + 46 + - 69 AS col1, - 24 - + COUNT ( * ) + + 49
----
-23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT - + 9 + - + 14 * 13 + - - 9 DIV MIN( + 35 )
----
-191

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - + 9 + - + 14 * 13 + - - 9 / MIN ( + 35 )
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL - 71 * + MIN( ALL - 53 ) + + 48 * - 24
----
2611

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL - 71 * + MIN ( ALL - 53 ) + + 48 * - 24
----
2611

query II rowsort
SELECT DISTINCT 70 * ( + 6 ) - - 47, 49 AS col1
----
467
49

query I rowsort
SELECT DISTINCT - 52 - + 38 AS col2
----
-90

query I rowsort
SELECT ALL 11 - - - 80
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - MIN( ALL + 98 ) + - 73
----
-171

skipif mysql # not compatible
query I rowsort label-339
SELECT - MIN ( ALL + 98 ) + - 73
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT - CAST( - 73 AS SIGNED ) * - 43 * + - CASE 29 WHEN + + 81 * + 66 THEN NULL ELSE CAST( - 20 AS SIGNED ) * - ( 11 ) + CAST( NULL AS SIGNED ) - + COUNT( * ) + + 53 END * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT - CAST ( - 73 AS INTEGER ) * - 43 * + - CASE 29 WHEN + + 81 * + 66 THEN NULL ELSE CAST ( - 20 AS INTEGER ) * - ( 11 ) + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + 53 END * + - 70
----
NULL

query I rowsort
SELECT DISTINCT + - 9 * 20 AS col0
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-342
SELECT - COUNT( * ) DIV + 4 - - 97 AS col1, + 20 AS col0
----
97
20

skipif mysql # not compatible
query II rowsort label-342
SELECT - COUNT ( * ) / + 4 - - 97 AS col1, + 20 AS col0
----
97
20

query I rowsort
SELECT 52 - - 84 * + 31 - + + COALESCE ( + 29, 25, + + 30 * + 5 + - - ( 99 ) )
----
2627

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-344
SELECT CAST( 41 AS SIGNED ) DIV - 93 AS col1, ( + 37 ) AS col0
----
0
37

skipif mysql # not compatible
query II rowsort label-344
SELECT CAST ( 41 AS INTEGER ) / - 93 AS col1, ( + 37 ) AS col0
----
0
37

query I rowsort
SELECT ALL 99 * + - 7
----
-693

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

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

query I rowsort
SELECT 97 - - + 68 AS col2
----
165

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT 83 DIV + COALESCE ( - 76, 10 + + 39 + + 0, + 55 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-349
SELECT 83 / + COALESCE ( - 76, 10 + + 39 + + 0, + 55 ) col0
----
-1

query I rowsort
SELECT 87 + 81 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT COUNT( * ) + 76 * - 3
----
-227

skipif mysql # not compatible
query I rowsort label-351
SELECT COUNT ( * ) + 76 * - 3
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + CASE + ( COUNT( * ) ) WHEN - - 73 THEN 1 WHEN - - 10 + + ( - 77 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT + CASE + ( COUNT ( * ) ) WHEN - - 73 THEN 1 WHEN - - 10 + + ( - 77 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-353
SELECT ALL + CASE - + COUNT( DISTINCT - + 94 ) WHEN - - ( - AVG ( - + 61 ) ) THEN 75 DIV + CASE - COUNT( * ) WHEN + + AVG ( + 55 ) THEN NULL WHEN - 9 * 53 + + ( ( 87 ) ) + COUNT( * ) * 16 THEN - ( + + 34 ) ELSE NULL END + 53 WHEN - + 26 THEN NULL WHEN + - COUNT( * ) THEN + + 17 - + 64 WHEN COUNT( * ) THEN NULL ELSE NULL END * - 15 AS col1
----
705

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL + CASE - + COUNT ( DISTINCT - + 94 ) WHEN - - ( - AVG ( - + 61 ) ) THEN 75 / + CASE - COUNT ( * ) WHEN + + AVG ( + 55 ) THEN NULL WHEN - 9 * 53 + + ( ( 87 ) ) + COUNT ( * ) * 16 THEN - ( + + 34 ) ELSE NULL END + 53 WHEN - + 26 THEN NULL WHEN + - COUNT ( * ) THEN + + 17 - + 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END * - 15 AS col1
----
705

query I rowsort
SELECT DISTINCT + 64 - + - 98 + + - 4
----
158

query II rowsort
SELECT - - 35 col2, + 42 AS col2
----
35
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT + CASE MAX( DISTINCT - 74 ) WHEN 78 + 3 + CAST( - ( + 67 ) AS SIGNED ) * + + 68 THEN + - ( + - COUNT( * ) ) + + - 71 END + + ( + 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT + CASE MAX ( DISTINCT - 74 ) WHEN 78 + 3 + CAST ( - ( + 67 ) AS INTEGER ) * + + 68 THEN + - ( + - COUNT ( * ) ) + + - 71 END + + ( + 97 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 15 * - 30 + + 44 + + 82 * + ( - 88 )
----
-7622

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

skipif mysql # not compatible
query I rowsort label-358
SELECT - COUNT ( * ) - + + 87 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT COALESCE ( - 80, + 95, - COUNT( * ) + - + 90 + + 44 * + - 15 )
----
-80

skipif mysql # not compatible
query I rowsort label-359
SELECT COALESCE ( - 80, + 95, - COUNT ( * ) + - + 90 + + 44 * + - 15 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - 42 + SUM( + 14 ) * 0
----
-42

skipif mysql # not compatible
query I rowsort label-360
SELECT - 42 + SUM ( + 14 ) * 0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-361
SELECT ALL 81 AS col0, + ( + - 9 ) * 15 + + - 32 DIV 42 + ( + COUNT( * ) ) + + CAST( - + 8 AS SIGNED ) * + 86 * 80 AS col0
----
81
-55174

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL 81 AS col0, + ( + - 9 ) * 15 + + - 32 / 42 + ( + COUNT ( * ) ) + + CAST ( - + 8 AS INTEGER ) * + 86 * 80 AS col0
----
81
-55174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-362
SELECT - - COUNT( ALL + 49 ) - COALESCE ( 45, 5 * + CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( + 93 ) THEN NULL WHEN - 79 THEN + COUNT( * ) * - - 26 * + 2 * 45 * + ( - 93 ) DIV - + 58 + + 84 * - 77 - 65 WHEN + ( + COUNT( * ) ) * - + 54 + - + 36 THEN - + 85 END + + - CASE - COUNT( * ) WHEN - 65 + 12 THEN - 83 ELSE - + 57 END, + 89 + 56 + + 13, - - 16 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-362
SELECT - - COUNT ( ALL + 49 ) - COALESCE ( 45, 5 * + CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( + 93 ) THEN NULL WHEN - 79 THEN + COUNT ( * ) * - - 26 * + 2 * 45 * + ( - 93 ) / - + 58 + + 84 * - 77 - 65 WHEN + ( + COUNT ( * ) ) * - + 54 + - + 36 THEN - + 85 END + + - CASE - COUNT ( * ) WHEN - 65 + 12 THEN - 83 ELSE - + 57 END, + 89 + 56 + + 13, - - 16 ) AS col2
----
-44

query I rowsort
SELECT ALL + 99 * 15 * - 85
----
-126225

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

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

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

skipif mysql # not compatible
query I rowsort label-365
SELECT + - 19 + CAST ( NULL AS INTEGER ) + - 17 AS col1
----
NULL

query I rowsort
SELECT + ( + ( + - 15 ) ) * + 23 AS col0
----
-345

query I rowsort
SELECT ALL 89 * 8
----
712

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT - COALESCE ( + 57, + 31 * 79 * 40 + 64 DIV 88 * 45 - - COUNT( + - 68 ), 78 * + 15 + - - 34 * COUNT( * ) * 98 )
----
-57

skipif mysql # not compatible
query I rowsort label-369
SELECT - COALESCE ( + 57, + 31 * 79 * 40 + 64 / 88 * 45 - - COUNT ( + - 68 ), 78 * + 15 + - - 34 * COUNT ( * ) * 98 )
----
-57

query I rowsort
SELECT + 24 + + 52 * 80 AS col2
----
4184

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

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

query I rowsort
SELECT + ( - + 92 ) + 3 AS col1
----
-89

query II rowsort
SELECT ALL 60 * - 65 + 2 + + 59 AS col0, 32 AS col0
----
-3839
32

query I rowsort
SELECT ALL + 23 * 21 * ( - 43 ) + + 98
----
-20671

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT + 97 * - - COUNT( * ) + - 46
----
51

skipif mysql # not compatible
query I rowsort label-375
SELECT + 97 * - - COUNT ( * ) + - 46
----
51

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

query I rowsort
SELECT ALL 15 * + 90 * 95 + 81 - - 65 AS col2
----
128396

query I rowsort
SELECT + 34 * + ( NULLIF ( 84, + 67 ) ) AS col0
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT - 40 * - - 61 * - + COUNT( ALL + + 28 ) AS col2
----
2440

skipif mysql # not compatible
query I rowsort label-379
SELECT - 40 * - - 61 * - + COUNT ( ALL + + 28 ) AS col2
----
2440

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL 46 * + MAX( - - 30 ) * - + ( + + 3 ) - + COUNT( * ) AS col2, 47
----
-4141
47

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL 46 * + MAX ( - - 30 ) * - + ( + + 3 ) - + COUNT ( * ) AS col2, 47
----
-4141
47

query I rowsort
SELECT + CASE - 96 WHEN - 73 * - + 67 + + 92 THEN 40 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - 52 * + - COUNT( * ) + - 63
----
-11

skipif mysql # not compatible
query I rowsort label-382
SELECT - 52 * + - COUNT ( * ) + - 63
----
-11

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

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

query II rowsort
SELECT 90 AS col1, 31 col1
----
90
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT - - 66 / + 31 / - CAST( NULL AS SIGNED ) * - 50 * + 41 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT - - 66 / + 31 / - CAST ( NULL AS INTEGER ) * - 50 * + 41 + 82
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-386
SELECT ALL - - 71 DIV - 95 AS col2, - 87
----
0
-87

skipif mysql # not compatible
query II rowsort label-386
SELECT ALL - - 71 / - 95 AS col2, - 87
----
0
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-387
SELECT ALL - CAST( NULL AS SIGNED ) * COALESCE ( + 92, + AVG ( 44 ) * + - 24, + COUNT( * ) * + 60 ) / + NULLIF ( - + 50, + 96 ) + + 75 + 44 / - 50 * - COUNT( * ) - - COALESCE ( + 62, + 0 * - + 79 + + 21 * 39 ), 75 col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL - CAST ( NULL AS INTEGER ) * COALESCE ( + 92, + AVG ( 44 ) * + - 24, + COUNT ( * ) * + 60 ) / + NULLIF ( - + 50, + 96 ) + + 75 + 44 / - 50 * - COUNT ( * ) - - COALESCE ( + 62, + 0 * - + 79 + + 21 * 39 ), 75 col2
----
NULL
75

query I rowsort
SELECT + + 96 col0
----
96

query I rowsort
SELECT + ( 64 ) - - 37 + ( + + 92 ) + - - 60
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - + 89 * + - 83 * ( - - ( - COUNT( DISTINCT - 49 ) ) ) AS col0
----
-7387

skipif mysql # not compatible
query I rowsort label-390
SELECT - + 89 * + - 83 * ( - - ( - COUNT ( DISTINCT - 49 ) ) ) AS col0
----
-7387

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT - + 8 + + - CAST( + 97 AS SIGNED )
----
-105

skipif mysql # not compatible
query I rowsort label-392
SELECT - + 8 + + - CAST ( + 97 AS INTEGER )
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT 82 AS col1, - 35 * COUNT( * )
----
82
-35

skipif mysql # not compatible
query II rowsort label-393
SELECT 82 AS col1, - 35 * COUNT ( * )
----
82
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT + + 96 * - + 81 + + - SUM( DISTINCT - 58 ) AS col2
----
-7718

skipif mysql # not compatible
query I rowsort label-394
SELECT + + 96 * - + 81 + + - SUM ( DISTINCT - 58 ) AS col2
----
-7718

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT + SUM( - - 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-397
SELECT + SUM ( - - 23 ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-398
SELECT - CAST( NULL AS SIGNED ) * + + 12 * + CASE - - COUNT( * ) WHEN + - CAST( - 42 AS SIGNED ) * + 81 THEN 53 / - 51 * - 99 END * + COUNT( * ) AS col0, - ( - 67 ) AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-398
SELECT - CAST ( NULL AS INTEGER ) * + + 12 * + CASE - - COUNT ( * ) WHEN + - CAST ( - 42 AS INTEGER ) * + 81 THEN 53 / - 51 * - 99 END * + COUNT ( * ) AS col0, - ( - 67 ) AS col2
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + - 82 + + COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-399
SELECT + - 82 + + COUNT ( * ) col1
----
-81

query I rowsort
SELECT ALL + 4 + - 25 AS col1
----
-21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT ALL 12 + 42 AS col1, - ( ( + COUNT( * ) ) )
----
54
-1

skipif mysql # not compatible
query II rowsort label-402
SELECT ALL 12 + 42 AS col1, - ( ( + COUNT ( * ) ) )
----
54
-1

query I rowsort
SELECT DISTINCT + 86 + + 62
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-404
SELECT ALL ( - - 7 ) * - COUNT( * ) + - 22 * 61 DIV + CAST( - 26 AS SIGNED ) + 40 AS col1, - 80
----
84
-80

skipif mysql # not compatible
query II rowsort label-404
SELECT ALL ( - - 7 ) * - COUNT ( * ) + - 22 * 61 / + CAST ( - 26 AS INTEGER ) + 40 AS col1, - 80
----
84
-80

query I rowsort
SELECT + 47 * - 99
----
-4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-406
SELECT ALL COUNT( * ) DIV - COUNT( * ) + + COUNT( * ), + 6 DIV - COUNT( * ) col1
----
0
-6

skipif mysql # not compatible
query II rowsort label-406
SELECT ALL COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ), + 6 / - COUNT ( * ) col1
----
0
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-407
SELECT - COALESCE ( + 85, 36 * 8 ) - - + ( - 14 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT - COALESCE ( + 85, 36 * 8 ) - - + ( - 14 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT ALL COUNT( * ) * + 73, 2 * - 67 AS col1
----
73
-134

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL COUNT ( * ) * + 73, 2 * - 67 AS col1
----
73
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + CASE + - 72 WHEN + + COUNT( * ) THEN + - 67 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT + CASE + - 72 WHEN + + COUNT ( * ) THEN + - 67 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT 5 * - MAX( + 10 ) + + 80 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-410
SELECT 5 * - MAX ( + 10 ) + + 80 AS col0
----
30

query II rowsort
SELECT + 16 * + COALESCE ( 84, + + 54, 3 ) AS col1, - 25 * 70 AS col0
----
1344
-1750

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ALL + ( 4 ) DIV + 83 - + + 21
----
-21

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + ( 4 ) / + 83 - + + 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT + ( + - MAX( ALL - + 97 ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-413
SELECT + ( + - MAX ( ALL - + 97 ) ) col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT 69 DIV 52 - + 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-414
SELECT 69 / 52 - + 29 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT CAST( - ( + + 83 ) AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-415
SELECT CAST ( - ( + + 83 ) AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT 67 + - 98 + + - COUNT( * ) DIV + 29
----
-31

skipif mysql # not compatible
query I rowsort label-416
SELECT 67 + - 98 + + - COUNT ( * ) / + 29
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL - MIN( - 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - MIN ( - 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT DISTINCT + SUM( DISTINCT + 77 ) * 31 * + 1 AS col2
----
2387

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT + SUM ( DISTINCT + 77 ) * 31 * + 1 AS col2
----
2387

query I rowsort
SELECT ( - 61 ) - 16 AS col0
----
-77

query II rowsort
SELECT 44 * 72, + 38 AS col0
----
3168
38

query I rowsort
SELECT ALL - 32 * + 39
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-422
SELECT ALL - COALESCE ( - 90, + 71 - - 36 + - 3 + + ( + - 33 ) ) AS col2, - 79 - - 28 - - 73 / - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * 91 + - 56 + + 43 AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL - COALESCE ( - 90, + 71 - - 36 + - 3 + + ( + - 33 ) ) AS col2, - 79 - - 28 - - 73 / - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 91 + - 56 + + 43 AS col1
----
90
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT - COALESCE ( + 68, + + CAST( NULL AS SIGNED ) + - + SUM( 76 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-425
SELECT - COALESCE ( + 68, + + CAST ( NULL AS INTEGER ) + - + SUM ( 76 ) )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-426
SELECT + COUNT( * ) + - CAST( - COALESCE ( + + 12, - - ( + ( 61 ) ), + 61 ) AS SIGNED ) + - - NULLIF ( 85, 7 ) + + 32, COUNT( - + NULLIF ( - 82, - 61 ) ) * + ( NULLIF ( - 0, + 46 ) ) * - ( - + 60 ) DIV + COUNT( * ) + - 72 - 63 + + 52 * 18 * + 84 + + 79 AS col2
----
130
78568

skipif mysql # not compatible
query II rowsort label-426
SELECT + COUNT ( * ) + - CAST ( - COALESCE ( + + 12, - - ( + ( 61 ) ), + 61 ) AS INTEGER ) + - - NULLIF ( 85, 7 ) + + 32, COUNT ( - + NULLIF ( - 82, - 61 ) ) * + ( NULLIF ( - 0, + 46 ) ) * - ( - + 60 ) / + COUNT ( * ) + - 72 - 63 + + 52 * 18 * + 84 + + 79 AS col2
----
130
78568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT 93 + + - ( 42 ) + + 30 + - + 56 - + MAX( ALL NULLIF ( - 89, + 10 ) ) * - + 28 * 19
----
-47323

skipif mysql # not compatible
query I rowsort label-428
SELECT 93 + + - ( 42 ) + + 30 + - + 56 - + MAX ( ALL NULLIF ( - 89, + 10 ) ) * - + 28 * 19
----
-47323

onlyif mysql # DIV for integer division: 
query II rowsort label-429
SELECT ALL 27, 60 DIV - 42 AS col1
----
27
-1

skipif mysql # not compatible
query II rowsort label-429
SELECT ALL 27, 60 / - 42 AS col1
----
27
-1

query I rowsort
SELECT 87 - - 48
----
135

query I rowsort
SELECT DISTINCT - 27 * + - 25
----
675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-432
SELECT DISTINCT - 54 + - + COUNT( * ) - COALESCE ( 51, + + 8 * CAST( NULL AS SIGNED ) ) / MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0, 95 col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-432
SELECT DISTINCT - 54 + - + COUNT ( * ) - COALESCE ( 51, + + 8 * CAST ( NULL AS INTEGER ) ) / MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0, 95 col0
----
NULL
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-433
SELECT 77 + + 53 + - - COALESCE ( - 28, 41 + - + 74 DIV + 90 + COUNT( * ), - + MIN( - + 11 ) ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-433
SELECT 77 + + 53 + - - COALESCE ( - 28, 41 + - + 74 / + 90 + COUNT ( * ), - + MIN ( - + 11 ) ) AS col0
----
102

query I rowsort
SELECT 13 * + 6 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT - COUNT( * ) * + NULLIF ( + 31, 57 * 4 )
----
-31

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( + 31, 57 * 4 )
----
-31

query I rowsort
SELECT 87 + - - 83
----
170

query I rowsort
SELECT NULLIF ( + 94, + + 19 + 48 + - 21 / - 28 * - ( - - 1 ) * + 44 ) - 22
----
72

query I rowsort
SELECT 32 - - 79
----
111

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-440
SELECT - COUNT( * ) * 33 / 20 + - - 65 + + + 25 - + - 68 + 0 * - 72 / - - 64 * COUNT( DISTINCT 41 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT - COUNT ( * ) * 33 / 20 + - - 65 + + + 25 - + - 68 + 0 * - 72 / - - 64 * COUNT ( DISTINCT 41 ) * + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-442
SELECT + 19, CAST( - MAX( + 37 ) AS SIGNED ) + + COUNT( * ) * - 49 * + - MIN( DISTINCT 60 ) * + 7 + 37 AS col1
----
19
20580

skipif mysql # not compatible
query II rowsort label-442
SELECT + 19, CAST ( - MAX ( + 37 ) AS INTEGER ) + + COUNT ( * ) * - 49 * + - MIN ( DISTINCT 60 ) * + 7 + 37 AS col1
----
19
20580

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT 81, 48 + + COUNT( ALL 68 ) + - COUNT( * ) AS col2
----
81
48

skipif mysql # not compatible
query II rowsort label-443
SELECT 81, 48 + + COUNT ( ALL 68 ) + - COUNT ( * ) AS col2
----
81
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT COUNT( * ) DIV - + 32 * + 50 - COUNT( * ) - - - 54
----
-55

skipif mysql # not compatible
query I rowsort label-444
SELECT COUNT ( * ) / - + 32 * + 50 - COUNT ( * ) - - - 54
----
-55

query I rowsort
SELECT ALL + 27 * - 82
----
-2214

query I rowsort
SELECT 21 + + + 3 AS col1
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-447
SELECT - 88 AS col0, - 97 DIV - + 56
----
-88
1

skipif mysql # not compatible
query II rowsort label-447
SELECT - 88 AS col0, - 97 / - + 56
----
-88
1

query I rowsort
SELECT 47 * + - 85 + + 98 AS col0
----
-3897

query I rowsort
SELECT DISTINCT - 36 * + + 55
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT 13 DIV - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-450
SELECT 13 / - 4 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT + AVG ( + 42 ) + + 43 + - ( CASE - 23 WHEN - - 57 THEN + 82 * + - 1 * - - COUNT( * ) END ) * + 42 * + 44 * ( - - 49 ) * + MIN( + + 65 ) + + CAST( - 79 AS SIGNED ) * CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT + AVG ( + 42 ) + + 43 + - ( CASE - 23 WHEN - - 57 THEN + 82 * + - 1 * - - COUNT ( * ) END ) * + 42 * + 44 * ( - - 49 ) * + MIN ( + + 65 ) + + CAST ( - 79 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 0 + + + 13 + 16
----
29

query I rowsort
SELECT + + 73 * 8 + 18 + + 76 AS col2
----
678

query I rowsort
SELECT - - 59 * - 14 + + + 31
----
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT - - CASE + 52 WHEN COUNT( * ) THEN NULL WHEN - COUNT( + - COALESCE ( - 70, - 88 ) ) + 64 THEN + COUNT( * ) DIV 69 + + 45 + + + ( - 48 ) * - + 6 ELSE + 71 * + 31 END
----
2201

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - - CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( + - COALESCE ( - 70, - 88 ) ) + 64 THEN + COUNT ( * ) / 69 + + 45 + + + ( - 48 ) * - + 6 ELSE + 71 * + 31 END
----
2201

query I rowsort
SELECT ALL 55 + - 39 AS col0
----
16

query I rowsort
SELECT - 25 + + - 20
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT NULLIF ( - COUNT( * ), - 17 * CAST( + + 23 AS SIGNED ) * - + 23 * + - 60 - - 59 * + - MAX( ( + 38 ) ) ) * + 25 * 26 + + 86
----
-564

skipif mysql # not compatible
query I rowsort label-458
SELECT NULLIF ( - COUNT ( * ), - 17 * CAST ( + + 23 AS INTEGER ) * - + 23 * + - 60 - - 59 * + - MAX ( ( + 38 ) ) ) * + 25 * 26 + + 86
----
-564

query I rowsort
SELECT 61 * 3 * - 95
----
-17385

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - 8 + + - CASE 22 WHEN - + 57 - + 26 / - + ( + MIN( - COALESCE ( + - NULLIF ( - 88, 80 ), 64 ) ) ) THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT - 8 + + - CASE 22 WHEN - + 57 - + 26 / - + ( + MIN ( - COALESCE ( + - NULLIF ( - 88, 80 ), 64 ) ) ) THEN 8 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 31, + + 48 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT COUNT( * ) + - 71 + - ( 77 ) * + - 83 * + 45 - + NULLIF ( 23, + 50 * + 79 + MIN( - 21 ) + + COUNT( * ) ) AS col1
----
287502

skipif mysql # not compatible
query I rowsort label-462
SELECT COUNT ( * ) + - 71 + - ( 77 ) * + - 83 * + 45 - + NULLIF ( 23, + 50 * + 79 + MIN ( - 21 ) + + COUNT ( * ) ) AS col1
----
287502

query I rowsort
SELECT ALL 83 * + 26 * + 72 AS col2
----
155376

query I rowsort
SELECT DISTINCT 42 + - 77
----
-35

query I rowsort
SELECT 97 + + + 80
----
177

query I rowsort
SELECT 13 * - 29 AS col2
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - COUNT( + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-467
SELECT - COUNT ( + 89 )
----
-1

query I rowsort
SELECT 32 + 66 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - NULLIF ( - SUM( - 44 ), + + NULLIF ( + + AVG ( ALL 7 ), + 70 * + + COUNT( * ) / - 94 - + 91 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-469
SELECT - NULLIF ( - SUM ( - 44 ), + + NULLIF ( + + AVG ( ALL 7 ), + 70 * + + COUNT ( * ) / - 94 - + 91 ) )
----
-44

query I rowsort
SELECT 12 * - 10
----
-120

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - - 0, - ( NULLIF ( + 93, - 98 ) ) )
----
0

query II rowsort
SELECT - 75 * 80, - 43 AS col0
----
-6000
-43

query I rowsort
SELECT ALL + 79 * - 86
----
-6794

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT + 89 * + + MAX( + 10 ) + - - COUNT( * )
----
891

skipif mysql # not compatible
query I rowsort label-475
SELECT + 89 * + + MAX ( + 10 ) + - - COUNT ( * )
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT ALL + - 84 * 70 * - - ( - 9 ) + - 42 + 97 + + - 21 + + + 48 + + + 72 * - CAST( + COUNT( * ) AS SIGNED ) * + - 44 * - 26 * 96 AS col1
----
-7854326

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + - 84 * 70 * - - ( - 9 ) + - 42 + 97 + + - 21 + + + 48 + + + 72 * - CAST ( + COUNT ( * ) AS INTEGER ) * + - 44 * - 26 * 96 AS col1
----
-7854326

query I rowsort
SELECT + - NULLIF ( - + 92, + - 40 ) AS col0
----
92

query I rowsort
SELECT ALL 60 * - - 64 + 6 + + 70 + + ( + + 71 ) AS col1
----
3987

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - - COUNT( * ) * + 69 + + 42 col2
----
111

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - - COUNT ( * ) * + 69 + + 42 col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT DISTINCT + 48 * - + 1 + + 79 DIV 93 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + 48 * - + 1 + + 79 / 93 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT - + 77 - + - COUNT( * ) AS col1, 15
----
-76
15

skipif mysql # not compatible
query II rowsort label-481
SELECT - + 77 - + - COUNT ( * ) AS col1, 15
----
-76
15

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

skipif mysql # not compatible
query I rowsort label-482
SELECT - ( - COUNT ( * ) ) * 75
----
75

query I rowsort
SELECT + 83 * 34 AS col1
----
2822

query I rowsort
SELECT ALL 66 * ( ( 64 ) )
----
4224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-485
SELECT + - 50 * 98 AS col2, CAST( NULL AS SIGNED )
----
-4900
NULL

skipif mysql # not compatible
query II rowsort label-485
SELECT + - 50 * 98 AS col2, CAST ( NULL AS INTEGER )
----
-4900
NULL

query I rowsort
SELECT DISTINCT - + 76 - 63 * 42
----
-2722

query I rowsort
SELECT - 59 + - + 80
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-488
SELECT - ( + ( + - CAST( 48 AS SIGNED ) ) ) * + 56 + + 5 DIV + COUNT( * )
----
2693

skipif mysql # not compatible
query I rowsort label-488
SELECT - ( + ( + - CAST ( 48 AS INTEGER ) ) ) * + 56 + + 5 / + COUNT ( * )
----
2693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT + CAST( NULL AS SIGNED ) + - NULLIF ( 10, - 61 * + 13 / - - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT + CAST ( NULL AS INTEGER ) + - NULLIF ( 10, - 61 * + 13 / - - 69 ) AS col2
----
NULL

query I rowsort
SELECT + 41 * + 41 AS col0
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + COUNT( * ) + - + 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-491
SELECT + COUNT ( * ) + - + 29 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-492
SELECT - NULLIF ( - 38, - CAST( + + COALESCE ( + 16, 76 + 28 + COUNT( * ) ) AS DECIMAL ) ) AS col0, 41 + + 12 AS col0
----
38
53

skipif mysql # not compatible
query II rowsort label-492
SELECT - NULLIF ( - 38, - CAST ( + + COALESCE ( + 16, 76 + 28 + COUNT ( * ) ) AS REAL ) ) AS col0, 41 + + 12 AS col0
----
38
53

query I rowsort
SELECT + 88 * + 94 * + 76 AS col2
----
628672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT COALESCE ( + COUNT( * ), + ( + - COALESCE ( - - 5, + 22 DIV - 23 + + 99 + COUNT( * ) * 98 ) ) * - SUM( + 52 ) ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT COALESCE ( + COUNT ( * ), + ( + - COALESCE ( - - 5, + 22 / - 23 + + 99 + COUNT ( * ) * 98 ) ) * - SUM ( + 52 ) ) * 42
----
42

query I rowsort
SELECT + 58 + + ( + ( 26 ) ) col1
----
84

query II rowsort
SELECT DISTINCT 55 AS col2, - ( + - 64 ) + 23 AS col2
----
55
87

query I rowsort
SELECT + 34 + - ( - 81 )
----
115

query I rowsort
SELECT + 46 + 21 AS col1
----
67

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT + 39 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT + 39 / 83
----
0

query I rowsort
SELECT + 98 + 92 AS col0
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT - NULLIF ( 5, + COUNT( * ) ) + - COUNT( * ) * - CASE CAST( NULL AS SIGNED ) WHEN 52 * 88 + 54 THEN 79 * + 13 WHEN + 51 + - 77 THEN ( - 66 ) * + 38 WHEN + CASE - 72 WHEN + 25 THEN 83 + + 95 / 85 WHEN 38 THEN 86 * + 10 WHEN 90 * 77 THEN NULL ELSE NULL END - - 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT - NULLIF ( 5, + COUNT ( * ) ) + - COUNT ( * ) * - CASE CAST ( NULL AS INTEGER ) WHEN 52 * 88 + 54 THEN 79 * + 13 WHEN + 51 + - 77 THEN ( - 66 ) * + 38 WHEN + CASE - 72 WHEN + 25 THEN 83 + + 95 / 85 WHEN 38 THEN 86 * + 10 WHEN 90 * 77 THEN NULL ELSE NULL END - - 3 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT - 20 DIV 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT - 20 / 26 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT + 74 DIV + ( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-505
SELECT + 74 / + ( 55 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-506
SELECT DISTINCT - COUNT( * ) DIV 91 + 8
----
8

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - COUNT ( * ) / 91 + 8
----
8

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

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 16 / COUNT ( * ) + + 60
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT COUNT( * ) DIV 31 + NULLIF ( - 50, 21 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) / 31 + NULLIF ( - 50, 21 ) AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT ALL 53 DIV + 28 + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL 53 / + 28 + 31 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT CAST( - 58 AS SIGNED ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-511
SELECT CAST ( - 58 AS INTEGER ) col2
----
-58

query I rowsort
SELECT + NULLIF ( 92, + 43 + COALESCE ( - 44, 79 * 8 ) * 3 ) + - 70 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT 97 DIV - COUNT( * ) + 89
----
-8

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 97 / - COUNT ( * ) + 89
----
-8

query I rowsort
SELECT 40 * + 29 + NULLIF ( - 86, ( + 45 ) )
----
1074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT DISTINCT ( - MAX( ALL 81 ) ) * 54 + CASE - CAST( NULL AS SIGNED ) WHEN 75 + + 32 / - 67 THEN NULL ELSE 54 END AS col2
----
-4320

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT ( - MAX ( ALL 81 ) ) * 54 + CASE - CAST ( NULL AS INTEGER ) WHEN 75 + + 32 / - 67 THEN NULL ELSE 54 END AS col2
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT 40 * 57 - 58 * ( - NULLIF ( 59, - COUNT( * ) ) + + 91 )
----
424

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 40 * 57 - 58 * ( - NULLIF ( 59, - COUNT ( * ) ) + + 91 )
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT + MIN( DISTINCT + 89 ) * + SUM( 43 * - 37 + + 27 * - 96 ) - 52
----
-372339

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT + MIN ( DISTINCT + 89 ) * + SUM ( 43 * - 37 + + 27 * - 96 ) - 52
----
-372339

query I rowsort
SELECT COALESCE ( - 92, + 42 )
----
-92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT - 18 DIV - 14
----
1

skipif mysql # not compatible
query I rowsort label-520
SELECT - 18 / - 14
----
1

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

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

query I rowsort
SELECT NULLIF ( 65, + 27 + 99 )
----
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT - ( + CAST( COUNT( * ) AS SIGNED ) ) * + 37 - - 7
----
-30

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + 37 - - 7
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT + 18 + COUNT( * ) * - 54
----
-36

skipif mysql # not compatible
query I rowsort label-525
SELECT + 18 + COUNT ( * ) * - 54
----
-36

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

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

query I rowsort
SELECT DISTINCT + 24 * - 14
----
-336

query I rowsort
SELECT DISTINCT - 69 * 29 AS col1
----
-2001

query I rowsort
SELECT + 82 + - ( - 79 )
----
161

query I rowsort
SELECT ALL + NULLIF ( - 51, 43 + 92 ) * 74
----
-3774

query I rowsort
SELECT 5 * 61 AS col0
----
305

query I rowsort
SELECT 41 * 72
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL 40 + - NULLIF ( + ( + NULLIF ( + 34, + COUNT( * ) ) ), 90 ) * 28
----
-912

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 40 + - NULLIF ( + ( + NULLIF ( + 34, + COUNT ( * ) ) ), 90 ) * 28
----
-912

query I rowsort
SELECT DISTINCT 27 + - 68 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT DISTINCT - + 52 + + CASE 65 WHEN CAST( NULL AS SIGNED ) THEN - CASE COUNT( * ) WHEN 11 + + 57 THEN COUNT( * ) * 48 - - 0 WHEN ( 30 ) THEN NULL ELSE NULL END END * - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - + 52 + + CASE 65 WHEN CAST ( NULL AS INTEGER ) THEN - CASE COUNT ( * ) WHEN 11 + + 57 THEN COUNT ( * ) * 48 - - 0 WHEN ( 30 ) THEN NULL ELSE NULL END END * - 52 col0
----
NULL

query I rowsort
SELECT ALL 32 + 13 AS col1
----
45

query I rowsort
SELECT - 2 * 9
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-538
SELECT + COUNT( * ) / + CASE - 61 * - 27 WHEN ( - 42 ) / + CAST( NULL AS SIGNED ) THEN CASE + 70 WHEN CAST( NULL AS SIGNED ) * - 42 THEN 84 + COUNT( ALL 49 ) WHEN 6 + 97 THEN + 5 * 16 END WHEN COUNT( * ) THEN 86 END - COUNT( ALL 62 + CAST( 10 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT + COUNT ( * ) / + CASE - 61 * - 27 WHEN ( - 42 ) / + CAST ( NULL AS INTEGER ) THEN CASE + 70 WHEN CAST ( NULL AS INTEGER ) * - 42 THEN 84 + COUNT ( ALL 49 ) WHEN 6 + 97 THEN + 5 * 16 END WHEN COUNT ( * ) THEN 86 END - COUNT ( ALL 62 + CAST ( 10 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT NULLIF ( 90, + COUNT( DISTINCT 96 ) ) * 86
----
7740

skipif mysql # not compatible
query I rowsort label-539
SELECT NULLIF ( 90, + COUNT ( DISTINCT 96 ) ) * 86
----
7740

query I rowsort
SELECT 36 + + 22 * 57 AS col0
----
1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT + MAX( 86 ) DIV - ( 47 + MIN( - 7 ) ) + + 20 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-541
SELECT + MAX ( 86 ) / - ( 47 + MIN ( - 7 ) ) + + 20 AS col2
----
18

query I rowsort
SELECT ALL + 94 - - ( 83 )
----
177

query I rowsort
SELECT 13 * 75 AS col2
----
975

query I rowsort
SELECT ALL - 72 * 13 AS col0
----
-936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT DISTINCT - CAST( - MAX( DISTINCT 21 ) AS SIGNED ) - - 72 col2
----
93

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT - CAST ( - MAX ( DISTINCT 21 ) AS INTEGER ) - - 72 col2
----
93

query I rowsort
SELECT ALL + + 51 * 75 AS col0
----
3825

query I rowsort
SELECT ALL - - NULLIF ( + 65, 86 )
----
65

query I rowsort
SELECT + 84 * 41
----
3444

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

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

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

query I rowsort
SELECT 90 + 45 * - 78 AS col0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT 25 * + MIN( 15 ) * + 77 AS col2
----
28875

skipif mysql # not compatible
query I rowsort label-552
SELECT 25 * + MIN ( 15 ) * + 77 AS col2
----
28875

query I rowsort
SELECT 96 * 34 * 80 AS col1
----
261120

query I rowsort
SELECT DISTINCT 53 * + + 21 AS col0
----
1113

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT 15 DIV - 12
----
-1

skipif mysql # not compatible
query I rowsort label-555
SELECT 15 / - 12
----
-1

query I rowsort
SELECT 25 + - 67
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT 41 DIV + MIN( 12 )
----
3

skipif mysql # not compatible
query I rowsort label-557
SELECT 41 / + MIN ( 12 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT ALL - COUNT( * ) + - CASE 14 WHEN - 22 - - 80 THEN + 94 + - 50 WHEN 48 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL - COUNT ( * ) + - CASE 14 WHEN - 22 - - 80 THEN + 94 + - 50 WHEN 48 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT 12 + + COALESCE ( - COUNT( * ), - 15 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-559
SELECT 12 + + COALESCE ( - COUNT ( * ), - 15 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT 21 + - CASE ( 20 ) WHEN - COUNT( * ) THEN 24 + + 91 WHEN - 93 + - 33 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT 21 + - CASE ( 20 ) WHEN - COUNT ( * ) THEN 24 + + 91 WHEN - 93 + - 33 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-561
SELECT 31 + + + 62 DIV + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-561
SELECT 31 + + + 62 / + COUNT ( * )
----
93

query I rowsort
SELECT DISTINCT - CASE WHEN NULL IS NOT NULL THEN - 50 ELSE - 72 - ( 15 ) END + 75 AS col1
----
162

query I rowsort
SELECT DISTINCT + 2 + + 13 col2
----
15

query I rowsort
SELECT ALL 86 + 18
----
104

query I rowsort
SELECT 47 + - 48
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT ALL - CAST( 23 AS SIGNED ) * 62 AS col2
----
-1426

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - CAST ( 23 AS INTEGER ) * 62 AS col2
----
-1426

query I rowsort
SELECT ALL + NULLIF ( + 4, + 97 + + 32 ) * 80
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT - 75 * - + 37 * - COUNT( * ) + - 1 * + 13
----
-2788

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - 75 * - + 37 * - COUNT ( * ) + - 1 * + 13
----
-2788

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

skipif mysql # not compatible
query I rowsort label-569
SELECT + 0 + + COUNT ( ALL - 58 ) * - 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT NULLIF ( - 73, ( NULLIF ( 41, CASE 44 WHEN + 58 * + COUNT( * ) THEN NULL WHEN 19 - - 66 THEN 77 * + CAST( NULL AS SIGNED ) WHEN - 30 / - SUM( - 14 ) THEN + 27 ELSE NULL END ) ) * + COUNT( * ) ) + + 12
----
-61

skipif mysql # not compatible
query I rowsort label-570
SELECT NULLIF ( - 73, ( NULLIF ( 41, CASE 44 WHEN + 58 * + COUNT ( * ) THEN NULL WHEN 19 - - 66 THEN 77 * + CAST ( NULL AS INTEGER ) WHEN - 30 / - SUM ( - 14 ) THEN + 27 ELSE NULL END ) ) * + COUNT ( * ) ) + + 12
----
-61

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

query I rowsort
SELECT CASE + + 8 WHEN 47 THEN NULL ELSE - 53 + + 22 END + + 69
----
38

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

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + - ( + COUNT ( * ) ) + - 8 AS col2
----
-9

query I rowsort
SELECT 59 + 9 * + 75 AS col0
----
734

query I rowsort
SELECT 49 + 77 * + 34
----
2667

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL + COALESCE ( + COUNT( * ), + 0 ) - 62 * MIN( - 78 * - 58 )
----
-280487

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COALESCE ( + COUNT ( * ), + 0 ) - 62 * MIN ( - 78 * - 58 )
----
-280487

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT COUNT( * ) + - - 78 + - 33 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-577
SELECT COUNT ( * ) + - - 78 + - 33 AS col1
----
46

query I rowsort
SELECT ALL - COALESCE ( - + 47, 33 ) * 5 AS col0
----
235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-579
SELECT + - 6 * + + NULLIF ( - 30, ( 17 ) * + CAST( NULL AS SIGNED ) ) - - 82 * - 24 + CAST( COUNT( * ) + 70 DIV + 89 AS SIGNED ) AS col1
----
-1787

skipif mysql # not compatible
query I rowsort label-579
SELECT + - 6 * + + NULLIF ( - 30, ( 17 ) * + CAST ( NULL AS INTEGER ) ) - - 82 * - 24 + CAST ( COUNT ( * ) + 70 / + 89 AS INTEGER ) AS col1
----
-1787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT - CAST( ( - 43 ) AS SIGNED ) + 16 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-580
SELECT - CAST ( ( - 43 ) AS INTEGER ) + 16 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT - 65 + + CAST( 33 AS SIGNED ) + 5 * + 95 col2
----
443

skipif mysql # not compatible
query I rowsort label-581
SELECT - 65 + + CAST ( 33 AS INTEGER ) + 5 * + 95 col2
----
443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-582
SELECT CASE + 14 WHEN CAST( + 33 AS SIGNED ) * 50 THEN - 64 * SUM( 59 ) END * - CASE + 64 WHEN 87 THEN ( 5 ) * + NULLIF ( 72 + 37, 81 * CAST( NULL AS DECIMAL ) ) WHEN + COUNT( * ) * 52 THEN NULL ELSE - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT CASE + 14 WHEN CAST ( + 33 AS INTEGER ) * 50 THEN - 64 * SUM ( 59 ) END * - CASE + 64 WHEN 87 THEN ( 5 ) * + NULLIF ( 72 + 37, 81 * CAST ( NULL AS REAL ) ) WHEN + COUNT ( * ) * 52 THEN NULL ELSE - 37 END
----
NULL

query I rowsort
SELECT 32 * - 31 * + 52 col0
----
-51584

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT ALL - 35 AS col2, MAX( DISTINCT COALESCE ( + 87, 99 * 92 ) ) AS col0
----
-35
87

skipif mysql # not compatible
query II rowsort label-584
SELECT ALL - 35 AS col2, MAX ( DISTINCT COALESCE ( + 87, 99 * 92 ) ) AS col0
----
-35
87

onlyif mysql # DIV for integer division: 
query II rowsort label-585
SELECT DISTINCT - 38, - 8 DIV - 79 - 88 DIV 30 AS col0
----
-38
-2

skipif mysql # not compatible
query II rowsort label-585
SELECT DISTINCT - 38, - 8 / - 79 - 88 / 30 AS col0
----
-38
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-586
SELECT ALL - 77, 47 DIV - 67 AS col2
----
-77
0

skipif mysql # not compatible
query II rowsort label-586
SELECT ALL - 77, 47 / - 67 AS col2
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL ( + 33 ) * - SUM( ( 33 ) )
----
-1089

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL ( + 33 ) * - SUM ( ( 33 ) )
----
-1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT ALL MIN( DISTINCT + 57 ) DIV + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL MIN ( DISTINCT + 57 ) / + COUNT ( * ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT DISTINCT - 77 * - 23 * - COUNT( 44 ) + COUNT( * ) DIV + 4 AS col2
----
-1771

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - 77 * - 23 * - COUNT ( 44 ) + COUNT ( * ) / + 4 AS col2
----
-1771

query I rowsort
SELECT + 59 + 47
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT COUNT( - 26 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-592
SELECT COUNT ( - 26 ) col0
----
1

query I rowsort
SELECT + 23 * 84 AS col2
----
1932

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - CASE + 98 WHEN + 18 THEN NULL WHEN + 30 THEN + 6 ELSE - COUNT( + 77 ) - + 77 END
----
78

skipif mysql # not compatible
query I rowsort label-595
SELECT - CASE + 98 WHEN + 18 THEN NULL WHEN + 30 THEN + 6 ELSE - COUNT ( + 77 ) - + 77 END
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL 5 + SUM( 27 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 5 + SUM ( 27 ) AS col0
----
32

query I rowsort
SELECT ALL + 16 + 28 * - 89 + + 41 AS col1
----
-2435

query I rowsort
SELECT ALL + 89 * + 17 * 39 AS col0
----
59007

onlyif mysql # DIV for integer division: 
query II rowsort label-599
SELECT 20 AS col1, ( - 13 ) + 86 DIV 14
----
20
-7

skipif mysql # not compatible
query II rowsort label-599
SELECT 20 AS col1, ( - 13 ) + 86 / 14
----
20
-7

query I rowsort
SELECT ALL + 16 + 97 + + 26
----
139

query I rowsort
SELECT + 23 - - 62
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-602
SELECT - CAST( NULL AS SIGNED ), 99 * 70 - - CASE ( + 10 ) + 14 * 15 WHEN - 66 * + COUNT( * ) THEN NULL ELSE - 25 + + 43 END AS col2
----
NULL
6948

skipif mysql # not compatible
query II rowsort label-602
SELECT - CAST ( NULL AS INTEGER ), 99 * 70 - - CASE ( + 10 ) + 14 * 15 WHEN - 66 * + COUNT ( * ) THEN NULL ELSE - 25 + + 43 END AS col2
----
NULL
6948

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT - 20 DIV 19 + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-604
SELECT - 20 / 19 + 48 AS col0
----
47

query I rowsort
SELECT - - 16 * 57 col0
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT + + 9 * + COALESCE ( + 77, + 99 DIV 73 + 22 * + 63 ) * - 43 + - COUNT( * ) AS col2
----
-29800

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + + 9 * + COALESCE ( + 77, + 99 / 73 + 22 * + 63 ) * - 43 + - COUNT ( * ) AS col2
----
-29800

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT + + MIN( ALL - 83 ) - 54 * + 30
----
-1703

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT + + MIN ( ALL - 83 ) - 54 * + 30
----
-1703

query I rowsort
SELECT - 78 * + ( + + 54 )
----
-4212

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT + CASE + 3 WHEN 29 * CASE WHEN NULLIF ( 59, 21 ) * - 43 - 59 IS NOT NULL THEN 52 + 38 / - COUNT( * ) WHEN + 59 <= ( NULL ) THEN NULL END + + MIN( DISTINCT 71 + CAST( NULL AS SIGNED ) / 14 ) THEN - 62 * - 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT + CASE + 3 WHEN 29 * CASE WHEN NULLIF ( 59, 21 ) * - 43 - 59 IS NOT NULL THEN 52 + 38 / - COUNT ( * ) WHEN + 59 <= ( NULL ) THEN NULL END + + MIN ( DISTINCT 71 + CAST ( NULL AS INTEGER ) / 14 ) THEN - 62 * - 19 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 32 AS col1, - 70 + + - 81 * 43
----
32
-3553

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT MIN( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-612
SELECT MIN ( ALL - 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-613
SELECT ALL CASE CAST( + SUM( DISTINCT 25 ) AS DECIMAL ) WHEN 2 * 29 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL CASE CAST ( + SUM ( DISTINCT 25 ) AS REAL ) WHEN 2 * 29 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT - COALESCE ( + 46, + 55 DIV + NULLIF ( 2 * MIN( DISTINCT - 14 ) + CASE + ( + ( - 1 ) ) WHEN 97 THEN NULLIF ( 18, + 53 ) END, + 15 DIV - 79 + - 71 ) - + 85 * 55 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - COALESCE ( + 46, + 55 / + NULLIF ( 2 * MIN ( DISTINCT - 14 ) + CASE + ( + ( - 1 ) ) WHEN 97 THEN NULLIF ( 18, + 53 ) END, + 15 / - 79 + - 71 ) - + 85 * 55 ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT - 67 + 44 - - CASE 82 WHEN - COALESCE ( 79, 24 + 83 ) * 43 THEN ( + CAST( + 92 AS SIGNED ) ) END + MAX( ALL 36 ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT - 67 + 44 - - CASE 82 WHEN - COALESCE ( 79, 24 + 83 ) * 43 THEN ( + CAST ( + 92 AS INTEGER ) ) END + MAX ( ALL 36 ) * - 20
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT - CASE + ( 57 ) WHEN - AVG ( DISTINCT - 71 ) THEN COALESCE ( - 82, COUNT( * ) ) ELSE NULL END + ( + ( - 97 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT - CASE + ( 57 ) WHEN - AVG ( DISTINCT - 71 ) THEN COALESCE ( - 82, COUNT ( * ) ) ELSE NULL END + ( + ( - 97 ) ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( + 93, + ( 70 ), NULLIF ( + 15, 79 + - 94 * ( - 28 ) ) * + 25 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * + 96 * ( 85 ) + - 43
----
8117

skipif mysql # not compatible
query I rowsort label-619
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 96 * ( 85 ) + - 43
----
8117

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT - COUNT( * ) * + + 27 + - 10 + + 28 * 65 col2
----
1783

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - COUNT ( * ) * + + 27 + - 10 + + 28 * 65 col2
----
1783

query I rowsort
SELECT + 59 * - 12 * - - 64
----
-45312

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL + 0 * - SUM( DISTINCT + 16 ) * + 46 + - 3 * 62 + + 79
----
-107

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + 0 * - SUM ( DISTINCT + 16 ) * + 46 + - 3 * 62 + + 79
----
-107

query I rowsort
SELECT DISTINCT ( + 46 ) * + ( - 53 ) AS col2
----
-2438

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - 5 + - - SUM( DISTINCT - CASE - - 80 WHEN + 11 THEN NULL ELSE 6 END ) + ( + 43 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-626
SELECT - 5 + - - SUM ( DISTINCT - CASE - - 80 WHEN + 11 THEN NULL ELSE 6 END ) + ( + 43 ) col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT + 23 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-627
SELECT + 23 / + - 68
----
0

query I rowsort
SELECT + CASE - 12 WHEN 65 THEN + 49 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT + 93 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-629
SELECT + 93 / + 58
----
1

query II rowsort
SELECT + ( + 76 ) col2, + 45 + 90
----
76
135

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT 16 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 16 / - 28
----
0

query I rowsort
SELECT ALL - 57 * ( - 33 )
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL COALESCE ( - + 50, - - COUNT( * ) + 26 + 13, - MIN( 47 ) ) * CASE + MAX( + ( 84 ) ) * + 94 + - 30 WHEN + 74 THEN 2 * 38 WHEN COUNT( ALL 25 ) THEN NULL ELSE NULL END - ( - 97 ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL COALESCE ( - + 50, - - COUNT ( * ) + 26 + 13, - MIN ( 47 ) ) * CASE + MAX ( + ( 84 ) ) * + 94 + - 30 WHEN + 74 THEN 2 * 38 WHEN COUNT ( ALL 25 ) THEN NULL ELSE NULL END - ( - 97 ) / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 57 + + - 64 AS col2
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT - CASE - 64 WHEN + 36 THEN 46 * COUNT( * ) WHEN 34 THEN + 63 DIV - 47 - 61 ELSE 32 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-636
SELECT - CASE - 64 WHEN + 36 THEN 46 * COUNT ( * ) WHEN 34 THEN + 63 / - 47 - 61 ELSE 32 END AS col1
----
-32

query I rowsort
SELECT + - CASE - 92 WHEN + + 94 THEN 84 ELSE NULL END + 28 * 32
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT + 71 + COALESCE ( - CAST( 0 AS SIGNED ), - 23 + + ( 74 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-640
SELECT + 71 + COALESCE ( - CAST ( 0 AS INTEGER ), - 23 + + ( 74 ) ) AS col0
----
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT - 11 + 64 * + - COALESCE ( 85, 39, 35 * 29 ) + 18 DIV 18
----
-5450

skipif mysql # not compatible
query I rowsort label-642
SELECT - 11 + 64 * + - COALESCE ( 85, 39, 35 * 29 ) + 18 / 18
----
-5450

query I rowsort
SELECT - - 80 + 68
----
148

query I rowsort
SELECT - + ( - + ( - - 22 ) ) * - - 63 + - 52 col0
----
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT CAST( + COALESCE ( - NULLIF ( - COUNT( - 82 ), + CAST( NULL AS SIGNED ) ), 35, 41, + 14 * + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-645
SELECT CAST ( + COALESCE ( - NULLIF ( - COUNT ( - 82 ), + CAST ( NULL AS INTEGER ) ), 35, 41, + 14 * + COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 57 * - 6 * - 83 AS col0
----
28386

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL + COALESCE ( - - COUNT( * ), - 38 * 68 * 68, + 68 ) + 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + COALESCE ( - - COUNT ( * ), - 38 * 68 * 68, + 68 ) + 50 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT ALL + - 27 + - - 74 * - - 23 DIV - COUNT( ALL + 4 ) col2
----
-1729

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL + - 27 + - - 74 * - - 23 / - COUNT ( ALL + 4 ) col2
----
-1729

query I rowsort
SELECT 22 * - 48 AS col2
----
-1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT DISTINCT + CASE - MAX( DISTINCT ( - + 7 ) ) WHEN - CAST( NULL AS SIGNED ) / 99 THEN + 34 WHEN 7 THEN NULL WHEN - 8 * - 64 THEN NULL END + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT + CASE - MAX ( DISTINCT ( - + 7 ) ) WHEN - CAST ( NULL AS INTEGER ) / 99 THEN + 34 WHEN 7 THEN NULL WHEN - 8 * - 64 THEN NULL END + 43 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT ALL + 60 + + - 47 + - - COUNT( ( CAST( NULL AS SIGNED ) ) ) col1
----
13

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL + 60 + + - 47 + - - COUNT ( ( CAST ( NULL AS INTEGER ) ) ) col1
----
13

query II rowsort
SELECT ALL - 86, 20 AS col0
----
-86
20

query I rowsort
SELECT ALL 11 + 4 AS col2
----
15

query I rowsort
SELECT ALL 63 * - - 74 AS col1
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT CASE + 73 WHEN ( 9 ) THEN + - 47 WHEN 80 THEN NULL ELSE NULL END + COUNT( * ) / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT CASE + 73 WHEN ( 9 ) THEN + - 47 WHEN 80 THEN NULL ELSE NULL END + COUNT ( * ) / 43
----
NULL

query I rowsort
SELECT ALL - 98 - - + 76 - - 89 * - 40
----
-3582

query I rowsort
SELECT 40 * + 13 AS col0
----
520

query I rowsort
SELECT ALL 28 * + - 5 AS col1
----
-140

query I rowsort
SELECT CASE + ( - 66 ) WHEN 24 / + COALESCE ( 6, 45 * 64, - 15 / + 14 ) + 75 THEN 2 * - 15 ELSE NULL END + 9 / + 57
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ( + COUNT( * ) ) * + 26 * - 36
----
-936

skipif mysql # not compatible
query I rowsort label-662
SELECT ( + COUNT ( * ) ) * + 26 * - 36
----
-936

query I rowsort
SELECT + NULLIF ( + 32, - - 88 + + 49 / + 26 * - 83 )
----
32

query I rowsort
SELECT DISTINCT CASE + 16 WHEN + ( 89 ) THEN NULL ELSE + 96 END col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + COALESCE ( + ( - 25 ), - 82 * - COUNT( * ) * + 46 + - 14 )
----
-25

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + COALESCE ( + ( - 25 ), - 82 * - COUNT ( * ) * + 46 + - 14 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL MIN( ALL - + 54 ) * + MAX( - - 4 ) * - 30 + + 44 AS col0
----
6524

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL MIN ( ALL - + 54 ) * + MAX ( - - 4 ) * - 30 + + 44 AS col0
----
6524

query I rowsort
SELECT - 69 * + + 1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - COUNT( * ) * - + 47 * + 20 + + COUNT( + 8 )
----
941

skipif mysql # not compatible
query I rowsort label-668
SELECT - COUNT ( * ) * - + 47 * + 20 + + COUNT ( + 8 )
----
941

query I rowsort
SELECT + 22 - - 47 * 28 * - 73
----
-96046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL - 95 + + 94 + - 47 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - 95 + + 94 + - 47 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 43, + 23 )
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-672
SELECT ALL + NULLIF ( - 12, - - 32 / + ( + 26 ) + 9 ) + 26 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + NULLIF ( - 12, - - 32 / + ( + 26 ) + 9 ) + 26 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( 18 ) * + 97 * - - 39
----
68094

query II rowsort
SELECT - 17, ( - ( 89 ) ) * 80 AS col0
----
-17
-7120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT DISTINCT 27 + 47 * - - CAST( - 32 AS SIGNED )
----
-1477

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT 27 + 47 * - - CAST ( - 32 AS INTEGER )
----
-1477

query I rowsort
SELECT ALL 1 + - 71
----
-70

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

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL COUNT ( * ) + 91 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) * - COUNT( * ) + + + ( + 89 ) DIV - 26
----
-5

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) * - COUNT ( * ) + + + ( + 89 ) / - 26
----
-5

query I rowsort
SELECT ALL + - 24 + + 99
----
75

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

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

query I rowsort
SELECT 6 * + 84 col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-682
SELECT ALL 20 AS col2, - 44 - + 85 + + CASE + ( - 33 ) WHEN - MIN( ALL + 64 ) THEN - 48 END + + 78 AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-682
SELECT ALL 20 AS col2, - 44 - + 85 + + CASE + ( - 33 ) WHEN - MIN ( ALL + 64 ) THEN - 48 END + + 78 AS col0
----
20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT ALL + 65 + 35 * 65 / 70 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL + 65 + 35 * 65 / 70 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT ( + 6 ) + ( + COUNT( * ) ) AS col2, 62 AS col0
----
7
62

skipif mysql # not compatible
query II rowsort label-684
SELECT ( + 6 ) + ( + COUNT ( * ) ) AS col2, 62 AS col0
----
7
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT - ( 95 ) * + COUNT( * ) * + 42 DIV + 3 AS col2
----
-1330

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT - ( 95 ) * + COUNT ( * ) * + 42 / + 3 AS col2
----
-1330

query I rowsort
SELECT 65 * - + 75 + + ( - 60 )
----
-4935

query I rowsort
SELECT 60 * - 75 col1
----
-4500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT ALL 6 DIV SUM( 91 ) * + 31 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 6 / SUM ( 91 ) * + 31 / 26
----
0

query I rowsort
SELECT ALL + 29 - - 77
----
106

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-691
SELECT DISTINCT COUNT( * ) * + 81, 75 AS col0
----
81
75

skipif mysql # not compatible
query II rowsort label-691
SELECT DISTINCT COUNT ( * ) * + 81, 75 AS col0
----
81
75

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

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + COUNT ( * ) * 34 / + COUNT ( * ) AS col0
----
34

query II rowsort
SELECT 93 AS col2, + 21 AS col1
----
93
21

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT 28 AS col1, MIN( ALL - 59 ) col1
----
28
-59

skipif mysql # not compatible
query II rowsort label-694
SELECT 28 AS col1, MIN ( ALL - 59 ) col1
----
28
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-695
SELECT 40 DIV - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-695
SELECT 40 / - 36 AS col2
----
-1

query I rowsort
SELECT 49 + 41 + + - 41 + + 0 * + ( ( 48 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT 85 * - - 41 * COUNT( * )
----
3485

skipif mysql # not compatible
query I rowsort label-697
SELECT 85 * - - 41 * COUNT ( * )
----
3485

query II rowsort
SELECT + 7 AS col0, 14 AS col0
----
7
14

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT ALL - 27, + SUM( + 86 ) AS col2
----
-27
86

skipif mysql # not compatible
query II rowsort label-699
SELECT ALL - 27, + SUM ( + 86 ) AS col2
----
-27
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-700
SELECT 72 - + CAST( + 12 AS SIGNED ) + + 85 + - COUNT( * ) + + 66 DIV 66 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-700
SELECT 72 - + CAST ( + 12 AS INTEGER ) + + 85 + - COUNT ( * ) + + 66 / 66 AS col0
----
145

query I rowsort
SELECT 3 - 53 - 54 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-702
SELECT + + COUNT( * ) AS col2, - NULLIF ( + ( - - 94 ), + 91 + - 30 ) / + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-702
SELECT + + COUNT ( * ) AS col2, - NULLIF ( + ( - - 94 ), + 91 + - 30 ) / + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL - CASE ( + - 76 ) WHEN 32 THEN NULL WHEN + 59 THEN - - 49 * COUNT( * ) + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL - CASE ( + - 76 ) WHEN 32 THEN NULL WHEN + 59 THEN - - 49 * COUNT ( * ) + 96 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 66 * 73 + + - COUNT( * )
----
4817

skipif mysql # not compatible
query I rowsort label-705
SELECT + 66 * 73 + + - COUNT ( * )
----
4817

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

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

query I rowsort
SELECT + 19 + + 71
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-708
SELECT 72 - NULLIF ( - 65, - CAST( 96 AS SIGNED ) * - 47 ) col2
----
137

skipif mysql # not compatible
query I rowsort label-708
SELECT 72 - NULLIF ( - 65, - CAST ( 96 AS INTEGER ) * - 47 ) col2
----
137

query II rowsort
SELECT - + 87 AS col2, 60 * + 47 + + - 50 AS col1
----
-87
2770

query II rowsort
SELECT 47, 18 AS col1
----
47
18

query I rowsort
SELECT DISTINCT - - 18 + CASE - 37 WHEN 58 THEN NULL ELSE - 99 END * - 80 + 40 col0
----
7978

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL - NULLIF ( + + COALESCE ( + 24, + 20 * + 55 * + COUNT( * ) * 40 ), - 72 * 49 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - NULLIF ( + + COALESCE ( + 24, + 20 * + 55 * + COUNT ( * ) * 40 ), - 72 * 49 ) AS col0
----
-24

query I rowsort
SELECT ALL 13 + 91 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT + - COUNT( * ) + 33 * + - 68
----
-2245

skipif mysql # not compatible
query I rowsort label-714
SELECT + - COUNT ( * ) + 33 * + - 68
----
-2245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT 57 DIV MAX( + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT 57 / MAX ( + 68 )
----
0

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

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

query I rowsort
SELECT - + 17 * - 64 * 33
----
35904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT + 5 * CAST( NULL AS SIGNED ) / NULLIF ( + 81, + 3 * - 28 - SUM( ALL - 77 ) ) + + CASE - COALESCE ( - 70, + 90 ) + CASE 88 + + 20 * + 80 WHEN - 64 / - 87 THEN - 16 * + CAST( NULL AS SIGNED ) WHEN 49 THEN - 53 ELSE NULL END WHEN + 51 THEN 26 WHEN 82 THEN NULL END * COALESCE ( NULLIF ( - 92, 15 ), - COUNT( * ), + 57 / 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT + 5 * CAST ( NULL AS INTEGER ) / NULLIF ( + 81, + 3 * - 28 - SUM ( ALL - 77 ) ) + + CASE - COALESCE ( - 70, + 90 ) + CASE 88 + + 20 * + 80 WHEN - 64 / - 87 THEN - 16 * + CAST ( NULL AS INTEGER ) WHEN 49 THEN - 53 ELSE NULL END WHEN + 51 THEN 26 WHEN 82 THEN NULL END * COALESCE ( NULLIF ( - 92, 15 ), - COUNT ( * ), + 57 / 54 )
----
NULL

query I rowsort
SELECT ALL 75 * 6
----
450

query I rowsort
SELECT ALL 1 + 9 + - 99 * - + 17 AS col1
----
1693

query I rowsort
SELECT + 6 * + - 49
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + CASE + MAX( + 69 ) WHEN + 98 THEN 54 END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT + CASE + MAX ( + 69 ) WHEN + 98 THEN 54 END + - COUNT ( * ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-723
SELECT - MAX ( + - 7 )
----
7

query I rowsort
SELECT ALL 65 * - ( - 36 )
----
2340

query I rowsort
SELECT + 76 * - + 2 * 85
----
-12920

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT + COALESCE ( + 30, - 66 * 52 DIV - 15 + + ( + 45 ) + CASE 87 WHEN 21 THEN 29 WHEN 14 THEN 82 * - COUNT( * ) WHEN + 68 THEN NULL END ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-727
SELECT + COALESCE ( + 30, - 66 * 52 / - 15 + + ( + 45 ) + CASE 87 WHEN 21 THEN 29 WHEN 14 THEN 82 * - COUNT ( * ) WHEN + 68 THEN NULL END ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + 46 * NULLIF ( + 60, + - 36 * - 35 * COUNT( * ) + + 24 + 3 )
----
2760

skipif mysql # not compatible
query I rowsort label-728
SELECT + 46 * NULLIF ( + 60, + - 36 * - 35 * COUNT ( * ) + + 24 + 3 )
----
2760

query I rowsort
SELECT CASE - COALESCE ( - NULLIF ( 27, 88 ), - + 42 ) WHEN - AVG ( 65 ) THEN - 57 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + COALESCE ( - 74, - COUNT( * ) ) + + 15 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-730
SELECT + COALESCE ( - 74, - COUNT ( * ) ) + + 15 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-731
SELECT + COALESCE ( + 99, CAST( NULL AS SIGNED ) - 72 - - 38 ), + 79 + - - 46 * 30 AS col1
----
99
1459

skipif mysql # not compatible
query II rowsort label-731
SELECT + COALESCE ( + 99, CAST ( NULL AS INTEGER ) - 72 - - 38 ), + 79 + - - 46 * 30 AS col1
----
99
1459

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + 32 * 4 * - - 14 + - + COUNT( * ) + + 12 * - COUNT( * )
----
1779

skipif mysql # not compatible
query I rowsort label-732
SELECT + 32 * 4 * - - 14 + - + COUNT ( * ) + + 12 * - COUNT ( * )
----
1779

query I rowsort
SELECT DISTINCT + 53 * + 61
----
3233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT DISTINCT COALESCE ( - ( - - 17 ), 69, - 96 * + 68 * 69 + 53 + ( 31 + ( + COUNT( * ) ) ) * + ( ( - 76 ) + + 7 ), - 43 ) DIV 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT COALESCE ( - ( - - 17 ), 69, - 96 * + 68 * 69 + 53 + ( 31 + ( + COUNT ( * ) ) ) * + ( ( - 76 ) + + 7 ), - 43 ) / 13 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 44 * + ( - 79 )
----
-3476

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT 51 DIV - 15
----
-3

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 51 / - 15
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT - CASE + 33 WHEN + 72 THEN + + 63 * + - 11 ELSE - 66 END DIV - - 22 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-737
SELECT - CASE + 33 WHEN + 72 THEN + + 63 * + - 11 ELSE - 66 END / - - 22 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL + COALESCE ( - + 74, + COUNT( * ) + - 67 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL + COALESCE ( - + 74, + COUNT ( * ) + - 67 ) AS col0
----
-74

query I rowsort
SELECT - - 8 + + ( - + 72 )
----
-64

query I rowsort
SELECT - 64 * - 93
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT - NULLIF ( + SUM( - 38 ), + 30 ) * 57 + - 81 - - 56 col2
----
2141

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - NULLIF ( + SUM ( - 38 ), + 30 ) * 57 + - 81 - - 56 col2
----
2141

query I rowsort
SELECT DISTINCT + + NULLIF ( + 99, - 14 * 32 )
----
99

query I rowsort
SELECT - 87 + 45 + 50 AS col1
----
8

query I rowsort
SELECT ALL - + 58 * 2 + - + 80 + 33
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT - - 25 * 82 * + - 7 + SUM( DISTINCT + ( 58 ) ) AS col2
----
-14292

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - - 25 * 82 * + - 7 + SUM ( DISTINCT + ( 58 ) ) AS col2
----
-14292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT ALL + 12 + - 33 + + 6 - - MIN( ALL - 45 ) * + COUNT( * ) DIV 46 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + 12 + - 33 + + 6 - - MIN ( ALL - 45 ) * + COUNT ( * ) / 46 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT - + 32 * 14, - COUNT( * ) * - 87 AS col2
----
-448
87

skipif mysql # not compatible
query II rowsort label-747
SELECT - + 32 * 14, - COUNT ( * ) * - 87 AS col2
----
-448
87

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

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

query II rowsort
SELECT ALL - 52 + - 41 AS col0, 88 * - 16 * - 58
----
-93
81664

query II rowsort
SELECT - 20 - - 44 AS col0, - 9
----
24
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT - 33 DIV - 16
----
2

skipif mysql # not compatible
query I rowsort label-751
SELECT - 33 / - 16
----
2

query I rowsort
SELECT ALL COALESCE ( - + 84, 74 * + 50 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-753
SELECT - MAX( ALL + + CAST( 70 AS SIGNED ) ) AS col0, - 74
----
-70
-74

skipif mysql # not compatible
query II rowsort label-753
SELECT - MAX ( ALL + + CAST ( 70 AS INTEGER ) ) AS col0, - 74
----
-70
-74

query I rowsort
SELECT ALL + NULLIF ( 21, - 88 ) * + 25
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - 47 - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - 47 - - COUNT ( * )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT ALL 88 DIV + ( - - 33 )
----
2

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 88 / + ( - - 33 )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-757
SELECT ALL CAST( NULL AS DECIMAL ), 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-757
SELECT ALL CAST ( NULL AS REAL ), 1 AS col0
----
NULL
1

query I rowsort
SELECT - COALESCE ( - + 73, + 20 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT ALL 52 DIV - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL 52 / - 47 AS col2
----
-1

query I rowsort
SELECT - 17 + + 93
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT + COUNT( * ) * + ( - 62 ) AS col0, - 22 + NULLIF ( 6, 28 ) AS col1
----
-62
-16

skipif mysql # not compatible
query II rowsort label-761
SELECT + COUNT ( * ) * + ( - 62 ) AS col0, - 22 + NULLIF ( 6, 28 ) AS col1
----
-62
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL 81 * + - COUNT( * ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 81 * + - COUNT ( * ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + MAX( ALL - 5 ) * + 79 + + - COALESCE ( 19, - + 6 )
----
-414

skipif mysql # not compatible
query I rowsort label-764
SELECT + MAX ( ALL - 5 ) * + 79 + + - COALESCE ( 19, - + 6 )
----
-414

query II rowsort
SELECT ALL + 94 * + - 14 * + + 98 AS col1, + 85 col0
----
-128968
85

query I rowsort
SELECT ALL 98 * + 60
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT ALL 65 DIV - 85 * + - 63 + + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL 65 / - 85 * + - 63 + + + 20 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT + 78 / 92 * - 8 + 8 * - CASE AVG ( 28 ) WHEN - + 89 THEN CAST( + 12 AS SIGNED ) * - NULLIF ( 0, + 93 - + CAST( NULL AS SIGNED ) * 14 ) WHEN AVG ( DISTINCT - 63 ) THEN - NULLIF ( + COUNT( * ), + ( CASE - 4 WHEN 70 / + 3 THEN NULL WHEN 54 THEN NULL ELSE + 56 END ) * - 90 ) * - 14 WHEN + CAST( - 91 AS SIGNED ) THEN 79 * + 20 + NULLIF ( + COUNT( * ) + 0, 70 ) END / 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT + 78 / 92 * - 8 + 8 * - CASE AVG ( 28 ) WHEN - + 89 THEN CAST ( + 12 AS INTEGER ) * - NULLIF ( 0, + 93 - + CAST ( NULL AS INTEGER ) * 14 ) WHEN AVG ( DISTINCT - 63 ) THEN - NULLIF ( + COUNT ( * ), + ( CASE - 4 WHEN 70 / + 3 THEN NULL WHEN 54 THEN NULL ELSE + 56 END ) * - 90 ) * - 14 WHEN + CAST ( - 91 AS INTEGER ) THEN 79 * + 20 + NULLIF ( + COUNT ( * ) + 0, 70 ) END / 4 AS col0
----
NULL

query I rowsort
SELECT ALL 45 * + 6 * - 8
----
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-770
SELECT DISTINCT 59 DIV - - COUNT( * ) + 2, + 32 AS col1
----
61
32

skipif mysql # not compatible
query II rowsort label-770
SELECT DISTINCT 59 / - - COUNT ( * ) + 2, + 32 AS col1
----
61
32

query I rowsort
SELECT + 15 + 66 * + - 12
----
-777

query I rowsort
SELECT + 74 - - 27 + + 17 + + 51
----
169

query II rowsort
SELECT 27 AS col2, 2 AS col0
----
27
2

query I rowsort
SELECT ALL + - 6 * - 21 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL 89 * + + 28 * + 17 * + CAST( - - 44 AS SIGNED ) + - 85 + + + 9 + - CAST( CASE 91 WHEN COALESCE ( 6, 88 + - 66 ) / 12 + + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 73 END AS SIGNED ) + - COUNT( - ( 60 ) + + 55 ) * 51 + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL 89 * + + 28 * + 17 * + CAST ( - - 44 AS INTEGER ) + - 85 + + + 9 + - CAST ( CASE 91 WHEN COALESCE ( 6, 88 + - 66 ) / 12 + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 73 END AS INTEGER ) + - COUNT ( - ( 60 ) + + 55 ) * 51 + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL + 16 + - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + 16 + - - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - COUNT( * ) - + COUNT( - ( + - 82 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-777
SELECT - COUNT ( * ) - + COUNT ( - ( + - 82 ) ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT DISTINCT 94 / ( - ( - - 4 ) ) * + 12 * + 18 + + + CAST( NULL AS SIGNED ) + 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT 94 / ( - ( - - 4 ) ) * + 12 * + 18 + + + CAST ( NULL AS INTEGER ) + 30 col1
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - MIN( ALL 14 ) * 38 AS col1
----
-532

skipif mysql # not compatible
query I rowsort label-782
SELECT - MIN ( ALL 14 ) * 38 AS col1
----
-532

query I rowsort
SELECT DISTINCT - + NULLIF ( - 73, + ( 87 ) ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL - + 1 * + CAST( + 89 AS SIGNED ) * + - SUM( ALL 44 ) - + 60
----
3856

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - + 1 * + CAST ( + 89 AS INTEGER ) * + - SUM ( ALL 44 ) - + 60
----
3856

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL - CASE - + 58 WHEN + 88 * - - COUNT( * ) + + 64 THEN NULL WHEN 50 * + + 40 - - 28 THEN 51 + - 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL - CASE - + 58 WHEN + 88 * - - COUNT ( * ) + + 64 THEN NULL WHEN 50 * + + 40 - - 28 THEN 51 + - 21 END AS col2
----
NULL

query I rowsort
SELECT + 31 + + 45
----
76

query I rowsort
SELECT ALL - 20 * - 32
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT + 40 * + CAST( NULL AS SIGNED ) + 37 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT + 40 * + CAST ( NULL AS INTEGER ) + 37 * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT MIN( ALL + NULLIF ( - 0, + 21 * - 92 ) ) + + + 37
----
37

skipif mysql # not compatible
query I rowsort label-789
SELECT MIN ( ALL + NULLIF ( - 0, + 21 * - 92 ) ) + + + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL + CASE 55 WHEN + 62 + - 91 + 36 THEN NULL WHEN 76 + + CASE COUNT( * ) WHEN + 28 THEN NULL WHEN - COUNT( * ) / 59 + 16 THEN + 77 / 85 + COUNT( * ) ELSE 68 END THEN - 41 + - 60 / 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL + CASE 55 WHEN + 62 + - 91 + 36 THEN NULL WHEN 76 + + CASE COUNT ( * ) WHEN + 28 THEN NULL WHEN - COUNT ( * ) / 59 + 16 THEN + 77 / 85 + COUNT ( * ) ELSE 68 END THEN - 41 + - 60 / 53 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT DISTINCT NULLIF ( - + 40, + 66 ) - + CAST( 23 AS SIGNED ) - 13
----
-76

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT NULLIF ( - + 40, + 66 ) - + CAST ( 23 AS INTEGER ) - 13
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL + 70 * - - MIN( ALL + + 76 ) col1
----
5320

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + 70 * - - MIN ( ALL + + 76 ) col1
----
5320

query I rowsort
SELECT 50 + 51 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT 60 + COUNT( * ) - NULLIF ( - ( 14 ), - - 88 * 53 ) * + 2
----
89

skipif mysql # not compatible
query I rowsort label-794
SELECT 60 + COUNT ( * ) - NULLIF ( - ( 14 ), - - 88 * 53 ) * + 2
----
89

query I rowsort
SELECT ALL + 71 * 26 AS col0
----
1846

query I rowsort
SELECT 59 * - NULLIF ( 9, - 62 * 53 + - - 89 ) AS col2
----
-531

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT MAX( + - ( + 81 ) ) + + 57 * MIN( ALL + - 12 ) + + + 61 + - 57 AS col2
----
-761

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT MAX ( + - ( + 81 ) ) + + 57 * MIN ( ALL + - 12 ) + + + 61 + - 57 AS col2
----
-761

query I rowsort
SELECT ALL 34 + + - 94
----
-60

query I rowsort
SELECT DISTINCT + 81 + + + 78 AS col1
----
159

query I rowsort
SELECT DISTINCT - 27 + + + 65
----
38

query II rowsort
SELECT ALL + 63 + - + 76 * 72 + - 14 AS col1, - 60
----
-5423
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT 74 * - MIN( ALL - - 41 )
----
-3034

skipif mysql # not compatible
query I rowsort label-803
SELECT 74 * - MIN ( ALL - - 41 )
----
-3034

query I rowsort
SELECT ( - - 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-805
SELECT ALL + 37 * - - CAST( NULL AS SIGNED ) + + 57 + + 23 AS col0, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-805
SELECT ALL + 37 * - - CAST ( NULL AS INTEGER ) + + 57 + + 23 AS col0, 94 AS col2
----
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT 20 + - 81 DIV - COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT 20 + - 81 / - COUNT ( * ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-807
SELECT ALL - 67 + - - CAST( NULL AS SIGNED ) / + MAX( - 5 ) AS col2, + 20 * - ( - 33 ) * - + 36 + - - 25 + 76 AS col0
----
NULL
-23659

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL - 67 + - - CAST ( NULL AS INTEGER ) / + MAX ( - 5 ) AS col2, + 20 * - ( - 33 ) * - + 36 + - - 25 + 76 AS col0
----
NULL
-23659

query I rowsort
SELECT + - COALESCE ( 14, + - 29 + + 21 * - 43 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + 32 * COUNT( * ) + + MAX( ALL - 4 ) + - ( + 37 ) + 43 * - CASE - 79 WHEN ( ( - COALESCE ( - 93, SUM( DISTINCT 32 ) ) ) ) THEN - 84 ELSE 33 END col1
----
-1428

skipif mysql # not compatible
query I rowsort label-809
SELECT + 32 * COUNT ( * ) + + MAX ( ALL - 4 ) + - ( + 37 ) + 43 * - CASE - 79 WHEN ( ( - COALESCE ( - 93, SUM ( DISTINCT 32 ) ) ) ) THEN - 84 ELSE 33 END col1
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT - 22 + - COUNT( * ) - - - 30 * + 79
----
-2393

skipif mysql # not compatible
query I rowsort label-810
SELECT - 22 + - COUNT ( * ) - - - 30 * + 79
----
-2393

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

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

query I rowsort
SELECT DISTINCT + 43 * 58 * - 14 + - 37 * + 80
----
-37876

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + CASE - 81 WHEN + 85 + + 20 + + COUNT( * ) + + - ( + 86 ) + - 45 / 91 THEN 7 END * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT + CASE - 81 WHEN + 85 + + 20 + + COUNT ( * ) + + - ( + 86 ) + - 45 / 91 THEN 7 END * 50 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT 88 * + 66 * + 90 - 31 + - - 46 * + CASE - 12 WHEN - - 62 THEN NULL WHEN 17 * - 95 THEN + CASE + 28 WHEN - 40 * + 99 THEN + 54 END + - 84 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-817
SELECT ALL + 60 DIV - ( - 12 ) + - 29 * - - 18 - - 46 AS col0
----
-471

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + 60 / - ( - 12 ) + - 29 * - - 18 - - 46 AS col0
----
-471

query I rowsort
SELECT 5 * - 81 * - 82
----
33210

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT 64 * + MAX( 59 ) AS col0
----
3776

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT 64 * + MAX ( 59 ) AS col0
----
3776

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT - 16 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT - 16 / + 97 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 11 * 35 + + 87 - - 19 * 40 * - + 27 col2
----
-20048

query I rowsort
SELECT ( - 92 ) * + - 89
----
8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-823
SELECT ALL 12 DIV MAX( 41 ) - COUNT( * ) * + 30 * - - ( + + 26 ) + - CAST( - 52 AS SIGNED ) + NULLIF ( 40, ( 19 ) * - ( 19 * + 90 ) ) AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 12 / MAX ( 41 ) - COUNT ( * ) * + 30 * - - ( + + 26 ) + - CAST ( - 52 AS INTEGER ) + NULLIF ( 40, ( 19 ) * - ( 19 * + 90 ) ) AS col1
----
-688

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT ALL ( COUNT( * ) ) * 81 / + + 34 * - + CAST( NULL AS SIGNED ) + + 97 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL ( COUNT ( * ) ) * 81 / + + 34 * - + CAST ( NULL AS INTEGER ) + + 97 * - 69
----
NULL

query I rowsort
SELECT 66 * + 42 * 78
----
216216

query I rowsort
SELECT 40 - - 97 AS col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-828
SELECT CAST( + NULLIF ( + AVG ( + - CAST( + 58 AS DECIMAL ) ), - NULLIF ( - + 2, 42 ) ) AS SIGNED ) * - COUNT( * ) + + - 84 - 75 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-828
SELECT CAST ( + NULLIF ( + AVG ( + - CAST ( + 58 AS REAL ) ), - NULLIF ( - + 2, 42 ) ) AS INTEGER ) * - COUNT ( * ) + + - 84 - 75 AS col1
----
-101

query I rowsort
SELECT DISTINCT + 58 + - 18 AS col1
----
40

query I rowsort
SELECT 69 * - 30 AS col1
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL + 40 + COALESCE ( - + ( 79 ), COUNT( * ) + - 84 * + COALESCE ( - 74, 24 ) + - + 88, 5 * + 19 - - 93 ) - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL + 40 + COALESCE ( - + ( 79 ), COUNT ( * ) + - 84 * + COALESCE ( - 74, 24 ) + - + 88, 5 * + 19 - - 93 ) - COUNT ( * ) AS col2
----
-40

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

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 28 + - COUNT ( * ) AS col0
----
27

query I rowsort
SELECT 85 - + 19 + - - 85 + + 92
----
243

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

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

query I rowsort
SELECT 94 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL - 40 + + - COUNT( * ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - 40 + + - COUNT ( * ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT - COALESCE ( NULLIF ( + 62, + 39 + - - MAX( - ( 86 ) ) ), + - 93 )
----
-62

skipif mysql # not compatible
query I rowsort label-837
SELECT - COALESCE ( NULLIF ( + 62, + 39 + - - MAX ( - ( 86 ) ) ), + - 93 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL + MIN( ALL - + 99 ) + + 71 + + 58 * + NULLIF ( 14, ( 44 ) ) + + 72
----
856

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + MIN ( ALL - + 99 ) + + 71 + + 58 * + NULLIF ( 14, ( 44 ) ) + + 72
----
856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT 75 + + 90 + 20 + + - 57 + + NULLIF ( + - 97, 29 ) - 15 * 89 * CAST( NULL AS SIGNED ) + - NULLIF ( - ( 75 ), 69 ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT 75 + + 90 + 20 + + - 57 + + NULLIF ( + - 97, 29 ) - 15 * 89 * CAST ( NULL AS INTEGER ) + - NULLIF ( - ( 75 ), 69 ) * + 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-840
SELECT 84 + CASE + COUNT( * ) WHEN - 94 * + - CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE + 85 WHEN - 34 * + 76 THEN NULL WHEN NULLIF ( COUNT( * ), + 15 - + 31 ) THEN + COALESCE ( - 77, - 83, - COUNT( * ) ) WHEN MIN( ( + 47 ) ) + + CAST( 38 AS DECIMAL ) THEN - 19 ELSE NULL END * - 81 THEN NULL WHEN COUNT( * ) THEN - 15 ELSE 51 DIV 18 END + 89 * - 90 * 67
----
-536601

skipif mysql # not compatible
query I rowsort label-840
SELECT 84 + CASE + COUNT ( * ) WHEN - 94 * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE + 85 WHEN - 34 * + 76 THEN NULL WHEN NULLIF ( COUNT ( * ), + 15 - + 31 ) THEN + COALESCE ( - 77, - 83, - COUNT ( * ) ) WHEN MIN ( ( + 47 ) ) + + CAST ( 38 AS REAL ) THEN - 19 ELSE NULL END * - 81 THEN NULL WHEN COUNT ( * ) THEN - 15 ELSE 51 / 18 END + 89 * - 90 * 67
----
-536601

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT ALL - NULLIF ( + 9, ( + ( + CAST( + 35 AS SIGNED ) ) ) * + 81 * + 59 + - 77 * - 84 ) * - 94 AS col2
----
846

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - NULLIF ( + 9, ( + ( + CAST ( + 35 AS INTEGER ) ) ) * + 81 * + 59 + - 77 * - 84 ) * - 94 AS col2
----
846

query I rowsort
SELECT DISTINCT - NULLIF ( 63, + - ( + 5 ) * - 43 + 16 + 75 + - + 79 ) * + 64 + + 63
----
-3969

query I rowsort
SELECT DISTINCT - 38 * - + 86 * - 3 AS col0
----
-9804

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

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

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

query I rowsort
SELECT - 10 + - NULLIF ( - 5, - 58 ) AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-848
SELECT + NULLIF ( + + COUNT ( + 86 ), + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL - + COALESCE ( + - 43, + 93 ) DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - + COALESCE ( + - 43, + 93 ) / 29
----
1

query I rowsort
SELECT - + 50 * + 37 AS col2
----
-1850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-851
SELECT + + 44 * ( COALESCE ( - 3, - 23 DIV - CAST( COALESCE ( + ( - 36 ), + + 58, 61 * + 97 + 11, + 97 + 5 * - 71 ) AS SIGNED ), + 15 * 82 ) ) * - 7 AS col2
----
924

skipif mysql # not compatible
query I rowsort label-851
SELECT + + 44 * ( COALESCE ( - 3, - 23 / - CAST ( COALESCE ( + ( - 36 ), + + 58, 61 * + 97 + 11, + 97 + 5 * - 71 ) AS INTEGER ), + 15 * 82 ) ) * - 7 AS col2
----
924

query I rowsort
SELECT ALL - 89 * - ( - 29 )
----
-2581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT - 99 * - CAST( NULL AS SIGNED ) / + 23, + 32 col1
----
NULL
32

skipif mysql # not compatible
query II rowsort label-853
SELECT - 99 * - CAST ( NULL AS INTEGER ) / + 23, + 32 col1
----
NULL
32

query I rowsort
SELECT DISTINCT + COALESCE ( 87, 25 - + + 61, 92 )
----
87

query II rowsort
SELECT - ( + 3 ) * 95 + ( - 19 ) AS col2, - 96
----
-304
-96

query I rowsort
SELECT + - 92 - - 91
----
-1

query I rowsort
SELECT DISTINCT - ( - 3 ) * - 6
----
-18

query II rowsort
SELECT ALL + 79 AS col1, + 81 * 81 * - - 97 AS col1
----
79
636417

query I rowsort
SELECT DISTINCT - 70 * + ( - 30 ) * + + 1 AS col0
----
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT 43 * - ( - + 54 ) + - ( + CAST( NULL AS SIGNED ) ) + CASE 29 WHEN 50 - - COUNT( * ) THEN - - 3 * 73 END + - 88 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT 43 * - ( - + 54 ) + - ( + CAST ( NULL AS INTEGER ) ) + CASE 29 WHEN 50 - - COUNT ( * ) THEN - - 3 * 73 END + - 88 * 16
----
NULL

query I rowsort
SELECT ALL - 37 * - 61 + - 73 - 48 + + 54
----
2190

query I rowsort
SELECT - 42 + - 49
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT - 18 + + 70 DIV 90 DIV + + ( + 80 ) * + 16 + + - 98
----
-116

skipif mysql # not compatible
query I rowsort label-864
SELECT - 18 + + 70 / 90 / + + ( + 80 ) * + 16 + + - 98
----
-116

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT NULLIF ( + MAX( DISTINCT + 9 ), + + 91 * - 90 * - 79 * + - ( - COUNT( * ) ) + - 64 * + 25 ) * - 19 * + 5 + NULLIF ( - 80, 54 + + 56 ) DIV - 35 + - 38
----
-891

skipif mysql # not compatible
query I rowsort label-866
SELECT NULLIF ( + MAX ( DISTINCT + 9 ), + + 91 * - 90 * - 79 * + - ( - COUNT ( * ) ) + - 64 * + 25 ) * - 19 * + 5 + NULLIF ( - 80, 54 + + 56 ) / - 35 + - 38
----
-891

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + CASE + + 37 WHEN - 95 - + 70 THEN 98 * + 17 END + + NULLIF ( SUM( - + CASE 98 WHEN - - 37 / + 15 THEN 30 * + 91 END ), 72 / - 45 ) / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT + CASE + + 37 WHEN - 95 - + 70 THEN 98 * + 17 END + + NULLIF ( SUM ( - + CASE 98 WHEN - - 37 / + 15 THEN 30 * + 91 END ), 72 / - 45 ) / 39
----
NULL

query I rowsort
SELECT ALL 82 + - 8 AS col2
----
74

query I rowsort
SELECT + 64 + - 81 + + 22 * + 21
----
445

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL 70 DIV 9
----
7

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL 70 / 9
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-872
SELECT ALL 75 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL 75 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 87 + + 63 AS col2
----
150

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

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

query II rowsort
SELECT 91 col2, - 56 AS col2
----
91
-56

query I rowsort
SELECT DISTINCT 63 + - - 27 col2
----
90

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

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

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

query II rowsort
SELECT - 92 + + 23 - - - 19 * - - 57, + 91 AS col1
----
-1152
91

query I rowsort
SELECT + 22 + + - 37
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-881
SELECT + CASE - CASE - COUNT( * ) WHEN + 44 THEN - + CAST( - + 80 AS SIGNED ) ELSE - + 84 END WHEN - 49 + 37 + + 75 THEN NULL WHEN + 94 + 91 THEN + COUNT( * ) WHEN - 62 / 96 THEN 82 END / 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT + CASE - CASE - COUNT ( * ) WHEN + 44 THEN - + CAST ( - + 80 AS INTEGER ) ELSE - + 84 END WHEN - 49 + 37 + + 75 THEN NULL WHEN + 94 + 91 THEN + COUNT ( * ) WHEN - 62 / 96 THEN 82 END / 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL COALESCE ( - - 0, 39, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL COALESCE ( - - 0, 39, COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL + 45 - + COUNT( * ) + - 3
----
41

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + 45 - + COUNT ( * ) + - 3
----
41

query II rowsort
SELECT ALL + 53 AS col0, + CASE + 98 WHEN + COALESCE ( 48, 30 + - - 60 ) - - + 83 THEN + 87 WHEN 87 THEN NULL END AS col1
----
53
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT - + COUNT( * ) + + + 84 + + 11 - NULLIF ( + + 53, ( 51 ) / - 55 - - COUNT( * ) + NULLIF ( - - 83, 2 / 3 + 19 ) * - NULLIF ( COUNT( * ), + 66 ) ) + - 57 * 47 * - 28 AS col0
----
75053

skipif mysql # not compatible
query I rowsort label-886
SELECT - + COUNT ( * ) + + + 84 + + 11 - NULLIF ( + + 53, ( 51 ) / - 55 - - COUNT ( * ) + NULLIF ( - - 83, 2 / 3 + 19 ) * - NULLIF ( COUNT ( * ), + 66 ) ) + - 57 * 47 * - 28 AS col0
----
75053

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT CASE + 28 WHEN + + 43 + - + 21 + + 66 THEN + 45 ELSE - COALESCE ( + - ( - COALESCE ( 67, + 12 ) ), 45 * + 19, 52 ) END - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT CASE + 28 WHEN + + 43 + - + 21 + + 66 THEN + 45 ELSE - COALESCE ( + - ( - COALESCE ( 67, + 12 ) ), 45 * + 19, 52 ) END - COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT ALL - - 86 * - 47 AS col2
----
-4042

query I rowsort
SELECT 48 * + 77 + - 23
----
3673

query II rowsort
SELECT ALL + 30 AS col0, - 37 + 76 - 11 * + 78 AS col0
----
30
-819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT ALL - + 64 DIV + 79 * - 24 + + NULLIF ( 70, - 71 + + COUNT( * ) ) - NULLIF ( + 46, - COUNT( * ) ) * + + COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - + 64 / + 79 * - 24 + + NULLIF ( 70, - 71 + + COUNT ( * ) ) - NULLIF ( + 46, - COUNT ( * ) ) * + + COUNT ( * ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT - NULLIF ( - - 21, + - 85 ) * + 50 + MIN( 27 ) AS col2
----
-1023

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT - NULLIF ( - - 21, + - 85 ) * + 50 + MIN ( 27 ) AS col2
----
-1023

query I rowsort
SELECT + + 4 * 84
----
336

query I rowsort
SELECT ALL - 93 * - 67 AS col1
----
6231

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

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

query II rowsort
SELECT ALL + ( 20 ) col0, + 97 AS col0
----
20
97

onlyif mysql # DIV for integer division: 
query II rowsort label-897
SELECT DISTINCT + 86 col0, + 54 DIV - - 72 col1
----
86
0

skipif mysql # not compatible
query II rowsort label-897
SELECT DISTINCT + 86 col0, + 54 / - - 72 col1
----
86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + 86 * + 69 * + 83 + + COUNT( * ) + MAX( ALL - + 92 ) * - 24 + - 72 AS col1
----
494659

skipif mysql # not compatible
query I rowsort label-898
SELECT + 86 * + 69 * + 83 + + COUNT ( * ) + MAX ( ALL - + 92 ) * - 24 + - 72 AS col1
----
494659

query I rowsort
SELECT ALL + COALESCE ( + 27, - - 59 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - - 47 + 25 - + SUM( - - 56 ) * + 98 - 42 AS col2
----
-5458

skipif mysql # not compatible
query I rowsort label-900
SELECT - - 47 + 25 - + SUM ( - - 56 ) * + 98 - 42 AS col2
----
-5458

onlyif mysql # DIV for integer division: 
query II rowsort label-901
SELECT ALL + 79 AS col0, 83 * 58 DIV + 66 + + 10
----
79
82

skipif mysql # not compatible
query II rowsort label-901
SELECT ALL + 79 AS col0, 83 * 58 / + 66 + + 10
----
79
82

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT - - 78 DIV - 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-902
SELECT - - 78 / - 76 AS col2
----
-1

query I rowsort
SELECT ALL - 2 * + 95 + + - 61 AS col1
----
-251

query II rowsort
SELECT + 83 AS col2, - 59 + - + 73 * + 68 AS col1
----
83
-5023

query I rowsort
SELECT - - ( - + 25 ) * - 88 + + 47
----
2247

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 3 * + 27 * + 13 + - AVG ( 82 ) * ( 15 ) * - - 95 + - 3 - CASE 69 WHEN CASE WHEN + 17 = - 96 THEN 2 / 86 ELSE NULL END THEN COUNT( ALL + 90 ) WHEN ( - 79 ) * - 71 THEN 85 * COUNT( * ) END * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT 3 * + 27 * + 13 + - AVG ( 82 ) * ( 15 ) * - - 95 + - 3 - CASE 69 WHEN CASE WHEN + 17 = - 96 THEN 2 / 86 ELSE NULL END THEN COUNT ( ALL + 90 ) WHEN ( - 79 ) * - 71 THEN 85 * COUNT ( * ) END * 59
----
NULL

query I rowsort
SELECT ALL 19 * - + 79 + - 33
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - SUM( 24 ) * + 47 col2
----
-1128

skipif mysql # not compatible
query I rowsort label-908
SELECT - SUM ( 24 ) * + 47 col2
----
-1128

query I rowsort
SELECT - 70 * 74
----
-5180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-910
SELECT ALL MIN( DISTINCT - 33 ) * - 20 + + + ( - - COALESCE ( + + 40, - ( + + 18 ), + ( + ( - 25 ) ) + + + ( 62 ) - 8 ) ) + - COALESCE ( - MAX( + 32 ) + + 24, 8, + CASE + COALESCE ( CAST( ( 54 ) AS SIGNED ), + 29 * 95, - COUNT( * ) + 38 ) WHEN + 99 * 62 THEN + 67 + + COALESCE ( + 86, 32, - 30 DIV CAST( COUNT( ALL + 93 ) AS SIGNED ) ) END, - MAX( DISTINCT - COALESCE ( 14, 97, - 41 DIV ( - CAST( NULL AS SIGNED ) ) ) ) + - MAX( + 10 ) ) AS col0
----
708

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL MIN ( DISTINCT - 33 ) * - 20 + + + ( - - COALESCE ( + + 40, - ( + + 18 ), + ( + ( - 25 ) ) + + + ( 62 ) - 8 ) ) + - COALESCE ( - MAX ( + 32 ) + + 24, 8, + CASE + COALESCE ( CAST ( ( 54 ) AS INTEGER ), + 29 * 95, - COUNT ( * ) + 38 ) WHEN + 99 * 62 THEN + 67 + + COALESCE ( + 86, 32, - 30 / CAST ( COUNT ( ALL + 93 ) AS INTEGER ) ) END, - MAX ( DISTINCT - COALESCE ( 14, 97, - 41 / ( - CAST ( NULL AS INTEGER ) ) ) ) + - MAX ( + 10 ) ) AS col0
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + SUM( - + 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-911
SELECT + SUM ( - + 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT ALL 56 * + - MAX( + 6 ) + + - 33 AS col0
----
-369

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL 56 * + - MAX ( + 6 ) + + - 33 AS col0
----
-369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL - 49 * - 25 * + 55 * NULLIF ( NULLIF ( - 84, 75 + + 98 ), + 50 * 56 - - - 38 * - CAST( NULL AS SIGNED ) / CASE - MAX( - 51 ) WHEN - 14 * 56 THEN + 9 ELSE NULL END ) AS col1
----
-5659500

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - 49 * - 25 * + 55 * NULLIF ( NULLIF ( - 84, 75 + + 98 ), + 50 * 56 - - - 38 * - CAST ( NULL AS INTEGER ) / CASE - MAX ( - 51 ) WHEN - 14 * 56 THEN + 9 ELSE NULL END ) AS col1
----
-5659500

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL 99 * + 17 + - 56 + + - CASE 18 WHEN - AVG ( + - 89 ) * - ( ( + 15 ) ) + + COUNT( - 27 ) THEN - 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 99 * + 17 + - 56 + + - CASE 18 WHEN - AVG ( + - 89 ) * - ( ( + 15 ) ) + + COUNT ( - 27 ) THEN - 96 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 5 * - 70 + 17 + + NULLIF ( - 9, - 51 - + 94 - + 81 ) AS col2
----
-342

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

skipif mysql # not compatible
query I rowsort label-916
SELECT - SUM ( - - 91 )
----
-91

query I rowsort
SELECT - ( - COALESCE ( + + 88, - 64 ) )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT 77 * 89 - + COUNT( * ) col2, - 19 AS col0
----
6852
-19

skipif mysql # not compatible
query II rowsort label-918
SELECT 77 * 89 - + COUNT ( * ) col2, - 19 AS col0
----
6852
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT - CAST( ( - + 36 ) AS SIGNED ) - + + 37 - 93 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-919
SELECT - CAST ( ( - + 36 ) AS INTEGER ) - + + 37 - 93 * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL SUM( ALL - ( - - 93 ) ) - + 96 col0
----
-189

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL SUM ( ALL - ( - - 93 ) ) - + 96 col0
----
-189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT COALESCE ( - - 72, - NULLIF ( - MIN( + - ( - 58 ) ), - + 97 * 99 * + 17 / - - 99 / + 67 * 81 ) ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT COALESCE ( - - 72, - NULLIF ( - MIN ( + - ( - 58 ) ), - + 97 * 99 * + 17 / - - 99 / + 67 * 81 ) ) * + 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT - 5 DIV - + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - 5 / - + 42 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT 11 * 50 + + - 71 + 62 + 89 + 29 / + + ( - - CAST( NULL AS SIGNED ) ) * NULLIF ( - - CASE + CASE + 78 WHEN - MAX( 19 ) THEN NULL ELSE COUNT( * ) END WHEN ( 49 ) * 7 THEN 5 * 58 WHEN + 47 * - 29 THEN - 63 ELSE 75 END, + 75 ) / - CASE ( + 98 ) WHEN 49 THEN 99 - - 54 WHEN - SUM( ALL + 1 ) + 74 / 15 THEN NULL ELSE ( 32 ) END + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT 11 * 50 + + - 71 + 62 + 89 + 29 / + + ( - - CAST ( NULL AS INTEGER ) ) * NULLIF ( - - CASE + CASE + 78 WHEN - MAX ( 19 ) THEN NULL ELSE COUNT ( * ) END WHEN ( 49 ) * 7 THEN 5 * 58 WHEN + 47 * - 29 THEN - 63 ELSE 75 END, + 75 ) / - CASE ( + 98 ) WHEN 49 THEN 99 - - 54 WHEN - SUM ( ALL + 1 ) + 74 / 15 THEN NULL ELSE ( 32 ) END + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-925
SELECT + CASE + + AVG ( ALL - 57 ) WHEN 27 THEN NULL WHEN - + 58 THEN 34 - - 88 ELSE - - 10 + 44 DIV - COUNT( * ) END - + 93 + - CAST( + 24 AS SIGNED ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-925
SELECT + CASE + + AVG ( ALL - 57 ) WHEN 27 THEN NULL WHEN - + 58 THEN 34 - - 88 ELSE - - 10 + 44 / - COUNT ( * ) END - + 93 + - CAST ( + 24 AS INTEGER ) AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT - 55 * - 77 * COUNT( * )
----
4235

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - 55 * - 77 * COUNT ( * )
----
4235

query I rowsort
SELECT ALL 71 * - + 13 + 11
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT 4 + + 5 + + + 42 + + COUNT( * ) col2
----
52

skipif mysql # not compatible
query I rowsort label-928
SELECT 4 + + 5 + + + 42 + + COUNT ( * ) col2
----
52

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

skipif mysql # not compatible
query I rowsort label-929
SELECT - COUNT ( * ) / 15
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT COALESCE ( - ( 21 ), + COALESCE ( + - 85, - + 67 DIV AVG ( DISTINCT ( 74 ) ) + + + 8 ) + - 24 ) * - 66
----
1386

skipif mysql # not compatible
query I rowsort label-930
SELECT COALESCE ( - ( 21 ), + COALESCE ( + - 85, - + 67 / AVG ( DISTINCT ( 74 ) ) + + + 8 ) + - 24 ) * - 66
----
1386

query I rowsort
SELECT DISTINCT 33 * - ( - 4 )
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-932
SELECT ALL + + 79 DIV 32 + 1 - + 82 + + 24 AS col1, - 38 DIV - MAX( ALL - 66 ) col0
----
-55
0

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL + + 79 / 32 + 1 - + 82 + + 24 AS col1, - 38 / - MAX ( ALL - 66 ) col0
----
-55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT CASE + ( - 57 ) WHEN - 90 * - 72 / + 24 THEN - + 26 * + - COUNT( * ) ELSE - 93 END
----
-93

skipif mysql # not compatible
query I rowsort label-933
SELECT CASE + ( - 57 ) WHEN - 90 * - 72 / + 24 THEN - + 26 * + - COUNT ( * ) ELSE - 93 END
----
-93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT + + 4 + - 17 + - + 71 + - COUNT( * ) * + 37
----
-121

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + + 4 + - 17 + - + 71 + - COUNT ( * ) * + 37
----
-121

query I rowsort
SELECT + 9 + - 33
----
-24

query I rowsort
SELECT - 57 - + ( + 94 ) + + - ( + - 65 ) + + + NULLIF ( - + 11, + 98 ) * - - 81 * 38
----
-33944

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL - 46 + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL - 46 + COUNT ( * )
----
-45

query I rowsort
SELECT 41 * + 16 + + 69
----
725

query I rowsort
SELECT DISTINCT - NULLIF ( - 30, - 94 * - - 90 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 12 + + NULLIF ( - - COUNT( * ), MAX( ALL - 0 ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 12 + + NULLIF ( - - COUNT ( * ), MAX ( ALL - 0 ) ) AS col1
----
13

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

query I rowsort
SELECT DISTINCT - 63 + NULLIF ( + NULLIF ( 90, + - 37 ), - 35 ) + + 21
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT - COALESCE ( COUNT( * ), - 4, + ( 34 ) DIV + 11 ) + + 66 DIV - 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 4, + ( 34 ) / + 11 ) + + 66 / - 26 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT CAST( + - 95 AS SIGNED ) * - 52 + - 74 * COUNT( * ) AS col2
----
4866

skipif mysql # not compatible
query I rowsort label-946
SELECT CAST ( + - 95 AS INTEGER ) * - 52 + - 74 * COUNT ( * ) AS col2
----
4866

query I rowsort
SELECT 81 * COALESCE ( - 84, - ( 38 ) ) + - 19
----
-6823

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT 65 + + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-948
SELECT 65 + + COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT ALL + MAX( - 59 ) DIV 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + MAX ( - 59 ) / 52 AS col0
----
-1

query I rowsort
SELECT 75 + - - 26 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ( - + 44 ) * - COALESCE ( - - 50, - + COUNT( * ) ) + + ( + 34 ) AS col1
----
2234

skipif mysql # not compatible
query I rowsort label-951
SELECT ( - + 44 ) * - COALESCE ( - - 50, - + COUNT ( * ) ) + + ( + 34 ) AS col1
----
2234

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT 20 - + COUNT( * ) * + - COALESCE ( + ( + 44 ), + 0 ) AS col2, + COUNT( 47 )
----
64
1

skipif mysql # not compatible
query II rowsort label-952
SELECT 20 - + COUNT ( * ) * + - COALESCE ( + ( + 44 ), + 0 ) AS col2, + COUNT ( 47 )
----
64
1

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

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + 91 / COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT 94 + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-954
SELECT 94 + - COUNT ( * )
----
93

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

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

query II rowsort
SELECT 34 AS col1, + 46
----
34
46

query II rowsort
SELECT ALL 7 AS col0, 55
----
7
55

query II rowsort
SELECT ALL 9 AS col0, - 63
----
9
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT 39 + - 93 + - MIN( + - 28 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT 39 + - 93 + - MIN ( + - 28 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 26 * 59 AS col0
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL CASE + - 20 WHEN + COUNT( * ) THEN NULL WHEN - 65 THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL CASE + - 20 WHEN + COUNT ( * ) THEN NULL WHEN - 65 THEN 17 END
----
NULL

query I rowsort
SELECT + 39 + + 38
----
77

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

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

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

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

query I rowsort
SELECT DISTINCT - 44 * + - 46
----
2024

query I rowsort
SELECT ALL COALESCE ( + 28, + 55 ) + - 50 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT - MIN( DISTINCT - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT - MIN ( DISTINCT - 6 ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL 19 + + 86 + + 2 DIV - - 4 + - 62
----
43

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 19 + + 86 + + 2 / - - 4 + - 62
----
43

query I rowsort
SELECT - 88 + - - 1 col2
----
-87

query I rowsort
SELECT DISTINCT - 0 + - 58
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-971
SELECT DISTINCT - 94 * 11 DIV 85 AS col0, + 86 AS col0
----
-12
86

skipif mysql # not compatible
query II rowsort label-971
SELECT DISTINCT - 94 * 11 / 85 AS col0, + 86 AS col0
----
-12
86

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL COALESCE ( - 40, - ( + NULLIF ( - 96, + - 5 + + 99 * - 7 ) ) ) * - + ( COUNT( * ) ) + - 14
----
26

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL COALESCE ( - 40, - ( + NULLIF ( - 96, + - 5 + + 99 * - 7 ) ) ) * - + ( COUNT ( * ) ) + - 14
----
26

query I rowsort
SELECT + 55 + - 76
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + CASE + - MAX( - - CASE + 60 WHEN + + 84 THEN 55 * - 61 ELSE + 3 END ) WHEN 64 THEN NULL ELSE NULLIF ( COUNT( - 37 ), + ( 68 ) * 14 ) + + 12 END
----
13

skipif mysql # not compatible
query I rowsort label-974
SELECT + CASE + - MAX ( - - CASE + 60 WHEN + + 84 THEN 55 * - 61 ELSE + 3 END ) WHEN 64 THEN NULL ELSE NULLIF ( COUNT ( - 37 ), + ( 68 ) * 14 ) + + 12 END
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT + 38 + - MIN( - 84 ) + - 50 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-975
SELECT + 38 + - MIN ( - 84 ) + - 50 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT DISTINCT - 7 * - COUNT( * ) * + 18 + + COUNT( ALL - - 68 ) + - + 74 * + CASE + 31 WHEN 48 THEN + 65 * + - COALESCE ( - 24, + 29 + 71 ) * 3 + + 76 + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT - 7 * - COUNT ( * ) * + 18 + + COUNT ( ALL - - 68 ) + - + 74 * + CASE + 31 WHEN 48 THEN + 65 * + - COALESCE ( - 24, + 29 + 71 ) * 3 + + 76 + 97 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT ALL 23 * + 69 + - 17 + 22 + + 56 * 34 DIV + 51 AS col1
----
1629

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL 23 * + 69 + - 17 + 22 + + 56 * 34 / + 51 AS col1
----
1629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT 85 + - 74 + - CAST( - + 0 AS SIGNED ) * + 36 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-979
SELECT 85 + - 74 + - CAST ( - + 0 AS INTEGER ) * + 36 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-980
SELECT CASE + 74 WHEN - 67 * 49 * + + 2 + + 66 + - - MIN( ALL + 72 ) THEN - ( + + 93 ) WHEN + 12 + CASE + - 17 WHEN - 28 + 44 * 40 THEN + 33 WHEN 27 + 38 THEN NULL END THEN NULL WHEN - AVG ( + CAST( NULL AS DECIMAL ) ) + + CASE 1 - ( + 83 ) WHEN CAST( 31 AS SIGNED ) THEN - 40 + + 77 * + 81 WHEN - CAST( NULL AS SIGNED ) * - 58 + + 23 THEN NULL END THEN NULL ELSE NULL END * COALESCE ( 6 * SUM( DISTINCT + CAST( 35 AS SIGNED ) ), - 1 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT CASE + 74 WHEN - 67 * 49 * + + 2 + + 66 + - - MIN ( ALL + 72 ) THEN - ( + + 93 ) WHEN + 12 + CASE + - 17 WHEN - 28 + 44 * 40 THEN + 33 WHEN 27 + 38 THEN NULL END THEN NULL WHEN - AVG ( + CAST ( NULL AS REAL ) ) + + CASE 1 - ( + 83 ) WHEN CAST ( 31 AS INTEGER ) THEN - 40 + + 77 * + 81 WHEN - CAST ( NULL AS INTEGER ) * - 58 + + 23 THEN NULL END THEN NULL ELSE NULL END * COALESCE ( 6 * SUM ( DISTINCT + CAST ( 35 AS INTEGER ) ), - 1 + + COUNT ( * ) )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT - 34 * CAST( 39 AS SIGNED )
----
-1326

skipif mysql # not compatible
query I rowsort label-983
SELECT - 34 * CAST ( 39 AS INTEGER )
----
-1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL SUM( CAST( - 39 AS SIGNED ) )
----
-39

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL SUM ( CAST ( - 39 AS INTEGER ) )
----
-39

query I rowsort
SELECT + 98 * 7 * - + 35
----
-24010

query I rowsort
SELECT - 3 * - 93 * - 19 AS col1
----
-5301

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT - 21 DIV + 94 * + 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT - 21 / + 94 * + 69 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL + MIN( ALL 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + MIN ( ALL 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - + 92 - - 77 * - 56 + - 54 * - COUNT( * )
----
-4350

skipif mysql # not compatible
query I rowsort label-989
SELECT - + 92 - - 77 * - 56 + - 54 * - COUNT ( * )
----
-4350

query I rowsort
SELECT - - ( 3 )
----
3

query I rowsort
SELECT - - 17 + + 80 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL - COALESCE ( - 4, ( - 91 ) * + 82 ) * + + CAST( + + 60 AS SIGNED ) * + 69 AS col0
----
16560

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - COALESCE ( - 4, ( - 91 ) * + 82 ) * + + CAST ( + + 60 AS INTEGER ) * + 69 AS col0
----
16560

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT - 37 DIV - 56 - 38
----
-38

skipif mysql # not compatible
query I rowsort label-993
SELECT - 37 / - 56 - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL + + 8 + + + SUM( ALL + 89 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + + 8 + + + SUM ( ALL + 89 ) AS col0
----
97

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

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - MAX ( - + 62 ) * 69 AS col1
----
4278

query I rowsort
SELECT ALL - ( - 52 ) + - 43
----
9

query I rowsort
SELECT - 64 - + + 64 AS col1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - - COALESCE ( + 19, + 25 * - + 22 + + 93 + + MIN( - 18 ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-998
SELECT - - COALESCE ( + 19, + 25 * - + 22 + + 93 + + MIN ( - 18 ) ) col0
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-999
SELECT - - CAST( + 39 AS SIGNED ) * - 45 DIV + 1
----
-1755

skipif mysql # not compatible
query I rowsort label-999
SELECT - - CAST ( + 39 AS INTEGER ) * - 45 / + 1
----
-1755

query I rowsort
SELECT ALL + ( + 26 ) + 38
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1001
SELECT DISTINCT COUNT( DISTINCT 51 ) + + - COUNT( * ) + + 53 * + + ( + - COUNT( * ) ) DIV 87 * COUNT( ALL + + 11 ) + + 53
----
53

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT COUNT ( DISTINCT 51 ) + + - COUNT ( * ) + + 53 * + + ( + - COUNT ( * ) ) / 87 * COUNT ( ALL + + 11 ) + + 53
----
53

query II rowsort
SELECT ALL + - ( + 76 ) AS col0, 98 + - 11
----
-76
87

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - 67 * - 67 + + + COUNT ( * ) AS col0
----
4490

query I rowsort
SELECT DISTINCT + NULLIF ( - 17, - 87 ) AS col2
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1005
SELECT + + CAST( NULL AS DECIMAL ) * 96 - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT + + CAST ( NULL AS REAL ) * 96 - + 24
----
NULL

query I rowsort
SELECT + CASE - 20 WHEN 90 + 45 THEN - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 + + ( - 7 ) AS col2
----
-7

query I rowsort
SELECT - 12 * + 77 * - - 93
----
-85932

query I rowsort
SELECT - 29 + 34 + + + 74 - 10
----
69

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

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

query I rowsort
SELECT ( - - COALESCE ( + + 95, 18, - - 97 * + + 93 * + ( 2 ), + + 81 ) )
----
95

query I rowsort
SELECT + 6 * - - 9 + 16 AS col0
----
70

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

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

query I rowsort
SELECT + 70 * + 93
----
6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT ( + COUNT( * ) ) DIV + 31 + - - 87 col0
----
87

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + CAST( - 86 AS SIGNED ) + 84 * - - ( - COUNT( + 50 ) ) * + COUNT( * ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1016
SELECT + CAST ( - 86 AS INTEGER ) + 84 * - - ( - COUNT ( + 50 ) ) * + COUNT ( * ) * - COUNT ( * )
----
-2

query II rowsort
SELECT DISTINCT + 32, 13 + 96 col1
----
32
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + 34 * - - COUNT( + 42 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1018
SELECT + 34 * - - COUNT ( + 42 ) AS col0
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + 51 + NULLIF ( + COUNT( * ), 11 - - + 26 ) * - 12
----
39

skipif mysql # not compatible
query I rowsort label-1020
SELECT + 51 + NULLIF ( + COUNT ( * ), 11 - - + 26 ) * - 12
----
39

query I rowsort
SELECT - 68 * - - 90 + - - 11 + - - 17 AS col1
----
-6092

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT CASE - + 70 WHEN + COUNT( * ) THEN 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT CASE - + 70 WHEN + COUNT ( * ) THEN 5 END AS col1
----
NULL

query I rowsort
SELECT + 4 + 64 * + - 21
----
-1340

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT + 15 + + + 25 DIV + 68 * 89
----
15

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 15 + + + 25 / + 68 * 89
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1025
SELECT - - COUNT( * ) * - 77 + - 17 + COUNT( * ) DIV + 71 + + + 5 + SUM( ALL - 73 )
----
-162

skipif mysql # not compatible
query I rowsort label-1025
SELECT - - COUNT ( * ) * - 77 + - 17 + COUNT ( * ) / + 71 + + + 5 + SUM ( ALL - 73 )
----
-162

query I rowsort
SELECT + 25 * + + 21 * - 31
----
-16275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT ALL + + COUNT( * ) * + - 87 + + 37 + + CAST( COUNT( * ) AS SIGNED ) - + + 42
----
-91

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL + + COUNT ( * ) * + - 87 + + 37 + + CAST ( COUNT ( * ) AS INTEGER ) - + + 42
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT - - COUNT( * ) + 0 + + 60 col2
----
61

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - - COUNT ( * ) + 0 + + 60 col2
----
61

query I rowsort
SELECT ALL + - ( - 18 ) + - 72 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT - - SUM( 30 ) + - - COUNT( * ) * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1030
SELECT - - SUM ( 30 ) + - - COUNT ( * ) * - COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT 22 + 25 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - + 5 + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-1032
SELECT - + 5 + + COUNT ( * )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT - CAST( - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-1033
SELECT - CAST ( - 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - + COUNT( * ) + + 96 + - ( + 51 ) * + - 11 * + - 91 * - 32 AS col2
----
1633727

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - + COUNT ( * ) + + 96 + - ( + 51 ) * + - 11 * + - 91 * - 32 AS col2
----
1633727

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL - + MIN( + 88 ) + 46
----
-42

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - + MIN ( + 88 ) + 46
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1036
SELECT ALL - + 68 DIV + - 38 - 7 * ( - COUNT( * ) ) + - COUNT( * ) * - NULLIF ( - 5, + + 24 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - + 68 / + - 38 - 7 * ( - COUNT ( * ) ) + - COUNT ( * ) * - NULLIF ( - 5, + + 24 ) AS col1
----
3

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

query I rowsort
SELECT DISTINCT - + 18 * 87 * + - 7 AS col1
----
10962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1039
SELECT DISTINCT + + COUNT( - 66 ) - - + 38 DIV - 10 + - 66 AS col1, CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-1039
SELECT DISTINCT + + COUNT ( - 66 ) - - + 38 / - 10 + - 66 AS col1, CAST ( NULL AS INTEGER )
----
-68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1040
SELECT ALL + 67 * + - 0 * + CAST( - 34 AS SIGNED ) + - COUNT( * ) AS col1, COUNT( * ) * + + 87 * - NULLIF ( 30, 22 + SUM( DISTINCT + - 17 ) * + - 91 / + + CAST( SUM( - 85 ) AS SIGNED ) * - ( 99 / 39 ) ) * + COUNT( * ) - 22 AS col2
----
-1
-2632

skipif mysql # not compatible
query II rowsort label-1040
SELECT ALL + 67 * + - 0 * + CAST ( - 34 AS INTEGER ) + - COUNT ( * ) AS col1, COUNT ( * ) * + + 87 * - NULLIF ( 30, 22 + SUM ( DISTINCT + - 17 ) * + - 91 / + + CAST ( SUM ( - 85 ) AS INTEGER ) * - ( 99 / 39 ) ) * + COUNT ( * ) - 22 AS col2
----
-1
-2632

query I rowsort
SELECT ALL - 9 - + - ( + 10 )
----
1

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

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

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

query I rowsort
SELECT + 2 * 56 + - - 1 - + - 59 + + + 65 * + + 34 AS col2
----
2382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT ALL + NULLIF ( + 52, - COALESCE ( - CASE + ( - COALESCE ( + - 83, - MAX( + - 25 ) ) ) WHEN + 2 * 32 + - + 28 * + 73 THEN + COUNT( * ) ELSE - + 15 + - 30 END, - CAST( + NULLIF ( 38, + 82 ) AS SIGNED ) - + 16 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + NULLIF ( + 52, - COALESCE ( - CASE + ( - COALESCE ( + - 83, - MAX ( + - 25 ) ) ) WHEN + 2 * 32 + - + 28 * + 73 THEN + COUNT ( * ) ELSE - + 15 + - 30 END, - CAST ( + NULLIF ( 38, + 82 ) AS INTEGER ) - + 16 ) )
----
52

query I rowsort
SELECT - 94 * 37 AS col1
----
-3478

query II rowsort
SELECT 26 col2, - 18 + + - 12
----
26
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - COALESCE ( 24, COUNT( * ) - - - 17 )
----
-24

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - COALESCE ( 24, COUNT ( * ) - - - 17 )
----
-24

query I rowsort
SELECT 94 * - - 39 * 20
----
73320

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

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

query II rowsort
SELECT DISTINCT - 36 col1, + 60 + + + 23 AS col0
----
-36
83

query II rowsort
SELECT ALL - 74, - 18 AS col2
----
-74
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT 13 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-1053
SELECT 13 / 61
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT 9 * + + MAX( 26 ) * + 98 + - - 66
----
22998

skipif mysql # not compatible
query I rowsort label-1055
SELECT 9 * + + MAX ( 26 ) * + 98 + - - 66
----
22998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1056
SELECT ALL COUNT( * ) * COALESCE ( 96, - 88 DIV - COUNT( * ) DIV + + 6, COALESCE ( + CAST( + 28 AS SIGNED ), - + 98, ( - 71 ) DIV - 84 + + COUNT( * ) ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL COUNT ( * ) * COALESCE ( 96, - 88 / - COUNT ( * ) / + + 6, COALESCE ( + CAST ( + 28 AS INTEGER ), - + 98, ( - 71 ) / - 84 + + COUNT ( * ) ) ) AS col2
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT COUNT( * ) DIV MAX( DISTINCT + 10 ) * SUM( DISTINCT 35 ) * + 34 + + 9 + + + 78 DIV 57 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1058
SELECT COUNT ( * ) / MAX ( DISTINCT + 10 ) * SUM ( DISTINCT 35 ) * + 34 + + 9 + + + 78 / 57 AS col2
----
10

query I rowsort
SELECT ALL - 15 + - 76
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT 11 + 61 DIV + 74 + NULLIF ( - - 81, + - 63 * + + 90 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT 11 + 61 / + 74 + NULLIF ( - - 81, + - 63 * + + 90 ) col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT ALL ( - - 35 ) + - COUNT( - + 51 ) col2, - 99 AS col1
----
34
-99

skipif mysql # not compatible
query II rowsort label-1061
SELECT ALL ( - - 35 ) + - COUNT ( - + 51 ) col2, - 99 AS col1
----
34
-99

query I rowsort
SELECT - 99 - 13
----
-112

query II rowsort
SELECT - + 86 col1, 7 AS col1
----
-86
7

query I rowsort
SELECT 73 - + 94
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL + MIN( ALL + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + MIN ( ALL + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL CASE - COUNT( * ) WHEN - SUM( 30 ) THEN NULL WHEN - COALESCE ( COUNT( * ), COUNT( * ) - 84 + + 1 + + + CAST( NULL AS SIGNED ) ) THEN 54 WHEN + - 82 THEN - 34 * - - 51 + + 39 END * - - 69 AS col0
----
3726

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL CASE - COUNT ( * ) WHEN - SUM ( 30 ) THEN NULL WHEN - COALESCE ( COUNT ( * ), COUNT ( * ) - 84 + + 1 + + + CAST ( NULL AS INTEGER ) ) THEN 54 WHEN + - 82 THEN - 34 * - - 51 + + 39 END * - - 69 AS col0
----
3726

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1068
SELECT DISTINCT - 71 * + 57 * - COUNT( * ) DIV + COUNT( * ) AS col1
----
4047

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - 71 * + 57 * - COUNT ( * ) / + COUNT ( * ) AS col1
----
4047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT - CAST( - 50 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1069
SELECT - CAST ( - 50 AS INTEGER ) AS col0
----
50

query I rowsort
SELECT ALL COALESCE ( - - 65, 15 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT 42 - - 56 + COUNT( * ) - + - MAX( DISTINCT - 25 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1071
SELECT 42 - - 56 + COUNT ( * ) - + - MAX ( DISTINCT - 25 ) AS col2
----
74

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

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

query I rowsort
SELECT DISTINCT 40 * - 0
----
0

query II rowsort
SELECT - 98, + 23 * - - 25 AS col2
----
-98
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT 21 DIV 28 + - COUNT( * ) + - NULLIF ( - 50, - 92 + - 28 ) - + - 36 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1075
SELECT 21 / 28 + - COUNT ( * ) + - NULLIF ( - 50, - 92 + - 28 ) - + - 36 AS col2
----
85

query I rowsort
SELECT 4 * + + 36 * 68 AS col0
----
9792

query I rowsort
SELECT 78 + - - 22 - - + NULLIF ( - 5, + 12 ) * + + 39 * 54 * + COALESCE ( - ( - - 68 ), 59, + - 97 ) AS col1
----
716140

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT + 36 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + 36 / + 42
----
0

query I rowsort
SELECT 94 * + 40 AS col2
----
3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1080
SELECT ALL + COALESCE ( NULLIF ( - 66, + 30 ), + COUNT( * ) DIV + 83 * + 88 * + 10 * - 25 * - 51 ) * - 83
----
5478

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + COALESCE ( NULLIF ( - 66, + 30 ), + COUNT ( * ) / + 83 * + 88 * + 10 * - 25 * - 51 ) * - 83
----
5478

query I rowsort
SELECT ALL - 64 * - + 94 AS col1
----
6016

query I rowsort
SELECT 3 * - 41 AS col1
----
-123

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1083
SELECT - CASE + 89 WHEN - 26 - 65 THEN + - 54 WHEN - 56 THEN NULL WHEN - ( 14 ) THEN NULL ELSE - 41 END * + CAST( NULL AS DECIMAL ) + - 1 * CAST( NULL AS SIGNED ) * COALESCE ( - 86, + - 35 + + - 28 * 20 ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT - CASE + 89 WHEN - 26 - 65 THEN + - 54 WHEN - 56 THEN NULL WHEN - ( 14 ) THEN NULL ELSE - 41 END * + CAST ( NULL AS REAL ) + - 1 * CAST ( NULL AS INTEGER ) * COALESCE ( - 86, + - 35 + + - 28 * 20 ) / 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT DISTINCT - CAST( - 28 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - CAST ( - 28 AS INTEGER ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1085
SELECT ALL - COALESCE ( - 21, + 73 DIV + NULLIF ( + MAX( 46 ), 92 ), - 85 + + 81 ) + - 26 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - COALESCE ( - 21, + 73 / + NULLIF ( + MAX ( 46 ), 92 ), - 85 + + 81 ) + - 26 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 92 DIV + + 8 + - - 12 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1086
SELECT 92 / + + 8 + - - 12 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT 35 + + 20 + + + 18 + + 32 + 64 * + 2 * - 49 + 42 + + - 87 * - + CAST( + COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) col1
----
-6125

skipif mysql # not compatible
query I rowsort label-1087
SELECT 35 + + 20 + + + 18 + + 32 + 64 * + 2 * - 49 + 42 + + - 87 * - + CAST ( + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1
----
-6125

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - MAX( ( + 12 ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - MAX ( ( + 12 ) ) AS col2
----
-12

query I rowsort
SELECT - 16 + + 75 + 81
----
140

query I rowsort
SELECT DISTINCT + + 51 + 95
----
146

query I rowsort
SELECT NULLIF ( + 23, + + 47 * 14 * + 68 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT + SUM( DISTINCT + 48 ) + - COUNT( * ), 18 AS col1
----
47
18

skipif mysql # not compatible
query II rowsort label-1092
SELECT + SUM ( DISTINCT + 48 ) + - COUNT ( * ), 18 AS col1
----
47
18

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

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

query I rowsort
SELECT ALL + + 76 * - - 8 AS col2
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT + CAST( 60 AS SIGNED ) - MAX( 43 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1095
SELECT + CAST ( 60 AS INTEGER ) - MAX ( 43 ) AS col0
----
17

query I rowsort
SELECT + - 69 * 27 + + 42
----
-1821

query II rowsort
SELECT 18 * 97 AS col2, 87
----
1746
87

query I rowsort
SELECT ALL - 42 - 80
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT DISTINCT - 84 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - 84 / - 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT - 46 + - 47 AS col0, - MAX( ALL + 31 ) col2
----
-93
-31

skipif mysql # not compatible
query II rowsort label-1100
SELECT - 46 + - 47 AS col0, - MAX ( ALL + 31 ) col2
----
-93
-31

query I rowsort
SELECT + 55 * - 13
----
-715

query II rowsort
SELECT ALL 29 - + 15 AS col2, 80
----
14
80

query I rowsort
SELECT - 99 * - - 41 * - + 36 + - 73 AS col0
----
146051

query I rowsort
SELECT - 73 + - 13
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1105
SELECT + CASE - - 41 WHEN - ( + AVG ( - - ( + 93 ) ) ) THEN + MIN( - 35 ) WHEN + CAST( NULL AS SIGNED ) THEN + + AVG ( + 68 ) * - COALESCE ( + 16, 14 + + NULLIF ( + 63, - 29 ) * + 36 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT + CASE - - 41 WHEN - ( + AVG ( - - ( + 93 ) ) ) THEN + MIN ( - 35 ) WHEN + CAST ( NULL AS INTEGER ) THEN + + AVG ( + 68 ) * - COALESCE ( + 16, 14 + + NULLIF ( + 63, - 29 ) * + 36 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT + + CAST( NULL AS SIGNED ) * - + 10 * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT + + CAST ( NULL AS INTEGER ) * - + 10 * + 15 AS col1
----
NULL

query I rowsort
SELECT + CASE + 20 WHEN + 91 * 85 + + 88 - 10 THEN NULL ELSE + + 1 * - ( + + 36 ) END + + 92 col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT - COUNT( * ) AS col1, - 48 * + 25
----
-1
-1200

skipif mysql # not compatible
query II rowsort label-1108
SELECT - COUNT ( * ) AS col1, - 48 * + 25
----
-1
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT ALL NULLIF ( + 32, + ( + 95 ) ) * + 22 * + 22 DIV - COUNT( * )
----
-15488

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL NULLIF ( + 32, + ( + 95 ) ) * + 22 * + 22 / - COUNT ( * )
----
-15488

query I rowsort
SELECT ALL 41 * - 39 col1
----
-1599

query I rowsort
SELECT DISTINCT 99 + + 49 AS col2
----
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1113
SELECT + 28 + - COUNT( 70 ) + 56 + + 3 * - - ( + CAST( NULL AS SIGNED ) ) * - 97 - - COALESCE ( - 29, SUM( + - 7 ) / - 38 + 79, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 28 + - COUNT ( 70 ) + 56 + + 3 * - - ( + CAST ( NULL AS INTEGER ) ) * - 97 - - COALESCE ( - 29, SUM ( + - 7 ) / - 38 + 79, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 34 + + 93 * NULLIF ( + CASE + - 72 WHEN NULLIF ( + 2, 13 ) - - 29 THEN - - 51 END, - + 5 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1115
SELECT ALL 78 AS col0, MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 82 / + 40 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-1115
SELECT ALL 78 AS col0, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 82 / + 40 AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - 56 * + 28 * - + 90 + + COUNT( * ) AS col2
----
141121

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 56 * + 28 * - + 90 + + COUNT ( * ) AS col2
----
141121

query I rowsort
SELECT + 16 * + 16 AS col2
----
256

query I rowsort
SELECT CASE WHEN NULL <= - 27 THEN + 8 END / - - 15 + - 90 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - + 48, + 87 ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT + 69 DIV + 24
----
2

skipif mysql # not compatible
query I rowsort label-1120
SELECT + 69 / + 24
----
2

query I rowsort
SELECT ALL + 7 * - + 6 + - 32
----
-74

query I rowsort
SELECT NULLIF ( + 75, + - ( - - 27 ) + + - 56 + - 32 - - - 85 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT + CASE + + 28 WHEN + 48 / - COUNT( * ) + + 64 THEN + ( - 36 ) * - - COUNT( * ) * 75 - + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT + CASE + + 28 WHEN + 48 / - COUNT ( * ) + + 64 THEN + ( - 36 ) * - - COUNT ( * ) * 75 - + 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - COUNT( * ) * - + SUM( + + 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1124
SELECT - COUNT ( * ) * - + SUM ( + + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL - + CASE - 69 WHEN COUNT( * ) THEN NULL ELSE + + 11 * - - 72 - - 7 + + + 33 + NULLIF ( 71, 16 ) * + COUNT( * ) * + 94 END * 85 - - 18 col1
----
-637992

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - + CASE - 69 WHEN COUNT ( * ) THEN NULL ELSE + + 11 * - - 72 - - 7 + + + 33 + NULLIF ( 71, 16 ) * + COUNT ( * ) * + 94 END * 85 - - 18 col1
----
-637992

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT + + MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT + - 23, 62 * + + SUM( DISTINCT 22 ) AS col0
----
-23
1364

skipif mysql # not compatible
query II rowsort label-1127
SELECT + - 23, 62 * + + SUM ( DISTINCT 22 ) AS col0
----
-23
1364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + 37 * + - CAST( + 84 AS SIGNED ) * + - ( + 5 ) * + 25 AS col1
----
388500

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + 37 * + - CAST ( + 84 AS INTEGER ) * + - ( + 5 ) * + 25 AS col1
----
388500

query I rowsort
SELECT - + 26 * + - 65 AS col2
----
1690

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

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

query I rowsort
SELECT ALL 61 * 15 - - + 41 AS col1
----
956

query II rowsort
SELECT DISTINCT + - 73, 69 col0
----
-73
69

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

query I rowsort
SELECT - 17 * + 0 * - 49
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT - + 5 DIV - 45 DIV + + COUNT( * ) AS col0, 99 + - - MIN( ALL 41 ) * + + 49
----
0
2108

skipif mysql # not compatible
query II rowsort label-1136
SELECT - + 5 / - 45 / + + COUNT ( * ) AS col0, 99 + - - MIN ( ALL 41 ) * + + 49
----
0
2108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT - + 55 + + 4 DIV + COUNT( - - 10 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1138
SELECT - + 55 + + 4 / + COUNT ( - - 10 ) AS col0
----
-51

query I rowsort
SELECT - 19 * 92 * - + 84 AS col1
----
146832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT - - 81 + + CAST( - ( + - 30 ) AS SIGNED )
----
111

skipif mysql # not compatible
query I rowsort label-1140
SELECT - - 81 + + CAST ( - ( + - 30 ) AS INTEGER )
----
111

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

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

query I rowsort
SELECT - ( - + 11 ) * + 39
----
429

query I rowsort
SELECT + 88 + + ( + + 25 )
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT ALL 93 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 93 / 78
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1146
SELECT + 93 * - + COUNT( * ) AS col0, - NULLIF ( - - MIN( 69 ), + 89 * + 65 * + 24 ) + 75
----
-93
6

skipif mysql # not compatible
query II rowsort label-1146
SELECT + 93 * - + COUNT ( * ) AS col0, - NULLIF ( - - MIN ( 69 ), + 89 * + 65 * + 24 ) + 75
----
-93
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + MIN( DISTINCT + 29 ) - 63 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1147
SELECT + MIN ( DISTINCT + 29 ) - 63 AS col0
----
-34

query II rowsort
SELECT + ( - 18 ), 10 col1
----
-18
10

query I rowsort
SELECT + 9 + 35 * + - 8 AS col2
----
-271

query I rowsort
SELECT + 27 + + + 18 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - 13 * + COUNT( * ) + 53
----
40

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 13 * + COUNT ( * ) + 53
----
40

query II rowsort
SELECT - + 72 * - 10, + 4 AS col1
----
720
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + COUNT( * ) * + - 99 + 53 * + 63 + - 9 + 92
----
3323

skipif mysql # not compatible
query I rowsort label-1154
SELECT + COUNT ( * ) * + - 99 + 53 * + 63 + - 9 + 92
----
3323

query I rowsort
SELECT - 35 - 97
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1156
SELECT + 78 + + CAST( - + 87 AS SIGNED ) * - ( + COUNT( * ) ) AS col2, + 77 * 1 * + + CAST( NULL AS SIGNED ) AS col0
----
165
NULL

skipif mysql # not compatible
query II rowsort label-1156
SELECT + 78 + + CAST ( - + 87 AS INTEGER ) * - ( + COUNT ( * ) ) AS col2, + 77 * 1 * + + CAST ( NULL AS INTEGER ) AS col0
----
165
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL 22 DIV + 49 * 74 * - 99 * - + 73 + + 56 * - 29 + - 67 - - + 11
----
-1680

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 22 / + 49 * 74 * - 99 * - + 73 + + 56 * - 29 + - 67 - - + 11
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT DISTINCT + ( NULLIF ( CASE + + 58 WHEN - 82 / ( - 26 ) * 31 - CAST( + 24 AS SIGNED ) THEN + - NULLIF ( - - 8, - 85 - + 75 ) END, - 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + ( NULLIF ( CASE + + 58 WHEN - 82 / ( - 26 ) * 31 - CAST ( + 24 AS INTEGER ) THEN + - NULLIF ( - - 8, - 85 - + 75 ) END, - 40 ) )
----
NULL

query I rowsort
SELECT + - 95 + + 2 + - 89 AS col0
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT DISTINCT - + COUNT( * ) * - COALESCE ( - 19, 22, + - CAST( NULL AS SIGNED ) * - COUNT( * ) * - ( + 76 ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - + COUNT ( * ) * - COALESCE ( - 19, 22, + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - ( + 76 ) ) AS col1
----
-19

query I rowsort
SELECT ALL + - 46 * 67
----
-3082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT + - 9 * CAST( + 12 AS SIGNED ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-1162
SELECT + - 9 * CAST ( + 12 AS INTEGER ) AS col1
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT - 37 DIV MIN( DISTINCT 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1163
SELECT - 37 / MIN ( DISTINCT 33 ) AS col0
----
-1

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

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

query II rowsort
SELECT 19 * 94, + 0 AS col1
----
1786
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL + CAST( - ( + 24 ) AS SIGNED ) + - + 42 * - 69 * + 12 col1
----
34752

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + CAST ( - ( + 24 ) AS INTEGER ) + - + 42 * - 69 * + 12 col1
----
34752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1167
SELECT ALL - 5 + + + CAST( + 54 AS SIGNED ) + + - COUNT( * ) DIV - 30
----
49

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - 5 + + + CAST ( + 54 AS INTEGER ) + + - COUNT ( * ) / - 30
----
49

query I rowsort
SELECT 23 + + 0 + - - 21 * + + 45
----
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT - COUNT( * ) DIV - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - COUNT ( * ) / - 14 AS col1
----
0

query I rowsort
SELECT ALL + 60 + - 44 AS col1
----
16

query I rowsort
SELECT 3 * + + 75
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT 9 + - + COUNT( * ) + + 43 * - COUNT( * ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-1172
SELECT 9 + - + COUNT ( * ) + + 43 * - COUNT ( * ) col1
----
-35

query I rowsort
SELECT DISTINCT - 87 + 65
----
-22

query I rowsort
SELECT DISTINCT - 15 * - 45 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL - SUM( + 50 ) * - - 1 + MIN( ALL 17 )
----
-33

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - SUM ( + 50 ) * - - 1 + MIN ( ALL 17 )
----
-33

query I rowsort
SELECT DISTINCT + 42 - + 81 AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT NULLIF ( - 64, + NULLIF ( 38, - - 36 * - - 91 / - - 40 + - 3 + + 32 ) ) + - ( - 52 ) + + 85 + COUNT( * ) - + ( 21 ) + - - 74 * - CAST( NULL AS SIGNED ) * + 89 * - 83 / ( - 54 ) * 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT NULLIF ( - 64, + NULLIF ( 38, - - 36 * - - 91 / - - 40 + - 3 + + 32 ) ) + - ( - 52 ) + + 85 + COUNT ( * ) - + ( 21 ) + - - 74 * - CAST ( NULL AS INTEGER ) * + 89 * - 83 / ( - 54 ) * 53 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + COUNT ( * ) - - - 30 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT 18 * NULLIF ( 62, - - 91 * + 64 - + + 4 * CAST( NULL AS SIGNED ) * + 9 ) AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-1179
SELECT 18 * NULLIF ( 62, - - 91 * + 64 - + + 4 * CAST ( NULL AS INTEGER ) * + 9 ) AS col0
----
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT + COUNT( * ) DIV - 25 * + 18 + + 34 * 87 col2
----
2958

skipif mysql # not compatible
query I rowsort label-1180
SELECT + COUNT ( * ) / - 25 * + 18 + + 34 * 87 col2
----
2958

query II rowsort
SELECT DISTINCT - 12, + 62 AS col2
----
-12
62

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

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

query I rowsort
SELECT 86 * + 14 AS col0
----
1204

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1185
SELECT + 10 AS col2, 42 DIV 92
----
10
0

skipif mysql # not compatible
query II rowsort label-1185
SELECT + 10 AS col2, 42 / 92
----
10
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT 65 * - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT 65 * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 26 * - 18 * 71 AS col1
----
33228

query I rowsort
SELECT ALL 95 + 78
----
173

query I rowsort
SELECT DISTINCT - 61 + - 5
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1190
SELECT DISTINCT - 1 AS col2, - SUM( DISTINCT - - 80 )
----
-1
-80

skipif mysql # not compatible
query II rowsort label-1190
SELECT DISTINCT - 1 AS col2, - SUM ( DISTINCT - - 80 )
----
-1
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT + 92 + - 44 * 38 * - CAST( + - ( - + CAST( 74 AS SIGNED ) ) AS SIGNED ) AS col1
----
123820

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + 92 + - 44 * 38 * - CAST ( + - ( - + CAST ( 74 AS INTEGER ) ) AS INTEGER ) AS col1
----
123820

query I rowsort
SELECT 34 * 99 * - 31 col1
----
-104346

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT ALL + + NULLIF ( + 25, SUM( 13 ) + + 64 ) + 94 AS col2, 71 * 97
----
119
6887

skipif mysql # not compatible
query II rowsort label-1194
SELECT ALL + + NULLIF ( + 25, SUM ( 13 ) + + 64 ) + 94 AS col2, 71 * 97
----
119
6887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL 98 DIV - + COALESCE ( - 36, + ( + 14 ) DIV + - NULLIF ( - 75, - - NULLIF ( + 8, + 94 ) * - SUM( ALL 57 ) - 36 + + + 39 ) * - 87 - - + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL 98 / - + COALESCE ( - 36, + ( + 14 ) / + - NULLIF ( - 75, - - NULLIF ( + 8, + 94 ) * - SUM ( ALL 57 ) - 36 + + + 39 ) * - 87 - - + COUNT ( * ) ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT CAST( NULL AS SIGNED ) * 11 + 75 + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT CAST ( NULL AS INTEGER ) * 11 + 75 + 63 AS col0
----
NULL

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

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

query III rowsort
SELECT - 10 AS col0, 77 AS col1, - 31 col0
----
-10
77
-31

query I rowsort
SELECT ALL 11 * - CASE - 76 WHEN - 38 THEN NULL ELSE - 75 END
----
825

query I rowsort
SELECT 13 + 17 * + 24 AS col1
----
421

query II rowsort
SELECT DISTINCT 72 AS col0, - 4 + + 81 AS col2
----
72
77

query I rowsort
SELECT ALL 75 * 71
----
5325

query II rowsort
SELECT 5 AS col0, + 83 * + 25 AS col2
----
5
2075

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

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

query I rowsort
SELECT DISTINCT ( 36 ) - + - 39
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT 48 + + 23 + + - CAST( NULL AS SIGNED ) * - 4 / 80 - + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT 48 + + 23 + + - CAST ( NULL AS INTEGER ) * - 4 / 80 - + - 45
----
NULL

query II rowsort
SELECT ALL 86 AS col0, + 41 col1
----
86
41

query I rowsort
SELECT 57 + - - 10 + - + 6
----
61

query II rowsort
SELECT - 96, 86 AS col0
----
-96
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT - 97 AS col1, - COUNT( * ) + - - 39
----
-97
38

skipif mysql # not compatible
query II rowsort label-1210
SELECT - 97 AS col1, - COUNT ( * ) + - - 39
----
-97
38

query II rowsort
SELECT - 99, - 85 col1
----
-99
-85

query I rowsort
SELECT DISTINCT - 93 - 86
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL + 39 * - - 27 * COALESCE ( 13, COUNT( * ), - CAST( - 18 AS SIGNED ) ) col2
----
13689

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + 39 * - - 27 * COALESCE ( 13, COUNT ( * ), - CAST ( - 18 AS INTEGER ) ) col2
----
13689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT + 6 * MIN( ( - ( - 13 ) ) ) DIV - ( + 39 )
----
-2

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + 6 * MIN ( ( - ( - 13 ) ) ) / - ( + 39 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT 87 + - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1215
SELECT 87 + - COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT COUNT( * ) + + 85 - + - 80 + 6 * ( 98 ) AS col1, + 91 * 18 * + 14 - - - 50 AS col0
----
754
22882

skipif mysql # not compatible
query II rowsort label-1216
SELECT COUNT ( * ) + + 85 - + - 80 + 6 * ( 98 ) AS col1, + 91 * 18 * + 14 - - - 50 AS col0
----
754
22882

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1217
SELECT + CAST( NULL AS SIGNED ) / - 17 + - - 89 * - - 29 + + - 74 * 87, 53 * 76 AS col1
----
NULL
4028

skipif mysql # not compatible
query II rowsort label-1217
SELECT + CAST ( NULL AS INTEGER ) / - 17 + - - 89 * - - 29 + + - 74 * 87, 53 * 76 AS col1
----
NULL
4028

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT ALL 75 * + + 97 + + COUNT( * ) + - 17 AS col1, 24
----
7259
24

skipif mysql # not compatible
query II rowsort label-1218
SELECT ALL 75 * + + 97 + + COUNT ( * ) + - 17 AS col1, 24
----
7259
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + - 38 * + + 34 + - + ( 71 ) * - COUNT( * )
----
-1221

skipif mysql # not compatible
query I rowsort label-1219
SELECT + - 38 * + + 34 + - + ( 71 ) * - COUNT ( * )
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT MAX( 11 )
----
11

skipif mysql # not compatible
query I rowsort label-1220
SELECT MAX ( 11 )
----
11

query I rowsort
SELECT + 24 * + 29
----
696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT - 2 * - CASE COUNT( * ) WHEN - 99 THEN NULL ELSE + 62 * - + 47 END + 61
----
-5767

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - 2 * - CASE COUNT ( * ) WHEN - 99 THEN NULL ELSE + 62 * - + 47 END + 61
----
-5767

query II rowsort
SELECT + 51 AS col2, 32 AS col1
----
51
32

query III rowsort
SELECT + 90 AS col0, - 51 AS col1, - - 49 - - 93 AS col1
----
90
-51
142

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + 52 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-1228
SELECT + 52 / - 35
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1229
SELECT ALL 35 - + 39 * - - 1 + - + 11 + + 60 * + + CAST( NULL AS DECIMAL ) + + AVG ( ALL 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL 35 - + 39 * - - 1 + - + 11 + + 60 * + + CAST ( NULL AS REAL ) + + AVG ( ALL 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL 17 - - 23 + - + 27 + + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 17 - - 23 + - + 27 + + COUNT ( * ) AS col2
----
14

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT + COUNT ( * ) / 7
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT DISTINCT ( 57 ) * - COUNT( * ) + + - 23 + - 8 * CASE - CAST( NULL AS SIGNED ) WHEN 2 THEN NULL WHEN - 20 + - 99 - + - 95 + - - 65 * + 27 THEN NULL WHEN + 25 THEN + - 33 + + 34 WHEN + 15 THEN - - 27 * 63 + - - 32 WHEN + MAX( + - 98 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT ( 57 ) * - COUNT ( * ) + + - 23 + - 8 * CASE - CAST ( NULL AS INTEGER ) WHEN 2 THEN NULL WHEN - 20 + - 99 - + - 95 + - - 65 * + 27 THEN NULL WHEN + 25 THEN + - 33 + + 34 WHEN + 15 THEN - - 27 * 63 + - - 32 WHEN + MAX ( + - 98 ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT + 86 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 86 / 88 AS col0
----
0

query I rowsort
SELECT ALL 57 * - 24
----
-1368

query I rowsort
SELECT + 63 - + ( - - ( + 80 ) ) AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT COUNT( 71 ) * CASE 58 WHEN 6 THEN - 24 WHEN - 34 THEN - NULLIF ( - 76, + - 84 + CASE WHEN NOT NULL NOT IN ( - 22, 55 * 98 * 45, MIN( + - 19 ) ) AND NOT CAST( AVG ( ALL + 15 ) AS SIGNED ) + ( 75 ) IS NOT NULL THEN NULL ELSE 87 + + 84 END ) END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT COUNT ( 71 ) * CASE 58 WHEN 6 THEN - 24 WHEN - 34 THEN - NULLIF ( - 76, + - 84 + CASE WHEN NOT NULL NOT IN ( - 22, 55 * 98 * 45, MIN ( + - 19 ) ) AND NOT CAST ( AVG ( ALL + 15 ) AS INTEGER ) + ( 75 ) IS NOT NULL THEN NULL ELSE 87 + + 84 END ) END * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT - ( + NULLIF ( + - CASE + 57 WHEN COUNT( * ) THEN NULL ELSE + 74 + - NULLIF ( - - 13, 88 ) END, - COUNT( * ) + ( - - 32 ) ) ) AS col1, 24
----
61
24

skipif mysql # not compatible
query II rowsort label-1237
SELECT - ( + NULLIF ( + - CASE + 57 WHEN COUNT ( * ) THEN NULL ELSE + 74 + - NULLIF ( - - 13, 88 ) END, - COUNT ( * ) + ( - - 32 ) ) ) AS col1, 24
----
61
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + COUNT( * ) * + 92 * + 14
----
1288

skipif mysql # not compatible
query I rowsort label-1238
SELECT + COUNT ( * ) * + 92 * + 14
----
1288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT + NULLIF ( + 76, - + 92 + - CASE + 82 WHEN 8 THEN 6 + 2 END * + ( - 74 ) + CASE WHEN NOT ( NULL ) NOT BETWEEN - - CAST( NULL AS SIGNED ) AND - COUNT( * ) / + 24 THEN NULL WHEN 48 * 88 / - + 64 BETWEEN ( 64 ) AND ( - CASE + 30 WHEN 66 THEN NULL ELSE 19 + 67 / - 70 END ) THEN ( - 96 ) ELSE NULL END + + 70 ) * 73 AS col1
----
5548

skipif mysql # not compatible
query I rowsort label-1240
SELECT + NULLIF ( + 76, - + 92 + - CASE + 82 WHEN 8 THEN 6 + 2 END * + ( - 74 ) + CASE WHEN NOT ( NULL ) NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - COUNT ( * ) / + 24 THEN NULL WHEN 48 * 88 / - + 64 BETWEEN ( 64 ) AND ( - CASE + 30 WHEN 66 THEN NULL ELSE 19 + 67 / - 70 END ) THEN ( - 96 ) ELSE NULL END + + 70 ) * 73 AS col1
----
5548

query II rowsort
SELECT - - 33 + + 68 AS col0, 87 AS col2
----
101
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT ALL 31 / + 26 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 31 / + 26 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + - 31 * 47
----
-1457

query I rowsort
SELECT ALL - + 68 * - NULLIF ( + + 92, - 8 + + 62 ) * 35
----
218960

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT DISTINCT + COALESCE ( + - CASE 74 WHEN - 78 THEN NULL WHEN + - 95 + + - 89 THEN 77 END, - 21 * + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT + COALESCE ( + - CASE 74 WHEN - 78 THEN NULL WHEN + - 95 + + - 89 THEN 77 END, - 21 * + COUNT ( * ) )
----
-21

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

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

query I rowsort
SELECT - + 40 * 82 * - + 86
----
282080

query I rowsort
SELECT - - 70 - - 12
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT NULLIF ( + 62, + COUNT( * ) - 6 )
----
62

skipif mysql # not compatible
query I rowsort label-1250
SELECT NULLIF ( + 62, + COUNT ( * ) - 6 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT ALL COALESCE ( + 75, - 30 - + 68 * + 70 * + + ( ( - NULLIF ( + 2, + - 10 ) ) ) ) * CAST( NULL AS SIGNED ) * 2 - + 23 col1, 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-1251
SELECT ALL COALESCE ( + 75, - 30 - + 68 * + 70 * + + ( ( - NULLIF ( + 2, + - 10 ) ) ) ) * CAST ( NULL AS INTEGER ) * 2 - + 23 col1, 30 AS col2
----
NULL
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT NULLIF ( 25, - - COUNT( * ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1252
SELECT NULLIF ( 25, - - COUNT ( * ) ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1253
SELECT DISTINCT + 61 AS col1, - 17 + 43 + 51 + 36 + - - CAST( NULL AS SIGNED ) / + MAX( 40 ) * 41 + COUNT( * ) + + 84 + + - 16 + - COUNT( * ) * - 72 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1253
SELECT DISTINCT + 61 AS col1, - 17 + 43 + 51 + 36 + - - CAST ( NULL AS INTEGER ) / + MAX ( 40 ) * 41 + COUNT ( * ) + + 84 + + - 16 + - COUNT ( * ) * - 72 AS col2
----
61
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL + ( - - 69 ) * + + CASE ( - + 95 ) WHEN + 69 THEN + + 88 WHEN + - 58 / + - 13 - + + 63 + 23 + ( 10 ) * + + 96 - NULLIF ( 2, ( + COUNT( + 78 ) ) ) + - 68 THEN ( + 99 ) + + COUNT( * ) ELSE NULL END + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + ( - - 69 ) * + + CASE ( - + 95 ) WHEN + 69 THEN + + 88 WHEN + - 58 / + - 13 - + + 63 + 23 + ( 10 ) * + + 96 - NULLIF ( 2, ( + COUNT ( + 78 ) ) ) + - 68 THEN ( + 99 ) + + COUNT ( * ) ELSE NULL END + - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - 93 + + 41 + + + NULLIF ( - 53, 71 ) * + COUNT( * ) + 72 * + + 53 AS col0
----
3711

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 93 + + 41 + + + NULLIF ( - 53, 71 ) * + COUNT ( * ) + 72 * + + 53 AS col0
----
3711

query I rowsort
SELECT - 11 * 9 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + COUNT( * ) * CASE 59 WHEN 14 * + COUNT( * ) * + - 39 + 22 * - ( - + 81 ) THEN 12 + - 24 WHEN + 23 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT + COUNT ( * ) * CASE 59 WHEN 14 * + COUNT ( * ) * + - 39 + 22 * - ( - + 81 ) THEN 12 + - 24 WHEN + 23 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT - COUNT( * ), + 74 + 41 AS col2
----
-1
115

skipif mysql # not compatible
query II rowsort label-1259
SELECT - COUNT ( * ), + 74 + 41 AS col2
----
-1
115

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

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

query II rowsort
SELECT DISTINCT + ( + + 62 ) * 98, 27 + + ( - 79 ) - + - 56 AS col2
----
6076
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT DISTINCT COUNT( * ), 19 + - - COUNT( * ) AS col1
----
1
20

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT COUNT ( * ), 19 + - - COUNT ( * ) AS col1
----
1
20

query I rowsort
SELECT DISTINCT 74 + 38 col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1264
SELECT + 85 + CAST( - 95 AS SIGNED ), 39 AS col2
----
-10
39

skipif mysql # not compatible
query II rowsort label-1264
SELECT + 85 + CAST ( - 95 AS INTEGER ), 39 AS col2
----
-10
39

query I rowsort
SELECT ALL + 98 + + + CASE - 24 WHEN - 72 THEN NULL ELSE + 12 END
----
110

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

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

query I rowsort
SELECT 2 - - 81 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT COUNT( * ) * 72 * - - NULLIF ( 97, - 60 )
----
6984

skipif mysql # not compatible
query I rowsort label-1268
SELECT COUNT ( * ) * 72 * - - NULLIF ( 97, - 60 )
----
6984

query I rowsort
SELECT - - CASE 1 WHEN + 32 THEN NULL ELSE - 74 + - - 54 END
----
-20

query I rowsort
SELECT ALL 6 * 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT COALESCE ( ( + 47 ), 82 * - + ( 21 ), + 46 ) * 20 + + 8 + - COUNT( * ) - - - COUNT( * )
----
946

skipif mysql # not compatible
query I rowsort label-1271
SELECT COALESCE ( ( + 47 ), 82 * - + ( 21 ), + 46 ) * 20 + + 8 + - COUNT ( * ) - - - COUNT ( * )
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COUNT( * ) + - 94 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COUNT ( * ) + - 94 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1273
SELECT - NULLIF ( + 76, - 78 DIV - 82 * - COUNT( * ) * 77 ) DIV 11 * + + 59 - 39 * - 44 + + 8 * - + 68 * - CAST( - COUNT( + ( + 68 ) ) AS SIGNED ) * + + 12 + - + 93 * - NULLIF ( + COUNT( * ), + 29 ) + 89 AS col2
----
-4984

skipif mysql # not compatible
query I rowsort label-1273
SELECT - NULLIF ( + 76, - 78 / - 82 * - COUNT ( * ) * 77 ) / 11 * + + 59 - 39 * - 44 + + 8 * - + 68 * - CAST ( - COUNT ( + ( + 68 ) ) AS INTEGER ) * + + 12 + - + 93 * - NULLIF ( + COUNT ( * ), + 29 ) + 89 AS col2
----
-4984

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT + COUNT( * ) * COALESCE ( - 90, 31, 5 + + 44 ) AS col2, + 72 AS col0
----
-90
72

skipif mysql # not compatible
query II rowsort label-1274
SELECT + COUNT ( * ) * COALESCE ( - 90, 31, 5 + + 44 ) AS col2, + 72 AS col0
----
-90
72

query II rowsort
SELECT - - 0 * + 62 - + + 59 + 68 AS col2, 45 + 9
----
9
54

query I rowsort
SELECT 40 * - 35
----
-1400

query I rowsort
SELECT DISTINCT - + 26 col1
----
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT DISTINCT 35 DIV + + NULLIF ( + - 43, + COUNT( - 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT 35 / + + NULLIF ( + - 43, + COUNT ( - 28 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT 89 + + + 70 + + MIN( 26 ) * - 15 AS col2
----
-231

skipif mysql # not compatible
query I rowsort label-1280
SELECT 89 + + + 70 + + MIN ( 26 ) * - 15 AS col2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - COUNT( * ) - - 22 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - COUNT ( * ) - - 22 AS col1
----
21

query I rowsort
SELECT 29 * - 52 AS col2
----
-1508

onlyif mysql # aggregate syntax: 
query II rowsort label-1283
SELECT ALL 53 * + 66 AS col0, COUNT( * )
----
3498
1

skipif mysql # not compatible
query II rowsort label-1283
SELECT ALL 53 * + 66 AS col0, COUNT ( * )
----
3498
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 38 + + 58 + + COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-1284
SELECT 38 + + 58 + + COUNT ( * ) col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT 12 * - + COUNT( * ) col2, 51 AS col1
----
-12
51

skipif mysql # not compatible
query II rowsort label-1285
SELECT 12 * - + COUNT ( * ) col2, 51 AS col1
----
-12
51

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT 19 / 41 * + COUNT ( * ) * - 33 AS col2
----
0

query I rowsort
SELECT 54 * 27
----
1458

onlyif mysql # aggregate syntax: 
query II rowsort label-1288
SELECT 57 + + + 38, + 69 * + COALESCE ( - 80, + 7 ) * + COUNT( DISTINCT - 66 ) AS col1
----
95
-5520

skipif mysql # not compatible
query II rowsort label-1288
SELECT 57 + + + 38, + 69 * + COALESCE ( - 80, + 7 ) * + COUNT ( DISTINCT - 66 ) AS col1
----
95
-5520

query II rowsort
SELECT 67 + - + 90 AS col2, + 33 AS col1
----
-23
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT ALL - 7 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - 7 / 84
----
0

query I rowsort
SELECT 44 + 93 * + - 25 * - 70 AS col0
----
162794

query I rowsort
SELECT DISTINCT + 34 + - ( + ( 64 ) ) * + - 70 * + 50
----
224034

query I rowsort
SELECT - ( + 13 ) + + 45 AS col2
----
32

query I rowsort
SELECT 16 + + 52
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT DISTINCT + CAST( - + MIN( DISTINCT - 44 ) AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + CAST ( - + MIN ( DISTINCT - 44 ) AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - COUNT( * ) + + ( 41 )
----
40

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - COUNT ( * ) + + ( 41 )
----
40

query I rowsort
SELECT - NULLIF ( 76, - COALESCE ( + 89, 74 * + - 17 * + - 68 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + 52 + - 98 * COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1298
SELECT + 52 + - 98 * COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ( - CASE - 46 WHEN - - 41 * + COUNT( * ) + + 2 * - 63 + - 26 THEN NULL WHEN + COALESCE ( - - 51, 71 ) - + COUNT( DISTINCT + 29 ) * + 82 THEN ( + 13 ) END ) * 96 * + 24 * 53 * - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT ( - CASE - 46 WHEN - - 41 * + COUNT ( * ) + + 2 * - 63 + - 26 THEN NULL WHEN + COALESCE ( - - 51, 71 ) - + COUNT ( DISTINCT + 29 ) * + 82 THEN ( + 13 ) END ) * 96 * + 24 * 53 * - 81 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT 85 + + 54 * + - CASE - 70 WHEN + SUM( - 63 ) THEN + - 56 ELSE + 75 END
----
-3965

skipif mysql # not compatible
query I rowsort label-1300
SELECT 85 + + 54 * + - CASE - 70 WHEN + SUM ( - 63 ) THEN + - 56 ELSE + 75 END
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL 35 - + 94 * - - COUNT( * ) + - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL 35 - + 94 * - - COUNT ( * ) + - - COUNT ( * )
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1302
SELECT - + ( 12 ), - CAST( NULL AS DECIMAL ) * CASE - + 23 WHEN 25 + 54 THEN + 38 END AS col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1302
SELECT - + ( 12 ), - CAST ( NULL AS REAL ) * CASE - + 23 WHEN 25 + 54 THEN + 38 END AS col2
----
-12
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT 32 + + 62 AS col1, COUNT( * ) + - 39 - 31 * - 91 col1
----
94
2783

skipif mysql # not compatible
query II rowsort label-1303
SELECT 32 + + 62 AS col1, COUNT ( * ) + - 39 - 31 * - 91 col1
----
94
2783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1304
SELECT - 18 * 20 + - + 36 * - 30 / - CAST( NULL AS SIGNED ) * 62 / - 3 AS col2, + MAX( DISTINCT 31 ) col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1304
SELECT - 18 * 20 + - + 36 * - 30 / - CAST ( NULL AS INTEGER ) * 62 / - 3 AS col2, + MAX ( DISTINCT 31 ) col1
----
NULL
31

query I rowsort
SELECT 34 * + 95
----
3230

query I rowsort
SELECT - 92 * - 80 + 7 + - + 65 * - ( + - 63 ) AS col1
----
3272

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT - 72 DIV + 84 * + + ( - 93 ) + 67 * - 59 - + 20
----
-3973

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 72 / + 84 * + + ( - 93 ) + 67 * - 59 - + 20
----
-3973

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL CASE AVG ( + + 31 ) WHEN + ( + COUNT( * ) ) THEN NULL WHEN - 23 / + 8 * - 23 THEN - 78 ELSE 59 END * - - 57 + - + 10
----
3353

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL CASE AVG ( + + 31 ) WHEN + ( + COUNT ( * ) ) THEN NULL WHEN - 23 / + 8 * - 23 THEN - 78 ELSE 59 END * - - 57 + - + 10
----
3353

query I rowsort
SELECT DISTINCT - 32 * - 97 AS col0
----
3104

query II rowsort
SELECT ALL - COALESCE ( 66, 27 * - + 44 ), 5 * 59 * + 98 * + 80 AS col0
----
-66
2312800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT + ( + + SUM( - CAST( + 89 AS SIGNED ) ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-1311
SELECT + ( + + SUM ( - CAST ( + 89 AS INTEGER ) ) ) col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT COALESCE ( 37, + CASE - + COUNT( + ( 6 ) ) WHEN + + 61 THEN NULL ELSE + + 9 + + 26 END, + COUNT( * ) + + 84 ) * - 92 * - - 48
----
-163392

skipif mysql # not compatible
query I rowsort label-1312
SELECT COALESCE ( 37, + CASE - + COUNT ( + ( 6 ) ) WHEN + + 61 THEN NULL ELSE + + 9 + + 26 END, + COUNT ( * ) + + 84 ) * - 92 * - - 48
----
-163392

query II rowsort
SELECT + 59, 87 AS col0
----
59
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT SUM( ( + 10 ) ) col0
----
10

skipif mysql # not compatible
query I rowsort label-1314
SELECT SUM ( ( + 10 ) ) col0
----
10

query I rowsort
SELECT 57 * + 78 AS col2
----
4446

query I rowsort
SELECT 11 * 23 - + + 93 col2
----
160

query I rowsort
SELECT 64 * + ( + 21 ) col0
----
1344

onlyif mysql # DIV for integer division: 
query II rowsort label-1318
SELECT + 69 AS col0, 70 DIV 72 AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-1318
SELECT + 69 AS col0, 70 / 72 AS col0
----
69
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1319
SELECT 47 - 9 + - COUNT( * ) * + NULLIF ( + COUNT( * ), + CASE + 35 WHEN - - 26 THEN + COUNT( * ) / COUNT( * ) + + 27 * - CAST( NULL AS SIGNED ) * + 20 END ) * + + 10 * 71 + - + 33 + - 48 - + 25 AS col1, - 10
----
-778
-10

skipif mysql # not compatible
query II rowsort label-1319
SELECT 47 - 9 + - COUNT ( * ) * + NULLIF ( + COUNT ( * ), + CASE + 35 WHEN - - 26 THEN + COUNT ( * ) / COUNT ( * ) + + 27 * - CAST ( NULL AS INTEGER ) * + 20 END ) * + + 10 * 71 + - + 33 + - 48 - + 25 AS col1, - 10
----
-778
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT MAX( DISTINCT - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1320
SELECT MAX ( DISTINCT - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL + 48 + NULLIF ( - CAST( + - 54 AS SIGNED ), + 80 + + + 17 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + 48 + NULLIF ( - CAST ( + - 54 AS INTEGER ), + 80 + + + 17 ) AS col1
----
102

query I rowsort
SELECT ALL 98 + - 52 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT 48 * + 94 - + + COUNT( ALL - + 45 ) * 9
----
4503

skipif mysql # not compatible
query I rowsort label-1323
SELECT 48 * + 94 - + + COUNT ( ALL - + 45 ) * 9
----
4503

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

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

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL MAX( DISTINCT + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL MAX ( DISTINCT + 34 ) AS col0
----
34

query II rowsort
SELECT - 50 + + 31 - - 65 AS col2, 96 AS col2
----
46
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT - + ( + - COALESCE ( - - 2, - - COUNT( DISTINCT + 60 ) + 91 + - ( + 19 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-1328
SELECT - + ( + - COALESCE ( - - 2, - - COUNT ( DISTINCT + 60 ) + 91 + - ( + 19 ) ) )
----
2

query I rowsort
SELECT - 5 + - 89 - - 41
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL + MIN( - 67 ) + - ( - 47 ) - SUM( - + CAST( NULL AS SIGNED ) ) * 48 + + - ( - + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + MIN ( - 67 ) + - ( - 47 ) - SUM ( - + CAST ( NULL AS INTEGER ) ) * 48 + + - ( - + 54 )
----
NULL

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

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

query I rowsort
SELECT ALL - - 53 * + - 54 col2
----
-2862

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT - 36 * - COUNT( * ) col0
----
36

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 36 * - COUNT ( * ) col0
----
36

query I rowsort
SELECT DISTINCT - 88 - 33 + + + 95 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1335
SELECT ALL + + 24 - + 3 + + - 14 * - + 59 + + 46 * - 26 AS col1, - CAST( NULL AS SIGNED )
----
-349
NULL

skipif mysql # not compatible
query II rowsort label-1335
SELECT ALL + + 24 - + 3 + + - 14 * - + 59 + + 46 * - 26 AS col1, - CAST ( NULL AS INTEGER )
----
-349
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - 55 * - + 22 * - 54 + + 2 + - CAST( + 12 AS SIGNED ) * COUNT( * ) + + ( + - 1 )
----
-65351

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - 55 * - + 22 * - 54 + + 2 + - CAST ( + 12 AS INTEGER ) * COUNT ( * ) + + ( + - 1 )
----
-65351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT - 94 * NULLIF ( + + ( COUNT( * ) ), - 27 ) + - CAST( + + CAST( 43 AS SIGNED ) AS SIGNED ) + - - COUNT( * ) * + 31 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 94 * NULLIF ( + + ( COUNT ( * ) ), - 27 ) + - CAST ( + + CAST ( 43 AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) * + 31 AS col2
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT DISTINCT - + 11 * - + 55 + + + 38 DIV 25
----
606

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT - + 11 * - + 55 + + + 38 / 25
----
606

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT - + 58 + + - 29 * 45 * + COUNT( * ) + - 50 AS col1, 1 AS col2
----
-1413
1

skipif mysql # not compatible
query II rowsort label-1339
SELECT - + 58 + + - 29 * 45 * + COUNT ( * ) + - 50 AS col1, 1 AS col2
----
-1413
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT - + 19 * + - 66 * - COUNT( * ) AS col0
----
-1254

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - + 19 * + - 66 * - COUNT ( * ) AS col0
----
-1254

query I rowsort
SELECT + 52 - - 1 * + 1 AS col0
----
53

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

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

query I rowsort
SELECT ALL CASE - ( - + 97 ) WHEN - - 50 THEN NULL WHEN + 57 * - 42 THEN - NULLIF ( 60, + 0 * COALESCE ( + 98, + 60 ) * 92 ) - - - 38 * 32 WHEN + 66 THEN - 69 * - 73 END AS col0
----
NULL

query I rowsort
SELECT - 10 + + + ( - 92 ) - - + 47 * - 36 col0
----
-1794

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT - 88 + 96 + 59 * + 40 + - + 34 * - COUNT( * )
----
2402

skipif mysql # not compatible
query I rowsort label-1347
SELECT - 88 + 96 + 59 * + 40 + - + 34 * - COUNT ( * )
----
2402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT DISTINCT ( - MAX( DISTINCT - 11 ) ) * - COUNT( * ) DIV NULLIF ( 77, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT ( - MAX ( DISTINCT - 11 ) ) * - COUNT ( * ) / NULLIF ( 77, - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT 15 * + COUNT( * ) * + 60 + 63 * + + ( + ( 46 ) ) + + 43 col2
----
3841

skipif mysql # not compatible
query I rowsort label-1349
SELECT 15 * + COUNT ( * ) * + 60 + 63 * + + ( + ( 46 ) ) + + 43 col2
----
3841

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL + 25 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + 25 / 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT ALL + 18 col0, ( - CASE - - 34 WHEN - 71 THEN NULL WHEN + - 71 * + + 23 THEN - 34 END ) * COUNT( * ) AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL + 18 col0, ( - CASE - - 34 WHEN - 71 THEN NULL WHEN + - 71 * + + 23 THEN - 34 END ) * COUNT ( * ) AS col2
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT CASE - - 98 WHEN + 6 + + - 17 + - ( - 67 ) THEN 63 + + 36 WHEN + 90 THEN NULL ELSE 88 * COUNT( * ) * 27 * 36 + CASE + - CASE + 52 WHEN 58 + - 76 THEN - 32 ELSE NULL END WHEN + - 83 + + + 50 THEN 21 * + COALESCE ( 94, + - COUNT( * ) ) + + NULLIF ( AVG ( ALL + 40 ), 5 / COUNT( * ) ) ELSE NULL END * 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT CASE - - 98 WHEN + 6 + + - 17 + - ( - 67 ) THEN 63 + + 36 WHEN + 90 THEN NULL ELSE 88 * COUNT ( * ) * 27 * 36 + CASE + - CASE + 52 WHEN 58 + - 76 THEN - 32 ELSE NULL END WHEN + - 83 + + + 50 THEN 21 * + COALESCE ( 94, + - COUNT ( * ) ) + + NULLIF ( AVG ( ALL + 40 ), 5 / COUNT ( * ) ) ELSE NULL END * 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT 41 * - COUNT( * ) + - 84 + 93 * + 56
----
5083

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT 41 * - COUNT ( * ) + - 84 + 93 * + 56
----
5083

onlyif mysql # aggregate syntax: 
query III rowsort label-1354
SELECT ALL + 8, 57 col2, - + COUNT( * ) AS col0
----
8
57
-1

skipif mysql # not compatible
query III rowsort label-1354
SELECT ALL + 8, 57 col2, - + COUNT ( * ) AS col0
----
8
57
-1

query I rowsort
SELECT + 80 * - 56
----
-4480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT CAST( + 29 AS SIGNED ) * CAST( - 4 AS SIGNED ) + + - 88 AS col1
----
-204

skipif mysql # not compatible
query I rowsort label-1356
SELECT CAST ( + 29 AS INTEGER ) * CAST ( - 4 AS INTEGER ) + + - 88 AS col1
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1357
SELECT ALL 41 * - 44 * + + CAST( + COUNT( * ) AS SIGNED ) * + - NULLIF ( + + 29, + 77 - 65 + - 44 ) * + 73 * + - SUM( + 35 ) + - CASE COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN COUNT( * ) END + - 29 + - 4 + + COUNT( * ) * + 70 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL 41 * - 44 * + + CAST ( + COUNT ( * ) AS INTEGER ) * + - NULLIF ( + + 29, + 77 - 65 + - 44 ) * + 73 * + - SUM ( + 35 ) + - CASE COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN COUNT ( * ) END + - 29 + - 4 + + COUNT ( * ) * + 70 * + 6 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1358
SELECT CASE - 69 WHEN - - CAST( + 24 AS DECIMAL ) THEN NULL WHEN 24 - + + ( + + 4 ) THEN NULL ELSE 35 + - + 40 END
----
-5

skipif mysql # not compatible
query I rowsort label-1358
SELECT CASE - 69 WHEN - - CAST ( + 24 AS REAL ) THEN NULL WHEN 24 - + + ( + + 4 ) THEN NULL ELSE 35 + - + 40 END
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + MIN( ALL + 61 ) * 74 AS col1
----
4514

skipif mysql # not compatible
query I rowsort label-1359
SELECT + MIN ( ALL + 61 ) * 74 AS col1
----
4514

query I rowsort
SELECT ALL + 60 * 77 - - 30 + - 37 AS col2
----
4613

query I rowsort
SELECT + 11 * - 85 AS col0
----
-935

query I rowsort
SELECT DISTINCT 72 * + 87 - - - 65 + - 82 + 73 * + + 73 + + 52
----
11498

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1363
SELECT ALL 9, 76 * - CAST( NULL AS DECIMAL ) + + - 57 / - - 20 AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT ALL 9, 76 * - CAST ( NULL AS REAL ) + + - 57 / - - 20 AS col2
----
9
NULL

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

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

query I rowsort
SELECT ALL + + 22 * + ( + 44 )
----
968

query I rowsort
SELECT + - ( + + 77 ) * 56 * - - 21 * - 42 AS col0
----
3803184

query II rowsort
SELECT - - 15 AS col1, - 89
----
15
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL + MAX( ALL + 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL + MAX ( ALL + 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1369
SELECT + + 87 + - 70 + + 63 + COUNT( * ) + - + CAST( NULL AS SIGNED ) - - 13 + ( + 79 ) / - CAST( + - 10 AS SIGNED ) * 18 AS col1, + COUNT( * ) + 28 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-1369
SELECT + + 87 + - 70 + + 63 + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 13 + ( + 79 ) / - CAST ( + - 10 AS INTEGER ) * 18 AS col1, + COUNT ( * ) + 28 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - + 29 - - + MIN( + 76 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-1370
SELECT - + 29 - - + MIN ( + 76 ) col1
----
47

query I rowsort
SELECT - 14 * - 6 AS col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - NULLIF ( + - 46, - SUM( ALL - NULLIF ( - - 81, - + 71 ) ) ) * + + 9 + + + 44 + - 26 AS col0
----
432

skipif mysql # not compatible
query I rowsort label-1373
SELECT - NULLIF ( + - 46, - SUM ( ALL - NULLIF ( - - 81, - + 71 ) ) ) * + + 9 + + + 44 + - 26 AS col0
----
432

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1376
SELECT - - CASE + - 99 WHEN - 12 * 40 THEN NULL WHEN + 40 * COUNT( * ) + - 19 - - CAST( NULL AS SIGNED ) * 78 + + 11 THEN + 70 * - + 64 WHEN 66 THEN NULL ELSE NULL END + + 31 AS col0, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1376
SELECT - - CASE + - 99 WHEN - 12 * 40 THEN NULL WHEN + 40 * COUNT ( * ) + - 19 - - CAST ( NULL AS INTEGER ) * 78 + + 11 THEN + 70 * - + 64 WHEN 66 THEN NULL ELSE NULL END + + 31 AS col0, 41
----
NULL
41

query I rowsort
SELECT - 64 * + 84
----
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT + 56 DIV - 83 * - 85 + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + 56 / - 83 * - 85 + - 51
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT ALL - 23 DIV + 4 + - 46 + - CASE - 74 WHEN - 79 THEN NULL WHEN 33 * - COUNT( DISTINCT - 85 ) THEN + + 9 + - + ( - 19 ) + - + SUM( ALL + - 25 ) + 10 * 10 WHEN - + ( 64 ) THEN NULL ELSE 83 END
----
-134

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - 23 / + 4 + - 46 + - CASE - 74 WHEN - 79 THEN NULL WHEN 33 * - COUNT ( DISTINCT - 85 ) THEN + + 9 + - + ( - 19 ) + - + SUM ( ALL + - 25 ) + 10 * 10 WHEN - + ( 64 ) THEN NULL ELSE 83 END
----
-134

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

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + ( + 19 ) / - - ( COUNT ( * ) ) + - - COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1381
SELECT 53 * - - NULLIF ( + 68, + - NULLIF ( - - CAST( NULL AS DECIMAL ), COUNT( * ) + - - NULLIF ( - 26, 76 ) ) ) AS col1
----
3604

skipif mysql # not compatible
query I rowsort label-1381
SELECT 53 * - - NULLIF ( + 68, + - NULLIF ( - - CAST ( NULL AS REAL ), COUNT ( * ) + - - NULLIF ( - 26, 76 ) ) ) AS col1
----
3604

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT 10 DIV - ( + 75 ) * ( 85 ) + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT 10 / - ( + 75 ) * ( 85 ) + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL COUNT( * ) * + + 85 * 56 AS col2
----
4760

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL COUNT ( * ) * + + 85 * 56 AS col2
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL + 85 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 85 / - 21
----
-4

query I rowsort
SELECT DISTINCT + 76 * 14
----
1064

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

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

query I rowsort
SELECT ALL - 13 * 18 AS col0
----
-234

query II rowsort
SELECT DISTINCT 67 * 80, + ( + 65 ) AS col0
----
5360
65

query I rowsort
SELECT ALL + 88 * - NULLIF ( - + 60, - 30 ) * + 3 AS col1
----
15840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1390
SELECT CASE - 52 WHEN - ( - 91 ) THEN + 95 WHEN + ( + - COUNT( * ) ) * + SUM( ALL - 7 ) THEN + - COUNT( * ) ELSE NULL END AS col2, - ( + 40 ) DIV + 98
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1390
SELECT CASE - 52 WHEN - ( - 91 ) THEN + 95 WHEN + ( + - COUNT ( * ) ) * + SUM ( ALL - 7 ) THEN + - COUNT ( * ) ELSE NULL END AS col2, - ( + 40 ) / + 98
----
NULL
0

query I rowsort
SELECT ( + 13 ) * 82
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT DISTINCT CASE + - ( - + 34 ) WHEN - 12 * COUNT( * ) THEN + 88 * - - 66 + + 40 WHEN + 0 / + 96 THEN NULL WHEN + - 10 / + 38 * + 14 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT CASE + - ( - + 34 ) WHEN - 12 * COUNT ( * ) THEN + 88 * - - 66 + + 40 WHEN + 0 / + 96 THEN NULL WHEN + - 10 / + 38 * + 14 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1394
SELECT DISTINCT + COUNT( * ) * - + 62 * CAST( NULL AS SIGNED ), 23 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + COUNT ( * ) * - + 62 * CAST ( NULL AS INTEGER ), 23 AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT + 78 + 54 AS col1, - MAX( DISTINCT + 0 ) AS col0
----
132
0

skipif mysql # not compatible
query II rowsort label-1395
SELECT + 78 + 54 AS col1, - MAX ( DISTINCT + 0 ) AS col0
----
132
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT + COUNT( * ) * MAX( - 78 ) DIV - + 92 - - - 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1396
SELECT + COUNT ( * ) * MAX ( - 78 ) / - + 92 - - - 2 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT + 52 + - CASE + - CAST( NULL AS SIGNED ) WHEN + + 30 / NULLIF ( - - 10, + + COUNT( * ) * - AVG ( DISTINCT NULLIF ( - + 26, 94 / - 99 ) ) ) + + 31 THEN NULL WHEN + - 15 THEN + - NULLIF ( 86, + CASE + MIN( ALL + 64 ) WHEN - + 82 THEN - + 25 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 52 + - CASE + - CAST ( NULL AS INTEGER ) WHEN + + 30 / NULLIF ( - - 10, + + COUNT ( * ) * - AVG ( DISTINCT NULLIF ( - + 26, 94 / - 99 ) ) ) + + 31 THEN NULL WHEN + - 15 THEN + - NULLIF ( 86, + CASE + MIN ( ALL + 64 ) WHEN - + 82 THEN - + 25 END ) END
----
NULL

query I rowsort
SELECT ALL 31 + 93
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - NULLIF ( - 93, + MAX( NULLIF ( 53, + - ( - 98 ) + - 54 ) ) * - 65 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1399
SELECT - NULLIF ( - 93, + MAX ( NULLIF ( 53, + - ( - 98 ) + - 54 ) ) * - 65 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT - NULLIF ( - 2, + CAST( NULL AS SIGNED ) ) + COUNT( ALL - 2 ) * - MAX( ALL - 11 ) DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-1400
SELECT - NULLIF ( - 2, + CAST ( NULL AS INTEGER ) ) + COUNT ( ALL - 2 ) * - MAX ( ALL - 11 ) / 20
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT 73 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT 73 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT - 79 DIV - 79
----
1

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - 79 / - 79
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ALL - 61 DIV 7 DIV + 26 AS col2, - 33
----
0
-33

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL - 61 / 7 / + 26 AS col2, - 33
----
0
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1404
SELECT ALL 23 + 68 * - - 15 AS col1, + CAST( 63 AS SIGNED ) + + + 61 - - 58 * 86 + - - 78 AS col1
----
1043
5190

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL 23 + 68 * - - 15 AS col1, + CAST ( 63 AS INTEGER ) + + + 61 - - 58 * 86 + - - 78 AS col1
----
1043
5190

query I rowsort
SELECT DISTINCT ( 60 ) + + ( 28 )
----
88

query I rowsort
SELECT ALL + 89 + + 4 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT CAST( 25 AS SIGNED ) / 74 - 88 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT CAST ( 25 AS INTEGER ) / 74 - 88 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT SUM( - 92 ) + - + 73 AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-1408
SELECT SUM ( - 92 ) + - + 73 AS col0
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL + 89 - + + NULLIF ( - CAST( 17 AS SIGNED ), - COUNT( * ) ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + 89 - + + NULLIF ( - CAST ( 17 AS INTEGER ), - COUNT ( * ) ) AS col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT + COUNT( * ) * - - ( ( - 90 ) ) + 68 * - CAST( + 69 AS SIGNED ) AS col2
----
-4782

skipif mysql # not compatible
query I rowsort label-1410
SELECT + COUNT ( * ) * - - ( ( - 90 ) ) + 68 * - CAST ( + 69 AS INTEGER ) AS col2
----
-4782

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

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

query I rowsort
SELECT 82 + 26 col1
----
108

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

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + 90 * COUNT ( ALL - 28 ) AS col0
----
90

query I rowsort
SELECT 88 * + 46
----
4048

query I rowsort
SELECT 91 + - 52
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT DISTINCT + 72 - CAST( + 67 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT + 72 - CAST ( + 67 AS INTEGER )
----
5

query I rowsort
SELECT 90 * - 27 + - - 36 AS col1
----
-2394

query II rowsort
SELECT ALL - 43, 81 AS col2
----
-43
81

query I rowsort
SELECT 78 * 15
----
1170

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1420
SELECT + NULLIF ( + ( 34 ), MAX( ALL - 1 ) * - 68 * + 91 * - - 29 + + CASE 41 WHEN 60 THEN + CAST( NULL AS DECIMAL ) ELSE NULL END * 1 - 72 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1420
SELECT + NULLIF ( + ( 34 ), MAX ( ALL - 1 ) * - 68 * + 91 * - - 29 + + CASE 41 WHEN 60 THEN + CAST ( NULL AS REAL ) ELSE NULL END * 1 - 72 ) AS col0
----
34

query II rowsort
SELECT + 32, 47 * + 99 AS col1
----
32
4653

query I rowsort
SELECT DISTINCT + 34 * + 23 AS col0
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL 13 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL 13 * - COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT + 96 DIV - - 26 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 96 / - - 26 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT + 85 + - MAX( DISTINCT - 13 ) - + + 17 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + 85 + - MAX ( DISTINCT - 13 ) - + + 17 AS col2
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1427
SELECT - - NULLIF ( + 97, + 8 * - + SUM( DISTINCT + + 99 ) - 86 ) AS col2, - 87 * 52 * + - 19 DIV + COUNT( * ) + 57 AS col1
----
97
86013

skipif mysql # not compatible
query II rowsort label-1427
SELECT - - NULLIF ( + 97, + 8 * - + SUM ( DISTINCT + + 99 ) - 86 ) AS col2, - 87 * 52 * + - 19 / + COUNT ( * ) + 57 AS col1
----
97
86013

query I rowsort
SELECT 55 + 70 AS col1
----
125

query I rowsort
SELECT ALL 2 + + 61 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL 15 + + - COUNT( * ) - 26 + + 53
----
41

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL 15 + + - COUNT ( * ) - 26 + + 53
----
41

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

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

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

query I rowsort
SELECT ALL + 88 + + 4
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT ALL COALESCE ( + 97, - + 71, + 3 ) + - + 88 AS col1, + COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-1434
SELECT ALL COALESCE ( + 97, - + 71, + 3 ) + - + 88 AS col1, + COUNT ( * )
----
9
1

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

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

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

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

query I rowsort
SELECT ALL 99 * + - 95 AS col1
----
-9405

query I rowsort
SELECT + 11 + 56 AS col2
----
67

query I rowsort
SELECT - CASE WHEN NOT 86 IS NOT NULL THEN - NULLIF ( + + 42, + + 82 ) * 55 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT ALL 93 - + 18 AS col0, 22 * - - 62 + + SUM( 79 ) AS col1
----
75
1443

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL 93 - + 18 AS col0, 22 * - - 62 + + SUM ( 79 ) AS col1
----
75
1443

query I rowsort
SELECT + 57 * + 95 AS col0
----
5415

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1443
SELECT + 75 DIV + CAST( 85 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT + 75 / + CAST ( 85 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT - 81 * + + 60 * 29 AS col2
----
-140940

query I rowsort
SELECT ALL + COALESCE ( + 94, 56 ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1446
SELECT ALL - 31 DIV 37, - 26 AS col1
----
0
-26

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL - 31 / 37, - 26 AS col1
----
0
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT + COALESCE ( NULLIF ( - - 30, CAST( NULL AS SIGNED ) ), + 52 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-1447
SELECT + COALESCE ( NULLIF ( - - 30, CAST ( NULL AS INTEGER ) ), + 52 ) col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT - COUNT( * ) DIV 79 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - COUNT ( * ) / 79 / - 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT 68 DIV - 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT 68 / - 77 col2
----
0

query I rowsort
SELECT NULLIF ( + 97, - - 61 / + 76 - + 56 + + 89 + - 28 )
----
97

query I rowsort
SELECT NULLIF ( + 80, + 43 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT CASE + 63 WHEN + - COUNT( ALL 30 ) THEN + NULLIF ( + CASE + CASE - 75 WHEN ( + - 81 ) THEN NULL ELSE + + 12 END WHEN - 8 THEN NULL WHEN + + 81 THEN NULL WHEN + 40 * + 69 + - CAST( - 11 AS SIGNED ) THEN NULL ELSE - - 23 / - 69 END, 49 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT CASE + 63 WHEN + - COUNT ( ALL 30 ) THEN + NULLIF ( + CASE + CASE - 75 WHEN ( + - 81 ) THEN NULL ELSE + + 12 END WHEN - 8 THEN NULL WHEN + + 81 THEN NULL WHEN + 40 * + 69 + - CAST ( - 11 AS INTEGER ) THEN NULL ELSE - - 23 / - 69 END, 49 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT COALESCE ( - 55, + 94 * 58 ) AS col1
----
-55

query II rowsort
SELECT + 85 * + 54 AS col0, - 35 + + 38 + 9 AS col0
----
4590
12

query I rowsort
SELECT - 91 * - + 93
----
8463

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT - 18 * - 7 col1, - COUNT( * )
----
126
-1

skipif mysql # not compatible
query II rowsort label-1456
SELECT - 18 * - 7 col1, - COUNT ( * )
----
126
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1458
SELECT DISTINCT - 77 * - - COUNT( * ) AS col2, ( - 57 ) + + - 32
----
-77
-89

skipif mysql # not compatible
query II rowsort label-1458
SELECT DISTINCT - 77 * - - COUNT ( * ) AS col2, ( - 57 ) + + - 32
----
-77
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1459
SELECT ALL - 10 * + 78 * + 89 + ( - - ( + 14 ) ) * - + CAST( - + AVG ( ALL - - 76 ) AS SIGNED ) * - NULLIF ( + - 48, 18 + + - ( - + MIN( DISTINCT + + 66 ) ) ) col0, + 22 * 78 + + + 85 AS col2
----
-18348
1801

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL - 10 * + 78 * + 89 + ( - - ( + 14 ) ) * - + CAST ( - + AVG ( ALL - - 76 ) AS INTEGER ) * - NULLIF ( + - 48, 18 + + - ( - + MIN ( DISTINCT + + 66 ) ) ) col0, + 22 * 78 + + + 85 AS col2
----
-18348
1801

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT + + COUNT( * ) * 64 + - 52 - + 88
----
-76

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + + COUNT ( * ) * 64 + - 52 - + 88
----
-76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT - - COUNT( * ) * - NULLIF ( 41, + 92 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - - COUNT ( * ) * - NULLIF ( 41, + 92 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 20 + - 52 * 66 * 53, - 49 AS col1
----
-181876
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL - 29 * 49 * - COALESCE ( - + 88, + MIN( DISTINCT + - 73 ) * + - 38 - 46 ) * - 22 - + 40 + 49
----
2751065

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - 29 * 49 * - COALESCE ( - + 88, + MIN ( DISTINCT + - 73 ) * + - 38 - 46 ) * - 22 - + 40 + 49
----
2751065

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1465
SELECT DISTINCT 31 * + CASE + - 76 WHEN - ( - NULLIF ( 9, - COUNT( + - 90 ) + - + 53 ) ) + - COUNT( * ) * + 67 THEN - - 60 WHEN - 94 THEN + ( + 9 ) ELSE + COUNT( ALL - CAST( + - 16 AS DECIMAL ) ) END AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT 31 * + CASE + - 76 WHEN - ( - NULLIF ( 9, - COUNT ( + - 90 ) + - + 53 ) ) + - COUNT ( * ) * + 67 THEN - - 60 WHEN - 94 THEN + ( + 9 ) ELSE + COUNT ( ALL - CAST ( + - 16 AS REAL ) ) END AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL + - MIN( DISTINCT - 35 ) + + - 7
----
28

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + - MIN ( DISTINCT - 35 ) + + - 7
----
28

query I rowsort
SELECT ALL 49 - - 82
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL - CASE - 74 WHEN + MAX( DISTINCT - 50 ) * 20 * 8 + 53 THEN - ( 42 ) * COUNT( * ) - - - COALESCE ( - - 42, CAST( NULL AS SIGNED ) ) * - ( 35 ) * 77 WHEN + + 0 THEN - - 37 + - - 49 END - + - COUNT( * ) * + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - CASE - 74 WHEN + MAX ( DISTINCT - 50 ) * 20 * 8 + 53 THEN - ( 42 ) * COUNT ( * ) - - - COALESCE ( - - 42, CAST ( NULL AS INTEGER ) ) * - ( 35 ) * 77 WHEN + + 0 THEN - - 37 + - - 49 END - + - COUNT ( * ) * + + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1469
SELECT ALL + 61 * + ( - + CAST( NULL AS SIGNED ) ) * + MAX( 92 ) AS col0, 26 + + - CASE - 28 WHEN 32 THEN NULL WHEN + 84 + COALESCE ( 73, NULLIF ( - 3, COUNT( * ) ), + NULLIF ( + + CAST( NULL AS SIGNED ), + + 40 ) ) - + 65 / + 48 * 30 THEN + 91 * + + 12 / - 63 + - 74 ELSE NULL END + + + 74 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1469
SELECT ALL + 61 * + ( - + CAST ( NULL AS INTEGER ) ) * + MAX ( 92 ) AS col0, 26 + + - CASE - 28 WHEN 32 THEN NULL WHEN + 84 + COALESCE ( 73, NULLIF ( - 3, COUNT ( * ) ), + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 40 ) ) - + 65 / + 48 * 30 THEN + 91 * + + 12 / - 63 + - 74 ELSE NULL END + + + 74 AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 7 * + 81
----
-567

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

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

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT - COUNT ( DISTINCT - 92 ) + + 39 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 40 * + - 2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT ( + CASE + 1 WHEN - - 85 * + COUNT( * ) * - + 83 * + 40 THEN - ( - 7 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT ( + CASE + 1 WHEN - - 85 * + COUNT ( * ) * - + 83 * + 40 THEN - ( - 7 ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT + ( - 79 ) + + 10 DIV - + COUNT( * ) + + - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1475
SELECT + ( - 79 ) + + 10 / - + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1476
SELECT + 4 + SUM( - - 19 ) + - 20 DIV + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 4 + SUM ( - - 19 ) + - 20 / + COUNT ( * )
----
3

query I rowsort
SELECT ALL 15 * - 33 * 12
----
-5940

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1479
SELECT DISTINCT 27 DIV - ( - CAST( - 32 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT 27 / - ( - CAST ( - 32 AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1480
SELECT ALL 85, - 24 DIV + - 35 AS col0, - CAST( NULL AS SIGNED ) col0
----
85
0
NULL

skipif mysql # not compatible
query III rowsort label-1480
SELECT ALL 85, - 24 / + - 35 AS col0, - CAST ( NULL AS INTEGER ) col0
----
85
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL 80 * SUM( 97 ) AS col2
----
7760

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 80 * SUM ( 97 ) AS col2
----
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT CAST( - - 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1482
SELECT CAST ( - - 40 AS INTEGER ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT - 50 + CAST( + - 91 AS SIGNED ) + + NULLIF ( 50, + 21 - + + 74 ) + - 89 * + 37 * ( - 36 ) + - 9
----
118448

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 50 + CAST ( + - 91 AS INTEGER ) + + NULLIF ( 50, + 21 - + + 74 ) + - 89 * + 37 * ( - 36 ) + - 9
----
118448

query I rowsort
SELECT + 67 * + 92 + + 55 AS col1
----
6219

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT - - SUM( + 46 ) DIV - 50 + + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1486
SELECT - - SUM ( + 46 ) / - 50 + + 7 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT + 51 DIV MAX( - ( + 65 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 51 / MAX ( - ( + 65 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT ALL - COUNT( * ) DIV - 56 + + 12 + - 2
----
10

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL - COUNT ( * ) / - 56 + + 12 + - 2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1489
SELECT ALL - CAST( + 20 AS SIGNED ) DIV + 53 + - 32 + + COALESCE ( COUNT( * ), 12, + ( 40 ) ) * + NULLIF ( - 67, + + 85 )
----
-99

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - CAST ( + 20 AS INTEGER ) / + 53 + - 32 + + COALESCE ( COUNT ( * ), 12, + ( 40 ) ) * + NULLIF ( - 67, + + 85 )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT ALL 48 DIV + + 19 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL 48 / + + 19 AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1491
SELECT ALL + - 67 DIV 98 + 41 * + - 25 * - 79 AS col1, 94 AS col1
----
80975
94

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL + - 67 / 98 + 41 * + - 25 * - 79 AS col1, 94 AS col1
----
80975
94

query I rowsort
SELECT + 22 * 41 * + 77 * - 26
----
-1805804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + - 36 * - 28 * + ( 60 ) * - - CAST( NULL AS SIGNED ) + - 13 + - + ( - 23 ) + 82 + 42 - + + COUNT( * ) + + - 79 * + 37 + + + 33 * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + - 36 * - 28 * + ( 60 ) * - - CAST ( NULL AS INTEGER ) + - 13 + - + ( - 23 ) + 82 + 42 - + + COUNT ( * ) + + - 79 * + 37 + + + 33 * + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT 60 AS col0, 17 * - - MIN( + 65 )
----
60
1105

skipif mysql # not compatible
query II rowsort label-1494
SELECT 60 AS col0, 17 * - - MIN ( + 65 )
----
60
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT + + NULLIF ( 94, - SUM( - - 56 ) - + 33 )
----
94

skipif mysql # not compatible
query I rowsort label-1495
SELECT + + NULLIF ( 94, - SUM ( - - 56 ) - + 33 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - COUNT( * ) + - - 25 col0
----
24

skipif mysql # not compatible
query I rowsort label-1496
SELECT - COUNT ( * ) + - - 25 col0
----
24

query I rowsort
SELECT + - 44 * + - ( + - 99 ) AS col0
----
-4356

query I rowsort
SELECT ALL - 33 * - + 97 col1
----
3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1499
SELECT DISTINCT + 34 * + - NULLIF ( - CAST( + 75 AS SIGNED ), CASE - - 74 WHEN + + ( - 40 ) THEN NULL WHEN 89 * - + 54 THEN - 3 + - NULLIF ( + 5, - MAX( - 66 ) / + ( + + CAST( - 30 AS DECIMAL ) ) ) * - 72 + - + CASE + 43 WHEN - + 27 THEN NULL WHEN MAX( 6 ) THEN - 77 END / - 46 + 34 ELSE NULL END + + 68 ) + - + 58
----
2492

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + 34 * + - NULLIF ( - CAST ( + 75 AS INTEGER ), CASE - - 74 WHEN + + ( - 40 ) THEN NULL WHEN 89 * - + 54 THEN - 3 + - NULLIF ( + 5, - MAX ( - 66 ) / + ( + + CAST ( - 30 AS REAL ) ) ) * - 72 + - + CASE + 43 WHEN - + 27 THEN NULL WHEN MAX ( 6 ) THEN - 77 END / - 46 + 34 ELSE NULL END + + 68 ) + - + 58
----
2492

query I rowsort
SELECT - - 94 * 43 AS col1
----
4042

query II rowsort
SELECT + 36 col2, 71 col0
----
36
71

query I rowsort
SELECT ALL - 72 * - 79 + + 42 * + 31 AS col1
----
6990

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT - COALESCE ( 43, - - ( + SUM( ALL + 48 ) ), 18 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1503
SELECT - COALESCE ( 43, - - ( + SUM ( ALL + 48 ) ), 18 ) AS col0
----
-43

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 17 + 0 / - 70
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1505
SELECT DISTINCT - CAST( - + 93 AS SIGNED ) - + 0 AS col0, - 68 * 20 + CAST( + - 26 AS SIGNED ) AS col0
----
93
-1386

skipif mysql # not compatible
query II rowsort label-1505
SELECT DISTINCT - CAST ( - + 93 AS INTEGER ) - + 0 AS col0, - 68 * 20 + CAST ( + - 26 AS INTEGER ) AS col0
----
93
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT 82 + - 30 DIV + 52
----
82

skipif mysql # not compatible
query I rowsort label-1506
SELECT 82 + - 30 / + 52
----
82

query I rowsort
SELECT 92 + - + 76
----
16

query II rowsort
SELECT 16, + 67 AS col1
----
16
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT 66 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT 66 / + 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT COUNT( * ) * COALESCE ( 40, 26 * 83 - + 43 ) * 36 + 14
----
1454

skipif mysql # not compatible
query I rowsort label-1510
SELECT COUNT ( * ) * COALESCE ( 40, 26 * 83 - + 43 ) * 36 + 14
----
1454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL + 30 * + NULLIF ( + - ( - - NULLIF ( ( MAX( + 51 ) ), - 26 ) ), - CAST( + 53 AS SIGNED ) )
----
-1530

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 30 * + NULLIF ( + - ( - - NULLIF ( ( MAX ( + 51 ) ), - 26 ) ), - CAST ( + 53 AS INTEGER ) )
----
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT ALL + 58 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + 58 / - 82
----
0

query I rowsort
SELECT ALL 40 * - 97 col2
----
-3880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT ALL + 31 * 35 / COUNT( * ) * + CASE - CAST( NULL AS SIGNED ) WHEN - AVG ( ALL + 9 ) * 45 + + + CASE - + 72 WHEN 91 THEN + + 60 END * 35 THEN + COUNT( * ) WHEN - + MAX( + 23 ) THEN - + 64 + 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 31 * 35 / COUNT ( * ) * + CASE - CAST ( NULL AS INTEGER ) WHEN - AVG ( ALL + 9 ) * 45 + + + CASE - + 72 WHEN 91 THEN + + 60 END * 35 THEN + COUNT ( * ) WHEN - + MAX ( + 23 ) THEN - + 64 + 6 END AS col2
----
NULL

query I rowsort
SELECT 1 * - 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - MAX( ALL + 29 ) * - + CASE + - ( COUNT( * ) ) WHEN + 24 + 44 THEN NULL WHEN + 54 THEN - - 69 * - 64 + 71 * 71 / - COALESCE ( + ( + 34 ), 22, + 62 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - MAX ( ALL + 29 ) * - + CASE + - ( COUNT ( * ) ) WHEN + 24 + 44 THEN NULL WHEN + 54 THEN - - 69 * - 64 + 71 * 71 / - COALESCE ( + ( + 34 ), 22, + 62 ) END AS col1
----
NULL

query II rowsort
SELECT - 30 AS col1, + 3
----
-30
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT ALL - 59 * + 28 AS col1, - COUNT( * ) + 76
----
-1652
75

skipif mysql # not compatible
query II rowsort label-1518
SELECT ALL - 59 * + 28 AS col1, - COUNT ( * ) + 76
----
-1652
75

query II rowsort
SELECT - 87 col2, 39
----
-87
39

query II rowsort
SELECT 91 * - 39 * + + 96 * 99, 10 AS col0
----
-33729696
10

query II rowsort
SELECT 26 * + - 79 col1, + 96 AS col1
----
-2054
96

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

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

query I rowsort
SELECT ALL ( - 5 ) + - 7 * 70 - - - 33 AS col2
----
-528

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1524
SELECT ALL 36 * COALESCE ( - + 75, COUNT( * ), ( + 40 ) * - COALESCE ( + + NULLIF ( + 75, + + 91 ), 52 ) * + 48 * 68 + - - 14 + + COUNT( * ) * 93 * - COUNT( - 99 ) + - - 57 ) + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 36 * COALESCE ( - + 75, COUNT ( * ), ( + 40 ) * - COALESCE ( + + NULLIF ( + 75, + + 91 ), 52 ) * + 48 * 68 + - - 14 + + COUNT ( * ) * 93 * - COUNT ( - 99 ) + - - 57 ) + - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT 30 * - - 8 AS col0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL - COUNT( * ) * 11 + + + 92 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL - COUNT ( * ) * 11 + + + 92 AS col2
----
81

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT ( NULLIF ( + COUNT ( * ), - 48 ) )
----
1

query I rowsort
SELECT ALL + 53 + + 13 - - + 91 * + 77
----
7073

query I rowsort
SELECT DISTINCT 63 * + - 45 + - + 92 AS col1
----
-2927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT NULLIF ( - + 7, 93 ) - COUNT( * ) + + + CAST( - + 61 AS SIGNED ) + + CAST( - ( + 54 ) AS SIGNED ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-1530
SELECT NULLIF ( - + 7, 93 ) - COUNT ( * ) + + + CAST ( - + 61 AS INTEGER ) + + CAST ( - ( + 54 ) AS INTEGER ) AS col2
----
-123

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL - - CAST( - 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - - CAST ( - 0 AS INTEGER ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT - 56 + + - ( - CASE - COUNT( * ) WHEN - COALESCE ( + + 5, - 48 + - COALESCE ( + ( + 54 ), ( - 38 ) * NULLIF ( - 84, + + 88 ) ) * 34, - COUNT( * ) ) THEN 67 + 95 * + 70 ELSE NULL END ) / + 53, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-1534
SELECT - 56 + + - ( - CASE - COUNT ( * ) WHEN - COALESCE ( + + 5, - 48 + - COALESCE ( + ( + 54 ), ( - 38 ) * NULLIF ( - 84, + + 88 ) ) * 34, - COUNT ( * ) ) THEN 67 + 95 * + 70 ELSE NULL END ) / + 53, 93 AS col2
----
NULL
93

query I rowsort
SELECT + 84 * + 73 + 46 + + 48
----
6226

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT ALL + + 68 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + + 68 / - 97
----
0

query I rowsort
SELECT 78 * - 33
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT 66 / - 77 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT 66 / - 77 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 5 - - - COALESCE ( 89, 8 ) * 73
----
-6492

query I rowsort
SELECT 70 + - + COALESCE ( 60, 27 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1541
SELECT MIN( + 28 ) * + 49 * + + COUNT( * ) - - 87 + + 90 - - - 95 col2, + ( COUNT( * ) ) AS col1
----
1454
1

skipif mysql # not compatible
query II rowsort label-1541
SELECT MIN ( + 28 ) * + 49 * + + COUNT ( * ) - - 87 + + 90 - - - 95 col2, + ( COUNT ( * ) ) AS col1
----
1454
1

query I rowsort
SELECT 92 * + + 98 col0
----
9016

query I rowsort
SELECT ALL + 62 * + 30 * - + 50 col0
----
-93000

query II rowsort
SELECT DISTINCT + 44 * + 8 col1, - 65 col0
----
352
-65

query I rowsort
SELECT ALL 17 * - - 68 AS col2
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT DISTINCT 51 * + 87 * + COUNT( * )
----
4437

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT 51 * + 87 * + COUNT ( * )
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1547
SELECT ( + + 63 ) + - 32 AS col0, CAST( + 75 AS SIGNED ) * 75 AS col2
----
31
5625

skipif mysql # not compatible
query II rowsort label-1547
SELECT ( + + 63 ) + - 32 AS col0, CAST ( + 75 AS INTEGER ) * 75 AS col2
----
31
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1548
SELECT 7 * + 39 col2, 94 * MAX( - 42 ) + - ( + - CAST( - 13 AS SIGNED ) ) AS col1
----
273
-3961

skipif mysql # not compatible
query II rowsort label-1548
SELECT 7 * + 39 col2, 94 * MAX ( - 42 ) + - ( + - CAST ( - 13 AS INTEGER ) ) AS col1
----
273
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT 81 + + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1549
SELECT 81 + + + COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT ALL + COUNT( * ) + 97 AS col0, 40
----
98
40

skipif mysql # not compatible
query II rowsort label-1550
SELECT ALL + COUNT ( * ) + 97 AS col0, 40
----
98
40

query I rowsort
SELECT 7 + 97
----
104

query I rowsort
SELECT ALL + 64 + 63 + - - 25 * + 35 AS col0
----
1002

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT COUNT( * ) * 98 AS col0, - 40 * + COUNT( * ) + + 68 - - - 5
----
98
23

skipif mysql # not compatible
query II rowsort label-1553
SELECT COUNT ( * ) * 98 AS col0, - 40 * + COUNT ( * ) + + 68 - - - 5
----
98
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1555
SELECT ALL + ( 61 ) + COALESCE ( COUNT( * ), + - NULLIF ( - COUNT( ALL + ( 48 ) ), - 29 - 88 ) ) col2, 29 * - + 80 - - CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 77 ) AS col0, + + COUNT( ALL - 78 ) col1
----
62
NULL
1

skipif mysql # not compatible
query III rowsort label-1555
SELECT ALL + ( 61 ) + COALESCE ( COUNT ( * ), + - NULLIF ( - COUNT ( ALL + ( 48 ) ), - 29 - 88 ) ) col2, 29 * - + 80 - - CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 77 ) AS col0, + + COUNT ( ALL - 78 ) col1
----
62
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT ( 77 ) DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-1556
SELECT ( 77 ) / 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT CAST( MAX( + 25 ) AS SIGNED ) + - COUNT( * ) + - - 25 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1557
SELECT CAST ( MAX ( + 25 ) AS INTEGER ) + - COUNT ( * ) + - - 25 * - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1558
SELECT ALL + 26 * + 33 / - CAST( NULL AS SIGNED ) + + - COUNT( * ) + - - 23 * + + 10 + - 40 / 44 col1, 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL + 26 * + 33 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - - 23 * + + 10 + - 40 / 44 col1, 53 AS col1
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1559
SELECT 85 * + 11 + - + COUNT( * ), - COUNT( * ) + + CAST( NULL AS DECIMAL ) - 20 AS col1
----
934
NULL

skipif mysql # not compatible
query II rowsort label-1559
SELECT 85 * + 11 + - + COUNT ( * ), - COUNT ( * ) + + CAST ( NULL AS REAL ) - 20 AS col1
----
934
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT MAX( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-1560
SELECT MAX ( 30 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT + ( + - 20 ) DIV + + 20 + - + 9 + - + ( - 93 ) + - 80 + - - 10 * - 2
----
-17

skipif mysql # not compatible
query I rowsort label-1561
SELECT + ( + - 20 ) / + + 20 + - + 9 + - + ( - 93 ) + - 80 + - - 10 * - 2
----
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT + CAST( 9 AS SIGNED ) + CAST( 29 AS SIGNED ) + + NULLIF ( COUNT( * ), - 30 ) + - 77
----
-38

skipif mysql # not compatible
query I rowsort label-1563
SELECT + CAST ( 9 AS INTEGER ) + CAST ( 29 AS INTEGER ) + + NULLIF ( COUNT ( * ), - 30 ) + - 77
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL - - MAX( - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - - MAX ( - 55 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ALL + 25 * + COUNT( * ) - - COUNT( * ) + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + 72 * - 4 / 15 + - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + 25 * + COUNT ( * ) - - COUNT ( * ) + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + 72 * - 4 / 15 + - - 42 AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 48, + 38 * - + 2 + - 40 )
----
-48

query I rowsort
SELECT DISTINCT + + ( - + 39 ) AS col0
----
-39

query I rowsort
SELECT DISTINCT - 39 * - 19 - + CASE 51 WHEN - 58 + - CASE - + 24 WHEN + ( - 50 ) / - 53 THEN NULL ELSE + NULLIF ( + - 99, 17 * 39 ) END + + 58 * + + 71 * 0 THEN + 97 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT - 15 * - - SUM( + CASE + 30 WHEN - 53 * + + 95 * + + 45 THEN - + 66 - 79 * 75 WHEN - + 38 - - 97 THEN NULL END ), - 60 * - + 10 * - 1 + + 13 - - + 17 * - COUNT( * ) AS col2
----
NULL
-604

skipif mysql # not compatible
query II rowsort label-1569
SELECT - 15 * - - SUM ( + CASE + 30 WHEN - 53 * + + 95 * + + 45 THEN - + 66 - 79 * 75 WHEN - + 38 - - 97 THEN NULL END ), - 60 * - + 10 * - 1 + + 13 - - + 17 * - COUNT ( * ) AS col2
----
NULL
-604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT CAST( - CAST( COALESCE ( 62, + 15 * + - 19 + ( - + 76 ), COUNT( * ) ) AS SIGNED ) AS SIGNED ) * + + NULLIF ( + 63, - MIN( ALL 6 ) ) + - 71 AS col1
----
-3977

skipif mysql # not compatible
query I rowsort label-1570
SELECT CAST ( - CAST ( COALESCE ( 62, + 15 * + - 19 + ( - + 76 ), COUNT ( * ) ) AS INTEGER ) AS INTEGER ) * + + NULLIF ( + 63, - MIN ( ALL 6 ) ) + - 71 AS col1
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL + COALESCE ( COUNT( * ), - COUNT( * ) + - 94, + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + COALESCE ( COUNT ( * ), - COUNT ( * ) + - 94, + 71 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT + 57 * COUNT( * ) DIV - 84 + + 86 * + + 63
----
5418

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 57 * COUNT ( * ) / - 84 + + 86 * + + 63
----
5418

query I rowsort
SELECT ALL 82 * - + 78
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT + MAX( ALL - + 13 ) + - 57 + - - 96 * - + 68
----
-6598

skipif mysql # not compatible
query I rowsort label-1574
SELECT + MAX ( ALL - + 13 ) + - 57 + - - 96 * - + 68
----
-6598

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL 17 * COUNT( * ) col2
----
17

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL 17 * COUNT ( * ) col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT ALL 11 + + 77 + + 66 * 83 + - + 97 + + ( - + 21 ) DIV + 39 + MIN( DISTINCT - 59 ) * + - 6
----
5823

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 11 + + 77 + + 66 * 83 + - + 97 + + ( - + 21 ) / + 39 + MIN ( DISTINCT - 59 ) * + - 6
----
5823

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT 4 + COALESCE ( 6, 78 DIV - ( - + 57 ) + ( - 52 ) * COUNT( * ) + + + 36 * - COUNT( * ), - - 42 )
----
10

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT 4 + COALESCE ( 6, 78 / - ( - + 57 ) + ( - 52 ) * COUNT ( * ) + + + 36 * - COUNT ( * ), - - 42 )
----
10

query I rowsort
SELECT - 75 + + 47
----
-28

query I rowsort
SELECT - 51 + + - 84 AS col1
----
-135

query I rowsort
SELECT ALL 57 + + 0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT + 39 * + - MIN( DISTINCT 37 )
----
-1443

skipif mysql # not compatible
query I rowsort label-1582
SELECT + 39 * + - MIN ( DISTINCT 37 )
----
-1443

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT 3 AS col1, - COALESCE ( - 35, + 75 + 35 ) * - 75 * + 42 - + MIN( - - ( + 99 ) )
----
3
-110349

skipif mysql # not compatible
query II rowsort label-1583
SELECT 3 AS col1, - COALESCE ( - 35, + 75 + 35 ) * - 75 * + 42 - + MIN ( - - ( + 99 ) )
----
3
-110349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT ALL + 69 + + + COUNT( * ) DIV 11 * - - 30 + - 77
----
-8

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL + 69 + + + COUNT ( * ) / 11 * - - 30 + - 77
----
-8

query I rowsort
SELECT - NULLIF ( + 3, - 29 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL CAST( 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL CAST ( 9 AS INTEGER ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT + 97 - - CAST( + + SUM( ALL + 43 ) AS SIGNED ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 97 - - CAST ( + + SUM ( ALL + 43 ) AS INTEGER ) AS col1
----
140

query II rowsort
SELECT DISTINCT + 87, - 49 AS col1
----
87
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT - - COUNT( * ) - - 84 + + 28 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - - COUNT ( * ) - - 84 + + 28 AS col1
----
113

query I rowsort
SELECT - + 40 * - 19 * - 96 AS col1
----
-72960

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

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT - - NULLIF ( + COUNT( ALL + - 96 ), 45 ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-1592
SELECT - - NULLIF ( + COUNT ( ALL + - 96 ), 45 ) * + 18
----
18

query I rowsort
SELECT ALL - 1 * - 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + COUNT( ALL - NULLIF ( + - 56, + 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + COUNT ( ALL - NULLIF ( + - 56, + 34 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1595
SELECT ALL - + 84 * - 45 * + 22 AS col2, CAST( + - 34 AS SIGNED ) AS col0
----
83160
-34

skipif mysql # not compatible
query II rowsort label-1595
SELECT ALL - + 84 * - 45 * + 22 AS col2, CAST ( + - 34 AS INTEGER ) AS col0
----
83160
-34

query II rowsort
SELECT + 4 AS col0, - 19
----
4
-19

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

query II rowsort
SELECT - 13 * + 88 - + 54 + + 23 col1, - NULLIF ( + 63, + + 98 ) AS col2
----
-1175
-63

query I rowsort
SELECT DISTINCT + 93 * + - 58 col2
----
-5394

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

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

query I rowsort
SELECT ALL + 49 * 38 * 57
----
106134

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1603
SELECT ALL - 83 * - 13 * - + COUNT( * ) + - 92 + - - ( 95 ) + + 62 * 96 + + 21 DIV 71 AS col1
----
4876

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - 83 * - 13 * - + COUNT ( * ) + - 92 + - - ( 95 ) + + 62 * 96 + + 21 / 71 AS col1
----
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT COALESCE ( - COUNT( * ), + 49, 93 + - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-1604
SELECT COALESCE ( - COUNT ( * ), + 49, 93 + - 20 )
----
-1

query I rowsort
SELECT + 57 - + 48 AS col0
----
9

query I rowsort
SELECT ALL 63 * 7 AS col1
----
441

query I rowsort
SELECT NULLIF ( - 12, - - 26 + + + 65 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT + 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT + 75 / 85
----
0

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 21 * - COUNT ( DISTINCT + 88 ) AS col2
----
-21

query I rowsort
SELECT ALL - 79 * + 80 + - 5
----
-6325

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT - ( + COUNT ( DISTINCT 51 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL COUNT( * ) + COALESCE ( + 91, - + ( COUNT( * ) ) ) col0
----
92

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL COUNT ( * ) + COALESCE ( + 91, - + ( COUNT ( * ) ) ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 9 - + SUM( + 96 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 9 - + SUM ( + 96 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1614
SELECT - CAST( + 68 AS SIGNED ), - 23 * + 66 - + - 1 AS col0
----
-68
-1517

skipif mysql # not compatible
query II rowsort label-1614
SELECT - CAST ( + 68 AS INTEGER ), - 23 * + 66 - + - 1 AS col0
----
-68
-1517

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1615
SELECT + 79 + + 15 col0, + CAST( + + NULLIF ( COALESCE ( - 74, - 97 * 11 * 73 + - - 89 ), + 93 + - 24 ) AS SIGNED ) AS col0
----
94
-74

skipif mysql # not compatible
query II rowsort label-1615
SELECT + 79 + + 15 col0, + CAST ( + + NULLIF ( COALESCE ( - 74, - 97 * 11 * 73 + - - 89 ), + 93 + - 24 ) AS INTEGER ) AS col0
----
94
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT ALL MIN( + - 42 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL MIN ( + - 42 ) / + 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1617
SELECT + 55 * + 4 AS col0, 35 + + SUM( + 9 ) AS col1
----
220
44

skipif mysql # not compatible
query II rowsort label-1617
SELECT + 55 * + 4 AS col0, 35 + + SUM ( + 9 ) AS col1
----
220
44

query I rowsort
SELECT + + NULLIF ( + 69, + - 23 ) + 59
----
128

query I rowsort
SELECT ALL COALESCE ( - 70, - + ( 82 ), + 98 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT + - 60 + - SUM( 2 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1620
SELECT + - 60 + - SUM ( 2 ) AS col1
----
-62

query I rowsort
SELECT DISTINCT 34 * 12 * 83
----
33864

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + + 85 + COUNT( DISTINCT + + 11 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1622
SELECT + + 85 + COUNT ( DISTINCT + + 11 ) AS col2
----
86

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

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

query II rowsort
SELECT 7 + - + 33 AS col2, + 41 AS col0
----
-26
41

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

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

query I rowsort
SELECT DISTINCT + ( + 32 ) - + 69
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT - - CAST( 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-1627
SELECT - - CAST ( 95 AS INTEGER )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1628
SELECT ALL 19 * + 50, - 72 / + + 64 * - ( + CAST( NULL AS SIGNED ) ) AS col1
----
950
NULL

skipif mysql # not compatible
query II rowsort label-1628
SELECT ALL 19 * + 50, - 72 / + + 64 * - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
950
NULL

query I rowsort
SELECT - 58 + ( - 33 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT COALESCE ( - ( + 70 ), ( - 35 ) ) DIV + - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT COALESCE ( - ( + 70 ), ( - 35 ) ) / + - 71 AS col0
----
0

query I rowsort
SELECT DISTINCT 3 + - ( + 76 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT 17 + 34 * + + 56 * - COUNT( * ) AS col2
----
-1887

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT 17 + 34 * + + 56 * - COUNT ( * ) AS col2
----
-1887

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

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

query I rowsort
SELECT DISTINCT + 67 + 47
----
114

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

query I rowsort
SELECT 11 * - + 87 AS col1
----
-957

query I rowsort
SELECT DISTINCT - 22 * 56 AS col1
----
-1232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT 7 + - MIN( 71 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-1639
SELECT 7 + - MIN ( 71 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL + 68 + - + 27 + - COUNT( ALL - - 14 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL + 68 + - + 27 + - COUNT ( ALL - - 14 ) AS col1
----
40

query I rowsort
SELECT ALL 27 - + 13
----
14

query I rowsort
SELECT DISTINCT + 32 - 66
----
-34

query I rowsort
SELECT DISTINCT - 60 * + 42
----
-2520

query I rowsort
SELECT 25 * - 72 AS col0
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) * - + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) * - + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT DISTINCT + SUM( DISTINCT 99 ) * + 70 + 36 + + 5 AS col2, 50 + + MIN( - 35 ) * - 98
----
6971
3480

skipif mysql # not compatible
query II rowsort label-1646
SELECT DISTINCT + SUM ( DISTINCT 99 ) * + 70 + 36 + + 5 AS col2, 50 + + MIN ( - 35 ) * - 98
----
6971
3480

query I rowsort
SELECT - ( - 78 ) * + + 30 + 37
----
2377

query I rowsort
SELECT ALL + - 17 * + 53 col2
----
-901

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

skipif mysql # not compatible
query I rowsort label-1649
SELECT - - MAX ( + 57 )
----
57

query I rowsort
SELECT + 73 * - 99
----
-7227

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1653
SELECT CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT CAST ( NULL AS REAL ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 78 - - 34 + - - 94
----
206

query I rowsort
SELECT ALL + COALESCE ( - ( + - 7 ), - 10 + + 41 ) + + - 61
----
-54

query I rowsort
SELECT - 22 * 54 * - 51 AS col1
----
60588

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT DISTINCT - COUNT( * ) + 95 + - 64 AS col2, + 6
----
30
6

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT - COUNT ( * ) + 95 + - 64 AS col2, + 6
----
30
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT - 89 + - - MIN( - - 37 ) * + - 42 + - 54, + 62 - - - 40 * + COUNT( * ) AS col0
----
-1697
22

skipif mysql # not compatible
query II rowsort label-1660
SELECT - 89 + - - MIN ( - - 37 ) * + - 42 + - 54, + 62 - - - 40 * + COUNT ( * ) AS col0
----
-1697
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1661
SELECT 72 / 26 + + - ( - COUNT( * ) ) + + 34 - + 46 * - + 7 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT 72 / 26 + + - ( - COUNT ( * ) ) + + 34 - + 46 * - + 7 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 * 39
----
-2574

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1664
SELECT + 51 * + + 57 + - 75 DIV CASE 11 WHEN - + 86 THEN + + 46 * 20 * - 26 WHEN COUNT( * ) THEN NULL ELSE + 9 - + 44 END * + 85 + - - COUNT( * ), 93 AS col2
----
3078
93

skipif mysql # not compatible
query II rowsort label-1664
SELECT + 51 * + + 57 + - 75 / CASE 11 WHEN - + 86 THEN + + 46 * 20 * - 26 WHEN COUNT ( * ) THEN NULL ELSE + 9 - + 44 END * + 85 + - - COUNT ( * ), 93 AS col2
----
3078
93

query II rowsort
SELECT + 2 AS col2, 54
----
2
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT ALL COUNT( * ) + - + 77 + - 68 * + CAST( NULL AS SIGNED ) / 27 * 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL COUNT ( * ) + - + 77 + - 68 * + CAST ( NULL AS INTEGER ) / 27 * 54 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1667
SELECT 1 + 60 - + CAST( + - 29 AS SIGNED ) DIV - SUM( ALL - 36 ) - + 21 * + + CAST( - 82 AS SIGNED ) + + 8 * - CASE WHEN NULL NOT IN ( - 46, + 75 * NULLIF ( - 16, CAST( NULL AS SIGNED ) ) + + 4 ) THEN NULL ELSE + + 51 END, - 73 col0
----
1375
-73

skipif mysql # not compatible
query II rowsort label-1667
SELECT 1 + 60 - + CAST ( + - 29 AS INTEGER ) / - SUM ( ALL - 36 ) - + 21 * + + CAST ( - 82 AS INTEGER ) + + 8 * - CASE WHEN NULL NOT IN ( - 46, + 75 * NULLIF ( - 16, CAST ( NULL AS INTEGER ) ) + + 4 ) THEN NULL ELSE + + 51 END, - 73 col0
----
1375
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1668
SELECT - 6 * 63 * 56 + + + 13 - - 81 - - ( + - 54 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 6 * 63 * 56 + + + 13 - - 81 - - ( + - 54 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT CAST( NULL AS SIGNED ) * - + 76 * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT CAST ( NULL AS INTEGER ) * - + 76 * + 97 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1671
SELECT + NULLIF ( + ( COALESCE ( 89, + COUNT( * ) ) ), + 23 + - ( - + ( 4 ) ) ) AS col2, 50 - + 58 AS col2
----
89
-8

skipif mysql # not compatible
query II rowsort label-1671
SELECT + NULLIF ( + ( COALESCE ( 89, + COUNT ( * ) ) ), + 23 + - ( - + ( 4 ) ) ) AS col2, 50 - + 58 AS col2
----
89
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT ALL + 19 - ( + MIN( ALL 30 ) ) + CASE - 9 WHEN + 39 - - 45 + + 65 * + 15 THEN NULL WHEN + ( 45 ) THEN COUNT( * ) * + - COUNT( * ) * + ( + - 39 ) * 50 ELSE - 40 END DIV - - 71 DIV ( COUNT( * ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + 19 - ( + MIN ( ALL 30 ) ) + CASE - 9 WHEN + 39 - - 45 + + 65 * + 15 THEN NULL WHEN + ( 45 ) THEN COUNT ( * ) * + - COUNT ( * ) * + ( + - 39 ) * 50 ELSE - 40 END / - - 71 / ( COUNT ( * ) ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT 26 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT 26 / - 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT MAX( + 79 ) * - - 41
----
3239

skipif mysql # not compatible
query I rowsort label-1674
SELECT MAX ( + 79 ) * - - 41
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - COUNT( * ) * COUNT( * ) - + - 58
----
57

skipif mysql # not compatible
query I rowsort label-1675
SELECT - COUNT ( * ) * COUNT ( * ) - + - 58
----
57

query II rowsort
SELECT ALL - 57 AS col1, - 24 * 19
----
-57
-456

query I rowsort
SELECT ALL CASE - + 73 WHEN 47 - + + 75 THEN - - 25 END col2
----
NULL

query I rowsort
SELECT - - 77 - - 64 - + 62
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1679
SELECT - + 8 + MAX( DISTINCT - + 10 ) DIV ( 6 )
----
-9

skipif mysql # not compatible
query I rowsort label-1679
SELECT - + 8 + MAX ( DISTINCT - + 10 ) / ( 6 )
----
-9

query I rowsort
SELECT + - 28 * - 48 * + NULLIF ( + - 64, - + 73 + - 63 )
----
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL + 22 + + + 69 + + + 74 + - + ( COUNT( * ) ) + - 71 * + - 64 AS col0
----
4708

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + 22 + + + 69 + + + 74 + - + ( COUNT ( * ) ) + - 71 * + - 64 AS col0
----
4708

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1683
SELECT - 61, CAST( MAX( DISTINCT + + ( - - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col2
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1683
SELECT - 61, CAST ( MAX ( DISTINCT + + ( - - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col2
----
-61
NULL

query I rowsort
SELECT ALL 37 + - 72 + - - 48
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - COUNT( * ) + - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1685
SELECT - COUNT ( * ) + - 41 AS col2
----
-42

query II rowsort
SELECT DISTINCT + 52 AS col0, + 18 * 48 AS col0
----
52
864

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + - 23 + COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1690
SELECT - - 3 col0, + COUNT( * ) * 6
----
3
6

skipif mysql # not compatible
query II rowsort label-1690
SELECT - - 3 col0, + COUNT ( * ) * 6
----
3
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT - - 32 * 59 + + COALESCE ( + 11, 14 DIV + 23 + - 66 ) + + 4
----
1903

skipif mysql # not compatible
query I rowsort label-1691
SELECT - - 32 * 59 + + COALESCE ( + 11, 14 / + 23 + - 66 ) + + 4
----
1903

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + - COUNT( * ) + - SUM( ALL + 60 )
----
-61

skipif mysql # not compatible
query I rowsort label-1692
SELECT + - COUNT ( * ) + - SUM ( ALL + 60 )
----
-61

query I rowsort
SELECT ALL 26 + + + 21 AS col1
----
47

query II rowsort
SELECT + - 93 AS col1, - 93 * + 5 AS col0
----
-93
-465

query I rowsort
SELECT + 35 + + 23 / 46 * + CASE 85 WHEN 26 THEN NULL WHEN 44 THEN - 53 END AS col0
----
NULL

query I rowsort
SELECT + 52 * - 50
----
-2600

query I rowsort
SELECT ALL 58 * - 12 * 47 * - 99
----
3238488

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

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL COUNT ( * ) * + 64 * + + 73 AS col0
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ( CASE - 75 WHEN - CASE - ( - - COUNT( * ) ) WHEN + + 93 + + + 98 + - - COUNT( * ) THEN - - 65 ELSE 23 + - - COUNT( ALL + 29 ) END * - + 58 THEN - + 75 * + - COUNT( * ) / + 73 * 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT ( CASE - 75 WHEN - CASE - ( - - COUNT ( * ) ) WHEN + + 93 + + + 98 + - - COUNT ( * ) THEN - - 65 ELSE 23 + - - COUNT ( ALL + 29 ) END * - + 58 THEN - + 75 * + - COUNT ( * ) / + 73 * 29 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + NULLIF ( - 65, - - COALESCE ( 47, - ( + 63 ) - - 80 + + 42 * 42 + - - NULLIF ( - + 11, + COUNT( * ) * - + MIN( + 46 ) * SUM( + 84 ) + - 65 + - COUNT( * ) + + 22 * + 54 * 59 ), + 42 ) * - - 84 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1700
SELECT + NULLIF ( - 65, - - COALESCE ( 47, - ( + 63 ) - - 80 + + 42 * 42 + - - NULLIF ( - + 11, + COUNT ( * ) * - + MIN ( + 46 ) * SUM ( + 84 ) + - 65 + - COUNT ( * ) + + 22 * + 54 * 59 ), + 42 ) * - - 84 ) AS col0
----
-65

query I rowsort
SELECT + 92 * - 70 * - + ( 13 )
----
83720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1702
SELECT + 56 * 17, + COUNT( * ) * - CAST( + + 22 AS SIGNED ) + - 14 + - 12 + + 95 * + ( - 55 ) * ( + + 97 ) col1
----
952
-506873

skipif mysql # not compatible
query II rowsort label-1702
SELECT + 56 * 17, + COUNT ( * ) * - CAST ( + + 22 AS INTEGER ) + - 14 + - 12 + + 95 * + ( - 55 ) * ( + + 97 ) col1
----
952
-506873

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - SUM( 90 ) * COUNT( * ) * + 2 * - + 6
----
1080

skipif mysql # not compatible
query I rowsort label-1703
SELECT - SUM ( 90 ) * COUNT ( * ) * + 2 * - + 6
----
1080

query I rowsort
SELECT NULLIF ( 27, + + 12 * + 8 * + - 31 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT CASE 30 WHEN + 18 THEN NULL WHEN SUM( 40 ) + - 97 THEN - + 17 + + - 8 ELSE + COUNT( + + 51 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1705
SELECT CASE 30 WHEN + 18 THEN NULL WHEN SUM ( 40 ) + - 97 THEN - + 17 + + - 8 ELSE + COUNT ( + + 51 ) END AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1706
SELECT ALL + 15 DIV - + 62 * + - COUNT( * ) AS col2, - ( + 60 ) col0
----
0
-60

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL + 15 / - + 62 * + - COUNT ( * ) AS col2, - ( + 60 ) col0
----
0
-60

query I rowsort
SELECT DISTINCT + 6 * + + ( + 84 ) AS col2
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT - - COALESCE ( - 46, + MIN( DISTINCT + 38 ), NULLIF ( - - 14, - 10 + - 36 ), + 90 * + 65 ) DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT - - COALESCE ( - 46, + MIN ( DISTINCT + 38 ), NULLIF ( - - 14, - 10 + - 36 ), + 90 * + 65 ) / - - 55
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1709
SELECT ALL + 18 DIV - - ( 17 ) AS col1, + 62
----
1
62

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL + 18 / - - ( 17 ) AS col1, + 62
----
1
62

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT + COUNT ( * ) * + 91 * 14 AS col0
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT ALL + 26 * + COUNT( * ) + + CAST( 30 AS SIGNED ) + + COUNT( + 59 ) + + COUNT( * ) - - + 9
----
67

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + 26 * + COUNT ( * ) + + CAST ( 30 AS INTEGER ) + + COUNT ( + 59 ) + + COUNT ( * ) - - + 9
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT + - NULLIF ( - 15, + 0 * + CAST( NULL AS SIGNED ) ) * - 35 + + 49 AS col2
----
-476

skipif mysql # not compatible
query I rowsort label-1713
SELECT + - NULLIF ( - 15, + 0 * + CAST ( NULL AS INTEGER ) ) * - 35 + + 49 AS col2
----
-476

query I rowsort
SELECT ALL + 77 + + 45
----
122

query I rowsort
SELECT ALL + 66 + + 66 * + 8 - - 96 AS col0
----
690

query I rowsort
SELECT DISTINCT + 44 + - - 61
----
105

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

query I rowsort
SELECT ALL + + 62 + + 10 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1719
SELECT - 41 * + - 66 col0, + CASE - - SUM( + ( - ( 66 ) ) ) WHEN - 51 THEN + 49 * 83 + - + 20 WHEN + + 70 + - + 13 + - 17 / - CAST( NULL AS SIGNED ) * 42 + 98 * 51 + + + 69 + + 93 * 36 THEN NULL END * COUNT( * ) - - 32 + - 81 / 75
----
2706
NULL

skipif mysql # not compatible
query II rowsort label-1719
SELECT - 41 * + - 66 col0, + CASE - - SUM ( + ( - ( 66 ) ) ) WHEN - 51 THEN + 49 * 83 + - + 20 WHEN + + 70 + - + 13 + - 17 / - CAST ( NULL AS INTEGER ) * 42 + 98 * 51 + + + 69 + + 93 * 36 THEN NULL END * COUNT ( * ) - - 32 + - 81 / 75
----
2706
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT - 80 * + 49 * CAST( - MIN( ALL + + 38 ) AS SIGNED ) col1
----
148960

skipif mysql # not compatible
query I rowsort label-1720
SELECT - 80 * + 49 * CAST ( - MIN ( ALL + + 38 ) AS INTEGER ) col1
----
148960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT - SUM( ALL + ( - - 55 ) ) - - + 90 - - 86 / + ( + CAST( NULL AS SIGNED ) ) * + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT - SUM ( ALL + ( - - 55 ) ) - - + 90 - - 86 / + ( + CAST ( NULL AS INTEGER ) ) * + - 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - - COALESCE ( 4, - 73 + 16, - 32 * + COUNT( * ) + - + COUNT( * ) * - NULLIF ( + 95, + 89 ) * + 27 * COUNT( ALL + - CAST( + + 56 AS SIGNED ) ) + CAST( NULL AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1722
SELECT - - COALESCE ( 4, - 73 + 16, - 32 * + COUNT ( * ) + - + COUNT ( * ) * - NULLIF ( + 95, + 89 ) * + 27 * COUNT ( ALL + - CAST ( + + 56 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) ) AS col2
----
4

query I rowsort
SELECT ALL + 54 * + 27 AS col1
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL + 82 - + + 14 - - SUM( 86 )
----
154

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + 82 - + + 14 - - SUM ( 86 )
----
154

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT + 93 DIV - - COALESCE ( + NULLIF ( 76, 53 + - + MIN( ALL + 90 ) ), + 10, - + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 93 / - - COALESCE ( + NULLIF ( 76, 53 + - + MIN ( ALL + 90 ) ), + 10, - + 72 ) AS col1
----
1

query I rowsort
SELECT + 69 - + + 23
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT - 57 DIV - - 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 57 / - - 48 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + CASE - 70 WHEN + 60 + - + 36 THEN + COUNT( * ) * 65 - + ( 13 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT + CASE - 70 WHEN + 60 + - + 36 THEN + COUNT ( * ) * 65 - + ( 13 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT + COALESCE ( - - COALESCE ( + 36, - COUNT( * ), + 20 ), + 95 ) * - 52 * + 22 * - CASE - COUNT( * ) WHEN - + 31 THEN + 82 / - - 11 + + 85 + - + 96 - 55 WHEN + ( COUNT( * ) ) - + 36 THEN + CASE + + MIN( CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) + SUM( - 58 ) THEN + COUNT( * ) END WHEN 44 THEN NULL WHEN + 78 THEN + + 95 * 2 ELSE NULL END + - 93 + - NULLIF ( 7, - - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT + COALESCE ( - - COALESCE ( + 36, - COUNT ( * ), + 20 ), + 95 ) * - 52 * + 22 * - CASE - COUNT ( * ) WHEN - + 31 THEN + 82 / - - 11 + + 85 + - + 96 - 55 WHEN + ( COUNT ( * ) ) - + 36 THEN + CASE + + MIN ( CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) + SUM ( - 58 ) THEN + COUNT ( * ) END WHEN 44 THEN NULL WHEN + 78 THEN + + 95 * 2 ELSE NULL END + - 93 + - NULLIF ( 7, - - 65 )
----
NULL

query I rowsort
SELECT ALL 3 * - 58 AS col1
----
-174

query I rowsort
SELECT + 9 + - 84 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT DISTINCT 79 + MAX( ALL + 30 ) AS col0, + 21 + - 77 AS col2
----
109
-56

skipif mysql # not compatible
query II rowsort label-1734
SELECT DISTINCT 79 + MAX ( ALL + 30 ) AS col0, + 21 + - 77 AS col2
----
109
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL 97 * - COUNT( * ) * + 12 * - CAST( 34 AS SIGNED ) AS col0
----
39576

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 97 * - COUNT ( * ) * + 12 * - CAST ( 34 AS INTEGER ) AS col0
----
39576

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ( + COUNT( * ) ) * + 25 * 2 - - 39
----
89

skipif mysql # not compatible
query I rowsort label-1736
SELECT ( + COUNT ( * ) ) * + 25 * 2 - - 39
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1737
SELECT COUNT( * ) * CAST( 25 AS SIGNED ) + - + 54 * - 23 * 90 AS col1
----
111805

skipif mysql # not compatible
query I rowsort label-1737
SELECT COUNT ( * ) * CAST ( 25 AS INTEGER ) + - + 54 * - 23 * 90 AS col1
----
111805

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT COUNT( * ) * + + 94 * - 70 * COALESCE ( - 38, 2, + + COUNT( ALL - + 46 ) ) AS col1
----
250040

skipif mysql # not compatible
query I rowsort label-1738
SELECT COUNT ( * ) * + + 94 * - 70 * COALESCE ( - 38, 2, + + COUNT ( ALL - + 46 ) ) AS col1
----
250040

query II rowsort
SELECT + 23, + COALESCE ( 49, - 21, - 36 ) - 43 * + 69 * 5 AS col1
----
23
-14786

query I rowsort
SELECT - COALESCE ( - 43, - 25 )
----
43

query II rowsort
SELECT + 73 AS col1, - 31 * 10 AS col0
----
73
-310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT NULLIF ( 8, + MIN( 32 ) ) * + + 77 * + 80 + - 90 AS col0
----
49190

skipif mysql # not compatible
query I rowsort label-1743
SELECT NULLIF ( 8, + MIN ( 32 ) ) * + + 77 * + 80 + - 90 AS col0
----
49190

query I rowsort
SELECT ALL - 95 + - 94 AS col1
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT - CAST( + - 33 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1745
SELECT - CAST ( + - 33 AS INTEGER ) AS col2
----
33

query II rowsort
SELECT ALL + - 10 + ( + - 46 ) AS col1, + 82 + - - 94 AS col2
----
-56
176

query II rowsort
SELECT + 7 AS col1, 21 + + 62
----
7
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1748
SELECT + 35 * - + 70 + + 28, - CAST( NULL AS DECIMAL ) * - COUNT( * ) + 49 AS col1
----
-2422
NULL

skipif mysql # not compatible
query II rowsort label-1748
SELECT + 35 * - + 70 + + 28, - CAST ( NULL AS REAL ) * - COUNT ( * ) + 49 AS col1
----
-2422
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1749
SELECT AVG ( ALL 15 ) - + - 78 * + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) - + MIN( ALL + - CAST( 26 AS SIGNED ) ) AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-1749
SELECT AVG ( ALL 15 ) - + - 78 * + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) - + MIN ( ALL + - CAST ( 26 AS INTEGER ) ) AS col2
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT - 16 * 70 + 6 * + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), + 83 ) * 49 * + - 75 - - 5 + 32 * 58 + + 84
----
-21225

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 16 * 70 + 6 * + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), + 83 ) * 49 * + - 75 - - 5 + 32 * 58 + + 84
----
-21225

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT 56 + + 76 * 38 AS col0, COUNT( DISTINCT 7 ) AS col0
----
2944
1

skipif mysql # not compatible
query II rowsort label-1751
SELECT 56 + + 76 * 38 AS col0, COUNT ( DISTINCT 7 ) AS col0
----
2944
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL + MAX( 19 ) - 43 + + COUNT( * ) + - 19 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + MAX ( 19 ) - 43 + + COUNT ( * ) + - 19 AS col2
----
-42

query I rowsort
SELECT ALL + 18 - - 17
----
35

query I rowsort
SELECT ALL + 60 * + 99 AS col0
----
5940

query I rowsort
SELECT 10 + - - 21 AS col1
----
31

query I rowsort
SELECT ALL + 50 - + 77 AS col0
----
-27

query I rowsort
SELECT 17 * 91 AS col0
----
1547

query I rowsort
SELECT 29 * + + 55
----
1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT 36 + - 0 + + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) * 10 col0
----
46

skipif mysql # not compatible
query I rowsort label-1759
SELECT 36 + - 0 + + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * 10 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 7 * - - MIN( - 15 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-1760
SELECT 7 * - - MIN ( - 15 ) AS col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT 45 + + ( + + MAX( ALL - 58 ) ) - - + ( - 18 ) DIV + 45
----
-13

skipif mysql # not compatible
query I rowsort label-1761
SELECT 45 + + ( + + MAX ( ALL - 58 ) ) - - + ( - 18 ) / + 45
----
-13

query I rowsort
SELECT DISTINCT - 33 * 30
----
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1763
SELECT ALL - NULLIF ( - COUNT( + ( CAST( NULL AS SIGNED ) ) ), + + MIN( ALL - 89 ) ) * - COALESCE ( + - CASE - 50 WHEN + ( + ( - 54 ) ) THEN + + ( - - 64 ) END, 76, + ( + 16 ) ) + 93 + 62 AS col1, 72 + 59 DIV COALESCE ( + 27, - 98 )
----
155
74

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL - NULLIF ( - COUNT ( + ( CAST ( NULL AS INTEGER ) ) ), + + MIN ( ALL - 89 ) ) * - COALESCE ( + - CASE - 50 WHEN + ( + ( - 54 ) ) THEN + + ( - - 64 ) END, 76, + ( + 16 ) ) + 93 + 62 AS col1, 72 + 59 / COALESCE ( + 27, - 98 )
----
155
74

query I rowsort
SELECT DISTINCT - 6 * 37 * + 67
----
-14874

query I rowsort
SELECT DISTINCT - COALESCE ( - 83, - 41 * 94 ) * 10
----
830

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1766
SELECT 45 * + + 7 AS col2, + COUNT( * ) + + COUNT( * ) DIV + 13
----
315
1

skipif mysql # not compatible
query II rowsort label-1766
SELECT 45 * + + 7 AS col2, + COUNT ( * ) + + COUNT ( * ) / + 13
----
315
1

query I rowsort
SELECT DISTINCT 56 + + 91
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL + ( + - CASE SUM( ALL - + 11 ) WHEN - 73 - + + 35 THEN NULL WHEN 85 + + - 59 THEN NULL ELSE + + 13 + + - ( - COUNT( * ) ) END ) + 17
----
3

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + ( + - CASE SUM ( ALL - + 11 ) WHEN - 73 - + + 35 THEN NULL WHEN 85 + + - 59 THEN NULL ELSE + + 13 + + - ( - COUNT ( * ) ) END ) + 17
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT 61 DIV 50 - + + 26
----
-25

skipif mysql # not compatible
query I rowsort label-1769
SELECT 61 / 50 - + + 26
----
-25

query I rowsort
SELECT 70 * - NULLIF ( 70, + - 28 * + 51 + + 41 ) AS col2
----
-4900

query I rowsort
SELECT 76 + - 21 + + 95
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + COUNT( * ) * - 92 - 46 AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-1772
SELECT + COUNT ( * ) * - 92 - 46 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT MIN( ALL + 27 ) + - ( 99 )
----
-72

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT MIN ( ALL + 27 ) + - ( 99 )
----
-72

query I rowsort
SELECT DISTINCT + 27 * 16 AS col0
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT DISTINCT - - 28 - - COUNT( * ) AS col2, 30
----
29
30

skipif mysql # not compatible
query II rowsort label-1775
SELECT DISTINCT - - 28 - - COUNT ( * ) AS col2, 30
----
29
30

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

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

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

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

query I rowsort
SELECT 70 * - - ( 93 )
----
6510

query I rowsort
SELECT + 23 + 74 + - 74
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT 1 DIV - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1780
SELECT 1 / - - COUNT ( * ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT DISTINCT 40 DIV ( + 20 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT 40 / ( + 20 ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT COUNT( * ) + + + 34 * + COUNT( ALL 66 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + + + 34 * + COUNT ( ALL 66 ) AS col2
----
35

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT COUNT ( * ) / + 84 AS col2
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - - ( - NULLIF ( + 86, - + 83 + - AVG ( DISTINCT + - 95 ) * - + 79 ) ), - 8 * 76 ) * - - 23
----
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT NULLIF ( + 77, 63 DIV + 40 * 37 + - 2 * 75 * + 77 * + COALESCE ( - 43, + + COUNT( * ) ) ) DIV + + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT NULLIF ( + 77, 63 / + 40 * 37 + - 2 * 75 * + 77 * + COALESCE ( - 43, + + COUNT ( * ) ) ) / + + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL - 28 + - + 60 + 79 * - 99 + + + COUNT( + - 43 ) * - 55 + 39 * - 41
----
-9563

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - 28 + - + 60 + 79 * - 99 + + + COUNT ( + - 43 ) * - 55 + 39 * - 41
----
-9563

query I rowsort
SELECT DISTINCT 33 + - 92
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT - 62 * - + CAST( - + ( - 5 ) AS SIGNED )
----
310

skipif mysql # not compatible
query I rowsort label-1789
SELECT - 62 * - + CAST ( - + ( - 5 ) AS INTEGER )
----
310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1790
SELECT ALL + 89 * - - 31 + - - 16 DIV + 83 - MIN( + 1 ) AS col1, COUNT( * )
----
2758
1

skipif mysql # not compatible
query II rowsort label-1790
SELECT ALL + 89 * - - 31 + - - 16 / + 83 - MIN ( + 1 ) AS col1, COUNT ( * )
----
2758
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT - 6 * - + NULLIF ( + ( 21 ), - 30 ) + + + MAX( DISTINCT - 25 ) * + 23
----
-449

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - 6 * - + NULLIF ( + ( 21 ), - 30 ) + + + MAX ( DISTINCT - 25 ) * + 23
----
-449

query I rowsort
SELECT - 51 * + - 41 + - 52 + + ( 59 ) + - - 41 * 49 * + 12 * + 85 * - 70
----
-143440502

query II rowsort
SELECT - ( - 39 ) - + 72 AS col0, 1 + - - 37
----
-33
38

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

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + COALESCE ( - COUNT ( * ), 35 - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT CASE - 88 WHEN + + 75 THEN + ( - + 16 ) * ( - COUNT( * ) ) + + + AVG ( DISTINCT + ( + 96 ) ) / + 35 + + COUNT( * ) / CAST( - 27 AS SIGNED ) WHEN + NULLIF ( 76, - 59 - - COUNT( * ) ) * + 6 * + 25 / 40 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT CASE - 88 WHEN + + 75 THEN + ( - + 16 ) * ( - COUNT ( * ) ) + + + AVG ( DISTINCT + ( + 96 ) ) / + 35 + + COUNT ( * ) / CAST ( - 27 AS INTEGER ) WHEN + NULLIF ( 76, - 59 - - COUNT ( * ) ) * + 6 * + 25 / 40 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT 66 / - 16 * + + 34 * + 2 * CASE + 40 WHEN + 91 THEN NULL WHEN - 60 - - - 89 THEN 37 END + + CASE - 47 WHEN - 84 THEN + - 69 * - 99 * - - 59 * + 8 WHEN + - 82 + + 53 THEN ( + 34 ) * - 53 * + ( 29 ) + - 1 * COUNT( * ) WHEN - - 96 THEN 29 WHEN + 35 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT 66 / - 16 * + + 34 * + 2 * CASE + 40 WHEN + 91 THEN NULL WHEN - 60 - - - 89 THEN 37 END + + CASE - 47 WHEN - 84 THEN + - 69 * - 99 * - - 59 * + 8 WHEN + - 82 + + 53 THEN ( + 34 ) * - 53 * + ( 29 ) + - 1 * COUNT ( * ) WHEN - - 96 THEN 29 WHEN + 35 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 29 * - 77 * + + 24 - + - 4 - + + 68 + 15 AS col1
----
-53641

query I rowsort
SELECT + COALESCE ( 99, - 32 * 90 - + - 44 )
----
99

query I rowsort
SELECT NULLIF ( + 60, 26 * + 44 * + + 29 + + ( + + 69 ) ) col1
----
60

query I rowsort
SELECT ALL - 84 * 70 AS col2
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + 13 * + CASE NULLIF ( - 56, + SUM( + - 12 ) + ( + 41 ) ) WHEN + - 6 THEN + 49 END * - - 84 + - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + 13 * + CASE NULLIF ( - 56, + SUM ( + - 12 ) + ( + 41 ) ) WHEN + - 6 THEN + 49 END * - - 84 + - 35 col0
----
NULL

query I rowsort
SELECT - 35 + - - 41 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + - 39 * + SUM( ALL - + 66 )
----
2574

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + - 39 * + SUM ( ALL - + 66 )
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1804
SELECT ALL + + 97 AS col2, - CAST( 28 AS SIGNED ) + 44 + - COUNT( * ) DIV - 60 + + 43 - + + SUM( - 59 ) AS col0
----
97
118

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL + + 97 AS col2, - CAST ( 28 AS INTEGER ) + 44 + - COUNT ( * ) / - 60 + + 43 - + + SUM ( - 59 ) AS col0
----
97
118

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

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

query I rowsort
SELECT - + 23 + + - 77 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT - - 65 * - - COUNT( * ) * - 47 * - 58 AS col1
----
177190

skipif mysql # not compatible
query I rowsort label-1807
SELECT - - 65 * - - COUNT ( * ) * - 47 * - 58 AS col1
----
177190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1808
SELECT - + 73 * - CAST( - + COUNT( ALL 87 ) AS SIGNED ) - + 48 + + 84 + - 54 * 27 AS col1, + 49
----
-1495
49

skipif mysql # not compatible
query II rowsort label-1808
SELECT - + 73 * - CAST ( - + COUNT ( ALL 87 ) AS INTEGER ) - + 48 + + 84 + - 54 * 27 AS col1, + 49
----
-1495
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT ALL + 62 DIV - + SUM( DISTINCT - - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + 62 / - + SUM ( DISTINCT - - 40 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - 46 - + - 61 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 46 - + - 61 + + COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT DISTINCT 47 * - 23 - + 52 DIV + + 73
----
-1081

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT 47 * - 23 - + 52 / + + 73
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT - CASE + - 99 WHEN - 28 THEN 9 / + 53 + 53 + + + 52 END * 2 + CAST( NULL AS SIGNED ) * + - 80 * - COALESCE ( + CAST( NULL AS SIGNED ), + ( 20 ) * - COUNT( * ), + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT - CASE + - 99 WHEN - 28 THEN 9 / + 53 + 53 + + + 52 END * 2 + CAST ( NULL AS INTEGER ) * + - 80 * - COALESCE ( + CAST ( NULL AS INTEGER ), + ( 20 ) * - COUNT ( * ), + 44 )
----
NULL

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

query I rowsort
SELECT - 73 + + 3
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1815
SELECT ALL + 2 DIV + + CAST( + 84 AS SIGNED ) + + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + 2 / + + CAST ( + 84 AS INTEGER ) + + 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL COUNT( * ) * + COALESCE ( + ( - + 33 ), + 71 )
----
-33

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL COUNT ( * ) * + COALESCE ( + ( - + 33 ), + 71 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + - COUNT( * ) - + 27 * + 94
----
-2539

skipif mysql # not compatible
query I rowsort label-1817
SELECT + - COUNT ( * ) - + 27 * + 94
----
-2539

query I rowsort
SELECT - - 47 + - 62
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1819
SELECT + MAX( DISTINCT NULLIF ( + 95, - + 41 ) ) - 35 + + 37 * - + 44 + + 25 + - - 69 + COUNT( * ) + 72 * - 73 + - CAST( NULL AS DECIMAL ) - + 65 + - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT + MAX ( DISTINCT NULLIF ( + 95, - + 41 ) ) - 35 + + 37 * - + 44 + + 25 + - - 69 + COUNT ( * ) + 72 * - 73 + - CAST ( NULL AS REAL ) - + 65 + - + 21 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT ALL COUNT( * ) * + CAST( 90 AS SIGNED ) * ( - 13 )
----
-1170

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL COUNT ( * ) * + CAST ( 90 AS INTEGER ) * ( - 13 )
----
-1170

query I rowsort
SELECT - 40 * + 86 * - 6
----
20640

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT + 34 + + SUM( - 7 ) + + + 11 * 95 AS col1
----
1072

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 34 + + SUM ( - 7 ) + + + 11 * 95 AS col1
----
1072

query I rowsort
SELECT ALL ( - - 46 )
----
46

query I rowsort
SELECT + 10 + 90 AS col1
----
100

query I rowsort
SELECT ALL 80 + - COALESCE ( - 39, 5 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT + 86 + + 4 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-1826
SELECT + 86 + + 4 * COUNT ( * )
----
90

query I rowsort
SELECT ALL 92 + - 46 AS col2
----
46

query I rowsort
SELECT DISTINCT 57 * - 1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL 74 + - COUNT( * ) * - 80 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL 74 + - COUNT ( * ) * - 80 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + 56 + - MIN( - 82 ) * - + 39 * + - 6
----
19244

skipif mysql # not compatible
query I rowsort label-1830
SELECT + 56 + - MIN ( - 82 ) * - + 39 * + - 6
----
19244

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT - NULLIF ( + + SUM( + + 86 ), + AVG ( DISTINCT 75 ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-1831
SELECT - NULLIF ( + + SUM ( + + 86 ), + AVG ( DISTINCT 75 ) ) col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1832
SELECT + ( + 57 ) + 44 + 2 * + - 54 DIV + CAST( NULL AS SIGNED ), 8 DIV + 56 * - - 70 + + 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1832
SELECT + ( + 57 ) + 44 + 2 * + - 54 / + CAST ( NULL AS INTEGER ), 8 / + 56 * - - 70 + + 31 AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT + NULLIF ( 67, 98 + 89 ) * - MAX( - 50 ), 98 * 14 AS col2
----
3350
1372

skipif mysql # not compatible
query II rowsort label-1833
SELECT + NULLIF ( 67, 98 + 89 ) * - MAX ( - 50 ), 98 * 14 AS col2
----
3350
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - COUNT( * ) + - 17 + - 10 + - - 15 + 25 * 14 * - 30
----
-10513

skipif mysql # not compatible
query I rowsort label-1834
SELECT - COUNT ( * ) + - 17 + - 10 + - - 15 + 25 * 14 * - 30
----
-10513

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT ALL 16 DIV + 57 - - 34
----
34

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL 16 / + 57 - - 34
----
34

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

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

query I rowsort
SELECT + 8 * + 17 + - - 50
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT ALL - 37 DIV + MIN( - 83 ) + 96 + + 80 + + - 83 + 57 * - COUNT( * ) - 83 DIV + 57
----
35

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - 37 / + MIN ( - 83 ) + 96 + + 80 + + - 83 + 57 * - COUNT ( * ) - 83 / + 57
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1839
SELECT DISTINCT + 54 col1, - SUM( CASE + 52 WHEN - 47 THEN NULL WHEN 69 THEN - 72 ELSE NULL END ) * + 60 / + 83 + + MIN( - NULLIF ( 27, - 92 ) )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT DISTINCT + 54 col1, - SUM ( CASE + 52 WHEN - 47 THEN NULL WHEN 69 THEN - 72 ELSE NULL END ) * + 60 / + 83 + + MIN ( - NULLIF ( 27, - 92 ) )
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT DISTINCT + - ( + NULLIF ( CAST( - - 32 AS SIGNED ), - 41 + - ( - 69 ) ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + - ( + NULLIF ( CAST ( - - 32 AS INTEGER ), - 41 + - ( - 69 ) ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - MIN( 72 ) + - - 9
----
-63

skipif mysql # not compatible
query I rowsort label-1841
SELECT - MIN ( 72 ) + - - 9
----
-63

query I rowsort
SELECT + ( + 90 ) * - 90 * 20
----
-162000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1843
SELECT - NULLIF ( + 15, - 27 + + CAST( NULL AS DECIMAL ) + + + MIN( 35 ) * - COUNT( * ) * - 14 + 64 ) * 87 * + 75 * 34 * + 76 + - - 31 AS col0, - 10 * - + 33 * ( + - NULLIF ( 21, + 70 * + 71 ) ) * - 15
----
-252908969
103950

skipif mysql # not compatible
query II rowsort label-1843
SELECT - NULLIF ( + 15, - 27 + + CAST ( NULL AS REAL ) + + + MIN ( 35 ) * - COUNT ( * ) * - 14 + 64 ) * 87 * + 75 * 34 * + 76 + - - 31 AS col0, - 10 * - + 33 * ( + - NULLIF ( 21, + 70 * + 71 ) ) * - 15
----
-252908969
103950

query I rowsort
SELECT + + 86 + + CASE 24 WHEN + 40 * + - 50 THEN - 59 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT 53 * + - 83 - + COUNT( * ) * - 29 * - AVG ( DISTINCT - 44 ) * - COUNT( * ) * MAX( DISTINCT - - 39 ) / 27 * - + 67 * - 35 + - 65 / + CASE + 17 WHEN - + ( COUNT( + 97 ) ) * - 98 / + CASE + 49 WHEN - COUNT( * ) THEN NULL WHEN 87 THEN NULL ELSE - ( COUNT( ALL - 85 ) ) END THEN - - 47 * + COUNT( * ) * 91 * - COUNT( * ) + 83 WHEN - 47 + COUNT( * ) THEN NULL ELSE NULL END / - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT 53 * + - 83 - + COUNT ( * ) * - 29 * - AVG ( DISTINCT - 44 ) * - COUNT ( * ) * MAX ( DISTINCT - - 39 ) / 27 * - + 67 * - 35 + - 65 / + CASE + 17 WHEN - + ( COUNT ( + 97 ) ) * - 98 / + CASE + 49 WHEN - COUNT ( * ) THEN NULL WHEN 87 THEN NULL ELSE - ( COUNT ( ALL - 85 ) ) END THEN - - 47 * + COUNT ( * ) * 91 * - COUNT ( * ) + 83 WHEN - 47 + COUNT ( * ) THEN NULL ELSE NULL END / - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL + SUM( - 18 ) * MAX( + + ( 15 ) )
----
-270

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + SUM ( - 18 ) * MAX ( + + ( 15 ) )
----
-270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1847
SELECT - COUNT( * ) * CAST( NULL AS DECIMAL ) + + 80 + - + 6 - - AVG ( DISTINCT 70 ) * + 42 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT - COUNT ( * ) * CAST ( NULL AS REAL ) + + 80 + - + 6 - - AVG ( DISTINCT 70 ) * + 42 * + 39
----
NULL

query I rowsort
SELECT DISTINCT + + 19 * - 95 * - 18
----
32490

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1851
SELECT ALL 22 * + 74, + CASE CAST( - + 5 AS SIGNED ) WHEN 88 * - MAX( + 43 ) THEN - 97 * + + 93 + + 80 WHEN - + MAX( + - 47 ) * 16 + + 42 + 69 * 88 THEN 31 * - SUM( - 38 ) ELSE - - 8 * 75 * 36 * 98 END AS col0
----
1628
2116800

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL 22 * + 74, + CASE CAST ( - + 5 AS INTEGER ) WHEN 88 * - MAX ( + 43 ) THEN - 97 * + + 93 + + 80 WHEN - + MAX ( + - 47 ) * 16 + + 42 + 69 * 88 THEN 31 * - SUM ( - 38 ) ELSE - - 8 * 75 * 36 * 98 END AS col0
----
1628
2116800

query II rowsort
SELECT 45 * + + 43 AS col1, 65
----
1935
65

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

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

query I rowsort
SELECT DISTINCT 16 * - ( - + 11 ) AS col2
----
176

query I rowsort
SELECT ALL + COALESCE ( - 9, + 50 ) * + - 55 AS col0
----
495

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1856
SELECT 35 + + 60 + + CASE + 82 WHEN + 26 THEN - 39 ELSE + 40 END + - - NULLIF ( - 65, 87 * 63 ) * + 3 * - - SUM( 46 ) + - - 44 / 84 * - 99 * + - 1 * - - 46 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT 35 + + 60 + + CASE + 82 WHEN + 26 THEN - 39 ELSE + 40 END + - - NULLIF ( - 65, 87 * 63 ) * + 3 * - - SUM ( 46 ) + - - 44 / 84 * - 99 * + - 1 * - - 46 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT MAX( + 26 ) - - 41 col2
----
67

skipif mysql # not compatible
query I rowsort label-1857
SELECT MAX ( + 26 ) - - 41 col2
----
67

query I rowsort
SELECT DISTINCT + 84 * 65 AS col0
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1859
SELECT ( - 32 ) * CASE + 93 WHEN + 19 - - + 1 + - 35 * - 55 * 16 * + CAST( 96 AS SIGNED ) THEN NULL WHEN + 4 THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT ( - 32 ) * CASE + 93 WHEN + 19 - - + 1 + - 35 * - 55 * 16 * + CAST ( 96 AS INTEGER ) THEN NULL WHEN + 4 THEN - 93 END
----
NULL

query I rowsort
SELECT DISTINCT 65 * + + 32
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + COUNT( 8 ) + - - 76
----
77

skipif mysql # not compatible
query I rowsort label-1861
SELECT + COUNT ( 8 ) + - - 76
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT - 29 / - CAST( NULL AS SIGNED ) * + 83 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - 29 / - CAST ( NULL AS INTEGER ) * + 83 + - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) + - 96 * - AVG ( - - 38 ) * + 63 + MAX( + - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 96 * - AVG ( - - 38 ) * + 63 + MAX ( + - 23 )
----
NULL

query I rowsort
SELECT DISTINCT + 96 * - 51
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1865
SELECT DISTINCT CASE + 9 WHEN COUNT( * ) THEN NULL WHEN + 54 THEN NULL WHEN - ( - 45 ) THEN AVG ( 5 ) ELSE NULL END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT CASE + 9 WHEN COUNT ( * ) THEN NULL WHEN + 54 THEN NULL WHEN - ( - 45 ) THEN AVG ( 5 ) ELSE NULL END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + COUNT( * ) * - 73 * + 2
----
-146

skipif mysql # not compatible
query I rowsort label-1866
SELECT + COUNT ( * ) * - 73 * + 2
----
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( 36 ) + + - MAX( 14 )
----
-15

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( 36 ) + + - MAX ( 14 )
----
-15

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

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

query I rowsort
SELECT + 44 + 89
----
133

query I rowsort
SELECT DISTINCT ( - 98 ) + - NULLIF ( 76, - 52 ) AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1872
SELECT ALL - 69 * + - 95 * - + CASE - ( 46 ) WHEN + 86 THEN 34 ELSE + + 47 END AS col1, CAST( 13 AS SIGNED ) AS col2
----
-308085
13

skipif mysql # not compatible
query II rowsort label-1872
SELECT ALL - 69 * + - 95 * - + CASE - ( 46 ) WHEN + 86 THEN 34 ELSE + + 47 END AS col1, CAST ( 13 AS INTEGER ) AS col2
----
-308085
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - 60 + - - CASE 54 WHEN - + 31 + - COALESCE ( + + 25, - + 53 * + + 10 + + - 36 + 84 - + 74 - + - COUNT( * ) * AVG ( DISTINCT + 12 ) * - 73 + + COUNT( * ) ) - COUNT( * ) THEN + 22 ELSE - - COALESCE ( - 19, + MAX( ALL + 23 ) - + 39 ) END
----
-79

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - 60 + - - CASE 54 WHEN - + 31 + - COALESCE ( + + 25, - + 53 * + + 10 + + - 36 + 84 - + 74 - + - COUNT ( * ) * AVG ( DISTINCT + 12 ) * - 73 + + COUNT ( * ) ) - COUNT ( * ) THEN + 22 ELSE - - COALESCE ( - 19, + MAX ( ALL + 23 ) - + 39 ) END
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-1874
SELECT DISTINCT 10 * - ( NULLIF ( + 78, + + 82 ) ) * + 71 + - COUNT( * ) + + NULLIF ( + 99, + + 9 - 49 ) + + + 89 + ( - 92 ) * 53 * - 40 * - - 73 * + 12 AS col1, 19 + - 53 * - 79 AS col2
----
170799847
4206

skipif mysql # not compatible
query II rowsort label-1874
SELECT DISTINCT 10 * - ( NULLIF ( + 78, + + 82 ) ) * + 71 + - COUNT ( * ) + + NULLIF ( + 99, + + 9 - 49 ) + + + 89 + ( - 92 ) * 53 * - 40 * - - 73 * + 12 AS col1, 19 + - 53 * - 79 AS col2
----
170799847
4206

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT COALESCE ( 28, - COUNT( DISTINCT - - 37 ) * - + 50 + - + 64 - 10 * COUNT( * ) ) + + + 44 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1875
SELECT COALESCE ( 28, - COUNT ( DISTINCT - - 37 ) * - + 50 + - + 64 - 10 * COUNT ( * ) ) + + + 44 AS col0
----
72

query I rowsort
SELECT 61 - + 19 * - 93
----
1828

query II rowsort
SELECT - 12 AS col0, 39 AS col1
----
-12
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT 35 + COUNT( ALL - 9 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1878
SELECT 35 + COUNT ( ALL - 9 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT 70 + 58 * - - COUNT( * ) col1, ( + 5 ) + - CASE + COALESCE ( + COUNT( * ), - 48 + - + 79 + - ( + - 70 ) + + 97 + + 87 * + 67 * + - 0, 85 ) WHEN - + 11 * 27 * 61 + + - 34 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 27 + + 45 + + 65 THEN + - COUNT( * ) END
----
128
NULL

skipif mysql # not compatible
query II rowsort label-1879
SELECT 70 + 58 * - - COUNT ( * ) col1, ( + 5 ) + - CASE + COALESCE ( + COUNT ( * ), - 48 + - + 79 + - ( + - 70 ) + + 97 + + 87 * + 67 * + - 0, 85 ) WHEN - + 11 * 27 * 61 + + - 34 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 27 + + 45 + + 65 THEN + - COUNT ( * ) END
----
128
NULL

query I rowsort
SELECT 41 * - 4 AS col0
----
-164

query I rowsort
SELECT 80 + + 2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + 98 - 97 * CAST( + - 81 AS SIGNED ) * - + 80 AS col0
----
-628462

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + 98 - 97 * CAST ( + - 81 AS INTEGER ) * - + 80 AS col0
----
-628462

query II rowsort
SELECT DISTINCT 22, 20 * - 14 col2
----
22
-280

query I rowsort
SELECT 54 * + COALESCE ( - 57, - - 22 )
----
-3078

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

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - 25 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL MAX( DISTINCT + - COALESCE ( - - 41, + + 63 * + - 11 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL MAX ( DISTINCT + - COALESCE ( - - 41, + + 63 * + - 11 ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT 70 + 41 - - MAX( ALL + 83 ) + - - ( - ( - 70 ) ) DIV 88 - COUNT( * ) + + - ( - 18 ) * 23 AS col2
----
607

skipif mysql # not compatible
query I rowsort label-1887
SELECT 70 + 41 - - MAX ( ALL + 83 ) + - - ( - ( - 70 ) ) / 88 - COUNT ( * ) + + - ( - 18 ) * 23 AS col2
----
607

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1890
SELECT 86 / + - 84
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT SUM( ALL - 53 ) * - 55 AS col1
----
2915

skipif mysql # not compatible
query I rowsort label-1891
SELECT SUM ( ALL - 53 ) * - 55 AS col1
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT SUM( 66 ) + 89 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1892
SELECT SUM ( 66 ) + 89 AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT - 76 AS col2, + NULLIF ( - MAX( + 50 ), - 76 / - COUNT( * ) ) * 42 + 89 AS col1
----
-76
-2011

skipif mysql # not compatible
query II rowsort label-1893
SELECT - 76 AS col2, + NULLIF ( - MAX ( + 50 ), - 76 / - COUNT ( * ) ) * 42 + 89 AS col1
----
-76
-2011

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT COUNT( * ) + - - 26 - 73
----
-46

skipif mysql # not compatible
query I rowsort label-1894
SELECT COUNT ( * ) + - - 26 - 73
----
-46

query II rowsort
SELECT + 51 + + 13 * 58 AS col1, - 66
----
805
-66

query I rowsort
SELECT ALL - 66 * - 1 * 84 + 41 AS col2
----
5585

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + ( + + 85 ) * + COUNT( * ) * + CASE 80 WHEN - + 7 * - 3 THEN 4 ELSE - 79 END * 8 col2
----
-53720

skipif mysql # not compatible
query I rowsort label-1897
SELECT + ( + + 85 ) * + COUNT ( * ) * + CASE 80 WHEN - + 7 * - 3 THEN 4 ELSE - 79 END * 8 col2
----
-53720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1898
SELECT - ( + 76 ) * + + 91 + + 98 * + 75 + - CAST( - + 58 AS DECIMAL ) + + 13 + CAST( NULL AS DECIMAL ) + - - COUNT( * ) + + 57 + + CAST( NULL AS SIGNED ) + - 85 * + 83, + 57 col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1898
SELECT - ( + 76 ) * + + 91 + + 98 * + 75 + - CAST ( - + 58 AS REAL ) + + 13 + CAST ( NULL AS REAL ) + - - COUNT ( * ) + + 57 + + CAST ( NULL AS INTEGER ) + - 85 * + 83, + 57 col0
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT + COUNT( * ) AS col2, - 58 * - 29
----
1
1682

skipif mysql # not compatible
query II rowsort label-1899
SELECT + COUNT ( * ) AS col2, - 58 * - 29
----
1
1682

query II rowsort
SELECT ALL - - 43 AS col1, - 25 col0
----
43
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1901
SELECT DISTINCT + 42 * - COALESCE ( - 25, + 64 ) * - + 20 * - + 15 * - - COALESCE ( + 58, + 24 + - 69, - - MAX( DISTINCT - + 92 ) ) * + 14 + - 78 + - CAST( NULL AS DECIMAL ) - 25 * + 79 + + + 23 * + ( - + 39 ) * + MIN( CAST( NULL AS SIGNED ) ) * COALESCE ( - 21, - 48, - + COUNT( * ) + - 48 + 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + 42 * - COALESCE ( - 25, + 64 ) * - + 20 * - + 15 * - - COALESCE ( + 58, + 24 + - 69, - - MAX ( DISTINCT - + 92 ) ) * + 14 + - 78 + - CAST ( NULL AS REAL ) - 25 * + 79 + + + 23 * + ( - + 39 ) * + MIN ( CAST ( NULL AS INTEGER ) ) * COALESCE ( - 21, - 48, - + COUNT ( * ) + - 48 + 33 ) col0
----
NULL

query I rowsort
SELECT ALL - + 77 * - NULLIF ( + - 24, ( - 94 ) ) AS col2
----
-1848

query I rowsort
SELECT ALL + 27 * - 1 + - 72 - + 95
----
-194

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT + 92 DIV 32 + + 57
----
59

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 92 / 32 + + 57
----
59

query I rowsort
SELECT DISTINCT + 48 * - + 35 + + 95 * - 51 + 56 AS col2
----
-6469

query I rowsort
SELECT ALL - + 20 * + 84 + + + 44 AS col2
----
-1636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT CAST( - 58 AS SIGNED ) * - 5 + + + COUNT( * ) AS col0
----
291

skipif mysql # not compatible
query I rowsort label-1908
SELECT CAST ( - 58 AS INTEGER ) * - 5 + + + COUNT ( * ) AS col0
----
291

query I rowsort
SELECT ALL ( 98 ) * + 35
----
3430

query I rowsort
SELECT + 42 * + 47 + - 56 - - + 97 - + + 64
----
1951

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL SUM( ALL ( + 1 ) ) * - - 30 * 58
----
1740

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL SUM ( ALL ( + 1 ) ) * - - 30 * 58
----
1740

query I rowsort
SELECT + 75 * + - 91
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT COALESCE ( - 67, 23 - + 88 * - + 98 ) * 63 * + ( + 18 ) - + - 23 - - - 7 + + 72 + + 25 * - COUNT( * ) - + MIN( - 16 ) AS col1
----
-75899

skipif mysql # not compatible
query I rowsort label-1913
SELECT COALESCE ( - 67, 23 - + 88 * - + 98 ) * 63 * + ( + 18 ) - + - 23 - - - 7 + + 72 + + 25 * - COUNT ( * ) - + MIN ( - 16 ) AS col1
----
-75899

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

skipif mysql # not compatible
query I rowsort label-1914
SELECT MIN ( ALL - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + MAX( ALL + 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-1915
SELECT + MAX ( ALL + 61 ) col1
----
61

query I rowsort
SELECT + 45 * + 49 AS col2
----
2205

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

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

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 94, - 71 ) col1
----
94

query I rowsort
SELECT ALL 55 * - 31
----
-1705

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + 61 + + COALESCE ( - + 88, 13, + MAX( ALL - 17 ) + 56 + + - 60 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 61 + + COALESCE ( - + 88, 13, + MAX ( ALL - 17 ) + 56 + + - 60 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + ( + COUNT( * ) ) + - - 5 + - NULLIF ( + 14, + + COUNT( * ) ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-1922
SELECT + ( + COUNT ( * ) ) + - - 5 + - NULLIF ( + 14, + + COUNT ( * ) ) col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT - ( + - 31 ), COUNT( * ) + - - CASE - COUNT( + - 72 ) WHEN + 74 THEN - COUNT( * ) + 83 * + + 35 END * - 16 AS col1
----
31
NULL

skipif mysql # not compatible
query II rowsort label-1923
SELECT - ( + - 31 ), COUNT ( * ) + - - CASE - COUNT ( + - 72 ) WHEN + 74 THEN - COUNT ( * ) + 83 * + + 35 END * - 16 AS col1
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + + NULLIF ( 92, + + SUM( + + ( - 67 ) ) ) + - + ( 57 )
----
35

skipif mysql # not compatible
query I rowsort label-1924
SELECT + + NULLIF ( 92, + + SUM ( + + ( - 67 ) ) ) + - + ( 57 )
----
35

query I rowsort
SELECT - + 1 * 53 * - 13
----
689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT - 44 DIV - + 45 + + COUNT( * ) + 35 + 14 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1926
SELECT - 44 / - + 45 + + COUNT ( * ) + 35 + 14 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL - COUNT( * ) + + MAX( + 99 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - COUNT ( * ) + + MAX ( + 99 ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL + 46 + - 42 + - 70 - + - 49 * - COUNT( * ) * + 52 * 25 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + 46 + - 42 + - 70 - + - 49 * - COUNT ( * ) * + 52 * 25 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 1 + + 88
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1930
SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + + CAST( NULL AS SIGNED ), + SUM( 63 ) - - CASE - 70 WHEN + 14 THEN NULL WHEN + NULLIF ( + 14, + + 53 ) + + + 54 THEN - + COUNT( * ) DIV 75 END + + - CAST( NULL AS SIGNED ) * + 39 ) * + COUNT( * ) + - 97 * + 92 + COUNT( * ) + - COUNT( * ) DIV - COUNT( * ) + 61 ) AS col0, 26 AS col0, 37
----
-1
26
37

skipif mysql # not compatible
query III rowsort label-1930
SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + + CAST ( NULL AS INTEGER ), + SUM ( 63 ) - - CASE - 70 WHEN + 14 THEN NULL WHEN + NULLIF ( + 14, + + 53 ) + + + 54 THEN - + COUNT ( * ) / 75 END + + - CAST ( NULL AS INTEGER ) * + 39 ) * + COUNT ( * ) + - 97 * + 92 + COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) + 61 ) AS col0, 26 AS col0, 37
----
-1
26
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - COUNT( * ) + - 99 + + MAX( - 60 ) * ( + - 13 ) + COUNT( * ) + + 24 * - MIN( DISTINCT - 18 ) * + + COUNT( * ) + SUM( - - 58 ) + 80 + + + 17
----
1268

skipif mysql # not compatible
query I rowsort label-1931
SELECT - COUNT ( * ) + - 99 + + MAX ( - 60 ) * ( + - 13 ) + COUNT ( * ) + + 24 * - MIN ( DISTINCT - 18 ) * + + COUNT ( * ) + SUM ( - - 58 ) + 80 + + + 17
----
1268

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL - - COUNT( * ) + + 25 * + - 35 * + COUNT( * ) + + 86 * + 74 AS col0
----
5490

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - - COUNT ( * ) + + 25 * + - 35 * + COUNT ( * ) + + 86 * + 74 AS col0
----
5490

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT DISTINCT + SUM( DISTINCT - 61 ) * 85 + + 26 AS col0, 56 + - 83 + - COUNT( * )
----
-5159
-28

skipif mysql # not compatible
query II rowsort label-1933
SELECT DISTINCT + SUM ( DISTINCT - 61 ) * 85 + + 26 AS col0, 56 + - 83 + - COUNT ( * )
----
-5159
-28

query I rowsort
SELECT - 66 * + 6 + 50 col2
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - - MIN( 3 ) - + - ( - 56 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1935
SELECT - - MIN ( 3 ) - + - ( - 56 ) AS col1
----
-53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT MAX( DISTINCT + - 75 ) AS col2, - 62
----
-75
-62

skipif mysql # not compatible
query II rowsort label-1937
SELECT MAX ( DISTINCT + - 75 ) AS col2, - 62
----
-75
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1938
SELECT DISTINCT - + 0 * - 87 AS col1, 80 + + + 77 * + 55 * - + CAST( NULL AS DECIMAL ) * + 43
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1938
SELECT DISTINCT - + 0 * - 87 AS col1, 80 + + + 77 * + 55 * - + CAST ( NULL AS REAL ) * + 43
----
0
NULL

query I rowsort
SELECT DISTINCT + + 55 * - 90 + - 56
----
-5006

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT - + 89 * - 82 + - 63 * + COUNT( * ) + + + ( - - 16 )
----
7251

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - + 89 * - 82 + - 63 * + COUNT ( * ) + + + ( - - 16 )
----
7251

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT + ( + 14 ) * - + COUNT( * ) + - + 61 col2
----
-75

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + ( + 14 ) * - + COUNT ( * ) + - + 61 col2
----
-75

query I rowsort
SELECT DISTINCT - 0 * - 17 + - - 54 * + - 99 AS col0
----
-5346

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT ALL 58 DIV + 15 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL 58 / + 15 AS col2
----
3

query I rowsort
SELECT 33 * + + 10 + - 36 * - 59
----
2454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1945
SELECT + COUNT( DISTINCT + - 29 ) DIV 55 + + - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1945
SELECT + COUNT ( DISTINCT + - 29 ) / 55 + + - 66 AS col0
----
-66

query I rowsort
SELECT + CASE + - 94 WHEN - 53 THEN ( - + 15 ) END
----
NULL

query I rowsort
SELECT - 51 + + 52 + - 67 * - 93
----
6232

query I rowsort
SELECT + COALESCE ( + + 71, 41 ) AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT ALL 22 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 22 / 94 AS col2
----
0

query I rowsort
SELECT - 28 + + - 34 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COUNT( * ) + 43
----
42

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COUNT ( * ) + 43
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT DISTINCT 57 * - 18 * 39 AS col2, 56 * - 73 - + NULLIF ( - + COUNT( * ), - - ( 48 ) + 79 ) col1
----
-40014
-4087

skipif mysql # not compatible
query II rowsort label-1952
SELECT DISTINCT 57 * - 18 * 39 AS col2, 56 * - 73 - + NULLIF ( - + COUNT ( * ), - - ( 48 ) + 79 ) col1
----
-40014
-4087

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1953
SELECT ALL - CASE + 79 WHEN - 79 * - 47 + 1 + 43 - + COUNT( * ) + - 74 + 88 * - 90 THEN + 2 + + 30 + + 25 / - - 36 * 92 * - 56 WHEN - - COUNT( * ) THEN 93 * 72 ELSE ( - AVG ( ALL CAST( NULL AS DECIMAL ) ) ) END * - 43 / - 37 - - + 2 * + 62 / - + 20 - + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - CASE + 79 WHEN - 79 * - 47 + 1 + 43 - + COUNT ( * ) + - 74 + 88 * - 90 THEN + 2 + + 30 + + 25 / - - 36 * 92 * - 56 WHEN - - COUNT ( * ) THEN 93 * 72 ELSE ( - AVG ( ALL CAST ( NULL AS REAL ) ) ) END * - 43 / - 37 - - + 2 * + 62 / - + 20 - + 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 21 * 9
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1955
SELECT + ( + - 20 ) DIV + 74 * 89 * 90 AS col2, ( - 58 ) DIV + - 91 DIV + COUNT( * )
----
0
0

skipif mysql # not compatible
query II rowsort label-1955
SELECT + ( + - 20 ) / + 74 * 89 * 90 AS col2, ( - 58 ) / + - 91 / + COUNT ( * )
----
0
0

query I rowsort
SELECT + CASE - 84 WHEN + 15 THEN 63 * + - 49 + - 38 ELSE NULL END * 53 + 66 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1957
SELECT MAX ( ALL 85 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT + COUNT( DISTINCT 86 ) * - 67 AS col1, + 47 * + - ( 79 ) * - 19 + ( - + 53 ) AS col2
----
-67
70494

skipif mysql # not compatible
query II rowsort label-1958
SELECT + COUNT ( DISTINCT 86 ) * - 67 AS col1, + 47 * + - ( 79 ) * - 19 + ( - + 53 ) AS col2
----
-67
70494

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL 2 + + SUM( ALL + 44 )
----
46

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL 2 + + SUM ( ALL + 44 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + 72 + + 72 + - 58 * CAST( + 99 AS SIGNED ) AS col1
----
-5598

skipif mysql # not compatible
query I rowsort label-1960
SELECT + 72 + + 72 + - 58 * CAST ( + 99 AS INTEGER ) AS col1
----
-5598

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

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

query I rowsort
SELECT DISTINCT 87 + + - 0 * + 84 AS col0
----
87

query I rowsort
SELECT - + 29 + - 26
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT 90 + - 32 + + SUM( DISTINCT + 75 )
----
133

skipif mysql # not compatible
query I rowsort label-1964
SELECT 90 + - 32 + + SUM ( DISTINCT + 75 )
----
133

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

query I rowsort
SELECT ALL + + 35 + + 61 * 8 + - 62 * - - 19 AS col1
----
-655

query I rowsort
SELECT 23 * + 60
----
1380

query I rowsort
SELECT ALL - - ( + 41 ) col0
----
41

query I rowsort
SELECT - - 61 * 17 + ( - 28 ) col2
----
1009

query I rowsort
SELECT 69 * + 37 + - 83 col0
----
2470

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

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

query I rowsort
SELECT + - NULLIF ( 44, 42 )
----
-44

query I rowsort
SELECT + 38 * 53 AS col1
----
2014

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT 64 * 64 * + MIN( DISTINCT - + 29 ) * 21 * - 70
----
174612480

skipif mysql # not compatible
query I rowsort label-1974
SELECT 64 * 64 * + MIN ( DISTINCT - + 29 ) * 21 * - 70
----
174612480

query I rowsort
SELECT 70 + ( 42 )
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT - 56 * - 29 DIV + + COUNT( * )
----
1624

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - 56 * - 29 / + + COUNT ( * )
----
1624

query I rowsort
SELECT 54 * 7 * - 9 * + + 66 col1
----
-224532

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL + 39 * - + COUNT( 82 )
----
-39

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

query II rowsort
SELECT DISTINCT - 28 AS col0, 98 * + 16 AS col1
----
-28
1568

query II rowsort
SELECT + 11 AS col2, 14 AS col1
----
11
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT - 41, - COUNT( * ) + - + 52 AS col2
----
-41
-53

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT - 41, - COUNT ( * ) + - + 52 AS col2
----
-41
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 79 * + 89 * - - COUNT( * )
----
7031

skipif mysql # not compatible
query I rowsort label-1982
SELECT 79 * + 89 * - - COUNT ( * )
----
7031

query II rowsort
SELECT 52, 23 AS col0
----
52
23

query I rowsort
SELECT 69 * 95 AS col2
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT COUNT( ALL + 65 ) + - + 74
----
-73

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT COUNT ( ALL + 65 ) + - + 74
----
-73

query II rowsort
SELECT - 35, - 38 AS col2
----
-35
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL + 4 + - + 48 DIV - - 31 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 4 + - + 48 / - - 31 AS col0
----
3

query I rowsort
SELECT - + 43 col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( 60, - + 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( 60, - + 23 ) )
----
NULL

query I rowsort
SELECT ALL + - 71 + 84 - - - CASE 96 WHEN - - 37 * + ( + 88 ) + + + 42 - + + 83 THEN - + 37 WHEN + 19 THEN NULL END * + 93
----
NULL

query II rowsort
SELECT 82, 37 AS col1
----
82
37

query I rowsort
SELECT - 36 + - + 97 AS col0
----
-133

query II rowsort
SELECT ALL - 10 AS col1, - 78 AS col1
----
-10
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT COALESCE ( - 68, + - 41 + ( - + 95 ), + 73 + 16 * + COUNT( * ) - 99 * + 25 * - 94 * + 24 * 39 * - ( + + 93 ) + - - 81 + - 79 + 45 + - 28 ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-1994
SELECT COALESCE ( - 68, + - 41 + ( - + 95 ), + 73 + 16 * + COUNT ( * ) - 99 * + 25 * - 94 * + 24 * 39 * - ( + + 93 ) + - - 81 + - 79 + 45 + - 28 ) col1
----
-68

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

query II rowsort
SELECT - 35 AS col1, - ( 85 ) AS col1
----
-35
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT COALESCE ( + ( + 9 ), + 71 - - 36, - 50 + NULLIF ( + 2, + CAST( NULL AS SIGNED ) * + + 12 * 47 ) ) * - - 32
----
288

skipif mysql # not compatible
query I rowsort label-1998
SELECT COALESCE ( + ( + 9 ), + 71 - - 36, - 50 + NULLIF ( + 2, + CAST ( NULL AS INTEGER ) * + + 12 * 47 ) ) * - - 32
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT + COUNT( DISTINCT - 38 ) - 79 * - 92 AS col1
----
7269

skipif mysql # not compatible
query I rowsort label-1999
SELECT + COUNT ( DISTINCT - 38 ) - 79 * - 92 AS col1
----
7269

onlyif mysql # aggregate syntax: 
query II rowsort label-2000
SELECT ALL COUNT( * ), + COUNT( DISTINCT - + 45 ) + + COUNT( * ) + + + 35 AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-2000
SELECT ALL COUNT ( * ), + COUNT ( DISTINCT - + 45 ) + + COUNT ( * ) + + + 35 AS col0
----
1
37

query I rowsort
SELECT ALL - 11 * + + 62 + 16 AS col0
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - COUNT( * ) * - 36 + - 76 * + 11 + - 77
----
-877

skipif mysql # not compatible
query I rowsort label-2002
SELECT - COUNT ( * ) * - 36 + - 76 * + 11 + - 77
----
-877

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT - 35 * + - SUM( DISTINCT 38 ) * - 20 + + SUM( - 18 ) AS col0, CASE 69 WHEN CASE - + ( - ( + 41 ) ) WHEN 53 THEN - 30 WHEN - - 65 + + 88 THEN NULL END + + 16 THEN - 91 / + ( 29 ) / + 96 ELSE + + COUNT( + 11 ) END
----
-26618
1

skipif mysql # not compatible
query II rowsort label-2003
SELECT - 35 * + - SUM ( DISTINCT 38 ) * - 20 + + SUM ( - 18 ) AS col0, CASE 69 WHEN CASE - + ( - ( + 41 ) ) WHEN 53 THEN - 30 WHEN - - 65 + + 88 THEN NULL END + + 16 THEN - 91 / + ( 29 ) / + 96 ELSE + + COUNT ( + 11 ) END
----
-26618
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT 48 * - 91 * + - 2 * - COUNT( * ) + CAST( + - ( + 71 ) AS SIGNED ) * + 74 col2
----
-13990

skipif mysql # not compatible
query I rowsort label-2004
SELECT 48 * - 91 * + - 2 * - COUNT ( * ) + CAST ( + - ( + 71 ) AS INTEGER ) * + 74 col2
----
-13990

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT SUM( - 16 ) * + 93 + - 82
----
-1570

skipif mysql # not compatible
query I rowsort label-2005
SELECT SUM ( - 16 ) * + 93 + - 82
----
-1570

onlyif mysql # DIV for integer division: 
query II rowsort label-2006
SELECT 79 DIV - 99 col2, 65 * 55 AS col0
----
0
3575

skipif mysql # not compatible
query II rowsort label-2006
SELECT 79 / - 99 col2, 65 * 55 AS col0
----
0
3575

query I rowsort
SELECT ALL 80 + - + 29 AS col1
----
51

query I rowsort
SELECT 89 * + - 99 AS col2
----
-8811

query I rowsort
SELECT + 35 * 24 + 45
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 79 * 41 * - SUM( ALL - 18 ) * - 27
----
-1574154

skipif mysql # not compatible
query I rowsort label-2010
SELECT 79 * 41 * - SUM ( ALL - 18 ) * - 27
----
-1574154

query I rowsort
SELECT ALL + 8 + - 20 * + 94
----
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT 85 + + - COUNT( * ) AS col0, 11 + 37 AS col1
----
84
48

skipif mysql # not compatible
query II rowsort label-2012
SELECT 85 + + - COUNT ( * ) AS col0, 11 + 37 AS col1
----
84
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2013
SELECT 8 * - - SUM( ALL - ( - 11 ) ) + - 37 * 55 * 50 DIV + 20 AS col0
----
-4999

skipif mysql # not compatible
query I rowsort label-2013
SELECT 8 * - - SUM ( ALL - ( - 11 ) ) + - 37 * 55 * 50 / + 20 AS col0
----
-4999

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

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

query II rowsort
SELECT ALL - 47 + 62 AS col2, 69
----
15
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT + - MIN( ALL + - 70 ) + + 59 + - 74
----
55

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + - MIN ( ALL + - 70 ) + + 59 + - 74
----
55

query II rowsort
SELECT + + 87 + 97 AS col0, 20 + - 46 + 42 * - 45 * - + 34 AS col0
----
184
64234

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT COUNT( ALL - - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-2018
SELECT COUNT ( ALL - - 32 )
----
1

query I rowsort
SELECT + - 12 + 82 + - - 52 * + 34
----
1838

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL - ( COUNT( ALL - - 85 ) ) - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - ( COUNT ( ALL - - 85 ) ) - + 30
----
-31

query I rowsort
SELECT - - 1 * - 59 AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL - CASE - COUNT( * ) WHEN - CAST( 38 AS SIGNED ) THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - CASE - COUNT ( * ) WHEN - CAST ( 38 AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT - + COUNT( * ) + - 21 AS col2, 64 * 56 AS col1
----
-22
3584

skipif mysql # not compatible
query II rowsort label-2023
SELECT - + COUNT ( * ) + - 21 AS col2, 64 * 56 AS col1
----
-22
3584

query I rowsort
SELECT ALL 9 * 97 * - ( + + 89 ) col1
----
-77697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT ALL - + 51 - + + 54 * NULLIF ( - 38, + - COALESCE ( + CAST( NULL AS SIGNED ), - + 22 + - 54 ) ) + + - 33
----
1968

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - + 51 - + + 54 * NULLIF ( - 38, + - COALESCE ( + CAST ( NULL AS INTEGER ), - + 22 + - 54 ) ) + + - 33
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + 93 * NULLIF ( - 36, 80 * - 32 - COUNT( * ) ) col0
----
-3348

skipif mysql # not compatible
query I rowsort label-2026
SELECT + 93 * NULLIF ( - 36, 80 * - 32 - COUNT ( * ) ) col0
----
-3348

query I rowsort
SELECT DISTINCT - 13 * - 23
----
299

query I rowsort
SELECT + - 10 + - - 58 AS col1
----
48

query I rowsort
SELECT + + 36 + - 36 + + 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL COALESCE ( - NULLIF ( COUNT( ALL - + 87 ), 41 ), + 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL COALESCE ( - NULLIF ( COUNT ( ALL - + 87 ), 41 ), + 14 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT + 22 + + ( + - 81 ) + - 51 + + 2 - + - 50 - - + 95 * - CAST( NULL AS SIGNED ) / + 74 + + NULLIF ( - + 66, - 68 * 43 * + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT + 22 + + ( + - 81 ) + - 51 + + 2 - + - 50 - - + 95 * - CAST ( NULL AS INTEGER ) / + 74 + + NULLIF ( - + 66, - 68 * 43 * + 98 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2032
SELECT + CAST( NULL AS DECIMAL ) * + 30 + NULLIF ( + 63, - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT + CAST ( NULL AS REAL ) * + 30 + NULLIF ( + 63, - 98 )
----
NULL

query I rowsort
SELECT ALL 38 * - 31 + + - 87 - - - 76
----
-1341

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT ALL + 9 AS col0, - MAX( - 77 )
----
9
77

skipif mysql # not compatible
query II rowsort label-2034
SELECT ALL + 9 AS col0, - MAX ( - 77 )
----
9
77

query I rowsort
SELECT ALL + 55 * 84 + + + 94 AS col1
----
4714

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

skipif mysql # not compatible
query I rowsort label-2036
SELECT + SUM ( + - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT + 44 + + ( - 12 ) * + - COUNT( + 65 )
----
56

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 44 + + ( - 12 ) * + - COUNT ( + 65 )
----
56

query I rowsort
SELECT - 3 * - 41 * + 21 AS col1
----
2583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT CASE AVG ( - CAST( NULL AS SIGNED ) ) WHEN - MIN( + 31 ) + + 47 * - 15 + 82 THEN 80 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT CASE AVG ( - CAST ( NULL AS INTEGER ) ) WHEN - MIN ( + 31 ) + + 47 * - 15 + 82 THEN 80 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT 12 * - CAST( NULL AS SIGNED ) + + - 76 AS col0, - 73 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-2040
SELECT 12 * - CAST ( NULL AS INTEGER ) + + - 76 AS col0, - 73 AS col1
----
NULL
-73

query I rowsort
SELECT + 32 * 71
----
2272

query I rowsort
SELECT DISTINCT 38 * 60 AS col0
----
2280

query II rowsort
SELECT ALL + 24 AS col2, - 44 AS col1
----
24
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT ALL - NULLIF ( + - 82, + - COUNT( * ) ) DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - NULLIF ( + - 82, + - COUNT ( * ) ) / + 54
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2045
SELECT + 85 DIV + ( CAST( + - 85 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2045
SELECT + 85 / + ( CAST ( + - 85 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL ( - - 14 ) * - ( - 19 ) - + + 49 + + + 50 * NULLIF ( 99, + + COUNT( * ) ) * 29 * + ( - ( 96 ) ) + MIN( - - 94 ) AS col1
----
-13780489

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL ( - - 14 ) * - ( - 19 ) - + + 49 + + + 50 * NULLIF ( 99, + + COUNT ( * ) ) * 29 * + ( - ( 96 ) ) + MIN ( - - 94 ) AS col1
----
-13780489

query I rowsort
SELECT DISTINCT - 31 * + 96 AS col0
----
-2976

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2049
SELECT - 63 AS col2, - 8 + CAST( 84 AS SIGNED ) + + + 88 + - 54
----
-63
110

skipif mysql # not compatible
query II rowsort label-2049
SELECT - 63 AS col2, - 8 + CAST ( 84 AS INTEGER ) + + + 88 + - 54
----
-63
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT - + 91 DIV - 31
----
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT - + 91 / - 31
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT DISTINCT - MIN( DISTINCT + 28 ) * + 81, ( - 85 ) AS col0
----
-2268
-85

skipif mysql # not compatible
query II rowsort label-2051
SELECT DISTINCT - MIN ( DISTINCT + 28 ) * + 81, ( - 85 ) AS col0
----
-2268
-85

query II rowsort
SELECT DISTINCT 42 AS col1, + 44 + 6 AS col1
----
42
50

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

query I rowsort
SELECT DISTINCT - - 74 * 83 + - + 23
----
6119

query I rowsort
SELECT DISTINCT - 17 * 63 + - ( + 29 ) + - 70 + 7 * - 33
----
-1401

query I rowsort
SELECT + + 95 + 3 AS col2
----
98

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

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

query I rowsort
SELECT - - 20 + - 89 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT - 32 AS col0, 81 * - - 38 - - COUNT( DISTINCT ( - - 64 ) ) * 88
----
-32
3166

skipif mysql # not compatible
query II rowsort label-2059
SELECT - 32 AS col0, 81 * - - 38 - - COUNT ( DISTINCT ( - - 64 ) ) * 88
----
-32
3166

query I rowsort
SELECT - + 45 + 68 AS col2
----
23

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

skipif mysql # not compatible
query I rowsort label-2061
SELECT - MIN ( - + 94 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT - 57 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 57 / 95 AS col1
----
0

query I rowsort
SELECT + 27 * 19 AS col0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL + NULLIF ( + 64, + CASE - 58 WHEN - + COUNT( * ) THEN - - 47 WHEN + - COALESCE ( - + 68, - 48 + + SUM( - + 70 ) + - 67 ) THEN NULL WHEN - + 2 THEN NULL ELSE NULL END / - 52 + - 10 + - + 0 )
----
64

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + NULLIF ( + 64, + CASE - 58 WHEN - + COUNT ( * ) THEN - - 47 WHEN + - COALESCE ( - + 68, - 48 + + SUM ( - + 70 ) + - 67 ) THEN NULL WHEN - + 2 THEN NULL ELSE NULL END / - 52 + - 10 + - + 0 )
----
64

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

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT MIN ( - 24 )
----
-24

query I rowsort
SELECT ALL 93 * - 81
----
-7533

query I rowsort
SELECT ALL ( - - 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2068
SELECT DISTINCT - 98 * - 95, 85 + 19 + 96 DIV - - ( + ( + COUNT( * ) ) ) + 37 AS col2
----
9310
237

skipif mysql # not compatible
query II rowsort label-2068
SELECT DISTINCT - 98 * - 95, 85 + 19 + 96 / - - ( + ( + COUNT ( * ) ) ) + 37 AS col2
----
9310
237

query I rowsort
SELECT ALL + 80 * + - 39
----
-3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT 89 * + COALESCE ( ( 93 ), 29 * MAX( + - 8 ) ) + - MIN( DISTINCT 57 ) DIV + 91
----
8277

skipif mysql # not compatible
query I rowsort label-2070
SELECT 89 * + COALESCE ( ( 93 ), 29 * MAX ( + - 8 ) ) + - MIN ( DISTINCT 57 ) / + 91
----
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT DISTINCT ( + + 4 ) DIV - - 91 * 32 + + 66 + 90 * + 86
----
7806

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT ( + + 4 ) / - - 91 * 32 + + 66 + 90 * + 86
----
7806

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT + COALESCE ( ( + 19 ), - 54 * + COALESCE ( - CAST( NULL AS SIGNED ), MIN( + + 80 ) * - 19 DIV - - 33 + NULLIF ( - 18, 94 * - 91 ), 44 ) + 35 + 8 DIV + 17, - 42 )
----
19

skipif mysql # not compatible
query I rowsort label-2073
SELECT + COALESCE ( ( + 19 ), - 54 * + COALESCE ( - CAST ( NULL AS INTEGER ), MIN ( + + 80 ) * - 19 / - - 33 + NULLIF ( - 18, 94 * - 91 ), 44 ) + 35 + 8 / + 17, - 42 )
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2074
SELECT DISTINCT 58 DIV - + CAST( + 2 AS SIGNED ) + - + 60 AS col2, - 15 AS col0
----
-89
-15

skipif mysql # not compatible
query II rowsort label-2074
SELECT DISTINCT 58 / - + CAST ( + 2 AS INTEGER ) + - + 60 AS col2, - 15 AS col0
----
-89
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT DISTINCT - 2 DIV 31 * - - 84 + + 96 AS col2, 42 AS col2
----
96
42

skipif mysql # not compatible
query II rowsort label-2075
SELECT DISTINCT - 2 / 31 * - - 84 + + 96 AS col2, 42 AS col2
----
96
42

query I rowsort
SELECT DISTINCT 85 * - 82
----
-6970

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2077
SELECT - CAST( NULL AS DECIMAL ) + - + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT - CAST ( NULL AS REAL ) + - + 66 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT - 1 * + 58 - - 19 + + 91 DIV 31
----
-37

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 1 * + 58 - - 19 + + 91 / 31
----
-37

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

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

query I rowsort
SELECT 4 + + CASE 54 WHEN + 29 THEN + 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT 51 + - - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2081
SELECT 51 + - - COUNT ( * ) AS col1
----
52

query I rowsort
SELECT - NULLIF ( 39, - 64 ) * + 85 * - + 65 AS col0
----
215475

query I rowsort
SELECT ALL 99 * + 32 AS col0
----
3168

query I rowsort
SELECT ALL - 79 - + 7 * 59 + 16 col0
----
-476

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT 43 + - - CAST( NULL AS DECIMAL ) + + 85 * - - ( + - ( + 71 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT 43 + - - CAST ( NULL AS REAL ) + + 85 * - - ( + - ( + 71 ) )
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + - ( + - ( + 60 ) ), 32 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + 66 + NULLIF ( 30, - 86 / 27 ) + + + 20 * - + CASE 22 WHEN - + 17 * - - 93 + - ( + - 93 ) THEN + ( - + 18 ) WHEN COUNT( * ) * + 55 THEN NULL WHEN + SUM( + - 79 ) * - 78 / - 36 THEN 54 * - 29 - - - 9 * COALESCE ( 18, + 80 ) * - ( 69 ) END * + 1 + ( + 35 ) + 39 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 66 + NULLIF ( 30, - 86 / 27 ) + + + 20 * - + CASE 22 WHEN - + 17 * - - 93 + - ( + - 93 ) THEN + ( - + 18 ) WHEN COUNT ( * ) * + 55 THEN NULL WHEN + SUM ( + - 79 ) * - 78 / - 36 THEN 54 * - 29 - - - 9 * COALESCE ( 18, + 80 ) * - ( 69 ) END * + 1 + ( + 35 ) + 39 * 34
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL COUNT ( * ) / 99 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL SUM( + 97 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL SUM ( + 97 ) col2
----
97

query II rowsort
SELECT 54 * 79 AS col2, - 36 * 67 col1
----
4266
-2412

query I rowsort
SELECT + 32 * - NULLIF ( + 98, 56 )
----
-3136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT + 92 * 31 + - + 16 DIV - - 6 - + 4 * - 11 + + COUNT( * ) AS col1, 34 + + - COALESCE ( 50, MIN( ALL - - 10 ) DIV - ( + 89 ), + - 6 ) - 89 * + MAX( - ( + 42 ) )
----
2895
3722

skipif mysql # not compatible
query II rowsort label-2092
SELECT + 92 * 31 + - + 16 / - - 6 - + 4 * - 11 + + COUNT ( * ) AS col1, 34 + + - COALESCE ( 50, MIN ( ALL - - 10 ) / - ( + 89 ), + - 6 ) - 89 * + MAX ( - ( + 42 ) )
----
2895
3722

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL + COUNT( ALL + - ( - + 68 ) ) * - 49 * ( - + 50 ) * + 90 + - + COUNT( * )
----
220499

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + COUNT ( ALL + - ( - + 68 ) ) * - 49 * ( - + 50 ) * + 90 + - + COUNT ( * )
----
220499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT COUNT( * ) DIV 8 + - - 81 AS col1
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT + 61 + COUNT( * ) + NULLIF ( + + 32, + 44 / - - 70 * - - 22 + + 7 ) - - 32 * - 47 AS col1
----
-1410

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT + 61 + COUNT ( * ) + NULLIF ( + + 32, + 44 / - - 70 * - - 22 + + 7 ) - - 32 * - 47 AS col1
----
-1410

query I rowsort
SELECT ALL - 39 + 21 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT - 93 AS col2, - MIN( DISTINCT + 95 ) * - - 69 AS col2
----
-93
-6555

skipif mysql # not compatible
query II rowsort label-2097
SELECT - 93 AS col2, - MIN ( DISTINCT + 95 ) * - - 69 AS col2
----
-93
-6555

query II rowsort
SELECT 24 AS col2, 34 col1
----
24
34

query I rowsort
SELECT 99 * 93 AS col2
----
9207

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL 80 + + MIN( - + 13 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL 80 + + MIN ( - + 13 ) AS col0
----
67

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

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

query I rowsort
SELECT ALL + 49 * + 12
----
588

query I rowsort
SELECT 49 * + - 54 + + + 8
----
-2638

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT 8 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT 8 / 49 AS col0
----
0

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

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

query I rowsort
SELECT ALL - 86 * 62
----
-5332

query II rowsort
SELECT + 28 AS col0, + 97 AS col2
----
28
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - 35 * + 14 + - COUNT( * ) - 28 * + 77 * + 64 AS col1
----
-138475

skipif mysql # not compatible
query I rowsort label-2109
SELECT - 35 * + 14 + - COUNT ( * ) - 28 * + 77 * + 64 AS col1
----
-138475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL - CAST( - 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - CAST ( - 4 AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - COUNT( ALL - - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - COUNT ( ALL - - 90 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT - MIN( ALL 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - MIN ( ALL 38 ) col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT ALL - CAST( - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - CAST ( - 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL - SUM( DISTINCT + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - SUM ( DISTINCT + 71 ) AS col1
----
-71

query I rowsort
SELECT ALL 83 * 99 AS col1
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT 19 - MIN( 51 + 25 * + 27 )
----
-707

skipif mysql # not compatible
query I rowsort label-2116
SELECT 19 - MIN ( 51 + 25 * + 27 )
----
-707

query I rowsort
SELECT 29 * 32 AS col1
----
928

query I rowsort
SELECT DISTINCT 82 * - 60
----
-4920

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

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

query I rowsort
SELECT DISTINCT - CASE + 61 WHEN 62 THEN NULL WHEN - 19 - 86 THEN - 86 + 28 * ( + 75 / - 21 ) END + - 29 AS col0
----
NULL

query I rowsort
SELECT ALL 76 + 43 AS col1
----
119

query I rowsort
SELECT ALL 88 + 75 * ( 84 )
----
6388

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ( MAX( - 14 ) ) * + 86 AS col0
----
-1204

skipif mysql # not compatible
query I rowsort label-2123
SELECT ( MAX ( - 14 ) ) * + 86 AS col0
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT MAX( DISTINCT 36 ) * 50
----
1800

skipif mysql # not compatible
query I rowsort label-2124
SELECT MAX ( DISTINCT 36 ) * 50
----
1800

query I rowsort
SELECT 54 + 69 * 96
----
6678

query I rowsort
SELECT ALL 16 + - 89 AS col1
----
-73

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

query I rowsort
SELECT 99 - 2 AS col2
----
97

query I rowsort
SELECT 8 * 51 AS col2
----
408

query I rowsort
SELECT ALL 10 + - ( + 1 ) * 77
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT CASE 22 WHEN - 54 THEN NULL WHEN 16 + CASE 51 WHEN - ( + 88 ) THEN - 32 WHEN 74 THEN 18 * 78 ELSE NULL END * COUNT( - 26 ) THEN - ( 17 ) * + 91 ELSE NULL END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT CASE 22 WHEN - 54 THEN NULL WHEN 16 + CASE 51 WHEN - ( + 88 ) THEN - 32 WHEN 74 THEN 18 * 78 ELSE NULL END * COUNT ( - 26 ) THEN - ( 17 ) * + 91 ELSE NULL END * - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL 80 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL 80 / - 29
----
-2

query I rowsort
SELECT DISTINCT 39 - 88
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL 74 * + CAST( + COUNT( ALL - 75 ) AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 74 * + CAST ( + COUNT ( ALL - 75 ) AS INTEGER ) AS col1
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT COUNT( * ) * + MAX( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT COUNT ( * ) * + MAX ( 73 ) AS col2
----
73

query I rowsort
SELECT 85 + 64 * 63
----
4117

query I rowsort
SELECT ( 1 ) * + 62 col2
----
62

query I rowsort
SELECT 24 * 8 AS col2
----
192

query I rowsort
SELECT + COALESCE ( - 56, - 24 * + 76 ) AS col1
----
-56

query I rowsort
SELECT - 14 + - 5
----
-19

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

skipif mysql # not compatible
query I rowsort label-2142
SELECT NULLIF ( - 37, - 76 + COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - ( 80 ) * + 56 + + CASE 87 + 34 WHEN NULLIF ( SUM( DISTINCT - 38 ), - 22 + + 34 ) THEN NULL WHEN 23 * + 8 + ( - 3 + - ( 81 ) ) * - 79 THEN + ( 82 ) + ( 31 ) * - 38 ELSE + COUNT( * ) END * - 0 AS col2
----
-4480

skipif mysql # not compatible
query I rowsort label-2143
SELECT - ( 80 ) * + 56 + + CASE 87 + 34 WHEN NULLIF ( SUM ( DISTINCT - 38 ), - 22 + + 34 ) THEN NULL WHEN 23 * + 8 + ( - 3 + - ( 81 ) ) * - 79 THEN + ( 82 ) + ( 31 ) * - 38 ELSE + COUNT ( * ) END * - 0 AS col2
----
-4480

query I rowsort
SELECT - 2 * + 85
----
-170

query I rowsort
SELECT - 93 * + 76 - 3
----
-7071

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

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

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

skipif mysql # not compatible
query I rowsort label-2147
SELECT COUNT ( * ) / - 43 + - 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT MAX( ALL + ( - CAST( - 26 AS SIGNED ) ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2148
SELECT MAX ( ALL + ( - CAST ( - 26 AS INTEGER ) ) ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2149
SELECT ALL + CAST( - 27 AS SIGNED ) DIV + 13
----
-2

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + CAST ( - 27 AS INTEGER ) / + 13
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - COALESCE ( + 85, 42, + 7 ) * SUM( 63 ) AS col0
----
-5355

skipif mysql # not compatible
query I rowsort label-2150
SELECT - COALESCE ( + 85, 42, + 7 ) * SUM ( 63 ) AS col0
----
-5355

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL + + COUNT( DISTINCT 94 ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + + COUNT ( DISTINCT 94 ) * 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT + COALESCE ( + 96, 9 + - 0 * - 91 ) * - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + COALESCE ( + 96, 9 + - 0 * - 91 ) * - COUNT ( * ) AS col0
----
-96

query I rowsort
SELECT ALL + 36 * + 88 + - 6
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT 82 * + NULLIF ( + 78, - 34 * + 34 ) + COUNT( * ) * 0
----
6396

skipif mysql # not compatible
query I rowsort label-2154
SELECT 82 * + NULLIF ( + 78, - 34 * + 34 ) + COUNT ( * ) * 0
----
6396

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

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

query I rowsort
SELECT 2 * 35 - + 76
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - MIN( ALL 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-2157
SELECT - MIN ( ALL 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + + MIN( + 27 ) * ( 15 * 9 ) + - 47 AS col0
----
3598

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + + MIN ( + 27 ) * ( 15 * 9 ) + - 47 AS col0
----
3598

query I rowsort
SELECT ALL + 35 * - 69 + 77 * 34 AS col0
----
203

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT + 21 * - NULLIF ( - 29 DIV + 26, + 38 ) + 8
----
29

skipif mysql # not compatible
query I rowsort label-2160
SELECT + 21 * - NULLIF ( - 29 / + 26, + 38 ) + 8
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT ALL + 21 * COUNT( * ) + COALESCE ( NULLIF ( - 50, - 46 - + 68 ), 99 + + COUNT( * ) DIV - 36 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + 21 * COUNT ( * ) + COALESCE ( NULLIF ( - 50, - 46 - + 68 ), 99 + + COUNT ( * ) / - 36 ) AS col0
----
-29

query I rowsort
SELECT DISTINCT 87 * 76 + + 10 AS col1
----
6622

query I rowsort
SELECT + 64 + - 45 AS col2
----
19

query I rowsort
SELECT ALL + + 37 + + 32
----
69

query I rowsort
SELECT - 3 * 25
----
-75

query I rowsort
SELECT + 73 * 14 AS col1
----
1022

query I rowsort
SELECT - ( + 1 ) col0
----
-1

query I rowsort
SELECT - ( 77 ) col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT DISTINCT NULLIF ( + CAST( 2 AS SIGNED ), ( + 40 ) ) * 33 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT NULLIF ( + CAST ( 2 AS INTEGER ), ( + 40 ) ) * 33 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT + 76 - - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT + 68 DIV + - 81 * - 5
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 68 / + - 81 * - 5
----
0

query I rowsort
SELECT ALL 74 - + 59
----
15

query I rowsort
SELECT + 86 * - - 64 * 70 AS col0
----
385280

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT + 33 - - + MAX( 14 )
----
47

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 33 - - + MAX ( 14 )
----
47

query I rowsort
SELECT + 50 * + 86
----
4300

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT 62 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT 62 / 23
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT + 2 DIV + 71 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 2 / + 71 * - 70
----
0

query I rowsort
SELECT ALL 14 * - 29 AS col2
----
-406

query I rowsort
SELECT - ( CASE - 1 WHEN - 52 + + 77 / + 85 THEN NULL WHEN - ( 80 ) THEN - 17 END ) AS col2
----
NULL

query I rowsort
SELECT + 96 + - - 61 + - 50 AS col0
----
107

query I rowsort
SELECT DISTINCT ( + 62 ) * 21 AS col2
----
1302

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

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + COUNT ( * ) / + + ( COUNT ( * ) ) + 18 * 95 AS col2
----
1711

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ( MAX( - 33 ) ) * 64 + + 77 * 48
----
1584

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( MAX ( - 33 ) ) * 64 + + 77 * 48
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - NULLIF ( 12, 71 * COUNT( ALL + 52 * - 67 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2185
SELECT - NULLIF ( 12, 71 * COUNT ( ALL + 52 * - 67 ) ) AS col1
----
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT 52 DIV + COUNT( * ) + - 24 DIV 89 + 29 * - 50 col1
----
-1398

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT 52 / + COUNT ( * ) + - 24 / 89 + 29 * - 50 col1
----
-1398

query I rowsort
SELECT + + ( - 61 ) * 90
----
-5490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT 56 * + COUNT( * ) + 45 DIV MAX( - 55 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2189
SELECT 56 * + COUNT ( * ) + 45 / MAX ( - 55 ) AS col0
----
56

query I rowsort
SELECT DISTINCT + - NULLIF ( 21, + 18 * 20 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - COUNT( * ) * + NULLIF ( MAX( ALL NULLIF ( + 36, 24 ) ), COUNT( ALL - 21 ) + 10 )
----
-36

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COUNT ( * ) * + NULLIF ( MAX ( ALL NULLIF ( + 36, 24 ) ), COUNT ( ALL - 21 ) + 10 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT - + CASE + MIN( 16 ) WHEN + 10 * 77 THEN NULL WHEN + 47 + - COUNT( * ) THEN NULL WHEN + 89 THEN + 62 ELSE 65 * - 28 + + 61 * 76 END * 2 AS col1
----
-5632

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - + CASE + MIN ( 16 ) WHEN + 10 * 77 THEN NULL WHEN + 47 + - COUNT ( * ) THEN NULL WHEN + 89 THEN + 62 ELSE 65 * - 28 + + 61 * 76 END * 2 AS col1
----
-5632

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT DISTINCT - + 48 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - + 48 / - 69
----
0

query I rowsort
SELECT ALL - 40 * + 14 col2
----
-560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2195
SELECT + + ( - - NULLIF ( + ( - 90 ), + 90 ) ) - - COALESCE ( CAST( - 83 AS SIGNED ), 22, + 44 DIV + 19 ) AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-2195
SELECT + + ( - - NULLIF ( + ( - 90 ), + 90 ) ) - - COALESCE ( CAST ( - 83 AS INTEGER ), 22, + 44 / + 19 ) AS col0
----
-173

query I rowsort
SELECT - + 29 * - 72
----
2088

query I rowsort
SELECT ALL - + 72 * - 87 * - 67 col0
----
-419688

query I rowsort
SELECT + CASE + 95 WHEN 56 * 19 THEN + 66 + + 61 WHEN 50 + COALESCE ( 95, 19 ) THEN - 44 END
----
NULL

query I rowsort
SELECT - 24 * + + 91 AS col2
----
-2184

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT - CASE - 50 WHEN + COALESCE ( + 49, 27 ) - - 62 THEN COUNT( * ) + 26 ELSE - 88 END - + 6 DIV 43
----
88

skipif mysql # not compatible
query I rowsort label-2201
SELECT - CASE - 50 WHEN + COALESCE ( + 49, 27 ) - - 62 THEN COUNT ( * ) + 26 ELSE - 88 END - + 6 / 43
----
88

query I rowsort
SELECT - 62 * + 26 AS col1
----
-1612

query I rowsort
SELECT 88 + - - 67
----
155

query II rowsort
SELECT 26 AS col1, + ( + 73 ) + 51
----
26
124

query I rowsort
SELECT 98 + + - 20 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 33 - + MAX( DISTINCT + 77 )
----
-44

skipif mysql # not compatible
query I rowsort label-2206
SELECT 33 - + MAX ( DISTINCT + 77 )
----
-44

query I rowsort
SELECT ALL - 27 * + 84
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT 4 * ( - COUNT( * ) ) * - 7
----
28

skipif mysql # not compatible
query I rowsort label-2208
SELECT 4 * ( - COUNT ( * ) ) * - 7
----
28

query I rowsort
SELECT 40 * 29 AS col0
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT 38 * + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 38 * + COUNT ( * ) AS col2
----
38

query II rowsort
SELECT ALL 70 AS col1, + 91 AS col1
----
70
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL 73 * 54 DIV 91
----
43

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 73 * 54 / 91
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT 23 + + 22 * COUNT( * ) * ( 6 )
----
155

skipif mysql # not compatible
query I rowsort label-2213
SELECT 23 + + 22 * COUNT ( * ) * ( 6 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL - NULLIF ( + 73, + + COALESCE ( - CASE + 61 WHEN 96 THEN - COUNT( * ) WHEN 8 * + 42 THEN 28 END, - 70, - 60 + 98 ) ) * - 5 col1
----
365

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - NULLIF ( + 73, + + COALESCE ( - CASE + 61 WHEN 96 THEN - COUNT ( * ) WHEN 8 * + 42 THEN 28 END, - 70, - 60 + 98 ) ) * - 5 col1
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT COALESCE ( + 20, 82 * + COUNT( * ) ) + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2215
SELECT COALESCE ( + 20, 82 * + COUNT ( * ) ) + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - 10 * - COUNT( * ) * COUNT( * ) * 78
----
780

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - 10 * - COUNT ( * ) * COUNT ( * ) * 78
----
780

query I rowsort
SELECT ALL + ( + 93 ) + - - 92
----
185

query I rowsort
SELECT ALL 37 + + 93 + 99
----
229

query I rowsort
SELECT 19 + - 76 * + + 1 AS col0
----
-57

query II rowsort
SELECT 45 AS col0, + 99 + + + 25 AS col2
----
45
124

query I rowsort
SELECT 13 * - - 4 col2
----
52

query I rowsort
SELECT 56 + + 53 + - - 21
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT + 38 + ( + ( 16 ) ) + + 78 DIV + 80
----
54

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + 38 + ( + ( 16 ) ) + + 78 / + 80
----
54

query I rowsort
SELECT ALL 9 + - 24 + - 93
----
-108

query I rowsort
SELECT ALL 22 + 6 AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT 99 * COUNT( * ) DIV - COUNT( DISTINCT + 50 ) - 42 - 71 col2
----
-212

skipif mysql # not compatible
query I rowsort label-2226
SELECT 99 * COUNT ( * ) / - COUNT ( DISTINCT + 50 ) - 42 - 71 col2
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT - MAX( - 22 ) + + COUNT( * ) * 29 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - MAX ( - 22 ) + + COUNT ( * ) * 29 AS col1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL - SUM( + 18 ) * + COUNT( * ) * + 60 AS col0
----
-1080

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - SUM ( + 18 ) * + COUNT ( * ) * + 60 AS col0
----
-1080

query I rowsort
SELECT ALL - NULLIF ( + 73, 71 ) + 7
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT + CASE - COALESCE ( 16, + 74 * + 96 ) WHEN 84 + - CAST( + 20 + 4 AS SIGNED ) THEN + ( - 8 ) + 14 * 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT + CASE - COALESCE ( 16, + 74 * + 96 ) WHEN 84 + - CAST ( + 20 + 4 AS INTEGER ) THEN + ( - 8 ) + 14 * 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + NULLIF ( + COUNT( * ), - 7 ) * - 76 + 67 * - 70
----
-4766

skipif mysql # not compatible
query I rowsort label-2232
SELECT + NULLIF ( + COUNT ( * ), - 7 ) * - 76 + 67 * - 70
----
-4766

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2233
SELECT + - 83 * - 15 * - CAST( NULL AS SIGNED ) + - 88 - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT + - 83 * - 15 * - CAST ( NULL AS INTEGER ) + - 88 - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - + 16 col2
----
-16

query I rowsort
SELECT 82 + + - 79 + - 47
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - COUNT( * ) + - + 34 + + 83 + 81 * 44 AS col1
----
3612

skipif mysql # not compatible
query I rowsort label-2236
SELECT - COUNT ( * ) + - + 34 + + 83 + 81 * 44 AS col1
----
3612

query I rowsort
SELECT 84 * 27 + ( 94 ) + 50 * - 53
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT ALL - 74 col1, MAX( - - 40 ) col2
----
-74
40

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL - 74 col1, MAX ( - - 40 ) col2
----
-74
40

query I rowsort
SELECT + 51 * + 85 * - + 10 + + 44 AS col1
----
-43306

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - COUNT( * ) * - 22 * 78
----
1716

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - COUNT ( * ) * - 22 * 78
----
1716

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT 8 + + 83, ( 88 ) + + COALESCE ( COUNT( * ), + 52, + 93 * MAX( 2 ) ) AS col0
----
91
89

skipif mysql # not compatible
query II rowsort label-2241
SELECT 8 + + 83, ( 88 ) + + COALESCE ( COUNT ( * ), + 52, + 93 * MAX ( 2 ) ) AS col0
----
91
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL 51 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL 51 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT - NULLIF ( 56, + MAX( ALL 68 ) * + 94 + - 74 * SUM( + NULLIF ( 20, + 88 ) ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - NULLIF ( 56, + MAX ( ALL 68 ) * + 94 + - 74 * SUM ( + NULLIF ( 20, + 88 ) ) )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT DISTINCT + NULLIF ( 27, - 50 ) * COALESCE ( + 21, + 98 + 98 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + NULLIF ( 27, - 50 ) * COALESCE ( + 21, + 98 + 98 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 4 * - - ( - 0 )
----
0

query I rowsort
SELECT 33 + - 44
----
-11

query I rowsort
SELECT 43 + + 90 * - 4 + 61 AS col0
----
-256

query I rowsort
SELECT ALL 9 * + + 20 col0
----
180

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

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

query I rowsort
SELECT DISTINCT - 41 + - 39
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT + 87 + 7 + + + 72 / - CASE COUNT( * ) WHEN - 13 - 83 * 42 THEN 58 * + 91 - + 80 * 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + 87 + 7 + + + 72 / - CASE COUNT ( * ) WHEN - 13 - 83 * 42 THEN 58 * + 91 - + 80 * 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT 39 * + COUNT( + 95 ) * + + 78 + - 77 * 44 col1
----
-346

skipif mysql # not compatible
query I rowsort label-2252
SELECT 39 * + COUNT ( + 95 ) * + + 78 + - 77 * 44 col1
----
-346

query I rowsort
SELECT DISTINCT - ( + - 88 ) + + 71 AS col0
----
159

query I rowsort
SELECT 23 - - + 88
----
111

query I rowsort
SELECT 64 + + 11 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT - CAST( - + 44 AS SIGNED ) * + + 9
----
396

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - CAST ( - + 44 AS INTEGER ) * + + 9
----
396

query I rowsort
SELECT ALL 97 + + 77 AS col1
----
174

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

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

query I rowsort
SELECT ( 17 ) + 16 * + - 49 * 12 + - 77
----
-9468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT DISTINCT COALESCE ( + CAST( 40 AS SIGNED ), + 37 )
----
40

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT COALESCE ( + CAST ( 40 AS INTEGER ), + 37 )
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL + 73 * 67 * NULLIF ( - SUM( 34 ), + ( + 79 ) ) col0
----
-166294

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 73 * 67 * NULLIF ( - SUM ( 34 ), + ( + 79 ) ) col0
----
-166294

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + COALESCE ( + SUM( + + 15 ), - 84, MAX( 71 ) )
----
15

skipif mysql # not compatible
query I rowsort label-2263
SELECT + COALESCE ( + SUM ( + + 15 ), - 84, MAX ( 71 ) )
----
15

query I rowsort
SELECT 58 + + 55
----
113

query I rowsort
SELECT DISTINCT - - 95 col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT DISTINCT + 91 DIV + - NULLIF ( + - COUNT( * ), COALESCE ( - 99, + 58 ) - + 6 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + 91 / + - NULLIF ( + - COUNT ( * ), COALESCE ( - 99, + 58 ) - + 6 ) col0
----
91

query I rowsort
SELECT + COALESCE ( - - 14, - 17 + 62 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT 99 * - COUNT( * ) / - + CASE - 20 WHEN 94 THEN ( + AVG ( - 73 ) ) ELSE NULL END * 66 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT 99 * - COUNT ( * ) / - + CASE - 20 WHEN 94 THEN ( + AVG ( - 73 ) ) ELSE NULL END * 66 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 52 + 98 THEN NULL WHEN + 65 THEN + 32 + 73 * - 75 END / + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 52 + 98 THEN NULL WHEN + 65 THEN + 32 + 73 * - 75 END / + 47 AS col0
----
NULL

query II rowsort
SELECT + 22 * + + ( + 86 ) AS col1, 71
----
1892
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + NULLIF ( - 35, + 7 / + 36 * + 62 + COUNT( 16 ) + 91 * 23 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-2271
SELECT + NULLIF ( - 35, + 7 / + 36 * + 62 + COUNT ( 16 ) + 91 * 23 ) col0
----
-35

query I rowsort
SELECT ALL 45 * 24 col1
----
1080

query I rowsort
SELECT + 21 * + 26 + - ( 29 )
----
517

query I rowsort
SELECT + 86 * - - 90 AS col1
----
7740

query I rowsort
SELECT - 92 * - 79 * + - 42 AS col0
----
-305256

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT DISTINCT + 46 AS col1, 33 + - 36 + - COUNT( * )
----
46
-4

skipif mysql # not compatible
query II rowsort label-2276
SELECT DISTINCT + 46 AS col1, 33 + - 36 + - COUNT ( * )
----
46
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL 68 + + 24 + + 53 * + + COALESCE ( 42, - 85 * - 56 + COUNT( * ), + COALESCE ( + 54, + 77 + 0 ) * 94 ) AS col2
----
2318

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 68 + + 24 + + 53 * + + COALESCE ( 42, - 85 * - 56 + COUNT ( * ), + COALESCE ( + 54, + 77 + 0 ) * 94 ) AS col2
----
2318

query I rowsort
SELECT + 80 - - 32 col2
----
112

query I rowsort
SELECT ALL + CASE + 74 WHEN - 57 THEN NULL ELSE + 49 END + - 67 + ( 89 )
----
71

query I rowsort
SELECT + 56 - - 85
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT - 10 + 59 DIV + 83 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - 10 + 59 / + 83 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT + 44 + CAST( + 47 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-2282
SELECT + 44 + CAST ( + 47 AS INTEGER )
----
91

query I rowsort
SELECT - NULLIF ( + - 61, + + 45 ) * + - 50 - + 6 + 48 * 2 AS col1
----
-2960

onlyif mysql # aggregate syntax: 
query II rowsort label-2284
SELECT ALL + MAX( - 72 ) * - 34 AS col0, + ( + + 13 ) - - COALESCE ( - CASE 64 WHEN - 27 + COALESCE ( COUNT( * ), - 80 + 14 ) THEN + COUNT( * ) ELSE NULLIF ( - 44, + MAX( - 70 ) ) * 66 END, 96 * 88 ) * COALESCE ( 22, 88 * COUNT( * ) ) AS col0
----
2448
63901

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL + MAX ( - 72 ) * - 34 AS col0, + ( + + 13 ) - - COALESCE ( - CASE 64 WHEN - 27 + COALESCE ( COUNT ( * ), - 80 + 14 ) THEN + COUNT ( * ) ELSE NULLIF ( - 44, + MAX ( - 70 ) ) * 66 END, 96 * 88 ) * COALESCE ( 22, 88 * COUNT ( * ) ) AS col0
----
2448
63901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT + 96 + CAST( + - ( + - 46 ) AS SIGNED )
----
142

skipif mysql # not compatible
query I rowsort label-2285
SELECT + 96 + CAST ( + - ( + - 46 ) AS INTEGER )
----
142

query I rowsort
SELECT ALL + 38 + + + NULLIF ( - 42, 72 ) - - 34 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT ALL - 69 * + CASE + + 70 WHEN + 86 * + + 55 THEN NULL WHEN + 47 THEN + CAST( + ( COALESCE ( 60, - 65 * 88 ) ) AS SIGNED ) + - COUNT( * ) * + 53 END / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - 69 * + CASE + + 70 WHEN + 86 * + + 55 THEN NULL WHEN + 47 THEN + CAST ( + ( COALESCE ( 60, - 65 * 88 ) ) AS INTEGER ) + - COUNT ( * ) * + 53 END / 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT COUNT( * ) * + 9 * 84 * MAX( DISTINCT 27 )
----
20412

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT COUNT ( * ) * + 9 * 84 * MAX ( DISTINCT 27 )
----
20412

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2290
SELECT + 96, COUNT( * ) + - COALESCE ( - CAST( NULL AS SIGNED ), - 90 ) * CASE - 65 + - 77 WHEN MIN( ALL 28 ) THEN 47 WHEN CASE 50 WHEN 59 * 72 THEN + 57 ELSE NULL END + SUM( DISTINCT CASE 27 WHEN 22 - + ( 5 ) THEN 67 * 34 WHEN 84 THEN NULL WHEN 44 - 21 THEN NULL ELSE 4 * - 32 END + 0 ) THEN NULL ELSE NULL END col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 96, COUNT ( * ) + - COALESCE ( - CAST ( NULL AS INTEGER ), - 90 ) * CASE - 65 + - 77 WHEN MIN ( ALL 28 ) THEN 47 WHEN CASE 50 WHEN 59 * 72 THEN + 57 ELSE NULL END + SUM ( DISTINCT CASE 27 WHEN 22 - + ( 5 ) THEN 67 * 34 WHEN 84 THEN NULL WHEN 44 - 21 THEN NULL ELSE 4 * - 32 END + 0 ) THEN NULL ELSE NULL END col0
----
96
NULL

query I rowsort
SELECT DISTINCT - 77 - 19 AS col1
----
-96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT DISTINCT - - 58 - - MAX( - 30 ) col2, 78 * 4 AS col2
----
28
312

skipif mysql # not compatible
query II rowsort label-2293
SELECT DISTINCT - - 58 - - MAX ( - 30 ) col2, 78 * 4 AS col2
----
28
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT + NULLIF ( + - 64, - COALESCE ( - 67, - CAST( NULL AS SIGNED ), 66 * 8 ) * - NULLIF ( 84, - SUM( ALL - 78 ) ) ) * - CASE 22 + + 28 DIV + 71 WHEN 0 THEN + 88 DIV 54 - + CASE COUNT( * ) + COALESCE ( + 44, - 12 * 38 + - 13 * + 10 ) WHEN COUNT( * ) THEN + NULLIF ( 1, - 73 ) WHEN + 48 THEN NULL END ELSE - 54 END AS col2
----
-3456

skipif mysql # not compatible
query I rowsort label-2294
SELECT + NULLIF ( + - 64, - COALESCE ( - 67, - CAST ( NULL AS INTEGER ), 66 * 8 ) * - NULLIF ( 84, - SUM ( ALL - 78 ) ) ) * - CASE 22 + + 28 / + 71 WHEN 0 THEN + 88 / 54 - + CASE COUNT ( * ) + COALESCE ( + 44, - 12 * 38 + - 13 * + 10 ) WHEN COUNT ( * ) THEN + NULLIF ( 1, - 73 ) WHEN + 48 THEN NULL END ELSE - 54 END AS col2
----
-3456

query I rowsort
SELECT - 40 + + 70
----
30

query I rowsort
SELECT - + 47 + 52 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL - 68 / 2 + + NULLIF ( 22, - + 66 ) + - ( 54 ) * 74 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - 68 / 2 + + NULLIF ( 22, - + 66 ) + - ( 54 ) * 74 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - COALESCE ( - 75, - 87 * - 61 + + COALESCE ( + 28, 56, - 37 ) )
----
75

query I rowsort
SELECT DISTINCT + + 36 * 81
----
2916

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - NULLIF ( - 34, + COUNT( DISTINCT + 45 ) + 85 ) + COALESCE ( + COALESCE ( 7, 49 ) + 0 * 34, - 50, 11 )
----
41

skipif mysql # not compatible
query I rowsort label-2301
SELECT - NULLIF ( - 34, + COUNT ( DISTINCT + 45 ) + 85 ) + COALESCE ( + COALESCE ( 7, 49 ) + 0 * 34, - 50, 11 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT 21 * - 63 + COUNT( * ) + - 46 AS col0
----
-1368

skipif mysql # not compatible
query I rowsort label-2302
SELECT 21 * - 63 + COUNT ( * ) + - 46 AS col0
----
-1368

onlyif mysql # aggregate syntax: 
query II rowsort label-2303
SELECT DISTINCT + + 96, - ( + SUM( - 1 ) ) AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-2303
SELECT DISTINCT + + 96, - ( + SUM ( - 1 ) ) AS col1
----
96
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2304
SELECT + 43 DIV + + 7 + MAX( - 65 ) + - - 57 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 43 / + + 7 + MAX ( - 65 ) + - - 57 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - 55 * - CASE - 38 WHEN 66 * - 83 THEN + - 69 WHEN 19 THEN - 76 WHEN - ( - 31 ) THEN 6 ELSE + 94 END * - 77 - + COUNT( ALL + 50 ) * + 49
----
-398139

skipif mysql # not compatible
query I rowsort label-2305
SELECT - 55 * - CASE - 38 WHEN 66 * - 83 THEN + - 69 WHEN 19 THEN - 76 WHEN - ( - 31 ) THEN 6 ELSE + 94 END * - 77 - + COUNT ( ALL + 50 ) * + 49
----
-398139

onlyif mysql # aggregate syntax: 
query II rowsort label-2306
SELECT - COUNT( * ) + + 29 AS col0, - 70 AS col2
----
28
-70

skipif mysql # not compatible
query II rowsort label-2306
SELECT - COUNT ( * ) + + 29 AS col0, - 70 AS col2
----
28
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 68 * - COUNT( * ) + - - 43 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2307
SELECT 68 * - COUNT ( * ) + - - 43 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT NULLIF ( + 65, + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-2308
SELECT NULLIF ( + 65, + COUNT ( * ) )
----
65

query I rowsort
SELECT + 4 + 70 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL + COUNT( * ) * + + COUNT( - 79 ) + CAST( NULL AS SIGNED ) - - 31 + 12 + + 6 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + COUNT ( * ) * + + COUNT ( - 79 ) + CAST ( NULL AS INTEGER ) - - 31 + 12 + + 6 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL + COUNT( * ) * - 27 + - 52 + + - 81 * - 49 / CASE + SUM( DISTINCT 86 ) WHEN ( + 2 ) THEN 96 + 72 WHEN 14 THEN NULL WHEN 28 THEN - CAST( NULL AS SIGNED ) - + 43 ELSE - 57 / 20 END * - CASE NULLIF ( 41, 98 * 98 ) WHEN + COUNT( * ) THEN 70 * SUM( - 15 ) + + ( + COUNT( * ) ) * 4 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + COUNT ( * ) * - 27 + - 52 + + - 81 * - 49 / CASE + SUM ( DISTINCT 86 ) WHEN ( + 2 ) THEN 96 + 72 WHEN 14 THEN NULL WHEN 28 THEN - CAST ( NULL AS INTEGER ) - + 43 ELSE - 57 / 20 END * - CASE NULLIF ( 41, 98 * 98 ) WHEN + COUNT ( * ) THEN 70 * SUM ( - 15 ) + + ( + COUNT ( * ) ) * 4 END AS col1
----
NULL

query I rowsort
SELECT + 56 + 41 col0
----
97

query I rowsort
SELECT + 32 + - 40 AS col1
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2315
SELECT SUM( - 15 ) AS col1, + 30
----
-15
30

skipif mysql # not compatible
query II rowsort label-2315
SELECT SUM ( - 15 ) AS col1, + 30
----
-15
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - 23 * COUNT( + - 5 ) + - - 2 * - - 61 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - 23 * COUNT ( + - 5 ) + - - 2 * - - 61 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - NULLIF ( + + COUNT( * ), - 16 * COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2317
SELECT - NULLIF ( + + COUNT ( * ), - 16 * COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + 26 + + 75 * 31 * + + 83
----
193001

query II rowsort
SELECT + 96 * - 62 AS col0, 44
----
-5952
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT + 60 * + 47 + 8 + + CAST( NULL AS SIGNED ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT + 60 * + 47 + 8 + + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2
----
NULL

query III rowsort
SELECT - 77 AS col2, - 69 AS col2, - 21 - + - NULLIF ( - 38, 31 * + 72 )
----
-77
-69
-59

query I rowsort
SELECT ALL 84 - + 0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT COUNT( * ) - - 3
----
4

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT COUNT ( * ) - - 3
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT ALL + 17 * + CAST( NULL AS SIGNED ) * 78 / - 32 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 17 * + CAST ( NULL AS INTEGER ) * 78 / - 32 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT - 69 AS col1, - COUNT( * ) * + COALESCE ( - + 85, + + ( 12 ) ) AS col0
----
-69
85

skipif mysql # not compatible
query II rowsort label-2325
SELECT - 69 AS col1, - COUNT ( * ) * + COALESCE ( - + 85, + + ( 12 ) ) AS col0
----
-69
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT CASE 19 WHEN COUNT( * ) * - 59 + - - NULLIF ( - 28, + 60 ) * 44 THEN NULL WHEN + ( - 0 ) THEN ( 14 ) ELSE 57 DIV 58 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT CASE 19 WHEN COUNT ( * ) * - 59 + - - NULLIF ( - 28, + 60 ) * 44 THEN NULL WHEN + ( - 0 ) THEN ( 14 ) ELSE 57 / 58 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT - SUM( + - 95 ) * + 40 AS col1
----
3800

skipif mysql # not compatible
query I rowsort label-2327
SELECT - SUM ( + - 95 ) * + 40 AS col1
----
3800

query I rowsort
SELECT ALL + 57 * + 79
----
4503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2329
SELECT + ( 15 ) - - ( + 46 ) + + + 57 + 17 DIV - 51 DIV COUNT( * ) col2
----
118

skipif mysql # not compatible
query I rowsort label-2329
SELECT + ( 15 ) - - ( + 46 ) + + + 57 + 17 / - 51 / COUNT ( * ) col2
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT - 3, COUNT( * ) * - 3 * 17 + + + 59 * - 74 AS col1
----
-3
-4417

skipif mysql # not compatible
query II rowsort label-2330
SELECT - 3, COUNT ( * ) * - 3 * 17 + + + 59 * - 74 AS col1
----
-3
-4417

query II rowsort
SELECT - 26 AS col1, + CASE + 62 WHEN - 88 * 24 THEN - - 31 + 52 END
----
-26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL - - 63 * COUNT( * ) * + CASE - - 28 WHEN - CAST( + 3 AS SIGNED ) * - 70 THEN NULL WHEN + 35 THEN + CAST( NULL AS SIGNED ) + 26 END * 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - - 63 * COUNT ( * ) * + CASE - - 28 WHEN - CAST ( + 3 AS INTEGER ) * - 70 THEN NULL WHEN + 35 THEN + CAST ( NULL AS INTEGER ) + 26 END * 53 col1
----
NULL

query I rowsort
SELECT + + 2 * + + 70 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - + 96 + + COUNT( * ) + 33 + + - 35 + + - COUNT( * ) * - ( - 42 )
----
-139

skipif mysql # not compatible
query I rowsort label-2334
SELECT - + 96 + + COUNT ( * ) + 33 + + - 35 + + - COUNT ( * ) * - ( - 42 )
----
-139

query II rowsort
SELECT ALL - 46 AS col0, - 13
----
-46
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + - ( - + 26 ) * - MAX( DISTINCT 53 ) AS col0
----
-1378

skipif mysql # not compatible
query I rowsort label-2336
SELECT + - ( - + 26 ) * - MAX ( DISTINCT 53 ) AS col0
----
-1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT DISTINCT + 63 * + + 57 * CAST( + - CASE - 61 WHEN + + 55 * - 2 THEN NULL WHEN 75 * + 21 - 88 THEN - 23 END AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + 63 * + + 57 * CAST ( + - CASE - 61 WHEN + + 55 * - 2 THEN NULL WHEN 75 * + 21 - 88 THEN - 23 END AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT ALL - - 63 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - - 63 / 88
----
0

query I rowsort
SELECT - 88 * - ( - 42 ) * + 7 + 22
----
-25850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2340
SELECT DISTINCT - 25 DIV ( 10 ) + - + 42 * + + 94 + - + 31 + - 47 * + MIN( - 76 DIV - 65 ) AS col2
----
-4028

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - 25 / ( 10 ) + - + 42 * + + 94 + - + 31 + - 47 * + MIN ( - 76 / - 65 ) AS col2
----
-4028

query I rowsort
SELECT - 1 * + 39 col1
----
-39

query I rowsort
SELECT ALL - 80 + 41
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT - 33, - 39 - 90 * + COUNT( * ) AS col2
----
-33
-129

skipif mysql # not compatible
query II rowsort label-2343
SELECT - 33, - 39 - 90 * + COUNT ( * ) AS col2
----
-33
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT COUNT( * ) + + + 32
----
33

skipif mysql # not compatible
query I rowsort label-2344
SELECT COUNT ( * ) + + + 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL + 0 + - 78 + - 69 * + COUNT( * ) AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + 0 + - 78 + - 69 * + COUNT ( * ) AS col2
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT ALL - COUNT( + - 6 ) AS col1, 14 + 38 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-2346
SELECT ALL - COUNT ( + - 6 ) AS col1, 14 + 38 AS col0
----
-1
52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), 39 ) + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), 39 ) + - 57 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 9 + - - 52 * 60 + - + 16
----
3113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT DISTINCT - 82 * + 4 / + 1 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT - 82 * + 4 / + 1 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT 13 - - COUNT( * ) - + - CASE - COUNT( * ) WHEN - SUM( ALL + 3 ) / NULLIF ( - 63, - 31 - - 82 ) * - 63 THEN - 55 WHEN 19 THEN + 41 + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT 13 - - COUNT ( * ) - + - CASE - COUNT ( * ) WHEN - SUM ( ALL + 3 ) / NULLIF ( - 63, - 31 - - 82 ) * - 63 THEN - 55 WHEN 19 THEN + 41 + 38 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT ALL - CASE + 36 WHEN + COUNT( * ) THEN NULL WHEN + - 78 * 76 THEN - 67 DIV 74 * + 67 ELSE 93 END AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - CASE + 36 WHEN + COUNT ( * ) THEN NULL WHEN + - 78 * 76 THEN - 67 / 74 * + 67 ELSE 93 END AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 23 + + ( 45 ) + MAX( - ( - - ( - 96 ) ) ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-2355
SELECT 23 + + ( 45 ) + MAX ( - ( - - ( - 96 ) ) ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT COUNT( * ) * - 47 + 58 * + 69
----
3955

skipif mysql # not compatible
query I rowsort label-2356
SELECT COUNT ( * ) * - 47 + 58 * + 69
----
3955

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2357
SELECT 68 DIV - NULLIF ( - 30, - CAST( NULL AS SIGNED ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2357
SELECT 68 / - NULLIF ( - 30, - CAST ( NULL AS INTEGER ) ) AS col1
----
2

query I rowsort
SELECT ALL 8 - + 50
----
-42

query I rowsort
SELECT 39 * 40
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT ALL - COALESCE ( 35, NULLIF ( 11, + 67 - COUNT( + - 77 ) * 22 ) + + 66 * 78, 28 ) DIV - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - COALESCE ( 35, NULLIF ( 11, + 67 - COUNT ( + - 77 ) * 22 ) + + 66 * 78, 28 ) / - COUNT ( * )
----
35

query I rowsort
SELECT 58 - 56 * + 19 * + + 43
----
-45694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2362
SELECT ALL - ( + + NULLIF ( - 20, 60 * COUNT( * ) ) ) DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - ( + + NULLIF ( - 20, 60 * COUNT ( * ) ) ) / - 88 AS col1
----
0

query I rowsort
SELECT ALL 37 * - 86 AS col2
----
-3182

query I rowsort
SELECT ALL + 75 - 9 AS col0
----
66

query I rowsort
SELECT DISTINCT + NULLIF ( + 0, 93 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2366
SELECT ALL - COUNT( * ) * 12 col1, + 92 AS col1
----
-12
92

skipif mysql # not compatible
query II rowsort label-2366
SELECT ALL - COUNT ( * ) * 12 col1, + 92 AS col1
----
-12
92

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

skipif mysql # not compatible
query I rowsort label-2367
SELECT COUNT ( * ) + - ( + 49 ) - 42 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + CASE 73 WHEN - - 37 + - - 68 * + ( - COUNT( * ) ) THEN - 56 * 37 WHEN + CASE - 66 WHEN 36 THEN NULL WHEN + 36 THEN - 28 * 74 END THEN - 81 END * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT + CASE 73 WHEN - - 37 + - - 68 * + ( - COUNT ( * ) ) THEN - 56 * 37 WHEN + CASE - 66 WHEN 36 THEN NULL WHEN + 36 THEN - 28 * 74 END THEN - 81 END * 80
----
NULL

query I rowsort
SELECT 66 * - 63 AS col0
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT CAST( MIN( 77 ) AS SIGNED ) + + 46
----
123

skipif mysql # not compatible
query I rowsort label-2370
SELECT CAST ( MIN ( 77 ) AS INTEGER ) + + 46
----
123

query I rowsort
SELECT ALL - + 44 * 20 + + 45
----
-835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2372
SELECT DISTINCT MAX( ALL - 18 ) col0, 55 * CAST( + - 58 AS SIGNED )
----
-18
-3190

skipif mysql # not compatible
query II rowsort label-2372
SELECT DISTINCT MAX ( ALL - 18 ) col0, 55 * CAST ( + - 58 AS INTEGER )
----
-18
-3190

query I rowsort
SELECT DISTINCT 7 + + ( + - 12 ) + 80 AS col0
----
75

query I rowsort
SELECT ALL - 95 * + 60 + 28 AS col0
----
-5672

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT 82 * + 75 AS col0, + MAX( + 34 ) AS col0
----
6150
34

skipif mysql # not compatible
query II rowsort label-2375
SELECT 82 * + 75 AS col0, + MAX ( + 34 ) AS col0
----
6150
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL - 84 + ( + - COALESCE ( 69, + 24 ) ) + + - SUM( DISTINCT 59 )
----
-212

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - 84 + ( + - COALESCE ( 69, + 24 ) ) + + - SUM ( DISTINCT 59 )
----
-212

query I rowsort
SELECT ALL + NULLIF ( + - 58, + - 4 ) + + + 73
----
15

query I rowsort
SELECT 61 + 72
----
133

query I rowsort
SELECT 5 * 70 AS col0
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT DISTINCT - + 94 * + 93 + + 54 - + MAX( ALL + 81 ), + ( 64 ) * 38 col0
----
-8769
2432

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT - + 94 * + 93 + + 54 - + MAX ( ALL + 81 ), + ( 64 ) * 38 col0
----
-8769
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT 51 + 0 - CAST( - 35 AS SIGNED ) DIV - 72 * + - 71 + + 50 * + MIN( + 26 ) AS col2
----
1351

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT 51 + 0 - CAST ( - 35 AS INTEGER ) / - 72 * + - 71 + + 50 * + MIN ( + 26 ) AS col2
----
1351

query I rowsort
SELECT ALL - ( - 73 ) + - 97 AS col2
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2383
SELECT 5 / + ( + AVG ( 25 ) ) + + + 41 * + 24 * + 65 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT 5 / + ( + AVG ( 25 ) ) + + + 41 * + 24 * + 65 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 86 + + - 10 * - 35 + - 3 + + 69
----
502

query I rowsort
SELECT ALL ( + + COALESCE ( - 39, + 49, ( - + 69 ) + 87 ) ) * - 26 * + 38 AS col2
----
38532

query I rowsort
SELECT 33 + - + 94
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL + 69 + - 17 + COUNT( * ) * COALESCE ( - 28, 41 + + 56 + 95 + 66, COUNT( ALL 34 ) + - 98 )
----
24

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + 69 + - 17 + COUNT ( * ) * COALESCE ( - 28, 41 + + 56 + 95 + 66, COUNT ( ALL 34 ) + - 98 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT ALL - 14 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - 14 / + 77
----
0

query I rowsort
SELECT 78 * + + 46 + + 40 * - + 12 AS col0
----
3108

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

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL COUNT ( * ) + - - 51 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT - 90 * + - COUNT( * ) + + + 46, 83 * + 20 AS col1
----
136
1660

skipif mysql # not compatible
query II rowsort label-2391
SELECT - 90 * + - COUNT ( * ) + + + 46, 83 * + 20 AS col1
----
136
1660

query I rowsort
SELECT 49 * + - 79 AS col0
----
-3871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT 5 * 82 - 9 - + - 87 + 62 - 49 + + + 93 - - 24 / 79 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT 5 * 82 - 9 - + - 87 + 62 - 49 + + + 93 - - 24 / 79 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2394
SELECT 29 col1, - CAST( + 8 AS SIGNED ) * 39 * - 92 * + 72 + + + CAST( NULL AS SIGNED ) col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2394
SELECT 29 col1, - CAST ( + 8 AS INTEGER ) * 39 * - 92 * + 72 + + + CAST ( NULL AS INTEGER ) col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT - NULLIF ( + COUNT( DISTINCT - 92 ), + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT - NULLIF ( + COUNT ( DISTINCT - 92 ), + + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + 32 + - 9 ) - - MAX( - 13 ) + + 25 * 59 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + 32 + - 9 ) - - MAX ( - 13 ) + + 25 * 59 * + 26
----
NULL

query II rowsort
SELECT + 69 AS col0, 98 + - 45
----
69
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2399
SELECT + MAX( ALL + + 52 ) * COALESCE ( + - CASE - 90 WHEN + 58 THEN NULL WHEN 44 * - - 96 * 25 THEN 0 DIV - COUNT( * ) WHEN 71 + ( 18 ) THEN NULLIF ( 94, + 15 ) ELSE NULL END, CAST( 25 AS SIGNED ) * - 14 ) + - COALESCE ( + ( 34 ), 84 ) AS col0
----
-18234

skipif mysql # not compatible
query I rowsort label-2399
SELECT + MAX ( ALL + + 52 ) * COALESCE ( + - CASE - 90 WHEN + 58 THEN NULL WHEN 44 * - - 96 * 25 THEN 0 / - COUNT ( * ) WHEN 71 + ( 18 ) THEN NULLIF ( 94, + 15 ) ELSE NULL END, CAST ( 25 AS INTEGER ) * - 14 ) + - COALESCE ( + ( 34 ), 84 ) AS col0
----
-18234

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

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - SUM ( - - 70 )
----
-70

query I rowsort
SELECT 67 + 11 * + ( - - 69 ) + 87
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT - NULLIF ( 90, - CASE - 14 WHEN + 27 THEN - COUNT( * ) ELSE NULL END - 92 - 98 * + 88 )
----
-90

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - NULLIF ( 90, - CASE - 14 WHEN + 27 THEN - COUNT ( * ) ELSE NULL END - 92 - 98 * + 88 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT DISTINCT + 76, COUNT( * ) * + - 85 col1
----
76
-85

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT + 76, COUNT ( * ) * + - 85 col1
----
76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - + ( - - 29 ) * + - 61 * + ( - 49 ) + + + 40 * CASE WHEN NULL IN ( MIN( 54 ) ) THEN 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT - + ( - - 29 ) * + - 61 * + ( - 49 ) + + + 40 * CASE WHEN NULL IN ( MIN ( 54 ) ) THEN 62 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2405
SELECT - 88 AS col2, - 39 - - - COUNT( * ) DIV + 99 AS col0
----
-88
-39

skipif mysql # not compatible
query II rowsort label-2405
SELECT - 88 AS col2, - 39 - - - COUNT ( * ) / + 99 AS col0
----
-88
-39

query I rowsort
SELECT ALL + 74 * - + 93 AS col0
----
-6882

query I rowsort
SELECT ALL 77 + + - 17 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT + 47 DIV 18 * - 74 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + 47 / 18 * - 74 AS col2
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT + - 36 * - CAST( + 81 AS SIGNED ) * - 69
----
-201204

skipif mysql # not compatible
query I rowsort label-2409
SELECT + - 36 * - CAST ( + 81 AS INTEGER ) * - 69
----
-201204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT + + COUNT( * ) DIV + COUNT( ALL + + ( + + 98 ) ) + + + 13
----
14

skipif mysql # not compatible
query I rowsort label-2410
SELECT + + COUNT ( * ) / + COUNT ( ALL + + ( + + 98 ) ) + + + 13
----
14

query I rowsort
SELECT ALL + + 79 + + 97 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL - 55 + + - MAX( + - 74 ) + + 38
----
57

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - 55 + + - MAX ( + - 74 ) + + 38
----
57

query I rowsort
SELECT - - 50 - - 58 - - 63 - 80 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT - COUNT( * ) * 72 DIV - + ( - 66 ) + - 17 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2414
SELECT - COUNT ( * ) * 72 / - + ( - 66 ) + - 17 AS col2
----
-18

query I rowsort
SELECT - + 75 - - 7 AS col2
----
-68

query II rowsort
SELECT ALL 84 AS col0, 73 * - 52 AS col2
----
84
-3796

query II rowsort
SELECT ALL + 32 AS col2, + 51 * + 89 AS col2
----
32
4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT - + 75 * + - 28 DIV - COUNT( * )
----
-2100

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - + 75 * + - 28 / - COUNT ( * )
----
-2100

query I rowsort
SELECT DISTINCT 7 + + 31 - + ( - 42 ) * - 12
----
-466

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT + 39 - 97 + - 30 + 74 * - ( - COUNT( * ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 39 - 97 + - 30 + 74 * - ( - COUNT ( * ) ) AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + NULLIF ( - CAST( 77 AS SIGNED ), - 1 + - 70 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + NULLIF ( - CAST ( 77 AS INTEGER ), - 1 + - 70 ) col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT + CASE - 87 WHEN - CASE + 84 WHEN - 59 / 9 THEN - 74 WHEN 66 THEN NULL ELSE + MIN( ALL + 44 ) END * 64 THEN NULL WHEN 9 * CAST( + 50 AS SIGNED ) THEN 26 WHEN 91 THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT + CASE - 87 WHEN - CASE + 84 WHEN - 59 / 9 THEN - 74 WHEN 66 THEN NULL ELSE + MIN ( ALL + 44 ) END * 64 THEN NULL WHEN 9 * CAST ( + 50 AS INTEGER ) THEN 26 WHEN 91 THEN 47 END
----
NULL

query I rowsort
SELECT + 4 * - 91 AS col1
----
-364

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT + 9 * + 58 AS col2, COUNT( * ) + - 63
----
522
-62

skipif mysql # not compatible
query II rowsort label-2424
SELECT + 9 * + 58 AS col2, COUNT ( * ) + - 63
----
522
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + COUNT( * ) + + NULLIF ( + + 55, 27 + 17 )
----
56

skipif mysql # not compatible
query I rowsort label-2425
SELECT + COUNT ( * ) + + NULLIF ( + + 55, 27 + 17 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT NULLIF ( + + 87, + - NULLIF ( - CAST( + 70 AS SIGNED ), - 86 ) + - COALESCE ( - 56, - 82 ) + + 13 ) * 17
----
1479

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT NULLIF ( + + 87, + - NULLIF ( - CAST ( + 70 AS INTEGER ), - 86 ) + - COALESCE ( - 56, - 82 ) + + 13 ) * 17
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + NULLIF ( + 83, - MAX( + 1 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2427
SELECT + NULLIF ( + 83, - MAX ( + 1 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT 10 * MIN( DISTINCT - - 73 ) + + 84 AS col1
----
814

skipif mysql # not compatible
query I rowsort label-2428
SELECT 10 * MIN ( DISTINCT - - 73 ) + + 84 AS col1
----
814

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

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

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

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

query I rowsort
SELECT + 31 + - 68
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT - ( 80 ) DIV + 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2432
SELECT - ( 80 ) / + 60 AS col1
----
-1

query I rowsort
SELECT COALESCE ( 21, 6 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL + NULLIF ( - 29, + SUM( ALL 25 ) ) AS col0, 54
----
-29
54

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL + NULLIF ( - 29, + SUM ( ALL 25 ) ) AS col0, 54
----
-29
54

query I rowsort
SELECT 6 * + + 5 * + + 14 + 1 AS col0
----
421

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT - + 14 - - 6 + - COUNT( * ) * + COUNT( * ) + - 84 + 81 * - + 56 AS col0
----
-4629

skipif mysql # not compatible
query I rowsort label-2436
SELECT - + 14 - - 6 + - COUNT ( * ) * + COUNT ( * ) + - 84 + 81 * - + 56 AS col0
----
-4629

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

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - - COUNT ( * ) * + COUNT ( - 39 ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - - 40 - + 83 * - 99 + 47 AS col0
----
8304

query I rowsort
SELECT ALL - - 44 * + 11
----
484

query I rowsort
SELECT - ( - + 58 ) * - + ( + 19 ) + CASE - 63 WHEN - - 72 THEN NULL WHEN + 49 THEN CASE + ( - 73 ) WHEN - 53 THEN 71 - 84 WHEN 64 / + 0 THEN NULL END END col1
----
NULL

query I rowsort
SELECT ALL + + 77 + + 65 + + 0
----
142

query I rowsort
SELECT - 11 + + + 42 AS col2
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - NULLIF ( - + CASE + 95 WHEN - COUNT( * ) * - 45 + + + 10 THEN + + 81 ELSE + ( 21 ) + + 34 END, + 62 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - NULLIF ( - + CASE + 95 WHEN - COUNT ( * ) * - 45 + + + 10 THEN + + 81 ELSE + ( 21 ) + + 34 END, + 62 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - 56 * + 34 + COUNT( * )
----
-1903

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 56 * + 34 + COUNT ( * )
----
-1903

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

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

query I rowsort
SELECT NULLIF ( 17, - 0 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT - 45 + - MIN( 36 ) AS col2, 84
----
-81
84

skipif mysql # not compatible
query II rowsort label-2448
SELECT - 45 + - MIN ( 36 ) AS col2, 84
----
-81
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT - 4 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 4 / - 69
----
0

query I rowsort
SELECT - 21 + 37 + - 85 * - 8 + - - 45
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL CASE 90 WHEN 85 + + + 75 THEN CAST( - SUM( DISTINCT 96 ) AS SIGNED ) ELSE 99 END * + 58
----
5742

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL CASE 90 WHEN 85 + + + 75 THEN CAST ( - SUM ( DISTINCT 96 ) AS INTEGER ) ELSE 99 END * + 58
----
5742

query I rowsort
SELECT NULLIF ( + + ( + - 56 ), + 15 ) * - 8 + - - 42 * + - 72 AS col0
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( ALL + 49 ) * + 3 col0
----
3

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( ALL + 49 ) * + 3 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + NULLIF ( + COUNT( * ), MAX( ALL - - 14 ) ) / 42 + ( + 11 ) * + + CASE - + 74 WHEN 76 THEN 24 * 33 - + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT + NULLIF ( + COUNT ( * ), MAX ( ALL - - 14 ) ) / 42 + ( + 11 ) * + + CASE - + 74 WHEN 76 THEN 24 * 33 - + 93 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 0 AS col2, 95 * 63 AS col2
----
0
5985

query I rowsort
SELECT - 14 * - 26
----
364

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

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

query I rowsort
SELECT - 43 * + - 91 + + 83 AS col2
----
3996

query I rowsort
SELECT + 8 + 95
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT 80 * - + 24 + + 55 + COUNT( * )
----
-1864

skipif mysql # not compatible
query I rowsort label-2460
SELECT 80 * - + 24 + + 55 + COUNT ( * )
----
-1864

query I rowsort
SELECT ALL 78 * - ( - + NULLIF ( - 44, 31 + + + 36 ) )
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2462
SELECT - 68 DIV - - 1 + - - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 68 / - - 1 + - - COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT DISTINCT 79 / CASE - 79 WHEN + 37 THEN + 16 END + - 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT ALL ( + 0 ) * + CAST( NULL AS SIGNED ) + - 31 + - 10 * - + 36 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL ( + 0 ) * + CAST ( NULL AS INTEGER ) + - 31 + - 10 * - + 36 + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT + 21 * CAST( NULL AS SIGNED ) * - CASE - 73 WHEN ( - 53 ) * + - 25 / + 52 THEN 4 + + 87 WHEN CASE 18 WHEN + 76 THEN 92 WHEN 41 THEN NULL END THEN NULL END + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 21 * CAST ( NULL AS INTEGER ) * - CASE - 73 WHEN ( - 53 ) * + - 25 / + 52 THEN 4 + + 87 WHEN CASE 18 WHEN + 76 THEN 92 WHEN 41 THEN NULL END THEN NULL END + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL - 99 + - ( - 75 ) + + COALESCE ( + + 94, - + CAST( + NULLIF ( + - 96, SUM( ALL + 28 ) ) AS SIGNED ), + 77 ) + 82 * 26
----
2202

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 99 + - ( - 75 ) + + COALESCE ( + + 94, - + CAST ( + NULLIF ( + - 96, SUM ( ALL + 28 ) ) AS INTEGER ), + 77 ) + 82 * 26
----
2202

query I rowsort
SELECT ALL 99 + - 44
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT - 43 DIV 35 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2468
SELECT - 43 / 35 AS col1
----
-1

query I rowsort
SELECT ALL 12 + - - 13
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT - 55 + - COALESCE ( 13, 11, + CAST( - - CASE - + COALESCE ( - - 14, + CAST( 69 AS SIGNED ) ) WHEN 36 - + 9 THEN 42 ELSE 91 + + 76 END AS SIGNED ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - 55 + - COALESCE ( 13, 11, + CAST ( - - CASE - + COALESCE ( - - 14, + CAST ( 69 AS INTEGER ) ) WHEN 36 - + 9 THEN 42 ELSE 91 + + 76 END AS INTEGER ) ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2471
SELECT ALL - 97 DIV + COUNT( * ) * + COUNT( * ) - 80 + + 9 + CAST( - 33 AS SIGNED ) * - 46 * + + 22 * 82 col0
----
2738304

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - 97 / + COUNT ( * ) * + COUNT ( * ) - 80 + + 9 + CAST ( - 33 AS INTEGER ) * - 46 * + + 22 * 82 col0
----
2738304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT - 96 * 95 + COUNT( - 50 ) + + + 51 + 58 + - 40 / + NULLIF ( + + CAST( NULL AS SIGNED ), + ( COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT - 96 * 95 + COUNT ( - 50 ) + + + 51 + 58 + - 40 / + NULLIF ( + + CAST ( NULL AS INTEGER ), + ( COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT CASE - 32 WHEN + CASE + - COUNT( ALL - - ( - 14 ) ) WHEN 54 - - NULLIF ( - 79, - COUNT( * ) ) THEN NULL WHEN - 63 THEN 44 END * + 49 + + 42 THEN + 79 * - COUNT( * ) ELSE + ( 4 ) END + - 89
----
-85

skipif mysql # not compatible
query I rowsort label-2473
SELECT CASE - 32 WHEN + CASE + - COUNT ( ALL - - ( - 14 ) ) WHEN 54 - - NULLIF ( - 79, - COUNT ( * ) ) THEN NULL WHEN - 63 THEN 44 END * + 49 + + 42 THEN + 79 * - COUNT ( * ) ELSE + ( 4 ) END + - 89
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-2474
SELECT ( + - ( + 76 ) ), - 95 DIV - 88 AS col1
----
-76
1

skipif mysql # not compatible
query II rowsort label-2474
SELECT ( + - ( + 76 ) ), - 95 / - 88 AS col1
----
-76
1

query II rowsort
SELECT DISTINCT 51, 98 AS col1
----
51
98

query I rowsort
SELECT 59 * 50
----
2950

query I rowsort
SELECT 90 + - 30 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT COUNT( * ) + - - 17 * - 44 + + CAST( 14 AS SIGNED )
----
-733

skipif mysql # not compatible
query I rowsort label-2478
SELECT COUNT ( * ) + - - 17 * - 44 + + CAST ( 14 AS INTEGER )
----
-733

query I rowsort
SELECT ALL + 12 - + 30 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT COUNT( * ) - - 95 - + 59
----
37

skipif mysql # not compatible
query I rowsort label-2480
SELECT COUNT ( * ) - - 95 - + 59
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT COUNT( DISTINCT 52 ) * - 47 + + + 33 + + 20 - - COUNT( * ) * + 44 + - - SUM( ALL 5 ) * + COALESCE ( - 1, 5 * + NULLIF ( + 37, COUNT( * ) - 30 ) ) * 13 + + 55 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2481
SELECT COUNT ( DISTINCT 52 ) * - 47 + + + 33 + + 20 - - COUNT ( * ) * + 44 + - - SUM ( ALL 5 ) * + COALESCE ( - 1, 5 * + NULLIF ( + 37, COUNT ( * ) - 30 ) ) * 13 + + 55 AS col0
----
40

query I rowsort
SELECT 33 * + COALESCE ( + 21, + 6 + 89, - 28 ) AS col0
----
693

query III rowsort
SELECT 21, 60 AS col0, + 19 col2
----
21
60
19

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

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

query II rowsort
SELECT 61 - + 64, 28 AS col0
----
-3
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2486
SELECT ALL - 93 DIV - 80 AS col2, 81 + - COUNT( * )
----
1
80

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL - 93 / - 80 AS col2, 81 + - COUNT ( * )
----
1
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT 42 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT 42 / 51
----
0

query I rowsort
SELECT 48 * 79 AS col2
----
3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT COUNT( DISTINCT - - 73 ) * - 81 * - CAST( NULL AS SIGNED ) * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT COUNT ( DISTINCT - - 73 ) * - 81 * - CAST ( NULL AS INTEGER ) * + 75 AS col1
----
NULL

query I rowsort
SELECT ALL + 20 + - ( + 44 ) * + + 40 * - 62 * 71 col2
----
7747540

query II rowsort
SELECT 58 AS col1, - 45 col1
----
58
-45

query I rowsort
SELECT DISTINCT + 3 + 29
----
32

query I rowsort
SELECT ALL 96 + + 80
----
176

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2495
SELECT ALL - - CAST( NULL AS SIGNED ), 26 AS col0, - 68 AS col2
----
NULL
26
-68

skipif mysql # not compatible
query III rowsort label-2495
SELECT ALL - - CAST ( NULL AS INTEGER ), 26 AS col0, - 68 AS col2
----
NULL
26
-68

query I rowsort
SELECT ALL + ( + 10 ) + + 20 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + CASE COUNT( * ) WHEN + 13 / - COUNT( * ) THEN - - 27 - - COUNT( * ) * - 88 - + 92 + + COUNT( * ) + - MIN( ALL 16 ) * - 40 WHEN + 99 + MAX( + 38 ) THEN NULL ELSE NULL END + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT + CASE COUNT ( * ) WHEN + 13 / - COUNT ( * ) THEN - - 27 - - COUNT ( * ) * - 88 - + 92 + + COUNT ( * ) + - MIN ( ALL 16 ) * - 40 WHEN + 99 + MAX ( + 38 ) THEN NULL ELSE NULL END + 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT ALL - 68 DIV - 53 + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - 68 / - 53 + + - 67
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT 62 * COUNT( * ) * + 84 + + + 56 + + - 44 / - + CASE + ( - 88 ) WHEN 92 THEN + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT 62 * COUNT ( * ) * + 84 + + + 56 + + - 44 / - + CASE + ( - 88 ) WHEN 92 THEN + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT + 50 * + 59
----
2950

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT - 63, + ( MAX( ALL + 90 ) ) AS col0
----
-63
90

skipif mysql # not compatible
query II rowsort label-2501
SELECT - 63, + ( MAX ( ALL + 90 ) ) AS col0
----
-63
90

onlyif mysql # DIV for integer division: 
query II rowsort label-2502
SELECT ALL - 25 col0, + 30 DIV 78
----
-25
0

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL - 25 col0, + 30 / 78
----
-25
0

query I rowsort
SELECT - 16 - - + 94
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL - COALESCE ( + 16, CAST( NULL AS SIGNED ) * COUNT( * ) + + - MAX( ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ), - - 8 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - COALESCE ( + 16, CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - MAX ( ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ), - - 8 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT - 74 * - + 90
----
6660

query I rowsort
SELECT - 43 + - 15
----
-58

query I rowsort
SELECT ALL + 41 - + 64
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT 53 + - 27 * - 5 * + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2508
SELECT 53 + - 27 * - 5 * + - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT 5 AS col1, COUNT( - 48 ) * + - 75 + 73
----
5
-2

skipif mysql # not compatible
query II rowsort label-2509
SELECT 5 AS col1, COUNT ( - 48 ) * + - 75 + 73
----
5
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2510
SELECT CAST( NULL AS DECIMAL ) - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT CAST ( NULL AS REAL ) - + 91
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2511
SELECT CAST( NULL AS DECIMAL ) * 36 AS col0, - 31
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-2511
SELECT CAST ( NULL AS REAL ) * 36 AS col0, - 31
----
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + 6 * - - 39 * - 24 * - NULLIF ( - 58, - COUNT( * ) - + 17 ) * - COUNT( * )
----
325728

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + 6 * - - 39 * - 24 * - NULLIF ( - 58, - COUNT ( * ) - + 17 ) * - COUNT ( * )
----
325728

query I rowsort
SELECT 61 + - 40 + 35 AS col0
----
56

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

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

query I rowsort
SELECT 67 * - 28
----
-1876

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT - MIN( - - 82 ), + 37 * - 87 * - NULLIF ( + 52, COUNT( * ) + + 25 ) AS col2
----
-82
167388

skipif mysql # not compatible
query II rowsort label-2516
SELECT - MIN ( - - 82 ), + 37 * - 87 * - NULLIF ( + 52, COUNT ( * ) + + 25 ) AS col2
----
-82
167388

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT NULLIF ( + 3, 10 ) + + CASE + 58 WHEN COUNT( * ) THEN - 6 WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT NULLIF ( + 3, 10 ) + + CASE + 58 WHEN COUNT ( * ) THEN - 6 WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 89 + 54 + + 81
----
46

query I rowsort
SELECT 93 * 61 AS col0
----
5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT COALESCE ( 87, CAST( - 10 AS SIGNED ) - SUM( - + NULLIF ( - 48, + 2 ) ) + - CAST( NULL AS SIGNED ) + - 23 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2520
SELECT COALESCE ( 87, CAST ( - 10 AS INTEGER ) - SUM ( - + NULLIF ( - 48, + 2 ) ) + - CAST ( NULL AS INTEGER ) + - 23 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - NULLIF ( - COUNT( DISTINCT + 57 ), + + MAX( DISTINCT - 75 ) ) * + MIN( DISTINCT - - ( 59 ) ) + - MAX( - 91 ) * - 15 + + NULLIF ( COUNT( * ), - 39 ) + + COUNT( DISTINCT 78 )
----
-1304

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - NULLIF ( - COUNT ( DISTINCT + 57 ), + + MAX ( DISTINCT - 75 ) ) * + MIN ( DISTINCT - - ( 59 ) ) + - MAX ( - 91 ) * - 15 + + NULLIF ( COUNT ( * ), - 39 ) + + COUNT ( DISTINCT 78 )
----
-1304

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - 26 * + COUNT( * ) * + 3 * - 17 * - - 63 * - + 63 AS col1
----
-5262894

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - 26 * + COUNT ( * ) * + 3 * - 17 * - - 63 * - + 63 AS col1
----
-5262894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - - 66 * + + AVG ( + 64 ) * + + CAST( NULL AS SIGNED ) * + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT - - 66 * + + AVG ( + 64 ) * + + CAST ( NULL AS INTEGER ) * + 25 AS col2
----
NULL

query I rowsort
SELECT - 73 * - 26 AS col2
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + COUNT( * ) + - ( - 73 )
----
74

skipif mysql # not compatible
query I rowsort label-2525
SELECT + COUNT ( * ) + - ( - 73 )
----
74

query I rowsort
SELECT + 50 * + 93 AS col1
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT - 62 * NULLIF ( + MAX( DISTINCT 57 ), - + 44 + 71 + COALESCE ( + - 86, + - CASE - 16 WHEN + 49 * + 50 + - ( 27 ) + + 10 THEN NULL WHEN NULLIF ( + 57, + 23 ) THEN NULL ELSE CASE + 91 WHEN NULLIF ( ( + 24 ), 26 / + 70 ) THEN 38 END END * + SUM( 92 - - 84 ) + 53 ) / 14 ) + - 89 AS col1
----
-3623

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - 62 * NULLIF ( + MAX ( DISTINCT 57 ), - + 44 + 71 + COALESCE ( + - 86, + - CASE - 16 WHEN + 49 * + 50 + - ( 27 ) + + 10 THEN NULL WHEN NULLIF ( + 57, + 23 ) THEN NULL ELSE CASE + 91 WHEN NULLIF ( ( + 24 ), 26 / + 70 ) THEN 38 END END * + SUM ( 92 - - 84 ) + 53 ) / 14 ) + - 89 AS col1
----
-3623

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2528
SELECT - CASE 55 WHEN - 29 THEN + - ( 23 ) WHEN - AVG ( + 6 ) / - - CAST( NULL AS DECIMAL ) + 15 + - COUNT( * ) - + 26 THEN 66 WHEN + ( NULLIF ( + 3, - MAX( ALL 68 ) ) ) THEN - 68 + + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - CASE 55 WHEN - 29 THEN + - ( 23 ) WHEN - AVG ( + 6 ) / - - CAST ( NULL AS REAL ) + 15 + - COUNT ( * ) - + 26 THEN 66 WHEN + ( NULLIF ( + 3, - MAX ( ALL 68 ) ) ) THEN - 68 + + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL 47 * + COUNT( * ) + + - 54 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 47 * + COUNT ( * ) + + - 54 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT + 75 DIV - + 75
----
-1

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 75 / - + 75
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + COUNT( * ) + + - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2532
SELECT + COUNT ( * ) + + - 86 AS col1
----
-85

query II rowsort
SELECT 78 AS col1, + 15 * + + 4 * 7 AS col1
----
78
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2534
SELECT DISTINCT 49, - NULLIF ( - - 92, CASE + + 69 WHEN + MAX( DISTINCT + 18 ) + + CAST( + COUNT( * ) AS SIGNED ) THEN 66 END + - - 46 ) AS col2, - - 10 - + - 10 * 95 AS col2
----
49
-92
960

skipif mysql # not compatible
query III rowsort label-2534
SELECT DISTINCT 49, - NULLIF ( - - 92, CASE + + 69 WHEN + MAX ( DISTINCT + 18 ) + + CAST ( + COUNT ( * ) AS INTEGER ) THEN 66 END + - - 46 ) AS col2, - - 10 - + - 10 * 95 AS col2
----
49
-92
960

query I rowsort
SELECT + 91 - - + 74 AS col0
----
165

query I rowsort
SELECT DISTINCT 61 + - - 88 AS col0
----
149

query I rowsort
SELECT DISTINCT 20 + 26
----
46

query II rowsort
SELECT - COALESCE ( + 96, 84 ), - ( - + 75 ) AS col2
----
-96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL 96 + - - 31 + - COUNT( * ) * - + 17 * + 15 * + 60
----
15427

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 96 + - - 31 + - COUNT ( * ) * - + 17 * + 15 * + 60
----
15427

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL MIN( ALL 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL MIN ( ALL 63 ) AS col2
----
63

query II rowsort
SELECT 78 AS col2, - 56 AS col2
----
78
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2542
SELECT ALL 65, - COUNT( * ) col0
----
65
-1

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL 65, - COUNT ( * ) col0
----
65
-1

query I rowsort
SELECT DISTINCT 26 + + 88 AS col0
----
114

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

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

query I rowsort
SELECT ALL - 57 * + 82 AS col0
----
-4674

query I rowsort
SELECT + 55 * - 81
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL 60 + - 98 + - CASE + - 40 WHEN + - 89 THEN NULL WHEN - 51 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - + 96 THEN + SUM( ALL - - 46 ) ELSE NULL END / + + MAX( - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL 60 + - 98 + - CASE + - 40 WHEN + - 89 THEN NULL WHEN - 51 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - + 96 THEN + SUM ( ALL - - 46 ) ELSE NULL END / + + MAX ( - 69 )
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - - 62 / + ( + 44 ) - - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT ALL + 12 DIV + 99 - - ( - - 38 ) * + 11 * 60
----
25080

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + 12 / + 99 - - ( - - 38 ) * + 11 * 60
----
25080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + NULLIF ( - 25, COUNT( ALL + 32 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + NULLIF ( - 25, COUNT ( ALL + 32 ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT - + CASE - 10 WHEN + 13 / 93 * - - 73 * - COUNT( * ) * - - 23 + + - 11 - ( 81 ) - 68 THEN NULL WHEN - - CAST( + - 95 AS SIGNED ) THEN NULL ELSE COUNT( * ) END - + 15 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2554
SELECT - + CASE - 10 WHEN + 13 / 93 * - - 73 * - COUNT ( * ) * - - 23 + + - 11 - ( 81 ) - 68 THEN NULL WHEN - - CAST ( + - 95 AS INTEGER ) THEN NULL ELSE COUNT ( * ) END - + 15 AS col0
----
-16

query I rowsort
SELECT DISTINCT + - NULLIF ( + - COALESCE ( + + 8, 76 ), + 85 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT ALL + 85 DIV ( + 42 ) + COUNT( * ) * 22 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 85 / ( + 42 ) + COUNT ( * ) * 22 AS col0
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - - 30 * - + COUNT( 10 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2558
SELECT - - 30 * - + COUNT ( 10 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2559
SELECT ALL + COALESCE ( COALESCE ( - 63, + 41, - CASE + 35 WHEN + 8 THEN + 21 ELSE NULL END ), - CAST( - 69 AS SIGNED ), - - ( + - 81 ) DIV - 76 + 61 * 70 ) * - SUM( ALL 94 + + NULLIF ( + 42, 6 ) )
----
8568

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + COALESCE ( COALESCE ( - 63, + 41, - CASE + 35 WHEN + 8 THEN + 21 ELSE NULL END ), - CAST ( - 69 AS INTEGER ), - - ( + - 81 ) / - 76 + 61 * 70 ) * - SUM ( ALL 94 + + NULLIF ( + 42, 6 ) )
----
8568

query I rowsort
SELECT ALL - 33 * + 55 AS col0
----
-1815

query I rowsort
SELECT - - ( + + 16 ) * + 90
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT - + CASE - + ( 10 ) WHEN + COALESCE ( 8, 75 / + - 63 - + COUNT( * ) ) / + 11 + - SUM( + 56 ) THEN - - MIN( - - 6 ) WHEN 58 THEN - 35 * 29 END * CAST( 70 * 53 + MIN( + 86 + + ( 38 ) ) AS SIGNED ) + - 86 * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT - + CASE - + ( 10 ) WHEN + COALESCE ( 8, 75 / + - 63 - + COUNT ( * ) ) / + 11 + - SUM ( + 56 ) THEN - - MIN ( - - 6 ) WHEN 58 THEN - 35 * 29 END * CAST ( 70 * 53 + MIN ( + 86 + + ( 38 ) ) AS INTEGER ) + - 86 * 75 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - - 78 + COUNT( * ) + - 51
----
28

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - 78 + COUNT ( * ) + - 51
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2565
SELECT - 69 * - COUNT( * ), + 16 * - CASE - - 75 WHEN - 6 * + COUNT( * ) * - + MIN( + + 51 ) + 82 + - 4 * + CAST( + - 33 AS SIGNED ) * ( + 84 ) + ( MIN( DISTINCT 29 ) + 79 * + 16 ) THEN + AVG ( ( - 81 ) ) / + 14 WHEN - 39 THEN - 18 WHEN - 59 THEN - 77 END AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2565
SELECT - 69 * - COUNT ( * ), + 16 * - CASE - - 75 WHEN - 6 * + COUNT ( * ) * - + MIN ( + + 51 ) + 82 + - 4 * + CAST ( + - 33 AS INTEGER ) * ( + 84 ) + ( MIN ( DISTINCT 29 ) + 79 * + 16 ) THEN + AVG ( ( - 81 ) ) / + 14 WHEN - 39 THEN - 18 WHEN - 59 THEN - 77 END AS col1
----
69
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT 34 * - 21 + COUNT( - 12 ) * NULLIF ( + ( - 98 ), + - COUNT( ALL 95 ) * - CAST( NULL AS SIGNED ) ) * + + 10 * MAX( ALL + 73 ) * - 38 AS col0
----
2717806

skipif mysql # not compatible
query I rowsort label-2566
SELECT 34 * - 21 + COUNT ( - 12 ) * NULLIF ( + ( - 98 ), + - COUNT ( ALL 95 ) * - CAST ( NULL AS INTEGER ) ) * + + 10 * MAX ( ALL + 73 ) * - 38 AS col0
----
2717806

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT - COALESCE ( - 85, + + 88 * + - 7 * - + 74, - MIN( DISTINCT 48 ) + - - 48 * - 50 ) AS col0, ( - ( + 89 ) ) + COUNT( + 15 ) + - 22
----
85
-110

skipif mysql # not compatible
query II rowsort label-2567
SELECT - COALESCE ( - 85, + + 88 * + - 7 * - + 74, - MIN ( DISTINCT 48 ) + - - 48 * - 50 ) AS col0, ( - ( + 89 ) ) + COUNT ( + 15 ) + - 22
----
85
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT - 33 * + 42 AS col1, + COUNT( + 23 ) AS col2
----
-1386
1

skipif mysql # not compatible
query II rowsort label-2568
SELECT - 33 * + 42 AS col1, + COUNT ( + 23 ) AS col2
----
-1386
1

query I rowsort
SELECT - CASE + AVG ( - 70 ) WHEN + + COALESCE ( + - 26, 88 ) * 98 THEN NULL ELSE 3 END + - 31 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT - ( + 35 ) AS col1, - COUNT( * ) * - 81
----
-35
81

skipif mysql # not compatible
query II rowsort label-2570
SELECT - ( + 35 ) AS col1, - COUNT ( * ) * - 81
----
-35
81

query I rowsort
SELECT DISTINCT 84 * - 36 + + - 37
----
-3061

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - SUM( ALL - + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2572
SELECT - SUM ( ALL - + 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL 73 + + + 49 + + 79 - + + CASE 81 WHEN - 85 THEN NULL WHEN - - 40 THEN + ( - COUNT( * ) ) * 22 ELSE NULL END / - + 64 * + NULLIF ( - + 65, CASE CAST( NULL AS SIGNED ) WHEN 98 / 3 + 59 THEN 44 + - SUM( DISTINCT + 83 ) * AVG ( DISTINCT - 21 ) ELSE NULL END + 92 * + CAST( NULL AS SIGNED ) ) - ( 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL 73 + + + 49 + + 79 - + + CASE 81 WHEN - 85 THEN NULL WHEN - - 40 THEN + ( - COUNT ( * ) ) * 22 ELSE NULL END / - + 64 * + NULLIF ( - + 65, CASE CAST ( NULL AS INTEGER ) WHEN 98 / 3 + 59 THEN 44 + - SUM ( DISTINCT + 83 ) * AVG ( DISTINCT - 21 ) ELSE NULL END + 92 * + CAST ( NULL AS INTEGER ) ) - ( 78 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 16 + - 14
----
-30

query I rowsort
SELECT 96 + - + ( - 78 ) AS col2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT 78 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT 78 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 73 + + 48
----
121

query I rowsort
SELECT ( + 59 ) - 90
----
-31

query I rowsort
SELECT 92 + + - 53 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT ALL - ( + 22 ) - - - COALESCE ( 52, + - 21 * + COUNT( DISTINCT - 34 ) DIV + + 5, - 92 ) DIV + + 48 DIV + 1
----
-23

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - ( + 22 ) - - - COALESCE ( 52, + - 21 * + COUNT ( DISTINCT - 34 ) / + + 5, - 92 ) / + + 48 / + 1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT ALL - 80 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - 80 / 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT + 46 + 20 DIV - + COUNT( - + 63 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2582
SELECT + 46 + 20 / - + COUNT ( - + 63 ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL - NULLIF ( - 93, + 24 * + + 85 + + CAST( - + 69 AS SIGNED ) * - - 82 + - 50 )
----
93

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - NULLIF ( - 93, + 24 * + + 85 + + CAST ( - + 69 AS INTEGER ) * - - 82 + - 50 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT - CAST( - + 56 AS SIGNED ) + - 56 * + + MAX( DISTINCT 23 )
----
-1232

skipif mysql # not compatible
query I rowsort label-2584
SELECT - CAST ( - + 56 AS INTEGER ) + - 56 * + + MAX ( DISTINCT 23 )
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 80 + + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-2585
SELECT 80 + + - COUNT ( * )
----
79

query I rowsort
SELECT - 96 + + - 10 AS col2
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT + 20 * + 3 + CAST( 28 AS SIGNED ) + + 13 * 57
----
829

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 20 * + 3 + CAST ( 28 AS INTEGER ) + + 13 * 57
----
829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT + MIN( DISTINCT 54 ) DIV - - 33
----
1

skipif mysql # not compatible
query I rowsort label-2588
SELECT + MIN ( DISTINCT 54 ) / - - 33
----
1

query I rowsort
SELECT ALL + + 23 + 63 AS col0
----
86

query I rowsort
SELECT ALL - 38 + - ( - 18 )
----
-20

query I rowsort
SELECT DISTINCT 51 + - - 75
----
126

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

skipif mysql # not compatible
query I rowsort label-2592
SELECT CAST ( NULL AS INTEGER ) * 18 AS col0
----
NULL

query I rowsort
SELECT ALL - 2 + 36
----
34

query I rowsort
SELECT DISTINCT + 47 + + 32
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT + 43 AS col2, SUM( + 72 ) AS col0
----
43
72

skipif mysql # not compatible
query II rowsort label-2595
SELECT + 43 AS col2, SUM ( + 72 ) AS col0
----
43
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT 61 DIV - - 26
----
2

skipif mysql # not compatible
query I rowsort label-2596
SELECT 61 / - - 26
----
2

query I rowsort
SELECT DISTINCT - 75 * + 97
----
-7275

query II rowsort
SELECT 17 AS col0, 34 AS col0
----
17
34

query I rowsort
SELECT 86 - 36
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT 92 + COUNT( + - 53 ) + + - 49 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2600
SELECT 92 + COUNT ( + - 53 ) + + - 49 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2601
SELECT COUNT( * ) * + 49 DIV - 23 AS col0, - 23 DIV - 41 * - 67 AS col0
----
-2
0

skipif mysql # not compatible
query II rowsort label-2601
SELECT COUNT ( * ) * + 49 / - 23 AS col0, - 23 / - 41 * - 67 AS col0
----
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT ALL COUNT( * ) AS col2, + 68 + + 18
----
1
86

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL COUNT ( * ) AS col2, + 68 + + 18
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT NULLIF ( - COUNT( + - ( - 6 ) ), - 82 + - + 39 ) * + ( - 0 ) * + - 98 + - - 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT NULLIF ( - COUNT ( + - ( - 6 ) ), - 82 + - + 39 ) * + ( - 0 ) * + - 98 + - - 64 AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( * ) * + NULLIF ( - COUNT ( * ), 1 + - 60 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2605
SELECT ALL CASE - CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) + 91 THEN NULL WHEN + - CAST( NULL AS SIGNED ) * - 24 + + 36 * - 32 THEN - 83 + - COUNT( * ) + + 20 + + CASE + 11 WHEN + 96 THEN NULL ELSE - + 91 / + 44 END ELSE NULL END * + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL CASE - CAST ( NULL AS REAL ) WHEN - COUNT ( * ) + 91 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * - 24 + + 36 * - 32 THEN - 83 + - COUNT ( * ) + + 20 + + CASE + 11 WHEN + 96 THEN NULL ELSE - + 91 / + 44 END ELSE NULL END * + 32 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT COUNT( DISTINCT 11 ) * - 19
----
-19

skipif mysql # not compatible
query I rowsort label-2607
SELECT COUNT ( DISTINCT 11 ) * - 19
----
-19

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

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

query I rowsort
SELECT + 16 * + - 9 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - COUNT( - ( - 0 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - COUNT ( - ( - 0 ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT + 60 * + 73 - + 97 DIV - + 47
----
4382

skipif mysql # not compatible
query I rowsort label-2611
SELECT + 60 * + 73 - + 97 / - + 47
----
4382

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2612
SELECT DISTINCT 46 * + 99 + CAST( NULL AS DECIMAL ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT 46 * + 99 + CAST ( NULL AS REAL ) + - 60 AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * + 66 AS col1
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT 46 + + - COUNT( * ) + - + 73 * ( COALESCE ( - 13, + SUM( + CAST( + 2 AS SIGNED ) ) * - 81 ) ) col2
----
994

skipif mysql # not compatible
query I rowsort label-2614
SELECT 46 + + - COUNT ( * ) + - + 73 * ( COALESCE ( - 13, + SUM ( + CAST ( + 2 AS INTEGER ) ) * - 81 ) ) col2
----
994

query I rowsort
SELECT + COALESCE ( + + 15, + - 37 + - - 62 * - 71 * - 91 ) + + NULLIF ( + NULLIF ( + ( 89 ), - 98 - - - 0 + + AVG ( DISTINCT + 42 ) * 0 * + 46 ), + ( 61 ) )
----
104

query I rowsort
SELECT 87 * + + 68 AS col1
----
5916

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT COUNT( ALL + 9 ), + 4 AS col0
----
1
4

skipif mysql # not compatible
query II rowsort label-2617
SELECT COUNT ( ALL + 9 ), + 4 AS col0
----
1
4

query I rowsort
SELECT 96 - + 62 AS col1
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT CAST( + 56 AS SIGNED ) + - + 94 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2620
SELECT CAST ( + 56 AS INTEGER ) + - + 94 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL 50 - - MAX( - 87 ) + - + 0 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL 50 - - MAX ( - 87 ) + - + 0 AS col2
----
-37

query I rowsort
SELECT DISTINCT 9 - - ( 79 ) + - 75 col1
----
13

query I rowsort
SELECT ALL + COALESCE ( - 10, 16 - - 52, + 49 + - + 82 + 66 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2624
SELECT ALL + 22, 85 DIV - 49 + 16 DIV 4 * - + COUNT( * ) AS col2
----
22
-5

skipif mysql # not compatible
query II rowsort label-2624
SELECT ALL + 22, 85 / - 49 + 16 / 4 * - + COUNT ( * ) AS col2
----
22
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2625
SELECT 99 col0, COUNT( * ) + 37 * + 13 * - + CAST( + CAST( + NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) * + - 95 ) AS SIGNED ) AS SIGNED ) + - + 42 * + 28 * + 19 * - + ( + - 43 ) - ( COUNT( * ) )
----
99
-961273

skipif mysql # not compatible
query II rowsort label-2625
SELECT 99 col0, COUNT ( * ) + 37 * + 13 * - + CAST ( + CAST ( + NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) * + - 95 ) AS INTEGER ) AS INTEGER ) + - + 42 * + 28 * + 19 * - + ( + - 43 ) - ( COUNT ( * ) )
----
99
-961273

query I rowsort
SELECT - 14 + - 51
----
-65

query II rowsort
SELECT ALL - 98 * + + 52 col2, - 4
----
-5096
-4

query I rowsort
SELECT - 32 * + - 68 AS col2
----
2176

query I rowsort
SELECT - 44 * - 3 + - 72 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT ALL 96 - + 33 * 72 + + CAST( - NULLIF ( 74, - COUNT( DISTINCT + + ( + - 6 ) ) / CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 50 + 41
----
-5939

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 96 - + 33 * 72 + + CAST ( - NULLIF ( 74, - COUNT ( DISTINCT + + ( + - 6 ) ) / CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 50 + 41
----
-5939

query I rowsort
SELECT ALL - CASE + - 57 WHEN - AVG ( DISTINCT - 22 ) THEN + 52 - + 69 ELSE NULL END * - ( 55 ) - + 84
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2632
SELECT + 96 * - COUNT ( ALL - 15 ) AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT - 60 + - 2 DIV + 34
----
-60

skipif mysql # not compatible
query I rowsort label-2633
SELECT - 60 + - 2 / + 34
----
-60

query II rowsort
SELECT - 73, + COALESCE ( + 56, 72 ) AS col0
----
-73
56

query I rowsort
SELECT ALL + ( 99 ) * + NULLIF ( - + CASE - 98 WHEN + 57 THEN 76 WHEN 40 * 3 THEN NULL ELSE - 68 END, - 80 ) + - 80 AS col0
----
6652

query II rowsort
SELECT DISTINCT 77, 19 + 64 AS col1
----
77
83

query II rowsort
SELECT 74, + 52 AS col1
----
74
52

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

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

query I rowsort
SELECT - + 81 + - 92 AS col1
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2640
SELECT - + 17 * MAX( DISTINCT CAST( + 91 AS SIGNED ) ), 41 AS col2
----
-1547
41

skipif mysql # not compatible
query II rowsort label-2640
SELECT - + 17 * MAX ( DISTINCT CAST ( + 91 AS INTEGER ) ), 41 AS col2
----
-1547
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT - 87 - + 28 AS col2, MIN( ALL + + 39 ) * + - ( + 5 )
----
-115
-195

skipif mysql # not compatible
query II rowsort label-2641
SELECT - 87 - + 28 AS col2, MIN ( ALL + + 39 ) * + - ( + 5 )
----
-115
-195

query II rowsort
SELECT DISTINCT 38 col0, 58 AS col0
----
38
58

query I rowsort
SELECT - 44 * - 63 AS col0
----
2772

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

query I rowsort
SELECT - + 40 + - 83
----
-123

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

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

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

skipif mysql # not compatible
query I rowsort label-2647
SELECT + + 55 / - 54 * + + COUNT ( * ) + + + 15 AS col0
----
14

query II rowsort
SELECT DISTINCT + + 6 AS col1, 11 AS col2
----
6
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT + 27 * + COUNT( * ) + 5
----
32

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + 27 * + COUNT ( * ) + 5
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + + NULLIF ( + COUNT( DISTINCT - 5 ), + 71 * 8 )
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT + + NULLIF ( + COUNT ( DISTINCT - 5 ), + 71 * 8 )
----
1

query I rowsort
SELECT DISTINCT - 52 * - + 24 AS col0
----
1248

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2653
SELECT + + COUNT( * ), + 45 + + CASE + + COUNT( * ) WHEN 12 / - 62 * - + 43 THEN NULL WHEN - 61 * - 63 / + - 4 + 50 + + + CAST( + 39 AS DECIMAL ) - + 83 THEN + COUNT( * ) ELSE ( 92 ) * - NULLIF ( 14, + 78 ) END AS col0
----
1
-1243

skipif mysql # not compatible
query II rowsort label-2653
SELECT + + COUNT ( * ), + 45 + + CASE + + COUNT ( * ) WHEN 12 / - 62 * - + 43 THEN NULL WHEN - 61 * - 63 / + - 4 + 50 + + + CAST ( + 39 AS REAL ) - + 83 THEN + COUNT ( * ) ELSE ( 92 ) * - NULLIF ( 14, + 78 ) END AS col0
----
1
-1243

onlyif mysql # DIV for integer division: 
query II rowsort label-2654
SELECT - ( - 4 ) DIV 83 + - + 17 AS col0, - 7 AS col1
----
-17
-7

skipif mysql # not compatible
query II rowsort label-2654
SELECT - ( - 4 ) / 83 + - + 17 AS col0, - 7 AS col1
----
-17
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - 48 * - COUNT( * ) * 11 + - 53 + - + 79 * + COUNT( DISTINCT + 81 ) * + 17 AS col2
----
-868

skipif mysql # not compatible
query I rowsort label-2655
SELECT - 48 * - COUNT ( * ) * 11 + - 53 + - + 79 * + COUNT ( DISTINCT + 81 ) * + 17 AS col2
----
-868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), COALESCE ( - CAST( 67 AS SIGNED ), + 22 ) / 45 + ( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), COALESCE ( - CAST ( 67 AS INTEGER ), + 22 ) / 45 + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL 40 * + - 86 * + SUM( ALL - - 71 ) * - - 20 * - 13 + + - CASE + + 25 WHEN + + 77 THEN - - 33 / 7 + - - 80 WHEN + 97 THEN + 7 / - CASE 97 WHEN 78 THEN - COALESCE ( 78, NULLIF ( 14, 84 ), 32 ) * 78 ELSE NULL END + 57 ELSE NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 40 * + - 86 * + SUM ( ALL - - 71 ) * - - 20 * - 13 + + - CASE + + 25 WHEN + + 77 THEN - - 33 / 7 + - - 80 WHEN + 97 THEN + 7 / - CASE 97 WHEN 78 THEN - COALESCE ( 78, NULLIF ( 14, 84 ), 32 ) * 78 ELSE NULL END + 57 ELSE NULL END - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2658
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0, + 93 col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2658
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0, + 93 col1
----
NULL
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT CASE + 6 WHEN 43 THEN + 74 * + - COUNT( DISTINCT 79 ) * 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT CASE + 6 WHEN 43 THEN + 74 * + - COUNT ( DISTINCT 79 ) * 33 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 32, + 25 * + 71 + + + 2 * + 59 ) AS col2
----
-32

query I rowsort
SELECT 3 * + - 7 - + 89 AS col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT + COUNT( * ) * ( - 54 ) * - - 11 + 99 - - 48 + 35 - 8 DIV - - 3 - - ( + 49 )
----
-365

skipif mysql # not compatible
query I rowsort label-2663
SELECT + COUNT ( * ) * ( - 54 ) * - - 11 + 99 - - 48 + 35 - 8 / - - 3 - - ( + 49 )
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT + 2 + - MAX( ALL - 83 ) + + 77 * - 27 AS col2
----
-1994

skipif mysql # not compatible
query I rowsort label-2664
SELECT + 2 + - MAX ( ALL - 83 ) + + 77 * - 27 AS col2
----
-1994

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT + 66 + + 82 + - + 34 DIV - 96 + - 59
----
89

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 66 + + 82 + - + 34 / - 96 + - 59
----
89

query II rowsort
SELECT + 25 - + 19 AS col2, - 6 col2
----
6
-6

query I rowsort
SELECT + 42 + 35
----
77

query I rowsort
SELECT ALL 48 + - 21
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT ALL - 58 + - + 35 AS col2, + 60 + - MAX( ALL + 1 ) AS col2
----
-93
59

skipif mysql # not compatible
query II rowsort label-2669
SELECT ALL - 58 + - + 35 AS col2, + 60 + - MAX ( ALL + 1 ) AS col2
----
-93
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT + NULLIF ( - 64, + COUNT( * ) ) * - 82
----
5248

skipif mysql # not compatible
query I rowsort label-2670
SELECT + NULLIF ( - 64, + COUNT ( * ) ) * - 82
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - 71 + COALESCE ( - 41, + - 2 * COUNT( * ), + 92 * - 82 ) AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 71 + COALESCE ( - 41, + - 2 * COUNT ( * ), + 92 * - 82 ) AS col1
----
-112

query I rowsort
SELECT + 15 * + - 62 AS col2
----
-930

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2673
SELECT - - COUNT( - 43 ) * + + 16 DIV + CASE + 93 WHEN - 27 * CAST( NULL AS DECIMAL ) + 58 + - 0 THEN NULL WHEN + 36 THEN 15 ELSE - 76 + + COUNT( + 97 ) END
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT - - COUNT ( - 43 ) * + + 16 / + CASE + 93 WHEN - 27 * CAST ( NULL AS REAL ) + 58 + - 0 THEN NULL WHEN + 36 THEN 15 ELSE - 76 + + COUNT ( + 97 ) END
----
0

query II rowsort
SELECT - + 95 * - 11 AS col2, 27
----
1045
27

query I rowsort
SELECT - + 36 * 59
----
-2124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2676
SELECT DISTINCT 30 * + 86 / - - COUNT( * ) + - CAST( NULL AS DECIMAL ) * - 49 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT 30 * + 86 / - - COUNT ( * ) + - CAST ( NULL AS REAL ) * - 49 + 40
----
NULL

query I rowsort
SELECT ALL + 14 + + 87
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT MIN( ALL + + 72 ), + 60 * + 64 * + ( - 87 ) + + 14 AS col1
----
72
-334066

skipif mysql # not compatible
query II rowsort label-2678
SELECT MIN ( ALL + + 72 ), + 60 * + 64 * + ( - 87 ) + + 14 AS col1
----
72
-334066

query I rowsort
SELECT + 18 - + - 50
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2680
SELECT DISTINCT + + ( + - COUNT( * ) ), - 48 DIV 86 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2680
SELECT DISTINCT + + ( + - COUNT ( * ) ), - 48 / 86 AS col0
----
-1
0

query I rowsort
SELECT - - 68 * - 5 * + + NULLIF ( + - 39, - 41 ) + 63 col1
----
13323

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2682
SELECT ALL + 71 - - + 29 * - CAST( NULL AS SIGNED ) AS col1, 68 + + 80 AS col0
----
NULL
148

skipif mysql # not compatible
query II rowsort label-2682
SELECT ALL + 71 - - + 29 * - CAST ( NULL AS INTEGER ) AS col1, 68 + + 80 AS col0
----
NULL
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT + 80 DIV + ( - COUNT( * ) ) - - ( - 38 )
----
-118

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 80 / + ( - COUNT ( * ) ) - - ( - 38 )
----
-118

query I rowsort
SELECT ALL 50 * - 6
----
-300

query II rowsort
SELECT + 91 AS col2, + 85 * - 34
----
91
-2890

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2686
SELECT + 93 AS col0, NULLIF ( + + MAX( - 9 ), + CAST( NULL AS DECIMAL ) )
----
93
-9

skipif mysql # not compatible
query II rowsort label-2686
SELECT + 93 AS col0, NULLIF ( + + MAX ( - 9 ), + CAST ( NULL AS REAL ) )
----
93
-9

query I rowsort
SELECT 76 + 14
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT 12 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT 12 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL + 99 * COUNT( * ) * - 36
----
-3564

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + 99 * COUNT ( * ) * - 36
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT 86 + 63 + MIN( DISTINCT + 47 ) col2
----
196

skipif mysql # not compatible
query I rowsort label-2690
SELECT 86 + 63 + MIN ( DISTINCT + 47 ) col2
----
196

query II rowsort
SELECT 21 - - - 57 * + 99 col0, - 26 + - + 40 + 69 AS col0
----
-5622
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2692
SELECT 33, - NULLIF ( - + 0, - 92 ) * ( - + COUNT( * ) ) DIV - 42 + + 12 AS col0
----
33
12

skipif mysql # not compatible
query II rowsort label-2692
SELECT 33, - NULLIF ( - + 0, - 92 ) * ( - + COUNT ( * ) ) / - 42 + + 12 AS col0
----
33
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2693
SELECT + 36 * 75 + + - 92 AS col2, CAST( NULL AS SIGNED ) AS col1
----
2608
NULL

skipif mysql # not compatible
query II rowsort label-2693
SELECT + 36 * 75 + + - 92 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
2608
NULL

query I rowsort
SELECT DISTINCT + 81 + - 67 + + - 83 + - 95
----
-164

query I rowsort
SELECT DISTINCT 95 + + - 21 - - 78 * - 80 AS col1
----
-6166

query I rowsort
SELECT 30 + - 21 AS col2
----
9

query I rowsort
SELECT 37 * 62 AS col2
----
2294

query I rowsort
SELECT DISTINCT - 28 * + 51
----
-1428

query I rowsort
SELECT ALL 16 + 10 * + 86 AS col0
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT 34 + - ( 85 ) + - COUNT( * ) * + 73
----
-124

skipif mysql # not compatible
query I rowsort label-2700
SELECT 34 + - ( 85 ) + - COUNT ( * ) * + 73
----
-124

query I rowsort
SELECT DISTINCT - 79 + 66 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - MAX( - + 93 ) * - + 60
----
-5580

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - MAX ( - + 93 ) * - + 60
----
-5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT ALL + 46 + + 36 + - 74 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + 46 + + 36 + - 74 / + COUNT ( * )
----
8

query I rowsort
SELECT ALL + 35 * + 44 * - - ( 73 ) AS col2
----
112420

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT 49 + - - SUM( DISTINCT + 27 )
----
76

skipif mysql # not compatible
query I rowsort label-2705
SELECT 49 + - - SUM ( DISTINCT + 27 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-2706
SELECT ALL ( - 75 ) + 90 AS col2, 87 DIV - + 77 col1
----
15
-1

skipif mysql # not compatible
query II rowsort label-2706
SELECT ALL ( - 75 ) + 90 AS col2, 87 / - + 77 col1
----
15
-1

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

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

query I rowsort
SELECT 82 + - - 52 AS col2
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT + 71 * + - COUNT( * ) * COUNT( * ) DIV COUNT( * ) + + 33 * + - COALESCE ( + COUNT( * ), 22 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 71 * + - COUNT ( * ) * COUNT ( * ) / COUNT ( * ) + + 33 * + - COALESCE ( + COUNT ( * ), 22 ) AS col0
----
-104

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

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

query I rowsort
SELECT 87 * - 20 AS col2
----
-1740

query I rowsort
SELECT + 29 + 82
----
111

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT ALL + + 72 - - COUNT( * ) DIV 87 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + + 72 - - COUNT ( * ) / 87 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT - 38 DIV + ( + - 46 ) * + 95 * - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT - 38 / + ( + - 46 ) * + 95 * - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT 51 + - - SUM( ALL + 42 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2716
SELECT 51 + - - SUM ( ALL + 42 ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2717
SELECT 67 * + - CAST( 19 AS SIGNED ) AS col0
----
-1273

skipif mysql # not compatible
query I rowsort label-2717
SELECT 67 * + - CAST ( 19 AS INTEGER ) AS col0
----
-1273

query I rowsort
SELECT ALL - 58 * 12 AS col0
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT + 14 DIV + + 63 + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 14 / + + 63 + - 87
----
-87

query I rowsort
SELECT 96 + 53
----
149

query I rowsort
SELECT ALL 21 * + 60 * - 1 col0
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT 2 * - 40 * - COUNT( * ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT 2 * - 40 * - COUNT ( * ) / 89 AS col0
----
0

query I rowsort
SELECT 92 * + + 98 col1
----
9016

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT DISTINCT + MIN( + 26 ) + + MAX( DISTINCT - + 93 ) AS col0, 47
----
-67
47

skipif mysql # not compatible
query II rowsort label-2724
SELECT DISTINCT + MIN ( + 26 ) + + MAX ( DISTINCT - + 93 ) AS col0, 47
----
-67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT 30 * MAX( 7 )
----
210

skipif mysql # not compatible
query I rowsort label-2725
SELECT 30 * MAX ( 7 )
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL + 77 + + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 77 + + - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT 77 * 52 - - - COUNT( * ) col1
----
4003

skipif mysql # not compatible
query I rowsort label-2727
SELECT 77 * 52 - - - COUNT ( * ) col1
----
4003

query I rowsort
SELECT 20 - - - 83 AS col1
----
-63

query II rowsort
SELECT + 44 * + 37 col2, 39
----
1628
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2730
SELECT DISTINCT + - 0 + + 17 * 62 + - - NULLIF ( + COALESCE ( - - CAST( NULL AS SIGNED ), - - 24 * 54 + - 58 * - 11 * - COUNT( * ) + - 30 ), + 89 / + 29 ), + CAST( NULL AS DECIMAL ) * + - 0 + 76 * - SUM( DISTINCT + - 24 ) AS col2
----
1682
NULL

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT + - 0 + + 17 * 62 + - - NULLIF ( + COALESCE ( - - CAST ( NULL AS INTEGER ), - - 24 * 54 + - 58 * - 11 * - COUNT ( * ) + - 30 ), + 89 / + 29 ), + CAST ( NULL AS REAL ) * + - 0 + 76 * - SUM ( DISTINCT + - 24 ) AS col2
----
1682
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 50 DIV - - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 50 / - - 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COALESCE ( + - 61, + COUNT( * ) * - ( - 54 ) * - 19 ) + 64
----
125

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COALESCE ( + - 61, + COUNT ( * ) * - ( - 54 ) * - 19 ) + 64
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT + - NULLIF ( - + SUM( - - 0 ), - + COUNT( * ) ) - - 4
----
4

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + - NULLIF ( - + SUM ( - - 0 ), - + COUNT ( * ) ) - - 4
----
4

query I rowsort
SELECT 17 + + 98 + - - ( 53 ) - + - 86 + - COALESCE ( + + 36, 25 ) - 4
----
214

query I rowsort
SELECT DISTINCT + ( - ( - 20 ) ) AS col1
----
20

query I rowsort
SELECT + NULLIF ( - 67, 95 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - 23 * SUM( ALL 40 ) * + + COUNT( * ) - + 33 AS col0
----
-953

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - 23 * SUM ( ALL 40 ) * + + COUNT ( * ) - + 33 AS col0
----
-953

query I rowsort
SELECT + 69 + - + 82 AS col1
----
-13

query II rowsort
SELECT + 83 + - + 88 AS col0, - 66
----
-5
-66

query I rowsort
SELECT ALL - 73 * + 25 AS col2
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + - 68 * - 38 * + SUM( ALL - 98 )
----
-253232

skipif mysql # not compatible
query I rowsort label-2741
SELECT + - 68 * - 38 * + SUM ( ALL - 98 )
----
-253232

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT - CASE 80 WHEN MIN( + 2 ) THEN + COUNT( * ) WHEN - 18 + + - 88 + - + 72 * + 23 + 58 + CAST( + 38 AS SIGNED ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT - CASE 80 WHEN MIN ( + 2 ) THEN + COUNT ( * ) WHEN - 18 + + - 88 + - + 72 * + 23 + 58 + CAST ( + 38 AS INTEGER ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + COALESCE ( - MAX( + 50 ), + 2, - - 56 + 58 ) - 41 col1
----
-91

skipif mysql # not compatible
query I rowsort label-2744
SELECT + COALESCE ( - MAX ( + 50 ), + 2, - - 56 + 58 ) - 41 col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - NULLIF ( - 13, - 76 + + 77 + COALESCE ( MAX( ALL + 91 ), + - 20 ) * 22 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2745
SELECT - NULLIF ( - 13, - 76 + + 77 + COALESCE ( MAX ( ALL + 91 ), + - 20 ) * 22 ) AS col0
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL + ( + COUNT( * ) ) * - 99 + - 19 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + ( + COUNT ( * ) ) * - 99 + - 19 AS col2
----
-118

query I rowsort
SELECT COALESCE ( - 33, - 7 * + 43, - 78 + 41, - - 88 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT + 32 DIV ( + - COALESCE ( SUM( + 47 ), + + 62 DIV - COUNT( * ) + - - ( + 63 ) + - - 4 + - 30 * + COUNT( * ) * - 76, + + 85 * 21 * + COALESCE ( - 88, + 28 + + 26 * - NULLIF ( - 7, 30 ) ) ) ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT + 32 / ( + - COALESCE ( SUM ( + 47 ), + + 62 / - COUNT ( * ) + - - ( + 63 ) + - - 4 + - 30 * + COUNT ( * ) * - 76, + + 85 * 21 * + COALESCE ( - 88, + 28 + + 26 * - NULLIF ( - 7, 30 ) ) ) ) * + 68
----
0

query I rowsort
SELECT DISTINCT 77 * 66 + + + 91 AS col2
----
5173

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

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

query I rowsort
SELECT + 26 - + 28 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + NULLIF ( CASE + MIN( DISTINCT + + 58 ) WHEN 15 / - 95 + - SUM( DISTINCT ( - 96 ) ) THEN 68 END, + 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT + NULLIF ( CASE + MIN ( DISTINCT + + 58 ) WHEN 15 / - 95 + - SUM ( DISTINCT ( - 96 ) ) THEN 68 END, + 8 ) AS col0
----
NULL

query I rowsort
SELECT - 78 * - 96 AS col0
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + 90 + SUM( + 22 ) + - ( ( + - COALESCE ( - 62, + 63 * - 44 ) ) ) + - COUNT( * ) + - - 65 * - MAX( DISTINCT 93 ) * + + 34 + + 99 * MAX( ALL + - 53 ) * - 15 + NULLIF ( + ( 38 ), COUNT( * ) )
----
-126738

skipif mysql # not compatible
query I rowsort label-2756
SELECT + 90 + SUM ( + 22 ) + - ( ( + - COALESCE ( - 62, + 63 * - 44 ) ) ) + - COUNT ( * ) + - - 65 * - MAX ( DISTINCT 93 ) * + + 34 + + 99 * MAX ( ALL + - 53 ) * - 15 + NULLIF ( + ( 38 ), COUNT ( * ) )
----
-126738

query I rowsort
SELECT CASE - 43 WHEN - 84 THEN 73 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + COALESCE ( + 69, + 51, + COUNT( * ) * + CASE - COUNT( * ) WHEN - COUNT( - 27 ) * - ( 32 ) * + 1 + 47 THEN + 89 * + ( + 18 ) WHEN 65 + + 67 * 40 THEN NULL WHEN + NULLIF ( 8, MIN( ALL 18 ) * 99 ) THEN NULL END * + 41, 1 )
----
69

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + COALESCE ( + 69, + 51, + COUNT ( * ) * + CASE - COUNT ( * ) WHEN - COUNT ( - 27 ) * - ( 32 ) * + 1 + 47 THEN + 89 * + ( + 18 ) WHEN 65 + + 67 * 40 THEN NULL WHEN + NULLIF ( 8, MIN ( ALL 18 ) * 99 ) THEN NULL END * + 41, 1 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT - COUNT( * ) AS col0, + 20 * - 63 * - + ( + + 68 )
----
-1
85680

skipif mysql # not compatible
query II rowsort label-2759
SELECT - COUNT ( * ) AS col0, + 20 * - 63 * - + ( + + 68 )
----
-1
85680

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - ( + - 73 ) + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2760
SELECT - ( + - 73 ) + - COUNT ( * ) AS col1
----
72

query II rowsort
SELECT - - 81 AS col2, ( 62 )
----
81
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - 97 + - + ( - COUNT( * ) ) - - 99
----
3

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 97 + - + ( - COUNT ( * ) ) - - 99
----
3

query I rowsort
SELECT - - 80 - 25
----
55

query I rowsort
SELECT - 24 * - 56
----
1344

query I rowsort
SELECT - + 6 + - 50 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2766
SELECT - + CAST( - COALESCE ( + CAST( NULL AS DECIMAL ), + 19, COUNT( * ) ) AS SIGNED ) * + 85 AS col2, + 65 * + + 35 AS col1
----
1615
2275

skipif mysql # not compatible
query II rowsort label-2766
SELECT - + CAST ( - COALESCE ( + CAST ( NULL AS REAL ), + 19, COUNT ( * ) ) AS INTEGER ) * + 85 AS col2, + 65 * + + 35 AS col1
----
1615
2275

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT + + 56 * SUM( DISTINCT 81 ) AS col2, COUNT( * ) AS col1
----
4536
1

skipif mysql # not compatible
query II rowsort label-2767
SELECT + + 56 * SUM ( DISTINCT 81 ) AS col2, COUNT ( * ) AS col1
----
4536
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT - ( 62 ) + - 21 + - 7 + 81 + - ( COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-2768
SELECT - ( 62 ) + - 21 + - 7 + 81 + - ( COUNT ( * ) )
----
-10

query I rowsort
SELECT + 9 - 23 + - 70
----
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT - CAST( - 77 AS SIGNED ) + - 9 * - 65 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT - CAST ( - 77 AS INTEGER ) + - 9 * - 65 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 13 + + 72 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT - NULLIF ( - ( - 66 ), + 90 * + + 93 * + 12 + COUNT( * ) * 74 + 69 + + 0 * - ( - 43 ) + + 27 + ( 29 ) * ( CAST( NULL AS SIGNED ) ) / + + 28 + + + 48 )
----
-66

skipif mysql # not compatible
query I rowsort label-2773
SELECT - NULLIF ( - ( - 66 ), + 90 * + + 93 * + 12 + COUNT ( * ) * 74 + 69 + + 0 * - ( - 43 ) + + 27 + ( 29 ) * ( CAST ( NULL AS INTEGER ) ) / + + 28 + + + 48 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2774
SELECT ALL - 49 + - COALESCE ( 42, 59 DIV + COUNT( * ) * + 59 * - CAST( NULL AS SIGNED ) * 6, 25 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 49 + - COALESCE ( 42, 59 / + COUNT ( * ) * + 59 * - CAST ( NULL AS INTEGER ) * 6, 25 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT + CASE 4 WHEN + ( - 74 ) * + + COUNT( * ) + - 83 * - + 64 * + CASE + + 90 WHEN 21 THEN 77 * 72 * - - 72 + 30 WHEN + 37 THEN NULL ELSE NULL END THEN - - 64 WHEN + COALESCE ( - CAST( NULL AS SIGNED ), + + COUNT( * ) * - CAST( - - 12 AS SIGNED ), COUNT( * ) - + 27 ) + CASE 20 - + 32 WHEN 77 THEN NULLIF ( 13, 2 + + SUM( DISTINCT + 69 + 75 ) * - 33 ) * - 59 END THEN - 49 * - ( 74 ) ELSE 75 END + + 45 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT + CASE 4 WHEN + ( - 74 ) * + + COUNT ( * ) + - 83 * - + 64 * + CASE + + 90 WHEN 21 THEN 77 * 72 * - - 72 + 30 WHEN + 37 THEN NULL ELSE NULL END THEN - - 64 WHEN + COALESCE ( - CAST ( NULL AS INTEGER ), + + COUNT ( * ) * - CAST ( - - 12 AS INTEGER ), COUNT ( * ) - + 27 ) + CASE 20 - + 32 WHEN 77 THEN NULLIF ( 13, 2 + + SUM ( DISTINCT + 69 + 75 ) * - 33 ) * - 59 END THEN - 49 * - ( 74 ) ELSE 75 END + + 45 AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT ALL - 28 DIV + + 35 + 74 col2
----
74

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL - 28 / + + 35 + 74 col2
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2777
SELECT 13 DIV - + 31 + - CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2777
SELECT 13 / - + 31 + - CAST ( 1 AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT ALL - ( 70 ) DIV - 89 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - ( 70 ) / - 89 + - 18
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-2779
SELECT DISTINCT + 59 AS col2, - 61 DIV - - ( - ( 85 ) ) - - 37 * - 56 * - 51
----
59
105672

skipif mysql # not compatible
query II rowsort label-2779
SELECT DISTINCT + 59 AS col2, - 61 / - - ( - ( 85 ) ) - - 37 * - 56 * - 51
----
59
105672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT SUM( + - CAST( NULL AS SIGNED ) ) * - 84 + 28 + + ( - - ( - 15 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT SUM ( + - CAST ( NULL AS INTEGER ) ) * - 84 + 28 + + ( - - ( - 15 ) ) AS col1
----
NULL

query I rowsort
SELECT + 90 * + 9
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + 96 * - COALESCE ( + 48, + NULLIF ( 22, - + NULLIF ( - - 36, 17 ) + - COUNT( * ) ), - + 27 + + + 63 + - - MAX( - 24 ), - - 43 ) * + 55 * - NULLIF ( - - COUNT( * ), - + COALESCE ( - 14, + 55 ) + 91 + - 15 ) * + 45
----
11404800

skipif mysql # not compatible
query I rowsort label-2782
SELECT + 96 * - COALESCE ( + 48, + NULLIF ( 22, - + NULLIF ( - - 36, 17 ) + - COUNT ( * ) ), - + 27 + + + 63 + - - MAX ( - 24 ), - - 43 ) * + 55 * - NULLIF ( - - COUNT ( * ), - + COALESCE ( - 14, + 55 ) + 91 + - 15 ) * + 45
----
11404800

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2784
SELECT ALL + 91 AS col1, 17 * - CAST( NULL AS DECIMAL )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL + 91 AS col1, 17 * - CAST ( NULL AS REAL )
----
91
NULL

query I rowsort
SELECT + 60 * + + 98
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT DISTINCT + 41 DIV + 89 - + 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + 41 / + 89 - + 32 AS col2
----
-32

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

query I rowsort
SELECT + + 67 * - - 2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL MIN( ALL - - 4 ) * + 56
----
224

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL MIN ( ALL - - 4 ) * + 56
----
224

query I rowsort
SELECT 92 * - + 11 * 63 * + + 99 - + + 51
----
-6311895

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT + - 34 AS col1, 7 * - 14 + + COUNT( * )
----
-34
-97

skipif mysql # not compatible
query II rowsort label-2791
SELECT + - 34 AS col1, 7 * - 14 + + COUNT ( * )
----
-34
-97

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2793
SELECT DISTINCT 82 AS col0, - CAST( NULL AS DECIMAL ) AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2793
SELECT DISTINCT 82 AS col0, - CAST ( NULL AS REAL ) AS col0
----
82
NULL

query II rowsort
SELECT ALL 15, 46 AS col2
----
15
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT COUNT( * ) + + 84 + 71 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-2795
SELECT COUNT ( * ) + + 84 + 71 AS col2
----
156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT DISTINCT - + 36 DIV 12 + - + 13 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - + 36 / 12 + - + 13 AS col2
----
-16

query I rowsort
SELECT 95 * 6 - + 71 AS col0
----
499

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL - 80 + + 95 DIV + 96
----
-80

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - 80 + + 95 / + 96
----
-80

query I rowsort
SELECT 83 * + - 43
----
-3569

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT COUNT( * ) + + 79 - + + MAX( DISTINCT + 28 ) - - 10 * + - NULLIF ( - - ( - 29 ), + - 79 ) * - 63 AS col2
----
-18218

skipif mysql # not compatible
query I rowsort label-2801
SELECT COUNT ( * ) + + 79 - + + MAX ( DISTINCT + 28 ) - - 10 * + - NULLIF ( - - ( - 29 ), + - 79 ) * - 63 AS col2
----
-18218

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT 95 DIV - 22
----
-4

skipif mysql # not compatible
query I rowsort label-2802
SELECT 95 / - 22
----
-4

query II rowsort
SELECT ALL 62 + - 13 + - + 17 + - + 61 + + CASE - 32 WHEN 55 * + 0 + - + 59 THEN 25 WHEN + 37 THEN NULL ELSE NULL END * + + 26 * - 97 * 70 * + 36 AS col1, 57 * + 32 AS col1
----
NULL
1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT ALL + SUM( 96 ) + 85 + + 88 + + - 89 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + SUM ( 96 ) + 85 + + 88 + + - 89 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT 21 DIV 45 DIV - - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT 21 / 45 / - - 17 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT - COUNT( * ) DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - COUNT ( * ) / + 17
----
0

query I rowsort
SELECT 1 - - ( - 57 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL + ( - 11 ) + + SUM( - 52 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + ( - 11 ) + + SUM ( - 52 ) AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT 11 - - - MAX( DISTINCT - 29 ) DIV - 18
----
10

skipif mysql # not compatible
query I rowsort label-2809
SELECT 11 - - - MAX ( DISTINCT - 29 ) / - 18
----
10

query II rowsort
SELECT 18 * ( - NULLIF ( + - 25, + 41 * + - 92 ) ) + - + 62, - ( - 30 ) AS col1
----
388
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2811
SELECT ALL - CAST( NULL AS DECIMAL ) * - ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - CAST ( NULL AS REAL ) * - ( + 37 )
----
NULL

query I rowsort
SELECT ALL - CASE 12 WHEN - - ( - - 96 ) * + 48 THEN - + 12 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( 76 ) - - + 17 AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + 93 * + + ( - - 49 ) * - CASE + - COUNT( * ) WHEN - 78 THEN - - ( 1 ) END - + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 93 * + + ( - - 49 ) * - CASE + - COUNT ( * ) WHEN - 78 THEN - - ( 1 ) END - + + 14
----
NULL

query I rowsort
SELECT DISTINCT - + 64 * + 18 + + 30 AS col0
----
-1122

query I rowsort
SELECT - 30 * - 33 AS col1
----
990

query III rowsort
SELECT 69 * + 31 AS col0, - 20 AS col1, 28 AS col1
----
2139
-20
28

query I rowsort
SELECT 72 + - 80
----
-8

query I rowsort
SELECT 47 * + 60 + + 24
----
2844

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT 62 - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2822
SELECT 62 - COUNT ( * ) AS col1
----
61

query II rowsort
SELECT COALESCE ( - - 51, + + 94, - 10 * ( + 19 ) ) * + 96, 10 AS col2
----
4896
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2825
SELECT ALL - 86 * - + CAST( NULL AS SIGNED ), + COUNT( * ) * + + 95 - - - 57 AS col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL - 86 * - + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + + 95 - - - 57 AS col0
----
NULL
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT + 17 + + COUNT( * ) DIV + - 41 + + + 11 - - 71 + - + 21
----
78

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 17 + + COUNT ( * ) / + - 41 + + + 11 - - 71 + - + 21
----
78

query I rowsort
SELECT + 7 + + - 54
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT - 46 * + 76 + - 93 + - 32 + + ( + - COUNT( * ) ) * COUNT( * ) + + 64 AS col2, 7 * - SUM( - 54 ) * + 63
----
-3558
23814

skipif mysql # not compatible
query II rowsort label-2828
SELECT - 46 * + 76 + - 93 + - 32 + + ( + - COUNT ( * ) ) * COUNT ( * ) + + 64 AS col2, 7 * - SUM ( - 54 ) * + 63
----
-3558
23814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2829
SELECT 18 * + SUM( + 72 ) + 75 - 21 - + 59 DIV - CAST( - 46 AS SIGNED ) AS col2, - 85 AS col1
----
1349
-85

skipif mysql # not compatible
query II rowsort label-2829
SELECT 18 * + SUM ( + 72 ) + 75 - 21 - + 59 / - CAST ( - 46 AS INTEGER ) AS col2, - 85 AS col1
----
1349
-85

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

skipif mysql # not compatible
query I rowsort label-2830
SELECT ( 81 ) * COUNT ( * )
----
81

query I rowsort
SELECT ALL - ( - - 65 ) + + + ( - 74 ) * + 22
----
-1693

query I rowsort
SELECT DISTINCT + 95 + + + 77 AS col0
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2833
SELECT DISTINCT 89 AS col1, - CAST( COUNT( * ) AS SIGNED ) * + + 77 + 61 * - 46 AS col0
----
89
-2883

skipif mysql # not compatible
query II rowsort label-2833
SELECT DISTINCT 89 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) * + + 77 + 61 * - 46 AS col0
----
89
-2883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2834
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2834
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col0
----
-1
NULL

query I rowsort
SELECT 30 + + 73 AS col1
----
103

query I rowsort
SELECT ALL 9 + 3 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COUNT( * ) + - ( + 79 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) + - ( + 79 ) AS col2
----
-78

query I rowsort
SELECT 40 + + 58
----
98

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

skipif mysql # not compatible
query I rowsort label-2839
SELECT 46 - + 2 + - COUNT ( * ) * + ( - 0 ) AS col0
----
44

query I rowsort
SELECT 49 * + - 35
----
-1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2841
SELECT COALESCE ( + - 23, + CASE + ( + + 28 ) WHEN - 14 + + - 52 + - 94 * + 61 * + - 69 + MAX( ALL + - 5 ) + 97 THEN NULL ELSE - 9 * + 97 END DIV - - 49 + - 37 * - COUNT( * ) ) + + 80, + 49 * CASE + - 49 WHEN 5 THEN 49 WHEN + 55 * 27 THEN CAST( NULL AS SIGNED ) END + + 98 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2841
SELECT COALESCE ( + - 23, + CASE + ( + + 28 ) WHEN - 14 + + - 52 + - 94 * + 61 * + - 69 + MAX ( ALL + - 5 ) + 97 THEN NULL ELSE - 9 * + 97 END / - - 49 + - 37 * - COUNT ( * ) ) + + 80, + 49 * CASE + - 49 WHEN 5 THEN 49 WHEN + 55 * 27 THEN CAST ( NULL AS INTEGER ) END + + 98 AS col2
----
57
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT COUNT( * ) - 42 - - 9 + + - CAST( - + AVG ( - 16 ) AS SIGNED ) * 21
----
-368

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT COUNT ( * ) - 42 - - 9 + + - CAST ( - + AVG ( - 16 ) AS INTEGER ) * 21
----
-368

query I rowsort
SELECT DISTINCT 66 * - + 9 AS col2
----
-594

query I rowsort
SELECT 46 + - CASE - + 84 WHEN - 49 THEN NULL WHEN + 13 THEN + 91 ELSE NULL END
----
NULL

query I rowsort
SELECT 29 * + 78
----
2262

query I rowsort
SELECT 65 + 87
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT 36 / - 95 / - CAST( NULL AS SIGNED ) * - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT 36 / - 95 / - CAST ( NULL AS INTEGER ) * - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2850
SELECT + + 53 AS col0, 45 DIV - 61 + + 43 * + 34 + - - COUNT( * )
----
53
1463

skipif mysql # not compatible
query II rowsort label-2850
SELECT + + 53 AS col0, 45 / - 61 + + 43 * + 34 + - - COUNT ( * )
----
53
1463

query I rowsort
SELECT ALL - COALESCE ( 81, - - 30 * + - CASE + + 56 WHEN - + 47 + 7 - + 42 + + 11 THEN - 60 ELSE NULL END ) AS col1
----
-81

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

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

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

skipif mysql # not compatible
query I rowsort label-2853
SELECT - - 1 * 21 + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( 13, - 34 )
----
13

query I rowsort
SELECT ALL - - 94 * - 71 * 48 AS col0
----
-320352

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT DISTINCT + + 12 AS col1, - MIN( ALL - + 66 ) AS col1
----
12
66

skipif mysql # not compatible
query II rowsort label-2857
SELECT DISTINCT + + 12 AS col1, - MIN ( ALL - + 66 ) AS col1
----
12
66

query I rowsort
SELECT ALL 94 * + 81 + - COALESCE ( + - 5, + 48 )
----
7619

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

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

query I rowsort
SELECT + 36 + + 60 + + - 20
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL + 2 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL + 2 / - 76 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT + 51 DIV - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 51 / - 98 col2
----
0

query II rowsort
SELECT - CASE + 72 WHEN 73 THEN 4 END, + 62 - - - COALESCE ( - 74, - 46 ) AS col1
----
NULL
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL ( - + 90 ) * - COALESCE ( + COUNT( ALL + + 21 ), - 48 * + 46 )
----
90

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL ( - + 90 ) * - COALESCE ( + COUNT ( ALL + + 21 ), - 48 * + 46 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT + 15 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 15 / + 41
----
0

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

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

query I rowsort
SELECT + 61 * - 55 AS col2
----
-3355

query I rowsort
SELECT DISTINCT + 1 - + - 27 + + + 11 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT + SUM( - 0 ) * + 26 + - 69 col1
----
-69

skipif mysql # not compatible
query I rowsort label-2869
SELECT + SUM ( - 0 ) * + 26 + - 69 col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2870
SELECT + 25 * + CASE + ( + 59 ) WHEN - 18 * - CAST( + - 16 AS DECIMAL ) * + - 1 * MAX( DISTINCT - ( + 95 ) ) / - 60 + + - 66 * - - COUNT( DISTINCT + - 83 ) * - 45 / - + 12 + + 87 THEN - - 50 ELSE - ( 2 ) END AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2870
SELECT + 25 * + CASE + ( + 59 ) WHEN - 18 * - CAST ( + - 16 AS REAL ) * + - 1 * MAX ( DISTINCT - ( + 95 ) ) / - 60 + + - 66 * - - COUNT ( DISTINCT + - 83 ) * - 45 / - + 12 + + 87 THEN - - 50 ELSE - ( 2 ) END AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT + 84 + 95, COUNT( * ) AS col2
----
179
1

skipif mysql # not compatible
query II rowsort label-2871
SELECT + 84 + 95, COUNT ( * ) AS col2
----
179
1

query I rowsort
SELECT + 1 - 82 + - + 64
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - CASE + 21 WHEN 40 THEN + CASE + 95 WHEN - 84 THEN NULL WHEN - - 73 THEN NULL ELSE + COALESCE ( COUNT( + NULLIF ( + 29, - 28 ) ), + COUNT( * ), + MAX( ALL + COALESCE ( - + 44, 42 ) ) * NULLIF ( + 37, 6 ) ) END + ( - 0 ) + - - NULLIF ( + 29, 10 * 92 + 38 * 15 ) * 3 * - ( 38 + - 65 ) ELSE NULL END * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT - CASE + 21 WHEN 40 THEN + CASE + 95 WHEN - 84 THEN NULL WHEN - - 73 THEN NULL ELSE + COALESCE ( COUNT ( + NULLIF ( + 29, - 28 ) ), + COUNT ( * ), + MAX ( ALL + COALESCE ( - + 44, 42 ) ) * NULLIF ( + 37, 6 ) ) END + ( - 0 ) + - - NULLIF ( + 29, 10 * 92 + 38 * 15 ) * 3 * - ( 38 + - 65 ) ELSE NULL END * - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + MIN( DISTINCT - + 91 ) + - 62 col0
----
-153

skipif mysql # not compatible
query I rowsort label-2874
SELECT + MIN ( DISTINCT - + 91 ) + - 62 col0
----
-153

query I rowsort
SELECT ALL + 83 * 64 * - 27 AS col1
----
-143424

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT 5 DIV + 43 + - + ( - + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2876
SELECT 5 / + 43 + - + ( - + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + 41 * + 86 * - SUM( - 96 ) * - 85 + + - 34 + - 4 * - 74 * 48 * COUNT( ALL + 6 )
----
-28757986

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + 41 * + 86 * - SUM ( - 96 ) * - 85 + + - 34 + - 4 * - 74 * 48 * COUNT ( ALL + 6 )
----
-28757986

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + + 30 + 65 * - COUNT( * ) * - 63
----
4125

skipif mysql # not compatible
query I rowsort label-2878
SELECT + + 30 + 65 * - COUNT ( * ) * - 63
----
4125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT - 35 DIV + - 9 + - ( - 36 ) + 3 * + + 8 * 55
----
1359

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - 35 / + - 9 + - ( - 36 ) + 3 * + + 8 * 55
----
1359

query I rowsort
SELECT - - 3 + + 49 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT - + 98 * + - 62 * - 52 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT - + 98 * + - 62 * - 52 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 34 * 98 + - - 96 AS col2
----
3428

query I rowsort
SELECT + 25 - - 79
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT + 34 * - COUNT( * ) * CAST( NULL AS SIGNED ) + + 20 - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + 34 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 20 - + 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2886
SELECT ALL - 99 * COUNT( * ) DIV + - 37 + 14 AS col0, 82
----
16
82

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL - 99 * COUNT ( * ) / + - 37 + 14 AS col0, 82
----
16
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - 91 * - 14 * - COUNT( * )
----
-1274

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 91 * - 14 * - COUNT ( * )
----
-1274

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

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

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

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + 41 * + COUNT ( * ) - - COUNT ( * ) AS col1
----
42

query I rowsort
SELECT - 74 * + 21
----
-1554

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

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

query I rowsort
SELECT - ( ( 43 ) ) AS col2
----
-43

query I rowsort
SELECT - 67 + 84
----
17

query I rowsort
SELECT ALL 55 * + - 30 AS col0
----
-1650

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2897
SELECT DISTINCT - ( + - 89 ) DIV - 42 AS col2, 46 - - + 10 AS col0
----
-2
56

skipif mysql # not compatible
query II rowsort label-2897
SELECT DISTINCT - ( + - 89 ) / - 42 AS col2, 46 - - + 10 AS col0
----
-2
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT + 96 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 96 / - 38
----
-2

query II rowsort
SELECT ALL 8 * + 59 * - NULLIF ( 83, - + 54 + 64 - + AVG ( ALL + 61 ) + 22 * AVG ( + 89 ) ) AS col1, + 66
----
-39176
66

query I rowsort
SELECT + 14 + 30 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - MAX( DISTINCT 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-2901
SELECT - MAX ( DISTINCT 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + SUM( DISTINCT 73 ) + - 57 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2902
SELECT + SUM ( DISTINCT 73 ) + - 57 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT - CASE - COUNT( * ) WHEN - - 54 * - - ( + + ( 18 ) ) * 60 + + 17 + - COUNT( * ) THEN + 30 WHEN - - 74 + COALESCE ( + 59, - 37 ) / - 46 + + + 65 + 25 * - - 32 THEN SUM( - - COALESCE ( - + 23, + 36 + + 94 ) ) + CAST( NULL AS SIGNED ) + - 59 WHEN + 52 + - 47 * 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT - CASE - COUNT ( * ) WHEN - - 54 * - - ( + + ( 18 ) ) * 60 + + 17 + - COUNT ( * ) THEN + 30 WHEN - - 74 + COALESCE ( + 59, - 37 ) / - 46 + + + 65 + 25 * - - 32 THEN SUM ( - - COALESCE ( - + 23, + 36 + + 94 ) ) + CAST ( NULL AS INTEGER ) + - 59 WHEN + 52 + - 47 * 58 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2904
SELECT + 66 + - ( - SUM( 67 ) ) DIV - + MAX( 2 ) + + 22 * + 4 + 33
----
154

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 66 + - ( - SUM ( 67 ) ) / - + MAX ( 2 ) + + 22 * + 4 + 33
----
154

query I rowsort
SELECT ALL 72 + - 66 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT 45 + + COUNT( * ) + - - 95 AS col0, + 50 * + - 8 * - 31 * + - COUNT( * )
----
141
-12400

skipif mysql # not compatible
query II rowsort label-2906
SELECT 45 + + COUNT ( * ) + - - 95 AS col0, + 50 * + - 8 * - 31 * + - COUNT ( * )
----
141
-12400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2907
SELECT 81 + + ( - COUNT( * ) ) DIV - 1 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2907
SELECT 81 + + ( - COUNT ( * ) ) / - 1 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ( COALESCE ( + 9, + - 23 ) ) * + COUNT( - 71 )
----
9

skipif mysql # not compatible
query I rowsort label-2908
SELECT ( COALESCE ( + 9, + - 23 ) ) * + COUNT ( - 71 )
----
9

query I rowsort
SELECT ALL 48 + + 18
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT DISTINCT 7 + + 62 + - + COUNT( * ) + + 51 + COUNT( * ) DIV 52
----
119

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT 7 + + 62 + - + COUNT ( * ) + + 51 + COUNT ( * ) / 52
----
119

query I rowsort
SELECT DISTINCT 11 + - 86 AS col0
----
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT 26 * ( + 68 ) * - 76 + - 72 DIV + 58
----
-134369

skipif mysql # not compatible
query I rowsort label-2913
SELECT 26 * ( + 68 ) * - 76 + - 72 / + 58
----
-134369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2914
SELECT ALL 52 * - COUNT( * ) DIV - + 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL 52 * - COUNT ( * ) / - + 60 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT - 39 DIV + SUM( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 39 / + SUM ( + 55 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT - CAST( MAX( ALL - 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - CAST ( MAX ( ALL - 94 ) AS INTEGER )
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + CASE + 49 WHEN 35 - + 35 + - - 72 THEN + 16 * - CASE - + 48 WHEN 95 THEN NULL ELSE + 65 * MAX( - - 58 ) + - COUNT( * ) + - 61 + 0 * - 71 END ELSE NULL END - 45 * + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + CASE + 49 WHEN 35 - + 35 + - - 72 THEN + 16 * - CASE - + 48 WHEN 95 THEN NULL ELSE + 65 * MAX ( - - 58 ) + - COUNT ( * ) + - 61 + 0 * - 71 END ELSE NULL END - 45 * + 85 AS col1
----
NULL

query II rowsort
SELECT 60, 67 * + - 62 AS col2
----
60
-4154

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL COUNT( * ) * - MIN( 85 ) - + 69
----
-154

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL COUNT ( * ) * - MIN ( 85 ) - + 69
----
-154

query I rowsort
SELECT DISTINCT NULLIF ( - - 59, - - 89 * 28 ) - - - 77 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2922
SELECT ALL - 80 DIV + 87 - + 56 * - + 30 + CASE 19 WHEN + + COUNT( * ) THEN 8 WHEN - + 34 + + ( + + 97 ) THEN NULL ELSE + + 26 END
----
1706

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - 80 / + 87 - + 56 * - + 30 + CASE 19 WHEN + + COUNT ( * ) THEN 8 WHEN - + 34 + + ( + + 97 ) THEN NULL ELSE + + 26 END
----
1706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2923
SELECT + 58 AS col1, + 44 - MAX( - 47 ) DIV - 37 AS col0
----
58
43

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 58 AS col1, + 44 - MAX ( - 47 ) / - 37 AS col0
----
58
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT - 56 * ( - CASE WHEN NOT NULL NOT BETWEEN - 36 AND - 3 / - 77 / + ( + ( - - COUNT( * ) ) ) / - - 33 * + + 41 + - 97 * - 41 + - - ( 88 ) * - 85 THEN - - 38 END ) + - + 42 * - - AVG ( ALL CAST( - 86 AS SIGNED ) ) + - - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT - 56 * ( - CASE WHEN NOT NULL NOT BETWEEN - 36 AND - 3 / - 77 / + ( + ( - - COUNT ( * ) ) ) / - - 33 * + + 41 + - 97 * - 41 + - - ( 88 ) * - 85 THEN - - 38 END ) + - + 42 * - - AVG ( ALL CAST ( - 86 AS INTEGER ) ) + - - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT 5 DIV + COUNT( ALL 44 )
----
5

skipif mysql # not compatible
query I rowsort label-2925
SELECT 5 / + COUNT ( ALL 44 )
----
5

query I rowsort
SELECT 40 * - ( - + 2 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2927
SELECT ALL - ( + ( + - CAST( - 72 AS SIGNED ) ) ) / + - NULLIF ( - COUNT( 3 ), + 66 ) * 40 - + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - ( + ( + - CAST ( - 72 AS INTEGER ) ) ) / + - NULLIF ( - COUNT ( 3 ), + 66 ) * 40 - + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT + 83, 35 * - 98 + - ( - 5 ) AS col2
----
83
-3425

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT SUM( DISTINCT - 8 ) + - ( - 17 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-2929
SELECT SUM ( DISTINCT - 8 ) + - ( - 17 ) col0
----
9

query II rowsort
SELECT 27 AS col1, 55 + + 78
----
27
133

query II rowsort
SELECT - 49 AS col0, 26 + - 63
----
-49
-37

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

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

query I rowsort
SELECT 30 * + 76 * 75
----
171000

query I rowsort
SELECT 65 * - ( - - 17 ) AS col0
----
-1105

query I rowsort
SELECT ALL + 29 + 68
----
97

query II rowsort
SELECT DISTINCT 19 col2, - 94
----
19
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + 29 + + MIN( + 79 )
----
108

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + 29 + + MIN ( + 79 )
----
108

query II rowsort
SELECT DISTINCT 74, NULLIF ( - 84, - ( 84 ) + - - 87 ) * - NULLIF ( 73, + + 24 ) AS col0
----
74
6132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT DISTINCT + - CASE - 57 WHEN + - 89 THEN + 81 WHEN - 65 + + 26 * - 27 THEN NULL ELSE NULL END + - ( + + ( - CAST( + 66 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT + - CASE - 57 WHEN + - 89 THEN + 81 WHEN - 65 + + 26 * - 27 THEN NULL ELSE NULL END + - ( + + ( - CAST ( + 66 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL - + 88 DIV + + 41
----
-2

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - + 88 / + + 41
----
-2

query I rowsort
SELECT ALL - 28 + - - 51 + + 65
----
88

query I rowsort
SELECT ALL + 17 + - 48
----
-31

query II rowsort
SELECT ( - - 95 ) + + + CASE 43 WHEN 25 * + 28 + + + 92 THEN + 66 + + - ( 75 ) WHEN - 80 THEN NULL END AS col1, ( - 12 ) AS col0
----
NULL
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT - 57 DIV 35 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT - 57 / 35 / - 97 AS col2
----
0

query I rowsort
SELECT - 66 * 22 - - + 38 + + + ( + 0 ) * 40 col0
----
-1414

query I rowsort
SELECT 41 + - 73 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT 87 DIV 7 + + 94 + - 6 * - 57 AS col1
----
448

skipif mysql # not compatible
query I rowsort label-2947
SELECT 87 / 7 + + 94 + - 6 * - 57 AS col1
----
448

query I rowsort
SELECT + ( 1 ) * - 41
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT DISTINCT 83 * 29 DIV 80 - 86 * 56 - - ( - MAX( DISTINCT - 20 ) ) + 27 AS col2
----
-4739

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT 83 * 29 / 80 - 86 * 56 - - ( - MAX ( DISTINCT - 20 ) ) + 27 AS col2
----
-4739

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2950
SELECT ALL + 51 * + MIN( ALL + - 74 ) * + SUM( DISTINCT + 3 ) + + + 49 - - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + 51 * + MIN ( ALL + - 74 ) * + SUM ( DISTINCT + 3 ) + + + 49 - - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT ALL + 61 * SUM( DISTINCT - 51 ) DIV + 4 - + 21 + - - 20 AS col2
----
-778

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + 61 * SUM ( DISTINCT - 51 ) / + 4 - + 21 + - - 20 AS col2
----
-778

query I rowsort
SELECT - 13 * 41
----
-533

query I rowsort
SELECT - 82 * 65 AS col2
----
-5330

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2955
SELECT ALL - + ( + CASE - 37 WHEN + 42 + + 70 * 71 THEN NULL WHEN - 75 * COUNT( ALL + CAST( NULL AS DECIMAL ) ) + - 81 THEN + 41 / - + 5 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - + ( + CASE - 37 WHEN + 42 + + 70 * 71 THEN NULL WHEN - 75 * COUNT ( ALL + CAST ( NULL AS REAL ) ) + - 81 THEN + 41 / - + 5 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL 70 * + 93 AS col1
----
6510

query I rowsort
SELECT 85 * - 41 * + ( + 41 ) + + + NULLIF ( - + 7, - 0 * - 40 + + - 61 + + - 72 / 63 )
----
-142892

query I rowsort
SELECT 50 * - - 49
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2959
SELECT 21 * + - 84 AS col1, CAST( NULL AS SIGNED ) * - - 97 - - - COALESCE ( - + 87, + + 23 ) AS col0
----
-1764
NULL

skipif mysql # not compatible
query II rowsort label-2959
SELECT 21 * + - 84 AS col1, CAST ( NULL AS INTEGER ) * - - 97 - - - COALESCE ( - + 87, + + 23 ) AS col0
----
-1764
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - 43 * + + 93 * + 67 * + 36 * COUNT( * ) + COALESCE ( 33, 74 ) col2
----
-9645555

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 43 * + + 93 * + 67 * + 36 * COUNT ( * ) + COALESCE ( 33, 74 ) col2
----
-9645555

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT ALL - MAX( + 40 ) AS col1, - 38
----
-40
-38

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL - MAX ( + 40 ) AS col1, - 38
----
-40
-38

query I rowsort
SELECT ALL 9 * 11 AS col2
----
99

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

skipif mysql # not compatible
query I rowsort label-2963
SELECT COUNT ( * ) / - 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2964
SELECT COUNT( * ) * 94 DIV CAST( - + 21 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2964
SELECT COUNT ( * ) * 94 / CAST ( - + 21 AS INTEGER ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 83 * - 38 * + MAX( DISTINCT + 12 ) * - 43 + 24 + 55
----
-1627385

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 83 * - 38 * + MAX ( DISTINCT + 12 ) * - 43 + 24 + 55
----
-1627385

onlyif mysql # aggregate syntax: 
query II rowsort label-2966
SELECT 59 + - + 17 col0, + CASE + 16 WHEN + + 1 THEN - + NULLIF ( + + 22, + 31 * + 77 ) WHEN + 16 * - - COUNT( * ) + + - MAX( ALL 79 ) * - ( 55 ) + - 86 THEN NULL ELSE NULL END * - 77
----
42
NULL

skipif mysql # not compatible
query II rowsort label-2966
SELECT 59 + - + 17 col0, + CASE + 16 WHEN + + 1 THEN - + NULLIF ( + + 22, + 31 * + 77 ) WHEN + 16 * - - COUNT ( * ) + + - MAX ( ALL 79 ) * - ( 55 ) + - 86 THEN NULL ELSE NULL END * - 77
----
42
NULL

query I rowsort
SELECT - 61 * 56 + + - 34
----
-3450

query I rowsort
SELECT ALL - 97 + + + 7 + + 65 + + 3 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + COUNT( ALL 79 ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( ALL 79 ) + + 61
----
62

query I rowsort
SELECT ALL + 24 + ( - 0 ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - 70 * - SUM( 11 ) col2
----
770

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - 70 * - SUM ( 11 ) col2
----
770

query I rowsort
SELECT DISTINCT 95 + + 86 + - - 77 AS col1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT - 52 * + COALESCE ( 41, COUNT( * ) ) * + 10 AS col0
----
-21320

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - 52 * + COALESCE ( 41, COUNT ( * ) ) * + 10 AS col0
----
-21320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT ALL + 97 + COALESCE ( 53, COALESCE ( + NULLIF ( + COUNT( * ), + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ), + 99 ), CASE + - MIN( ALL - 12 ) WHEN + COUNT( * ) * - 72 - - 58 + - MIN( + + 4 ) THEN NULL WHEN 53 - - 63 + 15 THEN NULL ELSE COUNT( ALL + 66 ) END )
----
150

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + 97 + COALESCE ( 53, COALESCE ( + NULLIF ( + COUNT ( * ), + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ), + 99 ), CASE + - MIN ( ALL - 12 ) WHEN + COUNT ( * ) * - 72 - - 58 + - MIN ( + + 4 ) THEN NULL WHEN 53 - - 63 + 15 THEN NULL ELSE COUNT ( ALL + 66 ) END )
----
150

query I rowsort
SELECT - ( + 8 ) + - - 41 * - 7 AS col1
----
-295

query I rowsort
SELECT ALL - 70 * 83 * 24
----
-139440

query II rowsort
SELECT - 28 + + 42 * - + NULLIF ( 91, + - 23 ) AS col1, 91 AS col2
----
-3850
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - 29 * - COUNT( * ) * - 39 + 72
----
-1059

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - 29 * - COUNT ( * ) * - 39 + 72
----
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + - 73 + + NULLIF ( + - 98, - 5 + - + COALESCE ( 3, ( 79 ) + + + 11 + - 74 ) * + 59 + + - COUNT( * ) ) AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + - 73 + + NULLIF ( + - 98, - 5 + - + COALESCE ( 3, ( 79 ) + + + 11 + - 74 ) * + 59 + + - COUNT ( * ) ) AS col2
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT - + COUNT( DISTINCT 31 ), 87 + 38 AS col1
----
-1
125

skipif mysql # not compatible
query II rowsort label-2980
SELECT - + COUNT ( DISTINCT 31 ), 87 + 38 AS col1
----
-1
125

query I rowsort
SELECT - 55 + - - 38
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - MAX( DISTINCT - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - MAX ( DISTINCT - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2984
SELECT DISTINCT - COUNT( * ) DIV + 96 AS col0, 53 * + - MAX( + 65 ) + - ( 49 ) * - 97 * - 63 * + 12
----
0
-3596713

skipif mysql # not compatible
query II rowsort label-2984
SELECT DISTINCT - COUNT ( * ) / + 96 AS col0, 53 * + - MAX ( + 65 ) + - ( 49 ) * - 97 * - 63 * + 12
----
0
-3596713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT - NULLIF ( 65, - 0 * CAST( NULL AS SIGNED ) - - 13 )
----
-65

skipif mysql # not compatible
query I rowsort label-2985
SELECT - NULLIF ( 65, - 0 * CAST ( NULL AS INTEGER ) - - 13 )
----
-65

query I rowsort
SELECT DISTINCT 70 * + 7 + + - 98 AS col1
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT DISTINCT + 86 DIV 33 + 52
----
54

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + 86 / 33 + 52
----
54

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

skipif mysql # not compatible
query I rowsort label-2988
SELECT - + 64 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 84 * + ( - 89 )
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + COUNT( * ) * - COUNT( * ) + + - COALESCE ( - 27, - 43 + - - 52, + 41 * MAX( + 16 ) + - 32 * 66, + + 20 ) * 9 * - - 58
----
14093

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + - COALESCE ( - 27, - 43 + - - 52, + 41 * MAX ( + 16 ) + - 32 * 66, + + 20 ) * 9 * - - 58
----
14093

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2991
SELECT + - NULLIF ( - CAST( NULL AS DECIMAL ), 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT + - NULLIF ( - CAST ( NULL AS REAL ), 95 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 92 * - - 78
----
7176

query I rowsort
SELECT + 45 * - + 41 AS col2
----
-1845

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

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

query II rowsort
SELECT DISTINCT + 1 AS col2, 46 + - + 77 + + 23 AS col2
----
1
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2996
SELECT DISTINCT - COALESCE ( - COUNT( * ), - + 73, - - ( 88 ) * + 81 + CAST( NULL AS SIGNED ) ) * 5, + 10 AS col1
----
5
10

skipif mysql # not compatible
query II rowsort label-2996
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - + 73, - - ( 88 ) * + 81 + CAST ( NULL AS INTEGER ) ) * 5, + 10 AS col1
----
5
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT ALL 39 * 5 * + COUNT( * ) + 45 DIV - 2 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL 39 * 5 * + COUNT ( * ) + 45 / - 2 AS col0
----
173

query I rowsort
SELECT ALL ( + 92 ) * - - 87 * - 73 * + 92 + - - 79
----
-53754785

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT DISTINCT + 83 * 18 + - SUM( 43 ) AS col1, + 76 * + COUNT( * ) * - 3 * + + 14 col2
----
1451
-3192

skipif mysql # not compatible
query II rowsort label-2999
SELECT DISTINCT + 83 * 18 + - SUM ( 43 ) AS col1, + 76 * + COUNT ( * ) * - 3 * + + 14 col2
----
1451
-3192

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

query I rowsort
SELECT ALL 76 * + - 76 + 85
----
-5691

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT ALL COUNT( * ) * - 73 + 58 AS col2, COUNT( * ) + NULLIF ( - NULLIF ( + 65, - 76 * - - 41 ), 79 )
----
-15
-64

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL COUNT ( * ) * - 73 + 58 AS col2, COUNT ( * ) + NULLIF ( - NULLIF ( + 65, - 76 * - - 41 ), 79 )
----
-15
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT CASE + ( - 5 ) WHEN + + 19 THEN + + 40 + - COUNT( * ) + + 58 WHEN + - MIN( ALL - 5 ) * + COUNT( * ) * 32 + + COUNT( * ) + + 15 THEN NULL ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3003
SELECT CASE + ( - 5 ) WHEN + + 19 THEN + + 40 + - COUNT ( * ) + + 58 WHEN + - MIN ( ALL - 5 ) * + COUNT ( * ) * 32 + + COUNT ( * ) + + 15 THEN NULL ELSE - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT + 78 * 32 * - + ( + 68 )
----
-169728

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - 63 * 27 - + COALESCE ( 57, + - COUNT( * ) ) AS col2
----
-1758

skipif mysql # not compatible
query I rowsort label-3005
SELECT - 63 * 27 - + COALESCE ( 57, + - COUNT ( * ) ) AS col2
----
-1758

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

skipif mysql # not compatible
query I rowsort label-3006
SELECT + COALESCE ( - 73, 35 + - COUNT ( * ) ) AS col0
----
-73

query I rowsort
SELECT ALL 25 * - ( ( - 42 ) )
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT MIN( ALL COALESCE ( + 11, - - 6 * - CAST( NULL AS SIGNED ) * - 53 * + ( 34 ) * - 81 ) )
----
11

skipif mysql # not compatible
query I rowsort label-3008
SELECT MIN ( ALL COALESCE ( + 11, - - 6 * - CAST ( NULL AS INTEGER ) * - 53 * + ( 34 ) * - 81 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL 19 * + MAX( DISTINCT + 14 ) + + 6 + 81 * 43 * + 78 * + NULLIF ( - + 77, - COALESCE ( COUNT( * ), 96 * + + COUNT( 18 ) + + - 22 + + 34 * 51 ) ) + + ( + 15 ) * - 47
----
-20919331

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL 19 * + MAX ( DISTINCT + 14 ) + + 6 + 81 * 43 * + 78 * + NULLIF ( - + 77, - COALESCE ( COUNT ( * ), 96 * + + COUNT ( 18 ) + + - 22 + + 34 * 51 ) ) + + ( + 15 ) * - 47
----
-20919331

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

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

query I rowsort
SELECT DISTINCT 54 * + + 23 AS col1
----
1242

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

skipif mysql # not compatible
query I rowsort label-3012
SELECT SUM ( DISTINCT - - 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT - CAST( - CASE - 45 WHEN + 93 THEN - 44 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CAST ( - CASE - 45 WHEN + 93 THEN - 44 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT MAX( + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT MAX ( + - 53 ) AS col2
----
-53

query I rowsort
SELECT + - 95 - 70 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - + MAX( ALL + + 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3016
SELECT - + MAX ( ALL + + 67 ) AS col2
----
-67

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

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

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

skipif mysql # not compatible
query I rowsort label-3018
SELECT - + ( + MIN ( - 51 ) )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT - 48 DIV 19
----
-2

skipif mysql # not compatible
query I rowsort label-3019
SELECT - 48 / 19
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3020
SELECT + COUNT( * ) * 23 DIV + + 95 AS col0, 35 AS col1
----
0
35

skipif mysql # not compatible
query II rowsort label-3020
SELECT + COUNT ( * ) * 23 / + + 95 AS col0, 35 AS col1
----
0
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT ALL 92 AS col1, 72 * + COUNT( * ) + + 23 AS col0
----
92
95

skipif mysql # not compatible
query II rowsort label-3021
SELECT ALL 92 AS col1, 72 * + COUNT ( * ) + + 23 AS col0
----
92
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT - 15 - 70 - CAST( + + 63 AS SIGNED ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 15 - 70 - CAST ( + + 63 AS INTEGER ) AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL NULLIF ( + 66, - COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL NULLIF ( + 66, - COUNT ( * ) ) AS col2
----
66

query I rowsort
SELECT ALL - 84 * + 55 AS col0
----
-4620

query I rowsort
SELECT + CASE + 66 WHEN 91 THEN - 76 * + + 51 END + + 34 + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + MAX( DISTINCT 42 ) * 31
----
1302

skipif mysql # not compatible
query I rowsort label-3026
SELECT + MAX ( DISTINCT 42 ) * 31
----
1302

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT - + 18 + + - 18 * - + 80 AS col0, SUM( ALL - - 13 ) AS col2
----
1422
13

skipif mysql # not compatible
query II rowsort label-3027
SELECT - + 18 + + - 18 * - + 80 AS col0, SUM ( ALL - - 13 ) AS col2
----
1422
13

query I rowsort
SELECT - 78 - - 58 AS col2
----
-20

query II rowsort
SELECT DISTINCT + 22 AS col0, + 75
----
22
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT - 35 + 22 DIV + 2
----
-24

skipif mysql # not compatible
query I rowsort label-3030
SELECT - 35 + 22 / + 2
----
-24

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

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - CAST ( NULL AS INTEGER ) / - 3 * - COUNT ( * ) + - 70 + - + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT ALL COUNT( * ) DIV SUM( ALL 96 ) + COUNT( + 33 ) + ( 57 ) * + 36 * + COUNT( * ) * 73 AS col0
----
149797

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL COUNT ( * ) / SUM ( ALL 96 ) + COUNT ( + 33 ) + ( 57 ) * + 36 * + COUNT ( * ) * 73 AS col0
----
149797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT + 39 DIV - 74 + + ( - 16 ) - - COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + 39 / - 74 + + ( - 16 ) - - COUNT ( * ) col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT - ( + 16 ) DIV COUNT( * ) + + 52 * - + 2
----
-120

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - ( + 16 ) / COUNT ( * ) + + 52 * - + 2
----
-120

query I rowsort
SELECT ALL - 96 + + 40 AS col2
----
-56

query I rowsort
SELECT ALL + 42 + + - NULLIF ( 39, CASE + AVG ( 45 ) WHEN - + 85 THEN NULL WHEN + 19 THEN NULL WHEN + 54 THEN NULL ELSE + - AVG ( ALL - 48 ) * - - 18 END * + 50 / - 8 ) + 99 * + - 50
----
-4947

query I rowsort
SELECT 39 * - COALESCE ( 30, 31 * 10 * + + 83 )
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT 46 DIV + ( - 11 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3038
SELECT 46 / + ( - 11 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT 42 * + - 29 + - + 63 * + + COUNT( - + 20 ) AS col2
----
-1281

skipif mysql # not compatible
query I rowsort label-3039
SELECT 42 * + - 29 + - + 63 * + + COUNT ( - + 20 ) AS col2
----
-1281

query I rowsort
SELECT ALL 49 * - - 89 * 8
----
34888

query I rowsort
SELECT DISTINCT 8 + ( + + 16 ) + + ( - ( + 4 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL 43 + - 38 + ( + 21 ) * + + 34 * 80 + - - NULLIF ( + + COUNT( * ), + COUNT( ALL 71 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 43 + - 38 + ( + 21 ) * + + 34 * 80 + - - NULLIF ( + + COUNT ( * ), + COUNT ( ALL 71 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT ALL 7 - - + 34 DIV - - 35 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL 7 - - + 34 / - - 35 AS col1
----
7

query I rowsort
SELECT DISTINCT - 10 - - - 46 - - 37
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT - 47 * + + 14 - - + MAX( + 94 ) DIV - + COUNT( * )
----
-752

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - 47 * + + 14 - - + MAX ( + 94 ) / - + COUNT ( * )
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + 19 * - NULLIF ( - COUNT( * ), 91 * + 39 + + 27 + + + 52 )
----
19

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + 19 * - NULLIF ( - COUNT ( * ), 91 * + 39 + + 27 + + + 52 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3047
SELECT 16 + - 76 AS col0, 31 * MAX( DISTINCT + - 79 ) DIV + + SUM( ALL + 11 ) * COUNT( ALL 80 ) + - ( CASE - 47 WHEN + 50 * - 4 THEN NULL WHEN - CAST( SUM( ALL - + 54 ) AS SIGNED ) THEN NULL ELSE 73 END ) + - 70 + + ( ( + 77 ) ) + + 35 + + + 55 DIV - 33 AS col0
----
-60
-254

skipif mysql # not compatible
query II rowsort label-3047
SELECT 16 + - 76 AS col0, 31 * MAX ( DISTINCT + - 79 ) / + + SUM ( ALL + 11 ) * COUNT ( ALL 80 ) + - ( CASE - 47 WHEN + 50 * - 4 THEN NULL WHEN - CAST ( SUM ( ALL - + 54 ) AS INTEGER ) THEN NULL ELSE 73 END ) + - 70 + + ( ( + 77 ) ) + + 35 + + + 55 / - 33 AS col0
----
-60
-254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3048
SELECT CAST( - COALESCE ( 28, + - 37 ) AS SIGNED ) DIV + 42 AS col0, 76 * - 17 * - 27 AS col0
----
0
34884

skipif mysql # not compatible
query II rowsort label-3048
SELECT CAST ( - COALESCE ( 28, + - 37 ) AS INTEGER ) / + 42 AS col0, 76 * - 17 * - 27 AS col0
----
0
34884

query I rowsort
SELECT 8 + + 37 AS col1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-3050
SELECT ALL - 3 DIV + + 6 AS col0, 33
----
0
33

skipif mysql # not compatible
query II rowsort label-3050
SELECT ALL - 3 / + + 6 AS col0, 33
----
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT 88 * + CAST( 47 AS SIGNED ) + - COUNT( * ) * - 26 * - - 47 * 98
----
123892

skipif mysql # not compatible
query I rowsort label-3051
SELECT 88 * + CAST ( 47 AS INTEGER ) + - COUNT ( * ) * - 26 * - - 47 * 98
----
123892

query I rowsort
SELECT 34 * 28 AS col2
----
952

query I rowsort
SELECT ALL + 12 + - 16 * + - 51 col2
----
828

query I rowsort
SELECT ALL - 43 + + - 17 AS col0
----
-60

query I rowsort
SELECT DISTINCT ( - 98 ) * - - 4
----
-392

query I rowsort
SELECT 59 * - + 34 AS col1
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3057
SELECT ALL + CAST( 7 AS SIGNED ) + + COUNT( * ) + - 99 DIV + 36 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + CAST ( 7 AS INTEGER ) + + COUNT ( * ) + - 99 / + 36 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3058
SELECT 74 DIV - COUNT( * ) - COUNT( * ) * - - ( 51 ) + + - 35
----
-160

skipif mysql # not compatible
query I rowsort label-3058
SELECT 74 / - COUNT ( * ) - COUNT ( * ) * - - ( 51 ) + + - 35
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT MIN( 2 ) * - 23 + 89
----
43

skipif mysql # not compatible
query I rowsort label-3059
SELECT MIN ( 2 ) * - 23 + 89
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT MIN( ALL - 14 ) * 86 AS col2
----
-1204

skipif mysql # not compatible
query I rowsort label-3061
SELECT MIN ( ALL - 14 ) * 86 AS col2
----
-1204

query I rowsort
SELECT ALL - ( 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL CAST( - 63 AS SIGNED ) * - 27, 64 AS col0
----
1701
64

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL CAST ( - 63 AS INTEGER ) * - 27, 64 AS col0
----
1701
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3064
SELECT ALL + 11 - CAST( NULL AS DECIMAL ) + AVG ( + 31 ) * + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + 11 - CAST ( NULL AS REAL ) + AVG ( + 31 ) * + + 80 AS col2
----
NULL

query I rowsort
SELECT 74 * - 68 * 50
----
-251600

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT - 20 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - 20 / + 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT 0 * - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT 0 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 15, 32 AS col1
----
15
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 19 DIV 10 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3070
SELECT 19 / 10 AS col1
----
1

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

skipif mysql # not compatible
query II rowsort label-3071
SELECT 90 * - ( - - COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) + - + 22
----
-90
NULL

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

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

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

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

query I rowsort
SELECT + 41 * + - 94 * - - 31 AS col0
----
-119474

query II rowsort
SELECT - - 31, 8 AS col0
----
31
8

query II rowsort
SELECT + 54, 2 * - 15 * - 43 + 55 AS col2
----
54
1345

query II rowsort
SELECT COALESCE ( - 58, + - 45 * - + ( - 81 ) ) AS col1, - 86 AS col0
----
-58
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT SUM( DISTINCT - + ( 98 ) ) - + 30 * + 83 * + COUNT( * ) * - 62 * + COALESCE ( MAX( - 94 ), - 51 + 73 + + + 52 ) AS col0, 72 * - 39
----
-14511818
-2808

skipif mysql # not compatible
query II rowsort label-3078
SELECT SUM ( DISTINCT - + ( 98 ) ) - + 30 * + 83 * + COUNT ( * ) * - 62 * + COALESCE ( MAX ( - 94 ), - 51 + 73 + + + 52 ) AS col0, 72 * - 39
----
-14511818
-2808

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3079
SELECT - + NULLIF ( + 70, + CAST( NULL AS DECIMAL ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3079
SELECT - + NULLIF ( + 70, + CAST ( NULL AS REAL ) ) AS col1
----
-70

query I rowsort
SELECT 23 * + 43 AS col1
----
989

query I rowsort
SELECT ALL 7 + + 58
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT 10 * - MIN( DISTINCT 16 ) - - + 41 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-3082
SELECT 10 * - MIN ( DISTINCT 16 ) - - + 41 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - MIN( ALL - + 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-3083
SELECT - MIN ( ALL - + 26 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - 16 + + + ( - 31 ) * - + COALESCE ( - COUNT( * ), - ( COUNT( * ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - 16 + + + ( - 31 ) * - + COALESCE ( - COUNT ( * ), - ( COUNT ( * ) ) )
----
-47

query I rowsort
SELECT - ( + 81 ) col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT 2 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT 2 / 91
----
0

query II rowsort
SELECT ALL ( - 82 ) * + NULLIF ( + 86, + + 25 ) AS col2, ( - 47 )
----
-7052
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT ALL - CAST( - - 61 AS SIGNED ) + - 13 + + + 17 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - CAST ( - - 61 AS INTEGER ) + - 13 + + + 17 AS col0
----
-57

query I rowsort
SELECT DISTINCT 91 + - - 90
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3090
SELECT ( - 18 ) + - 58, - AVG ( - 57 ) * - CAST( NULL AS SIGNED ) - - - 86 + - 96 col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-3090
SELECT ( - 18 ) + - 58, - AVG ( - 57 ) * - CAST ( NULL AS INTEGER ) - - - 86 + - 96 col0
----
-76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + 40 DIV - 29 + 61 * 59 AS col0
----
3598

skipif mysql # not compatible
query I rowsort label-3091
SELECT + 40 / - 29 + 61 * 59 AS col0
----
3598

query I rowsort
SELECT ALL ( + 56 ) + + 37
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3093
SELECT - COALESCE ( 6, CASE + 36 WHEN - 95 - 58 + - 30 * - 53 THEN NULL WHEN - CAST( - 6 AS DECIMAL ) THEN + - COALESCE ( + 36, + MAX( ALL - 81 ) + + 44 ) + CAST( - 95 AS SIGNED ) + 76 * + 87 + 11 ELSE NULL END + + 59 )
----
-6

skipif mysql # not compatible
query I rowsort label-3093
SELECT - COALESCE ( 6, CASE + 36 WHEN - 95 - 58 + - 30 * - 53 THEN NULL WHEN - CAST ( - 6 AS REAL ) THEN + - COALESCE ( + 36, + MAX ( ALL - 81 ) + + 44 ) + CAST ( - 95 AS INTEGER ) + 76 * + 87 + 11 ELSE NULL END + + 59 )
----
-6

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

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

query I rowsort
SELECT - 44 - 55 + - + 95 + - 77 * + 67 - - 46 AS col1
----
-5307

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT DISTINCT COUNT( * ) * - - SUM( 32 ) - + - 91 + + + 54 DIV - MIN( - 6 ) + - 89
----
43

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT COUNT ( * ) * - - SUM ( 32 ) - + - 91 + + + 54 / - MIN ( - 6 ) + - 89
----
43

query I rowsort
SELECT DISTINCT 7 * - 39 AS col0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL NULLIF ( 35, - 31 ) * + CAST( NULL AS SIGNED ) - - ( 47 ) + - 14 + 98 + + + AVG ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL NULLIF ( 35, - 31 ) * + CAST ( NULL AS INTEGER ) - - ( 47 ) + - 14 + 98 + + + AVG ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT + CASE - COUNT( * ) WHEN + 89 THEN - + 36 * - 33 * 11 * 96 + - 86 + - 36 END AS col0, - NULLIF ( COUNT( * ), 73 + + 2 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3101
SELECT + CASE - COUNT ( * ) WHEN + 89 THEN - + 36 * - 33 * 11 * 96 + - 86 + - 36 END AS col0, - NULLIF ( COUNT ( * ), 73 + + 2 ) AS col0
----
NULL
-1

query I rowsort
SELECT + 48 * - 12 AS col2
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - 54 * - 0 DIV - 61 * 37 * 81
----
0

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 54 * - 0 / - 61 * 37 * 81
----
0

query I rowsort
SELECT CASE 54 WHEN + 17 + + + 76 + 42 THEN + - 2 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT COALESCE ( - 29, + NULLIF ( 93, + 22 ) * - 78 + + - 50 + - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3105
SELECT COALESCE ( - 29, + NULLIF ( 93, + 22 ) * - 78 + + - 50 + - COUNT ( * ) )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3106
SELECT DISTINCT + CASE + CAST( 97 AS DECIMAL ) WHEN ( 15 ) THEN - - MIN( - 11 ) * 29 * + + 87 + + AVG ( ( - 44 ) ) ELSE 74 * ( + 63 ) - 15 - 57 END
----
4590

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + CASE + CAST ( 97 AS REAL ) WHEN ( 15 ) THEN - - MIN ( - 11 ) * 29 * + + 87 + + AVG ( ( - 44 ) ) ELSE 74 * ( + 63 ) - 15 - 57 END
----
4590

query II rowsort
SELECT ALL + 64, 62 * 65 + 93 AS col0
----
64
4123

query I rowsort
SELECT - 18 * 35 * 21 * 23
----
-304290

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

query II rowsort
SELECT ALL + 97 AS col2, 95
----
97
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT + COUNT( * ) * + - 29 * - ( 60 ) col0, 72 + - + 8
----
1740
64

skipif mysql # not compatible
query II rowsort label-3111
SELECT + COUNT ( * ) * + - 29 * - ( 60 ) col0, 72 + - + 8
----
1740
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT - CAST( - 66 AS SIGNED ) * - 82 - - ( - 4 )
----
-5416

skipif mysql # not compatible
query I rowsort label-3112
SELECT - CAST ( - 66 AS INTEGER ) * - 82 - - ( - 4 )
----
-5416

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + + COUNT( * ) * - - 58 + + ( - 9 ) - - - 75
----
-26

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + + COUNT ( * ) * - - 58 + + ( - 9 ) - - - 75
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT - CASE - 87 WHEN - - 28 / 61 THEN + CASE WHEN NOT 12 <= 22 THEN - + 17 WHEN 57 * + + 50 * - 70 - + COUNT( * ) <> - 10 * 52 + - 14 - 97 THEN NULL END END * 35 + + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - CASE - 87 WHEN - - 28 / 61 THEN + CASE WHEN NOT 12 <= 22 THEN - + 17 WHEN 57 * + + 50 * - 70 - + COUNT ( * ) <> - 10 * 52 + - 14 - 97 THEN NULL END END * 35 + + 62 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT - 38 * CAST( + COUNT( DISTINCT + 94 ) AS SIGNED ) + + + 28 + + COALESCE ( + 66, 69 ) * + 85 * - + 38 + - ( + COUNT( * ) ) + + 29 * 71
----
-211132

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 38 * CAST ( + COUNT ( DISTINCT + 94 ) AS INTEGER ) + + + 28 + + COALESCE ( + 66, 69 ) * + 85 * - + 38 + - ( + COUNT ( * ) ) + + 29 * 71
----
-211132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - + COALESCE ( 31, - - 7, + + COUNT( 44 ) ) + 70
----
39

skipif mysql # not compatible
query I rowsort label-3118
SELECT - + COALESCE ( 31, - - 7, + + COUNT ( 44 ) ) + 70
----
39

query I rowsort
SELECT - - 56 + 61
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL + - 46 + 25 + + COALESCE ( 63, + COUNT( * ), 74 * - 48 - - - COUNT( ALL - + 90 ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + - 46 + 25 + + COALESCE ( 63, + COUNT ( * ), 74 * - 48 - - - COUNT ( ALL - + 90 ) ) AS col1
----
42

query I rowsort
SELECT DISTINCT - + 29 * + 1
----
-29

query II rowsort
SELECT ALL + 76 + - 82 col2, 75
----
-6
75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3124
SELECT ALL - + ( + + 3 ) + + 47 DIV + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - + ( + + 3 ) + + 47 / + + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL + COUNT( * ) + - - 97 + - 61 * - + ( - + CASE 62 WHEN 34 + + NULLIF ( + + 1, - 82 ) THEN NULL WHEN - 58 * + 79 * - + 0 THEN + 76 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + COUNT ( * ) + - - 97 + - 61 * - + ( - + CASE 62 WHEN 34 + + NULLIF ( + + 1, - 82 ) THEN NULL WHEN - 58 * + 79 * - + 0 THEN + 76 END ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3126
SELECT - + SUM ( 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3127
SELECT + 62, 80 - + COALESCE ( + - MAX( + ( + - 63 ) ), - ( - 88 ), 96 + 48 * - 13 * - 13 - CAST( + + 49 AS SIGNED ) + + + 33 * + + 70 + + COUNT( * ) ) DIV ( 60 ) AS col2
----
62
79

skipif mysql # not compatible
query II rowsort label-3127
SELECT + 62, 80 - + COALESCE ( + - MAX ( + ( + - 63 ) ), - ( - 88 ), 96 + 48 * - 13 * - 13 - CAST ( + + 49 AS INTEGER ) + + + 33 * + + 70 + + COUNT ( * ) ) / ( 60 ) AS col2
----
62
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( * ) + - CASE WHEN NOT ( - 72 ) IS NULL THEN NULL ELSE - 13 END + 21 + 92 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( * ) + - CASE WHEN NOT ( - 72 ) IS NULL THEN NULL ELSE - 13 END + 21 + 92 * + 86
----
NULL

query I rowsort
SELECT - - 29 * + + 17
----
493

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT 91 - - COUNT( DISTINCT - 61 )
----
92

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT 91 - - COUNT ( DISTINCT - 61 )
----
92

query I rowsort
SELECT + 32 * - - 64 AS col2
----
2048

query I rowsort
SELECT ALL - 38 * 92 * + + 14 AS col2
----
-48944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL CAST( - SUM( - 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL CAST ( - SUM ( - 38 ) AS INTEGER )
----
38

query I rowsort
SELECT ALL - 20 * 13 AS col1
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3136
SELECT ALL 90 * COUNT( * ), + MAX( ALL + 17 ) DIV + 75 * + + 62 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL 90 * COUNT ( * ), + MAX ( ALL + 17 ) / + 75 * + + 62 AS col0
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + COUNT( * ) * 25 * - + NULLIF ( + ( + 8 ), - + 15 ) AS col1
----
-200

skipif mysql # not compatible
query I rowsort label-3137
SELECT + COUNT ( * ) * 25 * - + NULLIF ( + ( + 8 ), - + 15 ) AS col1
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3138
SELECT CAST( 10 AS SIGNED ), 96 AS col2
----
10
96

skipif mysql # not compatible
query II rowsort label-3138
SELECT CAST ( 10 AS INTEGER ), 96 AS col2
----
10
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT + 65 DIV - ( 42 ) - - + 34 + - + 90 * + NULLIF ( - - 4, 83 ) AS col0
----
-327

skipif mysql # not compatible
query I rowsort label-3139
SELECT + 65 / - ( 42 ) - - + 34 + - + 90 * + NULLIF ( - - 4, 83 ) AS col0
----
-327

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3140
SELECT + 54 DIV 95 * CAST( - ( - 99 ) AS SIGNED ) * + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT + 54 / 95 * CAST ( - ( - 99 ) AS INTEGER ) * + 67 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3142
SELECT ALL COUNT( * ) * - 32 AS col0, - CAST( - 44 AS SIGNED ) AS col2
----
-32
44

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL COUNT ( * ) * - 32 AS col0, - CAST ( - 44 AS INTEGER ) AS col2
----
-32
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL 24 DIV - - ( 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 24 / - - ( 29 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT DISTINCT + COUNT( * ) * - 72 * + + 49 AS col2, + 69 + - MAX( ALL + ( + 88 ) )
----
-3528
-19

skipif mysql # not compatible
query II rowsort label-3144
SELECT DISTINCT + COUNT ( * ) * - 72 * + + 49 AS col2, + 69 + - MAX ( ALL + ( + 88 ) )
----
-3528
-19

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

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

query I rowsort
SELECT ALL 53 * - + 53 AS col2
----
-2809

query I rowsort
SELECT + - 35 * + - 31
----
1085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT ALL - + 67 * + - 49 * + COUNT( 28 ) * 19 + 74 * + - 27 * + 97 + - COUNT( * ) DIV + - 14 + + 25 * 18 * - 55 AS col0
----
-156179

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - + 67 * + - 49 * + COUNT ( 28 ) * 19 + 74 * + - 27 * + 97 + - COUNT ( * ) / + - 14 + + 25 * 18 * - 55 AS col0
----
-156179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT DISTINCT - - COALESCE ( 69, - + 28 ) * ( 93 ) + + CAST( NULL AS SIGNED ) * NULLIF ( 7, - CASE + 33 WHEN + 47 + - - NULLIF ( - ( 96 ), 88 ) + + SUM( ALL 54 ) THEN 61 * 6 * 52 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - - COALESCE ( 69, - + 28 ) * ( 93 ) + + CAST ( NULL AS INTEGER ) * NULLIF ( 7, - CASE + 33 WHEN + 47 + - - NULLIF ( - ( 96 ), 88 ) + + SUM ( ALL 54 ) THEN 61 * 6 * 52 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT + - COALESCE ( 51, - COUNT( * ) - 17 + + CAST( NULL AS SIGNED ) ) * + 89 DIV COUNT( * ) - + 41 + + + 47 + - 25
----
-4558

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + - COALESCE ( 51, - COUNT ( * ) - 17 + + CAST ( NULL AS INTEGER ) ) * + 89 / COUNT ( * ) - + 41 + + + 47 + - 25
----
-4558

query I rowsort
SELECT DISTINCT + NULLIF ( + CASE + 33 WHEN + ( 46 ) THEN - - 58 END, + - 88 + 43 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 21 col0
----
21

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

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

query I rowsort
SELECT - - 19 * + 37 * + 89
----
62567

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL - - 16 * 72 - + COUNT( * ) * COUNT( * ) + - 67
----
1084

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - - 16 * 72 - + COUNT ( * ) * COUNT ( * ) + - 67
----
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - - CASE - 81 WHEN + + COUNT( * ) THEN NULL WHEN - + SUM( - 71 ) THEN + 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT - - CASE - 81 WHEN + + COUNT ( * ) THEN NULL WHEN - + SUM ( - 71 ) THEN + 83 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3157
SELECT 50 - NULLIF ( + + 65, - + CAST( NULL AS DECIMAL ) / - - 9 ), - 79 AS col0
----
-15
-79

skipif mysql # not compatible
query II rowsort label-3157
SELECT 50 - NULLIF ( + + 65, - + CAST ( NULL AS REAL ) / - - 9 ), - 79 AS col0
----
-15
-79

query I rowsort
SELECT + 52 * + + 10 col0
----
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ALL + CASE + 64 WHEN CAST( NULL AS SIGNED ) * + + NULLIF ( + 64, 67 ) THEN + ( + - 31 ) + + - COUNT( * ) END * + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + CASE + 64 WHEN CAST ( NULL AS INTEGER ) * + + NULLIF ( + 64, 67 ) THEN + ( + - 31 ) + + - COUNT ( * ) END * + - 47
----
NULL

query II rowsort
SELECT - ( 19 ) AS col2, 66 AS col2
----
-19
66

query I rowsort
SELECT 42 + + 70 * + 66
----
4662

query I rowsort
SELECT ALL - 72 * 19
----
-1368

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT 65 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT 65 / + 76
----
0

query I rowsort
SELECT ALL + 79 - + + 66
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT 58 + + COUNT( * ) + CASE - 50 WHEN + - COALESCE ( - - 5, 41 ) THEN 94 * + 27 + - - 0 - 3 * - 21 * - 27 * - - 17 WHEN + ( 85 ) + - 60 * 68 * + - 71 THEN - - CAST( 42 AS SIGNED ) * - 44 END + + + COUNT( * ) * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT 58 + + COUNT ( * ) + CASE - 50 WHEN + - COALESCE ( - - 5, 41 ) THEN 94 * + 27 + - - 0 - 3 * - 21 * - 27 * - - 17 WHEN + ( 85 ) + - 60 * 68 * + - 71 THEN - - CAST ( 42 AS INTEGER ) * - 44 END + + + COUNT ( * ) * - + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT 64 * + MIN( + + 76 ) * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT 64 * + MIN ( + + 76 ) * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT 55 AS col2, COALESCE ( - MAX( - 41 ), + CASE + + ( - 37 ) WHEN + + 94 THEN - 3 + - 78 WHEN - + 18 THEN NULL END ) - - 47
----
55
88

skipif mysql # not compatible
query II rowsort label-3167
SELECT 55 AS col2, COALESCE ( - MAX ( - 41 ), + CASE + + ( - 37 ) WHEN + + 94 THEN - 3 + - 78 WHEN - + 18 THEN NULL END ) - - 47
----
55
88

query II rowsort
SELECT 74 + - + 10 - + - 35 col2, 89 AS col2
----
99
89

query II rowsort
SELECT - 95, 60 * - ( 70 ) AS col1
----
-95
-4200

query I rowsort
SELECT ALL 37 * - 59 * - + 68 AS col1
----
148444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT 90 * - 31 DIV + + COUNT( * ) AS col2
----
-2790

skipif mysql # not compatible
query I rowsort label-3171
SELECT 90 * - 31 / + + COUNT ( * ) AS col2
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT SUM( DISTINCT - 49 ) * 72
----
-3528

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT SUM ( DISTINCT - 49 ) * 72
----
-3528

query I rowsort
SELECT ALL 30 + - 13 AS col0
----
17

query II rowsort
SELECT 55 AS col0, - 63 AS col2
----
55
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT ALL NULLIF ( - 12, 10 + - 81 ) + ( + + 76 ) + + 46 * + + CAST( + + 16 AS SIGNED ) AS col0
----
800

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL NULLIF ( - 12, 10 + - 81 ) + ( + + 76 ) + + 46 * + + CAST ( + + 16 AS INTEGER ) AS col0
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COUNT( * ) * 47 col2
----
47

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( * ) * 47 col2
----
47

query II rowsort
SELECT + 17 col2, 92 - - 3
----
17
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + + SUM( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3178
SELECT + + SUM ( DISTINCT + 81 ) AS col2
----
81

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

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

query II rowsort
SELECT 91 AS col0, - 65 * + + 82
----
91
-5330

query I rowsort
SELECT 16 + - 40
----
-24

query I rowsort
SELECT + 34 * 51 AS col0
----
1734

query I rowsort
SELECT ALL + - 75 + 45
----
-30

query I rowsort
SELECT ALL - - ( - - 85 )
----
85

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

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - CAST ( - + 17 AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT 23 * - + SUM( DISTINCT - 37 ) - + 98 * + - 38 AS col1
----
4575

skipif mysql # not compatible
query I rowsort label-3186
SELECT 23 * - + SUM ( DISTINCT - 37 ) - + 98 * + - 38 AS col1
----
4575

query I rowsort
SELECT DISTINCT - + NULLIF ( - 66, - 65 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT CAST( MIN( ( - 82 ) ) AS SIGNED ) + + 8
----
-74

skipif mysql # not compatible
query I rowsort label-3188
SELECT CAST ( MIN ( ( - 82 ) ) AS INTEGER ) + + 8
----
-74

query I rowsort
SELECT - 79 * - 43 - - 92 * + 9 + - - 83 AS col2
----
4308

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

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

query I rowsort
SELECT 8 - - - 72 AS col1
----
-64

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 59 + - + 91 + - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 86 * - + 17 * - + 34 AS col1
----
-49708

query I rowsort
SELECT 74 + + - 50
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3195
SELECT ( + COUNT( * ) ) * + 24 + - - COUNT( * ), MIN( ALL + 88 ) * - - CAST( NULL AS DECIMAL ) * - 20 * + 1 + - MAX( ALL - + 98 ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3195
SELECT ( + COUNT ( * ) ) * + 24 + - - COUNT ( * ), MIN ( ALL + 88 ) * - - CAST ( NULL AS REAL ) * - 20 * + 1 + - MAX ( ALL - + 98 ) AS col2
----
25
NULL

query I rowsort
SELECT 93 + + - 55 col2
----
38

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3198
SELECT 0 DIV - - 11 AS col0, 29 AS col0
----
0
29

skipif mysql # not compatible
query II rowsort label-3198
SELECT 0 / - - 11 AS col0, 29 AS col0
----
0
29

query I rowsort
SELECT 83 * - 83 AS col1
----
-6889

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + 48 * - CASE - + 10 WHEN + COALESCE ( 51, - 23 ) * + 59 * + + 60 THEN - MIN( - 3 ) WHEN + 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + 48 * - CASE - + 10 WHEN + COALESCE ( 51, - 23 ) * + 59 * + + 60 THEN - MIN ( - 3 ) WHEN + 87 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT 90 DIV - 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3201
SELECT 90 / - 50 AS col0
----
-1

query I rowsort
SELECT DISTINCT 49 + - + 73 * - ( + 82 ) AS col0
----
6035

query I rowsort
SELECT DISTINCT + 76 + + + 10 AS col0
----
86

query I rowsort
SELECT ALL - ( - - 16 ) + - 67 + + - ( - 25 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL MIN( DISTINCT 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL MIN ( DISTINCT 20 ) col2
----
20

query I rowsort
SELECT 25 + 67 AS col1
----
92

query I rowsort
SELECT DISTINCT + ( - ( + + 44 ) ) + + - ( - + 76 ) + - - 9 * + 60 col1
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL - 17 * - 85 * CAST( NULL AS SIGNED ) + 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL - 17 * - 85 * CAST ( NULL AS INTEGER ) + 52 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3209
SELECT - - 28 DIV 29 - MIN( ALL + 21 ) + + - 11
----
-32

skipif mysql # not compatible
query I rowsort label-3209
SELECT - - 28 / 29 - MIN ( ALL + 21 ) + + - 11
----
-32

query I rowsort
SELECT - 18 - 74 - 30 * 99
----
-3062

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT 62 * + COUNT( * ) + - ( 58 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT 62 * + COUNT ( * ) + - ( 58 ) col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) * + 55 - + 51 - - + COALESCE ( 89, - + 64 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * + 55 - + 51 - - + COALESCE ( 89, - + 64 ) AS col2
----
-17

query I rowsort
SELECT + - 23 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT MIN( DISTINCT + + NULLIF ( 10, + ( - 41 ) * - + 90 ) ) * 0 * + + MAX( ALL - CAST( NULL AS SIGNED ) ) + - 58 + 70 + - 11 + - - 74 - + NULLIF ( + ( - 39 ), COUNT( * ) + 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT MIN ( DISTINCT + + NULLIF ( 10, + ( - 41 ) * - + 90 ) ) * 0 * + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + - 58 + 70 + - 11 + - - 74 - + NULLIF ( + ( - 39 ), COUNT ( * ) + 85 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT + + COALESCE ( + 18, + 61 * + CAST( - + 42 AS SIGNED ), CASE - + 48 WHEN - 29 + 49 THEN NULL ELSE 82 + - 18 END ) - + 69 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3215
SELECT + + COALESCE ( + 18, + 61 * + CAST ( - + 42 AS INTEGER ), CASE - + 48 WHEN - 29 + 49 THEN NULL ELSE 82 + - 18 END ) - + 69 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + - 73 * + - COUNT( * ) + 43
----
116

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + - 73 * + - COUNT ( * ) + 43
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3217
SELECT - NULLIF ( + 40, - 75 + 12 - 17 - + - SUM( DISTINCT + 37 ) + + - ( + - 41 ) ) * - 48 AS col2, + MIN( + 11 ) col2
----
1920
11

skipif mysql # not compatible
query II rowsort label-3217
SELECT - NULLIF ( + 40, - 75 + 12 - 17 - + - SUM ( DISTINCT + 37 ) + + - ( + - 41 ) ) * - 48 AS col2, + MIN ( + 11 ) col2
----
1920
11

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

skipif mysql # not compatible
query I rowsort label-3218
SELECT + + CAST ( NULL AS INTEGER ) + + 95 + + 77 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT ALL + + COALESCE ( + MIN( ALL + 83 ), - 30 ) AS col1, 53 AS col1
----
83
53

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL + + COALESCE ( + MIN ( ALL + 83 ), - 30 ) AS col1, 53 AS col1
----
83
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + - MIN( + 9 ) * 15 col1
----
-135

skipif mysql # not compatible
query I rowsort label-3220
SELECT + - MIN ( + 9 ) * 15 col1
----
-135

query II rowsort
SELECT + - CASE 39 WHEN - 90 THEN + - CASE - + 94 WHEN AVG ( ALL - 9 ) THEN 10 WHEN - 63 THEN NULL END END * + 87 AS col2, 90 AS col1
----
NULL
90

query I rowsort
SELECT DISTINCT + + NULLIF ( - 47, 26 )
----
-47

query I rowsort
SELECT + + 17 * ( - 21 ) AS col1
----
-357

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

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

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

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

query II rowsort
SELECT - COALESCE ( + 17, - 51 ) AS col1, - 7 * 2 AS col0
----
-17
-14

query I rowsort
SELECT + 73 - + 59 AS col0
----
14

query I rowsort
SELECT + 38 * - 91 AS col2
----
-3458

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

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL COUNT ( * ) + - 1 - + 54 AS col2
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL COUNT( ALL + + 36 ) * + + 73 * - 42 AS col1
----
-3066

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL COUNT ( ALL + + 36 ) * + + 73 * - 42 AS col1
----
-3066

query I rowsort
SELECT DISTINCT 73 + - + 71
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3234
SELECT ALL 38 AS col2, - CAST( NULL AS SIGNED ) * 59 + - 10 + 18 AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-3234
SELECT ALL 38 AS col2, - CAST ( NULL AS INTEGER ) * 59 + - 10 + 18 AS col2
----
38
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT ALL 8 + + 70 * COUNT( - 68 ) - - - 3 AS col2, - 77
----
75
-77

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL 8 + + 70 * COUNT ( - 68 ) - - - 3 AS col2, - 77
----
75
-77

query I rowsort
SELECT DISTINCT 66 + + 68
----
134

query I rowsort
SELECT DISTINCT + 44 + + 80 AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3239
SELECT ALL - ( + COUNT( * ) ) + + - 91, 40 + + 89 DIV + 68 + - + 11 AS col2
----
-92
30

skipif mysql # not compatible
query II rowsort label-3239
SELECT ALL - ( + COUNT ( * ) ) + + - 91, 40 + + 89 / + 68 + - + 11 AS col2
----
-92
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + 96 - SUM( 23 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3240
SELECT + 96 - SUM ( 23 ) AS col1
----
73

query I rowsort
SELECT + 66 + + + 46
----
112

query I rowsort
SELECT - 72 - - - 7
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3243
SELECT + COALESCE ( - CAST( + 5 AS SIGNED ), 87 ) + - 77 AS col2, + 37 * 47 AS col1
----
-82
1739

skipif mysql # not compatible
query II rowsort label-3243
SELECT + COALESCE ( - CAST ( + 5 AS INTEGER ), 87 ) + - 77 AS col2, + 37 * 47 AS col1
----
-82
1739

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL COUNT( 26 ) + + 15 + + - 12 + + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL COUNT ( 26 ) + + 15 + + - 12 + + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL - 27 + - 17 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + 36 + + - 34 * + COUNT( * ) + - - COUNT( * ) + - 8 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3247
SELECT + 36 + + - 34 * + COUNT ( * ) + - - COUNT ( * ) + - 8 AS col1
----
-5

query I rowsort
SELECT DISTINCT - + 50 * - NULLIF ( 46, 87 ) col2
----
2300

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

query II rowsort
SELECT DISTINCT + - 90 AS col2, - COALESCE ( 63, - 64 * - 55 - + 4, 79 ) AS col1
----
-90
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3251
SELECT - + 66 * 37 + + MIN( ALL + 97 ) DIV - COUNT( * ), CAST( NULL AS SIGNED ) AS col1
----
-2539
NULL

skipif mysql # not compatible
query II rowsort label-3251
SELECT - + 66 * 37 + + MIN ( ALL + 97 ) / - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1
----
-2539
NULL

query I rowsort
SELECT 48 * 19 + + - 40
----
872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT ALL - COUNT( * ) DIV - 32 + 4 * COUNT( * ) - - - MAX( 81 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - COUNT ( * ) / - 32 + 4 * COUNT ( * ) - - - MAX ( 81 ) AS col0
----
-77

query I rowsort
SELECT - ( 96 ) * - 9 + 39
----
903

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3255
SELECT ALL - ( - + 57 ) * CAST( NULL AS DECIMAL ) AS col1, 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL - ( - + 57 ) * CAST ( NULL AS REAL ) AS col1, 35 AS col2
----
NULL
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3256
SELECT ALL + 27 AS col1, + 48 * - ( 55 ) * + COUNT( * ) * 31 AS col2
----
27
-81840

skipif mysql # not compatible
query II rowsort label-3256
SELECT ALL + 27 AS col1, + 48 * - ( 55 ) * + COUNT ( * ) * 31 AS col2
----
27
-81840

query I rowsort
SELECT + + 86 * + ( + 76 ) + 6
----
6542

query I rowsort
SELECT ALL - 41 * + + 73
----
-2993

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT + ( + + ( - + NULLIF ( + 35, - - 35 ) ) ) + 37 AS col1, + COUNT( 27 ) * + 20 + - 95
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-3259
SELECT + ( + + ( - + NULLIF ( + 35, - - 35 ) ) ) + 37 AS col1, + COUNT ( 27 ) * + 20 + - 95
----
NULL
-75

query I rowsort
SELECT ALL 56 * 11 + - 57 * + 24 + + + 66
----
-686

query I rowsort
SELECT NULLIF ( - 7, - 65 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT + 56 - + 8 DIV - 94
----
56

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 56 - + 8 / - 94
----
56

query II rowsort
SELECT DISTINCT + 45 AS col0, 49 * - 37
----
45
-1813

query I rowsort
SELECT ALL 68 * 82 + 67
----
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL 93 * - 68 * - - 3 * ( - 12 ) * CASE SUM( ALL 13 ) WHEN - CASE + ( - - ( - 66 ) ) WHEN + 28 + + 53 THEN NULL WHEN + + 60 * + 79 THEN + 93 * 74 + - 15 + + - 25 ELSE + 83 END THEN + + 5 END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL 93 * - 68 * - - 3 * ( - 12 ) * CASE SUM ( ALL 13 ) WHEN - CASE + ( - - ( - 66 ) ) WHEN + 28 + + 53 THEN NULL WHEN + + 60 * + 79 THEN + 93 * 74 + - 15 + + - 25 ELSE + 83 END THEN + + 5 END + 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3266
SELECT ALL 96 / CAST( NULL AS SIGNED ), 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3266
SELECT ALL 96 / CAST ( NULL AS INTEGER ), 80 AS col0
----
NULL
80

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

skipif mysql # not compatible
query I rowsort label-3267
SELECT - COUNT ( * ) / + - 97
----
0

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

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

query I rowsort
SELECT + 96 + + - CASE 98 WHEN + 77 THEN NULL ELSE - 45 END col0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT ALL 60 DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL 60 / + 86 AS col1
----
0

query II rowsort
SELECT + 72 + 58, + 97 + - - 20 + + 26 AS col2
----
130
143

query I rowsort
SELECT ALL 54 + - + 64 - - + 6
----
-4

query II rowsort
SELECT ALL 59 AS col2, - 69 * - 42 AS col1
----
59
2898

query I rowsort
SELECT ALL 18 - - - 67 + 42 * 74
----
3059

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT - CAST( - + MAX( DISTINCT + 7 ) AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3276
SELECT - CAST ( - + MAX ( DISTINCT + 7 ) AS INTEGER ) AS col1
----
7

query I rowsort
SELECT ALL ( 13 ) - + 11 AS col1
----
2

query II rowsort
SELECT 22 AS col0, 85 * - 33
----
22
-2805

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

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

query I rowsort
SELECT - 23 * + - 56
----
1288

query I rowsort
SELECT + 62 * + NULLIF ( - 59, + + 39 ) col2
----
-3658

query I rowsort
SELECT + NULLIF ( - - 75, 72 + 44 ) + 97
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT + 89 DIV + - ( - 26 )
----
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 89 / + - ( - 26 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), 37 ) AS col0
----
NULL

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

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

query I rowsort
SELECT 63 * 51 AS col1
----
3213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3287
SELECT ALL - - 69 AS col0, 6 * - COALESCE ( - 80, - CAST( NULL AS SIGNED ), + 75 + - 9 )
----
69
480

skipif mysql # not compatible
query II rowsort label-3287
SELECT ALL - - 69 AS col0, 6 * - COALESCE ( - 80, - CAST ( NULL AS INTEGER ), + 75 + - 9 )
----
69
480

query I rowsort
SELECT - 39 * - - 4
----
-156

query I rowsort
SELECT + 48 + 91 col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL + 54 + MIN( ALL 28 ) * SUM( ALL + 54 )
----
1566

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + 54 + MIN ( ALL 28 ) * SUM ( ALL + 54 )
----
1566

query I rowsort
SELECT 9 + - 47
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3292
SELECT DISTINCT - COALESCE ( + ( - - 31 ), + 76 + + 81 + - 94 + COUNT( * ) * 2 + + NULLIF ( 61, - 84 DIV 0 + - + CASE + 97 WHEN 39 THEN NULL ELSE - - ( + 62 ) END + 67 DIV - COUNT( * ) ) * - 54 DIV + COUNT( * ), 5 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT - COALESCE ( + ( - - 31 ), + 76 + + 81 + - 94 + COUNT ( * ) * 2 + + NULLIF ( 61, - 84 / 0 + - + CASE + 97 WHEN 39 THEN NULL ELSE - - ( + 62 ) END + 67 / - COUNT ( * ) ) * - 54 / + COUNT ( * ), 5 ) col0
----
-31

query I rowsort
SELECT 83 * 89 AS col2
----
7387

query I rowsort
SELECT ALL 32 + 32 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT - COUNT( * ) + + 84 - 72 col0
----
11

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - COUNT ( * ) + + 84 - 72 col0
----
11

query I rowsort
SELECT ALL + 89 + 10 + + COALESCE ( + - 15, + 2, - - 42 + - 6 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL - NULLIF ( COUNT( * ), 80 * - 67 ) * 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - NULLIF ( COUNT ( * ), 80 * - 67 ) * 11 AS col0
----
-11

query I rowsort
SELECT 9 * + - 96 AS col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT 83 + 28 * - - 49 + - COUNT( * ) * - 11 - 87
----
1379

skipif mysql # not compatible
query I rowsort label-3299
SELECT 83 + 28 * - - 49 + - COUNT ( * ) * - 11 - 87
----
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT 99 - + 13 + 32 * COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-3300
SELECT 99 - + 13 + 32 * COUNT ( * )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT DISTINCT - NULLIF ( + COALESCE ( - + COALESCE ( - CAST( NULL AS SIGNED ), 43 + + 44 * + - 40 ), + 51, + 48 ), - COUNT( * ) / - COUNT( * ) ) * + 39 AS col2
----
-66963

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - NULLIF ( + COALESCE ( - + COALESCE ( - CAST ( NULL AS INTEGER ), 43 + + 44 * + - 40 ), + 51, + 48 ), - COUNT ( * ) / - COUNT ( * ) ) * + 39 AS col2
----
-66963

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT 8 + COUNT( * ) + - 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT 8 + COUNT ( * ) + - 9 col0
----
0

query I rowsort
SELECT 18 + + 64 col2
----
82

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

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

query II rowsort
SELECT 24 * - 71, 64 AS col2
----
-1704
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3306
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / 40 AS col1, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3306
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / 40 AS col1, 76
----
NULL
76

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

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

query I rowsort
SELECT + 21 - + 20
----
1

query II rowsort
SELECT ALL - 1 - - + 16, - 83 * - 4 + - + 47 AS col2
----
15
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT - CAST( 22 AS SIGNED ) * - + 96
----
2112

skipif mysql # not compatible
query I rowsort label-3310
SELECT - CAST ( 22 AS INTEGER ) * - + 96
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + 43 + + 83 + + COUNT( * ) - 98
----
29

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + 43 + + 83 + + COUNT ( * ) - 98
----
29

query I rowsort
SELECT ALL + 74 * + - 61
----
-4514

query I rowsort
SELECT + 37 + + ( - - 68 )
----
105

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

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

query I rowsort
SELECT - ( 95 ) col1
----
-95

query I rowsort
SELECT 49 * - 85 col2
----
-4165

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT ALL + 21 + + 60 * + 39, - SUM( DISTINCT + 65 ) AS col2
----
2361
-65

skipif mysql # not compatible
query II rowsort label-3317
SELECT ALL + 21 + + 60 * + 39, - SUM ( DISTINCT + 65 ) AS col2
----
2361
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT DISTINCT 50 DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT 50 / 30
----
1

query I rowsort
SELECT DISTINCT 44 + - - 94 AS col0
----
138

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

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

query I rowsort
SELECT ALL 78 - 60 + + 61
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT 34 * - COALESCE ( + 28, + + 37 * - CAST( NULL AS SIGNED ) ) AS col0
----
-952

skipif mysql # not compatible
query I rowsort label-3322
SELECT 34 * - COALESCE ( + 28, + + 37 * - CAST ( NULL AS INTEGER ) ) AS col0
----
-952

query I rowsort
SELECT 58 * + 99 - - 14 AS col2
----
5756

query I rowsort
SELECT ALL - ( 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT ALL - 59 - + + COUNT( * ) + - NULLIF ( + 80, CASE + 46 WHEN - 47 * - CAST( NULL AS SIGNED ) - 60 + CAST( + 76 AS SIGNED ) / COUNT( * ) - + MIN( + 91 ) THEN NULL WHEN + 28 THEN + 61 * + 41 + 83 - SUM( DISTINCT + + 77 ) * + 40 + - + 11 ELSE NULL END + 53 ) + - - 51 + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - 59 - + + COUNT ( * ) + - NULLIF ( + 80, CASE + 46 WHEN - 47 * - CAST ( NULL AS INTEGER ) - 60 + CAST ( + 76 AS INTEGER ) / COUNT ( * ) - + MIN ( + 91 ) THEN NULL WHEN + 28 THEN + 61 * + 41 + 83 - SUM ( DISTINCT + + 77 ) * + 40 + - + 11 ELSE NULL END + 53 ) + - - 51 + + COUNT ( * )
----
-88

query I rowsort
SELECT ALL + 95 * + - 44
----
-4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3327
SELECT - 7 * + - 2 DIV - 49 * COALESCE ( + 49, COUNT( * ) ) DIV 3 - 73 AS col2, 47 col1
----
-73
47

skipif mysql # not compatible
query II rowsort label-3327
SELECT - 7 * + - 2 / - 49 * COALESCE ( + 49, COUNT ( * ) ) / 3 - 73 AS col2, 47 col1
----
-73
47

query II rowsort
SELECT DISTINCT + 86 * - CASE - 46 WHEN + 91 THEN + 42 ELSE - 31 END col1, + 46 AS col0
----
2666
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - MAX( DISTINCT - 78 ) + + CAST( + + 22 AS SIGNED ) + 66 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-3329
SELECT - MAX ( DISTINCT - 78 ) + + CAST ( + + 22 AS INTEGER ) + 66 AS col0
----
166

query II rowsort
SELECT ALL + ( 18 ) * + 28 AS col1, 20
----
504
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - - 61 + - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3331
SELECT - - 61 + - - COUNT ( * )
----
62

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

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

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

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

query I rowsort
SELECT ALL + 69 * + 67 AS col2
----
4623

query II rowsort
SELECT + 60 AS col1, 11 AS col0
----
60
11

query I rowsort
SELECT ALL - 78 + 13
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL - 14 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - 14 / + 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + - CAST( + + COUNT( * ) AS SIGNED ) + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + - CAST ( + + COUNT ( * ) AS INTEGER ) + - 75
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT NULLIF ( + 9, - - ( - MIN( 86 ) ) * + MIN( + - 16 ) + - 32 + 99 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3339
SELECT NULLIF ( + 9, - - ( - MIN ( 86 ) ) * + MIN ( + - 16 ) + - 32 + 99 ) AS col2
----
9

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

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

query I rowsort
SELECT + - 59 * + - 97 + + 56
----
5779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT ALL + + 46 + + - 38 + - MAX( + 94 ) DIV 88 * 34 DIV - + ( + SUM( ( - NULLIF ( 32, - 95 ) ) ) ) + - - 24
----
31

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + + 46 + + - 38 + - MAX ( + 94 ) / 88 * 34 / - + ( + SUM ( ( - NULLIF ( 32, - 95 ) ) ) ) + - - 24
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + NULLIF ( + - 5, 60 ) + - + COUNT( * ) * + + ( - 45 )
----
40

skipif mysql # not compatible
query I rowsort label-3343
SELECT + NULLIF ( + - 5, 60 ) + - + COUNT ( * ) * + + ( - 45 )
----
40

query I rowsort
SELECT - + 57 * + ( 26 ) - - 91 col0
----
-1391

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + CASE WHEN ( NULL ) < NULL THEN - 26 END * + 4 + - COUNT( * ) * + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + CASE WHEN ( NULL ) < NULL THEN - 26 END * + 4 + - COUNT ( * ) * + 98 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 36, 56 ) AS col1
----
36

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT COUNT ( * ) * + 20 AS col1
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3351
SELECT DISTINCT 24 * 74 - - 5 * 2 + CAST( NULL AS DECIMAL ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 24 * 74 - - 5 * 2 + CAST ( NULL AS REAL ) * + 81
----
NULL

query I rowsort
SELECT COALESCE ( + + 45, 17 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT CASE + COUNT( * ) WHEN - 95 * - 65 - 67 + - MIN( + + 75 ) * 95 THEN ( + 93 ) WHEN - - 94 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT CASE + COUNT ( * ) WHEN - 95 * - 65 - 67 + - MIN ( + + 75 ) * 95 THEN ( + 93 ) WHEN - - 94 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT + 20 * - - CAST( - 20 AS SIGNED )
----
-400

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 20 * - - CAST ( - 20 AS INTEGER )
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + COUNT( * ) * + CASE - 31 WHEN - + 80 * 74 + COALESCE ( NULLIF ( - 8, - 32 ), - + COUNT( * ) - - + ( + + 21 ) ) THEN + 78 * - COALESCE ( - ( 24 ), 33 + - 13, - - 95 ) + + 52 + - 85 / - 97 * - COUNT( * ) + + MAX( 79 ) WHEN 41 + SUM( DISTINCT + 3 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT + COUNT ( * ) * + CASE - 31 WHEN - + 80 * 74 + COALESCE ( NULLIF ( - 8, - 32 ), - + COUNT ( * ) - - + ( + + 21 ) ) THEN + 78 * - COALESCE ( - ( 24 ), 33 + - 13, - - 95 ) + + 52 + - 85 / - 97 * - COUNT ( * ) + + MAX ( 79 ) WHEN 41 + SUM ( DISTINCT + 3 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT ALL ( + COUNT( * ) ) DIV ( + 37 ) * 52 * - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL ( + COUNT ( * ) ) / ( + 37 ) * 52 * - 47 AS col1
----
0

query I rowsort
SELECT ALL - 81 * 94 - - + 99
----
-7515

query I rowsort
SELECT + 89 * 30 * - 92 AS col2
----
-245640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3359
SELECT ALL ( + 82 ) DIV - ( + COUNT( * ) ) + + 71
----
-11

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL ( + 82 ) / - ( + COUNT ( * ) ) + + 71
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT CASE - COUNT( * ) WHEN + ( - 58 ) THEN NULL ELSE NULLIF ( - - 68, - 12 ) * - - 17 END AS col2
----
1156

skipif mysql # not compatible
query I rowsort label-3360
SELECT CASE - COUNT ( * ) WHEN + ( - 58 ) THEN NULL ELSE NULLIF ( - - 68, - 12 ) * - - 17 END AS col2
----
1156

query I rowsort
SELECT + 53 + 61 AS col0
----
114

query I rowsort
SELECT - 59 * + 17 AS col1
----
-1003

query I rowsort
SELECT + 30 * - 53
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + 47 + NULLIF ( - ( - COALESCE ( - - 78, 95 - 48 ) ), + - 65 * + - 23 * - 44 + + COUNT( * ) ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 47 + NULLIF ( - ( - COALESCE ( - - 78, 95 - 48 ) ), + - 65 * + - 23 * - 44 + + COUNT ( * ) ) AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT - 16 DIV + COALESCE ( 36, + - 59 + - 10 + - 41 * - COUNT( DISTINCT 84 ), - COUNT( * ) - + 11 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT - 16 / + COALESCE ( 36, + - 59 + - 10 + - 41 * - COUNT ( DISTINCT 84 ), - COUNT ( * ) - + 11 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL - - 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - - 99 + + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL CASE + ( - + 15 ) WHEN 81 * - 27 + + + ( - 52 ) THEN - 72 * - 60 + 12 + - 49 WHEN 86 THEN - MIN( DISTINCT - 9 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL CASE + ( - + 15 ) WHEN 81 * - 27 + + + ( - 52 ) THEN - 72 * - 60 + 12 + - 49 WHEN 86 THEN - MIN ( DISTINCT - 9 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT - MAX( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - MAX ( 12 )
----
-12

query II rowsort
SELECT + - 29 + - 46, 50 AS col2
----
-75
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL NULLIF ( + + SUM( - 49 ), - + 29 + + 24 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL NULLIF ( + + SUM ( - 49 ), - + 29 + + 24 ) AS col0
----
-49

query I rowsort
SELECT ALL 48 + + + 74 col0
----
122

query I rowsort
SELECT ALL + 49 + - 9
----
40

query I rowsort
SELECT ALL - 27 + - 37 AS col1
----
-64

query I rowsort
SELECT ALL + 69 + - 73
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT - COUNT( * ) - 30 + + + 10 + - 72 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT - COUNT ( * ) - 30 + + + 10 + - 72 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT - CAST( NULL AS SIGNED ) * - 61 + 46 + 96 + - CAST( + 62 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS INTEGER ) * - 61 + 46 + 96 + - CAST ( + 62 AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT - - ( - 85 ) DIV - + 46 + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3377
SELECT - - ( - 85 ) / - + 46 + - 38 AS col2
----
-37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT - - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * 63 / - - COUNT( * ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 63 / - - COUNT ( * ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT + COALESCE ( + + 65, + + 43 ) DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT + COALESCE ( + + 65, + + 43 ) / - 53
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT 39 * 33 + + COUNT( * ) AS col1, ( + 33 ) AS col1
----
1288
33

skipif mysql # not compatible
query II rowsort label-3381
SELECT 39 * 33 + + COUNT ( * ) AS col1, ( + 33 ) AS col1
----
1288
33

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

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

query I rowsort
SELECT - 67 * - ( 14 ) * - ( - 62 )
----
58156

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - 14 * - 14 * 2 * - 34 * + - 44 * + COUNT( * ) + - 55 + 9 + - - 48 AS col0
----
586434

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 14 * - 14 * 2 * - 34 * + - 44 * + COUNT ( * ) + - 55 + 9 + - - 48 AS col0
----
586434

query II rowsort
SELECT + 74 AS col1, + 51
----
74
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT + ( - 12 ) DIV - ( + 20 ) + - - 79
----
79

skipif mysql # not compatible
query I rowsort label-3386
SELECT + ( - 12 ) / - ( + 20 ) + - - 79
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + 26 * MIN( ALL + 27 ) * + + COUNT( * ) AS col1
----
702

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 26 * MIN ( ALL + 27 ) * + + COUNT ( * ) AS col1
----
702

query I rowsort
SELECT - 37 + + + 97 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3390
SELECT ALL + ( - CAST( - 30 AS SIGNED ) ), + 37 AS col2
----
30
37

skipif mysql # not compatible
query II rowsort label-3390
SELECT ALL + ( - CAST ( - 30 AS INTEGER ) ), + 37 AS col2
----
30
37

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

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + COUNT ( * ) * + - 27 / + ( + - 96 )
----
0

query I rowsort
SELECT ALL + ( - COALESCE ( + + 6, 96 * 80 * + 31 + 42 * 24 ) ) * - - 61
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT SUM( ALL - 26 ) + + 34 + - COUNT( 8 ) * + 45
----
-37

skipif mysql # not compatible
query I rowsort label-3393
SELECT SUM ( ALL - 26 ) + + 34 + - COUNT ( 8 ) * + 45
----
-37

query I rowsort
SELECT 27 * 53 AS col0
----
1431

query I rowsort
SELECT 62 + - - ( 24 )
----
86

query I rowsort
SELECT ALL 42 + - - 74 * - 19
----
-1364

query II rowsort
SELECT + 61 AS col1, 63 + - 54 * 4 col1
----
61
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT 77 + + COALESCE ( CASE + 52 WHEN + ( - 22 ) THEN NULL WHEN + 99 THEN COUNT( * ) END, + 83 )
----
160

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT 77 + + COALESCE ( CASE + 52 WHEN + ( - 22 ) THEN NULL WHEN + 99 THEN COUNT ( * ) END, + 83 )
----
160

query I rowsort
SELECT DISTINCT + - 17 + + 74 + 5 * - + CASE - + 74 WHEN 80 THEN - + 84 WHEN 18 THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT + 20 + 39 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT 86 DIV 59 - - 55
----
56

skipif mysql # not compatible
query I rowsort label-3401
SELECT 86 / 59 - - 55
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT 92 * + - MAX( DISTINCT 10 ) + + 27 * - - 65 + 21 AS col2, 50 AS col2
----
856
50

skipif mysql # not compatible
query II rowsort label-3402
SELECT 92 * + - MAX ( DISTINCT 10 ) + + 27 * - - 65 + 21 AS col2, 50 AS col2
----
856
50

query I rowsort
SELECT ALL 59 * + 95 AS col2
----
5605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT CAST( + - 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3404
SELECT CAST ( + - 78 AS INTEGER ) AS col0
----
-78

query I rowsort
SELECT 32 * - CASE - - 78 WHEN 90 + - - 37 THEN NULL WHEN - + 58 THEN 10 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT 22 DIV 42 + - 71 + - + ( - - ( 91 ) )
----
-162

skipif mysql # not compatible
query I rowsort label-3406
SELECT 22 / 42 + - 71 + - + ( - - ( 91 ) )
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT MAX( - 24 ) * + 69 AS col1, - 54
----
-1656
-54

skipif mysql # not compatible
query II rowsort label-3407
SELECT MAX ( - 24 ) * + 69 AS col1, - 54
----
-1656
-54

query II rowsort
SELECT - 63, + 20 AS col1
----
-63
20

query I rowsort
SELECT DISTINCT - 43 - 84 + 22 - - + 9 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL - SUM( + 48 ) * + 72 + - 87
----
-3543

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - SUM ( + 48 ) * + 72 + - 87
----
-3543

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

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

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

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

query I rowsort
SELECT 93 * - 25 col0
----
-2325

query I rowsort
SELECT 28 * - ( 59 )
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - COUNT( ALL - - 7 ) * - 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - COUNT ( ALL - - 7 ) * - 21 AS col0
----
21

query II rowsort
SELECT ALL 71 AS col1, 56
----
71
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT 34 AS col2, 83 + - COALESCE ( + 72, + COUNT( * ) - 24 )
----
34
11

skipif mysql # not compatible
query II rowsort label-3417
SELECT 34 AS col2, 83 + - COALESCE ( + 72, + COUNT ( * ) - 24 )
----
34
11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT - SUM( DISTINCT NULLIF ( CAST( NULL AS SIGNED ), + - 25 * - 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - SUM ( DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), + - 25 * - 6 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT DISTINCT - MIN( DISTINCT - 83 ) col2, - 73
----
83
-73

skipif mysql # not compatible
query II rowsort label-3420
SELECT DISTINCT - MIN ( DISTINCT - 83 ) col2, - 73
----
83
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL - CAST( + + 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - CAST ( + + 21 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT COUNT( * ) * - 56 * - 45 AS col2
----
2520

skipif mysql # not compatible
query I rowsort label-3422
SELECT COUNT ( * ) * - 56 * - 45 AS col2
----
2520

query II rowsort
SELECT 6 AS col2, 81
----
6
81

query II rowsort
SELECT + 96 AS col2, 93 * + + 42
----
96
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 24 - 59 * - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3425
SELECT 24 - 59 * - COUNT ( * ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT 63 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT 63 / - 66 AS col0
----
0

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

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

query I rowsort
SELECT ALL - 64 * - 62 AS col1
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL 94 * - MIN( + + 17 )
----
-1598

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL 94 * - MIN ( + + 17 )
----
-1598

query I rowsort
SELECT ALL + 37 + 17
----
54

query I rowsort
SELECT ALL 90 + - 31
----
59

query I rowsort
SELECT 52 - 16 * - + 62 AS col0
----
1044

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 87 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - + 75 AS col1, 10 col0
----
-75
10

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

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + 66 + COUNT ( * ) col2
----
67

query I rowsort
SELECT 77 + - 25 - - - 16 * + 89 * - - 24 + - 99
----
-34223

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - 54 + + MIN( DISTINCT - 92 ) + - - 19 * - - 97 * + 61 col2
----
112277

skipif mysql # not compatible
query I rowsort label-3439
SELECT - 54 + + MIN ( DISTINCT - 92 ) + - - 19 * - - 97 * + 61 col2
----
112277

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - MIN( DISTINCT - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3440
SELECT - MIN ( DISTINCT - 92 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + - 48 - + CAST( 78 AS SIGNED ) AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + - 48 - + CAST ( 78 AS INTEGER ) AS col1
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT 16 + + - COUNT( * ) - - + 20 * - 65 + + - CAST( - 4 AS SIGNED ) * + - 94 + + 34 + 58 AS col0
----
-1569

skipif mysql # not compatible
query I rowsort label-3442
SELECT 16 + + - COUNT ( * ) - - + 20 * - 65 + + - CAST ( - 4 AS INTEGER ) * + - 94 + + 34 + 58 AS col0
----
-1569

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL 20 - + + MIN( DISTINCT - + 4 )
----
24

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 20 - + + MIN ( DISTINCT - + 4 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT COUNT( * ) * - - 37 * 18 col0
----
666

skipif mysql # not compatible
query I rowsort label-3444
SELECT COUNT ( * ) * - - 37 * 18 col0
----
666

query I rowsort
SELECT ALL + NULLIF ( - - 61, - + 47 ) * 18 * + - ( + 70 ) * + - 1 - 55
----
76805

query I rowsort
SELECT + 3 + + + 21 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - - MIN( - ( - 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-3447
SELECT - - MIN ( - ( - 99 ) )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT COALESCE ( 75, - 11 * + + CAST( + + 48 AS SIGNED ) - 69, + 71 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3448
SELECT COALESCE ( 75, - 11 * + + CAST ( + + 48 AS INTEGER ) - 69, + 71 ) AS col2
----
75

query I rowsort
SELECT 69 * + 3
----
207

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3450
SELECT 38 * NULLIF ( 94, NULLIF ( - COUNT( * ), 66 ) * 72 + 95 + + COALESCE ( - 3, - COUNT( * ) * - + 34, + 29, 50 * + + 88 + + + 77 / 36 * + CAST( + + 36 AS DECIMAL ) ) )
----
3572

skipif mysql # not compatible
query I rowsort label-3450
SELECT 38 * NULLIF ( 94, NULLIF ( - COUNT ( * ), 66 ) * 72 + 95 + + COALESCE ( - 3, - COUNT ( * ) * - + 34, + 29, 50 * + + 88 + + + 77 / 36 * + CAST ( + + 36 AS REAL ) ) )
----
3572

query I rowsort
SELECT DISTINCT 85 * + + 66 AS col1
----
5610

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT ( 2 ) DIV + + ( 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT ( 2 ) / + + ( 53 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + 90 * NULLIF ( - 51, COUNT( * ) )
----
-4590

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 90 * NULLIF ( - 51, COUNT ( * ) )
----
-4590

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3454
SELECT ALL - 68 + + CAST( - 35 AS SIGNED ) DIV 5 DIV + - 90 AS col0, 85 - + 71 * - 83
----
-68
5978

skipif mysql # not compatible
query II rowsort label-3454
SELECT ALL - 68 + + CAST ( - 35 AS INTEGER ) / 5 / + - 90 AS col0, 85 - + 71 * - 83
----
-68
5978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3455
SELECT - 80 * + COUNT( * ) + - CAST( - 70 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-3455
SELECT - 80 * + COUNT ( * ) + - CAST ( - 70 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT COALESCE ( - 31, + 55 * COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-3456
SELECT COALESCE ( - 31, + 55 * COUNT ( * ) )
----
-31

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

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

query I rowsort
SELECT ALL + 22 * - ( - + 70 ) + + + 3
----
1543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT - COUNT( * ) DIV + 33 * - MIN( DISTINCT + 91 ) * - 62 + 23 + - 55
----
-32

skipif mysql # not compatible
query I rowsort label-3459
SELECT - COUNT ( * ) / + 33 * - MIN ( DISTINCT + 91 ) * - 62 + 23 + - 55
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT + 28 * 17 + 37 + - COUNT( * )
----
512

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + 28 * 17 + 37 + - COUNT ( * )
----
512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL - COUNT( * ) * + 37 + - NULLIF ( + - ( + 17 ), + - CAST( 6 AS SIGNED ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - COUNT ( * ) * + 37 + - NULLIF ( + - ( + 17 ), + - CAST ( 6 AS INTEGER ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT 42 * + ( - COUNT( * ) ) + + 71 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3462
SELECT 42 * + ( - COUNT ( * ) ) + + 71 AS col2
----
29

query I rowsort
SELECT ALL - 95 * + - 77 + - - 42
----
7357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT DISTINCT + 12 * + 3 + + CASE + CAST( + COUNT( + 93 ) AS SIGNED ) WHEN + 46 * 1 THEN 32 * - COUNT( ALL + 14 ) END - ( + + 75 ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 12 * + 3 + + CASE + CAST ( + COUNT ( + 93 ) AS INTEGER ) WHEN + 46 * 1 THEN 32 * - COUNT ( ALL + 14 ) END - ( + + 75 ) * - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 0, COALESCE ( + 99, 83 ) + - 43 + - ( + 18 ) )
----
0

query I rowsort
SELECT - + 76 + 2 + - - 83 * 65
----
5321

query I rowsort
SELECT ALL - ( - 2 ) * - 99 - 18
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3468
SELECT - 11 * + + ( + SUM( ALL - + 41 ) ) * 20 AS col2, + COUNT( * ) DIV 36
----
9020
0

skipif mysql # not compatible
query II rowsort label-3468
SELECT - 11 * + + ( + SUM ( ALL - + 41 ) ) * 20 AS col2, + COUNT ( * ) / 36
----
9020
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3469
SELECT NULLIF ( COUNT( ALL ( - + 15 ) ), - - 21 / + - 43 ) * - 63 + + NULLIF ( NULLIF ( + + 74, + + 71 ), + 53 - 19 ) * + + 4 + + 68 + + 65 + - + 69 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
297
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT NULLIF ( COUNT ( ALL ( - + 15 ) ), - - 21 / + - 43 ) * - 63 + + NULLIF ( NULLIF ( + + 74, + + 71 ), + 53 - 19 ) * + + 4 + + 68 + + 65 + - + 69 AS col2, CAST ( NULL AS REAL ) AS col2
----
297
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT ALL + - 21 DIV - ( + 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + - 21 / - ( + 76 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( 74 AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3473
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) AS col2, - 18 AS col0
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3473
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, - 18 AS col0
----
NULL
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT ALL - + COUNT( * ) * - + 42 AS col1, - MIN( ALL 36 ) AS col1
----
42
-36

skipif mysql # not compatible
query II rowsort label-3474
SELECT ALL - + COUNT ( * ) * - + 42 AS col1, - MIN ( ALL 36 ) AS col1
----
42
-36

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

skipif mysql # not compatible
query I rowsort label-3475
SELECT - - ( + SUM ( 71 ) )
----
71

query I rowsort
SELECT + 24 * - 76 * 89 AS col0
----
-162336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3477
SELECT - - CASE + 91 WHEN - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN - 8 * - + 45 THEN NULL WHEN + 79 THEN 83 ELSE + 33 END + - + 2 + + - 7 * + CAST( NULL AS SIGNED ) * + 51 / + CAST( + 56 AS DECIMAL ) - - 5 + + 90 + 6 * 35 + 34 * - 86 * - - 36 + 84 + + + COUNT( * ) + - + 23 + 77 - - 14 + 4 - - 93 * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT - - CASE + 91 WHEN - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN - 8 * - + 45 THEN NULL WHEN + 79 THEN 83 ELSE + 33 END + - + 2 + + - 7 * + CAST ( NULL AS INTEGER ) * + 51 / + CAST ( + 56 AS REAL ) - - 5 + + 90 + 6 * 35 + 34 * - 86 * - - 36 + 84 + + + COUNT ( * ) + - + 23 + 77 - - 14 + 4 - - 93 * + 0 AS col2
----
NULL

query I rowsort
SELECT ALL ( - + 41 ) AS col1
----
-41

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

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 73 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( COALESCE ( + 52, + 42 ) )
----
52

query I rowsort
SELECT - NULLIF ( 12, - - 98 / + - 62 )
----
-12

query II rowsort
SELECT ALL 27 AS col2, 73
----
27
73

query I rowsort
SELECT + 84 + 67
----
151

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

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

query I rowsort
SELECT + CASE + COALESCE ( + 7, ( - - 68 ) * + 75 - 53, 38 ) WHEN + 36 THEN + 75 - + 37 ELSE + 76 + - 21 END + 34 - 14 * 16 * - - 63 col1
----
-14023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3486
SELECT ALL CAST( - - 5 AS SIGNED ) + CAST( - 15 AS SIGNED ) * + 98 + 41 + - 48 * + 56 + 79 + 5 * + 24, + 38 AS col0
----
-3913
38

skipif mysql # not compatible
query II rowsort label-3486
SELECT ALL CAST ( - - 5 AS INTEGER ) + CAST ( - 15 AS INTEGER ) * + 98 + 41 + - 48 * + 56 + 79 + 5 * + 24, + 38 AS col0
----
-3913
38

query I rowsort
SELECT - NULLIF ( - 17, - AVG ( - 71 ) * + 49 ) col0
----
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( CAST( 34 AS SIGNED ) AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( CAST ( 34 AS INTEGER ) AS INTEGER ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3490
SELECT ALL 94 DIV + - 37 + + - COUNT( * ) * + + 50
----
-52

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 94 / + - 37 + + - COUNT ( * ) * + + 50
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( COALESCE ( + + 21, - - 59 * + - 79 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( COALESCE ( + + 21, - - 59 * + - 79 ) AS INTEGER )
----
21

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

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

query I rowsort
SELECT + CASE + ( - 28 ) WHEN + + 70 THEN + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT 20 DIV + + 80 - - - SUM( 37 ) * + + 59 AS col2
----
-2183

skipif mysql # not compatible
query I rowsort label-3494
SELECT 20 / + + 80 - - - SUM ( 37 ) * + + 59 AS col2
----
-2183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3495
SELECT + COUNT( - 77 ) - + CASE - 89 WHEN 35 - - + 89 THEN + CAST( NULL AS DECIMAL ) ELSE + 31 END + CASE - 94 WHEN - 25 + 95 + + + 48 * + + 23 THEN COUNT( * ) * - - 18 * 71 + + + ( + + ( + - 24 ) ) / 70 END * - - 70 * - - 49 * - 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT + COUNT ( - 77 ) - + CASE - 89 WHEN 35 - - + 89 THEN + CAST ( NULL AS REAL ) ELSE + 31 END + CASE - 94 WHEN - 25 + 95 + + + 48 * + + 23 THEN COUNT ( * ) * - - 18 * 71 + + + ( + + ( + - 24 ) ) / 70 END * - - 70 * - - 49 * - 50 col2
----
NULL

query II rowsort
SELECT + 63 AS col2, + 78
----
63
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - - NULLIF ( + COUNT( * ), - 13 ) * - COUNT( * ) + + ( + 97 )
----
96

skipif mysql # not compatible
query I rowsort label-3497
SELECT - - NULLIF ( + COUNT ( * ), - 13 ) * - COUNT ( * ) + + ( + 97 )
----
96

query I rowsort
SELECT DISTINCT + 8 * 8
----
64

query II rowsort
SELECT ALL + 17 AS col1, 45 * - 17
----
17
-765

query II rowsort
SELECT + 47 AS col1, 25 - + 33
----
47
-8

query II rowsort
SELECT ALL + + 75 AS col0, 7 AS col1
----
75
7

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

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

query II rowsort
SELECT - ( + 18 ) - + 16 AS col1, - 4
----
-34
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT + 11 DIV + 60 - + 32 - + + 23
----
-55

skipif mysql # not compatible
query I rowsort label-3504
SELECT + 11 / + 60 - + 32 - + + 23
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT - - 12 * - - 16 + + 62 + - 6, + COUNT( * ) AS col0
----
248
1

skipif mysql # not compatible
query II rowsort label-3505
SELECT - - 12 * - - 16 + + 62 + - 6, + COUNT ( * ) AS col0
----
248
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - 99 * - 56 * + COUNT( * ) AS col1
----
5544

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 99 * - 56 * + COUNT ( * ) AS col1
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT - - COUNT( DISTINCT - 38 ) + 45 AS col0, - ( + - 25 )
----
46
25

skipif mysql # not compatible
query II rowsort label-3507
SELECT - - COUNT ( DISTINCT - 38 ) + 45 AS col0, - ( + - 25 )
----
46
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3508
SELECT ALL 16 AS col2, + CAST( + ( + AVG ( DISTINCT - 0 ) ) AS SIGNED ) AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-3508
SELECT ALL 16 AS col2, + CAST ( + ( + AVG ( DISTINCT - 0 ) ) AS INTEGER ) AS col2
----
16
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT DISTINCT - 4 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - 4 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 65 + COUNT( * ) - + 56 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 65 + COUNT ( * ) - + 56 AS col1
----
10

query I rowsort
SELECT 8 * - + 38
----
-304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT + CAST( - 15 AS SIGNED ) + - COUNT( * ) AS col0
----
-16

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT MAX( ALL + 94 ) + + - 5 + 41, 55 * + 1 * COUNT( * ) + - - 98 * + COUNT( * ) * - 69 AS col2
----
130
-6707

skipif mysql # not compatible
query II rowsort label-3513
SELECT MAX ( ALL + 94 ) + + - 5 + 41, 55 * + 1 * COUNT ( * ) + - - 98 * + COUNT ( * ) * - 69 AS col2
----
130
-6707

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + 50 + - COALESCE ( - 67, COUNT( * ) * - 94, + 91 * + 25 - 75 ) + - - COUNT( * ) * + - ( - 87 ) AS col2
----
204

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + 50 + - COALESCE ( - 67, COUNT ( * ) * - 94, + 91 * + 25 - 75 ) + - - COUNT ( * ) * + - ( - 87 ) AS col2
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT DISTINCT 78 + - + 34 AS col1, ( COUNT( * ) ) + - 9 + - 83 col0
----
44
-91

skipif mysql # not compatible
query II rowsort label-3515
SELECT DISTINCT 78 + - + 34 AS col1, ( COUNT ( * ) ) + - 9 + - 83 col0
----
44
-91

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

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

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

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT 13 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT COUNT( + 34 ) - - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3518
SELECT COUNT ( + 34 ) - - 0 AS col1
----
1

query II rowsort
SELECT 72 * + 17 AS col0, - 65 AS col0
----
1224
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3520
SELECT ALL 77 - 71 + CAST( 11 AS SIGNED ) + - 2 DIV + - 18
----
17

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 77 - 71 + CAST ( 11 AS INTEGER ) + - 2 / + - 18
----
17

query I rowsort
SELECT 62 * + 97
----
6014

query II rowsort
SELECT 97 * + 86 AS col1, - 5 AS col1
----
8342
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT + NULLIF ( + 95, + - 83 ) DIV - + 53 + + 55
----
54

skipif mysql # not compatible
query I rowsort label-3523
SELECT + NULLIF ( + 95, + - 83 ) / - + 53 + + 55
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT - 4 * + - ( - 52 ) + - - COUNT( * ) + - MAX( - + 10 ) DIV 63 * - 19 - + COUNT( * )
----
-208

skipif mysql # not compatible
query I rowsort label-3524
SELECT - 4 * + - ( - 52 ) + - - COUNT ( * ) + - MAX ( - + 10 ) / 63 * - 19 - + COUNT ( * )
----
-208

query I rowsort
SELECT + 6 + + 23
----
29

query I rowsort
SELECT DISTINCT 85 * + + 62 * - + 55
----
-289850

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL CASE + 62 WHEN - 90 THEN 68 WHEN CASE + 79 WHEN - 0 THEN 49 WHEN - + NULLIF ( + NULLIF ( 34, - 20 - COUNT( * ) ), - COUNT( * ) ) * - - 38 THEN + 82 * 95 ELSE NULLIF ( - 78, - - COUNT( * ) + - - 11 ) + + - ( + 27 ) * - - 34 END / + 16 + + 48 THEN NULL ELSE NULL END / - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL CASE + 62 WHEN - 90 THEN 68 WHEN CASE + 79 WHEN - 0 THEN 49 WHEN - + NULLIF ( + NULLIF ( 34, - 20 - COUNT ( * ) ), - COUNT ( * ) ) * - - 38 THEN + 82 * 95 ELSE NULLIF ( - 78, - - COUNT ( * ) + - - 11 ) + + - ( + 27 ) * - - 34 END / + 16 + + 48 THEN NULL ELSE NULL END / - + 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL - + CAST( + 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - + CAST ( + 89 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 45 + 8 * 14 * NULLIF ( - ( ( + COUNT( * ) ) ), + - AVG ( CASE + 2 WHEN - + 50 * 12 THEN + - 54 ELSE NULL END ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3529
SELECT 45 + 8 * 14 * NULLIF ( - ( ( + COUNT ( * ) ) ), + - AVG ( CASE + 2 WHEN - + 50 * 12 THEN + - 54 ELSE NULL END ) ) AS col2
----
-67

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

skipif mysql # not compatible
query I rowsort label-3530
SELECT + MAX ( + 68 )
----
68

query II rowsort
SELECT + ( - 31 ) * 42 + - - 45 AS col0, - 13
----
-1257
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - COALESCE ( 0, + COUNT( * ) + + COUNT( * ) ) + - - 88 + + + 35 - 48 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - COALESCE ( 0, + COUNT ( * ) + + COUNT ( * ) ) + - - 88 + + + 35 - 48 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + COALESCE ( - COUNT( * ), + + 2, - - 47, + + 6 ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COALESCE ( - COUNT ( * ), + + 2, - - 47, + + 6 ) + - 8
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT - 63 DIV + 9 - - 24 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 63 / + 9 - - 24 * COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - CASE 63 WHEN - - 95 THEN NULL ELSE + 75 * - 86 * + + 26 - ( COUNT( * ) ) + - 46 + 55 END * - - 90 col1
----
15092280

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CASE 63 WHEN - - 95 THEN NULL ELSE + 75 * - 86 * + + 26 - ( COUNT ( * ) ) + - 46 + 55 END * - - 90 col1
----
15092280

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT 56 / + CAST( NULL AS SIGNED ) * + 48 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT 56 / + CAST ( NULL AS INTEGER ) * + 48 * - 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3538
SELECT 46 DIV + ( + 10 ), SUM( DISTINCT - - 18 ) AS col0
----
4
18

skipif mysql # not compatible
query II rowsort label-3538
SELECT 46 / + ( + 10 ), SUM ( DISTINCT - - 18 ) AS col0
----
4
18

query I rowsort
SELECT ALL 90 + ( 63 ) AS col1
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT ALL COUNT( * ) DIV 79 * 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL COUNT ( * ) / 79 * 4 AS col0
----
0

query I rowsort
SELECT 78 + + 10
----
88

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

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - 20 * - COUNT ( * ) / + 99 AS col1
----
0

query I rowsort
SELECT 88 + - 95 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3544
SELECT 51 AS col2, ( + 64 ) * - 26 * 12 + - - CAST( NULL AS SIGNED ) + - 21 - + + 84 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3544
SELECT 51 AS col2, ( + 64 ) * - 26 * 12 + - - CAST ( NULL AS INTEGER ) + - 21 - + + 84 AS col0
----
51
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT + 13 AS col0, 6 + - - ( + 27 ) + - 1 * + SUM( 14 )
----
13
19

skipif mysql # not compatible
query II rowsort label-3546
SELECT + 13 AS col0, 6 + - - ( + 27 ) + - 1 * + SUM ( 14 )
----
13
19

query I rowsort
SELECT DISTINCT - - ( + 88 ) AS col0
----
88

query I rowsort
SELECT ALL 48 * - - 38
----
1824

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT 66 AS col1, SUM( ALL + 39 ) AS col0
----
66
39

skipif mysql # not compatible
query II rowsort label-3549
SELECT 66 AS col1, SUM ( ALL + 39 ) AS col0
----
66
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT + 54 * - - 65 + + CAST( - 81 AS SIGNED ) AS col2
----
3429

skipif mysql # not compatible
query I rowsort label-3551
SELECT + 54 * - - 65 + + CAST ( - 81 AS INTEGER ) AS col2
----
3429

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT 0 - 13 DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT 0 - 13 / + - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT COUNT( * ) * + + 93 * + + 27 * + 91
----
228501

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT COUNT ( * ) * + + 93 * + + 27 * + 91
----
228501

query I rowsort
SELECT ALL - 8 * + 76 + 54 + - 33 AS col1
----
-587

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - 5 * - + MIN( - 83 ) * - - 9 * - 64 - COUNT( * ) AS col2
----
239039

skipif mysql # not compatible
query I rowsort label-3555
SELECT - 5 * - + MIN ( - 83 ) * - - 9 * - 64 - COUNT ( * ) AS col2
----
239039

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

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

query I rowsort
SELECT + 20 * - 1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT DISTINCT + CASE 91 WHEN + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + - 19 END * + MIN( - + 22 ) + - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + CASE 91 WHEN + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + - 19 END * + MIN ( - + 22 ) + - - 38
----
NULL

query I rowsort
SELECT ALL + 79 * 46 + + 77 AS col0
----
3711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT 78 DIV + MIN( + 63 ) + - MAX( DISTINCT - 18 ) * + 78
----
1405

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT 78 / + MIN ( + 63 ) + - MAX ( DISTINCT - 18 ) * + 78
----
1405

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - COALESCE ( - + 22, 28 + SUM( DISTINCT + - 96 ) ) + + + 27 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - COALESCE ( - + 22, 28 + SUM ( DISTINCT + - 96 ) ) + + + 27 AS col0
----
49

query I rowsort
SELECT DISTINCT 22 + + 56 AS col1
----
78

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

query I rowsort
SELECT ALL - 80 + 67
----
-13

query I rowsort
SELECT + 14 + 91 * + 16 AS col2
----
1470

query I rowsort
SELECT + 32 + + - 74 AS col1
----
-42

query II rowsort
SELECT ALL 70 AS col0, 39 AS col0
----
70
39

query I rowsort
SELECT ALL 2 + 88 + - + 89
----
1

query I rowsort
SELECT + 8 + 64 AS col0
----
72

query II rowsort
SELECT ALL 23 AS col0, 11 * + 96 AS col1
----
23
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + MAX( 62 ) + + 60
----
122

skipif mysql # not compatible
query I rowsort label-3571
SELECT + MAX ( 62 ) + + 60
----
122

onlyif mysql # DIV for integer division: 
query II rowsort label-3572
SELECT ALL 78, 24 DIV 25 - - 59 AS col0
----
78
59

skipif mysql # not compatible
query II rowsort label-3572
SELECT ALL 78, 24 / 25 - - 59 AS col0
----
78
59

query I rowsort
SELECT - CASE 84 WHEN + 78 THEN NULL WHEN + 76 + - COALESCE ( - 14, - 90 ) * - + 87 THEN + 5 ELSE - COALESCE ( + 56, 61 ) END
----
56

query I rowsort
SELECT + 60 + 35 col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT + 78 * + - 80 * + 76 * 0 DIV - - 60
----
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 78 * + - 80 * + 76 * 0 / - - 60
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - CASE - COUNT( * ) WHEN 75 THEN NULL WHEN - + MIN( ALL 17 ) THEN + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - CASE - COUNT ( * ) WHEN 75 THEN NULL WHEN - + MIN ( ALL 17 ) THEN + 28 END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + ( - 38 ), 58 ) AS col2
----
38

query II rowsort
SELECT ALL 44, + 89 AS col0
----
44
89

query I rowsort
SELECT + 36 + - 44
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-3581
SELECT - 8 AS col0, + ( 9 ) - 22 DIV + + 83
----
-8
9

skipif mysql # not compatible
query II rowsort label-3581
SELECT - 8 AS col0, + ( 9 ) - 22 / + + 83
----
-8
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL ( - 56 ) DIV + COUNT( ALL - + 11 ) - - 73 + + 64 * - 23 * + 92 * SUM( - 86 )
----
11646481

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL ( - 56 ) / + COUNT ( ALL - + 11 ) - - 73 + + 64 * - 23 * + 92 * SUM ( - 86 )
----
11646481

query I rowsort
SELECT ALL + 71 + 89 * 13 col0
----
1228

query I rowsort
SELECT - - 65 - + - 97
----
162

query II rowsort
SELECT DISTINCT - 33 AS col2, 87 * - 27
----
-33
-2349

query I rowsort
SELECT ALL - - 74 * - 26 AS col1
----
-1924

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT 5, 79 * + + COUNT( * ) * 86 AS col0
----
5
6794

skipif mysql # not compatible
query II rowsort label-3588
SELECT 5, 79 * + + COUNT ( * ) * 86 AS col0
----
5
6794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT + + 4 * - 40 * - - CAST( NULL AS SIGNED ) * + 10 + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT + + 4 * - 40 * - - CAST ( NULL AS INTEGER ) * + 10 + 44 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT - 52 * 87 DIV - 45 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3590
SELECT - 52 * 87 / - 45 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT ALL - 54 DIV + COUNT( * ) + + MIN( 49 ) + + NULLIF ( 22, 0 ) + - NULLIF ( + 11, + + 30 * MIN( - 80 ) * 28 ) + - 36 * 58
----
-2082

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 54 / + COUNT ( * ) + + MIN ( 49 ) + + NULLIF ( 22, 0 ) + - NULLIF ( + 11, + + 30 * MIN ( - 80 ) * 28 ) + - 36 * 58
----
-2082

query I rowsort
SELECT - 91 + + 31
----
-60

query I rowsort
SELECT ALL + 39 * + + 82 + - + 96 * - - 70 + - - 3 + 72 col2
----
-3447

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT DISTINCT + 68 * 71 + + + MAX( DISTINCT - 72 ), 52 + + 26 * COUNT( * ) + + + COUNT( * ) AS col1
----
4756
79

skipif mysql # not compatible
query II rowsort label-3594
SELECT DISTINCT + 68 * 71 + + + MAX ( DISTINCT - 72 ), 52 + + 26 * COUNT ( * ) + + + COUNT ( * ) AS col1
----
4756
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL - 75 * ( 51 ) + + 86 + + 15 - - + COUNT( * ) * + 97 AS col1
----
-3627

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - 75 * ( 51 ) + + 86 + + 15 - - + COUNT ( * ) * + 97 AS col1
----
-3627

query I rowsort
SELECT 80 * + 33 * ( - ( - - 17 ) ) + + - ( - 55 ) * 84 * + + 67 * + - 3 * + 28
----
-26046240

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + + 53 * + 53 + + 39 + + + COUNT( * )
----
2849

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + + 53 * + 53 + + 39 + + + COUNT ( * )
----
2849

query I rowsort
SELECT DISTINCT - - 87 * 11 * + 66 + 3
----
63165

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT SUM( + - 19 ) * + 32 + - 12 - - 56 * 77 AS col1
----
3692

skipif mysql # not compatible
query I rowsort label-3599
SELECT SUM ( + - 19 ) * + 32 + - 12 - - 56 * 77 AS col1
----
3692

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3600
SELECT + CAST( NULL AS DECIMAL ), 42 - 1 * + 96 AS col0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-3600
SELECT + CAST ( NULL AS REAL ), 42 - 1 * + 96 AS col0
----
NULL
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT + + 14 + - 34 DIV + 57 + - + 85 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3601
SELECT + + 14 + - 34 / + 57 + - + 85 AS col2
----
-71

query I rowsort
SELECT - 94 * - 63 * 14 + + 87 AS col0
----
82995

onlyif mysql # DIV for integer division: 
query II rowsort label-3603
SELECT + 96, 6 * 0 * + - 55 DIV - + 39 + + COALESCE ( + 87, + 46 ) col0
----
96
87

skipif mysql # not compatible
query II rowsort label-3603
SELECT + 96, 6 * 0 * + - 55 / - + 39 + + COALESCE ( + 87, + 46 ) col0
----
96
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT ALL - 91 * + + ( COUNT( * ) ) - 60 DIV COUNT( 81 ) + ( + COALESCE ( + 9, + 72 + - 66 * + 99 ) ) DIV + 78 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - 91 * + + ( COUNT ( * ) ) - 60 / COUNT ( 81 ) + ( + COALESCE ( + 9, + 72 + - 66 * + 99 ) ) / + 78 AS col0
----
-151

query I rowsort
SELECT DISTINCT - 46 * + + 66 * + 37 * - - 38 * 37 col0
----
-157938792

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3608
SELECT DISTINCT 90 DIV + COUNT( * ) col1, - 85 AS col2, + 47 + 27
----
90
-85
74

skipif mysql # not compatible
query III rowsort label-3608
SELECT DISTINCT 90 / + COUNT ( * ) col1, - 85 AS col2, + 47 + 27
----
90
-85
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - 49 - 58 DIV 27 * + - 50 * + - 68
----
-6849

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 49 - 58 / 27 * + - 50 * + - 68
----
-6849

query I rowsort
SELECT + 54 * + ( 28 ) AS col0
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT COUNT( ALL + 21 ) AS col0, + 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-3611
SELECT COUNT ( ALL + 21 ) AS col0, + 87 AS col2
----
1
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT COUNT( ALL + CAST( 37 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3612
SELECT COUNT ( ALL + CAST ( 37 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT MIN( ALL - COALESCE ( + 90, - 14 ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3613
SELECT MIN ( ALL - COALESCE ( + 90, - 14 ) ) AS col0
----
-90

query I rowsort
SELECT + NULLIF ( 58, + + 44 ) * + 25 AS col0
----
1450

query II rowsort
SELECT + ( + ( ( 89 ) ) ) - + - 19, + 85 + - 68 col1
----
108
17

query I rowsort
SELECT ALL 83 * + 84 AS col2
----
6972

query II rowsort
SELECT + - 42 + 91 AS col0, + 10 AS col0
----
49
10

query I rowsort
SELECT + 9 + - 31
----
-22

query II rowsort
SELECT - + 61 - 59 AS col2, 3 AS col0
----
-120
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT - ( + + COUNT( * ) ) + 12 - 69 + + 55 - 9 * - + 92 AS col1
----
825

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT - ( + + COUNT ( * ) ) + 12 - 69 + + 55 - 9 * - + 92 AS col1
----
825

query I rowsort
SELECT ALL 92 + - 99 AS col1
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT COUNT( + 32 ) + - + MIN( 42 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3623
SELECT COUNT ( + 32 ) + - + MIN ( 42 ) AS col0
----
-41

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

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

query I rowsort
SELECT ALL + 4 + + 59 + + 54 + + 16 AS col2
----
133

query I rowsort
SELECT DISTINCT - 46 + 45 + 83 AS col1
----
82

query I rowsort
SELECT DISTINCT 81 * - 72 + 37 + 91
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3628
SELECT DISTINCT - 96 * COALESCE ( 32, + 5 * - 18 + + CASE - 22 WHEN - COUNT( * ) THEN + 35 WHEN + + 40 * + + 59 THEN - AVG ( ALL + ( 72 ) ) + 27 WHEN - + 36 THEN NULL END DIV - 10, - CAST( - 2 AS SIGNED ) ) * - 3 col2
----
9216

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - 96 * COALESCE ( 32, + 5 * - 18 + + CASE - 22 WHEN - COUNT ( * ) THEN + 35 WHEN + + 40 * + + 59 THEN - AVG ( ALL + ( 72 ) ) + 27 WHEN - + 36 THEN NULL END / - 10, - CAST ( - 2 AS INTEGER ) ) * - 3 col2
----
9216

query I rowsort
SELECT ALL + + 54 - - 54 + - - 58 * + 98
----
5792

query II rowsort
SELECT + 91 - 84, 43 - - 84 AS col2
----
7
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT + CAST( - - 71 AS SIGNED ) * + CASE - 19 WHEN - - 15 + + 76 - + 80 * - - 65 * - - 29 * ( + 9 ) THEN - NULLIF ( + ( - - 37 ), - CAST( + COUNT( + 61 ) AS SIGNED ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT + CAST ( - - 71 AS INTEGER ) * + CASE - 19 WHEN - - 15 + + 76 - + 80 * - - 65 * - - 29 * ( + 9 ) THEN - NULLIF ( + ( - - 37 ), - CAST ( + COUNT ( + 61 ) AS INTEGER ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT 83 * - + ( + - COUNT( DISTINCT - 95 ) ) * 73 - - 36 + - CAST( 75 AS SIGNED )
----
6020

skipif mysql # not compatible
query I rowsort label-3632
SELECT 83 * - + ( + - COUNT ( DISTINCT - 95 ) ) * 73 - - 36 + - CAST ( 75 AS INTEGER )
----
6020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL CASE 87 WHEN + 66 * + COUNT( * ) THEN SUM( + 92 ) WHEN + ( - + SUM( DISTINCT - 74 ) ) THEN NULL ELSE + 86 END * - 39 DIV - COUNT( ALL - + 88 ) AS col1
----
3354

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CASE 87 WHEN + 66 * + COUNT ( * ) THEN SUM ( + 92 ) WHEN + ( - + SUM ( DISTINCT - 74 ) ) THEN NULL ELSE + 86 END * - 39 / - COUNT ( ALL - + 88 ) AS col1
----
3354

query II rowsort
SELECT 24, + 15 AS col0
----
24
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - COUNT( * ) * 21 * + - 34 + + 32
----
746

skipif mysql # not compatible
query I rowsort label-3635
SELECT - COUNT ( * ) * 21 * + - 34 + + 32
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT MIN( - - ( 88 ) ) - - 85 + - + 37 + 50
----
186

skipif mysql # not compatible
query I rowsort label-3636
SELECT MIN ( - - ( 88 ) ) - - 85 + - + 37 + 50
----
186

query I rowsort
SELECT 43 * + 86
----
3698

query I rowsort
SELECT 46 + + 46 col1
----
92

query I rowsort
SELECT 60 * ( + - ( + 10 ) ) * 64 - + 4 * + 59 AS col0
----
-38636

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT CASE - 54 WHEN + COUNT( ALL 60 ) THEN - - 65 * 90 * + 74 + - - 94 WHEN + - 75 THEN + 22 WHEN - 60 / - - 69 * - 99 + 75 + 46 THEN - 42 + - + 89 ELSE - 91 END * + - 84 * 21 * + 26 AS col0, 22 AS col2
----
4173624
22

skipif mysql # not compatible
query II rowsort label-3640
SELECT CASE - 54 WHEN + COUNT ( ALL 60 ) THEN - - 65 * 90 * + 74 + - - 94 WHEN + - 75 THEN + 22 WHEN - 60 / - - 69 * - 99 + 75 + 46 THEN - 42 + - + 89 ELSE - 91 END * + - 84 * 21 * + 26 AS col0, 22 AS col2
----
4173624
22

query I rowsort
SELECT 62 + - + 48 col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT 71 + - 28 * 43 + CAST( - NULLIF ( - 21, - + 66 * + 7 + + - 73 ) AS SIGNED ) AS col2
----
-1112

skipif mysql # not compatible
query I rowsort label-3642
SELECT 71 + - 28 * 43 + CAST ( - NULLIF ( - 21, - + 66 * + 7 + + - 73 ) AS INTEGER ) AS col2
----
-1112

query I rowsort
SELECT DISTINCT + 70 * 92
----
6440

query I rowsort
SELECT DISTINCT - 16 + 3 AS col0
----
-13

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

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

query I rowsort
SELECT ALL + 98 + + 38 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT 68 + - - 89 * 47 - 40 * 39 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT 68 + - - 89 * 47 - 40 * 39 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3648
SELECT 71 * MAX( DISTINCT - 85 ) * + 2 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT 71 * MAX ( DISTINCT - 85 ) * + 2 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3649
SELECT 6 + COALESCE ( COUNT( * ), + 74 * - CAST( - - 45 AS SIGNED ) ) AS col1, ( - 23 ) * 55 AS col0
----
7
-1265

skipif mysql # not compatible
query II rowsort label-3649
SELECT 6 + COALESCE ( COUNT ( * ), + 74 * - CAST ( - - 45 AS INTEGER ) ) AS col1, ( - 23 ) * 55 AS col0
----
7
-1265

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL - 25 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - 25 / - 83 AS col2
----
0

query I rowsort
SELECT DISTINCT 64 + - 62 AS col1
----
2

query II rowsort
SELECT ALL ( 61 ) + - 7 AS col1, - COALESCE ( + COALESCE ( + 11, + 5 ), - 12 )
----
54
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT + 41 + - COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + 41 + - COUNT ( * ) col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3654
SELECT + MAX( - + 96 ) * NULLIF ( - CAST( NULL AS DECIMAL ), - SUM( DISTINCT - COALESCE ( 57, - 89 ) ) * - 5 - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + MAX ( - + 96 ) * NULLIF ( - CAST ( NULL AS REAL ), - SUM ( DISTINCT - COALESCE ( 57, - 89 ) ) * - 5 - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 19 * 76 AS col0
----
1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3656
SELECT + CAST( - + 56 AS SIGNED ) + + 13 + 57 + ( - MAX( ALL + + 70 ) ) * - + 56, NULLIF ( + NULLIF ( - 69, - 67 ), - - 24 ) AS col1
----
3934
-69

skipif mysql # not compatible
query II rowsort label-3656
SELECT + CAST ( - + 56 AS INTEGER ) + + 13 + 57 + ( - MAX ( ALL + + 70 ) ) * - + 56, NULLIF ( + NULLIF ( - 69, - 67 ), - - 24 ) AS col1
----
3934
-69

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3658
SELECT DISTINCT - 86 * + - COALESCE ( 6, + 9 * - ( + NULLIF ( 25, 28 * - 33 ) ) * + - ( - ( - - 73 ) ) DIV 41 ) AS col1, 38 AS col1
----
516
38

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT - 86 * + - COALESCE ( 6, + 9 * - ( + NULLIF ( 25, 28 * - 33 ) ) * + - ( - ( - - 73 ) ) / 41 ) AS col1, 38 AS col1
----
516
38

query I rowsort
SELECT ALL 26 + + 37
----
63

query I rowsort
SELECT - 39 + + + 22
----
-17

query I rowsort
SELECT - 9 + - - 42 * - 15
----
-639

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT - 57, - 91 * + COUNT( * ) AS col1
----
-57
-91

skipif mysql # not compatible
query II rowsort label-3662
SELECT - 57, - 91 * + COUNT ( * ) AS col1
----
-57
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL + 67 - + NULLIF ( + 25, - 42 - ( + COUNT( * ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 67 - + NULLIF ( + 25, - 42 - ( + COUNT ( * ) ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3664
SELECT - 67 * - CAST( CASE + 30 WHEN - 70 * 5 * + 20 - 96 - 17 + + + CAST( NULL AS DECIMAL ) + 11 * - - 69 * + 72 THEN + COUNT( * ) * - - 35 * - 39 * + - 34 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 67 * - CAST ( CASE + 30 WHEN - 70 * 5 * + 20 - 96 - 17 + + + CAST ( NULL AS REAL ) + 11 * - - 69 * + 72 THEN + COUNT ( * ) * - - 35 * - 39 * + - 34 END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 19, 17 col2
----
19
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT - ( 54 ) DIV 97 + - 17 - COUNT( * ) DIV - 74
----
-17

skipif mysql # not compatible
query I rowsort label-3666
SELECT - ( 54 ) / 97 + - 17 - COUNT ( * ) / - 74
----
-17

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

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - MIN ( DISTINCT 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3668
SELECT 37 * 80 + + CAST( NULL AS DECIMAL ) + CAST( - 5 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT 37 * 80 + + CAST ( NULL AS REAL ) + CAST ( - 5 AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT ALL + 92 * 84 AS col2, + 4 AS col0
----
7728
4

query I rowsort
SELECT + NULLIF ( 43, - - 79 ) * - 55 + - 27 AS col1
----
-2392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT 36 * 88 * - + CASE + + 52 WHEN 3 * + 26 * - CAST( NULL AS SIGNED ) + - 63 * 13 - 50 / + 9 THEN + ( CAST( NULL AS SIGNED ) ) WHEN - 1 THEN + - 5 ELSE NULL END * 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT 36 * 88 * - + CASE + + 52 WHEN 3 * + 26 * - CAST ( NULL AS INTEGER ) + - 63 * 13 - 50 / + 9 THEN + ( CAST ( NULL AS INTEGER ) ) WHEN - 1 THEN + - 5 ELSE NULL END * 35 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT MIN( ALL + - 84 ) * - 5 + - 42
----
378

skipif mysql # not compatible
query I rowsort label-3673
SELECT MIN ( ALL + - 84 ) * - 5 + - 42
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL 20 * CASE 5 WHEN + 40 * - 34 THEN - + ( - ( - ( + 23 ) ) ) WHEN - - CAST( NULL AS SIGNED ) * COALESCE ( - + ( + 53 ), + 11 * 71, + - 89 * COUNT( * ) ) THEN + ( - CAST( NULL AS SIGNED ) ) ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL 20 * CASE 5 WHEN + 40 * - 34 THEN - + ( - ( - ( + 23 ) ) ) WHEN - - CAST ( NULL AS INTEGER ) * COALESCE ( - + ( + 53 ), + 11 * 71, + - 89 * COUNT ( * ) ) THEN + ( - CAST ( NULL AS INTEGER ) ) ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT ALL + 92 * - 97 col0, - 71 * 60
----
-8924
-4260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3676
SELECT 88 * CAST( + - 72 AS SIGNED ) * + - 7, 73 DIV + 21 - - + 85 * - + 76 AS col0
----
44352
-6457

skipif mysql # not compatible
query II rowsort label-3676
SELECT 88 * CAST ( + - 72 AS INTEGER ) * + - 7, 73 / + 21 - - + 85 * - + 76 AS col0
----
44352
-6457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT 65 * + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + 7 * + 70 + - + 12 + 16
----
494

skipif mysql # not compatible
query I rowsort label-3677
SELECT 65 * + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + 7 * + 70 + - + 12 + 16
----
494

query I rowsort
SELECT ALL 84 * 37 * - 77 AS col1
----
-239316

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT 42 + - COUNT( * ) + 92 + - 0 - + COUNT( * ) * + 73 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT 42 + - COUNT ( * ) + 92 + - 0 - + COUNT ( * ) * + 73 AS col2
----
60

query II rowsort
SELECT ALL - ( - 14 ) AS col0, 21 - - 38
----
14
59

query I rowsort
SELECT + 26 * + - 75 + + - 9 AS col0
----
-1959

query I rowsort
SELECT DISTINCT 19 + - + 36
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT ALL 77 + - 57, - 65 DIV - 26 + + 94 * + 2 * + COUNT( * ) AS col0
----
20
190

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL 77 + - 57, - 65 / - 26 + + 94 * + 2 * + COUNT ( * ) AS col0
----
20
190

query I rowsort
SELECT DISTINCT - NULLIF ( + 12, - 19 )
----
-12

query I rowsort
SELECT 90 * ( 15 ) AS col2
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + COUNT( * ) + 74 + + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + COUNT ( * ) + 74 + + + COUNT ( * )
----
76

query I rowsort
SELECT 80 * 85 col0
----
6800

query I rowsort
SELECT 16 * - 28 * ( + - 28 ) * - 75 AS col1
----
-940800

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT DISTINCT - - 0 DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT - - 0 / 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT - - 59 - - 96 + - + 26 DIV + + ( + 93 )
----
155

skipif mysql # not compatible
query I rowsort label-3690
SELECT - - 59 - - 96 + - + 26 / + + ( + 93 )
----
155

query II rowsort
SELECT ALL - - 50 + 86, 29 AS col1
----
136
29

query I rowsort
SELECT ALL + - 88 + 55 + + + 28 * - 98 * + - 26
----
71311

query I rowsort
SELECT DISTINCT - - 25 * + + 57 AS col2
----
1425

query I rowsort
SELECT ALL - 57 - - 50
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT ALL 15 - - 6 DIV 54
----
15

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL 15 - - 6 / 54
----
15

query I rowsort
SELECT - 84 * + ( 30 ) AS col1
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT + + CAST( 79 AS SIGNED ) + MAX( ALL + - 56 ) + COUNT( * ), 72 AS col2
----
24
72

skipif mysql # not compatible
query II rowsort label-3697
SELECT + + CAST ( 79 AS INTEGER ) + MAX ( ALL + - 56 ) + COUNT ( * ), 72 AS col2
----
24
72

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

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

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

skipif mysql # not compatible
query I rowsort label-3699
SELECT + - 2 + 26 - 67 - + + COUNT ( * ) AS col0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT ALL COUNT( ALL 22 ) AS col0, 60
----
1
60

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL COUNT ( ALL 22 ) AS col0, 60
----
1
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT - CAST( - 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3702
SELECT - CAST ( - 26 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - - CASE + NULLIF ( 91, + 47 ) WHEN - - 61 / - 40 + + - MIN( + ( 46 ) ) THEN + 57 WHEN + + 16 THEN NULL END * - - 47 * - ( - 29 ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT - - CASE + NULLIF ( 91, + 47 ) WHEN - - 61 / - 40 + + - MIN ( + ( 46 ) ) THEN + 57 WHEN + + 16 THEN NULL END * - - 47 * - ( - 29 ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - + 83 + + SUM( ( + - 97 ) )
----
-180

skipif mysql # not compatible
query I rowsort label-3704
SELECT - + 83 + + SUM ( ( + - 97 ) )
----
-180

query I rowsort
SELECT + + 62 col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT + 0 * - 90 * + 64 DIV - 27 * 38 - - + 3 + + 2 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3706
SELECT + 0 * - 90 * + 64 / - 27 * 38 - - + 3 + + 2 AS col2
----
5

query II rowsort
SELECT ALL + + ( + + 64 ), 65 - 74 AS col2
----
64
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - CASE - ( - ( - - 48 ) ) WHEN + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - 71 THEN + 46 WHEN 11 THEN NULL END / - NULLIF ( + - COUNT( * ), - 42 ) * - 19 * 5 * - 93 + + 12 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT - CASE - ( - ( - - 48 ) ) WHEN + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - 71 THEN + 46 WHEN 11 THEN NULL END / - NULLIF ( + - COUNT ( * ), - 42 ) * - 19 * 5 * - 93 + + 12 + 82
----
NULL

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

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

query I rowsort
SELECT + 32 * + 38 AS col2
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + COALESCE ( + - SUM( ALL + 70 ), - 2, + + 93 ) - - + 41
----
-29

skipif mysql # not compatible
query I rowsort label-3711
SELECT + COALESCE ( + - SUM ( ALL + 70 ), - 2, + + 93 ) - - + 41
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT ( - COUNT( * ) ) * + + ( CAST( NULL AS SIGNED ) ) + + + 0 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT ( - COUNT ( * ) ) * + + ( CAST ( NULL AS INTEGER ) ) + + + 0 + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + 22 * + ( + 31 ) + + 16 + - + COUNT( * ) + - - 28 + NULLIF ( + ( - + 53 ), - 14 + 95 - - - 70 ) + + 33 * - + COUNT( * ) * 71 * + 46 + + 18 col1
----
-107088

skipif mysql # not compatible
query I rowsort label-3713
SELECT + 22 * + ( + 31 ) + + 16 + - + COUNT ( * ) + - - 28 + NULLIF ( + ( - + 53 ), - 14 + 95 - - - 70 ) + + 33 * - + COUNT ( * ) * 71 * + 46 + + 18 col1
----
-107088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL CAST( NULL AS SIGNED ) * + NULLIF ( + + CAST( - 78 AS SIGNED ), - 86 - ( + - 72 ) ) + + 22 * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( + + CAST ( - 78 AS INTEGER ), - 86 - ( + - 72 ) ) + + 22 * - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT 36 DIV MIN( ALL - 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT 36 / MIN ( ALL - 22 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + COUNT( * ) DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT + COUNT ( * ) / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL 71 DIV - SUM( ( + 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL 71 / - SUM ( ( + 79 ) )
----
0

query I rowsort
SELECT + 59 * - 65 + + - 83 AS col1
----
-3918

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT 34 * - - 18 - + - 87 + + 47 * + COUNT( * ) AS col2, + 85 - - 6
----
746
91

skipif mysql # not compatible
query II rowsort label-3719
SELECT 34 * - - 18 - + - 87 + + 47 * + COUNT ( * ) AS col2, + 85 - - 6
----
746
91

query I rowsort
SELECT + COALESCE ( 36, 87 ) * + - 16 col0
----
-576

query I rowsort
SELECT - 94 * + 71 * - 45 AS col0
----
300330

query I rowsort
SELECT + 6 + + 72
----
78

query I rowsort
SELECT + 82 + - - 7
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT COALESCE ( - ( + NULLIF ( - COUNT( * ), MIN( 91 ) ) ), - ( - 49 ) * 28 )
----
1

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT COALESCE ( - ( + NULLIF ( - COUNT ( * ), MIN ( 91 ) ) ), - ( - 49 ) * 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT 72 * 46 + COUNT( * ) AS col2
----
3313

skipif mysql # not compatible
query I rowsort label-3725
SELECT 72 * 46 + COUNT ( * ) AS col2
----
3313

query I rowsort
SELECT ALL 64 - 8
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT MIN( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT MIN ( + 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL SUM( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL SUM ( DISTINCT 18 )
----
18

query I rowsort
SELECT + 63 + 11
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT - ( CASE + MIN( 99 ) WHEN + 49 THEN NULL WHEN - ( MIN( DISTINCT + ( + 62 ) ) ) THEN COUNT( * ) + MAX( CAST( NULL AS SIGNED ) ) END ) * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - ( CASE + MIN ( 99 ) WHEN + 49 THEN NULL WHEN - ( MIN ( DISTINCT + ( + 62 ) ) ) THEN COUNT ( * ) + MAX ( CAST ( NULL AS INTEGER ) ) END ) * + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - 33 + 57 * COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 33 + 57 * COUNT ( * ) col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT - 92 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT - 92 / 53
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT ALL - 64 * SUM( 23 DIV ( - 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - 64 * SUM ( 23 / ( - 75 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - 10 + CASE 93 WHEN 14 THEN 44 * + 42 - MAX( - 15 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 10 + CASE 93 WHEN 14 THEN 44 * + 42 - MAX ( - 15 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 91 * - 65
----
5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL - CASE 95 WHEN 10 + COUNT( * ) THEN - CAST( COUNT( * ) AS SIGNED ) ELSE NULL END * 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - CASE 95 WHEN 10 + COUNT ( * ) THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END * 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 19 * 50 AS col1
----
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT ALL + ( CASE 9 WHEN + COALESCE ( 30, NULLIF ( + 96, ( + 10 ) * CASE 64 * 77 WHEN - 6 * - 42 + 8 THEN - 67 END ) + ( 77 + + 55 ) * NULLIF ( + 48 * - 1 - 86, 80 ) ) + 75 THEN CAST( - 50 AS SIGNED ) * COALESCE ( + 65, 85 * - 19 - + 27 * 9 ) END ) * - 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + ( CASE 9 WHEN + COALESCE ( 30, NULLIF ( + 96, ( + 10 ) * CASE 64 * 77 WHEN - 6 * - 42 + 8 THEN - 67 END ) + ( 77 + + 55 ) * NULLIF ( + 48 * - 1 - 86, 80 ) ) + 75 THEN CAST ( - 50 AS INTEGER ) * COALESCE ( + 65, 85 * - 19 - + 27 * 9 ) END ) * - 38 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT - COUNT( ALL - CAST( 36 AS SIGNED ) ) - 85 * 25
----
-2126

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( ALL - CAST ( 36 AS INTEGER ) ) - 85 * 25
----
-2126

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - 38 * COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 38 * COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT ALL ( + 68 ) col0
----
68

query I rowsort
SELECT DISTINCT ( + ( 53 ) )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - 26 DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 26 / 56 AS col0
----
0

query I rowsort
SELECT + COALESCE ( - 47, 57 * ( - 61 ) ) + - ( 58 ) col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL 18 DIV COUNT( * ) + - 62 * + 12
----
-726

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL 18 / COUNT ( * ) + - 62 * + 12
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + COUNT( * ) * + 47 + - 1 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3746
SELECT + COUNT ( * ) * + 47 + - 1 AS col2
----
46

query I rowsort
SELECT - 2 * 2 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT 1 * COUNT( * ) + 23 * 61 AS col2
----
1404

skipif mysql # not compatible
query I rowsort label-3748
SELECT 1 * COUNT ( * ) + 23 * 61 AS col2
----
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT 29 DIV 74 + + 61 * + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3749
SELECT 29 / 74 + + 61 * + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3750
SELECT ALL 31 DIV - 80 + NULLIF ( 59 + COUNT( * ), COUNT( * ) ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL 31 / - 80 + NULLIF ( 59 + COUNT ( * ), COUNT ( * ) ) * COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ( 58 ) * + ( + 51 ) + + CASE 90 + ( 14 + 73 ) WHEN 47 * - 35 THEN + 31 + + NULLIF ( ( 72 ), - COALESCE ( - 9, + ( 85 ) * + 31 ) * 65 + + SUM( ALL - 79 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT ( 58 ) * + ( + 51 ) + + CASE 90 + ( 14 + 73 ) WHEN 47 * - 35 THEN + 31 + + NULLIF ( ( 72 ), - COALESCE ( - 9, + ( 85 ) * + 31 ) * 65 + + SUM ( ALL - 79 ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT ALL + 33 DIV 67 + - 5 * - 55
----
275

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + 33 / 67 + - 5 * - 55
----
275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT CAST( 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3753
SELECT CAST ( 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT DISTINCT - 57 * + CAST( - 63 AS SIGNED )
----
3591

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - 57 * + CAST ( - 63 AS INTEGER )
----
3591

query I rowsort
SELECT + 92 * - 71 + - 14 AS col2
----
-6546

query I rowsort
SELECT ALL - 39 * - ( + 11 )
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT - 36 * COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-3757
SELECT - 36 * COUNT ( * ) col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT 66 DIV - 53 + 69
----
68

skipif mysql # not compatible
query I rowsort label-3758
SELECT 66 / - 53 + 69
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT + 18 + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 18 + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT ALL - 7 DIV 88 + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - 7 / 88 + 61 AS col2
----
61

query I rowsort
SELECT 39 * 64 + 94 col0
----
2590

query I rowsort
SELECT 96 * 68
----
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT DISTINCT COUNT( * ) - + 54 DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT COUNT ( * ) - + 54 / - 64
----
1

query I rowsort
SELECT ALL + 31 * ( - 57 - + 70 ) col0
----
-3937

query I rowsort
SELECT 50 * 11 AS col2
----
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3766
SELECT ALL - 20 DIV + ( CAST( + MAX( 78 ) AS SIGNED ) * 38 - - COUNT( * ) DIV - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - 20 / + ( CAST ( + MAX ( 78 ) AS INTEGER ) * 38 - - COUNT ( * ) / - COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT + 87 * 98
----
8526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT CAST( + 31 AS SIGNED ) + MIN( ALL CAST( NULL AS SIGNED ) + + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT CAST ( + 31 AS INTEGER ) + MIN ( ALL CAST ( NULL AS INTEGER ) + + 65 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT 43 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT 43 / + 80
----
0

query I rowsort
SELECT ALL 36 * - 0
----
0

query I rowsort
SELECT 30 * ( + 70 + 27 ) AS col1
----
2910

query I rowsort
SELECT ALL 50 - 1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - ( - MIN( DISTINCT + 18 ) ) * COALESCE ( - 6, - 3 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-3773
SELECT - ( - MIN ( DISTINCT + 18 ) ) * COALESCE ( - 6, - 3 ) AS col0
----
-108

query I rowsort
SELECT ALL + 35 * 46
----
1610

query I rowsort
SELECT 99 * - 29 AS col0
----
-2871

query I rowsort
SELECT + ( - ( - 71 ) ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT CAST( NULL AS SIGNED ) + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT CAST ( NULL AS INTEGER ) + 51 AS col1
----
NULL

query I rowsort
SELECT 78 * 60
----
4680

query I rowsort
SELECT ALL + 20 * - 63 AS col0
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT - 19 DIV COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3780
SELECT - 19 / COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT ALL + 33 + + + 94 AS col2
----
127

query I rowsort
SELECT 62 * + 79
----
4898

query I rowsort
SELECT DISTINCT + 15 + 62
----
77

query I rowsort
SELECT ALL 61 * + 6 AS col2
----
366

query I rowsort
SELECT DISTINCT + 25 * 11 AS col1
----
275

query I rowsort
SELECT ALL - 70 + + 93
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT + 13 DIV + + ( - 92 ) + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 13 / + + ( - 92 ) + 2 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT COUNT( * ) DIV MIN( ALL - 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) / MIN ( ALL - 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + 98 + + MIN( ALL + 7 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + 98 + + MIN ( ALL + 7 ) AS col1
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT DISTINCT + CASE - COUNT( * ) WHEN 75 * - 42 THEN NULL WHEN 82 THEN NULL ELSE 15 END DIV - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 75 * - 42 THEN NULL WHEN 82 THEN NULL ELSE 15 END / - 33 AS col1
----
0

query I rowsort
SELECT 90 * - ( 83 ) * + 19 AS col2
----
-141930

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL + 71 DIV - 15 col1
----
-4

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 71 / - 15 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT 96 - - - COALESCE ( SUM( 39 ), + 89 ) - - MIN( ALL + 93 )
----
150

skipif mysql # not compatible
query I rowsort label-3793
SELECT 96 - - - COALESCE ( SUM ( 39 ), + 89 ) - - MIN ( ALL + 93 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT 71 * + COUNT( * ) + + ( - 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT 71 * + COUNT ( * ) + + ( - 71 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL COUNT( DISTINCT COALESCE ( 9, 30 + - 1 ) ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL COUNT ( DISTINCT COALESCE ( 9, 30 + - 1 ) ) * + 50
----
50

query I rowsort
SELECT 15 + - 15 AS col1
----
0

query I rowsort
SELECT ALL 70 - ( + 12 ) + - 43 * 42 AS col1
----
-1748

query I rowsort
SELECT DISTINCT COALESCE ( + 18, - 63 ) * - 6 AS col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT DISTINCT - ( SUM( ALL + CAST( + 98 AS SIGNED ) ) ) - 52 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - ( SUM ( ALL + CAST ( + 98 AS INTEGER ) ) ) - 52 AS col0
----
-150

query I rowsort
SELECT - 77 * - 19 AS col0
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT COALESCE ( + + COUNT( ALL 26 ), 26 ) * + 94 + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3801
SELECT COALESCE ( + + COUNT ( ALL 26 ), 26 ) * + 94 + - COUNT ( * )
----
93

query I rowsort
SELECT - 51 - 15 AS col2
----
-66

query I rowsort
SELECT 14 + 70 * 12
----
854

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT 45 DIV - 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3804
SELECT 45 / - 21 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT SUM( 14 ) * + 21 AS col1
----
294

skipif mysql # not compatible
query I rowsort label-3805
SELECT SUM ( 14 ) * + 21 AS col1
----
294

query I rowsort
SELECT 3 + 38 * + 99 AS col1
----
3765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL - ( - + SUM( 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - ( - + SUM ( 73 ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT ALL + 59 DIV + + ( 14 ) + 50 * + 66 AS col1
----
3304

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + 59 / + + ( 14 ) + 50 * + 66 AS col1
----
3304

query I rowsort
SELECT 68 * 46 * + 92 + - 9
----
287767

query I rowsort
SELECT ALL + - 64 + 12 AS col2
----
-52

query I rowsort
SELECT 14 * + ( + 43 ) * - 4
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 23 + 19 * + SUM( + 61 )
----
1182

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 23 + 19 * + SUM ( + 61 )
----
1182

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL - 15 + - 69 + COUNT( * ) / CASE 13 WHEN 31 THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - 15 + - 69 + COUNT ( * ) / CASE 13 WHEN 31 THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT + MAX( DISTINCT + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + MAX ( DISTINCT + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT COUNT( * ) + - 20 col1
----
-19

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) + - 20 col1
----
-19

query I rowsort
SELECT DISTINCT - 82 + + + 63 * - 66 AS col2
----
-4240

query I rowsort
SELECT 52 + + 81 * 95
----
7747

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT ALL - 32 + 63 DIV 54 col1
----
-31

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - 32 + 63 / 54 col1
----
-31

query I rowsort
SELECT + 42 + + 1 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT CASE - 49 WHEN - - 83 THEN - 51 * 29 ELSE 35 + - 14 END + + NULLIF ( 6, + 1 ) DIV - NULLIF ( 64 + 14 * + 40, - 41 * - NULLIF ( 63 * - 75, - 17 DIV MAX( 97 ) ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3821
SELECT CASE - 49 WHEN - - 83 THEN - 51 * 29 ELSE 35 + - 14 END + + NULLIF ( 6, + 1 ) / - NULLIF ( 64 + 14 * + 40, - 41 * - NULLIF ( 63 * - 75, - 17 / MAX ( 97 ) ) ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT 8 + - 85 + + ( + CASE - 92 WHEN + SUM( DISTINCT 47 ) THEN - 40 * 37 + 92 WHEN + 10 THEN NULL END ) + 47 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 8 + - 85 + + ( + CASE - 92 WHEN + SUM ( DISTINCT 47 ) THEN - 40 * 37 + 92 WHEN + 10 THEN NULL END ) + 47 / 20 AS col2
----
NULL

query II rowsort
SELECT ALL 13, - 67 col0
----
13
-67

query I rowsort
SELECT 81 + 20
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL 79 + CAST( - + MAX( - 11 ) AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL 79 + CAST ( - + MAX ( - 11 ) AS INTEGER ) AS col2
----
90

query II rowsort
SELECT ALL 67 AS col2, - 54 AS col0
----
67
-54

query I rowsort
SELECT 65 - 60 AS col2
----
5

query I rowsort
SELECT 6 + + 5 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT ALL 48 - - 7 + + ( CAST( + 56 AS SIGNED ) ) * - MAX( DISTINCT 18 )
----
-953

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL 48 - - 7 + + ( CAST ( + 56 AS INTEGER ) ) * - MAX ( DISTINCT 18 )
----
-953

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - COUNT( - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT - COUNT ( - 74 )
----
-1

query I rowsort
SELECT 16 + - 90
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + 84 * + COUNT( * ) + 89 + COUNT( * ) * + 18
----
191

skipif mysql # not compatible
query I rowsort label-3832
SELECT + 84 * + COUNT ( * ) + 89 + COUNT ( * ) * + 18
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT 75 * + SUM( + 41 ) + 96 AS col0
----
3171

skipif mysql # not compatible
query I rowsort label-3833
SELECT 75 * + SUM ( + 41 ) + 96 AS col0
----
3171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT 3 DIV + + 80 + + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT 3 / + + 80 + + ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - 83 + + COUNT( * ) * + 39 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 83 + + COUNT ( * ) * + 39 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + CAST( 30 AS SIGNED ) * - CASE WHEN NOT NULL IS NOT NULL THEN - 68 END AS col1
----
2040

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + CAST ( 30 AS INTEGER ) * - CASE WHEN NOT NULL IS NOT NULL THEN - 68 END AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT COALESCE ( + 93, - + COUNT( * ) ) * 43 AS col1
----
3999

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT COALESCE ( + 93, - + COUNT ( * ) ) * 43 AS col1
----
3999

query I rowsort
SELECT NULLIF ( - + CASE - 51 WHEN 66 + 40 THEN NULL ELSE 18 + 16 END, 25 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - 35 * COUNT( ALL - 29 )
----
-35

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 35 * COUNT ( ALL - 29 )
----
-35

query I rowsort
SELECT ALL - 76 * 51
----
-3876

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT ALL + 67 AS col2, COUNT( * ) AS col0
----
67
1

skipif mysql # not compatible
query II rowsort label-3841
SELECT ALL + 67 AS col2, COUNT ( * ) AS col0
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT CASE - COUNT( * ) WHEN - 94 THEN 71 * + 17 ELSE + 53 DIV + 33 END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT CASE - COUNT ( * ) WHEN - 94 THEN 71 * + 17 ELSE + 53 / + 33 END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL + MAX( + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + MAX ( + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - - NULLIF ( 79, + - 15 * + COUNT( * ) ) * - COUNT( + 35 * - 29 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3844
SELECT - - NULLIF ( 79, + - 15 * + COUNT ( * ) ) * - COUNT ( + 35 * - 29 ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT - + 60 + - + ( + CAST( 43 AS SIGNED ) ) * 28 AS col2
----
-1264

skipif mysql # not compatible
query I rowsort label-3845
SELECT - + 60 + - + ( + CAST ( 43 AS INTEGER ) ) * 28 AS col2
----
-1264

query II rowsort
SELECT + 87, 44 AS col1
----
87
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT - + COUNT( * ) DIV 46 * - - 28 * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT - + COUNT ( * ) / 46 * - - 28 * 97 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - 38 DIV 31 + 34
----
33

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 38 / 31 + 34
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3849
SELECT ALL + + 32 AS col0, ( - COUNT( * ) ) * - 20 AS col2
----
32
20

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL + + 32 AS col0, ( - COUNT ( * ) ) * - 20 AS col2
----
32
20

query II rowsort
SELECT DISTINCT + + 76, 5 AS col1
----
76
5

query I rowsort
SELECT - 28 * - 62 AS col2
----
1736

query I rowsort
SELECT DISTINCT + 59 * + - 12 + 28 AS col0
----
-680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT - 81 - - 75 - + 65 DIV CASE COALESCE ( + 44, COUNT( * ) * 4 ) WHEN ( - 11 ) + 99 THEN NULL WHEN - 10 THEN NULL ELSE + 31 END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3853
SELECT - 81 - - 75 - + 65 / CASE COALESCE ( + 44, COUNT ( * ) * 4 ) WHEN ( - 11 ) + 99 THEN NULL WHEN - 10 THEN NULL ELSE + 31 END AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT - + COUNT( * ) AS col1, 72
----
-1
72

skipif mysql # not compatible
query II rowsort label-3854
SELECT - + COUNT ( * ) AS col1, 72
----
-1
72

query I rowsort
SELECT - 95 + + 62 * - + 45 AS col1
----
-2885

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - SUM( DISTINCT 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3856
SELECT - SUM ( DISTINCT 52 ) AS col0
----
-52

query I rowsort
SELECT ALL + - 61 * 63
----
-3843

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT + 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + 36 + + COUNT ( * )
----
37

query II rowsort
SELECT - 56 col1, ( - 5 )
----
-56
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT ALL ( 43 ) + + 43 + ( - 47 ) DIV - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL ( 43 ) + + 43 + ( - 47 ) / - COUNT ( * )
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 3 + ( + + 50 ) DIV - 53
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 3 + ( + + 50 ) / - 53
----
3

query I rowsort
SELECT - + 98 - + + 60 AS col1
----
-158

query I rowsort
SELECT ALL - 92 * + - 49 AS col0
----
4508

query I rowsort
SELECT DISTINCT ( - 77 )
----
-77

query I rowsort
SELECT + - 23 - + - 47
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT DISTINCT + 54 / 44 + + - 25 - 12 * + ( - CASE + CAST( - NULLIF ( NULLIF ( 50, + 29 + - 48 ), + COALESCE ( 98, + ( - 36 ), 19 ) + COUNT( * ) ) AS SIGNED ) WHEN + 27 THEN - 70 * - 68 WHEN + 51 + 55 THEN NULL ELSE NULL END * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + 54 / 44 + + - 25 - 12 * + ( - CASE + CAST ( - NULLIF ( NULLIF ( 50, + 29 + - 48 ), + COALESCE ( 98, + ( - 36 ), 19 ) + COUNT ( * ) ) AS INTEGER ) WHEN + 27 THEN - 70 * - 68 WHEN + 51 + 55 THEN NULL ELSE NULL END * - 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL - 15 + - 66 + COUNT( * ) + - - 37 col0
----
-43

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - 15 + - 66 + COUNT ( * ) + - - 37 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT DISTINCT 14 - - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT 14 - - + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT - COUNT( * ) + + SUM( - 78 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3869
SELECT - COUNT ( * ) + + SUM ( - 78 ) AS col0
----
-79

query I rowsort
SELECT - CASE + - ( 93 ) WHEN - - 28 THEN + 22 WHEN + 2 + 99 THEN - 81 * + 14 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 7 * + 29 * + ( 79 ) AS col1
----
16037

query I rowsort
SELECT + 13 * + 44 AS col2
----
572

query I rowsort
SELECT ALL 25 * + + 52 * 95 * - 28 * 37
----
-127946000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT + 31 DIV COUNT( * ) * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 31 / COUNT ( * ) * - COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 60 - - - 51 * - 6
----
366

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT + 66 DIV 10 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3876
SELECT + 66 / 10 AS col2
----
6

query I rowsort
SELECT - NULLIF ( - 75, - 21 ) AS col1
----
75

query I rowsort
SELECT + 77 * 86 * - 26 AS col1
----
-172172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT CAST( MIN( DISTINCT + + 12 ) AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3879
SELECT CAST ( MIN ( DISTINCT + + 12 ) AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + COUNT( * ) * - 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COUNT ( * ) * - 66 col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT 45 DIV + + 95 + 7 + - - 26 + 20
----
53

skipif mysql # not compatible
query I rowsort label-3882
SELECT 45 / + + 95 + 7 + - - 26 + 20
----
53

query II rowsort
SELECT + 41 * + 3, ( + 82 ) AS col2
----
123
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + 0 + + COUNT( 34 ) * - + CASE - 90 WHEN 49 * 35 THEN - MIN( DISTINCT NULLIF ( - 38, 28 ) ) END + + ( 82 - + 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT + 0 + + COUNT ( 34 ) * - + CASE - 90 WHEN 49 * 35 THEN - MIN ( DISTINCT NULLIF ( - 38, 28 ) ) END + + ( 82 - + 75 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3885
SELECT + + CAST( NULL AS SIGNED ) * - - 99 AS col0, + 58 * CAST( + 70 AS SIGNED ) * + 64 AS col0
----
NULL
259840

skipif mysql # not compatible
query II rowsort label-3885
SELECT + + CAST ( NULL AS INTEGER ) * - - 99 AS col0, + 58 * CAST ( + 70 AS INTEGER ) * + 64 AS col0
----
NULL
259840

query II rowsort
SELECT - + 14 * 91 AS col0, + 26 AS col1
----
-1274
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3887
SELECT ALL + 62 DIV - CAST( - ( + + 94 ) AS SIGNED ) + 82 * + 34
----
2788

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + 62 / - CAST ( - ( + + 94 ) AS INTEGER ) + 82 * + 34
----
2788

query I rowsort
SELECT - 5 * 16 + - - 98 * - 50 + + 77 * + 76
----
872

query I rowsort
SELECT + - NULLIF ( + 97, - + 45 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT + - ( + + COUNT( * ) ) * + 68 + - + 52
----
-120

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + - ( + + COUNT ( * ) ) * + 68 + - + 52
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - 12 * + COUNT( * ) + + + 48 + 64 * 65 AS col1
----
4196

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - 12 * + COUNT ( * ) + + + 48 + 64 * 65 AS col1
----
4196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT - COUNT( * ) + + 85 * COUNT( * ) * 26 * CAST( NULL AS SIGNED ) + - COALESCE ( 94, 30 + 27 ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT - COUNT ( * ) + + 85 * COUNT ( * ) * 26 * CAST ( NULL AS INTEGER ) + - COALESCE ( 94, 30 + 27 ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT - + 69 * CAST( NULL AS SIGNED ) * + 90 * - 34 + + 88 * + COALESCE ( 21 / - 20, - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT - + 69 * CAST ( NULL AS INTEGER ) * + 90 * - 34 + + 88 * + COALESCE ( 21 / - 20, - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT ALL - NULLIF ( + 8, - MIN( ALL + 76 ) ) * + 63 + + 70 DIV 92
----
-504

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - NULLIF ( + 8, - MIN ( ALL + 76 ) ) * + 63 + + 70 / 92
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT 96 * + 29 + + MIN( 12 ) * 45 + + 95
----
3419

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT 96 * + 29 + + MIN ( 12 ) * 45 + + 95
----
3419

query I rowsort
SELECT ALL 34 * 44 * 32 - + 99 + - 18
----
47755

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT ALL - 32 * - - 78 + + 46 + - 1 DIV 56 AS col0
----
-2450

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 32 * - - 78 + + 46 + - 1 / 56 AS col0
----
-2450

onlyif mysql # DIV for integer division: 
query II rowsort label-3898
SELECT ALL - - 21 DIV + 69 AS col0, - 60 DIV 58
----
0
-1

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL - - 21 / + 69 AS col0, - 60 / 58
----
0
-1

query I rowsort
SELECT DISTINCT + 47 * + 98 + 25
----
4631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL - 11 * - - CASE + + CAST( + 66 AS SIGNED ) WHEN - + CAST( - 52 AS SIGNED ) THEN + 86 END * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - 11 * - - CASE + + CAST ( + 66 AS INTEGER ) WHEN - + CAST ( - 52 AS INTEGER ) THEN + 86 END * 55 AS col0
----
NULL

query I rowsort
SELECT - 2 + - + CASE + 99 WHEN - 2 THEN + - 38 END + 22 / 47 * 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT 26 * - COALESCE ( 94, + MAX( ALL - 71 ) + 5 ) AS col2
----
-2444

skipif mysql # not compatible
query I rowsort label-3902
SELECT 26 * - COALESCE ( 94, + MAX ( ALL - 71 ) + 5 ) AS col2
----
-2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT 97 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT 97 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT 16 + + CAST( NULL AS SIGNED ) + + - 58 + - - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT 16 + + CAST ( NULL AS INTEGER ) + + - 58 + - - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT ALL MIN( ALL + + 77 ) DIV + - 23 * + COUNT( + 44 ) + - ( + 64 + NULLIF ( COALESCE ( + COUNT( * ), + 4 ), 39 + - 48 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL MIN ( ALL + + 77 ) / + - 23 * + COUNT ( + 44 ) + - ( + 64 + NULLIF ( COALESCE ( + COUNT ( * ), + 4 ), 39 + - 48 ) )
----
-68

query II rowsort
SELECT 27 AS col2, 57 + + + 28 AS col0
----
27
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT COALESCE ( - 75, 11 ) + + - SUM( ALL - 75 ) + 56 * 34 * 6 col0
----
11424

skipif mysql # not compatible
query I rowsort label-3907
SELECT COALESCE ( - 75, 11 ) + + - SUM ( ALL - 75 ) + 56 * 34 * 6 col0
----
11424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL COUNT( * ) DIV ( 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL COUNT ( * ) / ( 54 ) AS col0
----
0

query I rowsort
SELECT 6 * ( + + 17 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT MAX( DISTINCT - 82 ) + + 44 * + + 58 - + - ( COALESCE ( 27, - 7 * - CASE 81 * NULLIF ( 3, + ( COUNT( * ) ) / 93 + - 59 ) WHEN - 7 * 8 THEN - MAX( ALL - ( 90 ) ) + 81 * - 74 WHEN + 63 * + 16 THEN NULL ELSE NULL END + 9 ) ) + 50 * - 72
----
-1103

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT MAX ( DISTINCT - 82 ) + + 44 * + + 58 - + - ( COALESCE ( 27, - 7 * - CASE 81 * NULLIF ( 3, + ( COUNT ( * ) ) / 93 + - 59 ) WHEN - 7 * 8 THEN - MAX ( ALL - ( 90 ) ) + 81 * - 74 WHEN + 63 * + 16 THEN NULL ELSE NULL END + 9 ) ) + 50 * - 72
----
-1103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT CASE + + ( + 15 ) WHEN + + 94 THEN NULL ELSE ( 42 ) * - CAST( 13 AS SIGNED ) END * 78
----
-42588

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT CASE + + ( + 15 ) WHEN + + 94 THEN NULL ELSE ( 42 ) * - CAST ( 13 AS INTEGER ) END * 78
----
-42588

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL + CASE + 67 WHEN 32 - 10 + + + COUNT( * ) THEN 27 + + 28 * 96 END + 60 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + CASE + 67 WHEN 32 - 10 + + + COUNT ( * ) THEN 27 + + 28 * 96 END + 60 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT COUNT( * ) * + + ( MIN( DISTINCT - 84 ) ) DIV - 42
----
2

skipif mysql # not compatible
query I rowsort label-3913
SELECT COUNT ( * ) * + + ( MIN ( DISTINCT - 84 ) ) / - 42
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + NULLIF ( COUNT( * ), 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT + NULLIF ( COUNT ( * ), 16 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 22 * + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3915
SELECT 22 * + + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT 91 * + 36 + + 20 + 21 DIV + 45 + + COUNT( DISTINCT - 82 ) * + 64
----
3360

skipif mysql # not compatible
query I rowsort label-3916
SELECT 91 * + 36 + + 20 + 21 / + 45 + + COUNT ( DISTINCT - 82 ) * + 64
----
3360

query II rowsort
SELECT 30, 80 col1
----
30
80

query I rowsort
SELECT DISTINCT - + 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL 16 + - 18 * + COUNT( * ) * - 59 + - 53 * + CASE WHEN NOT ( + 92 - 95 * 9 ) = NULL THEN NULL ELSE 5 END
----
813

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL 16 + - 18 * + COUNT ( * ) * - 59 + - 53 * + CASE WHEN NOT ( + 92 - 95 * 9 ) = NULL THEN NULL ELSE 5 END
----
813

query I rowsort
SELECT - 86 * + ( - + 51 ) AS col0
----
4386

query II rowsort
SELECT - 68 AS col2, - 64
----
-68
-64

query I rowsort
SELECT + 73 * + 90 + + 79
----
6649

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - + MAX( DISTINCT 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - + MAX ( DISTINCT 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + SUM( ( + 43 ) ) col2
----
43

skipif mysql # not compatible
query I rowsort label-3924
SELECT + SUM ( ( + 43 ) ) col2
----
43

query I rowsort
SELECT ALL - 1 - - 74 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + 79 + + 90 + 60 - + COUNT( * ) col1
----
228

skipif mysql # not compatible
query I rowsort label-3926
SELECT + 79 + + 90 + 60 - + COUNT ( * ) col1
----
228

query I rowsort
SELECT ALL 19 * 13 AS col1
----
247

query I rowsort
SELECT 47 * - - 7 * 18 * - + 16 col1
----
-94752

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT ALL 12 AS col1, COUNT( * ) * 9 * - 48 * + - 88 - ( 19 )
----
12
37997

skipif mysql # not compatible
query II rowsort label-3929
SELECT ALL 12 AS col1, COUNT ( * ) * 9 * - 48 * + - 88 - ( 19 )
----
12
37997

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT ( - 32 ) DIV - 67 + + 77 DIV + + 99 * 67
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ( - 32 ) / - 67 + + 77 / + + 99 * 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT 26 * + COUNT( * ) DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT 26 * + COUNT ( * ) / + + 91
----
0

query II rowsort
SELECT - 67 AS col2, 31
----
-67
31

query II rowsort
SELECT ALL 21 col1, - 68
----
21
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT 9 - - CAST( - 86 AS SIGNED ) * + 18 AS col1
----
-1539

skipif mysql # not compatible
query I rowsort label-3934
SELECT 9 - - CAST ( - 86 AS INTEGER ) * + 18 AS col1
----
-1539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3935
SELECT ALL 78 AS col0, CAST( NULL AS SIGNED ) AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3935
SELECT ALL 78 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
78
NULL

query I rowsort
SELECT ALL - 53 * + - 46 AS col2
----
2438

query I rowsort
SELECT 25 * - 25
----
-625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3938
SELECT ALL 86 AS col0, - ( + CAST( NULL AS SIGNED ) )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-3938
SELECT ALL 86 AS col0, - ( + CAST ( NULL AS INTEGER ) )
----
86
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3939
SELECT ALL 89 AS col1, + 98 DIV 80 AS col0
----
89
1

skipif mysql # not compatible
query II rowsort label-3939
SELECT ALL 89 AS col1, + 98 / 80 AS col0
----
89
1

query I rowsort
SELECT 51 * 19 AS col1
----
969

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT ALL - 45 + + + 28 col1, SUM( + 91 )
----
-17
91

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL - 45 + + + 28 col1, SUM ( + 91 )
----
-17
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT ALL + NULLIF ( COUNT( * ), - COUNT( * ) ) + + + 47, + 10 - + ( - 38 ) AS col0
----
48
48

skipif mysql # not compatible
query II rowsort label-3942
SELECT ALL + NULLIF ( COUNT ( * ), - COUNT ( * ) ) + + + 47, + 10 - + ( - 38 ) AS col0
----
48
48

query I rowsort
SELECT DISTINCT - 63 + - 36 AS col0
----
-99

query I rowsort
SELECT ALL + 18 + + + 50 + - + 25
----
43

query I rowsort
SELECT 40 * + - ( + 22 ) AS col0
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3946
SELECT DISTINCT 6 AS col1, + 44 + - ( - + CAST( NULL AS SIGNED ) )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-3946
SELECT DISTINCT 6 AS col1, + 44 + - ( - + CAST ( NULL AS INTEGER ) )
----
6
NULL

query II rowsort
SELECT - 6 AS col1, - 58 AS col2
----
-6
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3948
SELECT ALL 34 * + + 42 + - + ( + 30 ) AS col2, - COUNT( * ) - + 21 / - MIN( ALL + 45 + + CAST( NULL AS SIGNED ) )
----
1398
NULL

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL 34 * + + 42 + - + ( + 30 ) AS col2, - COUNT ( * ) - + 21 / - MIN ( ALL + 45 + + CAST ( NULL AS INTEGER ) )
----
1398
NULL

query I rowsort
SELECT DISTINCT - 42 * - 78 * - 11 AS col1
----
-36036

onlyif mysql # aggregate syntax: 
query II rowsort label-3950
SELECT ALL - 47 AS col0, 41 * + - COUNT( * )
----
-47
-41

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL - 47 AS col0, 41 * + - COUNT ( * )
----
-47
-41

query II rowsort
SELECT + 40 AS col1, 49 AS col2
----
40
49

query I rowsort
SELECT - ( 61 ) + + 60
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT + - COUNT( * ), 69 * - + 5 - - + 63 col0
----
-1
-282

skipif mysql # not compatible
query II rowsort label-3953
SELECT + - COUNT ( * ), 69 * - + 5 - - + 63 col0
----
-1
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL - COUNT( * ) * 44 * + SUM( DISTINCT - 66 ) - - 17 + - - 59 * + 33 AS col1
----
4868

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - COUNT ( * ) * 44 * + SUM ( DISTINCT - 66 ) - - 17 + - - 59 * + 33 AS col1
----
4868

query I rowsort
SELECT DISTINCT - 49 * + 5 AS col2
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT - 46 * + + 74 * COUNT( * ) + + 67 * 66 - + + 45 + 96
----
1069

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT - 46 * + + 74 * COUNT ( * ) + + 67 * 66 - + + 45 + 96
----
1069

query I rowsort
SELECT ALL + 74 * 40 * + 86
----
254560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT + 71 * - 26 DIV COUNT( * ) + 78 AS col0
----
-1768

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 71 * - 26 / COUNT ( * ) + 78 AS col0
----
-1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT ALL 62 * - 34 * NULLIF ( + + CAST( NULL AS SIGNED ), - ( COUNT( * ) ) ) - + MAX( 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL 62 * - 34 * NULLIF ( + + CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) ) - + MAX ( 18 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT - NULLIF ( 38, AVG ( + + 77 ) * 39 ) * - 2 * ( - COALESCE ( - 66, + 43 ) DIV NULLIF ( + 19, 62 ) ) AS col2
----
228

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT - NULLIF ( 38, AVG ( + + 77 ) * 39 ) * - 2 * ( - COALESCE ( - 66, + 43 ) / NULLIF ( + 19, 62 ) ) AS col2
----
228

query I rowsort
SELECT ALL 90 * 11
----
990

query I rowsort
SELECT ALL - - 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + + COUNT( * ) * ( + 77 ) + CASE + COUNT( * ) WHEN 50 - 82 * SUM( - 12 ) THEN ( 99 ) END + COUNT( * ) / COUNT( * ) * CASE COUNT( * ) + 3 WHEN + 20 THEN 4 * 58 WHEN + 50 * + 6 THEN 42 * 25 END + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT + + COUNT ( * ) * ( + 77 ) + CASE + COUNT ( * ) WHEN 50 - 82 * SUM ( - 12 ) THEN ( 99 ) END + COUNT ( * ) / COUNT ( * ) * CASE COUNT ( * ) + 3 WHEN + 20 THEN 4 * 58 WHEN + 50 * + 6 THEN 42 * 25 END + 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT + 86, COUNT( * ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-3964
SELECT + 86, COUNT ( * ) AS col0
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - - ( 14 ) * + - COALESCE ( - 62, + 92 ) * MAX( ALL 25 ) + 39
----
21739

skipif mysql # not compatible
query I rowsort label-3965
SELECT - - ( 14 ) * + - COALESCE ( - 62, + 92 ) * MAX ( ALL 25 ) + 39
----
21739

query I rowsort
SELECT + - 53 * + + 10
----
-530

query I rowsort
SELECT + 67 + ( + + 28 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + 84 * + COUNT( + 10 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 84 * + COUNT ( + 10 ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT 58 * + CAST( + 93 AS SIGNED ) + - 16
----
5378

skipif mysql # not compatible
query I rowsort label-3969
SELECT 58 * + CAST ( + 93 AS INTEGER ) + - 16
----
5378

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3970
SELECT + CAST( NULL AS SIGNED ) + - 61 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT + CAST ( NULL AS INTEGER ) + - 61 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - COUNT( ( - ( 63 ) ) ) * 94 - 16
----
-110

skipif mysql # not compatible
query I rowsort label-3971
SELECT - COUNT ( ( - ( 63 ) ) ) * 94 - 16
----
-110

query I rowsort
SELECT ALL 36 + + 26 * 55
----
1466

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - CASE + + COUNT( * ) WHEN + - 18 THEN 83 WHEN + + 61 - - MIN( - 6 ) THEN NULL ELSE - 59 END
----
59

skipif mysql # not compatible
query I rowsort label-3973
SELECT - CASE + + COUNT ( * ) WHEN + - 18 THEN 83 WHEN + + 61 - - MIN ( - 6 ) THEN NULL ELSE - 59 END
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT + 18 + + 10 + 46 DIV + 58 - + + 69
----
-41

skipif mysql # not compatible
query I rowsort label-3974
SELECT + 18 + + 10 + 46 / + 58 - + + 69
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL COUNT( * ) + + - 92 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL COUNT ( * ) + + - 92 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT ALL + 86 DIV - - 62
----
1

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 86 / - - 62
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - MIN( 71 ) + + 21 * 19
----
328

skipif mysql # not compatible
query I rowsort label-3977
SELECT - MIN ( 71 ) + + 21 * 19
----
328

query I rowsort
SELECT ALL + 77 + + - 79
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3979
SELECT - 47 + - + 80 AS col1, 28 + + - CASE - 12 WHEN 64 * 40 + - ( - CAST( NULL AS SIGNED ) + + 3 ) * 89 + + SUM( - 68 + 31 ) THEN 28 DIV CAST( NULL AS SIGNED ) WHEN COUNT( ALL + 39 ) * - CAST( + 58 AS SIGNED ) THEN NULL ELSE 58 END - - 85
----
-127
55

skipif mysql # not compatible
query II rowsort label-3979
SELECT - 47 + - + 80 AS col1, 28 + + - CASE - 12 WHEN 64 * 40 + - ( - CAST ( NULL AS INTEGER ) + + 3 ) * 89 + + SUM ( - 68 + 31 ) THEN 28 / CAST ( NULL AS INTEGER ) WHEN COUNT ( ALL + 39 ) * - CAST ( + 58 AS INTEGER ) THEN NULL ELSE 58 END - - 85
----
-127
55

query I rowsort
SELECT ALL + 14 + + 2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - SUM( + - 33 ) + - + ( + 18 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3981
SELECT - SUM ( + - 33 ) + - + ( + 18 ) AS col1
----
15

query I rowsort
SELECT DISTINCT + 2 + - 61
----
-59

query I rowsort
SELECT - + 75 + + ( 43 ) AS col0
----
-32

query II rowsort
SELECT ALL + ( 84 ) - - 61, 8 * + 32 AS col2
----
145
256

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT + + MIN( ALL + 70 ) * + - 79 AS col0
----
-5530

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + + MIN ( ALL + 70 ) * + - 79 AS col0
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - + ( 41 ) * COUNT( * ) * - - 11 + - 62 col0
----
-513

skipif mysql # not compatible
query I rowsort label-3986
SELECT - + ( 41 ) * COUNT ( * ) * - - 11 + - 62 col0
----
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT - - 14 DIV NULLIF ( - + 80, + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT - - 14 / NULLIF ( - + 80, + 74 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT ALL - 56 DIV 74 + + + 97 + - 62 - + 53
----
-18

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - 56 / 74 + + + 97 + - 62 - + 53
----
-18

query I rowsort
SELECT ALL + NULLIF ( + 79, ( + ( - - 88 ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT + + SUM( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + + SUM ( ALL 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT ALL 34 DIV - 8
----
-4

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 34 / - 8
----
-4

query I rowsort
SELECT - 4 * - 27 AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT - ( 5 ) col1, - 36 + + - COUNT( * )
----
-5
-37

skipif mysql # not compatible
query II rowsort label-3993
SELECT - ( 5 ) col1, - 36 + + - COUNT ( * )
----
-5
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ALL + + 35 DIV - + 30 - 33
----
-34

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + + 35 / - + 30 - 33
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3995
SELECT ALL COUNT( * ) * - 13 DIV + 94, 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL COUNT ( * ) * - 13 / + 94, 62 AS col0
----
0
62

query I rowsort
SELECT ALL + 43 * - - 41
----
1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT NULLIF ( NULLIF ( CAST( NULL AS SIGNED ), + 62 * - 66 + COALESCE ( - - ( - 83 ), + COUNT( * ) + 87 ) ), - COUNT( ALL + 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT NULLIF ( NULLIF ( CAST ( NULL AS INTEGER ), + 62 * - 66 + COALESCE ( - - ( - 83 ), + COUNT ( * ) + 87 ) ), - COUNT ( ALL + 16 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 53 * 33
----
-1749

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT - 84 DIV - 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3999
SELECT - 84 / - 68 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT CASE + 93 WHEN COUNT( * ) THEN - ( - - CAST( NULL AS SIGNED ) ) / + - 59 + + 10 + + + 63 * 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT CASE + 93 WHEN COUNT ( * ) THEN - ( - - CAST ( NULL AS INTEGER ) ) / + - 59 + + 10 + + + 63 * 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + MIN( ALL 80 ) * 63 + 86 + + 49 * 2 - + 20 + + 58 AS col1
----
5262

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + MIN ( ALL 80 ) * 63 + 86 + + 49 * 2 - + 20 + + 58 AS col1
----
5262

query I rowsort
SELECT DISTINCT - 38 * - 19 + 93 + + 46 AS col2
----
861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) + MAX( - ( + 23 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + MAX ( - ( + 23 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - 51 * + 86 * + COUNT( * ) - + - 87 AS col2
----
-4299

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 51 * + 86 * + COUNT ( * ) - + - 87 AS col2
----
-4299

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4005
SELECT - 89 * - 7 + + + 11 + - 6 DIV + 71 * ( + 65 ) * 73 * - CAST( 29 AS SIGNED )
----
634

skipif mysql # not compatible
query I rowsort label-4005
SELECT - 89 * - 7 + + + 11 + - 6 / + 71 * ( + 65 ) * 73 * - CAST ( 29 AS INTEGER )
----
634

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - CASE - 97 WHEN - CASE - + MAX( 60 ) WHEN - 14 * 81 THEN + 58 END * 6 THEN NULL ELSE - 54 END AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4006
SELECT - CASE - 97 WHEN - CASE - + MAX ( 60 ) WHEN - 14 * 81 THEN + 58 END * 6 THEN NULL ELSE - 54 END AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL CAST( 3 AS SIGNED ) * 38
----
114

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL CAST ( 3 AS INTEGER ) * 38
----
114

query I rowsort
SELECT + 94 * - 25
----
-2350

query I rowsort
SELECT DISTINCT 82 + - + ( - 42 )
----
124

query I rowsort
SELECT ALL 41 * - ( - - ( 65 ) ) * + 36
----
-95940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT - CAST( 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4011
SELECT - CAST ( 70 AS INTEGER ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - CASE + - 81 WHEN 40 THEN 61 + + + COUNT( * ) + + 24 / - 18 + - + COUNT( * ) WHEN 2 * - 13 + 5 THEN + 11 + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CASE + - 81 WHEN 40 THEN 61 + + + COUNT ( * ) + + 24 / - 18 + - + COUNT ( * ) WHEN 2 * - 13 + 5 THEN + 11 + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT 46 - + 39 + - 49 * + - 76 * 41 * - 60 + - + COUNT( * )
----
-9161034

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT 46 - + 39 + - 49 * + - 76 * 41 * - 60 + - + COUNT ( * )
----
-9161034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT + CAST( - 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-4014
SELECT + CAST ( - 30 AS INTEGER )
----
-30

query I rowsort
SELECT + 39 - + 57
----
-18

query II rowsort
SELECT - - 97 AS col1, 44
----
97
44

query II rowsort
SELECT ALL 3 AS col0, 53 - - 21 * - + 58 col1
----
3
-1165

query II rowsort
SELECT - + 43 col1, 7 col2
----
-43
7

query I rowsort
SELECT ALL - - 12 * 42
----
504

query I rowsort
SELECT - ( + - 71 ) * + 92 AS col0
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - 93 * + CASE + COUNT( * ) WHEN - 11 THEN 18 END / + ( - 18 ) * + CASE - 51 WHEN MAX( ALL + NULLIF ( 4, ( 23 ) + - ( 90 + + 9 ) ) ) - - COALESCE ( + 72, - CASE SUM( DISTINCT + ( + 87 ) ) WHEN 16 + 57 THEN 5 + ( - ( + 73 ) ) END + + 74, COUNT( * ) ) THEN + COUNT( * ) * + COALESCE ( + COUNT( * ), - COUNT( DISTINCT 66 ) ) + + 36 ELSE NULL END - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT - 93 * + CASE + COUNT ( * ) WHEN - 11 THEN 18 END / + ( - 18 ) * + CASE - 51 WHEN MAX ( ALL + NULLIF ( 4, ( 23 ) + - ( 90 + + 9 ) ) ) - - COALESCE ( + 72, - CASE SUM ( DISTINCT + ( + 87 ) ) WHEN 16 + 57 THEN 5 + ( - ( + 73 ) ) END + + 74, COUNT ( * ) ) THEN + COUNT ( * ) * + COALESCE ( + COUNT ( * ), - COUNT ( DISTINCT 66 ) ) + + 36 ELSE NULL END - - 80 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4022
SELECT + 99 DIV - 58 + + 24 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 99 / - 58 + + 24 AS col0
----
23

query II rowsort
SELECT ALL - + 72 AS col0, 83 * + + COALESCE ( - 26, + 83 ) + - + 99
----
-72
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT 53 * + 96 - + + SUM( ALL + + 33 ) AS col0
----
5055

skipif mysql # not compatible
query I rowsort label-4024
SELECT 53 * + 96 - + + SUM ( ALL + + 33 ) AS col0
----
5055

query I rowsort
SELECT + NULLIF ( 4, 71 + 71 - + 93 * AVG ( + - 69 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4026
SELECT + COUNT( * ) * + 43 / CAST( NULL AS DECIMAL ) + 5 + - + ( SUM( ALL + ( 85 ) ) ) + 44 * COUNT( * ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COUNT ( * ) * + 43 / CAST ( NULL AS REAL ) + 5 + - + ( SUM ( ALL + ( 85 ) ) ) + 44 * COUNT ( * ) * - 96
----
NULL

query I rowsort
SELECT 46 + - 57 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - 72 + COALESCE ( - + 88, + 31 + - 8 * 51 ) + - - COUNT( * ) AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - 72 + COALESCE ( - + 88, + 31 + - 8 * 51 ) + - - COUNT ( * ) AS col2
----
-159

query I rowsort
SELECT - + 29 * 55 * - - 57 + + 75 + - 89 + 53 * + + 97
----
-85788

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT - + 41 * - MAX( - 30 )
----
-1230

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - + 41 * - MAX ( - 30 )
----
-1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT DISTINCT - CASE + ( + MIN( ALL + 30 ) ) WHEN + - 50 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - CASE + ( + MIN ( ALL + 30 ) ) WHEN + - 50 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 94 + 54
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT 99 * - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4033
SELECT 99 * - COUNT ( * ) AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL + CAST( - 76 AS SIGNED ) + + 19 col0
----
-57

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + CAST ( - 76 AS INTEGER ) + + 19 col0
----
-57

query II rowsort
SELECT DISTINCT - COALESCE ( 70, 57 ) * - 24 AS col0, 4 AS col2
----
1680
4

query I rowsort
SELECT 31 + - 58 * + 55 + - + 4 + NULLIF ( - - 48, + 66 )
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 6 + 19 + - 44 * + 66 - - ( - COUNT( * ) ) AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 6 + 19 + - 44 * + 66 - - ( - COUNT ( * ) ) AS col2
----
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT DISTINCT - 4 * - CAST( - 27 AS SIGNED ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT - 4 * - CAST ( - 27 AS INTEGER ) AS col2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT 44 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT 44 / 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT 24 - - NULLIF ( - 67, 85 + + 34 + - CASE + 38 WHEN - NULLIF ( + ( - 5 ), - 66 ) + - 70 THEN - 16 ELSE NULL END + ( + COUNT( * ) ) * ( + ( 8 ) / - COALESCE ( - 24, + 57 ) ) ) + + NULLIF ( 59, - 73 - 49 )
----
16

skipif mysql # not compatible
query I rowsort label-4040
SELECT 24 - - NULLIF ( - 67, 85 + + 34 + - CASE + 38 WHEN - NULLIF ( + ( - 5 ), - 66 ) + - 70 THEN - 16 ELSE NULL END + ( + COUNT ( * ) ) * ( + ( 8 ) / - COALESCE ( - 24, + 57 ) ) ) + + NULLIF ( 59, - 73 - 49 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 31 + - COUNT( * ) - + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4041
SELECT 31 + - COUNT ( * ) - + + COUNT ( * )
----
29

query II rowsort
SELECT + 9 * - 75 - - ( + 69 ) AS col2, - 42 AS col0
----
-606
-42

query I rowsort
SELECT DISTINCT + 14 - - - 63
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT - 23 + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT - 23 + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4045
SELECT + 37 + - COUNT( * ) + - - CAST( 76 AS SIGNED ) + ( + CASE - 17 WHEN + 87 THEN + - 72 WHEN AVG ( - 91 ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 37 + - COUNT ( * ) + - - CAST ( 76 AS INTEGER ) + ( + CASE - 17 WHEN + 87 THEN + - 72 WHEN AVG ( - 91 ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT COALESCE ( + - 64, - 73 + 16 DIV + CASE - 60 WHEN - 89 THEN NULL ELSE + 30 END - 29 + 41 ) + 1
----
-63

skipif mysql # not compatible
query I rowsort label-4046
SELECT COALESCE ( + - 64, - 73 + 16 / + CASE - 60 WHEN - 89 THEN NULL ELSE + 30 END - 29 + 41 ) + 1
----
-63

query I rowsort
SELECT ALL NULLIF ( 97, + 4 ) AS col1
----
97

query I rowsort
SELECT DISTINCT 98 * - + 27 AS col0
----
-2646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT - CAST( - - 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4049
SELECT - CAST ( - - 9 AS INTEGER ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT - ( + 17 ) + - 9 * 69 - - ( + MAX( DISTINCT + 12 ) ), MIN( DISTINCT - 25 ) AS col0
----
-626
-25

skipif mysql # not compatible
query II rowsort label-4050
SELECT - ( + 17 ) + - 9 * 69 - - ( + MAX ( DISTINCT + 12 ) ), MIN ( DISTINCT - 25 ) AS col0
----
-626
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + 77 * 61 * + 55 + + - 11 + + 8 * - - CASE + + 44 WHEN COUNT( * ) THEN - 46 * - 84 - + 17 ELSE 73 END
----
258908

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 77 * 61 * + 55 + + - 11 + + 8 * - - CASE + + 44 WHEN COUNT ( * ) THEN - 46 * - 84 - + 17 ELSE 73 END
----
258908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT 91 * + COALESCE ( CAST( - ( - COUNT( * ) ) AS SIGNED ), ( 92 ) ) * 55
----
5005

skipif mysql # not compatible
query I rowsort label-4052
SELECT 91 * + COALESCE ( CAST ( - ( - COUNT ( * ) ) AS INTEGER ), ( 92 ) ) * 55
----
5005

query I rowsort
SELECT - 86 + - 4 + + - 30 col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL 56 * + MIN( DISTINCT 87 )
----
4872

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL 56 * + MIN ( DISTINCT 87 )
----
4872

query I rowsort
SELECT 81 + - - 91 + 43 AS col2
----
215

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT - 44 DIV + 58 + + 57 * + 8 + - 61 - - 54 AS col2
----
449

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 44 / + 58 + + 57 * + 8 + - 61 - - 54 AS col2
----
449

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL 83 + - 86 * - 93 + - COUNT( * )
----
8080

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL 83 + - 86 * - 93 + - COUNT ( * )
----
8080

query II rowsort
SELECT ALL - 65 * - 78 AS col1, 22 * + 7
----
5070
154

query I rowsort
SELECT ALL 96 + 0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT DISTINCT - - 18 + 17 DIV - NULLIF ( 75, - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - - 18 + 17 / - NULLIF ( 75, - COUNT ( * ) )
----
18

query I rowsort
SELECT DISTINCT 45 + 45
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL - ( + 40 ) + + + CAST( + + 27 AS SIGNED ) + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - ( + 40 ) + + + CAST ( + + 27 AS INTEGER ) + COUNT ( * )
----
-12

query I rowsort
SELECT 9 * + - 73 col1
----
-657

query I rowsort
SELECT 44 * + + 40 AS col1
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT - MIN( DISTINCT - + ( - + 98 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - MIN ( DISTINCT - + ( - + 98 ) )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT DISTINCT - 17 * + 87 * - 5 DIV COUNT( * )
----
7395

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT - 17 * + 87 * - 5 / COUNT ( * )
----
7395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT ALL + ( 46 ) + - CAST( 72 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + ( 46 ) + - CAST ( 72 AS INTEGER )
----
-26

query I rowsort
SELECT DISTINCT 77 * + 53
----
4081

query I rowsort
SELECT 64 * + 56 + + 13 * - 97 * + 40
----
-46856

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT 66 + + SUM( - + 97 )
----
-31

skipif mysql # not compatible
query I rowsort label-4070
SELECT 66 + + SUM ( - + 97 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + 5 * + ( + CAST( NULL AS SIGNED ) ) - + 40 + - - 68 - - ( + COALESCE ( 57, 24 * - 98 + 37 * 70 ) ) * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + 5 * + ( + CAST ( NULL AS INTEGER ) ) - + 40 + - - 68 - - ( + COALESCE ( 57, 24 * - 98 + 37 * 70 ) ) * 5 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - - 7 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT DISTINCT - 73 DIV + + ( 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - 73 / + + ( 73 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT 50 * - 16 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT 50 * - 16 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 85 * + - 3
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT ALL + 55 * - + COUNT( * ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + 55 * - + COUNT ( * ) / + 61
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT DISTINCT + 83 - + + COUNT( * ) * + 25, + 41 - + 79 - - SUM( DISTINCT 10 ) AS col1
----
58
-28

skipif mysql # not compatible
query II rowsort label-4077
SELECT DISTINCT + 83 - + + COUNT ( * ) * + 25, + 41 - + 79 - - SUM ( DISTINCT 10 ) AS col1
----
58
-28

query I rowsort
SELECT - + ( 10 ) AS col2
----
-10

query I rowsort
SELECT ALL + 21 * - 2 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL CASE WHEN NOT - 99 IN ( 88, - 96, 78 ) THEN - 13 * - ( - COUNT( * ) ) ELSE ( - SUM( 20 ) ) * 25 - - 12 END AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL CASE WHEN NOT - 99 IN ( 88, - 96, 78 ) THEN - 13 * - ( - COUNT ( * ) ) ELSE ( - SUM ( 20 ) ) * 25 - - 12 END AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT CAST( NULL AS SIGNED ) * 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT CAST ( NULL AS INTEGER ) * 64 col0
----
NULL

query II rowsort
SELECT + 21 AS col2, 43
----
21
43

query I rowsort
SELECT DISTINCT - 30 * - 17 * - 96 AS col1
----
-48960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT - 14 * - NULLIF ( - + 69, + + CASE - 14 WHEN + 82 - - + 41 DIV 97 * + + 63 THEN - + ( + COUNT( * ) ) * + AVG ( - 17 * - 87 ) ELSE NULL END ) DIV 68 col1
----
-14

skipif mysql # not compatible
query I rowsort label-4084
SELECT - 14 * - NULLIF ( - + 69, + + CASE - 14 WHEN + 82 - - + 41 / 97 * + + 63 THEN - + ( + COUNT ( * ) ) * + AVG ( - 17 * - 87 ) ELSE NULL END ) / 68 col1
----
-14

query I rowsort
SELECT DISTINCT + 64 + 36
----
100

query I rowsort
SELECT ALL + 5 + - - 13
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - + COUNT( * ) - + 93
----
-94

skipif mysql # not compatible
query I rowsort label-4087
SELECT - + COUNT ( * ) - + 93
----
-94

query I rowsort
SELECT ALL - 36 + + + ( + 99 ) + - 25 + 34 * 42 * 63 * - ( + + 88 )
----
-7916794

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT + - 25 - - - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4089
SELECT + - 25 - - - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT ALL 90 * 55
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + MIN( DISTINCT + 20 ) + - - 40 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + MIN ( DISTINCT + 20 ) + - - 40 AS col0
----
60

query I rowsort
SELECT ALL + 45 + + - ( + 51 ) AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4093
SELECT ALL - 81 * + 55 + + - 67 / COUNT( * ) * + CAST( NULL AS DECIMAL ) * + MIN( ALL - + 35 ) + MAX( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - 81 * + 55 + + - 67 / COUNT ( * ) * + CAST ( NULL AS REAL ) * + MIN ( ALL - + 35 ) + MAX ( 70 ) AS col0
----
NULL

query I rowsort
SELECT - 17 + + 98 + + - 49
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT + MIN( + 41 ) * + 6 AS col0, 78 * + CAST( 95 AS SIGNED )
----
246
7410

skipif mysql # not compatible
query II rowsort label-4095
SELECT + MIN ( + 41 ) * + 6 AS col0, 78 * + CAST ( 95 AS INTEGER )
----
246
7410

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT 90 DIV + - 49 + + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4096
SELECT 90 / + - 49 + + 43 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT + 78 + - 68 + - 29 DIV 26 col2
----
9

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 78 + - 68 + - 29 / 26 col2
----
9

query I rowsort
SELECT ALL 84 * + 25 AS col1
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT ALL 66 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 66 / - 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + MAX( + 7 ) * + + 99 AS col0
----
693

skipif mysql # not compatible
query I rowsort label-4100
SELECT + MAX ( + 7 ) * + + 99 AS col0
----
693

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT DISTINCT + 76 AS col1, - ( - 78 ) + + 14 - + 76 + 72 * COUNT( * ) - - + 93
----
76
181

skipif mysql # not compatible
query II rowsort label-4101
SELECT DISTINCT + 76 AS col1, - ( - 78 ) + + 14 - + 76 + 72 * COUNT ( * ) - - + 93
----
76
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL - AVG ( DISTINCT ( + + CAST( NULL AS SIGNED ) ) ) * - 3 + 70 - 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - AVG ( DISTINCT ( + + CAST ( NULL AS INTEGER ) ) ) * - 3 + 70 - 43 col1
----
NULL

query I rowsort
SELECT DISTINCT + 41 * + 56 col0
----
2296

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT + 18 DIV + 4
----
4

skipif mysql # not compatible
query I rowsort label-4104
SELECT + 18 / + 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT + COALESCE ( - CAST( 17 AS SIGNED ), + 30 + + ( - 2 ) * + SUM( 82 ), + 63 ) / + + 55 * - AVG ( ALL CAST( NULL AS SIGNED ) ) + COALESCE ( + 61, SUM( ALL 26 ) * COUNT( * ) + 20 * - CAST( + 12 AS SIGNED ) ) * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT + COALESCE ( - CAST ( 17 AS INTEGER ), + 30 + + ( - 2 ) * + SUM ( 82 ), + 63 ) / + + 55 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) + COALESCE ( + 61, SUM ( ALL 26 ) * COUNT ( * ) + 20 * - CAST ( + 12 AS INTEGER ) ) * 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL CAST( NULL AS SIGNED ) / 70 * + 25 * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL CAST ( NULL AS INTEGER ) / 70 * + 25 * + 39 AS col0
----
NULL

query I rowsort
SELECT + 36 * - ( + 61 )
----
-2196

query I rowsort
SELECT + NULLIF ( - 16, 36 / + 41 + - 73 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT NULLIF ( + 67, - - COUNT( 73 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4109
SELECT NULLIF ( + 67, - - COUNT ( 73 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT 23 * + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT 23 * + COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT COUNT( DISTINCT ( - + 86 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT COUNT ( DISTINCT ( - + 86 ) )
----
1

query II rowsort
SELECT + 92 col2, 45 * + 81 AS col1
----
92
3645

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT ALL - 69 * + + MIN( ALL + - 39 ) * - 92, + 79 * - + MAX( + 34 ) AS col0
----
-247572
-2686

skipif mysql # not compatible
query II rowsort label-4113
SELECT ALL - 69 * + + MIN ( ALL + - 39 ) * - 92, + 79 * - + MAX ( + 34 ) AS col0
----
-247572
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + MAX( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + MAX ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT + COUNT( * ) AS col1, 67
----
1
67

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT + COUNT ( * ) AS col1, 67
----
1
67

query II rowsort
SELECT - 3 AS col0, 17 * - 30 + 23 * 63 col0
----
-3
939

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL - 92 * + COUNT( * ) + - - 27 + + 96
----
31

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - 92 * + COUNT ( * ) + - - 27 + + 96
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT - COUNT( * ) * + 45 * + + 8 * + 17 + + 54 + SUM( ALL + 23 ) DIV + 54 col0
----
-6066

skipif mysql # not compatible
query I rowsort label-4118
SELECT - COUNT ( * ) * + 45 * + + 8 * + 17 + + 54 + SUM ( ALL + 23 ) / + 54 col0
----
-6066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT + CAST( - 51 AS SIGNED ) - - 54
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT + CAST ( - 51 AS INTEGER ) - - 54
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT + + CAST( NULL AS SIGNED ) / - 28 / + COUNT( * ) + - - 64 * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT + + CAST ( NULL AS INTEGER ) / - 28 / + COUNT ( * ) + - - 64 * - 81 AS col0
----
NULL

query I rowsort
SELECT ALL + + 76 + 64 AS col2
----
140

query I rowsort
SELECT - + 29 + - - 24 * + ( ( + 81 ) ) - 67 + 47
----
1895

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT ALL + - ( + 55 ) DIV - + 9
----
6

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + - ( + 55 ) / - + 9
----
6

query I rowsort
SELECT DISTINCT - - 46 + 55 col2
----
101

query II rowsort
SELECT DISTINCT + ( - 77 ) * + 37 + - - 81, - 92 col0
----
-2768
-92

query I rowsort
SELECT ALL - 85 * 81 col0
----
-6885

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - + 96 + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - + 96 + + COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT + - 34 * - 62
----
2108

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - 1 DIV - + 31
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT - 1 / - + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT - - 88 + + 96 DIV 9
----
98

skipif mysql # not compatible
query I rowsort label-4130
SELECT - - 88 + + 96 / 9
----
98

query I rowsort
SELECT DISTINCT ( + CASE 22 WHEN 1 - + 23 THEN 95 WHEN + + ( + + 95 ) THEN NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL - + 21 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - + 21 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - COUNT( * ) - + 87
----
-88

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - COUNT ( * ) - + 87
----
-88

query I rowsort
SELECT - 78 * + 36
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + CASE - 85 WHEN - 68 - COUNT( * ) THEN - 60 WHEN - 59 THEN NULL ELSE - - ( + COUNT( * ) ) * + 8 * - ( - 72 ) * 58 + 19 END
----
33427

skipif mysql # not compatible
query I rowsort label-4135
SELECT + CASE - 85 WHEN - 68 - COUNT ( * ) THEN - 60 WHEN - 59 THEN NULL ELSE - - ( + COUNT ( * ) ) * + 8 * - ( - 72 ) * 58 + 19 END
----
33427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT + COUNT( * ) * - COUNT( * ) * + COALESCE ( + - CAST( 69 AS SIGNED ), + 79, + CAST( NULL AS SIGNED ) * - 31 - - ( + 60 ) + 15 )
----
69

skipif mysql # not compatible
query I rowsort label-4136
SELECT + COUNT ( * ) * - COUNT ( * ) * + COALESCE ( + - CAST ( 69 AS INTEGER ), + 79, + CAST ( NULL AS INTEGER ) * - 31 - - ( + 60 ) + 15 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + COALESCE ( - + ( + + 26 ), - - 36 * + COUNT( * ), + 15 )
----
-26

skipif mysql # not compatible
query I rowsort label-4137
SELECT + COALESCE ( - + ( + + 26 ), - - 36 * + COUNT ( * ), + 15 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + ( - SUM( - 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-4138
SELECT + ( - SUM ( - 90 ) )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL CAST( - 68 AS SIGNED ) * + 73 col0
----
-4964

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL CAST ( - 68 AS INTEGER ) * + 73 col0
----
-4964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT CAST( 52 AS SIGNED ) AS col2, 38 + 37 AS col1
----
52
75

skipif mysql # not compatible
query II rowsort label-4140
SELECT CAST ( 52 AS INTEGER ) AS col2, 38 + 37 AS col1
----
52
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4141
SELECT + 97 DIV + + 30 + 83 * - + 33 * + - 27, + 0 AS col1
----
73956
0

skipif mysql # not compatible
query II rowsort label-4141
SELECT + 97 / + + 30 + 83 * - + 33 * + - 27, + 0 AS col1
----
73956
0

query II rowsort
SELECT DISTINCT 24 * - 24 AS col2, - 87
----
-576
-87

query I rowsort
SELECT + COALESCE ( + + 24, - + 68 + + 27 ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + 96 * - + COUNT( * ) - - 19 + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-4144
SELECT + 96 * - + COUNT ( * ) - - 19 + + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT - COUNT( * ) * + 7 col1
----
-7

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - COUNT ( * ) * + 7 col1
----
-7

query I rowsort
SELECT ( 2 ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT + CAST( NULL AS SIGNED ) * - - ( COUNT( * ) ) / ( 75 ) * - 81 * 60 - - 28 + + - COUNT( * ) + + 36 * 7 + - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + CAST ( NULL AS INTEGER ) * - - ( COUNT ( * ) ) / ( 75 ) * - 81 * 60 - - 28 + + - COUNT ( * ) + + 36 * 7 + - - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT + 34 DIV - 6
----
-5

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 34 / - 6
----
-5

query I rowsort
SELECT + 56 * - 63 AS col2
----
-3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4150
SELECT 66 + + + CAST( NULL AS SIGNED ) AS col2, MAX( DISTINCT - 30 ) AS col0
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-4150
SELECT 66 + + + CAST ( NULL AS INTEGER ) AS col2, MAX ( DISTINCT - 30 ) AS col0
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT CASE + CASE + ( COUNT( * ) ) WHEN + 75 THEN 91 END WHEN 53 THEN - - 80 ELSE NULL END * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT CASE + CASE + ( COUNT ( * ) ) WHEN + 75 THEN 91 END WHEN 53 THEN - - 80 ELSE NULL END * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + COUNT( * ) + ( - - 83 )
----
84

skipif mysql # not compatible
query I rowsort label-4152
SELECT + COUNT ( * ) + ( - - 83 )
----
84

query II rowsort
SELECT ALL 22 + - + 98 AS col2, - ( - - 68 ) * - + ( + + 5 ) * + COALESCE ( + 58, - 40 ) + - 57 + + 25 AS col0
----
-76
19688

query I rowsort
SELECT DISTINCT + 47 * 2 col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4155
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 60 AS col2, 4 + 73 - + + 66
----
NULL
11

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 60 AS col2, 4 + 73 - + + 66
----
NULL
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT ALL 89 + - 79 + + ( + ( COUNT( * ) ) ) * - + 25 DIV + 99 * + - ( - MIN( DISTINCT + 31 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 89 + - 79 + + ( + ( COUNT ( * ) ) ) * - + 25 / + 99 * + - ( - MIN ( DISTINCT + 31 ) ) AS col2
----
10

query I rowsort
SELECT DISTINCT - ( + 89 ) + - - 38
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL + CAST( + COALESCE ( - + 26, + 10 + + MIN( + 92 ) ) AS SIGNED ) + NULLIF ( - 4, - + 34 * - 7 + - 15 - ( + COALESCE ( 93, 15 + 53, - 56 + 58 ) ) - - 77 * 94 ) * - 83
----
306

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + CAST ( + COALESCE ( - + 26, + 10 + + MIN ( + 92 ) ) AS INTEGER ) + NULLIF ( - 4, - + 34 * - 7 + - 15 - ( + COALESCE ( 93, 15 + 53, - 56 + 58 ) ) - - 77 * 94 ) * - 83
----
306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4159
SELECT + 99 + 1 * - 76 AS col0, 97 + - CASE + - 46 WHEN + 16 * + 94 THEN - - SUM( ALL + 91 ) + CAST( + 93 AS SIGNED ) + - CASE 57 WHEN 35 THEN NULL WHEN COUNT( * ) THEN 34 WHEN - 6 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) WHEN 43 THEN - 49 * - 99 ELSE NULL END + + 10 * - 15
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4159
SELECT + 99 + 1 * - 76 AS col0, 97 + - CASE + - 46 WHEN + 16 * + 94 THEN - - SUM ( ALL + 91 ) + CAST ( + 93 AS INTEGER ) + - CASE 57 WHEN 35 THEN NULL WHEN COUNT ( * ) THEN 34 WHEN - 6 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) WHEN 43 THEN - 49 * - 99 ELSE NULL END + + 10 * - 15
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT 84 * SUM( ALL + 98 ) - + 84 AS col1
----
8148

skipif mysql # not compatible
query I rowsort label-4160
SELECT 84 * SUM ( ALL + 98 ) - + 84 AS col1
----
8148

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT DISTINCT 2 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT 2 / + 85
----
0

query I rowsort
SELECT ALL - 41 * + 18 * 85
----
-62730

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - CASE + 25 WHEN + 57 * 83 * + 36 THEN 54 WHEN - MAX( ALL + 69 ) * + MAX( DISTINCT + 59 ) THEN + COUNT( * ) / - + 75 END * + + 91 * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - CASE + 25 WHEN + 57 * 83 * + 36 THEN 54 WHEN - MAX ( ALL + 69 ) * + MAX ( DISTINCT + 59 ) THEN + COUNT ( * ) / - + 75 END * + + 91 * 55 AS col0
----
NULL

query I rowsort
SELECT 24 + - - 84 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT COUNT( * ) DIV + COUNT( * ) + MIN( DISTINCT 29 )
----
30

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) / + COUNT ( * ) + MIN ( DISTINCT 29 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT 68 * + 11 * - CASE + 29 WHEN - COUNT( * ) * - ( + 50 ) THEN - 86 END - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT 68 * + 11 * - CASE + 29 WHEN - COUNT ( * ) * - ( + 50 ) THEN - 86 END - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT 43 + - COUNT( - 48 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-4167
SELECT 43 + - COUNT ( - 48 ) col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT + 93 DIV - 90 - 10 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4168
SELECT + 93 / - 90 - 10 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL COUNT( * ) + - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL COUNT ( * ) + - 95 AS col0
----
-94

query II rowsort
SELECT ALL - 49, - 53 AS col2
----
-49
-53

query II rowsort
SELECT + 98 AS col2, - 21 AS col2
----
98
-21

query I rowsort
SELECT DISTINCT + 79 + 54
----
133

query I rowsort
SELECT ALL 11 + + 14 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL - 98 * + CASE 81 WHEN CAST( + + 26 AS SIGNED ) THEN - 82 WHEN + ( 57 ) THEN 10 END + + 14 + + 27 * 68 - - COALESCE ( 68, - 31 + + 0, 21 + - 50 ) * COUNT( ALL 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - 98 * + CASE 81 WHEN CAST ( + + 26 AS INTEGER ) THEN - 82 WHEN + ( 57 ) THEN 10 END + + 14 + + 27 * 68 - - COALESCE ( 68, - 31 + + 0, 21 + - 50 ) * COUNT ( ALL 45 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT + - 55 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) / - + 9 + + ( + 67 ) * 30 + - NULLIF ( + 60, - + 68 ) + NULLIF ( - - 66, 77 ) / + 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + - 55 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) / - + 9 + + ( + 67 ) * 30 + - NULLIF ( + 60, - + 68 ) + NULLIF ( - - 66, 77 ) / + 16 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + 3 + - + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 3 + - + COUNT ( * ) AS col0
----
2

query II rowsort
SELECT DISTINCT - 53 col2, + 15
----
-53
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT ALL + COUNT( * ) + 90 + + - 1 AS col0, 57 AS col1
----
90
57

skipif mysql # not compatible
query II rowsort label-4178
SELECT ALL + COUNT ( * ) + 90 + + - 1 AS col0, 57 AS col1
----
90
57

query I rowsort
SELECT + 70 + - 72
----
-2

query II rowsort
SELECT 60 + + 40 + + 16 * - + 80, 3 AS col0
----
-1180
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - 53 + - MAX( DISTINCT 25 ) + 74 - - 5
----
1

skipif mysql # not compatible
query I rowsort label-4181
SELECT - 53 + - MAX ( DISTINCT 25 ) + 74 - - 5
----
1

query I rowsort
SELECT ALL 22 - + NULLIF ( - 40, + 6 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - 6 + ( 61 ) - - COALESCE ( - - COUNT( - 98 ), + 55 * + 86 + 4 )
----
56

skipif mysql # not compatible
query I rowsort label-4183
SELECT - 6 + ( 61 ) - - COALESCE ( - - COUNT ( - 98 ), + 55 * + 86 + 4 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT + 75 * - COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + 75 * - COUNT ( * ) AS col1
----
-75

query II rowsort
SELECT DISTINCT 14, - ( - 32 ) AS col2
----
14
32

query I rowsort
SELECT ALL CASE - 1 WHEN 97 + + - 25 THEN NULL ELSE + 94 + - 56 END * + - ( + 97 ) AS col2
----
-3686

query II rowsort
SELECT DISTINCT 75, - ( - 31 ) AS col2
----
75
31

query I rowsort
SELECT 18 * + 27 * + - 52 AS col0
----
-25272

query I rowsort
SELECT ALL 13 * + + ( - 5 )
----
-65

query I rowsort
SELECT 60 + 7
----
67

query I rowsort
SELECT 69 + - 75 + + - 6 AS col0
----
-12

query I rowsort
SELECT 43 * - ( 54 )
----
-2322

query I rowsort
SELECT 79 + - 49 * - 51 AS col2
----
2578

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4194
SELECT ALL 45 * - ( 61 ) * - - 69 + - CAST( NULL AS DECIMAL ) + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 45 * - ( 61 ) * - - 69 + - CAST ( NULL AS REAL ) + + 43 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4195
SELECT 69 * + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4195
SELECT 69 * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * 86 AS col1
----
NULL
86

onlyif mysql # DIV for integer division: 
query II rowsort label-4196
SELECT ALL 47 DIV + 24 col2, - 99
----
1
-99

skipif mysql # not compatible
query II rowsort label-4196
SELECT ALL 47 / + 24 col2, - 99
----
1
-99

query I rowsort
SELECT NULLIF ( + - 16, - 73 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT ( 42 ) * - + COUNT( * ) + + MIN( - 49 ) + 75
----
-16

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT ( 42 ) * - + COUNT ( * ) + + MIN ( - 49 ) + 75
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT ALL 88 * + 51 * + COUNT( * ) + + 50 * NULLIF ( + 86, 4 * + CAST( NULL AS SIGNED ) + 72 / 6 + + + CAST( NULL AS SIGNED ) )
----
8788

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL 88 * + 51 * + COUNT ( * ) + + 50 * NULLIF ( + 86, 4 * + CAST ( NULL AS INTEGER ) + 72 / 6 + + + CAST ( NULL AS INTEGER ) )
----
8788

query I rowsort
SELECT COALESCE ( 53, - - 97 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4201
SELECT ALL + NULLIF ( + - 48, 75 * + + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) / + + 73 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + NULLIF ( + - 48, 75 * + + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) / + + 73 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL 82 * 49 + - + COUNT( * )
----
4017

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 82 * 49 + - + COUNT ( * )
----
4017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT - COUNT( * ) * 9 * 58 DIV - 75
----
6

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) * 9 * 58 / - 75
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + 0 * - 58 - + - 73 * COUNT( * ) * + MIN( ALL - 97 ) AS col2
----
-7081

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 0 * - 58 - + - 73 * COUNT ( * ) * + MIN ( ALL - 97 ) AS col2
----
-7081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT COALESCE ( - + 95, - SUM( + 3 ) + + + COALESCE ( 2, + 57 + MAX( DISTINCT 55 ), - + 28 ), - - CAST( + + ( + - 96 ) AS SIGNED ) + - + 7 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4205
SELECT COALESCE ( - + 95, - SUM ( + 3 ) + + + COALESCE ( 2, + 57 + MAX ( DISTINCT 55 ), - + 28 ), - - CAST ( + + ( + - 96 ) AS INTEGER ) + - + 7 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + COUNT( * ) * - 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + COUNT ( * ) * - 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT COALESCE ( + COUNT( * ), - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4207
SELECT COALESCE ( + COUNT ( * ), - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT - 90 * 72 + + 25 + - COUNT( * ) + - + 58 * + COUNT( * ) + 12 AS col1
----
-6502

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - 90 * 72 + + 25 + - COUNT ( * ) + - + 58 * + COUNT ( * ) + 12 AS col1
----
-6502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT 52 * - ( + 14 ) + + NULLIF ( + CAST( NULL AS SIGNED ), + SUM( ALL + + 56 ) + 33 ) + - - 60 + + - 7 / - AVG ( - - 34 ) * - 79 + + + 40 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT 52 * - ( + 14 ) + + NULLIF ( + CAST ( NULL AS INTEGER ), + SUM ( ALL + + 56 ) + 33 ) + - - 60 + + - 7 / - AVG ( - - 34 ) * - 79 + + + 40 * + 92
----
NULL

query I rowsort
SELECT + + ( - ( - 33 ) ) col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT - + 83 - - CAST( 19 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-4211
SELECT - + 83 - - CAST ( 19 AS INTEGER )
----
-64

query I rowsort
SELECT ALL + + ( - 84 ) AS col2
----
-84

query I rowsort
SELECT - - ( - ( + - 24 ) ) + - + 13 * + 95 col0
----
-1211

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT DISTINCT + - 77 - + COALESCE ( + 71, + ( - 43 ) DIV - + 29 + - - 1 )
----
-148

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + - 77 - + COALESCE ( + 71, + ( - 43 ) / - + 29 + - - 1 )
----
-148

query I rowsort
SELECT ALL - - 14 * - 69 + 19 * - - 52 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT - ( - + ( CAST( COUNT( * ) AS SIGNED ) ) ) * + COUNT( * ) - - 72
----
73

skipif mysql # not compatible
query I rowsort label-4216
SELECT - ( - + ( CAST ( COUNT ( * ) AS INTEGER ) ) ) * + COUNT ( * ) - - 72
----
73

query I rowsort
SELECT DISTINCT + + 85 - ( 49 ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT - - COUNT( * ) DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT - - COUNT ( * ) / - 46 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT + 8 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT + 8 / + 83
----
0

query I rowsort
SELECT + 84 * 16 AS col1
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT ALL 66 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 66 / - 58
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT + 72 DIV - COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 72 / - COUNT ( * ) col0
----
-72

query I rowsort
SELECT + 48 * + 29 AS col2
----
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT ALL 60 + NULLIF ( COUNT( * ), + + 99 / COUNT( * ) ), 46 AS col0
----
61
46

skipif mysql # not compatible
query II rowsort label-4224
SELECT ALL 60 + NULLIF ( COUNT ( * ), + + 99 / COUNT ( * ) ), 46 AS col0
----
61
46

query I rowsort
SELECT + 65 - + 49
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL MIN( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL MIN ( DISTINCT 18 )
----
18

query I rowsort
SELECT DISTINCT 65 + 28 * + + 0 AS col0
----
65

query II rowsort
SELECT 93 col0, 33
----
93
33

query I rowsort
SELECT ALL 0 + - - 94
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT + CAST( NULL AS SIGNED ) - - - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT + CAST ( NULL AS INTEGER ) - - - 1 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4231
SELECT + CAST( + 48 AS SIGNED ) + 38 AS col1, 49 + + - COUNT( * )
----
86
48

skipif mysql # not compatible
query II rowsort label-4231
SELECT + CAST ( + 48 AS INTEGER ) + 38 AS col1, 49 + + - COUNT ( * )
----
86
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT 15 / SUM( ALL 28 ) + - - NULLIF ( - 55, - 87 * - 88 ) * + - CAST( NULL AS SIGNED ) / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT 15 / SUM ( ALL 28 ) + - - NULLIF ( - 55, - 87 * - 88 ) * + - CAST ( NULL AS INTEGER ) / - 32
----
NULL

query II rowsort
SELECT ALL + 55 AS col1, 39 AS col1
----
55
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ( - 26 ) * + COUNT( * ) + - COALESCE ( + 51, 35 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4234
SELECT ( - 26 ) * + COUNT ( * ) + - COALESCE ( + 51, 35 ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT + 49 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + 49 / + 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4236
SELECT + 29 / - 5 * - + 2 + + 34 / + COUNT( * ) + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 29 / - 5 * - + 2 + + 34 / + COUNT ( * ) + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT + - 10 + - MAX( + + 54 ) AS col1, - 5 + - NULLIF ( + 83, + 7 + - + 45 ) AS col0
----
-64
-88

skipif mysql # not compatible
query II rowsort label-4237
SELECT + - 10 + - MAX ( + + 54 ) AS col1, - 5 + - NULLIF ( + 83, + 7 + - + 45 ) AS col0
----
-64
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT + 54 * - 25 + - 88 AS col1, + SUM( + 70 ) + - ( + ( + 93 ) )
----
-1438
-23

skipif mysql # not compatible
query II rowsort label-4238
SELECT + 54 * - 25 + - 88 AS col1, + SUM ( + 70 ) + - ( + ( + 93 ) )
----
-1438
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - - SUM( - + 62 ) * + + 79 AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-4239
SELECT - - SUM ( - + 62 ) * + + 79 AS col0
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - + MIN( ( 89 ) ) * 68
----
-6052

skipif mysql # not compatible
query I rowsort label-4240
SELECT - + MIN ( ( 89 ) ) * 68
----
-6052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT - + CAST( - COUNT( * ) AS SIGNED ) * ( - 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-4241
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) * ( - 78 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - 88 + + COUNT( * ) * - 21 + ( - - COALESCE ( + - 70, 29 - - 26 * - + 8, - - 71 + - - 42 - 62, - + ( - + ( - 9 ) ) * - 71 ) )
----
-179

skipif mysql # not compatible
query I rowsort label-4242
SELECT - 88 + + COUNT ( * ) * - 21 + ( - - COALESCE ( + - 70, 29 - - 26 * - + 8, - - 71 + - - 42 - 62, - + ( - + ( - 9 ) ) * - 71 ) )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT 57 * - MIN( 39 ) AS col0
----
-2223

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT 57 * - MIN ( 39 ) AS col0
----
-2223

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4244
SELECT + 98 AS col0, - CAST( NULL AS DECIMAL ) * + 12 + - + 12
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4244
SELECT + 98 AS col0, - CAST ( NULL AS REAL ) * + 12 + - + 12
----
98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT 20 * - - 11 + 33 + - + 10 - CAST( + - 32 AS SIGNED )
----
275

skipif mysql # not compatible
query I rowsort label-4245
SELECT 20 * - - 11 + 33 + - + 10 - CAST ( + - 32 AS INTEGER )
----
275

onlyif mysql # aggregate syntax: 
query II rowsort label-4246
SELECT 13 AS col1, COUNT( * ) * - COUNT( * ) * - 23
----
13
23

skipif mysql # not compatible
query II rowsort label-4246
SELECT 13 AS col1, COUNT ( * ) * - COUNT ( * ) * - 23
----
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT + - 34 * - 78 + + - 33 - + + 79 + + COUNT( * )
----
2541

skipif mysql # not compatible
query I rowsort label-4247
SELECT + - 34 * - 78 + + - 33 - + + 79 + + COUNT ( * )
----
2541

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT - 7, ( 0 ) + - - CASE - AVG ( DISTINCT ( - - 1 ) ) WHEN - + 79 THEN + - 54 + - + COUNT( * ) / 14 END AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-4248
SELECT - 7, ( 0 ) + - - CASE - AVG ( DISTINCT ( - - 1 ) ) WHEN - + 79 THEN + - 54 + - + COUNT ( * ) / 14 END AS col1
----
-7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT + 78 + + CAST( - COUNT( * ) AS SIGNED ) + 57 * + 76
----
4409

skipif mysql # not compatible
query I rowsort label-4249
SELECT + 78 + + CAST ( - COUNT ( * ) AS INTEGER ) + 57 * + 76
----
4409

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - 33 * + NULLIF ( + ( + - COUNT( * ) ), - ( - 81 ) * - 43 ) * + + 63 + - + 65 * + + COUNT( * ) * 33 * + 97 + - + 61
----
-206047

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - 33 * + NULLIF ( + ( + - COUNT ( * ) ), - ( - 81 ) * - 43 ) * + + 63 + - + 65 * + + COUNT ( * ) * 33 * + 97 + - + 61
----
-206047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL 60 + + 74 + + + COUNT( * ) + + - 36 / + - 59 + - 56 * 0 * ( 64 ) * - 39 * NULLIF ( COUNT( * ), + 22 + ( + 78 ) ) + - CAST( NULL AS SIGNED ) + - NULLIF ( 10, + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL 60 + + 74 + + + COUNT ( * ) + + - 36 / + - 59 + - 56 * 0 * ( 64 ) * - 39 * NULLIF ( COUNT ( * ), + 22 + ( + 78 ) ) + - CAST ( NULL AS INTEGER ) + - NULLIF ( 10, + 74 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 76 AS col1
----
NULL
76

query I rowsort
SELECT - 42 + + 5
----
-37

query I rowsort
SELECT ALL + 10 + - - NULLIF ( + - 72, - 94 + 65 )
----
-62

query I rowsort
SELECT 49 * - ( - - 44 )
----
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT CASE - COALESCE ( + 24, 46 * CASE CASE - ( - 35 ) WHEN - 69 THEN - 97 END WHEN 0 + + 33 + + - 14 + - COUNT( * ) * 11 + + 94 * + COUNT( * ) THEN NULL WHEN - 59 + 43 / 90 THEN NULL WHEN + 79 / - 48 + COUNT( DISTINCT 55 ) * + 85 THEN - 46 END ) WHEN - 11 THEN NULL WHEN 87 THEN 77 END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT CASE - COALESCE ( + 24, 46 * CASE CASE - ( - 35 ) WHEN - 69 THEN - 97 END WHEN 0 + + 33 + + - 14 + - COUNT ( * ) * 11 + + 94 * + COUNT ( * ) THEN NULL WHEN - 59 + 43 / 90 THEN NULL WHEN + 79 / - 48 + COUNT ( DISTINCT 55 ) * + 85 THEN - 46 END ) WHEN - 11 THEN NULL WHEN 87 THEN 77 END * 92
----
NULL

query I rowsort
SELECT DISTINCT 59 + - 61
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT DISTINCT COUNT( * ) * - + 95 AS col2, - 69 + 40
----
-95
-29

skipif mysql # not compatible
query II rowsort label-4258
SELECT DISTINCT COUNT ( * ) * - + 95 AS col2, - 69 + 40
----
-95
-29

query I rowsort
SELECT DISTINCT + 93 - + 24 * 26
----
-531

query II rowsort
SELECT 48, 25 * + 92 * + 33 AS col2
----
48
75900

query I rowsort
SELECT DISTINCT - 20 * - + 61 + 63
----
1283

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT + 27 DIV - 22 - 22 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 27 / - 22 - 22 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + MAX( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4263
SELECT + MAX ( DISTINCT + 22 )
----
22

query I rowsort
SELECT 35 - 0 AS col0
----
35

query I rowsort
SELECT 79 * + - 18
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT CASE - 3 WHEN + ( - 89 ) THEN - 36 * 79 * + COUNT( * ) + - 15 * + - ( + 12 ) + 73 + + COUNT( * ) * COALESCE ( + 0, - SUM( 48 ) ) END * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT CASE - 3 WHEN + ( - 89 ) THEN - 36 * 79 * + COUNT ( * ) + - 15 * + - ( + 12 ) + 73 + + COUNT ( * ) * COALESCE ( + 0, - SUM ( 48 ) ) END * - 11
----
NULL

query II rowsort
SELECT DISTINCT - - 84, 23 AS col2
----
84
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4268
SELECT DISTINCT - 99 AS col1, CAST( NULL AS SIGNED ) + - 63 * - 6 / - MAX( DISTINCT ( + 48 ) ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT - 99 AS col1, CAST ( NULL AS INTEGER ) + - 63 * - 6 / - MAX ( DISTINCT ( + 48 ) ) AS col0
----
-99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4269
SELECT DISTINCT - 87, + CASE 99 WHEN - 63 + + + 33 * 41 THEN - 20 DIV + + 12 WHEN 95 THEN NULL WHEN + - COALESCE ( 3, NULLIF ( - COUNT( DISTINCT - - 3 ), - + CAST( NULL AS SIGNED ) ) ) THEN - - 20 * ( COUNT( * ) ) ELSE ( ( - 7 ) ) END * + 52 AS col1
----
-87
-364

skipif mysql # not compatible
query II rowsort label-4269
SELECT DISTINCT - 87, + CASE 99 WHEN - 63 + + + 33 * 41 THEN - 20 / + + 12 WHEN 95 THEN NULL WHEN + - COALESCE ( 3, NULLIF ( - COUNT ( DISTINCT - - 3 ), - + CAST ( NULL AS INTEGER ) ) ) THEN - - 20 * ( COUNT ( * ) ) ELSE ( ( - 7 ) ) END * + 52 AS col1
----
-87
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + - SUM( ALL + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4270
SELECT + - SUM ( ALL + 82 ) AS col1
----
-82

query I rowsort
SELECT 4 - - + 8 AS col2
----
12

query II rowsort
SELECT DISTINCT - + 51 AS col0, 23 * + 64 * - 42 + + + 43
----
-51
-61781

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT - 90 - + ( 55 ) * 50 + + COUNT( * ) * - - 1, 16 AS col1
----
-2839
16

skipif mysql # not compatible
query II rowsort label-4273
SELECT - 90 - + ( 55 ) * 50 + + COUNT ( * ) * - - 1, 16 AS col1
----
-2839
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + - 47 * + 54 * + 54 + + COUNT( * ) * + COUNT( * )
----
-137051

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + - 47 * + 54 * + 54 + + COUNT ( * ) * + COUNT ( * )
----
-137051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4275
SELECT - CAST( - 79 AS SIGNED ) DIV 19 * + 59 - ( - CASE + 61 WHEN - + ( + COUNT( * ) ) + - 71 + ( - 16 ) - + 48 THEN NULL WHEN - 72 THEN + + COUNT( * ) + + 6 + - CAST( NULL AS SIGNED ) ELSE + 82 END ) + 50 * + 93
----
4968

skipif mysql # not compatible
query I rowsort label-4275
SELECT - CAST ( - 79 AS INTEGER ) / 19 * + 59 - ( - CASE + 61 WHEN - + ( + COUNT ( * ) ) + - 71 + ( - 16 ) - + 48 THEN NULL WHEN - 72 THEN + + COUNT ( * ) + + 6 + - CAST ( NULL AS INTEGER ) ELSE + 82 END ) + 50 * + 93
----
4968

query I rowsort
SELECT ALL + 43 + 31 AS col2
----
74

query I rowsort
SELECT 68 * - 43 AS col1
----
-2924

query I rowsort
SELECT 27 * - 58 + 9
----
-1557

query I rowsort
SELECT 4 * 66 AS col1
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT + 40 - + 94 col1, - 20 + 32 + + - 42 * + - SUM( 66 )
----
-54
2784

skipif mysql # not compatible
query II rowsort label-4280
SELECT + 40 - + 94 col1, - 20 + 32 + + - 42 * + - SUM ( 66 )
----
-54
2784

query I rowsort
SELECT DISTINCT - 96 + - 10 AS col0
----
-106

query I rowsort
SELECT ALL + 41 + - 2 AS col1
----
39

query I rowsort
SELECT ALL ( + - ( + 5 ) ) * - + 20 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT DISTINCT 89 + - + COALESCE ( + 54, 78 + - 34 ) DIV - + 93 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT 89 + - + COALESCE ( + 54, 78 + - 34 ) / - + 93 AS col2
----
89

query I rowsort
SELECT 69 + + 57 + 47 AS col1
----
173

query I rowsort
SELECT 84 - - 11
----
95

query I rowsort
SELECT ALL + 7 * + 41
----
287

query I rowsort
SELECT ALL + 89 * 17
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT COUNT( * ) + - MAX( DISTINCT - 16 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4289
SELECT COUNT ( * ) + - MAX ( DISTINCT - 16 ) AS col0
----
17

query I rowsort
SELECT 13 + ( + 4 ) AS col1
----
17

query I rowsort
SELECT 84 + - - NULLIF ( - - 52, - - 89 ) + 87 * - 1 AS col2
----
49

query I rowsort
SELECT + 72 * 14 * + 44
----
44352

query I rowsort
SELECT NULLIF ( - 9, + - 7 ) + + 65 + - ( - 12 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - + CASE - + COUNT( * ) WHEN - CASE + - 52 WHEN + 56 * - - 78 THEN - - ( - + CASE 40 WHEN + 88 THEN SUM( ALL + 51 ) END ) + 86 * + 78 + COUNT( * ) + + - COALESCE ( + COUNT( * ), + 96, - AVG ( DISTINCT 36 ) * + 61 ) END * + 82 THEN 7 END / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - + CASE - + COUNT ( * ) WHEN - CASE + - 52 WHEN + 56 * - - 78 THEN - - ( - + CASE 40 WHEN + 88 THEN SUM ( ALL + 51 ) END ) + 86 * + 78 + COUNT ( * ) + + - COALESCE ( + COUNT ( * ), + 96, - AVG ( DISTINCT 36 ) * + 61 ) END * + 82 THEN 7 END / 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT 35 * 86 - + - 29 + - SUM( + 58 ) / 14 * - 74 + - + CASE - 97 WHEN + - 36 THEN + ( - SUM( - 65 ) ) WHEN + - 65 THEN - + 44 END * - + 33 / - 45 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT 35 * 86 - + - 29 + - SUM ( + 58 ) / 14 * - 74 + - + CASE - 97 WHEN + - 36 THEN + ( - SUM ( - 65 ) ) WHEN + - 65 THEN - + 44 END * - + 33 / - 45 * 85
----
NULL

query I rowsort
SELECT + 25 + - - 73 - + 15 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - + 13 * - 65 * COUNT( * ) - - + COUNT( * ) AS col0
----
846

skipif mysql # not compatible
query I rowsort label-4297
SELECT - + 13 * - 65 * COUNT ( * ) - - + COUNT ( * ) AS col0
----
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT 81 * CAST( - 13 AS SIGNED ) AS col0
----
-1053

skipif mysql # not compatible
query I rowsort label-4298
SELECT 81 * CAST ( - 13 AS INTEGER ) AS col0
----
-1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL CAST( + 20 AS SIGNED ) * + CAST( - 72 AS SIGNED ) - 56
----
-1496

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL CAST ( + 20 AS INTEGER ) * + CAST ( - 72 AS INTEGER ) - 56
----
-1496

query I rowsort
SELECT NULLIF ( + 85, - 21 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL - 38 DIV - ( - 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - 38 / - ( - 37 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - + 84 * COUNT( * ) * + + 1 * - + 91 + + 69 + 51
----
7764

skipif mysql # not compatible
query I rowsort label-4302
SELECT - + 84 * COUNT ( * ) * + + 1 * - + 91 + + 69 + 51
----
7764

query I rowsort
SELECT ALL + 58 * + 59 * + 3 + 58
----
10324

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - + CASE 78 WHEN + 84 / + 10 * - 41 * 73 + - COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - + CASE 78 WHEN + 84 / + 10 * - 41 * 73 + - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT - 7 * + - COUNT( * ) + + + 57 * - 49 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 7 * + - COUNT ( * ) + + + 57 * - 49 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 83 * - 88 + ( 39 )
----
7343

query I rowsort
SELECT DISTINCT 13 + + - 70 col2
----
-57

query I rowsort
SELECT 63 * + 65 AS col2
----
4095

query I rowsort
SELECT ALL 37 * + 3 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL 48 + - 98 + + COUNT( * ) * 17 - - 9 col0
----
-24

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL 48 + - 98 + + COUNT ( * ) * 17 - - 9 col0
----
-24

query I rowsort
SELECT + 89 * + - 50
----
-4450

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - 95 * COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4312
SELECT - 95 * COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT 10 * 81 + - 61 + + 25 AS col0
----
774

query I rowsort
SELECT ALL 77 * 25 col1
----
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT - 89 + + ( CAST( NULL AS SIGNED ) ) + - 75 + + 77 + CASE + + COUNT( * ) WHEN - - CASE + - 47 WHEN 47 THEN COUNT( * ) END + + ( - 65 ) * - + CAST( NULL AS SIGNED ) THEN + + 64 WHEN + + 62 + + 89 THEN - + 48 WHEN 47 * COUNT( * ) THEN COUNT( DISTINCT 33 ) * - COUNT( * ) + 71 ELSE NULL END * - 43 / 38 * + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT - 89 + + ( CAST ( NULL AS INTEGER ) ) + - 75 + + 77 + CASE + + COUNT ( * ) WHEN - - CASE + - 47 WHEN 47 THEN COUNT ( * ) END + + ( - 65 ) * - + CAST ( NULL AS INTEGER ) THEN + + 64 WHEN + + 62 + + 89 THEN - + 48 WHEN 47 * COUNT ( * ) THEN COUNT ( DISTINCT 33 ) * - COUNT ( * ) + 71 ELSE NULL END * - 43 / 38 * + 66 col2
----
NULL

query I rowsort
SELECT + 77 + + 23 AS col2
----
100

query I rowsort
SELECT DISTINCT 82 * + 91
----
7462

query I rowsort
SELECT ALL 41 * - 75 * + 50
----
-153750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4319
SELECT - CAST( - + CAST( - 45 AS DECIMAL ) AS SIGNED ) + 47 * COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4319
SELECT - CAST ( - + CAST ( - 45 AS REAL ) AS INTEGER ) + 47 * COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL SUM ( DISTINCT + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL MIN( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL MIN ( + 16 )
----
16

query II rowsort
SELECT 95, + 98 * - 25 AS col1
----
95
-2450

query I rowsort
SELECT - 99 + + 35 AS col2
----
-64

query I rowsort
SELECT ALL - + 81 * + - 85 AS col0
----
6885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT - - CAST( NULL AS SIGNED ) * - ( - ( + + 80 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - - CAST ( NULL AS INTEGER ) * - ( - ( + + 80 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - NULLIF ( - + COUNT( * ), + 82 - AVG ( ALL 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - NULLIF ( - + COUNT ( * ), + 82 - AVG ( ALL 90 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT + COUNT( * ) * + CASE - 64 WHEN + + 95 THEN - + 45 * + 79 ELSE NULL END + + 27 + + CASE - NULLIF ( - - 88, COALESCE ( - + 17, - 79 ) ) WHEN + COALESCE ( - 25, + 13 ) * - CAST( NULL AS SIGNED ) + + 84 + + 12 * COUNT( * ) + 56 THEN - 12 WHEN - 5 THEN NULL ELSE NULL END - COUNT( * ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + COUNT ( * ) * + CASE - 64 WHEN + + 95 THEN - + 45 * + 79 ELSE NULL END + + 27 + + CASE - NULLIF ( - - 88, COALESCE ( - + 17, - 79 ) ) WHEN + COALESCE ( - 25, + 13 ) * - CAST ( NULL AS INTEGER ) + + 84 + + 12 * COUNT ( * ) + 56 THEN - 12 WHEN - 5 THEN NULL ELSE NULL END - COUNT ( * ) + - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT - - 49 * - 39 * - COALESCE ( + COUNT( - 60 ), 8 ) + - COUNT( DISTINCT - 38 ) + + - 8 + + 34 + ( + 68 ) + 13 + - 66 + + - COALESCE ( + + 67, - ( + 7 ) + CAST( - 11 AS SIGNED ) )
----
1884

skipif mysql # not compatible
query I rowsort label-4328
SELECT - - 49 * - 39 * - COALESCE ( + COUNT ( - 60 ), 8 ) + - COUNT ( DISTINCT - 38 ) + + - 8 + + 34 + ( + 68 ) + 13 + - 66 + + - COALESCE ( + + 67, - ( + 7 ) + CAST ( - 11 AS INTEGER ) )
----
1884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT 38 DIV - - 14 - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT 38 / - - 14 - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT - COUNT( * ) DIV - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT - COUNT ( * ) / - 20 AS col2
----
0

query II rowsort
SELECT 38, - 79 AS col1
----
38
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + 59 * + MIN( ALL + 92 ) * - - COUNT( ALL - + 37 ) + - 98 AS col2
----
5330

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 59 * + MIN ( ALL + 92 ) * - - COUNT ( ALL - + 37 ) + - 98 AS col2
----
5330

onlyif mysql # aggregate syntax: 
query II rowsort label-4333
SELECT DISTINCT + 7 * + 44 + - 76 * 72, - 35 + - - NULLIF ( - + 19, + - NULLIF ( - ( SUM( ALL + 51 ) ), - - 62 ) ) + 45 * + NULLIF ( + 75, 1 ) AS col0
----
-5164
3321

skipif mysql # not compatible
query II rowsort label-4333
SELECT DISTINCT + 7 * + 44 + - 76 * 72, - 35 + - - NULLIF ( - + 19, + - NULLIF ( - ( SUM ( ALL + 51 ) ), - - 62 ) ) + 45 * + NULLIF ( + 75, 1 ) AS col0
----
-5164
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + COALESCE ( - 33, 33 * - 80 * 70 + + ( - - COUNT( + - 91 ) ), 19 )
----
-33

skipif mysql # not compatible
query I rowsort label-4334
SELECT + COALESCE ( - 33, 33 * - 80 * 70 + + ( - - COUNT ( + - 91 ) ), 19 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT DISTINCT - - 21 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - - 21 / 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT DISTINCT + CASE + 20 WHEN 69 + CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - - 28 * + 37 + + - 74 * 52 THEN - 56 ELSE + 96 END * 48 + + 19 + - + NULLIF ( + 97, - 78 / - + COUNT( * ) - - ( ( + 10 ) + - COALESCE ( - 76, - 47 ) ) )
----
4530

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + CASE + 20 WHEN 69 + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - 28 * + 37 + + - 74 * 52 THEN - 56 ELSE + 96 END * 48 + + 19 + - + NULLIF ( + 97, - 78 / - + COUNT ( * ) - - ( ( + 10 ) + - COALESCE ( - 76, - 47 ) ) )
----
4530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4337
SELECT ALL + + 14, + NULLIF ( 45, - CAST( - - 23 AS SIGNED ) + - MIN( ALL - - 86 ) * - + 82 ) AS col2
----
14
45

skipif mysql # not compatible
query II rowsort label-4337
SELECT ALL + + 14, + NULLIF ( 45, - CAST ( - - 23 AS INTEGER ) + - MIN ( ALL - - 86 ) * - + 82 ) AS col2
----
14
45

query I rowsort
SELECT DISTINCT 96 * + 83 AS col2
----
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT + 2 - - + 33 * CAST( - + 62 AS SIGNED ) + + 80
----
-1964

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 2 - - + 33 * CAST ( - + 62 AS INTEGER ) + + 80
----
-1964

query I rowsort
SELECT DISTINCT + COALESCE ( - 78, + 33 - 71 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - 31 * - - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 31 * - - COUNT ( * ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT 42 * - 68 / + - 59 * 48 * - 88 * - ( CAST( NULL AS SIGNED ) ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT 42 * - 68 / + - 59 * 48 * - 88 * - ( CAST ( NULL AS INTEGER ) ) * + 52
----
NULL

query I rowsort
SELECT + 72 * - 61 AS col0
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT NULLIF ( + - ( - 12 ), - + ( + SUM( ALL + 78 ) ) / 38 )
----
12

skipif mysql # not compatible
query I rowsort label-4344
SELECT NULLIF ( + - ( - 12 ), - + ( + SUM ( ALL + 78 ) ) / 38 )
----
12

query I rowsort
SELECT ALL + ( - - 44 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT - 69 * - CASE + - 63 WHEN COUNT( * ) + + - AVG ( DISTINCT - 70 ) THEN + 41 * - COUNT( - 50 ) * + - COUNT( * ) * SUM( DISTINCT - CAST( 18 AS SIGNED ) ) ELSE NULL END - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - 69 * - CASE + - 63 WHEN COUNT ( * ) + + - AVG ( DISTINCT - 70 ) THEN + 41 * - COUNT ( - 50 ) * + - COUNT ( * ) * SUM ( DISTINCT - CAST ( 18 AS INTEGER ) ) ELSE NULL END - 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT - ( 77 ) AS col0, NULLIF ( - COUNT( * ), - + 53 )
----
-77
-1

skipif mysql # not compatible
query II rowsort label-4347
SELECT - ( 77 ) AS col0, NULLIF ( - COUNT ( * ), - + 53 )
----
-77
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT ALL SUM( 88 ) AS col2, COUNT( * ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-4348
SELECT ALL SUM ( 88 ) AS col2, COUNT ( * ) AS col1
----
88
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT - ( + 31 ) AS col1, COUNT( * ) - + 17 - 16 - ( + + 46 )
----
-31
-78

skipif mysql # not compatible
query II rowsort label-4349
SELECT - ( + 31 ) AS col1, COUNT ( * ) - + 17 - 16 - ( + + 46 )
----
-31
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + COUNT( * ) + 87 + - 7
----
81

skipif mysql # not compatible
query I rowsort label-4350
SELECT + COUNT ( * ) + 87 + - 7
----
81

query I rowsort
SELECT + 23 - 38 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4352
SELECT + COUNT( * ) + + ( - + CAST( NULL AS DECIMAL ) ) + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) + + ( - + CAST ( NULL AS REAL ) ) + - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + ( - - 48 ) + + COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + ( - - 48 ) + + COUNT ( * ) col0
----
49

query I rowsort
SELECT + - 2 + + 54 col0
----
52

query I rowsort
SELECT ALL - 38 + + + 71 + - + 21 * + + 71 * 87
----
-129684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT 94 + + 24 + - + ( + + 75 ) DIV + 28 + COALESCE ( CASE 37 WHEN MAX( DISTINCT + - 83 ) + + COUNT( * ) THEN CASE 91 WHEN - 12 THEN + 38 WHEN + 57 THEN NULL END + + + 43 ELSE NULL END, - + 61, - - 79 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT 94 + + 24 + - + ( + + 75 ) / + 28 + COALESCE ( CASE 37 WHEN MAX ( DISTINCT + - 83 ) + + COUNT ( * ) THEN CASE 91 WHEN - 12 THEN + 38 WHEN + 57 THEN NULL END + + + 43 ELSE NULL END, - + 61, - - 79 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4357
SELECT - - 53 + + + ( CAST( - CASE 1 WHEN COUNT( * ) + COUNT( * ) THEN + CAST( 38 AS SIGNED ) + - + COUNT( 52 ) WHEN + 48 / 76 * - 31 - 36 THEN - 81 END AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT - - 53 + + + ( CAST ( - CASE 1 WHEN COUNT ( * ) + COUNT ( * ) THEN + CAST ( 38 AS INTEGER ) + - + COUNT ( 52 ) WHEN + 48 / 76 * - 31 - 36 THEN - 81 END AS REAL ) )
----
NULL

query II rowsort
SELECT ALL 13 + 93 AS col0, 41 * - 88 + - ( + + 94 )
----
106
-3702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT + CAST( - ( - 94 ) AS SIGNED ) + ( CAST( NULL AS SIGNED ) ) / 75 - + - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT + CAST ( - ( - 94 ) AS INTEGER ) + ( CAST ( NULL AS INTEGER ) ) / 75 - + - 54 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT - CASE + - 88 WHEN 15 THEN + - 60 * + 98 WHEN + 12 * - COALESCE ( + 64, + 59 + + + 46, - 12 / + COUNT( * ) ) THEN NULL ELSE + COUNT( * ) END - + NULLIF ( - - 22, - 8 ) - + 79 + 46 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT - CASE + - 88 WHEN 15 THEN + - 60 * + 98 WHEN + 12 * - COALESCE ( + 64, + 59 + + + 46, - 12 / + COUNT ( * ) ) THEN NULL ELSE + COUNT ( * ) END - + NULLIF ( - - 22, - 8 ) - + 79 + 46 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT + CAST( NULL AS SIGNED ) + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT + CAST ( NULL AS INTEGER ) + + 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL + 17 DIV + 14 + - 10 - + 70 * - + 56 * 78 AS col2
----
305751

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + 17 / + 14 + - 10 - + 70 * - + 56 * 78 AS col2
----
305751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT - + 26 * + COALESCE ( + + CAST( NULL AS SIGNED ), - 28 )
----
728

skipif mysql # not compatible
query I rowsort label-4363
SELECT - + 26 * + COALESCE ( + + CAST ( NULL AS INTEGER ), - 28 )
----
728

query I rowsort
SELECT DISTINCT - 4 - + - 92 AS col0
----
88

query I rowsort
SELECT DISTINCT - + 3 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - + COUNT( - 50 ) - - - 88
----
-89

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - + COUNT ( - 50 ) - - - 88
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT 82 * + ( + 66 ) * 74 + + COUNT( DISTINCT - + COALESCE ( + 11, + ( + + 43 ), + 32 * 26 * - - 45 ) ) + ( + 72 ) col2, ( 52 )
----
400561
52

skipif mysql # not compatible
query II rowsort label-4367
SELECT 82 * + ( + 66 ) * 74 + + COUNT ( DISTINCT - + COALESCE ( + 11, + ( + + 43 ), + 32 * 26 * - - 45 ) ) + ( + 72 ) col2, ( 52 )
----
400561
52

query I rowsort
SELECT ALL - 54 * - 8 AS col0
----
432

query I rowsort
SELECT 50 + - + 70 col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4370
SELECT 39, - 52 DIV + 78 * - 97 * + - COUNT( * ) AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-4370
SELECT 39, - 52 / + 78 * - 97 * + - COUNT ( * ) AS col0
----
39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT DISTINCT - COUNT( * ) AS col2, - 82 AS col2
----
-1
-82

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT - COUNT ( * ) AS col2, - 82 AS col2
----
-1
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + 64 * - COUNT( * ) * - COUNT( * ) * - 58 + 56
----
-3656

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 64 * - COUNT ( * ) * - COUNT ( * ) * - 58 + 56
----
-3656

query II rowsort
SELECT ALL - 43 col2, + 37 + + 85 col0
----
-43
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ( - 57 ) * - - COUNT( ALL + ( + 18 ) ) + 89 + - 89 + 30 * - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4374
SELECT ( - 57 ) * - - COUNT ( ALL + ( + 18 ) ) + 89 + - 89 + 30 * - COUNT ( * ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT 88 DIV + 62 col2
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT 88 / + 62 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT 94 + + + ( COUNT( * ) ) * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4377
SELECT 94 + + + ( COUNT ( * ) ) * COUNT ( * ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT ALL + 48 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + 48 / + 97 AS col1
----
0

query II rowsort
SELECT ALL - 33, - 85 + - + 93 AS col0
----
-33
-178

query I rowsort
SELECT 4 + - 52
----
-48

query I rowsort
SELECT ALL 41 * 9
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT 23 * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4382
SELECT 23 * + COUNT ( * ) AS col0
----
23

query II rowsort
SELECT 33, 40 * 9 AS col0
----
33
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT SUM( DISTINCT - - 9 ) * - 56 + + 7
----
-497

skipif mysql # not compatible
query I rowsort label-4384
SELECT SUM ( DISTINCT - - 9 ) * - 56 + + 7
----
-497

query I rowsort
SELECT 13 * - 13
----
-169

query I rowsort
SELECT DISTINCT + 3 + - - 30 * - 39
----
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL 44 + + 2 - - + MAX( ALL - 71 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL 44 + + 2 - - + MAX ( ALL - 71 ) AS col2
----
-25

query I rowsort
SELECT ALL - 51 + - 76 * 14 + - - 90 * - 4
----
-1475

query I rowsort
SELECT - 27 * - - 55
----
-1485

query I rowsort
SELECT ALL 66 + + 13 * - 34
----
-376

query I rowsort
SELECT ALL 10 + 65 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - CASE - + 66 WHEN + 38 * + 6 - + NULLIF ( SUM( ALL - 87 ), 31 + - CASE NULLIF ( + 6, + 49 ) WHEN - 31 THEN + AVG ( DISTINCT + + 18 ) * ( CASE - + 2 WHEN 40 THEN + - 2 * - 44 - + COUNT( * ) * COUNT( * ) WHEN + COUNT( * ) THEN 21 ELSE + 77 END ) - - 79 - - COALESCE ( 10, + 38, + 60, + ( - 56 ) + - 30 ) END ) + 62 THEN COUNT( * ) * COUNT( * ) ELSE + 9 + - ( - 60 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-4392
SELECT - CASE - + 66 WHEN + 38 * + 6 - + NULLIF ( SUM ( ALL - 87 ), 31 + - CASE NULLIF ( + 6, + 49 ) WHEN - 31 THEN + AVG ( DISTINCT + + 18 ) * ( CASE - + 2 WHEN 40 THEN + - 2 * - 44 - + COUNT ( * ) * COUNT ( * ) WHEN + COUNT ( * ) THEN 21 ELSE + 77 END ) - - 79 - - COALESCE ( 10, + 38, + 60, + ( - 56 ) + - 30 ) END ) + 62 THEN COUNT ( * ) * COUNT ( * ) ELSE + 9 + - ( - 60 ) END
----
-69

query I rowsort
SELECT 48 * - + 28
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4394
SELECT + ( + - CAST( NULL AS SIGNED ) ) + 13 AS col2, COUNT( * ) * + 67 DIV - ( - 32 ) AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4394
SELECT + ( + - CAST ( NULL AS INTEGER ) ) + 13 AS col2, COUNT ( * ) * + 67 / - ( - 32 ) AS col0
----
NULL
2

query I rowsort
SELECT ALL + 35 + 19
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT - + CAST( - 99 AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4396
SELECT - + CAST ( - 99 AS INTEGER ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT ALL - MAX( + - 96 ) * + + 27, - 62 AS col1
----
2592
-62

skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL - MAX ( + - 96 ) * + + 27, - 62 AS col1
----
2592
-62

query I rowsort
SELECT DISTINCT 95 - + - 33
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL 13 * - NULLIF ( - COUNT( - 94 ), - - 25 / + ( - 98 ) + + - 62 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 13 * - NULLIF ( - COUNT ( - 94 ), - - 25 / + ( - 98 ) + + - 62 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT - CAST( - 80 AS SIGNED ) - - COUNT( ALL + 21 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - CAST ( - 80 AS INTEGER ) - - COUNT ( ALL + 21 ) AS col2
----
81

query I rowsort
SELECT - 10 - - 5
----
-5

query I rowsort
SELECT 97 * - - 32 AS col2
----
3104

query I rowsort
SELECT + COALESCE ( - 88, 69 )
----
-88

query II rowsort
SELECT + 0 AS col2, - 73 + - + 37 col2
----
0
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL + 61 * - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + 61 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL 18 * - - SUM( + COALESCE ( - - 4, - 9 ) ) * + 66 * 86
----
408672

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 18 * - - SUM ( + COALESCE ( - - 4, - 9 ) ) * + 66 * 86
----
408672

query I rowsort
SELECT DISTINCT - ( - 40 ) col0
----
40

query I rowsort
SELECT DISTINCT + 43 * - 62 * 3 * + + 3
----
-23994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL - 89 + + CASE 25 WHEN - COALESCE ( - 77, - MIN( ALL - - 59 ) ) THEN NULL WHEN 75 THEN + COUNT( * ) - NULLIF ( + COALESCE ( + - 28, - - 7 + COUNT( * ) + 48 + - 71 * - CAST( MIN( ALL - 38 ) AS SIGNED ) * + COUNT( * ) + - NULLIF ( + 19, + SUM( DISTINCT 43 ) ) + 55 / - 70 ), 61 + + 60 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 89 + + CASE 25 WHEN - COALESCE ( - 77, - MIN ( ALL - - 59 ) ) THEN NULL WHEN 75 THEN + COUNT ( * ) - NULLIF ( + COALESCE ( + - 28, - - 7 + COUNT ( * ) + 48 + - 71 * - CAST ( MIN ( ALL - 38 ) AS INTEGER ) * + COUNT ( * ) + - NULLIF ( + 19, + SUM ( DISTINCT 43 ) ) + 55 / - 70 ), 61 + + 60 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT CAST( COUNT( * ) AS SIGNED ) + - 13 + - 14
----
-26

skipif mysql # not compatible
query I rowsort label-4410
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 13 + - 14
----
-26

query II rowsort
SELECT + 77, + 42 AS col2
----
77
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT 94 * + - 43 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT 94 * + - 43 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4413
SELECT + 35, - CAST( 85 AS SIGNED ) AS col2
----
35
-85

skipif mysql # not compatible
query II rowsort label-4413
SELECT + 35, - CAST ( 85 AS INTEGER ) AS col2
----
35
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4414
SELECT + 88, 38 + - CAST( + 10 AS SIGNED ) AS col1
----
88
28

skipif mysql # not compatible
query II rowsort label-4414
SELECT + 88, 38 + - CAST ( + 10 AS INTEGER ) AS col1
----
88
28

query I rowsort
SELECT ALL + 26 + ( 77 ) AS col0
----
103

query I rowsort
SELECT DISTINCT - 71 + + 91
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL - COUNT( * ) + NULLIF ( 2, + 2 * 86 * + + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - COUNT ( * ) + NULLIF ( 2, + 2 * 86 * + + 22 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT DISTINCT - 22 AS col1, MIN( ALL - 75 )
----
-22
-75

skipif mysql # not compatible
query II rowsort label-4418
SELECT DISTINCT - 22 AS col1, MIN ( ALL - 75 )
----
-22
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + COUNT( * ) + + 67 + + 86
----
154

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + COUNT ( * ) + + 67 + + 86
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - + MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4420
SELECT - + MIN ( + 2 )
----
-2

query I rowsort
SELECT + 64 + + 27 + - 83
----
8

query I rowsort
SELECT + 34 - + 4
----
30

query I rowsort
SELECT - + ( - + 22 ) AS col2
----
22

query II rowsort
SELECT - - 4 AS col1, 7 * ( - 42 )
----
4
-294

query I rowsort
SELECT + 91 + - ( - 11 ) * + 2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT 63 * + + MAX( 38 ) + - COUNT( * ) + - COALESCE ( + 15, - COUNT( * ), COUNT( * ) - 83 + + 43 - + - 87 + 54 + + + COUNT( * ) DIV + 21 + + + 79 + - 5 * 94 * + + 8 + - + 39 * + 34 )
----
2378

skipif mysql # not compatible
query I rowsort label-4426
SELECT 63 * + + MAX ( 38 ) + - COUNT ( * ) + - COALESCE ( + 15, - COUNT ( * ), COUNT ( * ) - 83 + + 43 - + - 87 + 54 + + + COUNT ( * ) / + 21 + + + 79 + - 5 * 94 * + + 8 + - + 39 * + 34 )
----
2378

query I rowsort
SELECT - 0 * + 78
----
0

query I rowsort
SELECT + 27 + 52 + + 23 + - 16 + - 5 * + + 74 * - - 73 * + - 61
----
1647696

query I rowsort
SELECT ALL + + 77 - - 15 * 61 AS col1
----
992

query I rowsort
SELECT + + 93 * + 81 AS col1
----
7533

query II rowsort
SELECT 69, - 33 AS col0
----
69
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + - 60 + + SUM( ALL - + 37 )
----
-97

skipif mysql # not compatible
query I rowsort label-4432
SELECT + - 60 + + SUM ( ALL - + 37 )
----
-97

query I rowsort
SELECT - NULLIF ( + 79, - + 59 ) * - 67 * 58
----
306994

query I rowsort
SELECT DISTINCT 42 * 58 * + - 29 AS col1
----
-70644

query II rowsort
SELECT 31 AS col1, 13
----
31
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT - COUNT( * ) / + 32 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT - COUNT ( * ) / + 32 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4437
SELECT + 60 DIV - - 73, - ( + + CAST( 11 AS SIGNED ) ) * - COUNT( * ) + - + COUNT( * ) * ( + - MAX( - 72 ) ) * ( + 79 ) DIV COUNT( * ) + + + 40 AS col2
----
0
-5637

skipif mysql # not compatible
query II rowsort label-4437
SELECT + 60 / - - 73, - ( + + CAST ( 11 AS INTEGER ) ) * - COUNT ( * ) + - + COUNT ( * ) * ( + - MAX ( - 72 ) ) * ( + 79 ) / COUNT ( * ) + + + 40 AS col2
----
0
-5637

query I rowsort
SELECT 66 * 42 + - - 98
----
2870

query II rowsort
SELECT DISTINCT 77 * - 11 AS col0, + 79 AS col2
----
-847
79

query I rowsort
SELECT ALL 87 * + 40 + + 44
----
3524

query I rowsort
SELECT + 6 * + - 57 * - 82 * - 93
----
-2608092

query I rowsort
SELECT NULLIF ( - + 79, + - 91 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT - MAX( ALL + ( - + 10 ) ) * - COUNT( * ) + + 89 col2, 2 * 90
----
79
180

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT - MAX ( ALL + ( - + 10 ) ) * - COUNT ( * ) + + 89 col2, 2 * 90
----
79
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 3 * - CASE - 71 WHEN - + ( MAX( ALL + 90 ) ) THEN - 9 ELSE NULL END + MIN( DISTINCT + 9 ) * - 2 * - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT 3 * - CASE - 71 WHEN - + ( MAX ( ALL + 90 ) ) THEN - 9 ELSE NULL END + MIN ( DISTINCT + 9 ) * - 2 * - 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL + MAX( DISTINCT - 18 ) * + + 3 + 14
----
-40

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + MAX ( DISTINCT - 18 ) * + + 3 + 14
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT 21 * + 25 + - + 51 + + COUNT( * ) * - 42 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-4446
SELECT 21 * + 25 + - + 51 + + COUNT ( * ) * - 42 AS col2
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT DISTINCT ( + 5 ) * + - 85 + + 17 DIV + + 59 + + - 74
----
-499

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT ( + 5 ) * + - 85 + + 17 / + + 59 + + - 74
----
-499

query II rowsort
SELECT + NULLIF ( AVG ( + ( 59 ) ), + + 59 ) AS col2, 31 + 9 AS col1
----
NULL
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4449
SELECT ALL + + NULLIF ( + - 55, + + COUNT( DISTINCT CAST( 68 AS DECIMAL ) ) * - + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + + NULLIF ( + - 55, + + COUNT ( DISTINCT CAST ( 68 AS REAL ) ) * - + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 13 * - 39 + - 90 + - - 73 AS col1
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL + 68 - + 15 + + 44 + + 77 + + - 64 - - MIN( 66 ) + + 71 * + - 62 * - COALESCE ( - 94, - 40, + 26 * - 84 ) + + - COUNT( * ) * + - 3 AS col0
----
-413609

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + 68 - + 15 + + 44 + + 77 + + - 64 - - MIN ( 66 ) + + 71 * + - 62 * - COALESCE ( - 94, - 40, + 26 * - 84 ) + + - COUNT ( * ) * + - 3 AS col0
----
-413609

query I rowsort
SELECT - 45 + + 35 * + - 18 * - - 89 AS col0
----
-56115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT DISTINCT - 77 DIV COUNT( * ) + 47 + 1 * + + 73 * + + COUNT( * ) * + 41
----
2963

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT - 77 / COUNT ( * ) + 47 + 1 * + + 73 * + + COUNT ( * ) * + 41
----
2963

query I rowsort
SELECT ALL NULLIF ( + + 42, + 90 + - + 48 ) AS col2
----
NULL

query I rowsort
SELECT - - ( + + 32 ) * - + 90 AS col1
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - NULLIF ( COUNT( * ), + 89 ) * CAST( + MAX( ALL - + 17 ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - NULLIF ( COUNT ( * ), + 89 ) * CAST ( + MAX ( ALL - + 17 ) AS INTEGER )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4457
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 15 AS col1, + MAX( ALL - 0 ) * + + 32 * - 21 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 15 AS col1, + MAX ( ALL - 0 ) * + + 32 * - 21 AS col2
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT ALL CAST( - + 21 AS SIGNED ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL CAST ( - + 21 AS INTEGER ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT - + MIN( DISTINCT - + 71 ) - - 83
----
154

skipif mysql # not compatible
query I rowsort label-4459
SELECT - + MIN ( DISTINCT - + 71 ) - - 83
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - CAST( NULL AS SIGNED ) * MAX( + + 30 ) * - ( + + 96 ) + + - 15 * 86 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - CAST ( NULL AS INTEGER ) * MAX ( + + 30 ) * - ( + + 96 ) + + - 15 * 86 + 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT DISTINCT + 25 * - 69, - COUNT( * ) + + COALESCE ( + + 33, 74 ) AS col0
----
-1725
32

skipif mysql # not compatible
query II rowsort label-4461
SELECT DISTINCT + 25 * - 69, - COUNT ( * ) + + COALESCE ( + + 33, 74 ) AS col0
----
-1725
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL + - COUNT( * ) * - 19 * - 18 AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + - COUNT ( * ) * - 19 * - 18 AS col1
----
-342

query I rowsort
SELECT DISTINCT + 75 * + 30 AS col0
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT ( + + MIN( DISTINCT + - 91 ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT ( + + MIN ( DISTINCT + - 91 ) ) AS col0
----
-91

query I rowsort
SELECT ALL + 61 * - 78 AS col2
----
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4466
SELECT DISTINCT ( + ( + - CASE + CAST( NULL AS SIGNED ) WHEN - CAST( - 13 AS DECIMAL ) + - 79 * + 28 + + 91 THEN NULL WHEN + COUNT( * ) THEN - + 16 WHEN - 45 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END ) ) AS col2, 41 * + 24 + + 97 + + 86 * 42 + CAST( - 8 AS SIGNED ) - + - 4 AS col2
----
NULL
4689

skipif mysql # not compatible
query II rowsort label-4466
SELECT DISTINCT ( + ( + - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 13 AS REAL ) + - 79 * + 28 + + 91 THEN NULL WHEN + COUNT ( * ) THEN - + 16 WHEN - 45 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END ) ) AS col2, 41 * + 24 + + 97 + + 86 * 42 + CAST ( - 8 AS INTEGER ) - + - 4 AS col2
----
NULL
4689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4467
SELECT 50 AS col1, CASE + 77 WHEN - ( 43 ) * - - 51 + - 21 * COUNT( * ) * + 69 THEN 0 / + CASE WHEN ( NULL ) <= NULL THEN NULL ELSE 90 END END + - + CAST( NULL AS SIGNED )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4467
SELECT 50 AS col1, CASE + 77 WHEN - ( 43 ) * - - 51 + - 21 * COUNT ( * ) * + 69 THEN 0 / + CASE WHEN ( NULL ) <= NULL THEN NULL ELSE 90 END END + - + CAST ( NULL AS INTEGER )
----
50
NULL

query II rowsort
SELECT ALL 55 AS col2, - 96 AS col0
----
55
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT DISTINCT COUNT( * ) DIV + + 7 + 51
----
51

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT COUNT ( * ) / + + 7 + 51
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4470
SELECT ALL AVG ( ALL 84 ) / + - 91 + + CASE + + COUNT( * ) WHEN ( + + 86 ) + + CAST( - 89 AS DECIMAL ) - - COUNT( * ) * COUNT( * ) + 31 THEN 94 WHEN 63 THEN ( 24 ) END + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL AVG ( ALL 84 ) / + - 91 + + CASE + + COUNT ( * ) WHEN ( + + 86 ) + + CAST ( - 89 AS REAL ) - - COUNT ( * ) * COUNT ( * ) + 31 THEN 94 WHEN 63 THEN ( 24 ) END + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT CAST( - 95 AS SIGNED ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-4471
SELECT CAST ( - 95 AS INTEGER ) col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT ALL + 58 AS col0, CASE WHEN NOT ( + 11 ) IS NULL THEN 18 * - 54 * - COUNT( * ) WHEN NOT NULL IS NULL THEN NULL ELSE - 36 / 51 END AS col1
----
58
972

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL + 58 AS col0, CASE WHEN NOT ( + 11 ) IS NULL THEN 18 * - 54 * - COUNT ( * ) WHEN NOT NULL IS NULL THEN NULL ELSE - 36 / 51 END AS col1
----
58
972

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + COUNT( ALL + 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4473
SELECT + COUNT ( ALL + 20 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - 51 * MAX( + 8 ) * - 47 + - 56 AS col1
----
19120

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 51 * MAX ( + 8 ) * - 47 + - 56 AS col1
----
19120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT + 59 * - 0 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT + 59 * - 0 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 65 * - - 9
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT COUNT( * ) / + + 2 + 89 - + 68 + + 65 * 0 + + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT COUNT ( * ) / + + 2 + 89 - + 68 + + 65 * 0 + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT - COALESCE ( COALESCE ( + + 27, + + CAST( NULL AS SIGNED ) + 43 ), - MIN( 27 ) + + + 23, 97 + - 98 ) DIV + 39 * + 40 * - 6
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - COALESCE ( COALESCE ( + + 27, + + CAST ( NULL AS INTEGER ) + 43 ), - MIN ( 27 ) + + + 23, 97 + - 98 ) / + 39 * + 40 * - 6
----
0

query I rowsort
SELECT + 23 * + 77
----
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL 29 * + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL 29 * + + COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT + 99 + + + 46 * CAST( NULL AS SIGNED ) * + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT + 99 + + + 46 * CAST ( NULL AS INTEGER ) * + 89 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT ALL - 57 DIV + + 58 * 60 + - - COUNT( * ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 57 / + + 58 * 60 + - - COUNT ( * ) + - 31
----
-30

query I rowsort
SELECT - 28 - - 62
----
34

query I rowsort
SELECT + 87 * 63
----
5481

query II rowsort
SELECT ( - CASE - ( + - 78 ) WHEN - - 22 THEN - - 17 ELSE NULL END ), 27 + - - 54 AS col0
----
NULL
81

query I rowsort
SELECT + NULLIF ( 94, - 7 ) AS col1
----
94

query I rowsort
SELECT + 63 + + 65 AS col1
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT DISTINCT - 22 * + - 55 * - 76 * - 54 - COUNT( + - 73 ) AS col2, + COUNT( * )
----
4965839
1

skipif mysql # not compatible
query II rowsort label-4488
SELECT DISTINCT - 22 * + - 55 * - 76 * - 54 - COUNT ( + - 73 ) AS col2, + COUNT ( * )
----
4965839
1

query I rowsort
SELECT ALL - + 2 * - - 58 AS col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT ALL - + COUNT( * ) * - NULLIF ( 41, + COALESCE ( - + 95, - - 49 + + 79 * - 99, COUNT( * ) ) + - 89 ) DIV - - 33 + 78 * - 16 * 25
----
-31199

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - + COUNT ( * ) * - NULLIF ( 41, + COALESCE ( - + 95, - - 49 + + 79 * - 99, COUNT ( * ) ) + - 89 ) / - - 33 + 78 * - 16 * 25
----
-31199

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL 79 * - 43 + - - NULLIF ( 31, 68 ) - + + 79 * - 58 * + + 38 + - + COUNT( * )
----
170749

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 79 * - 43 + - - NULLIF ( 31, 68 ) - + + 79 * - 58 * + + 38 + - + COUNT ( * )
----
170749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4492
SELECT 13 + + 41 * + 61 + + - CAST( NULL AS SIGNED ), - 29 DIV - SUM( DISTINCT + 29 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4492
SELECT 13 + + 41 * + 61 + + - CAST ( NULL AS INTEGER ), - 29 / - SUM ( DISTINCT + 29 ) AS col2
----
NULL
1

query I rowsort
SELECT - 19 * + - 98 + + + 63 + + ( - 4 ) * - 67
----
2193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT 5 + + CAST( + 31 AS SIGNED ) - + 11
----
25

skipif mysql # not compatible
query I rowsort label-4494
SELECT 5 + + CAST ( + 31 AS INTEGER ) - + 11
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4495
SELECT - 46 - 11 + + + MAX( - - CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 46 - 11 + + + MAX ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT + 85 DIV 64 * - MIN( - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 85 / 64 * - MIN ( - 60 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4497
SELECT ALL - MAX( DISTINCT + 34 ) + - 11, + CAST( NULL AS SIGNED ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL - MAX ( DISTINCT + 34 ) + - 11, + CAST ( NULL AS INTEGER ) AS col1
----
-45
NULL

query I rowsort
SELECT + 12 + 38 + 37
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL SUM( DISTINCT - - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL SUM ( DISTINCT - - 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 27 + + ( - 82 ) + + + ( - 12 ) * 96 * COALESCE ( 73, - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 27 + + ( - 82 ) + + + ( - 12 ) * 96 * COALESCE ( 73, - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 4 * 27
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT 7 + - 1 * + - COUNT( * ) - - + 28 - CASE + 49 WHEN 73 THEN + COUNT( * ) * + COUNT( * ) + - CASE + - COUNT( * ) WHEN + 59 * + 37 THEN - COALESCE ( + 96, 47 + - + 62 ) - - - CASE + - 35 WHEN + 9 THEN - 55 * - 96 ELSE 67 * - - NULLIF ( - COUNT( * ), - 35 / CASE COALESCE ( COUNT( * ), - AVG ( - 56 ) * 36 ) * + 97 WHEN 53 * 1 THEN + 45 - + MAX( ALL 57 ) END ) / + 29 + 0 END END END / 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT 7 + - 1 * + - COUNT ( * ) - - + 28 - CASE + 49 WHEN 73 THEN + COUNT ( * ) * + COUNT ( * ) + - CASE + - COUNT ( * ) WHEN + 59 * + 37 THEN - COALESCE ( + 96, 47 + - + 62 ) - - - CASE + - 35 WHEN + 9 THEN - 55 * - 96 ELSE 67 * - - NULLIF ( - COUNT ( * ), - 35 / CASE COALESCE ( COUNT ( * ), - AVG ( - 56 ) * 36 ) * + 97 WHEN 53 * 1 THEN + 45 - + MAX ( ALL 57 ) END ) / + 29 + 0 END END END / 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL + COUNT( * ) + - - ( 12 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + COUNT ( * ) + - - ( 12 ) AS col0
----
13

query I rowsort
SELECT DISTINCT + 84 + + - ( NULLIF ( - 1, + 68 + - ( - 95 ) ) ) - + 14 * NULLIF ( 88, - - 29 ) * 39
----
-47963

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT + MAX( DISTINCT - - 58 ) + + - 28 * - 15 * + + 74
----
31138

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + MAX ( DISTINCT - - 58 ) + + - 28 * - 15 * + + 74
----
31138

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL - COUNT( * ) + + + ( - 46 ) * COUNT( * ) + - 56 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - COUNT ( * ) + + + ( - 46 ) * COUNT ( * ) + - 56 AS col1
----
-103

query I rowsort
SELECT ALL - 30 * + 45 AS col0
----
-1350

query I rowsort
SELECT ALL ( + - 76 ) + 47 + + 30
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - COALESCE ( - - SUM( + + 30 ), - 23 ) * - 49
----
1470

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - COALESCE ( - - SUM ( + + 30 ), - 23 ) * - 49
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT + MAX( DISTINCT + ( - ( + 23 ) ) ) + - 94 * + COUNT( * ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT + MAX ( DISTINCT + ( - ( + 23 ) ) ) + - 94 * + COUNT ( * ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL + ( 94 ) - + - 68 * COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + ( 94 ) - + - 68 * COUNT ( * )
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT DISTINCT - MIN( DISTINCT - - 66 ), 8 * - 84 + + + 82 col0
----
-66
-590

skipif mysql # not compatible
query II rowsort label-4512
SELECT DISTINCT - MIN ( DISTINCT - - 66 ), 8 * - 84 + + + 82 col0
----
-66
-590

query I rowsort
SELECT 19 + + + 17 AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT 22 * - + COUNT( * ), + 14 * COUNT( * ) col2
----
-22
14

skipif mysql # not compatible
query II rowsort label-4514
SELECT 22 * - + COUNT ( * ), + 14 * COUNT ( * ) col2
----
-22
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT ALL SUM( ALL - 8 ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL SUM ( ALL - 8 ) / - 52
----
0

query I rowsort
SELECT 31 * - + 70 + 66 AS col2
----
-2104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT CAST( + 63 AS SIGNED ) * 22 AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT CAST ( + 63 AS INTEGER ) * 22 AS col0
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT - 99 DIV + - 50 + - 1 + - NULLIF ( - 3, 99 * + 96 )
----
3

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - 99 / + - 50 + - 1 + - NULLIF ( - 3, 99 * + 96 )
----
3

query I rowsort
SELECT ALL - 94 * - + 59 * + 66
----
366036

query I rowsort
SELECT ALL + 83 * + - 79 * - 79 * + ( + 61 ) + 64 AS col1
----
31598247

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - CASE + ( + ( - COUNT( * ) ) ) WHEN + - 28 / + 6 THEN NULL WHEN - 34 * + 77 / - 54 - 10 * - 63 + - 41 THEN + 23 * + + 75 / 25 END * - + 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - CASE + ( + ( - COUNT ( * ) ) ) WHEN + - 28 / + 6 THEN NULL WHEN - 34 * + 77 / - 54 - 10 * - 63 + - 41 THEN + 23 * + + 75 / 25 END * - + 61 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT + + 68 * - CASE + ( ( - CASE + - 74 WHEN - 98 + 46 - + 83 THEN - 86 - - 88 END ) ) WHEN + 35 THEN + NULLIF ( - 63, + AVG ( ALL 82 ) / - 76 * - + MIN( + 91 ) ) * + 26 ELSE - 73 END + 33 / - + CAST( NULL AS SIGNED ) * 62 * - 90 - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT + + 68 * - CASE + ( ( - CASE + - 74 WHEN - 98 + 46 - + 83 THEN - 86 - - 88 END ) ) WHEN + 35 THEN + NULLIF ( - 63, + AVG ( ALL 82 ) / - 76 * - + MIN ( + 91 ) ) * + 26 ELSE - 73 END + 33 / - + CAST ( NULL AS INTEGER ) * 62 * - 90 - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + CASE + + 42 WHEN + - MIN( DISTINCT + 51 ) THEN - COUNT( * ) * - MAX( - + 87 ) * - 50 * + 43 + 62 ELSE - - 93 END AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4523
SELECT + CASE + + 42 WHEN + - MIN ( DISTINCT + 51 ) THEN - COUNT ( * ) * - MAX ( - + 87 ) * - 50 * + 43 + 62 ELSE - - 93 END AS col1
----
93

query I rowsort
SELECT 97 * 91 * 90 * - + 44 + - 24 + - + 50 * + - 83
----
-34950794

query I rowsort
SELECT 31 * + + 31 + - - 44
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL CASE 85 WHEN - 5 - + + 8 THEN + + 89 / + + 10 * + - 92 / CASE - + 47 WHEN + + 73 + - 89 - + + 52 + COUNT( * ) THEN - 4 WHEN 19 / - ( - 43 ) THEN + + 83 END / - + 53 ELSE COUNT( DISTINCT + 96 ) * - ( + 54 ) + - COUNT( ALL - 14 ) + 4 * + COALESCE ( - 68, - 29, + 39 ) END
----
-327

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL CASE 85 WHEN - 5 - + + 8 THEN + + 89 / + + 10 * + - 92 / CASE - + 47 WHEN + + 73 + - 89 - + + 52 + COUNT ( * ) THEN - 4 WHEN 19 / - ( - 43 ) THEN + + 83 END / - + 53 ELSE COUNT ( DISTINCT + 96 ) * - ( + 54 ) + - COUNT ( ALL - 14 ) + 4 * + COALESCE ( - 68, - 29, + 39 ) END
----
-327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * + 97 - 92 * - 35 + MIN( ALL - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 97 - 92 * - 35 + MIN ( ALL - 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT 20 * + - NULLIF ( + COUNT( 48 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT 20 * + - NULLIF ( + COUNT ( 48 ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT - SUM( ALL - 67 ) AS col0, 5 * - 31 AS col2
----
67
-155

skipif mysql # not compatible
query II rowsort label-4529
SELECT - SUM ( ALL - 67 ) AS col0, 5 * - 31 AS col2
----
67
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT - 42 * COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - 42 * COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT ALL ( 36 ) + + 40 + - 41 + + 85 + 50
----
170

query I rowsort
SELECT ALL 93 + + - 42
----
51

query I rowsort
SELECT ( + 87 ) - - 19 * - 95 * + - 18 + + 72
----
32649

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT SUM( DISTINCT + 67 ) - 49 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4534
SELECT SUM ( DISTINCT + 67 ) - 49 AS col0
----
18

query I rowsort
SELECT 23 * - + 88 AS col2
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + COUNT( 2 ) + - 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + COUNT ( 2 ) + - 54 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ( 60 ) * - - 69 / CASE + + 33 WHEN 51 THEN NULL WHEN - 74 + + 35 * 93 + - 56 - - ( COUNT( ALL 79 ) ) * - CAST( + - 97 AS SIGNED ) THEN + 17 / - - CASE - 47 WHEN - 94 THEN NULL ELSE + 83 END + + 31 * + 77 - + + ( + COUNT( * ) ) WHEN + - 0 THEN 36 * - COUNT( ALL 6 ) + - 60 * ( + ( + 99 ) / - SUM( ALL - 18 * - 24 ) + + MIN( - 95 ) ) ELSE NULL END * + NULLIF ( 0 / 33, 85 / 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ( 60 ) * - - 69 / CASE + + 33 WHEN 51 THEN NULL WHEN - 74 + + 35 * 93 + - 56 - - ( COUNT ( ALL 79 ) ) * - CAST ( + - 97 AS INTEGER ) THEN + 17 / - - CASE - 47 WHEN - 94 THEN NULL ELSE + 83 END + + 31 * + 77 - + + ( + COUNT ( * ) ) WHEN + - 0 THEN 36 * - COUNT ( ALL 6 ) + - 60 * ( + ( + 99 ) / - SUM ( ALL - 18 * - 24 ) + + MIN ( - 95 ) ) ELSE NULL END * + NULLIF ( 0 / 33, 85 / 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT ALL COUNT( * ) AS col1, - CASE - 70 WHEN + COUNT( * ) THEN - COUNT( * ) + - 27 * - + 73 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL COUNT ( * ) AS col1, - CASE - 70 WHEN + COUNT ( * ) THEN - COUNT ( * ) + - 27 * - + 73 ELSE NULL END
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT 32 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-4539
SELECT 32 / 15
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL COALESCE ( - 54, + 86 + - + 59 + - - 85 + 37 * + + 51 + + 44, - ( + - MAX( 50 ) ) ) - - 73
----
19

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL COALESCE ( - 54, + 86 + - + 59 + - - 85 + 37 * + + 51 + + 44, - ( + - MAX ( 50 ) ) ) - - 73
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT 38 * COUNT( * ) * + 28
----
1064

skipif mysql # not compatible
query I rowsort label-4541
SELECT 38 * COUNT ( * ) * + 28
----
1064

query I rowsort
SELECT ALL + 85 * 18 - 5 + + 10 * 10 AS col1
----
1625

query I rowsort
SELECT 12 * + - 18 * 45 col2
----
-9720

query I rowsort
SELECT NULLIF ( - 0, + 63 + + 90 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT + NULLIF ( - 49, + CASE CASE + - 27 WHEN - - 62 THEN NULL WHEN - + 9 THEN - AVG ( DISTINCT - 51 ) END WHEN 94 * + 84 + - 86 * + 12 THEN NULL WHEN + CAST( - + 46 AS SIGNED ) / + + 5 * - 53 * + - 47 THEN NULL WHEN - + 45 THEN - 1 ELSE NULL END ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-4545
SELECT + NULLIF ( - 49, + CASE CASE + - 27 WHEN - - 62 THEN NULL WHEN - + 9 THEN - AVG ( DISTINCT - 51 ) END WHEN 94 * + 84 + - 86 * + 12 THEN NULL WHEN + CAST ( - + 46 AS INTEGER ) / + + 5 * - 53 * + - 47 THEN NULL WHEN - + 45 THEN - 1 ELSE NULL END ) col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT CAST( NULL AS SIGNED ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT CAST ( NULL AS INTEGER ) + 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4547
SELECT + COALESCE ( + + 28, - 60 * + 75 DIV - COUNT( * ) ) * + + COUNT( * ) + COUNT( * ) + + - 95 col2, MAX( ALL 52 )
----
-66
52

skipif mysql # not compatible
query II rowsort label-4547
SELECT + COALESCE ( + + 28, - 60 * + 75 / - COUNT ( * ) ) * + + COUNT ( * ) + COUNT ( * ) + + - 95 col2, MAX ( ALL 52 )
----
-66
52

query I rowsort
SELECT 67 - - 22
----
89

query I rowsort
SELECT 38 * - - 86 AS col2
----
3268

query I rowsort
SELECT ALL - 64 * - 93 * 64 AS col1
----
380928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL + CASE - 21 WHEN 0 + NULLIF ( CAST( - 35 AS SIGNED ), - COUNT( * ) ) THEN - 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL + CASE - 21 WHEN 0 + NULLIF ( CAST ( - 35 AS INTEGER ), - COUNT ( * ) ) THEN - 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 53 * - - 20
----
-1060

query II rowsort
SELECT + 31 AS col1, + 30
----
31
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + NULLIF ( + 10, - MAX( DISTINCT 27 ) * - ( 36 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + NULLIF ( + 10, - MAX ( DISTINCT 27 ) * - ( 36 ) ) AS col0
----
10

query I rowsort
SELECT + + 76 * - + 11
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT + ( COALESCE ( + 43, + - COUNT( * ), - + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4556
SELECT + ( COALESCE ( + 43, + - COUNT ( * ), - + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
43

query I rowsort
SELECT ALL 97 + - + 43 AS col1
----
54

query I rowsort
SELECT - 67 - - 94 * + 58 AS col0
----
5385

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT + 94 DIV 86 + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + 94 / 86 + 84 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT - 88 + + - 59 + + CASE COALESCE ( + 99, + + 44 ) WHEN - 7 - - 31 THEN 3 + - - 59 * - COUNT( * ) * - 74 + + 39 ELSE - 95 END + - - 77 + + + 3 * 96
----
123

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - 88 + + - 59 + + CASE COALESCE ( + 99, + + 44 ) WHEN - 7 - - 31 THEN 3 + - - 59 * - COUNT ( * ) * - 74 + + 39 ELSE - 95 END + - - 77 + + + 3 * 96
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT + + COUNT( * ) + 88 * + - 0
----
1

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + + COUNT ( * ) + 88 * + - 0
----
1

query II rowsort
SELECT DISTINCT 94 AS col0, + 67
----
94
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4563
SELECT + 94 / - CASE CAST( - 67 AS SIGNED ) WHEN - 88 THEN - 7 / COUNT( * ) - - 12 WHEN + 78 THEN NULL END + - - 60 + + 60 + ( + ( - - 41 ) ) + + CAST( NULL AS SIGNED ) / - 11 AS col1, + 66 AS col0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4563
SELECT + 94 / - CASE CAST ( - 67 AS INTEGER ) WHEN - 88 THEN - 7 / COUNT ( * ) - - 12 WHEN + 78 THEN NULL END + - - 60 + + 60 + ( + ( - - 41 ) ) + + CAST ( NULL AS INTEGER ) / - 11 AS col1, + 66 AS col0
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL + COUNT( * ) + - - MAX( DISTINCT - 50 ) AS col1, 69 col0
----
-49
69

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL + COUNT ( * ) + - - MAX ( DISTINCT - 50 ) AS col1, 69 col0
----
-49
69

query I rowsort
SELECT + + 75 * + 68
----
5100

query II rowsort
SELECT ALL 48 AS col2, - 18 col1
----
48
-18

query I rowsort
SELECT + 60 - + 96 + - 8 AS col0
----
-44

query I rowsort
SELECT + 30 + 74 - + 6 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL 42 - + - COUNT( ALL 81 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 42 - + - COUNT ( ALL 81 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT DISTINCT 57 AS col2, + 65 * COUNT( * )
----
57
65

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT 57 AS col2, + 65 * COUNT ( * )
----
57
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT DISTINCT 71 - - 3 * 70 + + 80 DIV COUNT( * ) DIV 99 + 88
----
369

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT 71 - - 3 * 70 + + 80 / COUNT ( * ) / 99 + 88
----
369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT ALL ( 53 ) * MIN( ALL + 13 ) - - 28 * + - COUNT( * ) DIV + + 81 AS col2
----
689

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL ( 53 ) * MIN ( ALL + 13 ) - - 28 * + - COUNT ( * ) / + + 81 AS col2
----
689

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT ALL COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL COUNT ( * ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + 0 + - 16 - 73 + 67 * + - 55 * + COUNT( * ) col2
----
-3774

skipif mysql # not compatible
query I rowsort label-4574
SELECT + 0 + - 16 - 73 + 67 * + - 55 * + COUNT ( * ) col2
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL 6 - + + MIN( DISTINCT - ( + 14 ) ) + + 56
----
76

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL 6 - + + MIN ( DISTINCT - ( + 14 ) ) + + 56
----
76

query I rowsort
SELECT + 88 * + 55
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL ( + 83 ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL ( + 83 ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 25 AS col2, 6 * - ( + ( 89 ) ) AS col0
----
25
-534

query II rowsort
SELECT 3, + 27 AS col1
----
3
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT - NULLIF ( + + MAX( ALL + 67 ), + + COUNT( * ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4580
SELECT - NULLIF ( + + MAX ( ALL + 67 ), + + COUNT ( * ) ) AS col0
----
-67

query II rowsort
SELECT 8, - 21 * - + 60 * + + 73 AS col0
----
8
91980

query I rowsort
SELECT - COALESCE ( 41, + 59, + ( - - 28 ) ) + + ( 8 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT CAST( 58 AS SIGNED ) col1
----
58

skipif mysql # not compatible
query I rowsort label-4583
SELECT CAST ( 58 AS INTEGER ) col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT + CAST( - - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4584
SELECT + CAST ( - - 47 AS INTEGER )
----
47

query II rowsort
SELECT ALL + 29, 66 AS col1
----
29
66

query I rowsort
SELECT DISTINCT + ( - - 57 ) * + - 74
----
-4218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT COUNT( * ) DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT COUNT ( * ) / - 70 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT - 82 DIV COUNT( * ) DIV + COUNT( * ) + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 82 / COUNT ( * ) / + COUNT ( * ) + - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT - - ( 5 ) DIV - 68 * + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT - - ( 5 ) / - 68 * + ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT + 7 * + NULLIF ( + 43, 60 ) * - - 25 * 30 + + 39 DIV 80 * 13 * COUNT( * ) + - ( 4 ) + - 69 AS col0
----
225677

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 7 * + NULLIF ( + 43, 60 ) * - - 25 * 30 + + 39 / 80 * 13 * COUNT ( * ) + - ( 4 ) + - 69 AS col0
----
225677

query I rowsort
SELECT - 98 + - + 8 - - - 31 AS col1
----
-137

query I rowsort
SELECT ALL + 16 * - 71 + + - 57 + + 28 AS col2
----
-1165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL 11 * - + 72 + - + 44 * 49 * - - 71 + CAST( 38 AS SIGNED ) + - 47 * - + 17 AS col0
----
-153031

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 11 * - + 72 + - + 44 * 49 * - - 71 + CAST ( 38 AS INTEGER ) + - 47 * - + 17 AS col0
----
-153031

query II rowsort
SELECT - 94, + 64 AS col1
----
-94
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL 25 * - + 27 * - + COUNT( * ) AS col2
----
675

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 25 * - + 27 * - + COUNT ( * ) AS col2
----
675

onlyif mysql # aggregate syntax: 
query II rowsort label-4596
SELECT ALL - + 32 * + + 3 - - + COUNT( + 52 ) + - 76 + - 6 AS col0, COUNT( * ) * 30
----
-177
30

skipif mysql # not compatible
query II rowsort label-4596
SELECT ALL - + 32 * + + 3 - - + COUNT ( + 52 ) + - 76 + - 6 AS col0, COUNT ( * ) * 30
----
-177
30

query I rowsort
SELECT - - 53 + 19
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT ALL COUNT( * ) * - 2 * - + COUNT( * ) + + - COUNT( * ) * - COUNT( ALL - - ( - 54 ) ), + 48 col2
----
3
48

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL COUNT ( * ) * - 2 * - + COUNT ( * ) + + - COUNT ( * ) * - COUNT ( ALL - - ( - 54 ) ), + 48 col2
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 32 * + MIN( ALL - 39 ) + + - 81 + 87 col0
----
1254

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 32 * + MIN ( ALL - 39 ) + + - 81 + 87 col0
----
1254

query I rowsort
SELECT - 31 * - 2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - COUNT( * ) * - 39 + - 25
----
14

skipif mysql # not compatible
query I rowsort label-4601
SELECT - COUNT ( * ) * - 39 + - 25
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4602
SELECT DISTINCT - + 47 * + COUNT( * ) + + 5 + + + 46 DIV 10 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - + 47 * + COUNT ( * ) + + 5 + + + 46 / 10 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4603
SELECT + COUNT( * ) + - 80 + - 69 + - + CASE + - 48 WHEN + 73 + + 40 THEN NULLIF ( + 65, AVG ( DISTINCT 95 ) ) DIV 19 * COUNT( * ) * 10 + + 36 - - NULLIF ( 66, + - CASE 34 WHEN 59 * 89 + - 31 + - 91 + 44 + 83 DIV - MAX( DISTINCT + 1 ) THEN NULL WHEN 64 + 17 THEN + 45 DIV - 80 END ) WHEN - 57 * 70 THEN NULL WHEN - ( NULLIF ( + ( 22 ), 76 ) ) THEN CAST( NULL AS SIGNED ) ELSE NULLIF ( 2, 69 - 46 ) END * - 85
----
22

skipif mysql # not compatible
query I rowsort label-4603
SELECT + COUNT ( * ) + - 80 + - 69 + - + CASE + - 48 WHEN + 73 + + 40 THEN NULLIF ( + 65, AVG ( DISTINCT 95 ) ) / 19 * COUNT ( * ) * 10 + + 36 - - NULLIF ( 66, + - CASE 34 WHEN 59 * 89 + - 31 + - 91 + 44 + 83 / - MAX ( DISTINCT + 1 ) THEN NULL WHEN 64 + 17 THEN + 45 / - 80 END ) WHEN - 57 * 70 THEN NULL WHEN - ( NULLIF ( + ( 22 ), 76 ) ) THEN CAST ( NULL AS INTEGER ) ELSE NULLIF ( 2, 69 - 46 ) END * - 85
----
22

query I rowsort
SELECT - 72 * 71 AS col1
----
-5112

query I rowsort
SELECT ALL ( COALESCE ( - 69, - 89 * + + 44 + - - 42 ) ) AS col1
----
-69

query II rowsort
SELECT ALL 19 * - ( + + 94 ), 59 AS col1
----
-1786
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT - 24 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 24 / - 91 AS col0
----
0

query I rowsort
SELECT ALL - 71 * + + 18 AS col1
----
-1278

query I rowsort
SELECT ALL + 8 - - - 36 * 61 col1
----
-2188

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - CASE + 63 WHEN + COUNT( * ) THEN NULL WHEN + + COUNT( * ) THEN - - ( 81 ) - - 59 * - 98 END * + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - CASE + 63 WHEN + COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) THEN - - ( 81 ) - - 59 * - 98 END * + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + 99 * CASE + + 38 WHEN + + 53 - - + COUNT( * ) THEN - 16 + + - 49 END / + + 57 * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + 99 * CASE + + 38 WHEN + + 53 - - + COUNT ( * ) THEN - 16 + + - 49 END / + + 57 * - - 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT + 94 DIV - 1
----
-94

skipif mysql # not compatible
query I rowsort label-4612
SELECT + 94 / - 1
----
-94

query I rowsort
SELECT - 65 - + - ( - 85 )
----
-150

query I rowsort
SELECT 57 - - - 36
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT DISTINCT 81 + - CAST( - 64 AS SIGNED )
----
145

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT 81 + - CAST ( - 64 AS INTEGER )
----
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4616
SELECT ( - - 64 ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ( - - 64 ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT CAST( - 37 AS SIGNED ) * + + 68 * + 8
----
-20128

skipif mysql # not compatible
query I rowsort label-4617
SELECT CAST ( - 37 AS INTEGER ) * + + 68 * + 8
----
-20128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT ALL 10 + 39 AS col0, CAST( + - CAST( - 58 AS SIGNED ) AS SIGNED )
----
49
58

skipif mysql # not compatible
query II rowsort label-4618
SELECT ALL 10 + 39 AS col0, CAST ( + - CAST ( - 58 AS INTEGER ) AS INTEGER )
----
49
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) * ( + 91 ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * ( + 91 ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4620
SELECT DISTINCT - 71 + 94 AS col1, 40 DIV + 35 AS col1
----
23
1

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT - 71 + 94 AS col1, 40 / + 35 AS col1
----
23
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4621
SELECT - 4 + - 74 - - 51 * + ( + 47 ) * - 22 + 57 AS col1, - CAST( NULL AS SIGNED )
----
-52755
NULL

skipif mysql # not compatible
query II rowsort label-4621
SELECT - 4 + - 74 - - 51 * + ( + 47 ) * - 22 + 57 AS col1, - CAST ( NULL AS INTEGER )
----
-52755
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4622
SELECT DISTINCT + COUNT( * ) + - 5 AS col1, - NULLIF ( + 41, 51 ) + 86 - + + CAST( - 68 AS SIGNED )
----
-4
113

skipif mysql # not compatible
query II rowsort label-4622
SELECT DISTINCT + COUNT ( * ) + - 5 AS col1, - NULLIF ( + 41, 51 ) + 86 - + + CAST ( - 68 AS INTEGER )
----
-4
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - MIN( DISTINCT - 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - MIN ( DISTINCT - 67 ) AS col2
----
67

query I rowsort
SELECT ALL - ( - 8 ) + 72 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT 1 + + 93 + + + 31 + + MAX( 70 ) * - + 72 * + + 42 AS col0
----
-211555

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT 1 + + 93 + + + 31 + + MAX ( 70 ) * - + 72 * + + 42 AS col0
----
-211555

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT ALL - + ( - 50 ) + + - ( + 73 ) DIV + 85
----
50

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - + ( - 50 ) + + - ( + 73 ) / + 85
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT CAST( NULL AS SIGNED ) * + MIN( ALL + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT CAST ( NULL AS INTEGER ) * + MIN ( ALL + - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 63 * 81 * + 50 + + COUNT( * ) AS col2
----
-255149

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 63 * 81 * + 50 + + COUNT ( * ) AS col2
----
-255149

query I rowsort
SELECT DISTINCT + - 63 + - 37
----
-100

query I rowsort
SELECT + - ( + - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL COUNT( * ) + 80
----
81

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL COUNT ( * ) + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT 22 * + + 89 - - MAX( DISTINCT + 15 ) AS col1
----
1973

skipif mysql # not compatible
query I rowsort label-4632
SELECT 22 * + + 89 - - MAX ( DISTINCT + 15 ) AS col1
----
1973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT COUNT( - - 55 ) * - + 95 - + CAST( - - 85 AS SIGNED ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-4633
SELECT COUNT ( - - 55 ) * - + 95 - + CAST ( - - 85 AS INTEGER ) AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - CASE + + COUNT( * ) WHEN + 20 THEN + 89 WHEN 18 - ( - + NULLIF ( - 59, - COALESCE ( 25, - - 24, 46 ) ) ) * - - 23 - - + NULLIF ( + 75, - 21 * + 93 + - 88 * 58 - 39 + + - 63 + - 29 / - 42 ) * - CASE 24 WHEN - ( - - COUNT( * ) ) THEN NULL ELSE + 16 + - 99 END THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - CASE + + COUNT ( * ) WHEN + 20 THEN + 89 WHEN 18 - ( - + NULLIF ( - 59, - COALESCE ( 25, - - 24, 46 ) ) ) * - - 23 - - + NULLIF ( + 75, - 21 * + 93 + - 88 * 58 - 39 + + - 63 + - 29 / - 42 ) * - CASE 24 WHEN - ( - - COUNT ( * ) ) THEN NULL ELSE + 16 + - 99 END THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT ( COUNT( * ) ) - + 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT ( COUNT ( * ) ) - + 67 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL COUNT( * ) - - - 20
----
-19

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL COUNT ( * ) - - - 20
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT 12 * CASE 43 WHEN ( + COUNT( * ) ) THEN + 59 ELSE NULL END + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT 12 * CASE 43 WHEN ( + COUNT ( * ) ) THEN + 59 ELSE NULL END + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 38 * 81 AS col2
----
3078

query I rowsort
SELECT ( - 30 ) + 85 AS col2
----
55

query I rowsort
SELECT 22 + 16 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT 57 - - - NULLIF ( - + CAST( 78 AS SIGNED ), + 49 * + COUNT( - 47 ) ) * 59
----
4659

skipif mysql # not compatible
query I rowsort label-4641
SELECT 57 - - - NULLIF ( - + CAST ( 78 AS INTEGER ), + 49 * + COUNT ( - 47 ) ) * 59
----
4659

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT 31 + - 79 + + 58 * + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4642
SELECT 31 + - 79 + + 58 * + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT DISTINCT - 22 * + COALESCE ( - + 25, 45 * - COUNT( * ), 58 ), + 66 AS col2
----
550
66

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT - 22 * + COALESCE ( - + 25, 45 * - COUNT ( * ), 58 ), + 66 AS col2
----
550
66

query I rowsort
SELECT 41 + 23
----
64

query I rowsort
SELECT ALL - 5 * 61 col1
----
-305

query I rowsort
SELECT ALL 5 + + 38 * - - ( - - 58 )
----
2209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4647
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - ( - 60 ) AS col1, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - ( - 60 ) AS col1, 97
----
NULL
97

query I rowsort
SELECT 66 + 91 * - 97
----
-8761

query II rowsort
SELECT 14, 68 AS col2
----
14
68

query II rowsort
SELECT - 37 AS col1, + ( + - 43 ) AS col2
----
-37
-43

query I rowsort
SELECT ALL - 5 + 20 * - 63 * 99 * 93
----
-11600825

query I rowsort
SELECT ALL + 51 + 44
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT 53 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT 53 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT - 88 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 88 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT DISTINCT + 66, - CAST( NULL AS SIGNED ) col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT + 66, - CAST ( NULL AS INTEGER ) col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + 0 * - - 6 * - ( - + 95 ) * + 47 + - NULLIF ( - 86, - 53 ) + COUNT( * ) + + ( - + 53 ) / - + 58 + - + CASE - + 35 WHEN + + 21 + - - COUNT( * ) + + 84 THEN NULL WHEN NULLIF ( - 44, + CASE + COALESCE ( + ( - + 7 ), 31, + 48 ) WHEN - 58 THEN + 87 END ) * + 94 * 25 THEN + 85 * - 77 + - 82 ELSE NULL END + 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + 0 * - - 6 * - ( - + 95 ) * + 47 + - NULLIF ( - 86, - 53 ) + COUNT ( * ) + + ( - + 53 ) / - + 58 + - + CASE - + 35 WHEN + + 21 + - - COUNT ( * ) + + 84 THEN NULL WHEN NULLIF ( - 44, + CASE + COALESCE ( + ( - + 7 ), 31, + 48 ) WHEN - 58 THEN + 87 END ) * + 94 * 25 THEN + 85 * - 77 + - 82 ELSE NULL END + 96 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4657
SELECT DISTINCT 19 * + + 66 + + + CAST( NULL AS SIGNED ) + + 20 * + COUNT( * ) / - 80 col1, - 84 + - 55 - ( + + ( + + 1 ) ) AS col2, + 70 * 21 + - ( + + 44 )
----
NULL
-140
1426

skipif mysql # not compatible
query III rowsort label-4657
SELECT DISTINCT 19 * + + 66 + + + CAST ( NULL AS INTEGER ) + + 20 * + COUNT ( * ) / - 80 col1, - 84 + - 55 - ( + + ( + + 1 ) ) AS col2, + 70 * 21 + - ( + + 44 )
----
NULL
-140
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT DISTINCT - SUM( - ( 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - SUM ( - ( 13 ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT - - 46 * 39 * - CAST( NULL AS SIGNED ) * 12 - - 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - - 46 * 39 * - CAST ( NULL AS INTEGER ) * 12 - - 40 col2
----
NULL

query II rowsort
SELECT + 29, + 70 AS col1
----
29
70

query II rowsort
SELECT + + 63 AS col0, - 61
----
63
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT COUNT( * ) * + - 37 DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-4662
SELECT COUNT ( * ) * + - 37 / 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - MIN( 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - MIN ( 38 ) col2
----
-38

query II rowsort
SELECT + + NULLIF ( - - 99, + 10 ), 42 AS col0
----
99
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ( - ( + COUNT( * ) ) ) + SUM( ALL 50 ) + - 33 + + + MAX( ALL - 50 ) + - 94 + - 94 * - ( - 12 ) AS col0
----
-1256

skipif mysql # not compatible
query I rowsort label-4665
SELECT ( - ( + COUNT ( * ) ) ) + SUM ( ALL 50 ) + - 33 + + + MAX ( ALL - 50 ) + - 94 + - 94 * - ( - 12 ) AS col0
----
-1256

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT 10 * - NULLIF ( - 11, + COUNT( * ) ) + + + 98 + 42 col1, 58
----
250
58

skipif mysql # not compatible
query II rowsort label-4666
SELECT 10 * - NULLIF ( - 11, + COUNT ( * ) ) + + + 98 + 42 col1, 58
----
250
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT COUNT( * ) * + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT COUNT ( * ) * + 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT COUNT( * ) + + 38 col0, 53 col0
----
39
53

skipif mysql # not compatible
query II rowsort label-4668
SELECT COUNT ( * ) + + 38 col0, 53 col0
----
39
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT DISTINCT COUNT( * ) DIV + 78 * - COUNT( DISTINCT + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT COUNT ( * ) / + 78 * - COUNT ( DISTINCT + 90 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT 51 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT 51 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT COALESCE ( + NULLIF ( + COALESCE ( ( ( - CAST( - COUNT( * ) AS SIGNED ) ) ), - - 67 - + 12 - ( NULLIF ( + 29, - 19 ) ) ), - COUNT( * ) * - ( + MAX( + 71 ) ) + + COUNT( * ) + + - 27 * ( ( + COUNT( DISTINCT - 15 ) ) ) * ( - 23 ) / 16 + + 26 * 78 + - 15 ), - 31 - - 12, COUNT( * ) ) * ( 33 * + 88 ) col0
----
2904

skipif mysql # not compatible
query I rowsort label-4671
SELECT COALESCE ( + NULLIF ( + COALESCE ( ( ( - CAST ( - COUNT ( * ) AS INTEGER ) ) ), - - 67 - + 12 - ( NULLIF ( + 29, - 19 ) ) ), - COUNT ( * ) * - ( + MAX ( + 71 ) ) + + COUNT ( * ) + + - 27 * ( ( + COUNT ( DISTINCT - 15 ) ) ) * ( - 23 ) / 16 + + 26 * 78 + - 15 ), - 31 - - 12, COUNT ( * ) ) * ( 33 * + 88 ) col0
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + COUNT( + 8 ) * SUM( ALL - + 97 ) + + 33 col0
----
-64

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( + 8 ) * SUM ( ALL - + 97 ) + + 33 col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT ALL CASE + CASE + 56 WHEN - + COUNT( * ) THEN + 63 END WHEN + 7 + + + CAST( 10 AS SIGNED ) / + 70 * - SUM( + 80 ) THEN + 98 ELSE - COUNT( * ) END * + 46 + + + COUNT( * ) * - 56
----
-102

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL CASE + CASE + 56 WHEN - + COUNT ( * ) THEN + 63 END WHEN + 7 + + + CAST ( 10 AS INTEGER ) / + 70 * - SUM ( + 80 ) THEN + 98 ELSE - COUNT ( * ) END * + 46 + + + COUNT ( * ) * - 56
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT - 47 + + 51 DIV - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 47 + + 51 / - COUNT ( * )
----
-98

query I rowsort
SELECT - NULLIF ( - 0, + - AVG ( - - ( - - 44 ) ) + + 61 + + - AVG ( ALL + 58 ) * + COALESCE ( - 45, - 57 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL + 82 + - - 28 + + 84 + 8 + - 32 + 28 * COALESCE ( - 49, + 94 + - 5, 2 * - + 9 + + 9 - - + 66 * + COUNT( DISTINCT - + 69 ) ) - + - COALESCE ( 49, - 60 ) - + 65 - 18 + - 51 - - 43 * - 84 * + 21 + 20 * 41 * - 40
----
-109939

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + 82 + - - 28 + + 84 + 8 + - 32 + 28 * COALESCE ( - 49, + 94 + - 5, 2 * - + 9 + + 9 - - + 66 * + COUNT ( DISTINCT - + 69 ) ) - + - COALESCE ( 49, - 60 ) - + 65 - 18 + - 51 - - 43 * - 84 * + 21 + 20 * 41 * - 40
----
-109939

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - CASE 60 WHEN 41 + + 71 + 44 / COUNT( * ) THEN NULL ELSE + 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-4677
SELECT - CASE 60 WHEN 41 + + 71 + 44 / COUNT ( * ) THEN NULL ELSE + 86 END
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT DISTINCT + 64 + COUNT( * ) + CAST( NULL AS SIGNED ) + + COUNT( * ) * + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + 64 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - 53 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 35 + - 44
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT - CASE + + 76 WHEN + 64 THEN NULL WHEN - AVG ( + 8 ) THEN + 89 + + 73 * 50 + + MIN( ALL - 51 ) + - ( - CASE - 9 WHEN + 71 + 90 - - 37 THEN 64 WHEN + 98 THEN NULL ELSE NULL END ) DIV + 45 ELSE + + 16 + + 77 END AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4680
SELECT - CASE + + 76 WHEN + 64 THEN NULL WHEN - AVG ( + 8 ) THEN + 89 + + 73 * 50 + + MIN ( ALL - 51 ) + - ( - CASE - 9 WHEN + 71 + 90 - - 37 THEN 64 WHEN + 98 THEN NULL ELSE NULL END ) / + 45 ELSE + + 16 + + 77 END AS col1
----
-93

query I rowsort
SELECT DISTINCT + 73 + + + ( - 64 ) * + - 23 AS col2
----
1545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT - CASE 37 WHEN CAST( + + 86 AS SIGNED ) THEN NULL WHEN - 40 - + CAST( NULL AS SIGNED ) THEN - 64 WHEN 13 THEN NULL END - + 64 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - CASE 37 WHEN CAST ( + + 86 AS INTEGER ) THEN NULL WHEN - 40 - + CAST ( NULL AS INTEGER ) THEN - 64 WHEN 13 THEN NULL END - + 64 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 84, + - 85 + 78 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - COUNT( * ) * + + 94 * - 7 AS col1
----
658

skipif mysql # not compatible
query I rowsort label-4684
SELECT - COUNT ( * ) * + + 94 * - 7 AS col1
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - + COUNT( * ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-4685
SELECT - + COUNT ( * ) * + 47
----
-47

query II rowsort
SELECT ALL - + 21 + + + 60 AS col0, - 95 col0
----
39
-95

query I rowsort
SELECT ALL + 88 + - 22
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT - 22 - 66 AS col0, - COALESCE ( 39, 9, + 75 ) * - MAX( ALL - 37 )
----
-88
-1443

skipif mysql # not compatible
query II rowsort label-4688
SELECT - 22 - 66 AS col0, - COALESCE ( 39, 9, + 75 ) * - MAX ( ALL - 37 )
----
-88
-1443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT ALL + - 92 * + 82 * - + CAST( + + 26 AS SIGNED )
----
196144

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + - 92 * + 82 * - + CAST ( + + 26 AS INTEGER )
----
196144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4690
SELECT - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0, MIN( DISTINCT + 75 ) * + - 14 + 67 AS col1
----
NULL
-983

skipif mysql # not compatible
query II rowsort label-4690
SELECT - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0, MIN ( DISTINCT + 75 ) * + - 14 + 67 AS col1
----
NULL
-983

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT + - NULLIF ( + 87, NULLIF ( + + ( 96 ), + COUNT( * ) - - 90 ) + + 43 ) * - COUNT( * ) col0, ( - 89 ) AS col2
----
87
-89

skipif mysql # not compatible
query II rowsort label-4691
SELECT + - NULLIF ( + 87, NULLIF ( + + ( 96 ), + COUNT ( * ) - - 90 ) + + 43 ) * - COUNT ( * ) col0, ( - 89 ) AS col2
----
87
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-4692
SELECT - 0 * + + 34 + - 86 DIV - 58 AS col2, - 8
----
1
-8

skipif mysql # not compatible
query II rowsort label-4692
SELECT - 0 * + + 34 + - 86 / - 58 AS col2, - 8
----
1
-8

query I rowsort
SELECT + NULLIF ( + 51, - 11 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL + COUNT( * ) * + MAX( - 21 ) - - - NULLIF ( MAX( 24 ), 73 - 45 ) * + - SUM( - CAST( NULL AS SIGNED ) ) / + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + COUNT ( * ) * + MAX ( - 21 ) - - - NULLIF ( MAX ( 24 ), 73 - 45 ) * + - SUM ( - CAST ( NULL AS INTEGER ) ) / + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4695
SELECT ALL + - COUNT( 79 ), NULLIF ( + 43, - 97 ) AS col0, 45 col1
----
-1
43
45

skipif mysql # not compatible
query III rowsort label-4695
SELECT ALL + - COUNT ( 79 ), NULLIF ( + 43, - 97 ) AS col0, 45 col1
----
-1
43
45

query I rowsort
SELECT + 78 * + 34
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL MIN( DISTINCT ( + + 44 ) ) * - + 6
----
-264

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL MIN ( DISTINCT ( + + 44 ) ) * - + 6
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT 13 * + 73 + + + 98 AS col1, COUNT( * ) AS col0
----
1047
1

skipif mysql # not compatible
query II rowsort label-4698
SELECT 13 * + 73 + + + 98 AS col1, COUNT ( * ) AS col0
----
1047
1

query I rowsort
SELECT CASE + 89 WHEN + + 17 * - 52 * + - 38 + + 32 + + 99 * + - 12 * + 65 THEN + 28 ELSE + + 84 END
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT COUNT( * ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT COUNT ( * ) * - 4
----
-4

query I rowsort
SELECT ALL NULLIF ( + 52, 71 ) * + 65
----
3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 39 * + 95 THEN + AVG ( + + 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 39 * + 95 THEN + AVG ( + + 35 ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4703
SELECT ALL 29 * CAST( NULL AS DECIMAL ) * - 20 + + 24 + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL 29 * CAST ( NULL AS REAL ) * - 20 + + 24 + - 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT + 35 - + ( 76 ) + - 30 DIV - ( + 3 ) + + 23 + 52 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 35 - + ( 76 ) + - 30 / - ( + 3 ) + + 23 + 52 AS col1
----
44

query I rowsort
SELECT ALL - 88 * 43 + 2 - + - 13
----
-3769

query I rowsort
SELECT + 47 * - 78 * - 55 - - + 55
----
201685

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL 23 DIV + 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 23 / + 21 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL CASE - 7 WHEN COUNT( * ) * - 57 THEN + 71 END * + + 13 + - AVG ( CAST( - - 67 AS SIGNED ) ) + + + 3 + + COUNT( + 39 ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL CASE - 7 WHEN COUNT ( * ) * - 57 THEN + 71 END * + + 13 + - AVG ( CAST ( - - 67 AS INTEGER ) ) + + + 3 + + COUNT ( + 39 ) + - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4709
SELECT - CAST( NULL AS SIGNED ) col0, 68 + - CAST( - 98 AS SIGNED ) AS col1
----
NULL
166

skipif mysql # not compatible
query II rowsort label-4709
SELECT - CAST ( NULL AS INTEGER ) col0, 68 + - CAST ( - 98 AS INTEGER ) AS col1
----
NULL
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4710
SELECT + ( + CASE - 73 WHEN 56 THEN - CAST( + 58 AS DECIMAL ) ELSE NULL END ) / + - 73 + 67 + + 45 * MIN( DISTINCT + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT + ( + CASE - 73 WHEN 56 THEN - CAST ( + 58 AS REAL ) ELSE NULL END ) / + - 73 + 67 + + 45 * MIN ( DISTINCT + 60 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT ALL 87 DIV - COUNT( ALL - 16 )
----
-87

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 87 / - COUNT ( ALL - 16 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MIN( 58 ) - - 45 + - + 60 * 20 AS col0
----
-1213

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MIN ( 58 ) - - 45 + - + 60 * 20 AS col0
----
-1213

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT DISTINCT 22 * + - ( + - 81 ), + 0 + + ( CASE COUNT( * ) WHEN - 14 / - 70 / - 2 - - 56 THEN NULL WHEN 26 THEN ( - 7 ) END ) + - 40 col0
----
1782
NULL

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT 22 * + - ( + - 81 ), + 0 + + ( CASE COUNT ( * ) WHEN - 14 / - 70 / - 2 - - 56 THEN NULL WHEN 26 THEN ( - 7 ) END ) + - 40 col0
----
1782
NULL

query I rowsort
SELECT ALL 34 + 36 AS col1
----
70

query I rowsort
SELECT + ( + + 87 ) * - 76 col1
----
-6612

query I rowsort
SELECT ALL - 81 * - - 90 col2
----
-7290

query I rowsort
SELECT + 6 + - + COALESCE ( + 80, + 77, - 26 * + 33 + - 54 * + 58 )
----
-74

query I rowsort
SELECT - ( - 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - 31 - SUM( ALL + 60 )
----
-91

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 31 - SUM ( ALL + 60 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + - COUNT( * ) * + + ( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - COUNT ( * ) * + + ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - - NULLIF ( 87, - COUNT( * ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-4721
SELECT - - NULLIF ( 87, - COUNT ( * ) ) col2
----
87

query II rowsort
SELECT ALL + 36, 75 AS col1
----
36
75

query II rowsort
SELECT + ( + 77 ) + 0, 56 AS col1
----
77
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT DISTINCT + + 64 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + + 64 / + 30
----
2

query I rowsort
SELECT ALL + - 14 * 76
----
-1064

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL + - 97 DIV - 59 + + ( + 67 ) - - 14
----
82

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + - 97 / - 59 + + ( + 67 ) - - 14
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4727
SELECT DISTINCT + ( - - CAST( NULL AS DECIMAL ) ) * + 13 + ( + COUNT( * ) ), + 51 + - CASE + COUNT( * ) WHEN + 54 + + 14 THEN NULL WHEN + 13 THEN + COUNT( * ) * 78 DIV + + 15 ELSE + COUNT( * ) END AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4727
SELECT DISTINCT + ( - - CAST ( NULL AS REAL ) ) * + 13 + ( + COUNT ( * ) ), + 51 + - CASE + COUNT ( * ) WHEN + 54 + + 14 THEN NULL WHEN + 13 THEN + COUNT ( * ) * 78 / + + 15 ELSE + COUNT ( * ) END AS col1
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - 93 * + ( + 10 ) + + COUNT( 75 )
----
-929

skipif mysql # not compatible
query I rowsort label-4728
SELECT - 93 * + ( + 10 ) + + COUNT ( 75 )
----
-929

query I rowsort
SELECT DISTINCT - 80 * + 12 * + + 35 - + 70
----
-33670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT 58 + + + 21 + + COUNT( * ) / MAX( + - 43 ) * - 23 * 19 * + 34 + - ( CAST( NULL AS SIGNED ) ) * + - CAST( NULL AS SIGNED ) / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT 58 + + + 21 + + COUNT ( * ) / MAX ( + - 43 ) * - 23 * 19 * + 34 + - ( CAST ( NULL AS INTEGER ) ) * + - CAST ( NULL AS INTEGER ) / - 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT 32 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT 32 / 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL - 81 + + CAST( NULL AS SIGNED ) - - COUNT( * ) + ( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - 81 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + ( - 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT 31 AS col2, - COUNT( * ) AS col1
----
31
-1

skipif mysql # not compatible
query II rowsort label-4733
SELECT 31 AS col2, - COUNT ( * ) AS col1
----
31
-1

query I rowsort
SELECT ALL 30 + 80 AS col2
----
110

query II rowsort
SELECT ALL - 86, 46 col1
----
-86
46

query II rowsort
SELECT ALL - 28, - 33 * + + 91 AS col0
----
-28
-3003

query I rowsort
SELECT ALL 82 * + 1 AS col2
----
82

query I rowsort
SELECT ALL + 18 + - 38
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT + 19 col2, + COUNT( ALL + + 30 ) AS col0
----
19
1

skipif mysql # not compatible
query II rowsort label-4739
SELECT + 19 col2, + COUNT ( ALL + + 30 ) AS col0
----
19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL 46 * - COUNT( * ) * - 5
----
230

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL 46 * - COUNT ( * ) * - 5
----
230

query II rowsort
SELECT 44 AS col1, 36 * 96 * - 9
----
44
-31104

query II rowsort
SELECT - 30 AS col0, + 63
----
-30
63

query I rowsort
SELECT ALL 40 - + 73 + + 58 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL COUNT( * ) - - + 18
----
19

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL COUNT ( * ) - - + 18
----
19

query II rowsort
SELECT ALL 90 AS col2, 6
----
90
6

query II rowsort
SELECT DISTINCT 92, 92
----
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT 23 + - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4747
SELECT 23 + - COUNT ( * ) AS col1
----
22

query I rowsort
SELECT - + ( - - 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4749
SELECT 25 DIV - 25, - NULLIF ( 44, 45 + - 18 * 42 + - 19 + + + SUM( + - CAST( NULL AS SIGNED ) ) * ( - + 18 ) * + 97 + - + COUNT( * ) ) AS col2
----
-1
-44

skipif mysql # not compatible
query II rowsort label-4749
SELECT 25 / - 25, - NULLIF ( 44, 45 + - 18 * 42 + - 19 + + + SUM ( + - CAST ( NULL AS INTEGER ) ) * ( - + 18 ) * + 97 + - + COUNT ( * ) ) AS col2
----
-1
-44

query I rowsort
SELECT - 13 * 50
----
-650

query II rowsort
SELECT - - 84, 88 AS col1
----
84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - COUNT( ALL + + 31 ) - + 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4752
SELECT - COUNT ( ALL + + 31 ) - + 45 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT ALL ( 24 ) DIV + + 30
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL ( 24 ) / + + 30
----
0

query I rowsort
SELECT + 80 * - 95 * - 4
----
30400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL COUNT( * ) * + CAST( CAST( 65 AS SIGNED ) AS SIGNED ) + 30
----
95

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL COUNT ( * ) * + CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) + 30
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT CASE + + 87 WHEN - - AVG ( - 0 ) / - - 95 + + 55 + + 3 THEN NULL WHEN - - 40 THEN NULLIF ( 76, 28 ) END * CASE - - 46 WHEN - 97 THEN - COUNT( * ) ELSE + MAX( DISTINCT 69 ) * AVG ( DISTINCT - 61 ) + 69 * + - 22 END * - CAST( + - 33 AS SIGNED ) - - 40 + COUNT( * ) * COUNT( * ) + - ( 5 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT CASE + + 87 WHEN - - AVG ( - 0 ) / - - 95 + + 55 + + 3 THEN NULL WHEN - - 40 THEN NULLIF ( 76, 28 ) END * CASE - - 46 WHEN - 97 THEN - COUNT ( * ) ELSE + MAX ( DISTINCT 69 ) * AVG ( DISTINCT - 61 ) + 69 * + - 22 END * - CAST ( + - 33 AS INTEGER ) - - 40 + COUNT ( * ) * COUNT ( * ) + - ( 5 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL COALESCE ( + 69, CAST( 80 AS SIGNED ) + 66 * + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COALESCE ( + 69, CAST ( 80 AS INTEGER ) + 66 * + COUNT ( * ) )
----
69

query I rowsort
SELECT DISTINCT + 86 * + 61
----
5246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL CAST( - 79 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL CAST ( - 79 AS INTEGER ) AS col1
----
-79

query II rowsort
SELECT - 65 AS col1, - 41
----
-65
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4761
SELECT + CAST( NULL AS DECIMAL ) - - - NULLIF ( + - 74, - + CAST( NULL AS SIGNED ) * + - COUNT( * ) - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + CAST ( NULL AS REAL ) - - - NULLIF ( + - 74, - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) - 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT 33 - - + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4762
SELECT 33 - - + COUNT ( * ) AS col2
----
34

query I rowsort
SELECT - + 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - - COUNT( ALL + + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4764
SELECT - - COUNT ( ALL + + 85 )
----
1

query II rowsort
SELECT + + 10 col0, - 29 * + COALESCE ( - 46, + 7 ) + 76 + + 98 - + - 26
----
10
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - COUNT( ALL - 10 ) * - ( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4766
SELECT - COUNT ( ALL - 10 ) * - ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT COUNT( * ) * + COUNT( * ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( * ) * + COUNT ( * ) * - 49
----
-49

query I rowsort
SELECT ALL - 49 + ( + - 48 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT ALL CAST( NULL AS SIGNED ) + - ( - + 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - + 3 ) AS col2
----
NULL

query I rowsort
SELECT 48 * 21
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4771
SELECT DISTINCT - 77 * 75 AS col2, CAST( + 72 AS SIGNED ) * - 19 AS col0, 85 + - + 94 AS col0
----
-5775
-1368
-9

skipif mysql # not compatible
query III rowsort label-4771
SELECT DISTINCT - 77 * 75 AS col2, CAST ( + 72 AS INTEGER ) * - 19 AS col0, 85 + - + 94 AS col0
----
-5775
-1368
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + 23 + + 9 + + 36 * COUNT( + - 71 ) + + 14
----
82

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + 23 + + 9 + + 36 * COUNT ( + - 71 ) + + 14
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT ALL COALESCE ( + 41, - 44 ) + + - 85 DIV + 80
----
40

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL COALESCE ( + 41, - 44 ) + + - 85 / + 80
----
40

query I rowsort
SELECT 37 + 4 - 3 + + 77
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT + MIN( DISTINCT + ( + ( CAST( - - 4 AS SIGNED ) ) ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4775
SELECT + MIN ( DISTINCT + ( + ( CAST ( - - 4 AS INTEGER ) ) ) ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4776
SELECT - ( + 31 ) * + 74 * - COUNT( * ) + ( + 12 ) - + - ( + - NULLIF ( + CAST( - 8 AS SIGNED ), - + COUNT( ALL + + 29 ) ) ) + 83 + - 93 + 4 * - CASE - 13 WHEN + 55 THEN - 21 + - - 92 WHEN - - 60 * + + 17 + 72 THEN NULL ELSE NULL END * 85 * - 58 col2, 88 + - 2 * - 42
----
NULL
172

skipif mysql # not compatible
query II rowsort label-4776
SELECT - ( + 31 ) * + 74 * - COUNT ( * ) + ( + 12 ) - + - ( + - NULLIF ( + CAST ( - 8 AS INTEGER ), - + COUNT ( ALL + + 29 ) ) ) + 83 + - 93 + 4 * - CASE - 13 WHEN + 55 THEN - 21 + - - 92 WHEN - - 60 * + + 17 + 72 THEN NULL ELSE NULL END * 85 * - 58 col2, 88 + - 2 * - 42
----
NULL
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT COUNT( * ) * + 1 + 80
----
81

skipif mysql # not compatible
query I rowsort label-4777
SELECT COUNT ( * ) * + 1 + 80
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT - COUNT( * ) DIV 13 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - COUNT ( * ) / 13 * - 48
----
0

query I rowsort
SELECT 82 - - + 16
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT 1 + 34 - CAST( 90 AS SIGNED ) * + 87 * + 58
----
-454105

skipif mysql # not compatible
query I rowsort label-4780
SELECT 1 + 34 - CAST ( 90 AS INTEGER ) * + 87 * + 58
----
-454105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT - COALESCE ( 72, CASE CASE - - COUNT( * ) WHEN + 59 THEN - 89 - - 90 WHEN - 83 THEN NULL ELSE - 43 END WHEN - COUNT( * ) THEN NULL WHEN - 70 THEN 38 * - 30 DIV + 93 ELSE - COUNT( * ) END + - 84 ) + 11
----
-61

skipif mysql # not compatible
query I rowsort label-4781
SELECT - COALESCE ( 72, CASE CASE - - COUNT ( * ) WHEN + 59 THEN - 89 - - 90 WHEN - 83 THEN NULL ELSE - 43 END WHEN - COUNT ( * ) THEN NULL WHEN - 70 THEN 38 * - 30 / + 93 ELSE - COUNT ( * ) END + - 84 ) + 11
----
-61

query II rowsort
SELECT 40 + 93 + + ( 77 ) + - 2 AS col0, + 9 AS col0
----
208
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + 11 * MAX( DISTINCT 78 )
----
858

skipif mysql # not compatible
query I rowsort label-4783
SELECT + 11 * MAX ( DISTINCT 78 )
----
858

query I rowsort
SELECT ALL + 98 * - - 35 + - 96 AS col1
----
3334

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT + + 47 * + - 5 + + 12 - + - COUNT( * ) + + - 10 AS col2, 86 + 95 AS col1
----
-232
181

skipif mysql # not compatible
query II rowsort label-4785
SELECT + + 47 * + - 5 + + 12 - + - COUNT ( * ) + + - 10 AS col2, 86 + 95 AS col1
----
-232
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT COUNT( * ) - 61 + - + 30 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4786
SELECT COUNT ( * ) - 61 + - + 30 AS col2
----
-90

query I rowsort
SELECT + 68 + - 92 + 81 * + - 54 AS col1
----
-4398

query I rowsort
SELECT ALL - 49 * + 78
----
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + 77 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 77 / 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - 38 * + COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - 38 * + COUNT ( * ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), + 7 * - + COUNT( * ) * + ( - 93 ) ) AS col0
----
651

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 7 * - + COUNT ( * ) * + ( - 93 ) ) AS col0
----
651

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4792
SELECT CAST( NULL AS DECIMAL ) + - CAST( + 26 AS SIGNED ) AS col2, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-4792
SELECT CAST ( NULL AS REAL ) + - CAST ( + 26 AS INTEGER ) AS col2, + 67
----
NULL
67

query I rowsort
SELECT ALL - 99 + + - ( - ( + 23 ) ) - + + 71 * + - 85 col1
----
5959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT - ( + - 41 ) DIV + COUNT( * ) + + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4794
SELECT - ( + - 41 ) / + COUNT ( * ) + + - COUNT ( * )
----
40

query I rowsort
SELECT - 18 + 49 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT COUNT( * ) + - + CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ALL + 22 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + 22 / + 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + + NULLIF ( 87, + COUNT( * ) + + - ( - 29 ) ) + COUNT( * ) col2
----
88

skipif mysql # not compatible
query I rowsort label-4798
SELECT + + NULLIF ( 87, + COUNT ( * ) + + - ( - 29 ) ) + COUNT ( * ) col2
----
88

query I rowsort
SELECT DISTINCT - 5 + - 36 - + 82
----
-123

query I rowsort
SELECT ALL ( - 9 ) + 32
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT DISTINCT CAST( 29 AS SIGNED ) + + - 45
----
-16

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT CAST ( 29 AS INTEGER ) + + - 45
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT CASE COALESCE ( - 75, - 57 ) WHEN + 38 + - 75 + + - 57 * - CAST( + 23 AS SIGNED ) * 94 * - - SUM( - - 47 ) THEN + ( + + 54 ) + + 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT CASE COALESCE ( - 75, - 57 ) WHEN + 38 + - 75 + + - 57 * - CAST ( + 23 AS INTEGER ) * 94 * - - SUM ( - - 47 ) THEN + ( + + 54 ) + + 17 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL 7 * - + 69 * - CAST( + 43 AS SIGNED )
----
20769

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL 7 * - + 69 * - CAST ( + 43 AS INTEGER )
----
20769

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT ALL - 90 * + - CASE - 99 WHEN + - 3 + - 45 THEN NULL WHEN - 54 THEN + + COALESCE ( 50, - 49 * - MIN( DISTINCT 99 ), 93 ) + + 77 WHEN 30 + - COUNT( * ) THEN NULL END + COUNT( * ) AS col0, - 46
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL - 90 * + - CASE - 99 WHEN + - 3 + - 45 THEN NULL WHEN - 54 THEN + + COALESCE ( 50, - 49 * - MIN ( DISTINCT 99 ), 93 ) + + 77 WHEN 30 + - COUNT ( * ) THEN NULL END + COUNT ( * ) AS col0, - 46
----
NULL
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + MAX( ALL - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4805
SELECT + MAX ( ALL - 54 ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4806
SELECT + CAST( NULL AS SIGNED ) * 41 * + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 76 + - 50 AS col2, 59 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-4806
SELECT + CAST ( NULL AS INTEGER ) * 41 * + COUNT ( * ) * - CAST ( NULL AS REAL ) * - 76 + - 50 AS col2, 59 AS col1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT + MAX( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4807
SELECT + MAX ( - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT CASE - 46 WHEN 69 * - 63 + + + COUNT( * ) THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT CASE - 46 WHEN 69 * - 63 + + + COUNT ( * ) THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4809
SELECT NULLIF ( + 37, + + 78 ) DIV - + 44 + + - 0 * ( - 55 ) + ( + + COALESCE ( + 31, - - 66, - - CAST( NULL AS SIGNED ) ) ) + - + 65
----
-34

skipif mysql # not compatible
query I rowsort label-4809
SELECT NULLIF ( + 37, + + 78 ) / - + 44 + + - 0 * ( - 55 ) + ( + + COALESCE ( + 31, - - 66, - - CAST ( NULL AS INTEGER ) ) ) + - + 65
----
-34

query I rowsort
SELECT + 77 * + 64
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT COALESCE ( + 53, - + COUNT( * ), + - 55 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4811
SELECT COALESCE ( + 53, - + COUNT ( * ), + - 55 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - ( - 4 ) + + - 18 + + - 4 * 67 * - 98 * COUNT( * ) AS col0
----
26250

skipif mysql # not compatible
query I rowsort label-4812
SELECT - ( - 4 ) + + - 18 + + - 4 * 67 * - 98 * COUNT ( * ) AS col0
----
26250

query I rowsort
SELECT ALL 97 * - 13 - + 39 AS col2
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + COALESCE ( + COUNT( * ), 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT + COALESCE ( + COUNT ( * ), 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL 3 * 37 - - 46 * - - COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL 3 * 37 - - 46 * - - COUNT ( * ) AS col0
----
157

query I rowsort
SELECT + 46 * 12 AS col0
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - 81 * COUNT( * ) * + 58 AS col0
----
-4698

skipif mysql # not compatible
query I rowsort label-4817
SELECT - 81 * COUNT ( * ) * + 58 AS col0
----
-4698

query I rowsort
SELECT - 99 + 38 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT ALL 5 DIV - + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL 5 / - + 68 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT + CASE - ( + ( 97 ) ) WHEN - 3 * + - 9 / + + 40 + + CASE + 71 WHEN - 85 * + - 14 + + 5 + + 58 THEN CAST( NULL AS SIGNED ) WHEN + + 76 THEN - COUNT( * ) END THEN NULL WHEN + COALESCE ( - CAST( NULL AS SIGNED ), - 66 + - - 31 ) * 87 THEN 75 ELSE 26 END
----
26

skipif mysql # not compatible
query I rowsort label-4820
SELECT + CASE - ( + ( 97 ) ) WHEN - 3 * + - 9 / + + 40 + + CASE + 71 WHEN - 85 * + - 14 + + 5 + + 58 THEN CAST ( NULL AS INTEGER ) WHEN + + 76 THEN - COUNT ( * ) END THEN NULL WHEN + COALESCE ( - CAST ( NULL AS INTEGER ), - 66 + - - 31 ) * 87 THEN 75 ELSE 26 END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + COUNT( * ) * - 22 col0
----
-22

skipif mysql # not compatible
query I rowsort label-4821
SELECT + COUNT ( * ) * - 22 col0
----
-22

query I rowsort
SELECT - 51 * - 76 * - 34 * + 74
----
-9752016

query II rowsort
SELECT - 9 AS col2, 32
----
-9
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT 18 * + 51 + + - 56 * MIN( - 22 ) AS col2
----
2150

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT 18 * + 51 + + - 56 * MIN ( - 22 ) AS col2
----
2150

onlyif mysql # aggregate syntax: 
query II rowsort label-4825
SELECT ALL 82 col2, - ( + CASE + COALESCE ( 88, + COUNT( * ) ) WHEN - + COUNT( * ) * 55 - - 84 + 69 + + 80 * 73 * - + 61 - - 65 THEN NULL WHEN - + 59 + + 74 THEN 24 * 2 - - 24 END ) * + CASE WHEN NOT NULL <= NULL THEN 32 END
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4825
SELECT ALL 82 col2, - ( + CASE + COALESCE ( 88, + COUNT ( * ) ) WHEN - + COUNT ( * ) * 55 - - 84 + 69 + + 80 * 73 * - + 61 - - 65 THEN NULL WHEN - + 59 + + 74 THEN 24 * 2 - - 24 END ) * + CASE WHEN NOT NULL <= NULL THEN 32 END
----
82
NULL

query II rowsort
SELECT - 93, + ( + 64 ) AS col2
----
-93
64

query II rowsort
SELECT DISTINCT + 61 + - 58 + + 70, 82 col2
----
73
82

query II rowsort
SELECT ALL 66 AS col2, 47
----
66
47

query I rowsort
SELECT ALL + + 7 + + - 38 * - - 92
----
-3489

query I rowsort
SELECT DISTINCT - + 45 + + 71 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( * ) * - 13
----
13

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( * ) * - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - + MIN( + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4832
SELECT - + MIN ( + 78 ) AS col0
----
-78

query I rowsort
SELECT CASE - 29 WHEN + + 20 THEN ( + 9 ) * - - ( 80 ) * - 36 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 78 + + 37
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + CASE - 81 WHEN - COALESCE ( + + 39, + - ( + ( + 2 ) ), - COUNT( * ) ) THEN + - COUNT( + + 56 ) END + - 75 + - 89 + COUNT( * ) * + - 67 * - + AVG ( + 41 ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + CASE - 81 WHEN - COALESCE ( + + 39, + - ( + ( + 2 ) ), - COUNT ( * ) ) THEN + - COUNT ( + + 56 ) END + - 75 + - 89 + COUNT ( * ) * + - 67 * - + AVG ( + 41 ) * - + COUNT ( * )
----
NULL

query II rowsort
SELECT - + 47, 16 * + 61 AS col0
----
-47
976

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - + MAX( ALL + 55 ) + + NULLIF ( - 49, NULLIF ( 77, + + 43 ) )
----
-104

skipif mysql # not compatible
query I rowsort label-4837
SELECT - + MAX ( ALL + 55 ) + + NULLIF ( - 49, NULLIF ( 77, + + 43 ) )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL - - 3 * - 11 * - MIN( - 31 ) col1
----
-1023

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - - 3 * - 11 * - MIN ( - 31 ) col1
----
-1023

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT ALL COUNT( * ) + + COUNT( ALL 73 ) AS col1, 61 col1
----
2
61

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL COUNT ( * ) + + COUNT ( ALL 73 ) AS col1, 61 col1
----
2
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4840
SELECT - 51, COUNT( * ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-4840
SELECT - 51, COUNT ( * ) AS col0
----
-51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT - + 36 + + - 6 - 52 * + COUNT( * ) + - 24 + - + 50 + + 36 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - + 36 + + - 6 - 52 * + COUNT ( * ) + - 24 + - + 50 + + 36 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-4842
SELECT ALL 23 AS col0, - CASE + + COUNT( * ) WHEN 76 THEN 35 WHEN + + 24 THEN NULL WHEN + 19 THEN NULL ELSE - 27 END * - COUNT( * ) AS col0
----
23
-27

skipif mysql # not compatible
query II rowsort label-4842
SELECT ALL 23 AS col0, - CASE + + COUNT ( * ) WHEN 76 THEN 35 WHEN + + 24 THEN NULL WHEN + 19 THEN NULL ELSE - 27 END * - COUNT ( * ) AS col0
----
23
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT DISTINCT 66 + 24 + - 47 + 57 DIV COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT 66 + 24 + - 47 + 57 / COUNT ( * ) AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL CAST( + + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL CAST ( + + 20 AS INTEGER )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT - 59 * COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT - 59 * COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - MIN( ALL + ( 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4846
SELECT - MIN ( ALL + ( 54 ) )
----
-54

query I rowsort
SELECT ALL 23 * 78 AS col1
----
1794

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT + COUNT( * ) * - SUM( ALL + + ( + 0 ) ), + 9 AS col2
----
0
9

skipif mysql # not compatible
query II rowsort label-4848
SELECT + COUNT ( * ) * - SUM ( ALL + + ( + 0 ) ), + 9 AS col2
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + COALESCE ( + 57, 15 + + - COUNT( DISTINCT 29 ) ) col2
----
57

skipif mysql # not compatible
query I rowsort label-4849
SELECT + COALESCE ( + 57, 15 + + - COUNT ( DISTINCT 29 ) ) col2
----
57

query I rowsort
SELECT ALL 17 * - 89
----
-1513

query I rowsort
SELECT + ( - 21 ) AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT + ( - NULLIF ( + 60, + + 86 ) ) DIV - NULLIF ( + 10, - 48 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4852
SELECT + ( - NULLIF ( + 60, + + 86 ) ) / - NULLIF ( + 10, - 48 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4853
SELECT + ( + 74 ), 18 + - CAST( NULL AS SIGNED ) * - 29 + - 70 - 37 * - + COUNT( * ) * + - 43 + 60 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4853
SELECT + ( + 74 ), 18 + - CAST ( NULL AS INTEGER ) * - 29 + - 70 - 37 * - + COUNT ( * ) * + - 43 + 60 AS col1
----
74
NULL

query I rowsort
SELECT - 70 * - 97 AS col0
----
6790

query I rowsort
SELECT + 93 * + 67
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ( + - ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4856
SELECT ( + - ( + COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT + 69 - - ( 56 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - 28 * + + MAX( DISTINCT + + 56 ) AS col0
----
-1568

skipif mysql # not compatible
query I rowsort label-4858
SELECT - 28 * + + MAX ( DISTINCT + + 56 ) AS col0
----
-1568

query I rowsort
SELECT DISTINCT 2 * - 86 * - 87 AS col2
----
14964

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL 51 * - 53 + - + 45 + + - COUNT( ALL + - ( + 81 ) ) - + 0 - + - CASE + 55 WHEN 3 * - COUNT( * ) * 96 * - COALESCE ( + COUNT( ALL 50 ), 42 * + + 3 - - - 46 * - 32 ) THEN - COUNT( * ) + + - CASE - 42 WHEN + - 23 + + 46 + - 32 THEN + - 57 ELSE NULL END END * + - 20 / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 51 * - 53 + - + 45 + + - COUNT ( ALL + - ( + 81 ) ) - + 0 - + - CASE + 55 WHEN 3 * - COUNT ( * ) * 96 * - COALESCE ( + COUNT ( ALL 50 ), 42 * + + 3 - - - 46 * - 32 ) THEN - COUNT ( * ) + + - CASE - 42 WHEN + - 23 + + 46 + - 32 THEN + - 57 ELSE NULL END END * + - 20 / 99
----
NULL

query I rowsort
SELECT + 50 * 38
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT + CASE + 36 WHEN - CASE - + ( - COALESCE ( 41, + 30 * - + 31 + - - 57 - - SUM( DISTINCT - 98 ) * + 19 ) ) WHEN - 86 THEN NULL WHEN - + 26 THEN NULL WHEN + + 71 THEN + + 28 END THEN - + 10 * CASE - 9 WHEN + CASE + 64 WHEN - - 0 / + + ( - 30 ) * - 62 + - + COALESCE ( - - 30, + - ( - + 97 ), - - 38 ) + - 22 THEN NULL WHEN - 90 + COUNT( * ) * - - ( 25 ) THEN 20 * - 67 WHEN 4 THEN NULL END / CAST( NULL AS SIGNED ) THEN NULL ELSE + 76 END + + MAX( 73 + - 59 ) END + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT + CASE + 36 WHEN - CASE - + ( - COALESCE ( 41, + 30 * - + 31 + - - 57 - - SUM ( DISTINCT - 98 ) * + 19 ) ) WHEN - 86 THEN NULL WHEN - + 26 THEN NULL WHEN + + 71 THEN + + 28 END THEN - + 10 * CASE - 9 WHEN + CASE + 64 WHEN - - 0 / + + ( - 30 ) * - 62 + - + COALESCE ( - - 30, + - ( - + 97 ), - - 38 ) + - 22 THEN NULL WHEN - 90 + COUNT ( * ) * - - ( 25 ) THEN 20 * - 67 WHEN 4 THEN NULL END / CAST ( NULL AS INTEGER ) THEN NULL ELSE + 76 END + + MAX ( 73 + - 59 ) END + + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4864
SELECT + CAST( NULL AS DECIMAL ) / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT + CAST ( NULL AS REAL ) / - 46
----
NULL

query I rowsort
SELECT + - 66 + + + 47 AS col0
----
-19

query I rowsort
SELECT ALL - - ( - 8 ) + - + 38 col1
----
-46

query I rowsort
SELECT DISTINCT - COALESCE ( - + 21, + 66 + - + 31, + 68 ) AS col2
----
21

query I rowsort
SELECT ALL 36 + + 34 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL + 56 - - 23 DIV 98 col2
----
56

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + 56 - - 23 / 98 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL COUNT( ALL - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL COUNT ( ALL - 40 ) AS col0
----
1

query I rowsort
SELECT CASE - 23 WHEN ( 4 ) * + 1 - - 41 THEN 50 * - 75 + + - ( - - 63 ) WHEN + 13 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4872
SELECT 37 col1, - CAST( NULL AS SIGNED ) - - - 27 + + 49
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT 37 col1, - CAST ( NULL AS INTEGER ) - - - 27 + + 49
----
37
NULL

query I rowsort
SELECT 50 * - 21
----
-1050

query I rowsort
SELECT 86 * 29
----
2494

query I rowsort
SELECT 57 + - 2 + + - 52 AS col2
----
3

query I rowsort
SELECT DISTINCT + 46 * - 23
----
-1058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT + 74 * CAST( NULL AS SIGNED ) * 87 / - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + 74 * CAST ( NULL AS INTEGER ) * 87 / - 95
----
NULL

query I rowsort
SELECT 76 * 33 * 95 AS col2
----
238260

query I rowsort
SELECT 82 + + 33
----
115

query I rowsort
SELECT DISTINCT + 56 * - - 25 AS col1
----
1400

query II rowsort
SELECT ALL - 21 AS col0, + ( + 80 ) AS col2
----
-21
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4882
SELECT 32, COUNT( + 4 ) / CAST( NULL AS DECIMAL ) col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4882
SELECT 32, COUNT ( + 4 ) / CAST ( NULL AS REAL ) col2
----
32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4883
SELECT 93 DIV MIN( + 19 ) * 38 + 60 + - 5 + + NULLIF ( - COALESCE ( NULLIF ( - 50, 40 * + 96 + 22 ), + 33 * + 90 + - ( - ( - - CASE 39 WHEN - + COUNT( COALESCE ( + 47, 4 ) ) - + - 31 THEN - 53 * - 22 ELSE NULL END ) ), + ( + COUNT( CAST( + 47 AS SIGNED ) ) ) + - 61 ), - CAST( NULL AS SIGNED ) - - 45 * + 41 ) * - - 57 AS col1
----
3057

skipif mysql # not compatible
query I rowsort label-4883
SELECT 93 / MIN ( + 19 ) * 38 + 60 + - 5 + + NULLIF ( - COALESCE ( NULLIF ( - 50, 40 * + 96 + 22 ), + 33 * + 90 + - ( - ( - - CASE 39 WHEN - + COUNT ( COALESCE ( + 47, 4 ) ) - + - 31 THEN - 53 * - 22 ELSE NULL END ) ), + ( + COUNT ( CAST ( + 47 AS INTEGER ) ) ) + - 61 ), - CAST ( NULL AS INTEGER ) - - 45 * + 41 ) * - - 57 AS col1
----
3057

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT MIN( ALL - + 18 ) * - + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4884
SELECT MIN ( ALL - + 18 ) * - + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ( COUNT( * ) ) + + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4885
SELECT ( COUNT ( * ) ) + + 60 AS col0
----
61

query I rowsort
SELECT 1 * 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + 83
----
85

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + 83
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4888
SELECT DISTINCT - COUNT( * ) + + - 81 DIV + 80 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - COUNT ( * ) + + - 81 / + 80 AS col2
----
-2

query I rowsort
SELECT ALL + + 99 * 90 col0
----
8910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT DISTINCT 36 * + COUNT( * ) + + CAST( - 68 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT 36 * + COUNT ( * ) + + CAST ( - 68 AS INTEGER ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT + 15 * + 37 - 80 AS col1, ( + 5 ) * COUNT( * ) AS col0
----
475
5

skipif mysql # not compatible
query II rowsort label-4891
SELECT + 15 * + 37 - 80 AS col1, ( + 5 ) * COUNT ( * ) AS col0
----
475
5

query I rowsort
SELECT 84 * - 22
----
-1848

query II rowsort
SELECT + 79 AS col1, 63 * - - ( ( + 45 ) ) AS col1
----
79
2835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4894
SELECT DISTINCT + NULLIF ( - + CAST( - + 67 AS SIGNED ), MAX( - 58 ) * 83 + - - COUNT( * ) ) / + CASE COUNT( * ) WHEN - 89 * + MIN( 39 ) + + 95 THEN - 3 / - 3 * 69 + + - 4 WHEN + COUNT( * ) / - 66 * - - ( - NULLIF ( CAST( NULL AS DECIMAL ), + 68 ) ) + - - 71 THEN 4 / + + ( COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + NULLIF ( - + CAST ( - + 67 AS INTEGER ), MAX ( - 58 ) * 83 + - - COUNT ( * ) ) / + CASE COUNT ( * ) WHEN - 89 * + MIN ( 39 ) + + 95 THEN - 3 / - 3 * 69 + + - 4 WHEN + COUNT ( * ) / - 66 * - - ( - NULLIF ( CAST ( NULL AS REAL ), + 68 ) ) + - - 71 THEN 4 / + + ( COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 85 - + + 38 AS col0
----
-123

query I rowsort
SELECT + NULLIF ( + - 51, + 41 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT - - 98 - - 87
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT - CAST( + 91 AS SIGNED ) * - - CASE - COUNT( * ) WHEN - 2 THEN 95 / + + ( + 10 ) + + - 62 + + 22 END * - 93 + - + 12 - - - 30 + - ( - ( - 57 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - CAST ( + 91 AS INTEGER ) * - - CASE - COUNT ( * ) WHEN - 2 THEN 95 / + + ( + 10 ) + + - 62 + + 22 END * - 93 + - + 12 - - - 30 + - ( - ( - 57 ) ) col2
----
NULL

query I rowsort
SELECT ALL 66 * - 52 AS col1
----
-3432

query I rowsort
SELECT ALL + 32 * 36
----
1152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4901
SELECT 92 + ( + - 1 ) * - - 71 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT 92 + ( + - 1 ) * - - 71 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL 94 * - COALESCE ( 14, - - 69 * NULLIF ( COUNT( * ), + 94 * 36 ) ) * - + 15 + 49 AS col1
----
19789

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 94 * - COALESCE ( 14, - - 69 * NULLIF ( COUNT ( * ), + 94 * 36 ) ) * - + 15 + 49 AS col1
----
19789

query II rowsort
SELECT DISTINCT 53 * - 77 col0, 97
----
-4081
97

query II rowsort
SELECT 9 col0, 90
----
9
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4905
SELECT ALL 58, - AVG ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL 58, - AVG ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2
----
58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4906
SELECT 95 - - 4, - COUNT( * ) * SUM( - - 49 ) AS col1
----
99
-49

skipif mysql # not compatible
query II rowsort label-4906
SELECT 95 - - 4, - COUNT ( * ) * SUM ( - - 49 ) AS col1
----
99
-49

query I rowsort
SELECT 72 - + + 14 * - 16
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT 11 * + MAX( DISTINCT + 64 )
----
704

skipif mysql # not compatible
query I rowsort label-4908
SELECT 11 * + MAX ( DISTINCT + 64 )
----
704

query I rowsort
SELECT 82 * + 63 AS col1
----
5166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT 85 + - ( COALESCE ( - 77, 89 + + 99, + CAST( NULL AS SIGNED ) ) ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-4910
SELECT 85 + - ( COALESCE ( - 77, 89 + + 99, + CAST ( NULL AS INTEGER ) ) ) AS col2
----
162

query I rowsort
SELECT NULLIF ( + - 34, - 91 ) AS col0
----
-34

query II rowsort
SELECT + 27, + 39 AS col1
----
27
39

query I rowsort
SELECT 1 * ( + - 89 ) col2
----
-89

query I rowsort
SELECT 7 - + - 93 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT + 25 * 93 * - COUNT( * )
----
-2325

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + 25 * 93 * - COUNT ( * )
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL - COUNT( * ) * 45 + + 18
----
-27

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( * ) * 45 + + 18
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT + COALESCE ( - 64, + 87 ) * SUM( 85 ) + + - CASE 92 WHEN - 99 THEN COALESCE ( + + 3, + 69, + + 7 + 10 + 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + COALESCE ( - 64, + 87 ) * SUM ( 85 ) + + - CASE 92 WHEN - 99 THEN COALESCE ( + + 3, + 69, + + 7 + 10 + 37 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT DISTINCT - 16 * - CASE + - 50 WHEN + SUM( + + CAST( NULL AS SIGNED ) ) * - 41 THEN - 31 WHEN + - COUNT( * ) THEN NULL END + SUM( 54 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - 16 * - CASE + - 50 WHEN + SUM ( + + CAST ( NULL AS INTEGER ) ) * - 41 THEN - 31 WHEN + - COUNT ( * ) THEN NULL END + SUM ( 54 ) col2
----
NULL

query I rowsort
SELECT - 81 * + - 91 AS col2
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT NULLIF ( 2, - - ( - 32 ) * + + 34 * + COUNT( - - 50 ) + 35 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4920
SELECT NULLIF ( 2, - - ( - 32 ) * + + 34 * + COUNT ( - - 50 ) + 35 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ( + 57 ) * - 52 * - COUNT( * ) * - SUM( + + 78 ) + 49 AS col0, ( 64 ) AS col0
----
-231143
64

skipif mysql # not compatible
query II rowsort label-4921
SELECT ( + 57 ) * - 52 * - COUNT ( * ) * - SUM ( + + 78 ) + 49 AS col0, ( 64 ) AS col0
----
-231143
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4922
SELECT + 62, - CAST( - 95 AS SIGNED ) AS col1
----
62
95

skipif mysql # not compatible
query II rowsort label-4922
SELECT + 62, - CAST ( - 95 AS INTEGER ) AS col1
----
62
95

query I rowsort
SELECT - 88 * + 54 + 25 * - 3
----
-4827

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + + COUNT( * ) - - 13 * + 67 + - + 90 AS col1
----
782

skipif mysql # not compatible
query I rowsort label-4924
SELECT + + COUNT ( * ) - - 13 * + 67 + - + 90 AS col1
----
782

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT - - 75 + 37 col1, + COUNT( * ) col0
----
112
1

skipif mysql # not compatible
query II rowsort label-4925
SELECT - - 75 + 37 col1, + COUNT ( * ) col0
----
112
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT ALL - + COUNT( * ) * - - 76 - + 69 * + + 91 * + CASE WHEN NULL > - COUNT( * ) THEN - 47 + 90 END AS col1, 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4926
SELECT ALL - + COUNT ( * ) * - - 76 - + 69 * + + 91 * + CASE WHEN NULL > - COUNT ( * ) THEN - 47 + 90 END AS col1, 52 AS col0
----
NULL
52

query I rowsort
SELECT - + 0 + + 82 AS col1
----
82

query I rowsort
SELECT - - 83 * - 1 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + COUNT( * ) * - COUNT( * ) - + + 66 + 13 * - 9 AS col2
----
-184

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + COUNT ( * ) * - COUNT ( * ) - + + 66 + 13 * - 9 AS col2
----
-184

query I rowsort
SELECT ALL ( - 89 ) * - + 27
----
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + CASE - 42 WHEN + + MIN( 80 ) * + - 72 THEN NULL WHEN - COUNT( * ) THEN + 1 * - 12 ELSE CASE - - 80 WHEN - - COUNT( * ) THEN NULL WHEN 94 THEN + + NULLIF ( 23, 85 ) / + - 87 END * - COALESCE ( - - COUNT( * ), + - ( - 75 ), - COUNT( * ) ) END + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT + CASE - 42 WHEN + + MIN ( 80 ) * + - 72 THEN NULL WHEN - COUNT ( * ) THEN + 1 * - 12 ELSE CASE - - 80 WHEN - - COUNT ( * ) THEN NULL WHEN 94 THEN + + NULLIF ( 23, 85 ) / + - 87 END * - COALESCE ( - - COUNT ( * ), + - ( - 75 ), - COUNT ( * ) ) END + 4 AS col2
----
NULL

query I rowsort
SELECT ALL 54 * - - 29 + 1 AS col0
----
1567

query I rowsort
SELECT + - 42 * - 29 AS col2
----
1218

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT ALL 64 AS col0, COUNT( * ) * + CASE WHEN ( NULL ) NOT BETWEEN NULL AND - 68 THEN + 9 END * - 94
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL 64 AS col0, COUNT ( * ) * + CASE WHEN ( NULL ) NOT BETWEEN NULL AND - 68 THEN + 9 END * - 94
----
64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL + 73 * - SUM( ALL - 67 ) AS col0, - 10 * - - COUNT( * )
----
4891
-10

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL + 73 * - SUM ( ALL - 67 ) AS col0, - 10 * - - COUNT ( * )
----
4891
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4936
SELECT + 0 * - 96 AS col1, + CAST( - + NULLIF ( - 14, 33 ) AS SIGNED ) AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-4936
SELECT + 0 * - 96 AS col1, + CAST ( - + NULLIF ( - 14, 33 ) AS INTEGER ) AS col1
----
0
14

query I rowsort
SELECT DISTINCT 6 + - + 97 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + 64 + + 32 * - + 90 + - NULLIF ( 47, + 57 ) + - - 21 - + + 3 * 92 * + COUNT( * ) + - ( - + COUNT( + 86 ) ) * 94
----
-3024

skipif mysql # not compatible
query I rowsort label-4938
SELECT + 64 + + 32 * - + 90 + - NULLIF ( 47, + 57 ) + - - 21 - + + 3 * 92 * + COUNT ( * ) + - ( - + COUNT ( + 86 ) ) * 94
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL MIN( - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL MIN ( - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL 5 + + 93
----
98

query I rowsort
SELECT - ( + - 56 ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL - 66 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - 66 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL + ( - ( - 80 ) ) + - - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + ( - ( - 80 ) ) + - - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4944
SELECT - 10 + + + COUNT( * ) AS col2, 4 * + 65 AS col0
----
-9
260

skipif mysql # not compatible
query II rowsort label-4944
SELECT - 10 + + + COUNT ( * ) AS col2, 4 * + 65 AS col0
----
-9
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT ALL + COUNT( * ) DIV 1 + + 1 * 12
----
13

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + COUNT ( * ) / 1 + + 1 * 12
----
13

query II rowsort
SELECT ALL - + 69 * - 87 AS col0, 89 + + 17 AS col2
----
6003
106

query I rowsort
SELECT - 15 * - - NULLIF ( - - 51, 1 )
----
-765

query II rowsort
SELECT + ( 5 ) AS col2, 69 * - 50 * - + 5 * + 87 col2
----
5
1500750

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT DISTINCT - + COUNT( ALL + 1 ) * 52 AS col1, 89 + + 20
----
-52
109

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT - + COUNT ( ALL + 1 ) * 52 AS col1, 89 + + 20
----
-52
109

query I rowsort
SELECT ALL - 49 * + 80 * - - ( 62 ) AS col2
----
-243040

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + - SUM( ALL + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + - SUM ( ALL + 32 )
----
-32

query I rowsort
SELECT + + ( + - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - 99 * + - 50 * + - 19 * + 28 * - COUNT( * ) * + 42
----
110602800

skipif mysql # not compatible
query I rowsort label-4953
SELECT - 99 * + - 50 * + - 19 * + 28 * - COUNT ( * ) * + 42
----
110602800

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - + CASE + AVG ( - 11 ) WHEN + 90 + - ( - 69 ) THEN - 27 END / + MIN( + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - + CASE + AVG ( - 11 ) WHEN + 90 + - ( - 69 ) THEN - 27 END / + MIN ( + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - SUM( - 98 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-4955
SELECT - SUM ( - 98 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - - 27 * - - COUNT( * ) * + - COUNT( * ) + - 35
----
-62

skipif mysql # not compatible
query I rowsort label-4956
SELECT - - 27 * - - COUNT ( * ) * + - COUNT ( * ) + - 35
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4957
SELECT DISTINCT + + ( + 34 ), - 71 + + MIN( ALL 51 ) + - 21 + - CAST( AVG ( - 97 ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) + + CAST( + NULLIF ( 58, - + 75 ) AS SIGNED ) / + 28 * 15 AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT + + ( + 34 ), - 71 + + MIN ( ALL 51 ) + - 21 + - CAST ( AVG ( - 97 ) AS REAL ) * - CAST ( NULL AS INTEGER ) + + CAST ( + NULLIF ( 58, - + 75 ) AS INTEGER ) / + 28 * 15 AS col0
----
34
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT - - CAST( - MAX( ALL - + ( - 99 ) ) AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4958
SELECT - - CAST ( - MAX ( ALL - + ( - 99 ) ) AS INTEGER ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - SUM( 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4959
SELECT - SUM ( 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL 2 * + - COUNT( + - 12 ) + 9 + + - 21 - + ( + + 3 ) * 0 * - 70 * - 97
----
-14

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 2 * + - COUNT ( + - 12 ) + 9 + + - 21 - + ( + + 3 ) * 0 * - 70 * - 97
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - MIN( 1 ) - + 30 + + 81 * + - MIN( ALL - 25 ) AS col1
----
1994

skipif mysql # not compatible
query I rowsort label-4961
SELECT - MIN ( 1 ) - + 30 + + 81 * + - MIN ( ALL - 25 ) AS col1
----
1994

query I rowsort
SELECT ALL 95 * + - 60 AS col2
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT 77 * 20 + COUNT( * ) * + COUNT( * ) + 1 + + - 18 AS col0
----
1524

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT 77 * 20 + COUNT ( * ) * + COUNT ( * ) + 1 + + - 18 AS col0
----
1524

query II rowsort
SELECT - 1 AS col1, 56 AS col1
----
-1
56

query I rowsort
SELECT + 77 * + ( + 22 ) * - - 50 AS col2
----
84700

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( * ) + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( * ) + 30 AS col1
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4967
SELECT ALL 58, CAST( NULL AS DECIMAL ) / - 53 AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4967
SELECT ALL 58, CAST ( NULL AS REAL ) / - 53 AS col2
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( ALL - + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( ALL - + 4 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - 23 + - 76 * SUM( 20 ) AS col0
----
-1543

skipif mysql # not compatible
query I rowsort label-4969
SELECT - 23 + - 76 * SUM ( 20 ) AS col0
----
-1543

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT 48, 44 - + NULLIF ( - 95, - COUNT( * ) + - + SUM( 14 ) ) AS col0
----
48
139

skipif mysql # not compatible
query II rowsort label-4970
SELECT 48, 44 - + NULLIF ( - 95, - COUNT ( * ) + - + SUM ( 14 ) ) AS col0
----
48
139

query I rowsort
SELECT ALL 87 + - 49
----
38

query I rowsort
SELECT - ( + 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT DISTINCT MIN( CAST( + 84 AS SIGNED ) ) + 41 * - COUNT( * ) * - - 16 * 40
----
-26156

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT MIN ( CAST ( + 84 AS INTEGER ) ) + 41 * - COUNT ( * ) * - - 16 * 40
----
-26156

query I rowsort
SELECT + 69 + 61
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4975
SELECT ALL COUNT( ALL CAST( + 26 AS SIGNED ) ), 64 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL COUNT ( ALL CAST ( + 26 AS INTEGER ) ), 64 AS col2
----
1
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL CASE + 75 WHEN SUM( + - 13 ) THEN CAST( NULL AS SIGNED ) * - - 90 END - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL CASE + 75 WHEN SUM ( + - 13 ) THEN CAST ( NULL AS INTEGER ) * - - 90 END - ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT SUM( - - 46 ) * - - 4
----
184

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT SUM ( - - 46 ) * - - 4
----
184

query II rowsort
SELECT - + 47 AS col0, 93 AS col1
----
-47
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT 6, 27 * - 51 * + COUNT( DISTINCT 48 ) * + COALESCE ( + 36, + - NULLIF ( + 2, - 53 + + - 47 + 99 ) + + 6 ) + 70 + - 6 AS col2
----
6
-49508

skipif mysql # not compatible
query II rowsort label-4979
SELECT 6, 27 * - 51 * + COUNT ( DISTINCT 48 ) * + COALESCE ( + 36, + - NULLIF ( + 2, - 53 + + - 47 + 99 ) + + 6 ) + 70 + - 6 AS col2
----
6
-49508

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT 70 - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4980
SELECT 70 - COUNT ( * ) AS col1
----
69

query II rowsort
SELECT ALL 87 * - + 14 * 58 AS col0, 24 col1
----
-70644
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT MAX( DISTINCT + + 22 ) * 91 + + + 67
----
2069

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT MAX ( DISTINCT + + 22 ) * 91 + + + 67
----
2069

query I rowsort
SELECT + 33 * ( + ( - 67 ) ) - 19 AS col2
----
-2230

query I rowsort
SELECT 87 + + 44
----
131

query I rowsort
SELECT DISTINCT - + 94 col1
----
-94

query II rowsort
SELECT - 33 + 74 * + + 4 * - 42 col2, NULLIF ( - + 48, - 28 )
----
-12465
-48

query I rowsort
SELECT DISTINCT - 43 + 6 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT MIN( ALL - 46 ) * COALESCE ( - 23, + MIN( DISTINCT - 9 ), 81 * 35 * SUM( DISTINCT + + 82 ) * + - ( + - COUNT( * ) ) DIV - 23 ) + 83 AS col2
----
1141

skipif mysql # not compatible
query I rowsort label-4988
SELECT MIN ( ALL - 46 ) * COALESCE ( - 23, + MIN ( DISTINCT - 9 ), 81 * 35 * SUM ( DISTINCT + + 82 ) * + - ( + - COUNT ( * ) ) / - 23 ) + 83 AS col2
----
1141

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ( - SUM( + - 17 ) ) * ( - MIN( 40 ) ) + 67 AS col2
----
-613

skipif mysql # not compatible
query I rowsort label-4989
SELECT ( - SUM ( + - 17 ) ) * ( - MIN ( 40 ) ) + 67 AS col2
----
-613

query I rowsort
SELECT ALL - 10 + - 16 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT COUNT( * ) + - + MAX( - 5 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4991
SELECT COUNT ( * ) + - + MAX ( - 5 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT 85 * COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4992
SELECT 85 * COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT 20 + + COUNT( * ), 18 * 50 AS col2
----
21
900

skipif mysql # not compatible
query II rowsort label-4993
SELECT 20 + + COUNT ( * ), 18 * 50 AS col2
----
21
900

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT DISTINCT + SUM( DISTINCT - ( 61 ) ) + + 5, + COUNT( * ) AS col1
----
-56
1

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT + SUM ( DISTINCT - ( 61 ) ) + + 5, + COUNT ( * ) AS col1
----
-56
1

query II rowsort
SELECT 10 * - - 52 * - 28 * - 17 col0, - 84
----
247520
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT 17 + + COUNT( * ) - + 86 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4996
SELECT 17 + + COUNT ( * ) - + 86 AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4997
SELECT ALL + COUNT( * ) - + 37 - - - CAST( NULL AS SIGNED ) * + + 3 + - - MAX( 26 ) + - 83 * - 54 + 53 AS col2, 19 AS col2, + - 25 + - CAST( COUNT( * ) AS SIGNED ) * 74 AS col2
----
NULL
19
-99

skipif mysql # not compatible
query III rowsort label-4997
SELECT ALL + COUNT ( * ) - + 37 - - - CAST ( NULL AS INTEGER ) * + + 3 + - - MAX ( 26 ) + - 83 * - 54 + 53 AS col2, 19 AS col2, + - 25 + - CAST ( COUNT ( * ) AS INTEGER ) * 74 AS col2
----
NULL
19
-99

query I rowsort
SELECT 7 + + CASE + 97 WHEN - AVG ( ALL 44 ) + - - 5 THEN + - 39 ELSE + - 36 END AS col2
----
-29

query II rowsort
SELECT 10 * + 16 AS col0, ( - 80 ) AS col1
----
160
-80

query I rowsort
SELECT 52 - - 48 + - + 70 AS col2
----
30

query I rowsort
SELECT DISTINCT - + 35 * 42
----
-1470

query II rowsort
SELECT ( + ( - 5 ) ) + + ( - 43 ) AS col2, 33 AS col1
----
-48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ( - - 30 ) * - MAX( - ( - + 60 ) ) col2
----
-1800

skipif mysql # not compatible
query I rowsort label-5003
SELECT ( - - 30 ) * - MAX ( - ( - + 60 ) ) col2
----
-1800

query I rowsort
SELECT + 93 * 69 + 76 + 52
----
6545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5005
SELECT COUNT( * ) DIV 28 DIV - + 76 + - 94 + - + 7 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-5005
SELECT COUNT ( * ) / 28 / - + 76 + - 94 + - + 7 AS col0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT - 51 * - + 82 * - 63 / - 65 * + CASE + ( + 42 ) WHEN - CAST( 82 AS SIGNED ) THEN + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - 51 * - + 82 * - 63 / - 65 * + CASE + ( + 42 ) WHEN - CAST ( 82 AS INTEGER ) THEN + 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL ( - COUNT( * ) ) + - - 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL ( - COUNT ( * ) ) + - - 92 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - 90 * - 4 col0, - CASE - - COUNT( * ) WHEN + 46 THEN - + 59 END * - - 38 AS col0
----
360
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT - 90 * - 4 col0, - CASE - - COUNT ( * ) WHEN + 46 THEN - + 59 END * - - 38 AS col0
----
360
NULL

query I rowsort
SELECT 53 + + 62 + + + 18 * 12
----
331

query I rowsort
SELECT ALL - NULLIF ( + 18, 69 ) col0
----
-18

query I rowsort
SELECT ALL - - ( + + COALESCE ( 51, 12 + - 31 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT - 17 DIV COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 17 / COUNT ( * ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5013
SELECT ALL - - 22 + + 45 - + 71 * - 54, - MIN( - CAST( NULL AS SIGNED ) ) AS col0
----
3901
NULL

skipif mysql # not compatible
query II rowsort label-5013
SELECT ALL - - 22 + + 45 - + 71 * - 54, - MIN ( - CAST ( NULL AS INTEGER ) ) AS col0
----
3901
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT + 84 DIV - ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT + 84 / - ( 89 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5015
SELECT COUNT( * ) DIV - - 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT COUNT ( * ) / - - 88 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT ( + 41 ) * - - CAST( + 40 AS SIGNED ) AS col0
----
1640

skipif mysql # not compatible
query I rowsort label-5016
SELECT ( + 41 ) * - - CAST ( + 40 AS INTEGER ) AS col0
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT MIN( ALL + 19 ) - + 24 + + 36 + - + CASE + 26 WHEN 18 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT MIN ( ALL + 19 ) - + 24 + + 36 + - + CASE + 26 WHEN 18 THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 79 + 0 - - + 69 + + 70 - - ( 63 ) * - 10
----
-412

query I rowsort
SELECT + CASE - 27 WHEN + - 76 THEN NULL ELSE - + 9 END AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL + CASE - + 69 WHEN + - 87 THEN NULL WHEN + 7 THEN - 23 END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + CASE - + 69 WHEN + - 87 THEN NULL WHEN + 7 THEN - 23 END * + - COUNT ( * )
----
NULL

query I rowsort
SELECT 20 - + - 45 + 0 col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT - NULLIF ( CASE - COUNT( * ) WHEN + 57 + - + 0 THEN NULL WHEN - 73 THEN NULL ELSE - 2 END, - 29 / - 20 + - CAST( NULL AS SIGNED ) + - 26 - 14 )
----
2

skipif mysql # not compatible
query I rowsort label-5022
SELECT - NULLIF ( CASE - COUNT ( * ) WHEN + 57 + - + 0 THEN NULL WHEN - 73 THEN NULL ELSE - 2 END, - 29 / - 20 + - CAST ( NULL AS INTEGER ) + - 26 - 14 )
----
2

query I rowsort
SELECT + 34 + + 14 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 10 + COUNT( * ) + 89 * - + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 10 + COUNT ( * ) + 89 * - + COUNT ( * ) AS col1
----
-98

query II rowsort
SELECT ALL 33 AS col2, + ( 36 ) AS col1
----
33
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT ALL + 17 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + 17 / + 3
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - COUNT( * ) * + + 33
----
-33

skipif mysql # not compatible
query I rowsort label-5027
SELECT - COUNT ( * ) * + + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - + 42 * + + ( COUNT( DISTINCT 29 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5028
SELECT - + 42 * + + ( COUNT ( DISTINCT 29 ) )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - 30
----
NULL
-30

query I rowsort
SELECT DISTINCT + - 87 * - 41 AS col1
----
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT - - ( 40 ) + - - MIN( DISTINCT + - 53 )
----
-13

skipif mysql # not compatible
query I rowsort label-5031
SELECT - - ( 40 ) + - - MIN ( DISTINCT + - 53 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5032
SELECT - 52 * + + 67 * - COUNT( * ) + + MAX( - 32 ) AS col2, - 69 + - 90 AS col1
----
3452
-159

skipif mysql # not compatible
query II rowsort label-5032
SELECT - 52 * + + 67 * - COUNT ( * ) + + MAX ( - 32 ) AS col2, - 69 + - 90 AS col1
----
3452
-159

query I rowsort
SELECT - + ( 55 ) + - 22 AS col0
----
-77

query I rowsort
SELECT ALL ( 4 ) AS col2
----
4

query I rowsort
SELECT ALL - - ( - - 20 ) * - 50 + - 10
----
-1010

query I rowsort
SELECT ALL 78 * - 66 + - 1 + - 20
----
-5169

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT ( - 81 ) * - 28 + + + 3 + - ( + - 7 ) + - COUNT( * )
----
2277

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT ( - 81 ) * - 28 + + + 3 + - ( + - 7 ) + - COUNT ( * )
----
2277

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5038
SELECT + + 17, CAST( + + 20 AS SIGNED ) AS col2
----
17
20

skipif mysql # not compatible
query II rowsort label-5038
SELECT + + 17, CAST ( + + 20 AS INTEGER ) AS col2
----
17
20

query I rowsort
SELECT ALL + + 39 * 81 + + 27 + + - 46 + 9 * + + 48 AS col0
----
3572

query I rowsort
SELECT + 74 * - 19 - - 8 AS col2
----
-1398

query II rowsort
SELECT ALL + + 98 AS col1, 75
----
98
75

query I rowsort
SELECT + CASE 50 WHEN + 78 THEN NULL WHEN - - 61 THEN + 20 END * 42 + 10 - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - 77 + - COUNT( * ) * - 56 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 77 + - COUNT ( * ) * - 56 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT + CAST( + ( - + 55 ) AS SIGNED ) * - 21 + CAST( 77 AS SIGNED )
----
1232

skipif mysql # not compatible
query I rowsort label-5044
SELECT + CAST ( + ( - + 55 ) AS INTEGER ) * - 21 + CAST ( 77 AS INTEGER )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + 54 * + 99 * MAX( DISTINCT 9 ) AS col0
----
48114

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 54 * + 99 * MAX ( DISTINCT 9 ) AS col0
----
48114

query I rowsort
SELECT + NULLIF ( - 1, - 61 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT 84 DIV - 86 + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5047
SELECT 84 / - 86 + 21 AS col1
----
21

query I rowsort
SELECT 47 * - + 52 - 13
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + 18 * CASE - + 12 WHEN 57 THEN - - 97 * - - 30 WHEN + 73 + + 32 THEN NULL ELSE + 65 + + - COUNT( * ) END col2
----
1152

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 18 * CASE - + 12 WHEN 57 THEN - - 97 * - - 30 WHEN + 73 + + 32 THEN NULL ELSE + 65 + + - COUNT ( * ) END col2
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT ALL + 84 AS col2, - COUNT( + - 12 ) - + + 13 AS col2
----
84
-14

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL + 84 AS col2, - COUNT ( + - 12 ) - + + 13 AS col2
----
84
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT 84 * + 60 * 99 + - 59 + CAST( NULL AS SIGNED ) * + + 7 * - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT 84 * + 60 * 99 + - 59 + CAST ( NULL AS INTEGER ) * + + 7 * - + 96 AS col2
----
NULL

query I rowsort
SELECT + 82 * + 2 AS col1
----
164

query I rowsort
SELECT + 58 * - 6 AS col0
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT + 34 DIV - 10 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 34 / - 10 AS col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5055
SELECT - 40 / + CAST( NULL AS DECIMAL ) * 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 40 / + CAST ( NULL AS REAL ) * 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT DISTINCT COUNT( * ) AS col0, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5056
SELECT DISTINCT COUNT ( * ) AS col0, 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL COUNT( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL COUNT ( 80 )
----
1

query I rowsort
SELECT + 28 * 38 * + 77
----
81928

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT MAX( 80 ) col1, MAX( - 41 )
----
80
-41

skipif mysql # not compatible
query II rowsort label-5059
SELECT MAX ( 80 ) col1, MAX ( - 41 )
----
80
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT - 79 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT - 79 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5061
SELECT DISTINCT + - 85 * 45 + - 84 + + - 85 AS col1, + 39 * - + CAST( NULL AS SIGNED ) * AVG ( DISTINCT 61 )
----
-3994
NULL

skipif mysql # not compatible
query II rowsort label-5061
SELECT DISTINCT + - 85 * 45 + - 84 + + - 85 AS col1, + 39 * - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 61 )
----
-3994
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 80, - 37 ) * - 98 * - - NULLIF ( 85, 69 ) + - 89
----
-666489

query I rowsort
SELECT - - 5 * + 99 AS col2
----
495

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5064
SELECT ALL + + CAST( NULL AS DECIMAL ) + - CAST( 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + + CAST ( NULL AS REAL ) + - CAST ( 44 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + + 94 + + + SUM( DISTINCT + + 36 ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-5065
SELECT + + 94 + + + SUM ( DISTINCT + + 36 ) AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + - 19 + + - MIN( - 7 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5066
SELECT + - 19 + + - MIN ( - 7 ) AS col0
----
-12

query I rowsort
SELECT - - 13 - - + 90
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT + COUNT( * ) + - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + COUNT ( * ) + - 78 AS col0
----
-77

query I rowsort
SELECT ALL + 38 + - - 77 AS col2
----
115

query I rowsort
SELECT DISTINCT - 80 + + 63
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5071
SELECT + CAST( NULL AS SIGNED ) AS col2, + 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5071
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 92 AS col1
----
NULL
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL + 58 + - + CAST( 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + 58 + - + CAST ( 29 AS INTEGER ) AS col1
----
29

query II rowsort
SELECT ALL + 29 AS col0, - 4 AS col0
----
29
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT DISTINCT - + COALESCE ( - + 53, ( + 5 ) ) DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - + COALESCE ( - + 53, ( + 5 ) ) / 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - ( COUNT( * ) ) * + 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5075
SELECT - ( COUNT ( * ) ) * + 89 AS col1
----
-89

query I rowsort
SELECT + NULLIF ( - 41, - - 34 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - 23 * - - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - 23 * - - COUNT ( * )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - - CAST( NULL AS SIGNED ) / ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - - CAST ( NULL AS INTEGER ) / ( - 3 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5079
SELECT 12 DIV 88 + COUNT( DISTINCT - - CAST( - + 32 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5079
SELECT 12 / 88 + COUNT ( DISTINCT - - CAST ( - + 32 AS INTEGER ) )
----
1

query II rowsort
SELECT 55 AS col1, 0 * - 88
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - MIN( ALL - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5081
SELECT - MIN ( ALL - - 12 )
----
-12

query I rowsort
SELECT ALL + 79 * 67
----
5293

query I rowsort
SELECT DISTINCT + 6 * COALESCE ( 7, + + 53 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5084
SELECT DISTINCT ( + ( CAST( COUNT( * ) AS SIGNED ) ) ) DIV + 76 * 52 - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT ( + ( CAST ( COUNT ( * ) AS INTEGER ) ) ) / + 76 * 52 - 99 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5085
SELECT DISTINCT 73 DIV + 10 - - 3 + + ( - + 79 ) + - 22 + + CAST( + 63 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT 73 / + 10 - - 3 + + ( - + 79 ) + - 22 + + CAST ( + 63 AS INTEGER ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT 23 - + + 63 + + MIN( - 63 )
----
-103

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT 23 - + + 63 + + MIN ( - 63 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT 0 * - + ( COUNT( * ) ) * + + 27 * - + 88 * + 83 * + - COUNT( + + 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT 0 * - + ( COUNT ( * ) ) * + + 27 * - + 88 * + 83 * + - COUNT ( + + 91 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT 36 * + SUM( DISTINCT - - 62 ) * 44
----
98208

skipif mysql # not compatible
query I rowsort label-5088
SELECT 36 * + SUM ( DISTINCT - - 62 ) * 44
----
98208

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5089
SELECT 19 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT 19 - - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT ALL 22 * + 27 col1, + 1
----
594
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT DISTINCT - COUNT( * ) * - 49 col1, 96
----
49
96

skipif mysql # not compatible
query II rowsort label-5091
SELECT DISTINCT - COUNT ( * ) * - 49 col1, 96
----
49
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5092
SELECT ALL 86 * + 70, + ( + - CAST( NULL AS SIGNED ) ) - - 9 AS col2
----
6020
NULL

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL 86 * + 70, + ( + - CAST ( NULL AS INTEGER ) ) - - 9 AS col2
----
6020
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT ( - 93 ) + 38 - - + COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT ( - 93 ) + 38 - - + COUNT ( * ) col1
----
-54

query I rowsort
SELECT 70 * 55
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( * ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( * ) + 41
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5096
SELECT - 43 * CAST( NULL AS DECIMAL ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT - 43 * CAST ( NULL AS REAL ) + - 21
----
NULL

query I rowsort
SELECT 59 + + - 71 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + - 27 * 38 + - 64 * 4 * + 83
----
-22276

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + - 27 * 38 + - 64 * 4 * + 83
----
-22276

query I rowsort
SELECT ALL + 9 + - 98 AS col0
----
-89

query I rowsort
SELECT DISTINCT CASE 28 WHEN - 67 * + + 6 * - 6 THEN 55 + 52 END AS col0
----
NULL

query I rowsort
SELECT ALL - 87 + + - 98 AS col2
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5102
SELECT 39 * + + 7 + + 29 AS col2, CAST( NULL AS DECIMAL )
----
302
NULL

skipif mysql # not compatible
query II rowsort label-5102
SELECT 39 * + + 7 + + 29 AS col2, CAST ( NULL AS REAL )
----
302
NULL

query I rowsort
SELECT DISTINCT 58 + ( 89 ) col2
----
147

query I rowsort
SELECT 0 + 17 * - 81 AS col0
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COUNT( * ) - - 96
----
97

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) - - 96
----
97

query I rowsort
SELECT + 33 * - + 99
----
-3267

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5107
SELECT ALL - ( + 84 ) DIV - CAST( - - AVG ( DISTINCT + 50 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - ( + 84 ) / - CAST ( - - AVG ( DISTINCT + 50 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT 84 * + 28 - - 3 AS col2
----
2355

query II rowsort
SELECT 89 col1, + 67
----
89
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT CASE - 37 WHEN - + 78 * - 80 + + ( - + COUNT( * ) ) + + - 95 / - ( 87 ) THEN + ( 36 ) WHEN - + 61 THEN NULL END * - MIN( ALL 47 ) / 37 + + CAST( + 72 AS SIGNED ) * + - CAST( + - 86 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT CASE - 37 WHEN - + 78 * - 80 + + ( - + COUNT ( * ) ) + + - 95 / - ( 87 ) THEN + ( 36 ) WHEN - + 61 THEN NULL END * - MIN ( ALL 47 ) / 37 + + CAST ( + 72 AS INTEGER ) * + - CAST ( + - 86 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 30 + + 98 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT COALESCE ( + 4, + ( - 50 ), - 94 + 77 ) + + - COUNT( * ) * - + 53 * MIN( - CAST( NULL AS SIGNED ) ) + 67 * - 3 * - - 99 / - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT COALESCE ( + 4, + ( - 50 ), - 94 + 77 ) + + - COUNT ( * ) * - + 53 * MIN ( - CAST ( NULL AS INTEGER ) ) + 67 * - 3 * - - 99 / - 75 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT 36 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT 36 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT 21 * COUNT( * ) * + NULLIF ( - + COUNT( * ), - 74 ) + + - 10 * - - 92
----
-941

skipif mysql # not compatible
query I rowsort label-5114
SELECT 21 * COUNT ( * ) * + NULLIF ( - + COUNT ( * ), - 74 ) + + - 10 * - - 92
----
-941

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT 26 DIV 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5115
SELECT 26 / 22 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT 29 + - - 6 DIV + + 64 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5116
SELECT 29 + - - 6 / + + 64 AS col0
----
29

query II rowsort
SELECT ALL - ( 31 ) * + - 59 AS col1, 39 * + 89
----
1829
3471

query I rowsort
SELECT ALL - 49 * + + 30 AS col2
----
-1470

query I rowsort
SELECT ALL + 58 + + NULLIF ( - 75, + - ( 1 ) )
----
-17

query I rowsort
SELECT DISTINCT + 77 + 84
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 21 AS col0, - 52 + + 67 * - 98 * 77
----
21
-505634

query I rowsort
SELECT + 18 * + + 62 + + + 38 AS col2
----
1154

query I rowsort
SELECT ALL - 82 * + 91
----
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) + 15 + - COUNT( + ( 45 ) ) * + 25 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) + 15 + - COUNT ( + ( 45 ) ) * + 25 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL + - 72 + - 25 + - 89 - - 14 + + 53 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + - 72 + - 25 + - 89 - - 14 + + 53 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - MAX( + 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5127
SELECT - MAX ( + 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + MAX( DISTINCT - + 50 ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-5128
SELECT + MAX ( DISTINCT - + 50 ) col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT ALL - ( CAST( + 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - ( CAST ( + 91 AS INTEGER ) )
----
-91

query I rowsort
SELECT DISTINCT - NULLIF ( - 84, + 81 ) - + + 62 - + - 22
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5131
SELECT ALL + COUNT( + CAST( + 34 AS DECIMAL ) ) - - + 49 + - - ( - ( 22 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + COUNT ( + CAST ( + 34 AS REAL ) ) - - + 49 + - - ( - ( 22 ) ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5132
SELECT - 43 + + + 93 * + COALESCE ( - 96, - 74 * + COALESCE ( + ( + 98 ), 43 / - CAST( NULL AS DECIMAL ) + 36 * + 87 - + - 54 + + 50 + + 45 * - 84 * + - 78 + + + 80 + - - 59 ) ) * 64 / COUNT( * ) + + CAST( NULL AS SIGNED ) + - ( + 25 ) AS col1, + 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-5132
SELECT - 43 + + + 93 * + COALESCE ( - 96, - 74 * + COALESCE ( + ( + 98 ), 43 / - CAST ( NULL AS REAL ) + 36 * + 87 - + - 54 + + 50 + + 45 * - 84 * + - 78 + + + 80 + - - 59 ) ) * 64 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - ( + 25 ) AS col1, + 86 AS col2
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + 48 - - COUNT( DISTINCT 41 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 48 - - COUNT ( DISTINCT 41 ) AS col2
----
49

query II rowsort
SELECT ( + 34 ) + - + 97, - 11 AS col2
----
-63
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT DISTINCT CAST( + AVG ( ALL + 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT CAST ( + AVG ( ALL + 42 ) AS INTEGER )
----
42

query II rowsort
SELECT ALL - 15 AS col2, + 88 + - 29 + - CASE CASE - + 90 WHEN + 80 / 41 THEN + 73 END WHEN + 56 THEN + - ( - + 31 ) END
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + 93 + - MIN( DISTINCT + - 4 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 93 + - MIN ( DISTINCT + - 4 ) AS col1
----
97

query I rowsort
SELECT ALL 77 * - 20 * 15 col2
----
-23100

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + AVG ( - 16 ) * + CASE - 69 WHEN + 20 THEN + 39 * - SUM( - + 72 ) WHEN + 34 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT + AVG ( - 16 ) * + CASE - 69 WHEN + 20 THEN + 39 * - SUM ( - + 72 ) WHEN + 34 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT ALL + MIN( ALL + 13 ), + 57 AS col0
----
13
57

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL + MIN ( ALL + 13 ), + 57 AS col0
----
13
57

query I rowsort
SELECT + 18 * + 43
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - 23 * - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 23 * - COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT - 39 DIV 83 DIV - COUNT( * ) + + - 81 + 29 + - 68
----
-120

skipif mysql # not compatible
query I rowsort label-5143
SELECT - 39 / 83 / - COUNT ( * ) + + - 81 + 29 + - 68
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5144
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - 66 + + 46 ), 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-5144
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - 66 + + 46 ), 17 AS col0
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT MAX( 99 ) * + - 87
----
-8613

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT MAX ( 99 ) * + - 87
----
-8613

query I rowsort
SELECT + 88 * - 53
----
-4664

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT CASE + COUNT( * ) WHEN 45 THEN + 2 / + 5 * 34 * - + 31 + + ( - - ( + 69 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT CASE + COUNT ( * ) WHEN 45 THEN + 2 / + 5 * 34 * - + 31 + + ( - - ( + 69 ) ) END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - + 97, - + 8 * - + 72 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - 27 * - 73 + + 19 - - CASE 63 WHEN - COUNT( * ) THEN - 34 WHEN 23 THEN NULL WHEN - 97 - + 2 * - 69 + 55 + + COUNT( * ) THEN NULL END + 4 * + 37 + + ( + - COUNT( * ) ) + - ( + 87 ) / - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - 27 * - 73 + + 19 - - CASE 63 WHEN - COUNT ( * ) THEN - 34 WHEN 23 THEN NULL WHEN - 97 - + 2 * - 69 + 55 + + COUNT ( * ) THEN NULL END + 4 * + 37 + + ( + - COUNT ( * ) ) + - ( + 87 ) / - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT COALESCE ( - + COUNT( * ), - 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-5150
SELECT COALESCE ( - + COUNT ( * ), - 84 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL - 94 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - 94 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT - ( - 77 ) DIV + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5152
SELECT - ( - 77 ) / + 68 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) - - - MAX( + 47 )
----
-46

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) - - - MAX ( + 47 )
----
-46

query I rowsort
SELECT - ( - 50 ) * 78 * + 12 + 90 AS col0
----
46890

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL - - 72 * - COUNT( * ) + + 26
----
-46

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - - 72 * - COUNT ( * ) + + 26
----
-46

query II rowsort
SELECT + + ( - 80 ), 42 AS col1
----
-80
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - 93 * - + 5 + + 66 - ( ( - - ( + COUNT( * ) ) ) )
----
530

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - 93 * - + 5 + + 66 - ( ( - - ( + COUNT ( * ) ) ) )
----
530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT - + 7 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT - + 7 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL + - 56 - - COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + - 56 - - COUNT ( * ) col0
----
-55

query I rowsort
SELECT - NULLIF ( 53, 39 ) * 85
----
-4505

query I rowsort
SELECT - 88 * 72
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 32 + - - 17 + - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 32 + - - 17 + - COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT ALL NULLIF ( 34, + 27 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + - ( CASE 13 WHEN - 68 THEN 57 * - 84 ELSE 20 * - COUNT( * ) END ) * + 65 col0
----
1300

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + - ( CASE 13 WHEN - 68 THEN 57 * - 84 ELSE 20 * - COUNT ( * ) END ) * + 65 col0
----
1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL + - 65 - + CAST( + - 23 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + - 65 - + CAST ( + - 23 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL - CAST( NULL AS SIGNED ) * - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 27
----
NULL

query I rowsort
SELECT DISTINCT + + 89 * 23 col2
----
2047

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT + + ( - 83 ) DIV - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT + + ( - 83 ) / - - 94 AS col0
----
0

query I rowsort
SELECT - 59 - 39 AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT - 18 DIV - + 34
----
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 18 / - + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT + COUNT( * ) DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT + COUNT ( * ) / 74 AS col1
----
0

query I rowsort
SELECT ALL ( - - 30 ) + + + 10
----
40

query I rowsort
SELECT - 35 + + - 86
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5174
SELECT ALL COUNT( * ) + + + ( + 8 ) AS col0, + 83 DIV + 25 - + ( + + 81 ) + + 24 * + - CAST( 50 AS SIGNED ) * + ( - 71 ) AS col2
----
9
85122

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL COUNT ( * ) + + + ( + 8 ) AS col0, + 83 / + 25 - + ( + + 81 ) + + 24 * + - CAST ( 50 AS INTEGER ) * + ( - 71 ) AS col2
----
9
85122

query I rowsort
SELECT ALL - 58 + - - 86
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5176
SELECT + CASE + 95 WHEN - 78 * + 28 + + 36 + CAST( NULL AS DECIMAL ) * - COUNT( * ) / + COUNT( * ) + - 39 THEN + MAX( DISTINCT 69 ) * + + COUNT( * ) * - 39 WHEN - 59 * + + MIN( DISTINCT + CASE + - NULLIF ( - 70, NULLIF ( + ( - + ( + 17 ) ), + + 12 ) ) WHEN + 64 THEN NULL WHEN - 59 THEN NULL ELSE 87 * + - 94 END ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT + CASE + 95 WHEN - 78 * + 28 + + 36 + CAST ( NULL AS REAL ) * - COUNT ( * ) / + COUNT ( * ) + - 39 THEN + MAX ( DISTINCT 69 ) * + + COUNT ( * ) * - 39 WHEN - 59 * + + MIN ( DISTINCT + CASE + - NULLIF ( - 70, NULLIF ( + ( - + ( + 17 ) ), + + 12 ) ) WHEN + 64 THEN NULL WHEN - 59 THEN NULL ELSE 87 * + - 94 END ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT DISTINCT - COUNT( * ) DIV + ( - 71 ) * 48 + 5 DIV + + 11 col1
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - COUNT ( * ) / + ( - 71 ) * 48 + 5 / + + 11 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5178
SELECT DISTINCT 93 * - 88 * 35 * - 81 DIV 3 AS col1, 68 + + 51 AS col1
----
7733880
119

skipif mysql # not compatible
query II rowsort label-5178
SELECT DISTINCT 93 * - 88 * 35 * - 81 / 3 AS col1, 68 + + 51 AS col1
----
7733880
119

query I rowsort
SELECT - 52 + + 39
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL + 0 DIV + COUNT( * ) + 30 + - 24 * + ( - 43 ) col1
----
1062

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + 0 / + COUNT ( * ) + 30 + - 24 * + ( - 43 ) col1
----
1062

query I rowsort
SELECT + NULLIF ( + 77, 97 ) + + 14 + - NULLIF ( + 4, - ( - ( - - 3 ) ) ) col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT - 47 * - ( - ( - + COUNT( + 85 ) ) ) * 81 + 89 + + 59 + - ( + 98 ) AS col1, + 18
----
3857
18

skipif mysql # not compatible
query II rowsort label-5182
SELECT - 47 * - ( - ( - + COUNT ( + 85 ) ) ) * 81 + 89 + + 59 + - ( + 98 ) AS col1, + 18
----
3857
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5183
SELECT ( + COALESCE ( + - 51, + 18 * - 62 + + 49 + 24 + + CAST( NULL AS SIGNED ) DIV + 65 + - - SUM( 74 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5183
SELECT ( + COALESCE ( + - 51, + 18 * - 62 + + 49 + 24 + + CAST ( NULL AS INTEGER ) / + 65 + - - SUM ( 74 ) ) )
----
-51

query I rowsort
SELECT DISTINCT 57 * + + 61 col2
----
3477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT ALL 40 DIV 77 * - + MAX( + 36 ) * - 5 + + + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL 40 / 77 * - + MAX ( + 36 ) * - 5 + + + 17 AS col2
----
17

query I rowsort
SELECT ( - NULLIF ( + ( + 28 ), - + 27 ) )
----
-28

query I rowsort
SELECT ALL - ( + - 94 ) * + - 15 * 39 + ( - ( - - 67 ) ) AS col0
----
-55057

onlyif mysql # DIV for integer division: 
query II rowsort label-5188
SELECT DISTINCT + 93 AS col2, + 30 * + ( + COALESCE ( + - 46, - 27 DIV - + 16 ) )
----
93
-1380

skipif mysql # not compatible
query II rowsort label-5188
SELECT DISTINCT + 93 AS col2, + 30 * + ( + COALESCE ( + - 46, - 27 / - + 16 ) )
----
93
-1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 41 * - + 8 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 41 * - + 8 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT + MIN( 10 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + MIN ( 10 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + + CASE COUNT( * ) WHEN + 31 THEN + - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + + CASE COUNT ( * ) WHEN + 31 THEN + - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT - COUNT( * ) * + MAX( DISTINCT - 8 ) + + 63 + + - 51 - + 89
----
-69

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - COUNT ( * ) * + MAX ( DISTINCT - 8 ) + + 63 + + - 51 - + 89
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + COUNT( * ) * + + 10
----
10

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + COUNT ( * ) * + + 10
----
10

query I rowsort
SELECT DISTINCT + + 15 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5195
SELECT DISTINCT + 72 DIV COUNT( * ) - + 14 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + 72 / COUNT ( * ) - + 14 AS col0
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5196
SELECT - CASE + 83 WHEN + 96 THEN 78 END + + AVG ( DISTINCT - + CAST( + + 45 AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT - CASE + 83 WHEN + 96 THEN 78 END + + AVG ( DISTINCT - + CAST ( + + 45 AS REAL ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT + 3 DIV - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 3 / - 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT - - ( - - MAX( + + ( - 66 ) ) ) * ( - - 46 ) AS col0
----
-3036

skipif mysql # not compatible
query I rowsort label-5198
SELECT - - ( - - MAX ( + + ( - 66 ) ) ) * ( - - 46 ) AS col0
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 39 * - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + + 34 + - + 65 - - 93 * - COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-5200
SELECT + + 34 + - + 65 - - 93 * - COUNT ( * )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - + 70 * - COUNT( * ) + + 58
----
128

skipif mysql # not compatible
query I rowsort label-5201
SELECT - + 70 * - COUNT ( * ) + + 58
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT + - 59 + 67 + - + CAST( NULL AS SIGNED ) / - 90 + - COUNT( DISTINCT CAST( + + 64 AS SIGNED ) ) * - COUNT( * ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT + - 59 + 67 + - + CAST ( NULL AS INTEGER ) / - 90 + - COUNT ( DISTINCT CAST ( + + 64 AS INTEGER ) ) * - COUNT ( * ) * 50 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT + 48 * - CAST( NULL AS SIGNED ) * - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + 48 * - CAST ( NULL AS INTEGER ) * - 70 AS col1
----
NULL

query I rowsort
SELECT ALL 9 * - 76
----
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL - CAST( + + 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - CAST ( + + 64 AS INTEGER )
----
-64

query I rowsort
SELECT - 53 * 58
----
-3074

query I rowsort
SELECT ALL 22 * ( + 35 ) AS col2
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - 62 + + - 31 / - CASE COALESCE ( + 14, + + ( - 3 ) ) WHEN + 58 THEN + ( 32 ) END * - SUM( ALL - 72 ) * + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT - 62 + + - 31 / - CASE COALESCE ( + 14, + + ( - 3 ) ) WHEN + 58 THEN + ( 32 ) END * - SUM ( ALL - 72 ) * + - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - + 18 AS col0
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL + NULLIF ( - COUNT( - 76 ), - - COUNT( DISTINCT 86 ) * 2 * - ( + 44 ) - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + NULLIF ( - COUNT ( - 76 ), - - COUNT ( DISTINCT 86 ) * 2 * - ( + 44 ) - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT - 19 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT - 19 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5212
SELECT + 89 + + 23 + - 28 + 76 DIV + + NULLIF ( - 90, COUNT( * ) ) * - - 41 + + MAX( + - ( - 32 ) ) AS col1, - 0 AS col0
----
116
0

skipif mysql # not compatible
query II rowsort label-5212
SELECT + 89 + + 23 + - 28 + 76 / + + NULLIF ( - 90, COUNT ( * ) ) * - - 41 + + MAX ( + - ( - 32 ) ) AS col1, - 0 AS col0
----
116
0

query I rowsort
SELECT + 28 + + 39 - - 80 - + 80
----
67

query I rowsort
SELECT 10 + - 15
----
-5

query I rowsort
SELECT 20 * + 76
----
1520

query I rowsort
SELECT ALL + 89 + + COALESCE ( + + 60, 95 ) col1
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT 35 + 38 + - + 57 * + - CAST( NULL AS SIGNED ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT 35 + 38 + - + 57 * + - CAST ( NULL AS INTEGER ) * 56
----
NULL

query II rowsort
SELECT 37, - 71 AS col0
----
37
-71

query II rowsort
SELECT - 56, + 42 AS col1
----
-56
42

query II rowsort
SELECT 35 * + 26 col0, 50 * + - 3 AS col1
----
910
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5221
SELECT 66 AS col1, CAST( NULL AS SIGNED ) + + COUNT( 41 ) * 43 AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5221
SELECT 66 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( 41 ) * 43 AS col1
----
66
NULL

query I rowsort
SELECT 45 * 62 * - + NULLIF ( + + 32, + ( - 66 ) - ( - + 86 ) + 85 ) AS col1
----
-89280

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT + 93 DIV - 49 + - 72 + 49 DIV - 95 * + 86 * + - ( - 91 ) + + 65
----
-8

skipif mysql # not compatible
query I rowsort label-5223
SELECT + 93 / - 49 + - 72 + 49 / - 95 * + 86 * + - ( - 91 ) + + 65
----
-8

query I rowsort
SELECT DISTINCT 51 - 7 * + + ( + 33 ) + - 19 * + 82 AS col2
----
-1738

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT ALL 10 DIV - 1
----
-10

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL 10 / - 1
----
-10

query I rowsort
SELECT 60 * + 95 AS col1
----
5700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5227
SELECT + 77 AS col2, + 37 - - 22 + - 59 * - - 89 - + CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-5227
SELECT + 77 AS col2, + 37 - - 22 + - 59 * - - 89 - + CAST ( NULL AS INTEGER )
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT CASE - COUNT( + 0 ) WHEN + + 72 + 64 THEN - COUNT( * ) ELSE NULL END * 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT CASE - COUNT ( + 0 ) WHEN + + 72 + 64 THEN - COUNT ( * ) ELSE NULL END * 86 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - COUNT( - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - COUNT ( - 33 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + CASE + 93 WHEN + 31 THEN NULL WHEN ( - COUNT( - 64 ) ) THEN - + COUNT( * ) * 62 ELSE NULL END * - 28 + - + 73 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT + CASE + 93 WHEN + 31 THEN NULL WHEN ( - COUNT ( - 64 ) ) THEN - + COUNT ( * ) * 62 ELSE NULL END * - 28 + - + 73 + 30
----
NULL

query I rowsort
SELECT ALL - 60 - - - 70 col2
----
-130

query I rowsort
SELECT 54 - + - 93 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT + COUNT( ALL + 76 ) * + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-5233
SELECT + COUNT ( ALL + 76 ) * + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT - COALESCE ( - + MAX( - + 55 ), 6 DIV - 63 * - - 83, 76 ) * + 43 * - NULLIF ( - 61, 10 )
----
-144265

skipif mysql # not compatible
query I rowsort label-5234
SELECT - COALESCE ( - + MAX ( - + 55 ), 6 / - 63 * - - 83, 76 ) * + 43 * - NULLIF ( - 61, 10 )
----
-144265

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL MIN( ALL - 27 ) * 2 col0
----
-54

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL MIN ( ALL - 27 ) * 2 col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT - NULLIF ( + + ( - 91 ), + 81 ) DIV MAX( + 24 )
----
3

skipif mysql # not compatible
query I rowsort label-5236
SELECT - NULLIF ( + + ( - 91 ), + 81 ) / MAX ( + 24 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT 23 - + + SUM( - + 96 )
----
119

skipif mysql # not compatible
query I rowsort label-5237
SELECT 23 - + + SUM ( - + 96 )
----
119

query II rowsort
SELECT + 32, - 66 AS col1
----
32
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - + MIN( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5239
SELECT - + MIN ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query III rowsort label-5240
SELECT ALL 71, + MIN( ( - 22 ) ) AS col1, COUNT( * ) AS col0
----
71
-22
1

skipif mysql # not compatible
query III rowsort label-5240
SELECT ALL 71, + MIN ( ( - 22 ) ) AS col1, COUNT ( * ) AS col0
----
71
-22
1

query I rowsort
SELECT ALL - 67 + + 87 * 36
----
3065

query I rowsort
SELECT - NULLIF ( - 36, + 14 - - + 75 ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT DISTINCT - - 22 + 38 + - 65 + + - 7 - - 33 DIV - - 22
----
-11

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - - 22 + 38 + - 65 + + - 7 - - 33 / - - 22
----
-11

query I rowsort
SELECT ( 14 ) + - 41 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN - - MIN( DISTINCT + 6 ) THEN - SUM( DISTINCT + ( + COALESCE ( + + 95, + + 97 ) ) ) WHEN - 99 * - COUNT( * ) * 14 - + - 33 + - 70 + 20 THEN 37 END + - 74 / 42 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN - - MIN ( DISTINCT + 6 ) THEN - SUM ( DISTINCT + ( + COALESCE ( + + 95, + + 97 ) ) ) WHEN - 99 * - COUNT ( * ) * 14 - + - 33 + - 70 + 20 THEN 37 END + - 74 / 42 + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT - 58 + + NULLIF ( + - 78, 92 + 49 * + + NULLIF ( - CAST( + 56 AS SIGNED ), 2 / CAST( 94 AS SIGNED ) ) + 69 + + 91 * COUNT( DISTINCT - + ( 25 ) ) ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - 58 + + NULLIF ( + - 78, 92 + 49 * + + NULLIF ( - CAST ( + 56 AS INTEGER ), 2 / CAST ( 94 AS INTEGER ) ) + 69 + + 91 * COUNT ( DISTINCT - + ( 25 ) ) ) AS col0
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + CAST ( NULL AS INTEGER ) * + 2
----
NULL

query I rowsort
SELECT ALL ( - 62 ) + - 4 * - 51
----
142

query I rowsort
SELECT DISTINCT 53 + + 90
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL - 31 + - + CASE - 28 WHEN + 97 / + + 75 * CAST( NULL AS SIGNED ) * - 93 THEN + 5 WHEN + + 25 THEN NULL ELSE + + 83 + + 0 END + + ( COUNT( * ) ) * - 28
----
-142

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - 31 + - + CASE - 28 WHEN + 97 / + + 75 * CAST ( NULL AS INTEGER ) * - 93 THEN + 5 WHEN + + 25 THEN NULL ELSE + + 83 + + 0 END + + ( COUNT ( * ) ) * - 28
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL MIN( DISTINCT + 23 ) + - ( - 91 )
----
114

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL MIN ( DISTINCT + 23 ) + - ( - 91 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - MAX( + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-5252
SELECT - MAX ( + 59 )
----
-59

query I rowsort
SELECT ALL + 31 + - - 88 * - ( + + 12 )
----
-1025

query II rowsort
SELECT 45 + 41 AS col2, 75 * 58
----
86
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL + 96 - 8 * ( + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + 96 - 8 * ( + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col2
----
96

query I rowsort
SELECT ALL - 41 * ( 18 )
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT NULLIF ( 59, - + 18 ) * + 40 * - 42 + - COUNT( * ) AS col1
----
-99121

skipif mysql # not compatible
query I rowsort label-5257
SELECT NULLIF ( 59, - + 18 ) * + 40 * - 42 + - COUNT ( * ) AS col1
----
-99121

query I rowsort
SELECT DISTINCT 1 * + - 67 - + - 85
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT - 23 * + + CAST( - + COUNT( * ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT - 23 * + + CAST ( - + COUNT ( * ) AS INTEGER )
----
23

query II rowsort
SELECT DISTINCT - 51 * - 48 AS col2, + 91 AS col0
----
2448
91

query I rowsort
SELECT ALL - COALESCE ( - 16, + - 19 ) AS col2
----
16

query I rowsort
SELECT ALL - 42 * + 38 AS col1
----
-1596

query I rowsort
SELECT - ( + - 90 ) * + 68
----
6120

query I rowsort
SELECT DISTINCT - 72 * + 23
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT NULLIF ( + - 75, 90 / + 30 * + 35 ) * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5265
SELECT NULLIF ( + - 75, 90 / + 30 * + 35 ) * - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL - ( + SUM( + 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - ( + SUM ( + 17 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + 33 * + - ( - + COUNT( * ) ) + - 38 * + COUNT( * ) - + + 10 * - 19
----
185

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 33 * + - ( - + COUNT ( * ) ) + - 38 * + COUNT ( * ) - + + 10 * - 19
----
185

query I rowsort
SELECT 69 + 11 * 48 + + 64 AS col1
----
661

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL - + MAX( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - + MAX ( + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL + COUNT( DISTINCT + 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + COUNT ( DISTINCT + 43 ) AS col1
----
1

query I rowsort
SELECT ALL + + 50 * 12 + 58 + - 43 * + - 19 - - 78 * + COALESCE ( 48, + 99 * - 33 ) + 62
----
5281

query I rowsort
SELECT ALL + ( + 70 ) AS col2
----
70

query I rowsort
SELECT - 66 * - 51 * + - 50 + - 18
----
-168318

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL 27 + - + COUNT( * ) - - 57 + - 3
----
80

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL 27 + - + COUNT ( * ) - - 57 + - 3
----
80

query I rowsort
SELECT ALL + 38 + - + 33 * 16
----
-490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * NULLIF ( + - 0, + + 1 / - ( + + 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * NULLIF ( + - 0, + + 1 / - ( + + 45 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL + + COUNT( * ) + ( - + 91 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + + COUNT ( * ) + ( - + 91 ) AS col0
----
-90

query I rowsort
SELECT ALL 95 * + + 96
----
9120

query I rowsort
SELECT DISTINCT 12 * + ( - 58 ) col0
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + SUM( ALL + 1 ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-5280
SELECT + SUM ( ALL + 1 ) + - 24
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) + - 27
----
-26

query II rowsort
SELECT 62 AS col2, 72
----
62
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT + ( - 48 ) + - - CAST( - 66 AS SIGNED ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-5283
SELECT + ( - 48 ) + - - CAST ( - 66 AS INTEGER ) AS col1
----
-114

query II rowsort
SELECT ALL 0, + 1 AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT 99 - + CASE - + 78 WHEN AVG ( + 62 ) * + 50 * 26 THEN - 22 * + 81 - + CASE - 28 WHEN - COUNT( * ) * CASE + ( 42 ) WHEN + 52 THEN NULL WHEN + MIN( + 95 ) * MIN( DISTINCT + - 35 ) - - + 24 * 60 * + 95 * + 25 THEN + - 31 + - 75 * + - 83 * - NULLIF ( - CAST( - + 40 AS SIGNED ), - 24 + - + 39 + + 59 ) ELSE + 38 END - - 75 - 45 - 11 * + 91 + + 28 + - 73 THEN - ( 84 ) + 98 + - 39 END WHEN 45 THEN NULL ELSE 68 * + - 45 END * + 72 + 32
----
220451

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT 99 - + CASE - + 78 WHEN AVG ( + 62 ) * + 50 * 26 THEN - 22 * + 81 - + CASE - 28 WHEN - COUNT ( * ) * CASE + ( 42 ) WHEN + 52 THEN NULL WHEN + MIN ( + 95 ) * MIN ( DISTINCT + - 35 ) - - + 24 * 60 * + 95 * + 25 THEN + - 31 + - 75 * + - 83 * - NULLIF ( - CAST ( - + 40 AS INTEGER ), - 24 + - + 39 + + 59 ) ELSE + 38 END - - 75 - 45 - 11 * + 91 + + 28 + - 73 THEN - ( 84 ) + 98 + - 39 END WHEN 45 THEN NULL ELSE 68 * + - 45 END * + 72 + 32
----
220451

query I rowsort
SELECT + 5 * + 17 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - COALESCE ( + 17, - + 42 * + + 88 + + MAX( + 97 ), COUNT( * ) * + 38 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5287
SELECT - COALESCE ( + 17, - + 42 * + + 88 + + MAX ( + 97 ), COUNT ( * ) * + 38 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT + SUM( + + 46 ) * + 43 + + 9 AS col1
----
1987

skipif mysql # not compatible
query I rowsort label-5288
SELECT + SUM ( + + 46 ) * + 43 + + 9 AS col1
----
1987

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL MAX( ALL + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL MAX ( ALL + 8 ) AS col0
----
8

query I rowsort
SELECT DISTINCT 98 * + 97
----
9506

query I rowsort
SELECT - 69 + + 10 - 72 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL 75 - - 34 + - CASE - 82 WHEN COUNT( ALL - ( + 45 ) ) THEN NULL ELSE - - 94 END AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL 75 - - 34 + - CASE - 82 WHEN COUNT ( ALL - ( + 45 ) ) THEN NULL ELSE - - 94 END AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT - ( - MAX( 2 ) ) col0, 97
----
2
97

skipif mysql # not compatible
query II rowsort label-5293
SELECT - ( - MAX ( 2 ) ) col0, 97
----
2
97

query I rowsort
SELECT + 15 * - 73
----
-1095

query II rowsort
SELECT + 30 AS col0, - 94 AS col0
----
30
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + + COALESCE ( - - 66, - 63 + + COUNT( DISTINCT + + 68 ) )
----
66

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + + COALESCE ( - - 66, - 63 + + COUNT ( DISTINCT + + 68 ) )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + CASE 17 WHEN + COUNT( * ) + + - COUNT( * ) * ( + - 45 ) THEN - 2 - + SUM( DISTINCT 71 ) + - - CASE + 2 WHEN - + 73 * + 13 * + - COALESCE ( + 81, + 25, - - CAST( NULL AS SIGNED ) - 1 + - 3 * - - COUNT( * ) ) THEN + - 8 * - 15 + 39 + 43 ELSE NULL END * + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + CASE 17 WHEN + COUNT ( * ) + + - COUNT ( * ) * ( + - 45 ) THEN - 2 - + SUM ( DISTINCT 71 ) + - - CASE + 2 WHEN - + 73 * + 13 * + - COALESCE ( + 81, + 25, - - CAST ( NULL AS INTEGER ) - 1 + - 3 * - - COUNT ( * ) ) THEN + - 8 * - 15 + 39 + 43 ELSE NULL END * + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + COALESCE ( + - 0, - + SUM( 26 ) * + 33 + - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5298
SELECT + COALESCE ( + - 0, - + SUM ( 26 ) * + 33 + - 50 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + - ( + NULLIF ( 87, - CAST( NULL AS SIGNED ) + - - ( + 60 ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5299
SELECT + - ( + NULLIF ( 87, - CAST ( NULL AS INTEGER ) + - - ( + 60 ) ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL - 34 * + 90 + + NULLIF ( MIN( - + 91 ), + COUNT( * ) )
----
-3151

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - 34 * + 90 + + NULLIF ( MIN ( - + 91 ), + COUNT ( * ) )
----
-3151

query I rowsort
SELECT ALL + 16 * 51 * 78
----
63648

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + COUNT( * ) * 98 + ( + + 38 ) + - 57 - + ( - 7 ) * 81 AS col0
----
646

skipif mysql # not compatible
query I rowsort label-5302
SELECT + COUNT ( * ) * 98 + ( + + 38 ) + - 57 - + ( - 7 ) * 81 AS col0
----
646

query I rowsort
SELECT ALL + 41 * + + 0 + 75 + + COALESCE ( + - 32, 38 ) + - 27 * + 12
----
-281

query I rowsort
SELECT - 85 - + 2 AS col0
----
-87

query II rowsort
SELECT + 55 AS col0, + 31
----
55
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT - + ( - - 69 ) DIV 80 + + 27 - + - 97
----
124

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + ( - - 69 ) / 80 + + 27 - + - 97
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT - CAST( + + 88 AS SIGNED ) + - - 46 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5307
SELECT - CAST ( + + 88 AS INTEGER ) + - - 46 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + COUNT( * ) * - - SUM( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + COUNT ( * ) * - - SUM ( + 83 )
----
83

query I rowsort
SELECT ALL - + 33 * + 0 + - 2 AS col2
----
-2

query I rowsort
SELECT + - ( - 58 ) AS col2
----
58

query II rowsort
SELECT + 83 * 14 AS col1, + 56 * 43
----
1162
2408

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT COUNT( DISTINCT 46 ) AS col1, + 79 AS col2
----
1
79

skipif mysql # not compatible
query II rowsort label-5312
SELECT COUNT ( DISTINCT 46 ) AS col1, + 79 AS col2
----
1
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL + 24 * 52 - - 74 - - 91 + + - COUNT( * ) * - CASE + - SUM( - 86 ) WHEN - CASE + + 81 WHEN - COUNT( * ) * 20 + + - 96 - - + SUM( DISTINCT + 77 ) / + 40 * + + ( + 69 ) THEN NULL ELSE + ( COUNT( * ) ) * - 16 END + + 74 + COALESCE ( CASE - - NULLIF ( - COUNT( * ), + 45 * + 47 ) WHEN - 2 THEN + CASE + ( + ( 18 ) ) WHEN + - ( - MIN( 55 ) ) + - + 22 + - 28 THEN NULL ELSE - + 55 END * ( + ( + 80 ) ) / - - 51 ELSE + MIN( DISTINCT - ( 84 ) ) / + + CAST( 6 AS SIGNED ) END, - + 10 ) * 37 THEN - COUNT( * ) ELSE + 68 END + 39 * - 28 * COUNT( * )
----
389

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + 24 * 52 - - 74 - - 91 + + - COUNT ( * ) * - CASE + - SUM ( - 86 ) WHEN - CASE + + 81 WHEN - COUNT ( * ) * 20 + + - 96 - - + SUM ( DISTINCT + 77 ) / + 40 * + + ( + 69 ) THEN NULL ELSE + ( COUNT ( * ) ) * - 16 END + + 74 + COALESCE ( CASE - - NULLIF ( - COUNT ( * ), + 45 * + 47 ) WHEN - 2 THEN + CASE + ( + ( 18 ) ) WHEN + - ( - MIN ( 55 ) ) + - + 22 + - 28 THEN NULL ELSE - + 55 END * ( + ( + 80 ) ) / - - 51 ELSE + MIN ( DISTINCT - ( 84 ) ) / + + CAST ( 6 AS INTEGER ) END, - + 10 ) * 37 THEN - COUNT ( * ) ELSE + 68 END + 39 * - 28 * COUNT ( * )
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT MIN( ALL - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5314
SELECT MIN ( ALL - 39 )
----
-39

query I rowsort
SELECT ALL 41 * - 27
----
-1107

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - 82 + + COALESCE ( + 47, + COUNT( * ) + 87, 65 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5316
SELECT - 82 + + COALESCE ( + 47, + COUNT ( * ) + 87, 65 ) AS col1
----
-35

query I rowsort
SELECT ALL 93 * - 9 * 14
----
-11718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL + 68 * + + NULLIF ( - + 20, + - 26 * COALESCE ( - CAST( 49 AS SIGNED ), 21 * - + CAST( NULL AS SIGNED ) + - - 87 - - 97 ) + 24 ) col0
----
-1360

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + 68 * + + NULLIF ( - + 20, + - 26 * COALESCE ( - CAST ( 49 AS INTEGER ), 21 * - + CAST ( NULL AS INTEGER ) + - - 87 - - 97 ) + 24 ) col0
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL - ( + 86 ) - + - ( - + 23 ) * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 61 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - ( + 86 ) - + - ( - + 23 ) * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 61 * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT - COALESCE ( - 34, 25 + - 59 + - + 61 + 96 DIV + + 81 + + SUM( - 8 ) * + - ( + 46 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5320
SELECT - COALESCE ( - 34, 25 + - 59 + - + 61 + 96 / + + 81 + + SUM ( - 8 ) * + - ( + 46 ) ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT DISTINCT + 50 * + - 45 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT + 50 * + - 45 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT + CASE WHEN COUNT( * ) <> - CAST( NULL AS SIGNED ) * MAX( + 74 ) * + 42 + - - 99 + - COUNT( * ) - + + 14 THEN NULL ELSE + - 71 * 38 END * - 99 * 84 AS col2
----
22436568

skipif mysql # not compatible
query I rowsort label-5322
SELECT + CASE WHEN COUNT ( * ) <> - CAST ( NULL AS INTEGER ) * MAX ( + 74 ) * + 42 + - - 99 + - COUNT ( * ) - + + 14 THEN NULL ELSE + - 71 * 38 END * - 99 * 84 AS col2
----
22436568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5323
SELECT - ( + 17 ) AS col0, CAST( NULL AS SIGNED ) - 62 AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5323
SELECT - ( + 17 ) AS col0, CAST ( NULL AS INTEGER ) - 62 AS col0
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT - 39 + - - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 39 + - - COUNT ( * )
----
-38

query I rowsort
SELECT + 57 + + 70 col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + COALESCE ( + + 61, + - COUNT( * ) + + + 69 ) * + - 25 - - 92
----
-1433

skipif mysql # not compatible
query I rowsort label-5326
SELECT + COALESCE ( + + 61, + - COUNT ( * ) + + + 69 ) * + - 25 - - 92
----
-1433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5327
SELECT + CAST( NULL AS SIGNED ) * 48 * - + NULLIF ( 57, MIN( ALL - + 5 ) + + 42 ), + COUNT( DISTINCT 78 ) + - - 63 col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5327
SELECT + CAST ( NULL AS INTEGER ) * 48 * - + NULLIF ( 57, MIN ( ALL - + 5 ) + + 42 ), + COUNT ( DISTINCT 78 ) + - - 63 col0
----
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL 27 / + CAST( NULL AS SIGNED ) * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL 27 / + CAST ( NULL AS INTEGER ) * 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT + COALESCE ( - - 16, + 29 ) + 52 + - + ( + 66 ) - ( - ( 74 ) ) + + MAX( + 28 ) DIV 86 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5329
SELECT + COALESCE ( - - 16, + 29 ) + 52 + - + ( + 66 ) - ( - ( 74 ) ) + + MAX ( + 28 ) / 86 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5330
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS DECIMAL ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS REAL ) * + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + 9 + + MIN( + + 40 ) + - 90 * + + ( - 52 ) AS col2
----
4729

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 9 + + MIN ( + + 40 ) + - 90 * + + ( - 52 ) AS col2
----
4729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT ALL - ( - - 16 ) * + - 31 + - SUM( - - 78 ) + - 58 - 29 - 65 DIV + - 44 AS col1
----
332

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - ( - - 16 ) * + - 31 + - SUM ( - - 78 ) + - 58 - 29 - 65 / + - 44 AS col1
----
332

query I rowsort
SELECT + - 17 + + 61 + - + 66 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT ALL + 12 + COUNT( * ) * - - CASE - 7 WHEN + - NULLIF ( + COUNT( * ), - 39 ) THEN NULL ELSE - 98 + + 99 END DIV - 54
----
12

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL + 12 + COUNT ( * ) * - - CASE - 7 WHEN + - NULLIF ( + COUNT ( * ), - 39 ) THEN NULL ELSE - 98 + + 99 END / - 54
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT CAST( NULL AS SIGNED ) * - 93 * - COUNT( * ) + 91 + - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT CAST ( NULL AS INTEGER ) * - 93 * - COUNT ( * ) + 91 + - + 43
----
NULL

query I rowsort
SELECT ALL + 62 + - 80 * - 46 * - ( 95 ) + 33 AS col2
----
-349505

query I rowsort
SELECT - 74 * - 1 + + 66
----
140

query I rowsort
SELECT DISTINCT - ( + ( + 66 ) ) * + + 10 * 73 * 54
----
-2601720

query I rowsort
SELECT - 47 * + + 89 AS col1
----
-4183

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5340
SELECT ALL 86 + - 48 + - - CAST( - 55 AS DECIMAL ) * - CAST( NULL AS SIGNED ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 86 + - 48 + - - CAST ( - 55 AS REAL ) * - CAST ( NULL AS INTEGER ) / 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - SUM( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5341
SELECT - SUM ( DISTINCT - 60 )
----
60

query I rowsort
SELECT - 30 + 99 col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT ALL ( 51 ) + - 55 DIV COUNT( * ) - + + 17 + 17
----
-4

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL ( 51 ) + - 55 / COUNT ( * ) - + + 17 + 17
----
-4

query I rowsort
SELECT 90 * + 8 * - 54 * + 29 + - 5 AS col1
----
-1127525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT - + 86 DIV - 38 - - 57 * - COUNT( * ) + + 36 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5345
SELECT - + 86 / - 38 - - 57 * - COUNT ( * ) + + 36 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + COUNT( DISTINCT + - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-5346
SELECT + COUNT ( DISTINCT + - 13 )
----
1

query I rowsort
SELECT + 97 + - 2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL - COUNT( * ) + + + CAST( NULL AS SIGNED ) + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5349
SELECT ( - - 57 ) AS col2, + CAST( - 74 AS SIGNED )
----
57
-74

skipif mysql # not compatible
query II rowsort label-5349
SELECT ( - - 57 ) AS col2, + CAST ( - 74 AS INTEGER )
----
57
-74

query II rowsort
SELECT 78 * 50 + + 29 * - 16 AS col0, 13 + - 95
----
3436
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT 75 * 22 + - 46 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1603

skipif mysql # not compatible
query I rowsort label-5351
SELECT 75 * 22 + - 46 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1603

query I rowsort
SELECT DISTINCT + + 36 * - ( - 60 ) AS col2
----
2160

query I rowsort
SELECT 58 + - 77 + 94
----
75

query I rowsort
SELECT ALL + 45 - - 38
----
83

query I rowsort
SELECT 29 * + 49 AS col2
----
1421

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5356
SELECT + CAST( - AVG ( DISTINCT + + 55 ) AS DECIMAL ) * - ( + 74 ) * - 39 + NULLIF ( - 96, - 31 + + + 52 * 52 ) + - 17 / - CAST( NULL AS SIGNED ) + 59 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT + CAST ( - AVG ( DISTINCT + + 55 ) AS REAL ) * - ( + 74 ) * - 39 + NULLIF ( - 96, - 31 + + + 52 * 52 ) + - 17 / - CAST ( NULL AS INTEGER ) + 59 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT + 0 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + 0 / + 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT 73 / - - CAST( NULL AS SIGNED ) * - MAX( ALL - + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT 73 / - - CAST ( NULL AS INTEGER ) * - MAX ( ALL - + 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT ALL - 9 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL - 9 / 55
----
0

query I rowsort
SELECT 54 * 49
----
2646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT MIN( DISTINCT + + CAST( + 34 AS SIGNED ) ) + + 45
----
79

skipif mysql # not compatible
query I rowsort label-5361
SELECT MIN ( DISTINCT + + CAST ( + 34 AS INTEGER ) ) + + 45
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + COUNT ( * ) * + 80 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL COUNT( * ) + + COUNT( * ) + SUM( 26 ) * - 87 AS col2
----
-2260

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL COUNT ( * ) + + COUNT ( * ) + SUM ( 26 ) * - 87 AS col2
----
-2260

query I rowsort
SELECT ALL + 38 + - 69 AS col0
----
-31

query II rowsort
SELECT - 29 AS col2, - 57 AS col1
----
-29
-57

query I rowsort
SELECT ALL - 74 + - 44
----
-118

query I rowsort
SELECT ALL 97 + - 62 + + 37 * - 71
----
-2592

query I rowsort
SELECT ALL ( 33 ) + - 69 * - NULLIF ( 72, 6 )
----
5001

query I rowsort
SELECT ALL ( - 31 ) + + ( 93 )
----
62

query I rowsort
SELECT CASE 89 WHEN 55 * 28 THEN 71 ELSE NULL END * - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT MIN( - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5371
SELECT MIN ( - 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT 13 DIV - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT 13 / - 23 AS col0
----
0

query I rowsort
SELECT ALL - 75 + - 75
----
-150

query I rowsort
SELECT DISTINCT 25 - - 13
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL ( COUNT( * ) ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL ( COUNT ( * ) ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 60 - 84 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT 39 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT 39 / + 46
----
0

query I rowsort
SELECT ALL 72 * 90 AS col2
----
6480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT ALL COALESCE ( + 48, + 12 ) * CASE 10 DIV - 38 + COUNT( 92 - 85 ) WHEN + 6 + - 27 THEN NULL WHEN - 72 THEN COALESCE ( + 33, 2 DIV - 84 ) ELSE 9 END
----
432

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL COALESCE ( + 48, + 12 ) * CASE 10 / - 38 + COUNT ( 92 - 85 ) WHEN + 6 + - 27 THEN NULL WHEN - 72 THEN COALESCE ( + 33, 2 / - 84 ) ELSE 9 END
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT - 30 * - 75 + COALESCE ( 40, 89 * 72 + - 75 DIV - COUNT( * ) ) AS col0
----
2290

skipif mysql # not compatible
query I rowsort label-5380
SELECT - 30 * - 75 + COALESCE ( 40, 89 * 72 + - 75 / - COUNT ( * ) ) AS col0
----
2290

query I rowsort
SELECT ( - 39 ) * - 67 AS col1
----
2613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT CAST( SUM( 31 ) AS SIGNED ) + MAX( DISTINCT 0 + 1 * 88 ) * SUM( ALL - ( + 17 ) )
----
-1465

skipif mysql # not compatible
query I rowsort label-5382
SELECT CAST ( SUM ( 31 ) AS INTEGER ) + MAX ( DISTINCT 0 + 1 * 88 ) * SUM ( ALL - ( + 17 ) )
----
-1465

query I rowsort
SELECT DISTINCT ( + 49 ) * - 86
----
-4214

query I rowsort
SELECT ALL 24 - + 71 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT - COUNT( ALL 18 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - COUNT ( ALL 18 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ( + COUNT( * ) ) + COUNT( DISTINCT 64 ) * + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5386
SELECT ( + COUNT ( * ) ) + COUNT ( DISTINCT 64 ) * + 30 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT + MIN( 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5387
SELECT + MIN ( 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT ( - COUNT( * ) ) * MIN( + ( + 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT ( - COUNT ( * ) ) * MIN ( + ( + 14 ) ) AS col2
----
-14

query I rowsort
SELECT ALL + 14 * 50 col1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL - COUNT( + 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - COUNT ( + 29 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 96 * - 49
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL - 5 + NULLIF ( - 38 + MIN( 89 + + ( - 10 ) * 40 ), - 70 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - 5 + NULLIF ( - 38 + MIN ( 89 + + ( - 10 ) * 40 ), - 70 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - 44 THEN - 30 / + MIN( DISTINCT 81 ) + - 25 WHEN 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - 44 THEN - 30 / + MIN ( DISTINCT 81 ) + - 25 WHEN 36 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT MIN( 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT MIN ( 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL - 78 + + CASE + 77 WHEN - 47 * + AVG ( DISTINCT 80 ) THEN - 73 WHEN + CASE 12 WHEN - 34 * + ( 13 ) THEN NULL ELSE + 53 END * - COALESCE ( 89 - + COUNT( ALL + 89 ), 27 * - CASE - 46 WHEN 40 THEN + COALESCE ( 89, ( 40 ) ) ELSE + 1 END ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - 78 + + CASE + 77 WHEN - 47 * + AVG ( DISTINCT 80 ) THEN - 73 WHEN + CASE 12 WHEN - 34 * + ( 13 ) THEN NULL ELSE + 53 END * - COALESCE ( 89 - + COUNT ( ALL + 89 ), 27 * - CASE - 46 WHEN 40 THEN + COALESCE ( 89, ( 40 ) ) ELSE + 1 END ) THEN NULL END
----
NULL

query I rowsort
SELECT 79 * 5 AS col2
----
395

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5397
SELECT DISTINCT - 60 + 38 * - ( CAST( - 74 AS SIGNED ) + + 25 DIV 28 ) AS col2
----
2752

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - 60 + 38 * - ( CAST ( - 74 AS INTEGER ) + + 25 / 28 ) AS col2
----
2752

query I rowsort
SELECT ALL + ( + ( 80 ) ) + 46
----
126

query I rowsort
SELECT ALL - 79 + 99
----
20

query I rowsort
SELECT - 80 - 84 AS col0
----
-164

query I rowsort
SELECT ALL + 15 + + 18
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - + COALESCE ( + 72, + ( + 50 ) ) * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5402
SELECT - + COALESCE ( + 72, + ( + 50 ) ) * COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + 4 + - COUNT( * ) * 78
----
-74

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + 4 + - COUNT ( * ) * 78
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - - 34 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - - 34 / 32
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT ALL - + 99 + NULLIF ( - 0, 72 + + CAST( 32 AS SIGNED ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL - + 99 + NULLIF ( - 0, 72 + + CAST ( 32 AS INTEGER ) ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - 38 + - COALESCE ( - ( ( COUNT( * ) ) ), MAX( ALL CASE 58 WHEN + 82 - 34 THEN + 50 + 85 ELSE NULL END ) * 68 + 45 )
----
-37

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 38 + - COALESCE ( - ( ( COUNT ( * ) ) ), MAX ( ALL CASE 58 WHEN + 82 - 34 THEN + 50 + 85 ELSE NULL END ) * 68 + 45 )
----
-37

query I rowsort
SELECT + 8 * 33
----
264

query I rowsort
SELECT DISTINCT + 38 * + 27
----
1026

query I rowsort
SELECT - ( + 93 ) + + 45
----
-48

query I rowsort
SELECT ALL + - 7 - 85
----
-92

query I rowsort
SELECT ALL 4 - - 53
----
57

query I rowsort
SELECT - - CASE 27 WHEN 23 * 26 THEN - 52 + 47 END * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - 15 * - 6 + COUNT( * ) * - 36
----
54

skipif mysql # not compatible
query I rowsort label-5413
SELECT - 15 * - 6 + COUNT ( * ) * - 36
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - + 22 * ( + COUNT( DISTINCT - 42 ) + 95 ) col2
----
-2112

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + 22 * ( + COUNT ( DISTINCT - 42 ) + 95 ) col2
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT + + 58 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT + + 58 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL + - MAX( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + - MAX ( 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5417
SELECT + ( + COUNT( * ) ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT + ( + COUNT ( * ) ) / 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT ALL 7 DIV - COUNT( ALL 8 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL 7 / - COUNT ( ALL 8 ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT + 77 * - NULLIF ( 31 * 71 - 73 DIV 84, - COUNT( * ) * - 7 )
----
-169477

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 77 * - NULLIF ( 31 * 71 - 73 / 84, - COUNT ( * ) * - 7 )
----
-169477

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + MIN( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5420
SELECT + MIN ( - 33 )
----
-33

query I rowsort
SELECT ALL 70 * - 73 col2
----
-5110

onlyif mysql # DIV for integer division: 
query I rowsort label-5422
SELECT + 76 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 76 / 65
----
1

query I rowsort
SELECT ALL 87 * + 25 + 4
----
2179

query I rowsort
SELECT ALL 35 * + + 90 AS col2
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT + 40 DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT + 40 / 46 AS col0
----
0

query I rowsort
SELECT ALL 24 * + 31 + 31
----
775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT + NULLIF ( - 83, + CAST( NULL AS SIGNED ) ) + - 23 * 90 AS col2
----
-2153

skipif mysql # not compatible
query I rowsort label-5427
SELECT + NULLIF ( - 83, + CAST ( NULL AS INTEGER ) ) + - 23 * 90 AS col2
----
-2153

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT - 83 * - + 41 * - 54 + COUNT( * ) AS col1
----
-183761

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT - 83 * - + 41 * - 54 + COUNT ( * ) AS col1
----
-183761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT CAST( NULL AS SIGNED ) * ( - ( 93 ) ) + CAST( 76 AS SIGNED ) * - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT CAST ( NULL AS INTEGER ) * ( - ( 93 ) ) + CAST ( 76 AS INTEGER ) * - 10 col0
----
NULL

query I rowsort
SELECT DISTINCT - 65 * - 15 * - 85
----
-82875

query I rowsort
SELECT DISTINCT 27 + 47 + 16 * 86 * + 7
----
9706

query I rowsort
SELECT DISTINCT CASE WHEN NOT - AVG ( ALL 79 ) NOT IN ( - 6 ) THEN - 96 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), 79, 48 * 45 )
----
-79

skipif mysql # not compatible
query I rowsort label-5433
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), 79, 48 * 45 )
----
-79

query I rowsort
SELECT - 56 + + 43
----
-13

query I rowsort
SELECT ALL 62 + + + 3
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + MIN( + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + MIN ( + 77 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 0 * + + 2 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT + 22 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 22 / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - CASE - + SUM( NULLIF ( - 68, 37 * 60 ) ) WHEN 54 / + 3 + - COUNT( - NULLIF ( + 24, + 66 ) ) THEN NULL WHEN + 83 + + 21 THEN 42 ELSE NULL END + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT - CASE - + SUM ( NULLIF ( - 68, 37 * 60 ) ) WHEN 54 / + 3 + - COUNT ( - NULLIF ( + 24, + 66 ) ) THEN NULL WHEN + 83 + + 21 THEN 42 ELSE NULL END + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT NULLIF ( + 17, - COUNT( * ) ) col2
----
17

skipif mysql # not compatible
query I rowsort label-5440
SELECT NULLIF ( + 17, - COUNT ( * ) ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL NULLIF ( - + COUNT( * ), 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL NULLIF ( - + COUNT ( * ), 86 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 81 * 96
----
7776

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5443
SELECT ALL + + 71 - + CAST( NULL AS DECIMAL ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + + 71 - + CAST ( NULL AS REAL ) + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT DISTINCT + 1 DIV COUNT( * ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + 1 / COUNT ( * ) / 50
----
0

query I rowsort
SELECT - + ( - 50 ) * - 58 AS col1
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT + MIN( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + MIN ( - 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT - 25 DIV + - COUNT( - 38 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5447
SELECT - 25 / + - COUNT ( - 38 ) AS col1
----
25

query I rowsort
SELECT - 52 - + 63
----
-115

query I rowsort
SELECT ALL - - 91 * + - 55 AS col2
----
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT - - ( - 64 ) * + ( - 10 DIV + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT - - ( - 64 ) * + ( - 10 / + 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT - 4 * + + ( 55 ) + COUNT( * ) * + 22 AS col1
----
-198

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - 4 * + + ( 55 ) + COUNT ( * ) * + 22 AS col1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + SUM( ALL - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5452
SELECT + SUM ( ALL - + 83 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5453
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) + + 8
----
7

query I rowsort
SELECT - 83 * - 78 + + ( 54 ) * + 45
----
8904

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5455
SELECT ALL + CAST( NULL AS SIGNED ), 97 DIV + ( - 14 ) col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-5455
SELECT ALL + CAST ( NULL AS INTEGER ), 97 / + ( - 14 ) col2
----
NULL
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT DISTINCT + COUNT( * ) col2, + COALESCE ( - COALESCE ( + 8, - AVG ( + 42 ), 19 + - 90 ), 83 * COUNT( * ) + ( + ( SUM( 87 ) ) ) ) / CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5456
SELECT DISTINCT + COUNT ( * ) col2, + COALESCE ( - COALESCE ( + 8, - AVG ( + 42 ), 19 + - 90 ), 83 * COUNT ( * ) + ( + ( SUM ( 87 ) ) ) ) / CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT + NULLIF ( 93, + + 37 ) * 97
----
9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT CAST( 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( 26 AS INTEGER )
----
26

query I rowsort
SELECT - 93 + - + ( - 0 ) col1
----
-93

query I rowsort
SELECT DISTINCT 63 + 36
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT 82 + CASE + + CASE + 29 WHEN 42 * - 27 THEN 24 ELSE 99 END WHEN + NULLIF ( 22, + 40 ) THEN + SUM( 27 ) / 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT 82 + CASE + + CASE + 29 WHEN 42 * - 27 THEN 24 ELSE 99 END WHEN + NULLIF ( 22, + 40 ) THEN + SUM ( 27 ) / 41 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL MIN( DISTINCT - 78 ) * + 47
----
-3666

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL MIN ( DISTINCT - 78 ) * + 47
----
-3666

query II rowsort
SELECT 54 col0, ( + 62 ) * + 41
----
54
2542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + 79 + - 68 / - CASE WHEN ( 8 ) <= - COUNT( * ) THEN - 9 END / + NULLIF ( 3 + CASE SUM( + CAST( NULL AS SIGNED ) ) + 51 * 84 WHEN + 61 THEN 40 WHEN - 91 + 68 THEN NULL ELSE 32 END, 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + 79 + - 68 / - CASE WHEN ( 8 ) <= - COUNT ( * ) THEN - 9 END / + NULLIF ( 3 + CASE SUM ( + CAST ( NULL AS INTEGER ) ) + 51 * 84 WHEN + 61 THEN 40 WHEN - 91 + 68 THEN NULL ELSE 32 END, 59 ) AS col1
----
NULL

query II rowsort
SELECT ALL - 63 col0, + 6
----
-63
6

query I rowsort
SELECT ALL 75 + - 93 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT 86 + - + COUNT( * ) + - 2 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT 86 + - + COUNT ( * ) + - 2 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT MIN( - 27 ) - 10 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT MIN ( - 27 ) - 10 AS col1
----
-37

query I rowsort
SELECT ALL 21 * - 54
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT MAX( ALL + 47 ) * + 4 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT MAX ( ALL + 47 ) * + 4 + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT CASE + 35 WHEN + 88 THEN - 18 / MIN( 53 ) ELSE NULL END * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT CASE + 35 WHEN + 88 THEN - 18 / MIN ( 53 ) ELSE NULL END * 11 AS col1
----
NULL

query I rowsort
SELECT - 67 * 31 * - - 77 + 25
----
-159904

query I rowsort
SELECT + 7 - + 77
----
-70

query I rowsort
SELECT 98 * 69
----
6762

query I rowsort
SELECT ALL + 21 - + + 16 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT ALL - - ( + CAST( - 52 AS SIGNED ) ) * 41 AS col1
----
-2132

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - - ( + CAST ( - 52 AS INTEGER ) ) * 41 AS col1
----
-2132

query II rowsort
SELECT - 25 AS col2, + ( - 26 ) + 80 AS col2
----
-25
54

query I rowsort
SELECT - 0 + - + 21 + - + 89 + + 9 * + NULLIF ( 74 + 84, - 37 ) AS col1
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT 98 - - - COUNT( * ) + + + 2 * 18 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-5479
SELECT 98 - - - COUNT ( * ) + + + 2 * 18 AS col0
----
133

query I rowsort
SELECT ALL NULLIF ( - 55, - 67 ) * 95 AS col0
----
-5225

query I rowsort
SELECT + 23 + - + 62 AS col1
----
-39

query I rowsort
SELECT DISTINCT + 94 * 11
----
1034

query I rowsort
SELECT - ( - + ( - 12 ) )
----
-12

query I rowsort
SELECT ALL 10 * + 11 + - 75 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + 50 + + ( COUNT( * ) ) * - 41
----
9

skipif mysql # not compatible
query I rowsort label-5485
SELECT + 50 + + ( COUNT ( * ) ) * - 41
----
9

query I rowsort
SELECT + ( + COALESCE ( + - 79, 48 ) ) + 71
----
-8

query I rowsort
SELECT ALL + 75 + 58 * + 66 * - 86 + + 64 AS col2
----
-329069

query II rowsort
SELECT + 16, + 74 * - - 48 AS col2
----
16
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT 16 DIV - - 46 * - 40 * 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT 16 / - - 46 * - 40 * 8 AS col1
----
0

query I rowsort
SELECT ALL + 55 + 29 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + 17 * - - SUM( + - ( + 31 ) ) * 45 + NULLIF ( 31, 69 / 60 ) * 11 AS col2
----
-23374

skipif mysql # not compatible
query I rowsort label-5491
SELECT + 17 * - - SUM ( + - ( + 31 ) ) * 45 + NULLIF ( 31, 69 / 60 ) * 11 AS col2
----
-23374

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT 55 DIV - 41 + 77 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5492
SELECT 55 / - 41 + 77 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT DISTINCT + 64 DIV COALESCE ( + 86, - COUNT( * ) - NULLIF ( 33, 31 ), - 19 ) * + 88
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + 64 / COALESCE ( + 86, - COUNT ( * ) - NULLIF ( 33, 31 ), - 19 ) * + 88
----
0

query I rowsort
SELECT 63 * - 92
----
-5796

query I rowsort
SELECT ALL + 46 * - NULLIF ( + 40, + + 98 + - 68 )
----
-1840

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT DISTINCT + 37 + COUNT( * ), - 70 + - 97 AS col2
----
38
-167

skipif mysql # not compatible
query II rowsort label-5496
SELECT DISTINCT + 37 + COUNT ( * ), - 70 + - 97 AS col2
----
38
-167

query I rowsort
SELECT DISTINCT - COALESCE ( - 89, + + 58 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5498
SELECT DISTINCT + 65 * - - 93 AS col0, - MAX( 60 ) DIV COUNT( * ) + COUNT( * ) AS col2
----
6045
-59

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT + 65 * - - 93 AS col0, - MAX ( 60 ) / COUNT ( * ) + COUNT ( * ) AS col2
----
6045
-59

query I rowsort
SELECT 92 * - 96 AS col0
----
-8832

query I rowsort
SELECT ALL 34 - + 40 + - ( + 8 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT 14 + + - 49 AS col2, COUNT( * )
----
-35
1

skipif mysql # not compatible
query II rowsort label-5501
SELECT 14 + + - 49 AS col2, COUNT ( * )
----
-35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT COUNT( * ) * 65 * - 32
----
-2080

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( * ) * 65 * - 32
----
-2080

query I rowsort
SELECT ALL - CASE 46 WHEN ( - 32 ) THEN 38 END AS col2
----
NULL

query I rowsort
SELECT 4 + + 41 + 22 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT - CAST( - - 15 AS SIGNED ) * + 14 * - - 74 - 31 AS col0
----
-15571

skipif mysql # not compatible
query I rowsort label-5505
SELECT - CAST ( - - 15 AS INTEGER ) * + 14 * - - 74 - 31 AS col0
----
-15571

query I rowsort
SELECT ALL - COALESCE ( - 48, + 72 * + 43 + 70 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 71 * - AVG ( ALL + 17 ) + + MIN( ALL 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 71 * - AVG ( ALL + 17 ) + + MIN ( ALL 87 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT DISTINCT COALESCE ( - 27, 34 + - - 27 * - COALESCE ( + 44 DIV - ( + 54 ), 79 ) ) - - ( - 51 - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT COALESCE ( - 27, 34 + - - 27 * - COALESCE ( + 44 / - ( + 54 ), 79 ) ) - - ( - 51 - COUNT ( * ) )
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5509
SELECT DISTINCT + 23 DIV 13 col2, CAST( NULL AS SIGNED ) DIV + - 33 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5509
SELECT DISTINCT + 23 / 13 col2, CAST ( NULL AS INTEGER ) / + - 33 AS col0
----
1
NULL

query I rowsort
SELECT - 31 * - COALESCE ( - - 0, 82, - 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT COUNT( * ) + - 70 * 77
----
-5389

skipif mysql # not compatible
query I rowsort label-5511
SELECT COUNT ( * ) + - 70 * 77
----
-5389

query I rowsort
SELECT DISTINCT + + 87 * + - 27
----
-2349

query I rowsort
SELECT + 54 + 22 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT - MIN( CASE + - 56 WHEN - 74 THEN - 95 WHEN 13 / 28 + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MIN ( CASE + - 56 WHEN - 74 THEN - 95 WHEN 13 / 28 + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT COUNT( * ) + CAST( + 64 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5515
SELECT COUNT ( * ) + CAST ( + 64 AS INTEGER )
----
65

query I rowsort
SELECT + 11 * - 78 + 52
----
-806

query I rowsort
SELECT + 81 * - + 83 col0
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL - 65 + + NULLIF ( - ( 84 ), + NULLIF ( + 6, 60 ) * COUNT( * ) + - 85 ) + - COUNT( 33 + + ( ( - 18 ) - + 85 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - 65 + + NULLIF ( - ( 84 ), + NULLIF ( + 6, 60 ) * COUNT ( * ) + - 85 ) + - COUNT ( 33 + + ( ( - 18 ) - + 85 ) )
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT 90 + - 60 * CASE - MIN( ALL 82 ) WHEN + ( + 16 ) * - 8 THEN 36 - - CAST( - ( 83 ) AS SIGNED ) END + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT 90 + - 60 * CASE - MIN ( ALL 82 ) WHEN + ( + 16 ) * - 8 THEN 36 - - CAST ( - ( 83 ) AS INTEGER ) END + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT + - SUM( + - 2 ) + - - 85 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + - SUM ( + - 2 ) + - - 85 AS col1
----
87

query I rowsort
SELECT - 47 * 2 * - - 92 * - - 20 * NULLIF ( ( 52 ), 70 ) AS col0
----
-8993920

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT ALL COUNT( * ) + 31 col0, 13 + - ( + 77 ) * 90
----
32
-6917

skipif mysql # not compatible
query II rowsort label-5522
SELECT ALL COUNT ( * ) + 31 col0, 13 + - ( + 77 ) * 90
----
32
-6917

query I rowsort
SELECT DISTINCT + 46 + - 4 * + + 66
----
-218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT DISTINCT + 66 + - - ( COALESCE ( + CAST( NULL AS SIGNED ), 28 * 29, MAX( DISTINCT - 47 ) + - 53 ) ) AS col0
----
878

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + 66 + - - ( COALESCE ( + CAST ( NULL AS INTEGER ), 28 * 29, MAX ( DISTINCT - 47 ) + - 53 ) ) AS col0
----
878

query I rowsort
SELECT - 14 * 76 AS col1
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT COUNT( + 10 ) * - - COALESCE ( - + 2, 73 ) * 64
----
-128

skipif mysql # not compatible
query I rowsort label-5526
SELECT COUNT ( + 10 ) * - - COALESCE ( - + 2, 73 ) * 64
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - MIN( + NULLIF ( 97, 98 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-5527
SELECT - MIN ( + NULLIF ( 97, 98 ) )
----
-97

query I rowsort
SELECT DISTINCT 53 + + 87
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT ALL 12 + - 85 + + + ( + - COUNT( * ) ) * SUM( - 41 ) DIV 23
----
-72

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL 12 + - 85 + + + ( + - COUNT ( * ) ) * SUM ( - 41 ) / 23
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT CAST( + + SUM( ALL 88 ) AS SIGNED ) - + CAST( - - 23 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5530
SELECT CAST ( + + SUM ( ALL 88 ) AS INTEGER ) - + CAST ( - - 23 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL COUNT( * ) * - + 66 * - MIN( ALL - 73 )
----
-4818

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL COUNT ( * ) * - + 66 * - MIN ( ALL - 73 )
----
-4818

query I rowsort
SELECT DISTINCT 17 * - 96 col2
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL COUNT( * ) * - 97 - + - 10 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL COUNT ( * ) * - 97 - + - 10 AS col2
----
-87

query I rowsort
SELECT - 64 * - ( - + 0 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL - COALESCE ( + 45, + + 9, - + 85 + + 45 - - NULLIF ( + 0 + + 55, - 58 * + COUNT( * ) + 43 ) * - COUNT( * ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - COALESCE ( + 45, + + 9, - + 85 + + 45 - - NULLIF ( + 0 + + 55, - 58 * + COUNT ( * ) + 43 ) * - COUNT ( * ) ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 68 * - + CASE + - 74 WHEN NULLIF ( + 75, 94 ) / - 73 THEN NULL WHEN 21 THEN + 9 / 7 END - 61 * + 53
----
NULL

query I rowsort
SELECT - 40 - - - 51
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT - 81 / + MAX( ALL - CAST( NULL AS SIGNED ) ) + CAST( COUNT( * ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 81 / + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + CAST ( COUNT ( * ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - 16 - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-5539
SELECT - 16 - + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5540
SELECT - 33 * + COALESCE ( + 5, - + COALESCE ( COUNT( * ), 63 + - ( CASE + 22 WHEN 74 THEN + 38 WHEN 29 THEN CASE - 15 WHEN - 25 DIV + 70 THEN NULL ELSE + 44 END * + 5 END + + 57 ) ) + 57, 65 + 9 DIV COUNT( ALL 53 ) )
----
-165

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 33 * + COALESCE ( + 5, - + COALESCE ( COUNT ( * ), 63 + - ( CASE + 22 WHEN 74 THEN + 38 WHEN 29 THEN CASE - 15 WHEN - 25 / + 70 THEN NULL ELSE + 44 END * + 5 END + + 57 ) ) + 57, 65 + 9 / COUNT ( ALL 53 ) )
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT ALL - 16 DIV + 13
----
-1

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 16 / + 13
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT ALL + MIN( DISTINCT + - 99 ) * - - 11 - - - ( + 26 ) DIV + 36 AS col1
----
-1089

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + MIN ( DISTINCT + - 99 ) * - - 11 - - - ( + 26 ) / + 36 AS col1
----
-1089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT + ( + 91 ) * - ( CAST( NULL AS SIGNED ) ) / + 26 + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT + ( + 91 ) * - ( CAST ( NULL AS INTEGER ) ) / + 26 + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - 80 + - 50 * + 32 + - 28 * - 76 * SUM( 48 )
----
100464

skipif mysql # not compatible
query I rowsort label-5544
SELECT - 80 + - 50 * + 32 + - 28 * - 76 * SUM ( 48 )
----
100464

query I rowsort
SELECT - 2 * + 39 * - 80 + + - ( + ( 63 ) ) * 63
----
2271

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT ALL + + 52 * 41 * - + 75 * - - 0 * + 11 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + + 52 * 41 * - + 75 * - - 0 * + 11 / 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - + 45 * - COUNT( * ) + + 6 + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - + 45 * - COUNT ( * ) + + 6 + 38 AS col0
----
NULL

query I rowsort
SELECT - + ( - 30 ) * - 16
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - COALESCE ( - 14, COUNT( * ) ) + + 53 * + MIN( ( - 5 ) ) * - 78
----
20684

skipif mysql # not compatible
query I rowsort label-5549
SELECT - COALESCE ( - 14, COUNT ( * ) ) + + 53 * + MIN ( ( - 5 ) ) * - 78
----
20684

query II rowsort
SELECT - 10, - COALESCE ( + - 20, + 40 ) AS col1
----
-10
20

query I rowsort
SELECT ALL - 69 + + 74
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT - SUM( ALL - + 44 ) - - - 35 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5552
SELECT - SUM ( ALL - + 44 ) - - - 35 AS col1
----
9

query I rowsort
SELECT - 76 * 37 + + 50 - + 59 AS col1
----
-2821

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT - 5 col2, + COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-5554
SELECT - 5 col2, + COUNT ( * )
----
-5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT ALL + 19 + + 4 DIV + 62 - 49 * 26
----
-1255

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + 19 + + 4 / + 62 - 49 * 26
----
-1255

query I rowsort
SELECT ALL + - 80 + 88 * + NULLIF ( + 68, 4 )
----
5904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT ALL CASE + 73 WHEN + + 12 THEN - + 39 DIV - - COUNT( * ) ELSE 29 END * 93
----
2697

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL CASE + 73 WHEN + + 12 THEN - + 39 / - - COUNT ( * ) ELSE 29 END * 93
----
2697

query I rowsort
SELECT ALL - ( - 44 ) + + + COALESCE ( 41, 28 + + 94 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT - - 23 * + CAST( NULL AS SIGNED ) * - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - - 23 * + CAST ( NULL AS INTEGER ) * - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + COUNT( - 14 ) + + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + COUNT ( - 14 ) + + 8 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT - - CAST( + + ( 1 ) AS SIGNED ) + + COALESCE ( - + 48, 87 + 44 * + 18 )
----
-47

skipif mysql # not compatible
query I rowsort label-5561
SELECT - - CAST ( + + ( 1 ) AS INTEGER ) + + COALESCE ( - + 48, 87 + 44 * + 18 )
----
-47

query I rowsort
SELECT + - 73 - + 34
----
-107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5563
SELECT - CASE - + 40 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + - NULLIF ( - - 83, - 92 * 75 ) END
----
83

skipif mysql # not compatible
query I rowsort label-5563
SELECT - CASE - + 40 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + - NULLIF ( - - 83, - 92 * 75 ) END
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT + + ( 88 ) * ( COALESCE ( 37, - 29, 70 ) ) DIV 51 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5564
SELECT + + ( 88 ) * ( COALESCE ( 37, - 29, 70 ) ) / 51 AS col2
----
63

query I rowsort
SELECT ALL + 93 + 22 AS col1
----
115

query I rowsort
SELECT - 94 + - 94
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT + CAST( COUNT( - 3 ) AS SIGNED ) + - 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( COUNT ( - 3 ) AS INTEGER ) + - 75 AS col2
----
-74

query I rowsort
SELECT ALL + 92 - - + 11
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5569
SELECT - CASE WHEN NULL < 60 THEN - + 81 + + + 23 * + + 70 DIV + ( - 86 ) ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5569
SELECT - CASE WHEN NULL < 60 THEN - + 81 + + + 23 * + + 70 / + ( - 86 ) ELSE - COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT + COUNT( * ) + - ( - 74 ) + - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5570
SELECT + COUNT ( * ) + - ( - 74 ) + - - COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( DISTINCT + ( 4 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + ( 4 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT + COUNT( * ) AS col2, 48 * + + 13 AS col1
----
1
624

skipif mysql # not compatible
query II rowsort label-5572
SELECT + COUNT ( * ) AS col2, 48 * + + 13 AS col1
----
1
624

query II rowsort
SELECT DISTINCT + 50 AS col2, + 79 + + - CASE + 2 WHEN - - 34 THEN - 56 WHEN - 1 THEN + 84 END + - 37 AS col0
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT + CAST( - 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5574
SELECT + CAST ( - 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + 92 + COUNT( DISTINCT 62 ) * - 78 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 92 + COUNT ( DISTINCT 62 ) * - 78 AS col1
----
14

query I rowsort
SELECT ALL 98 * 1 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT + 4 * - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 4 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT + 10 * - 29 AS col2
----
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5579
SELECT - 51 * COUNT( * ) + - NULLIF ( - + COUNT( * ), 81 / ( - 45 ) + - 29 / 20 + - 60 ) + NULLIF ( - 36 + + 78, - 52 ) * - NULLIF ( + 38 * 20, - CAST( - COALESCE ( CAST( NULL AS SIGNED ), + 6 ) AS DECIMAL ) * - 93 ) col1
----
-31970

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 51 * COUNT ( * ) + - NULLIF ( - + COUNT ( * ), 81 / ( - 45 ) + - 29 / 20 + - 60 ) + NULLIF ( - 36 + + 78, - 52 ) * - NULLIF ( + 38 * 20, - CAST ( - COALESCE ( CAST ( NULL AS INTEGER ), + 6 ) AS REAL ) * - 93 ) col1
----
-31970

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + 74 * + + ( + ( + SUM( DISTINCT + 70 ) ) ) * + 64 + + COUNT( * ) AS col1
----
331521

skipif mysql # not compatible
query I rowsort label-5580
SELECT + 74 * + + ( + ( + SUM ( DISTINCT + 70 ) ) ) * + 64 + + COUNT ( * ) AS col1
----
331521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5581
SELECT ( - + COALESCE ( - - SUM( - + 44 ), + 85 + CAST( 39 AS SIGNED ) ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5581
SELECT ( - + COALESCE ( - - SUM ( - + 44 ), + 85 + CAST ( 39 AS INTEGER ) ) ) AS col2
----
44

query II rowsort
SELECT ALL + 68 AS col1, 29 AS col1
----
68
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL - - 62 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - - 62 / 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT + 93 AS col1, - COUNT( * ) + ( - COUNT( * ) ) AS col0
----
93
-2

skipif mysql # not compatible
query II rowsort label-5584
SELECT + 93 AS col1, - COUNT ( * ) + ( - COUNT ( * ) ) AS col0
----
93
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT + - MAX( ALL + CAST( NULL AS SIGNED ) ) / + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) / + 59 AS col1
----
NULL

query II rowsort
SELECT - 22 + 5 AS col1, 36 AS col1
----
-17
36

query II rowsort
SELECT 0 AS col0, + 24 * - - 36
----
0
864

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - COUNT( * ) * 94
----
-94

skipif mysql # not compatible
query I rowsort label-5588
SELECT - COUNT ( * ) * 94
----
-94

query I rowsort
SELECT ALL + 14 * + - 68 + + + 20 + + 9
----
-923

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5590
SELECT + 27 AS col1, - CAST( NULL AS DECIMAL ) - + 88 * - COALESCE ( - COUNT( * ), 98 + - COUNT( * ), + 90 ) AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5590
SELECT + 27 AS col1, - CAST ( NULL AS REAL ) - + 88 * - COALESCE ( - COUNT ( * ), 98 + - COUNT ( * ), + 90 ) AS col1
----
27
NULL

query I rowsort
SELECT - 49 * - - 78 + + 30
----
-3792

query II rowsort
SELECT ALL + - 0 * + 87 * + - 79 + + 47 AS col1, + 76 + NULLIF ( 4, + 37 ) * 58
----
47
308

query II rowsort
SELECT ALL + - 77 col1, 17 + + + 55
----
-77
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL + 56 * + CASE + + 15 WHEN + - 88 THEN - 69 ELSE - CAST( NULL AS SIGNED ) END * ( COALESCE ( - ( 53 ), + COUNT( * ) * + 81, 18 ) ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + 56 * + CASE + + 15 WHEN + - 88 THEN - 69 ELSE - CAST ( NULL AS INTEGER ) END * ( COALESCE ( - ( 53 ), + COUNT ( * ) * + 81, 18 ) ) + + 19
----
NULL

query I rowsort
SELECT - - 77 + - 36 * + 8 + + + 20
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT - - 15 * - - SUM( - ( - 36 ) ) AS col1
----
540

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - - 15 * - - SUM ( - ( - 36 ) ) AS col1
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5597
SELECT - 6 col1, - 17 * + + COUNT( + 91 ) DIV - 41 * + + ( + 28 )
----
-6
0

skipif mysql # not compatible
query II rowsort label-5597
SELECT - 6 col1, - 17 * + + COUNT ( + 91 ) / - 41 * + + ( + 28 )
----
-6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT - COUNT( * ), + 6 - 86 AS col1
----
-1
-80

skipif mysql # not compatible
query II rowsort label-5598
SELECT - COUNT ( * ), + 6 - 86 AS col1
----
-1
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT - 5 * - COUNT( * ) + - NULLIF ( - + 43, + - 44 ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 5 * - COUNT ( * ) + - NULLIF ( - + 43, + - 44 ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 7 AS col2, - 69 - - 80
----
7
11

query I rowsort
SELECT ALL - 60 - + - ( + 9 ) + 0 * 60 + + 23
----
-28

query I rowsort
SELECT 89 * + + 90
----
8010

query I rowsort
SELECT DISTINCT 0 * - 52 * + 62 AS col1
----
0

query I rowsort
SELECT ALL CASE 71 WHEN - - 95 THEN 2 * - 52 + + 18 * + 61 END - 56 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 17 * + 54 * 65 * - 93
----
-5549310

query II rowsort
SELECT 2 * - 65 col2, + 53
----
-130
53

onlyif mysql # DIV for integer division: 
query II rowsort label-5607
SELECT ALL - 33 DIV + + 55 AS col0, 71
----
0
71

skipif mysql # not compatible
query II rowsort label-5607
SELECT ALL - 33 / + + 55 AS col0, 71
----
0
71

query I rowsort
SELECT 79 * + + 32
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT - COUNT( * ) * + 22 * COUNT( ALL + + 7 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - COUNT ( * ) * + 22 * COUNT ( ALL + + 7 ) AS col2
----
-22

query I rowsort
SELECT 88 * - 34 * - 9 AS col2
----
26928

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT COUNT( * ) * - 59 * - COUNT( * ) * + + 92
----
5428

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) * - 59 * - COUNT ( * ) * + + 92
----
5428

query I rowsort
SELECT 98 - - 19 AS col1
----
117

query I rowsort
SELECT DISTINCT + 16 * + 40 AS col0
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT 14 * + MIN( ALL - - 29 )
----
406

skipif mysql # not compatible
query I rowsort label-5614
SELECT 14 * + MIN ( ALL - - 29 )
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT - 47 * 90 - - 19 DIV + 40 col0
----
-4230

skipif mysql # not compatible
query I rowsort label-5615
SELECT - 47 * 90 - - 19 / + 40 col0
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 27 * 51 * - + MAX( DISTINCT 90 ) * + - 17 * 53
----
111660930

skipif mysql # not compatible
query I rowsort label-5616
SELECT 27 * 51 * - + MAX ( DISTINCT 90 ) * + - 17 * 53
----
111660930

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL COALESCE ( - ( - 39 ), 19, + + COUNT( + 56 ) + - 53 * - 52 ) + 71 * + 76 col2
----
5435

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COALESCE ( - ( - 39 ), 19, + + COUNT ( + 56 ) + - 53 * - 52 ) + 71 * + 76 col2
----
5435

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - 84 * + 73 + + CASE 84 WHEN + + COUNT( * ) * + + 46 THEN 85 * 47 ELSE NULL END * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT - 84 * + 73 + + CASE 84 WHEN + + COUNT ( * ) * + + 46 THEN 85 * 47 ELSE NULL END * - 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5619
SELECT 19 * - 52 col2, 96 + 43 DIV + + 66
----
-988
96

skipif mysql # not compatible
query II rowsort label-5619
SELECT 19 * - 52 col2, 96 + 43 / + + 66
----
-988
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT + + MAX( ALL - - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5620
SELECT + + MAX ( ALL - - 7 ) AS col2
----
7

query I rowsort
SELECT ALL + 52 + CASE - 52 WHEN 50 THEN 55 ELSE + 44 * + - ( + 40 ) END
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT + COUNT( * ) + + 71 + + - 2 - + 93 * - 17 * 39 - + + NULLIF ( 77, + 30 + + 16 * 44 ) * - 20 AS col2
----
63269

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT + COUNT ( * ) + + 71 + + - 2 - + 93 * - 17 * 39 - + + NULLIF ( 77, + 30 + + 16 * 44 ) * - 20 AS col2
----
63269

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - 78 * - MIN( DISTINCT - + 35 ) * - + 46 + + 22
----
125602

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - 78 * - MIN ( DISTINCT - + 35 ) * - + 46 + + 22
----
125602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT ( COALESCE ( + 85, + CAST( - + 20 AS SIGNED ) + + - 95 ) ) + - + 79
----
6

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT ( COALESCE ( + 85, + CAST ( - + 20 AS INTEGER ) + + - 95 ) ) + - + 79
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL 40 + - MAX( ALL - + 97 ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 40 + - MAX ( ALL - + 97 ) AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + CASE + - 87 WHEN - 31 THEN 21 ELSE 2 END + 98 * + - ( 39 ) * COUNT( * ) - 8
----
-3828

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + CASE + - 87 WHEN - 31 THEN 21 ELSE 2 END + 98 * + - ( 39 ) * COUNT ( * ) - 8
----
-3828

query I rowsort
SELECT ALL 6 - + + 59 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5628
SELECT DISTINCT - 34 DIV 73 * + + COUNT( * ) + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - 34 / 73 * + + COUNT ( * ) + - 81
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT - 30 * - 44 + + COUNT( * ) + + - AVG ( + + 68 ) - 58 + - 96 - COUNT( * ) / CAST( NULL AS SIGNED ) * + 73 * 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT - 30 * - 44 + + COUNT ( * ) + + - AVG ( + + 68 ) - 58 + - 96 - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + 73 * 2 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL + 1 * + + 50 * + 64 - 99 DIV + 61
----
3199

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + 1 * + + 50 * + 64 - 99 / + 61
----
3199

query I rowsort
SELECT + 16 + - 31 * 91 AS col1
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL + CASE + + 27 WHEN 61 * - 75 * MIN( ALL + + 20 ) + - 46 * - 79 THEN NULL WHEN + 98 THEN - COUNT( * ) END - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL + CASE + + 27 WHEN 61 * - 75 * MIN ( ALL + + 20 ) + - 46 * - 79 THEN NULL WHEN + 98 THEN - COUNT ( * ) END - 44
----
NULL

query II rowsort
SELECT 3, + ( 64 ) AS col0
----
3
64

query I rowsort
SELECT 98 - - + 35 * + + 65 AS col0
----
2373

query I rowsort
SELECT DISTINCT - NULLIF ( + 50, 52 ) * - 71
----
3550

query I rowsort
SELECT 8 - 76 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT 18 + + 16 + - 19 AS col1, 17 - 13 + - COUNT( * ) AS col0
----
15
3

skipif mysql # not compatible
query II rowsort label-5637
SELECT 18 + + 16 + - 19 AS col1, 17 - 13 + - COUNT ( * ) AS col0
----
15
3

query I rowsort
SELECT ALL - 29 * 47 AS col2
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT MAX( DISTINCT - 16 ) * 96 / - - CASE + - 48 WHEN 13 * - + 36 * - - 61 + - 67 * + 33 THEN 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT MAX ( DISTINCT - 16 ) * 96 / - - CASE + - 48 WHEN 13 * - + 36 * - - 61 + - 67 * + 33 THEN 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - COUNT( ALL + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-5640
SELECT - COUNT ( ALL + 4 )
----
-1

query I rowsort
SELECT 98 + + - 65
----
33

query II rowsort
SELECT DISTINCT 99 AS col2, + 7
----
99
7

query I rowsort
SELECT 8 + 18 * - 32 + 82
----
-486

query I rowsort
SELECT ALL 87 * + 89
----
7743

onlyif mysql # aggregate syntax: 
query II rowsort label-5645
SELECT ALL COUNT( * ) AS col2, ( - 74 ) AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-5645
SELECT ALL COUNT ( * ) AS col2, ( - 74 ) AS col2
----
1
-74

query I rowsort
SELECT 27 + - - 23
----
50

query I rowsort
SELECT ALL 62 + + + 41 AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 17 DIV - + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT 17 / - + 72 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5649
SELECT + 30 DIV + 37 * - NULLIF ( COALESCE ( 81, - COUNT( * ) ), + - COUNT( * ) ) * + 94 + 79 * 52
----
4108

skipif mysql # not compatible
query I rowsort label-5649
SELECT + 30 / + 37 * - NULLIF ( COALESCE ( 81, - COUNT ( * ) ), + - COUNT ( * ) ) * + 94 + 79 * 52
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5650
SELECT COUNT( * ) AS col0, + 63 * - - 85 DIV ( - + 36 ) DIV - - CASE + 14 WHEN - 68 + - ( COUNT( * ) ) THEN 77 WHEN ( - 65 ) DIV - 55 THEN + 69 WHEN + COUNT( * ) * + 91 THEN NULLIF ( 47, + COUNT( * ) * - CAST( NULL AS SIGNED ) ) * + 57 ELSE + 94 * - 84 END + 52
----
1
52

skipif mysql # not compatible
query II rowsort label-5650
SELECT COUNT ( * ) AS col0, + 63 * - - 85 / ( - + 36 ) / - - CASE + 14 WHEN - 68 + - ( COUNT ( * ) ) THEN 77 WHEN ( - 65 ) / - 55 THEN + 69 WHEN + COUNT ( * ) * + 91 THEN NULLIF ( 47, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) * + 57 ELSE + 94 * - 84 END + 52
----
1
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT + 76 AS col2, - ( - COUNT( * ) ) + + COALESCE ( 26, - COUNT( * ) * - 10 * - + COUNT( * ) ) AS col0
----
76
27

skipif mysql # not compatible
query II rowsort label-5651
SELECT + 76 AS col2, - ( - COUNT ( * ) ) + + COALESCE ( 26, - COUNT ( * ) * - 10 * - + COUNT ( * ) ) AS col0
----
76
27

query I rowsort
SELECT 3 + + 61
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5653
SELECT ALL - + CAST( + - CAST( - 13 AS SIGNED ) AS SIGNED ) * 54 * + CAST( 30 AS SIGNED ) + - COUNT( 89 )
----
-21061

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - + CAST ( + - CAST ( - 13 AS INTEGER ) AS INTEGER ) * 54 * + CAST ( 30 AS INTEGER ) + - COUNT ( 89 )
----
-21061

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - COUNT( * ) * ( - 54 ) + + 15 + 70 + 79
----
218

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - COUNT ( * ) * ( - 54 ) + + 15 + 70 + 79
----
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT - + 70 * + + 94 + - - 27 + 14 + + 62 DIV - - 93 + - MAX( + 24 ) + + 24 * 43
----
-5531

skipif mysql # not compatible
query I rowsort label-5655
SELECT - + 70 * + + 94 + - - 27 + 14 + + 62 / - - 93 + - MAX ( + 24 ) + + 24 * 43
----
-5531

onlyif mysql # aggregate syntax: 
query II rowsort label-5656
SELECT DISTINCT - + 50 AS col0, + SUM( DISTINCT 16 ) + + 28 + 72 AS col2
----
-50
116

skipif mysql # not compatible
query II rowsort label-5656
SELECT DISTINCT - + 50 AS col0, + SUM ( DISTINCT 16 ) + + 28 + 72 AS col2
----
-50
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - + 74 * + 90 * - + COUNT( * ) * + - NULLIF ( - 15, + - 34 )
----
99900

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - + 74 * + 90 * - + COUNT ( * ) * + - NULLIF ( - 15, + - 34 )
----
99900

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + COUNT( * ) + - - 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5658
SELECT + COUNT ( * ) + - - 30 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT + 82 * - 80 - - + NULLIF ( 26, ( - CAST( 51 AS SIGNED ) ) ) * 2 + 80 * 34 + COUNT( * )
----
-3787

skipif mysql # not compatible
query I rowsort label-5659
SELECT + 82 * - 80 - - + NULLIF ( 26, ( - CAST ( 51 AS INTEGER ) ) ) * 2 + 80 * 34 + COUNT ( * )
----
-3787

query I rowsort
SELECT 86 * + + 67 * - 66 + 35
----
-380257

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + + ( COUNT( * ) ) * + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5661
SELECT + + ( COUNT ( * ) ) * + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + + 11 * SUM( + CASE - + 73 WHEN 15 THEN NULL WHEN - - ( 82 ) / + + 69 + - 39 THEN 2 WHEN + 87 THEN 19 ELSE + 44 * 36 END )
----
17424

skipif mysql # not compatible
query I rowsort label-5662
SELECT + + 11 * SUM ( + CASE - + 73 WHEN 15 THEN NULL WHEN - - ( 82 ) / + + 69 + - 39 THEN 2 WHEN + 87 THEN 19 ELSE + 44 * 36 END )
----
17424

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + - 0 + ( - + 16 ) * 89 * - COALESCE ( COUNT( - 51 ), + - 6, + ( 80 ) * - 4, 93 )
----
1424

skipif mysql # not compatible
query I rowsort label-5663
SELECT + - 0 + ( - + 16 ) * 89 * - COALESCE ( COUNT ( - 51 ), + - 6, + ( 80 ) * - 4, 93 )
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COUNT( * ) * + 28 - - 42 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( * ) * + 28 - - 42 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + SUM( + - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + SUM ( + - 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT DISTINCT + 72 * CAST( NULL AS SIGNED ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + 72 * CAST ( NULL AS INTEGER ) * 8 AS col2
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( + + 94, - 55 ) AS col1
----
-94

query I rowsort
SELECT + 14 * - ( - 52 ) * - 1
----
-728

query I rowsort
SELECT ALL 84 * 44 AS col1
----
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + 0 DIV 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT + 0 / 11 AS col2
----
0

query I rowsort
SELECT + ( + 88 ) * - 77
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + 17 + - - 82 + 23 * COUNT( * ) + 20
----
142

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 17 + - - 82 + 23 * COUNT ( * ) + 20
----
142

query I rowsort
SELECT + 81 * 59
----
4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT - CASE + 66 WHEN + ( + ( + 49 ) ) * + - COUNT( ALL - 59 ) * 62 * + 62 * - COUNT( * ) - CAST( NULL AS SIGNED ) THEN NULL WHEN 82 * AVG ( DISTINCT + 0 * + 76 ) THEN - COALESCE ( 82, 38 ) + - ( 5 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - CASE + 66 WHEN + ( + ( + 49 ) ) * + - COUNT ( ALL - 59 ) * 62 * + 62 * - COUNT ( * ) - CAST ( NULL AS INTEGER ) THEN NULL WHEN 82 * AVG ( DISTINCT + 0 * + 76 ) THEN - COALESCE ( 82, 38 ) + - ( 5 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT DISTINCT + 80 * + COUNT( * ) AS col0, 69
----
80
69

skipif mysql # not compatible
query II rowsort label-5675
SELECT DISTINCT + 80 * + COUNT ( * ) AS col0, 69
----
80
69

query I rowsort
SELECT + 21 + 97 + - 7
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT ALL COALESCE ( - 21, - 31 DIV 47 ) * - ( - 0 ) * + 40 + - 11 + - - 95 + - 93 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL COALESCE ( - 21, - 31 / 47 ) * - ( - 0 ) * + 40 + - 11 + - - 95 + - 93 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT - NULLIF ( + 70, - - CAST( NULL AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5678
SELECT - NULLIF ( + 70, - - CAST ( NULL AS INTEGER ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT + 91 - + MAX( 48 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5679
SELECT + 91 - + MAX ( 48 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL - CASE + 59 WHEN + 86 * - 64 / - COUNT( * ) THEN - + 36 + - + NULLIF ( - - 8, - COUNT( * ) / COUNT( * ) ) + SUM( - 9 ) ELSE MIN( 88 ) END + CASE 8 WHEN 5 * - SUM( DISTINCT 44 ) THEN - 8 + 22 WHEN AVG ( ALL 54 ) * - 39 + + COALESCE ( 46, - 39, CASE - 80 WHEN - 52 + + 4 THEN + COUNT( * ) - - 86 WHEN 26 + CAST( NULL AS SIGNED ) THEN - 10 END ) / - 83 THEN - ( 23 ) / - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - CASE + 59 WHEN + 86 * - 64 / - COUNT ( * ) THEN - + 36 + - + NULLIF ( - - 8, - COUNT ( * ) / COUNT ( * ) ) + SUM ( - 9 ) ELSE MIN ( 88 ) END + CASE 8 WHEN 5 * - SUM ( DISTINCT 44 ) THEN - 8 + 22 WHEN AVG ( ALL 54 ) * - 39 + + COALESCE ( 46, - 39, CASE - 80 WHEN - 52 + + 4 THEN + COUNT ( * ) - - 86 WHEN 26 + CAST ( NULL AS INTEGER ) THEN - 10 END ) / - 83 THEN - ( 23 ) / - 24 END
----
NULL

query I rowsort
SELECT - - 47 - - 65 * + ( + 10 ) AS col0
----
697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT COALESCE ( + CAST( - + 45 AS SIGNED ), + 50 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5682
SELECT COALESCE ( + CAST ( - + 45 AS INTEGER ), + 50 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL - ( + 30 ) * + 32 - COUNT( * ) AS col2
----
-961

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - ( + 30 ) * + 32 - COUNT ( * ) AS col2
----
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT DISTINCT + + 1 * - 49 DIV + 59 * - - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT + + 1 * - 49 / + 59 * - - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT COUNT( 8 ), - COUNT( * ) * + 79 + 76 * - 14 + + - 16 + COUNT( * ) * - 39 AS col0
----
1
-1198

skipif mysql # not compatible
query II rowsort label-5685
SELECT COUNT ( 8 ), - COUNT ( * ) * + 79 + 76 * - 14 + + - 16 + COUNT ( * ) * - 39 AS col0
----
1
-1198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5686
SELECT - - CAST( NULL AS DECIMAL ) - 1 * - NULLIF ( COUNT( * ), COUNT( * ) - + 57 * - - 56 + 90 - + + 63 * - CAST( + 35 + - ( + SUM( ALL + 34 ) + - 45 ) * - COUNT( * ) AS SIGNED ) * 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT - - CAST ( NULL AS REAL ) - 1 * - NULLIF ( COUNT ( * ), COUNT ( * ) - + 57 * - - 56 + 90 - + + 63 * - CAST ( + 35 + - ( + SUM ( ALL + 34 ) + - 45 ) * - COUNT ( * ) AS INTEGER ) * 99 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5687
SELECT ALL + 1 DIV - - COALESCE ( - - COUNT( * ), + + 25 ) AS col0, - 66 * 59 + ( 60 ) + SUM( ALL 2 ) + + 1 DIV 85 AS col2
----
1
-3832

skipif mysql # not compatible
query II rowsort label-5687
SELECT ALL + 1 / - - COALESCE ( - - COUNT ( * ), + + 25 ) AS col0, - 66 * 59 + ( 60 ) + SUM ( ALL 2 ) + + 1 / 85 AS col2
----
1
-3832

query I rowsort
SELECT - - 95 * + 14 * - 95
----
-126350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5689
SELECT - - COUNT( * ) DIV + + MAX( ALL 20 )
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT - - COUNT ( * ) / + + MAX ( ALL 20 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + + COUNT( * ) * - + CASE + 62 WHEN + MIN( ALL + - 66 ) * 37 + + ( 57 ) THEN 87 END + - NULLIF ( - 17, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + + COUNT ( * ) * - + CASE + 62 WHEN + MIN ( ALL + - 66 ) * 37 + + ( 57 ) THEN 87 END + - NULLIF ( - 17, 71 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5691
SELECT ALL 29 DIV + 75 AS col1, 99 * 66 * - 52 AS col1
----
0
-339768

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL 29 / + 75 AS col1, 99 * 66 * - 52 AS col1
----
0
-339768

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT - ( + 71 ) DIV + 42 - - 39 col0, + 72 - 57 AS col0
----
38
15

skipif mysql # not compatible
query II rowsort label-5692
SELECT - ( + 71 ) / + 42 - - 39 col0, + 72 - 57 AS col0
----
38
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + 12 * + 58 * COUNT( * ) + + 91 * 70 * - - 42
----
268236

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 12 * + 58 * COUNT ( * ) + + 91 * 70 * - - 42
----
268236

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - - 93 + 74 * + - COALESCE ( 10, + COALESCE ( - 94, - COUNT( DISTINCT - + 73 ) ), COUNT( * ) )
----
-647

skipif mysql # not compatible
query I rowsort label-5694
SELECT - - 93 + 74 * + - COALESCE ( 10, + COALESCE ( - 94, - COUNT ( DISTINCT - + 73 ) ), COUNT ( * ) )
----
-647

query I rowsort
SELECT ALL + ( - 45 ) col0
----
-45

query I rowsort
SELECT - 12 + + 17 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT CASE 44 WHEN ( - 81 ) * 84 THEN 9 * CAST( COUNT( * ) AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT CASE 44 WHEN ( - 81 ) * 84 THEN 9 * CAST ( COUNT ( * ) AS INTEGER ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT + 94 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT + 94 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT - CAST( NULL AS SIGNED ) + - 74 + + MIN( 66 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT - CAST ( NULL AS INTEGER ) + - 74 + + MIN ( 66 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( - 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( - 4 ) AS col2
----
1

query I rowsort
SELECT 2 * + ( + 7 ) + 97 AS col0
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-5702
SELECT ALL + 11 DIV 75 DIV + 23, - ( + - 22 ) * 52 col2
----
0
1144

skipif mysql # not compatible
query II rowsort label-5702
SELECT ALL + 11 / 75 / + 23, - ( + - 22 ) * 52 col2
----
0
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT DISTINCT 73 * + COALESCE ( - + COUNT( * ), 44 * - 96 DIV 7 ) + + 48
----
-25

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT 73 * + COALESCE ( - + COUNT ( * ), 44 * - 96 / 7 ) + + 48
----
-25

query I rowsort
SELECT - 22 + 92 AS col2
----
70

query I rowsort
SELECT + 28 - + 83
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT - NULLIF ( - + 54, + COUNT( * ) ) col2, 39
----
54
39

skipif mysql # not compatible
query II rowsort label-5706
SELECT - NULLIF ( - + 54, + COUNT ( * ) ) col2, 39
----
54
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT - NULLIF ( COALESCE ( + + CAST( NULL AS SIGNED ), + NULLIF ( COUNT( * ), 31 ) ), 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-5707
SELECT - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + NULLIF ( COUNT ( * ), 31 ) ), 53 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + 80 + + + 82 DIV - 78
----
79

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 80 + + + 82 / - 78
----
79

query I rowsort
SELECT ALL 86 + - 36 + 73
----
123

query I rowsort
SELECT + 92 + 52 col0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT - CAST( 43 AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5711
SELECT - CAST ( 43 AS INTEGER ) AS col0
----
-43

query I rowsort
SELECT + 44 + ( 61 ) AS col1
----
105

query I rowsort
SELECT + + 85 * - 50
----
-4250

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT 32 - SUM( - 10 ) * 84 * + COUNT( * ) + + 64 * - + COUNT( * ) AS col1
----
808

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT 32 - SUM ( - 10 ) * 84 * + COUNT ( * ) + + 64 * - + COUNT ( * ) AS col1
----
808

query I rowsort
SELECT + - 99 + + + 38 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT ALL + CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + CAST ( 91 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT - 71 * - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - 71 * - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5718
SELECT - - CAST( - COUNT( * ) AS SIGNED ) + 43
----
42

skipif mysql # not compatible
query I rowsort label-5718
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) + 43
----
42

query I rowsort
SELECT - 3 * 79 * + 52 AS col1
----
-12324

query I rowsort
SELECT ALL - - ( - 90 ) AS col2
----
-90

query I rowsort
SELECT + + 39 * + - 23 + + 15 * + + 58 * + 82 AS col0
----
70443

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT + + 68 AS col0, + MIN( + 75 )
----
68
75

skipif mysql # not compatible
query II rowsort label-5722
SELECT + + 68 AS col0, + MIN ( + 75 )
----
68
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL - COUNT( ALL - 25 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - COUNT ( ALL - 25 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT DISTINCT - 56 DIV - COUNT( * ) + 41 * - NULLIF ( 96, - - 26 - + - 11 )
----
-3880

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - 56 / - COUNT ( * ) + 41 * - NULLIF ( 96, - - 26 - + - 11 )
----
-3880

query I rowsort
SELECT ALL - NULLIF ( 14, 91 / + 35 * AVG ( - 81 ) ) AS col2
----
-14

query I rowsort
SELECT 22 + - COALESCE ( 66, - - CASE - - 7 WHEN - 2 * - + ( + - 21 ) + + 70 THEN 92 END + 66 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT + ( COALESCE ( + CAST( NULL AS SIGNED ), 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-5727
SELECT + ( COALESCE ( + CAST ( NULL AS INTEGER ), 57 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL - SUM( DISTINCT + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL - SUM ( DISTINCT + - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5729
SELECT 6, CASE + + COUNT( * ) WHEN + 44 THEN - + 72 * CAST( - + 1 AS SIGNED ) END * 67 - - 70 * + NULLIF ( + 56, 45 + + 71 * + 5 ) * 37 + 33 AS col2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5729
SELECT 6, CASE + + COUNT ( * ) WHEN + 44 THEN - + 72 * CAST ( - + 1 AS INTEGER ) END * 67 - - 70 * + NULLIF ( + 56, 45 + + 71 * + 5 ) * 37 + 33 AS col2
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL - 70 + - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - 70 + - + COUNT ( * )
----
-71

query I rowsort
SELECT 98 + 54 AS col1
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT ALL - COUNT( * ) AS col1, 9 AS col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-5732
SELECT ALL - COUNT ( * ) AS col1, 9 AS col2
----
-1
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5733
SELECT DISTINCT - CAST( - 46 AS SIGNED ) AS col2, - COUNT( * )
----
46
-1

skipif mysql # not compatible
query II rowsort label-5733
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) AS col2, - COUNT ( * )
----
46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - MIN( + - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - MIN ( + - 84 )
----
84

query II rowsort
SELECT 35 AS col1, - 17
----
35
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - 0 * NULLIF ( 71, COALESCE ( + + 76, + + ( + 50 ), + - 66 ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5736
SELECT - 0 * NULLIF ( 71, COALESCE ( + + 76, + + ( + 50 ), + - 66 ) ) + COUNT ( * )
----
1

query II rowsort
SELECT 43 + - COALESCE ( 36, - 48, - 19 + - ( - 79 ) ) AS col1, + COALESCE ( 98, + 19 * 89 + 41 )
----
7
98

query I rowsort
SELECT 52 + - ( + + 1 )
----
51

query I rowsort
SELECT ALL ( 95 ) + - 94 AS col2
----
1

query II rowsort
SELECT 35 AS col2, + 93 + + + 95
----
35
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT 42 * - ( - CASE 50 WHEN 55 THEN NULL WHEN + 9 + + COUNT( * ) * 10 THEN - 1 / + ( - 84 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT 42 * - ( - CASE 50 WHEN 55 THEN NULL WHEN + 9 + + COUNT ( * ) * 10 THEN - 1 / + ( - 84 ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 * + 52 AS col0
----
4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT ALL + COALESCE ( + 75, - ( - 83 ), - - 73 ) - + CASE + CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) + + 30 THEN 12 END + - - COUNT( * ) * ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + COALESCE ( + 75, - ( - 83 ), - - 73 ) - + CASE + CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) + + 30 THEN 12 END + - - COUNT ( * ) * ( 31 )
----
NULL

query I rowsort
SELECT ALL 21 * 96 AS col0
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT 52 * - - CAST( + MIN( ALL + 5 ) AS SIGNED ) + - + 73 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-5745
SELECT 52 * - - CAST ( + MIN ( ALL + 5 ) AS INTEGER ) + - + 73 AS col1
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT 67 + 25 DIV - 96 * + 38 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5746
SELECT 67 + 25 / - 96 * + 38 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT - CASE + - 64 WHEN + - 59 / - ( MIN( + - 16 ) ) THEN - 85 + - 23 ELSE - - 73 + + + 70 - + - 39 END
----
-182

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - CASE + - 64 WHEN + - 59 / - ( MIN ( + - 16 ) ) THEN - 85 + - 23 ELSE - - 73 + + + 70 - + - 39 END
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + 8 + + NULLIF ( NULLIF ( COUNT( * ), - 84 - - ( - ( + + 73 ) ) ), 78 * + - 93 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 8 + + NULLIF ( NULLIF ( COUNT ( * ), - 84 - - ( - ( + + 73 ) ) ), 78 * + - 93 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5749
SELECT - 17 DIV + - 41 AS col1, CAST( NULL AS SIGNED ) * - + COALESCE ( + ( + - 40 ), - + 51 * + 43 ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5749
SELECT - 17 / + - 41 AS col1, CAST ( NULL AS INTEGER ) * - + COALESCE ( + ( + - 40 ), - + 51 * + 43 ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 88 * + + NULLIF ( + 19, - 67 ) * - - COUNT( * ) * - 41 AS col2
----
-68552

skipif mysql # not compatible
query I rowsort label-5750
SELECT 88 * + + NULLIF ( + 19, - 67 ) * - - COUNT ( * ) * - 41 AS col2
----
-68552

query I rowsort
SELECT 90 - + 22
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT ALL + COUNT( * ), 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL + COUNT ( * ), 31 AS col0
----
1
31

query I rowsort
SELECT 36 - + 2
----
34

query I rowsort
SELECT ALL - 18 * - 60 AS col1
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT ALL - 7 DIV - COALESCE ( + - 33, + 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - 7 / - COALESCE ( + - 33, + 19 ) AS col1
----
0

query I rowsort
SELECT ALL - NULLIF ( ( + + 34 ), 28 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL - 26 + COUNT( * ) * - ( + 76 ) + 54 + - - ( + 19 ) + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL - 26 + COUNT ( * ) * - ( + 76 ) + 54 + - - ( + 19 ) + + COUNT ( * )
----
-28

query II rowsort
SELECT + 37 col0, - 82
----
37
-82

query II rowsort
SELECT ALL - - 50 AS col2, - 94 + - 6 * + + 34
----
50
-298

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT + 71 AS col2, - COUNT( * ) - COUNT( * )
----
71
-2

skipif mysql # not compatible
query II rowsort label-5760
SELECT + 71 AS col2, - COUNT ( * ) - COUNT ( * )
----
71
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT 6 - + 92 DIV - 33 col1
----
8

skipif mysql # not compatible
query I rowsort label-5761
SELECT 6 - + 92 / - 33 col1
----
8

query I rowsort
SELECT - 33 * - 57 AS col0
----
1881

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5763
SELECT 36 * ( CASE - + ( + - ( 60 ) ) WHEN + COUNT( * ) THEN - CASE 99 WHEN 81 + - 48 THEN 2 * 20 WHEN + CAST( NULL AS DECIMAL ) * 85 THEN - 12 WHEN COUNT( * ) - - 88 THEN 81 END + 8 END ) - COUNT( ALL - 40 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT 36 * ( CASE - + ( + - ( 60 ) ) WHEN + COUNT ( * ) THEN - CASE 99 WHEN 81 + - 48 THEN 2 * 20 WHEN + CAST ( NULL AS REAL ) * 85 THEN - 12 WHEN COUNT ( * ) - - 88 THEN 81 END + 8 END ) - COUNT ( ALL - 40 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - ( - - 25 ) + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - ( - - 25 ) + - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT ALL MAX( + + 4 ) + - 0 + - - COUNT( * ) + ( 85 ) / ( + 80 ) * + - ( - - 36 ) * NULLIF ( CASE 67 WHEN 70 THEN 24 * 93 END, 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL MAX ( + + 4 ) + - 0 + - - COUNT ( * ) + ( 85 ) / ( + 80 ) * + - ( - - 36 ) * NULLIF ( CASE 67 WHEN 70 THEN 24 * 93 END, 37 )
----
NULL

query II rowsort
SELECT ALL 70 * 49, 48 * + - 3 AS col1
----
3430
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-5767
SELECT DISTINCT COUNT( * ) + 92 AS col2, 87 AS col0
----
93
87

skipif mysql # not compatible
query II rowsort label-5767
SELECT DISTINCT COUNT ( * ) + 92 AS col2, 87 AS col0
----
93
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5768
SELECT CAST( NULL AS SIGNED ) + + 4 + - 25, - 75 + + 70 AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-5768
SELECT CAST ( NULL AS INTEGER ) + + 4 + - 25, - 75 + + 70 AS col2
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL - CASE + AVG ( - + 60 ) WHEN 46 / + 71 + 3 - + 42 * + CASE ( - 42 ) WHEN ( + 92 ) THEN NULL WHEN COUNT( ALL ( 40 ) ) THEN 73 / 48 ELSE 54 * - 43 END - + SUM( 54 ) THEN NULL ELSE + 48 END
----
-48

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - CASE + AVG ( - + 60 ) WHEN 46 / + 71 + 3 - + 42 * + CASE ( - 42 ) WHEN ( + 92 ) THEN NULL WHEN COUNT ( ALL ( 40 ) ) THEN 73 / 48 ELSE 54 * - 43 END - + SUM ( 54 ) THEN NULL ELSE + 48 END
----
-48

query II rowsort
SELECT DISTINCT - 57 + + 47 col1, ( + - 69 )
----
-10
-69

query I rowsort
SELECT ALL 23 + + - 5 * 21 * 88 col0
----
-9217

query I rowsort
SELECT 33 * - 97
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - CASE - 8 WHEN + ( - + 6 ) THEN - 55 ELSE - + 61 + COUNT( * ) + - 16 * + + 51 END AS col2
----
876

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - CASE - 8 WHEN + ( - + 6 ) THEN - 55 ELSE - + 61 + COUNT ( * ) + - 16 * + + 51 END AS col2
----
876

query I rowsort
SELECT 46 * + 32 AS col1
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL - 39 - - + ( - 98 ) - + 51 * - 82 + 25 + - COALESCE ( + MIN( DISTINCT + 84 ), - - 55 )
----
3986

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - 39 - - + ( - 98 ) - + 51 * - 82 + 25 + - COALESCE ( + MIN ( DISTINCT + 84 ), - - 55 )
----
3986

query I rowsort
SELECT NULLIF ( - 98, - 1 ) + - + 81
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + 16 * + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 16 * + - 94 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 67 * + 93 AS col0
----
-6231

query I rowsort
SELECT 42 + COALESCE ( + 27, - 69, 25 * - 39 ) + 22 * + 80
----
1829

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5780
SELECT 52 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT 52 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT DISTINCT + 22 * + - 7 DIV + 7 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + 22 * + - 7 / + 7 AS col1
----
-22

query I rowsort
SELECT 61 + - 89 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL + 77 / - 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + 77 / - 65 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 - 6 AS col0
----
61

query I rowsort
SELECT - ( + 61 ) + ( + 61 )
----
0

query I rowsort
SELECT 67 * + 38
----
2546

query I rowsort
SELECT + ( 16 ) + + + 61
----
77

query I rowsort
SELECT ALL - 22 * 51 * 53 col1
----
-59466

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - + 58 + + - 53 * COUNT( * ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-5789
SELECT - + 58 + + - 53 * COUNT ( * ) AS col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + 89 * - 86 + - - NULLIF ( + 42, 19 + + ( + 85 ) + + - 40 + + 66 * + - 69 * - COUNT( * ) )
----
-7612

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + 89 * - 86 + - - NULLIF ( + 42, 19 + + ( + 85 ) + + - 40 + + 66 * + - 69 * - COUNT ( * ) )
----
-7612

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT - - 83 + - 78 DIV + 80 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5791
SELECT - - 83 + - 78 / + 80 AS col0
----
83

query I rowsort
SELECT ALL - 78 * - - 31
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL ( - ( + 41 ) ) + - - 79 - COUNT( * ) * - - 47 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL ( - ( + 41 ) ) + - - 79 - COUNT ( * ) * - - 47 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - - 81 + 53 * - COUNT( * ) * 90
----
-4689

skipif mysql # not compatible
query I rowsort label-5794
SELECT - - 81 + 53 * - COUNT ( * ) * 90
----
-4689

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT + + 1 DIV - 97 + + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-5795
SELECT + + 1 / - 97 + + - 26
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT DISTINCT - + MAX( + 30 ) * - 59 + + 22 + COUNT( * ), + MAX( + 9 ) * - COUNT( * ) + - + ( + 44 ) col0
----
1793
-53

skipif mysql # not compatible
query II rowsort label-5796
SELECT DISTINCT - + MAX ( + 30 ) * - 59 + + 22 + COUNT ( * ), + MAX ( + 9 ) * - COUNT ( * ) + - + ( + 44 ) col0
----
1793
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL + - MIN( - 85 ) * 97 * - - 20 * + 33 + 84
----
5441784

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + - MIN ( - 85 ) * 97 * - - 20 * + 33 + 84
----
5441784

query I rowsort
SELECT + NULLIF ( + 27, + 63 )
----
27

query I rowsort
SELECT + + 56 * + 41
----
2296

query I rowsort
SELECT DISTINCT 55 * - 42 + + + 1 * + 36
----
-2274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT DISTINCT + 73 * + 27 * - 39 + - + NULLIF ( - + 76, 82 / CAST( + 50 AS SIGNED ) - - 89 ) AS col1
----
-76793

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT + 73 * + 27 * - 39 + - + NULLIF ( - + 76, 82 / CAST ( + 50 AS INTEGER ) - - 89 ) AS col1
----
-76793

query I rowsort
SELECT 53 * 58 - + 54 * 79
----
-1192

query II rowsort
SELECT DISTINCT + 75 AS col2, - 39 * - 59 * 38 * - - CASE 79 WHEN + 62 THEN NULL WHEN 51 + + 85 THEN 8 + 42 END + + - ( - + 50 ) + - 55 AS col0
----
75
NULL

query I rowsort
SELECT + 67 * 78 + - 66 * - 23 * - + ( - - 32 ) + + - 2
----
-43352

query I rowsort
SELECT ALL - 46 * 50 * - 77 - 63
----
177037

query I rowsort
SELECT + CASE - 39 WHEN + 2 THEN 48 * + + ( + 27 ) + - 85 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + 50 ) col1
----
50

query I rowsort
SELECT ALL COALESCE ( 39, - 48 + + 46 ) * ( 43 ) AS col0
----
1677

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT DISTINCT + 93 AS col1, COUNT( * ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT + 93 AS col1, COUNT ( * ) AS col0
----
93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT DISTINCT COUNT( * ), + 85 - + 25 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-5810
SELECT DISTINCT COUNT ( * ), + 85 - + 25 AS col2
----
1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5811
SELECT + COUNT( * ) DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + COUNT ( * ) / + + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT MAX( DISTINCT - + COALESCE ( 52, + 34 + + 25 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5812
SELECT MAX ( DISTINCT - + COALESCE ( 52, + 34 + + 25 ) ) AS col0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-5813
SELECT - 23 col1, 66 DIV - 41 AS col0
----
-23
-1

skipif mysql # not compatible
query II rowsort label-5813
SELECT - 23 col1, 66 / - 41 AS col0
----
-23
-1

query I rowsort
SELECT ALL + - 0 * + 86 col0
----
0

query I rowsort
SELECT ALL - 93 + - 59 * + 32
----
-1981

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT - COUNT( * ) * - + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - COUNT ( * ) * - + 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT DISTINCT - + 70 * CAST( - + 76 AS SIGNED ) * - ( 41 ) * 38 + + 60 * - 94 * + 15 AS col1
----
-8373160

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - + 70 * CAST ( - + 76 AS INTEGER ) * - ( 41 ) * 38 + + 60 * - 94 * + 15 AS col1
----
-8373160

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - 40 * CASE + COUNT( * ) WHEN 51 THEN + CASE 72 WHEN 21 * - 22 + - 91 THEN NULL WHEN 42 THEN - COUNT( ALL - 19 ) * 40 END * + 51 WHEN 87 + + 87 THEN 4 ELSE 38 * NULLIF ( + 29, - 15 + - COUNT( * ) * + 62 ) END
----
-44080

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 40 * CASE + COUNT ( * ) WHEN 51 THEN + CASE 72 WHEN 21 * - 22 + - 91 THEN NULL WHEN 42 THEN - COUNT ( ALL - 19 ) * 40 END * + 51 WHEN 87 + + 87 THEN 4 ELSE 38 * NULLIF ( + 29, - 15 + - COUNT ( * ) * + 62 ) END
----
-44080

query I rowsort
SELECT + 79 + - 34 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT + + CAST( NULL AS SIGNED ) * + NULLIF ( - COUNT( * ), - - ( - - COALESCE ( CAST( - - 89 AS SIGNED ), - CASE + - COUNT( * ) WHEN 93 THEN 59 * - 65 ELSE NULL END, - 14 * 2 + - 95 * CAST( 60 AS SIGNED ) ) ) * - CAST( NULL AS SIGNED ) ) - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT + + CAST ( NULL AS INTEGER ) * + NULLIF ( - COUNT ( * ), - - ( - - COALESCE ( CAST ( - - 89 AS INTEGER ), - CASE + - COUNT ( * ) WHEN 93 THEN 59 * - 65 ELSE NULL END, - 14 * 2 + - 95 * CAST ( 60 AS INTEGER ) ) ) * - CAST ( NULL AS INTEGER ) ) - - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT - + ( + 81 ) * COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-5821
SELECT - + ( + 81 ) * COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + - COUNT( * ) + - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + - COUNT ( * ) + - 45 AS col1
----
-46

query I rowsort
SELECT - - ( 54 ) AS col0
----
54

query II rowsort
SELECT - - 20 AS col2, + 16 + - 2 + - 55
----
20
-41

query I rowsort
SELECT ( NULLIF ( + - 47, + 29 ) ) AS col2
----
-47

query II rowsort
SELECT DISTINCT + 27, 98 + + + 65 * 27 AS col0
----
27
1853

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT ALL + - 95, - 22 * MIN( 38 ) AS col0
----
-95
-836

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL + - 95, - 22 * MIN ( 38 ) AS col0
----
-95
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5828
SELECT - 38 * - + 67 * - COUNT( * ) + - 39 + - 85 - + 52 * + 26 AS col2, + MAX( + CAST( NULL AS SIGNED ) )
----
-4022
NULL

skipif mysql # not compatible
query II rowsort label-5828
SELECT - 38 * - + 67 * - COUNT ( * ) + - 39 + - 85 - + 52 * + 26 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) )
----
-4022
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT - 51 DIV + - COUNT( * ) - + 84 * + NULLIF ( + 14, + 76 ) AS col0
----
-1125

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - 51 / + - COUNT ( * ) - + 84 * + NULLIF ( + 14, + 76 ) AS col0
----
-1125

query I rowsort
SELECT - 75 * + - 64 * 24 AS col1
----
115200

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + MAX( DISTINCT COALESCE ( + 4, 33 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5831
SELECT + MAX ( DISTINCT COALESCE ( + 4, 33 ) )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT DISTINCT + 74 DIV 1 - + + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + 74 / 1 - + + COUNT ( * ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT DISTINCT 22 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT 22 / + 86 AS col0
----
0

query I rowsort
SELECT ALL 57 * + + 45
----
2565

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - ( - 80 ) DIV 16 * - 2 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - ( - 80 ) / 16 * - 2 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT 77 * COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5836
SELECT 77 * COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT COUNT( DISTINCT - 13 ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-5837
SELECT COUNT ( DISTINCT - 13 ) + + 21
----
22

query I rowsort
SELECT DISTINCT 15 * - COALESCE ( 5, + 93, ( + - 50 ) * + 92 ) AS col0
----
-75

query I rowsort
SELECT DISTINCT + 32 + 68 AS col0
----
100

query I rowsort
SELECT ALL ( - 83 ) + - NULLIF ( + 7, - - 77 )
----
-90

query I rowsort
SELECT ALL ( + 99 ) + 55 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT COUNT( * ) + + COUNT( * ) + + 78
----
80

skipif mysql # not compatible
query I rowsort label-5842
SELECT COUNT ( * ) + + COUNT ( * ) + + 78
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT + 64 * + + 98 * - + CASE + ( + + CAST( NULL AS SIGNED ) ) WHEN + + 68 + - + 74 + - 98 THEN NULL WHEN + ( - + 75 ) THEN + + CAST( NULL AS SIGNED ) * 49 END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT + 64 * + + 98 * - + CASE + ( + + CAST ( NULL AS INTEGER ) ) WHEN + + 68 + - + 74 + - 98 THEN NULL WHEN + ( - + 75 ) THEN + + CAST ( NULL AS INTEGER ) * 49 END + 94
----
NULL

query I rowsort
SELECT 65 + - 24 col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT DISTINCT 12 + - 22 + - - 34 - + 60, - MIN( - - 66 ) AS col1
----
-36
-66

skipif mysql # not compatible
query II rowsort label-5845
SELECT DISTINCT 12 + - 22 + - - 34 - + 60, - MIN ( - - 66 ) AS col1
----
-36
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL + 70 + 85 * COUNT( * ) * 4 + + + 8 + - 21 + 23 * - - 47 + + + 15 + NULLIF ( - + 46, + 18 + + 81 ) + - NULLIF ( 81, 23 ) - - 85 AS col1
----
1451

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + 70 + 85 * COUNT ( * ) * 4 + + + 8 + - 21 + 23 * - - 47 + + + 15 + NULLIF ( - + 46, + 18 + + 81 ) + - NULLIF ( 81, 23 ) - - 85 AS col1
----
1451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5847
SELECT + 60 + - CAST( NULL AS SIGNED ), 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-5847
SELECT + 60 + - CAST ( NULL AS INTEGER ), 7 AS col0
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT 45 * - COUNT( * ) * - - 46 - ( + 13 )
----
-2083

skipif mysql # not compatible
query I rowsort label-5848
SELECT 45 * - COUNT ( * ) * - - 46 - ( + 13 )
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - - MIN( - 75 ) * 57 AS col2
----
-4275

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - - MIN ( - 75 ) * 57 AS col2
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - NULLIF ( + 11, - 48 * COUNT( * ) ) * 45 AS col2
----
-495

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - NULLIF ( + 11, - 48 * COUNT ( * ) ) * 45 AS col2
----
-495

query I rowsort
SELECT - 27 + - 55
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT - + MAX( - + 45 ) AS col1, 3
----
45
3

skipif mysql # not compatible
query II rowsort label-5852
SELECT - + MAX ( - + 45 ) AS col1, 3
----
45
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL + CASE + 63 WHEN 49 THEN - 58 * 82 - + - COALESCE ( 88, 81 * - COALESCE ( + 68, 92 ) / - COUNT( * ), + - 39 ) + - - 79 - 82 * ( 37 ) WHEN + 7 * 12 + 58 THEN NULL END - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + CASE + 63 WHEN 49 THEN - 58 * 82 - + - COALESCE ( 88, 81 * - COALESCE ( + 68, 92 ) / - COUNT ( * ), + - 39 ) + - - 79 - 82 * ( 37 ) WHEN + 7 * 12 + 58 THEN NULL END - + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5854
SELECT + 93 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + 93 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5855
SELECT + SUM( - - CAST( NULL AS SIGNED ) ) / - - AVG ( - 46 ) + + 4 + - - ( + - CAST( - + 8 AS SIGNED ) ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT + SUM ( - - CAST ( NULL AS INTEGER ) ) / - - AVG ( - 46 ) + + 4 + - - ( + - CAST ( - + 8 AS INTEGER ) ) * COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT 46 + - 99 - 1 + 83 DIV + 38 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5856
SELECT 46 + - 99 - 1 + 83 / + 38 AS col0
----
-52

query II rowsort
SELECT 55 + + + 27 + 1, + 64 AS col0
----
83
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - MIN( DISTINCT + ( + 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - MIN ( DISTINCT + ( + 85 ) ) AS col2
----
-85

query I rowsort
SELECT 36 * + 99 * - ( 10 ) * + 12 AS col0
----
-427680

query I rowsort
SELECT DISTINCT + 8 * + 50 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL - MIN( DISTINCT - + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - MIN ( DISTINCT - + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT MAX( DISTINCT 0 ) * + 34
----
0

skipif mysql # not compatible
query I rowsort label-5862
SELECT MAX ( DISTINCT 0 ) * + 34
----
0

query I rowsort
SELECT ALL + 18 * + - 61 AS col0
----
-1098

query I rowsort
SELECT 68 + 41 AS col0
----
109

query I rowsort
SELECT ALL - 91 * + - 66
----
6006

query II rowsort
SELECT 51 * + 91 * - - 12 AS col2, 84 col2
----
55692
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT CAST( NULL AS SIGNED ) * 67 + ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT CAST ( NULL AS INTEGER ) * 67 + ( - 62 )
----
NULL

query I rowsort
SELECT ALL 74 + - 20
----
54

query I rowsort
SELECT 77 * - 0 AS col1
----
0

query I rowsort
SELECT ALL - 34 + - - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT - - ( + - SUM( ( - 88 ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - - ( + - SUM ( ( - 88 ) ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL + - SUM( DISTINCT - + 80 ) + 14
----
94

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + - SUM ( DISTINCT - + 80 ) + 14
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5873
SELECT DISTINCT - 1 * + + CASE - 48 WHEN - 31 THEN - CAST( NULL AS SIGNED ) ELSE MIN( + + 21 ) * - + 66 + - 66 END DIV 26 * COUNT( * ) DIV + 18 - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT - 1 * + + CASE - 48 WHEN - 31 THEN - CAST ( NULL AS INTEGER ) ELSE MIN ( + + 21 ) * - + 66 + - 66 END / 26 * COUNT ( * ) / + 18 - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5874
SELECT ALL - SUM( DISTINCT 7 ) + - 74 + + COUNT( * ) DIV + 93 + - - 31 DIV - SUM( DISTINCT 49 ) AS col0, + 33 - 88 * - 80 + - COALESCE ( - - 48, - 62, - - 1 * 58 )
----
-81
7025

skipif mysql # not compatible
query II rowsort label-5874
SELECT ALL - SUM ( DISTINCT 7 ) + - 74 + + COUNT ( * ) / + 93 + - - 31 / - SUM ( DISTINCT 49 ) AS col0, + 33 - 88 * - 80 + - COALESCE ( - - 48, - 62, - - 1 * 58 )
----
-81
7025

query I rowsort
SELECT - 17 * - + COALESCE ( + - ( 28 ), - 39 ) AS col2
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL 1 + - COALESCE ( - 40, + + COUNT( * ), + ( - - 0 ) * ( - + NULLIF ( 38, 15 * + - 76 + - 4 + 42 ) ) + + 75 ) * - 38 * 37 - - 47 AS col2
----
-56192

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 1 + - COALESCE ( - 40, + + COUNT ( * ), + ( - - 0 ) * ( - + NULLIF ( 38, 15 * + - 76 + - 4 + 42 ) ) + + 75 ) * - 38 * 37 - - 47 AS col2
----
-56192

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5877
SELECT + 50 AS col2, + CAST( NULL AS DECIMAL ) * + 19 + - ( 24 ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-5877
SELECT + 50 AS col2, + CAST ( NULL AS REAL ) * + 19 + - ( 24 ) AS col2
----
50
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT - 57 * - 6 * 35 * - + 25 * 41 - - 86 DIV - 79
----
-12269251

skipif mysql # not compatible
query I rowsort label-5878
SELECT - 57 * - 6 * 35 * - + 25 * 41 - - 86 / - 79
----
-12269251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5879
SELECT - - CASE - 11 WHEN + 57 + 65 * - 11 THEN - 62 * + + ( 93 ) - - COUNT( * ) + ( - + 65 ) WHEN - 10 THEN + COUNT( * ) DIV + 73 + - - 77 ELSE 50 - + 25 END
----
25

skipif mysql # not compatible
query I rowsort label-5879
SELECT - - CASE - 11 WHEN + 57 + 65 * - 11 THEN - 62 * + + ( 93 ) - - COUNT ( * ) + ( - + 65 ) WHEN - 10 THEN + COUNT ( * ) / + 73 + - - 77 ELSE 50 - + 25 END
----
25

query I rowsort
SELECT NULLIF ( - 42, 68 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT ALL 28 + + - CAST( NULL AS SIGNED ) * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL 28 + + - CAST ( NULL AS INTEGER ) * + 25 AS col1
----
NULL

query I rowsort
SELECT 59 * - 12
----
-708

query I rowsort
SELECT ALL + 38 * + - 92
----
-3496

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT DISTINCT 62, - 64 * + COUNT( * ) AS col0
----
62
-64

skipif mysql # not compatible
query II rowsort label-5884
SELECT DISTINCT 62, - 64 * + COUNT ( * ) AS col0
----
62
-64

query I rowsort
SELECT DISTINCT 85 * 83 AS col1
----
7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL CAST( 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL CAST ( 40 AS INTEGER ) AS col0
----
40

query I rowsort
SELECT + 91 + - 8 AS col0
----
83

query I rowsort
SELECT COALESCE ( 93, + 13 * + 55 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5889
SELECT 5 * - + 48 * - 45, + ( - COUNT( * ) ) * + 31 * - 48 col2
----
10800
1488

skipif mysql # not compatible
query II rowsort label-5889
SELECT 5 * - + 48 * - 45, + ( - COUNT ( * ) ) * + 31 * - 48 col2
----
10800
1488

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5890
SELECT ALL 77 AS col2, CAST( NULL AS SIGNED ) + 65 * - - 75 AS col2, + 44
----
77
NULL
44

skipif mysql # not compatible
query III rowsort label-5890
SELECT ALL 77 AS col2, CAST ( NULL AS INTEGER ) + 65 * - - 75 AS col2, + 44
----
77
NULL
44

query I rowsort
SELECT ALL 46 * - 56 * 44 AS col2
----
-113344

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT COUNT( * ) * - + 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5892
SELECT COUNT ( * ) * - + 10 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT CAST( NULL AS SIGNED ) + - 14 + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT CAST ( NULL AS INTEGER ) + - 14 + - 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT 61 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT 61 / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT COUNT( * ) * CAST( - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-5895
SELECT COUNT ( * ) * CAST ( - 82 AS INTEGER )
----
-82

query I rowsort
SELECT COALESCE ( - 73, + 85 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT + 86 DIV 53 col2
----
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT + 86 / 53 col2
----
1

query I rowsort
SELECT COALESCE ( 70, - 74 ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT + 72 * + + 8 / - - 48 - + - 28 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT + 72 * + + 8 / - - 48 - + - 28 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 80 * + + 57
----
-4560

query I rowsort
SELECT ALL 91 * 87 * + 71 + - 78 AS col1
----
562029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT DISTINCT 28 * - - ( + 81 ) * 74 DIV - COUNT( * ) + - COUNT( * ) AS col2
----
-167833

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT 28 * - - ( + 81 ) * 74 / - COUNT ( * ) + - COUNT ( * ) AS col2
----
-167833

query I rowsort
SELECT ALL - 60 * - 97
----
5820

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL COUNT( * ) * 57 + + 85 + + MIN( + 89 )
----
231

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL COUNT ( * ) * 57 + + 85 + + MIN ( + 89 )
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT SUM( DISTINCT + + 84 ) * + 35 - + CAST( - 21 AS SIGNED ) + + 6
----
2967

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT SUM ( DISTINCT + + 84 ) * + 35 - + CAST ( - 21 AS INTEGER ) + + 6
----
2967

query I rowsort
SELECT - 32 + - ( - 33 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT - 9 * + 24 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 9 * + 24 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5908
SELECT ALL + 46 AS col1, + NULLIF ( + 7, - 92 ) + + 39 + + + ( - 11 ) + 93 - - CAST( - 19 AS SIGNED ) * - + 7 + + + ( - + ( - 77 ) )
----
46
338

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL + 46 AS col1, + NULLIF ( + 7, - 92 ) + + 39 + + + ( - 11 ) + 93 - - CAST ( - 19 AS INTEGER ) * - + 7 + + + ( - + ( - 77 ) )
----
46
338

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - 46 + CASE - - 1 WHEN - 39 / - + ( 74 ) THEN - COALESCE ( - 35, - - SUM( ALL - 34 ) ) - 83 * ( - MAX( - ( + 93 ) ) ) * + 76 * 58 + 61 + + 1 WHEN 47 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT - 46 + CASE - - 1 WHEN - 39 / - + ( 74 ) THEN - COALESCE ( - 35, - - SUM ( ALL - 34 ) ) - 83 * ( - MAX ( - ( + 93 ) ) ) * + 76 * 58 + 61 + + 1 WHEN 47 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5910
SELECT - COUNT( * ) * 87 DIV - 83 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5910
SELECT - COUNT ( * ) * 87 / - 83 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT - + 23 * - MIN( - + 20 ) + 33 + + 56 * - 51 * - MIN( + 67 )
----
190925

skipif mysql # not compatible
query I rowsort label-5911
SELECT - + 23 * - MIN ( - + 20 ) + 33 + + 56 * - 51 * - MIN ( + 67 )
----
190925

query I rowsort
SELECT DISTINCT - 12 * + + 47 col1
----
-564

query I rowsort
SELECT ALL ( + - 83 ) AS col0
----
-83

query II rowsort
SELECT DISTINCT - 2 AS col0, - 91
----
-2
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT ALL + COUNT( * ) DIV + MIN( DISTINCT - 70 ) * + 97 + 55 DIV - - 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + COUNT ( * ) / + MIN ( DISTINCT - 70 ) * + 97 + 55 / - - 81 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - + 23 + - 64 + - COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-5916
SELECT - + 23 + - 64 + - COUNT ( * ) col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) - - COUNT( - 18 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) - - COUNT ( - 18 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT + - CAST( + - 85 AS SIGNED ) DIV + - COALESCE ( + + CAST( NULL AS SIGNED ), ( - NULLIF ( 57, + 9 * - - 50 + - 20 ) ) DIV ( - COUNT( * ) ) DIV 24, 8 * - ( + 48 ) + ( - 24 ) ) + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + - CAST ( + - 85 AS INTEGER ) / + - COALESCE ( + + CAST ( NULL AS INTEGER ), ( - NULLIF ( 57, + 9 * - - 50 + - 20 ) ) / ( - COUNT ( * ) ) / 24, 8 * - ( + 48 ) + ( - 24 ) ) + COUNT ( * )
----
-41

query I rowsort
SELECT - 75 * + + 87
----
-6525

query I rowsort
SELECT + 45 + - + 87 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5921
SELECT - - 46 DIV + COUNT( + - 23 ) col0
----
46

skipif mysql # not compatible
query I rowsort label-5921
SELECT - - 46 / + COUNT ( + - 23 ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + + COUNT( * ) * - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5922
SELECT + + COUNT ( * ) * - 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 35 * - 32 AS col1
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT - + ( + COALESCE ( 92, + 38 DIV 14, + 17 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-5924
SELECT - + ( + COALESCE ( 92, + 38 / 14, + 17 ) )
----
-92

query I rowsort
SELECT + - 66 * 98 AS col0
----
-6468

query II rowsort
SELECT ALL ( + 60 ) col1, 71 AS col2
----
60
71

query II rowsort
SELECT DISTINCT - 35 * + 5, + 99 AS col2
----
-175
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL 52 * MIN( ALL + 45 )
----
2340

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 52 * MIN ( ALL + 45 )
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( * ) + 1 col0
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( * ) + 1 col0
----
0

query I rowsort
SELECT - ( - - 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT CAST( SUM( + - 28 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-5931
SELECT CAST ( SUM ( + - 28 ) AS INTEGER )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT + CAST( + 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-5932
SELECT + CAST ( + 94 AS INTEGER )
----
94

query I rowsort
SELECT + CASE + 66 WHEN + + 76 * - 81 THEN NULL WHEN 22 THEN NULL WHEN - 93 THEN - + 89 * - + 79 ELSE - 10 - + + 2 - + - 34 END AS col0
----
22

query II rowsort
SELECT + ( + 78 ) AS col1, - 63 AS col2
----
78
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5935
SELECT DISTINCT 3 DIV + 14 AS col1, COUNT( * ) * + 44 AS col1
----
0
44

skipif mysql # not compatible
query II rowsort label-5935
SELECT DISTINCT 3 / + 14 AS col1, COUNT ( * ) * + 44 AS col1
----
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL + MAX( + - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL + MAX ( + - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT ALL 30 DIV - 32 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL 30 / - 32 + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT DISTINCT 99 DIV 43 + - - 68 DIV + - 14
----
-2

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT 99 / 43 + - - 68 / + - 14
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT 56 * NULLIF ( - MAX( 64 ), - 92 ) col2
----
-3584

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT 56 * NULLIF ( - MAX ( 64 ), - 92 ) col2
----
-3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5940
SELECT + 20 * - + 63 AS col0, ( CASE CASE CAST( + 86 AS DECIMAL ) WHEN - 37 + 53 + + + COUNT( * ) * ( 1 ) * + COALESCE ( - + 81, + + 5, - CASE + + 68 WHEN 98 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) * - 84 THEN NULL WHEN - COUNT( * ) + 64 THEN + 50 + 19 * 14 END WHEN 73 - - 84 THEN NULL ELSE - 14 * - 70 END )
----
-1260
980

skipif mysql # not compatible
query II rowsort label-5940
SELECT + 20 * - + 63 AS col0, ( CASE CASE CAST ( + 86 AS REAL ) WHEN - 37 + 53 + + + COUNT ( * ) * ( 1 ) * + COALESCE ( - + 81, + + 5, - CASE + + 68 WHEN 98 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) * - 84 THEN NULL WHEN - COUNT ( * ) + 64 THEN + 50 + 19 * 14 END WHEN 73 - - 84 THEN NULL ELSE - 14 * - 70 END )
----
-1260
980

query I rowsort
SELECT DISTINCT 74 * - NULLIF ( + 42, + 55 ) * - - 83 + + 91
----
-257873

query I rowsort
SELECT - 82 * + 42 + + 21 * + 88
----
-1596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5943
SELECT + 94 * + 43 * 64 / + 71 / - + CASE 7 WHEN - 38 THEN NULL WHEN - COUNT( * ) + + - CAST( NULL AS DECIMAL ) * - COALESCE ( - + 98, 84 ) THEN + 2 END * + 70 * 8 * + + 1 + - - 87 + 42 * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 94 * + 43 * 64 / + 71 / - + CASE 7 WHEN - 38 THEN NULL WHEN - COUNT ( * ) + + - CAST ( NULL AS REAL ) * - COALESCE ( - + 98, 84 ) THEN + 2 END * + 70 * 8 * + + 1 + - - 87 + 42 * + 36
----
NULL

query I rowsort
SELECT + + 77 * - + 95
----
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + COALESCE ( - 22, + COUNT( ALL + - 93 ) + + 40 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5945
SELECT + COALESCE ( - 22, + COUNT ( ALL + - 93 ) + + 40 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + - ( 39 ) AS col1
----
-39

query II rowsort
SELECT DISTINCT - + 61 * 23 AS col2, - 45 AS col1
----
-1403
-45

query I rowsort
SELECT - NULLIF ( - + 48, + - 42 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL + 56 * + MIN( + + 21 ) + - + 36 * + 71 * CAST( NULL AS SIGNED ) / + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + 56 * + MIN ( + + 21 ) + - + 36 * + 71 * CAST ( NULL AS INTEGER ) / + 95 AS col1
----
NULL

query I rowsort
SELECT - - 12 * ( 55 ) + - + 63 * + 77 AS col1
----
-4191

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - + COUNT( * ) - 22 + 61 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5951
SELECT - + COUNT ( * ) - 22 + 61 * + COUNT ( * )
----
38

query II rowsort
SELECT NULLIF ( 98, + - 84 ) AS col1, 82 * + 22
----
98
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - ( + 66 ) + - COUNT( * ) + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - ( + 66 ) + - COUNT ( * ) + COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT - COUNT( * ) DIV 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5954
SELECT - COUNT ( * ) / 17 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT 58 + - + COUNT( * ) - + NULLIF ( - 6, - + 15 + + + 50 + - - 16 ) * + COUNT( DISTINCT - + 22 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT 58 + - + COUNT ( * ) - + NULLIF ( - 6, - + 15 + + + 50 + - - 16 ) * + COUNT ( DISTINCT - + 22 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT DISTINCT CAST( - 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT CAST ( - 95 AS INTEGER )
----
-95

query I rowsort
SELECT 35 + 10 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT ALL + 59 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + 59 / + 47
----
1

query I rowsort
SELECT DISTINCT - 4 + 73 AS col2
----
69

query II rowsort
SELECT - 40 col2, + ( 22 ) AS col1
----
-40
22

query I rowsort
SELECT ALL 98 + + 20 + + 77
----
195

query I rowsort
SELECT DISTINCT - 5 + + - 96 + + + 2
----
-99

query II rowsort
SELECT 70 + 80 + + 5 + - 51 * + 15 * - 24 * + ( + 30 ) col0, - 17
----
550955
-17

query I rowsort
SELECT ALL 51 * - 59 col1
----
-3009

query II rowsort
SELECT 52 AS col0, - 41 * - - 77 * 6
----
52
-18942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT ALL + 87 + - + CAST( - 92 AS SIGNED ) AS col1
----
179

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 87 + - + CAST ( - 92 AS INTEGER ) AS col1
----
179

query I rowsort
SELECT ALL - 32 + - ( ( ( + - COALESCE ( - 52, + 10 ) ) ) ) + + COALESCE ( + - 1, + 16 + + 52, + 18 ) * - + 38 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT NULLIF ( - + COUNT( + - 55 ), 0 + 90 / 2 ) * - + 73
----
73

skipif mysql # not compatible
query I rowsort label-5968
SELECT NULLIF ( - + COUNT ( + - 55 ), 0 + 90 / 2 ) * - + 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT ALL - 41 col1, - 18 + 75 + COUNT( * )
----
-41
58

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL - 41 col1, - 18 + 75 + COUNT ( * )
----
-41
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL 9 - - - COUNT( DISTINCT + 9 ) + + 41 + 40 + 45 * - ( + 8 ) AS col1
----
-271

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL 9 - - - COUNT ( DISTINCT + 9 ) + + 41 + 40 + 45 * - ( + 8 ) AS col1
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT NULLIF ( - COUNT( * ), + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-5971
SELECT NULLIF ( - COUNT ( * ), + + 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT + 38 * - 30 - 35 - NULLIF ( + COUNT( DISTINCT 93 ), - + 13 * + 55 / COUNT( * ) * 77 + 15 + + NULLIF ( CAST( NULL AS SIGNED ), - 98 ) * + 50 ) * + - 81 + + COUNT( DISTINCT + - 23 )
----
-1093

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 38 * - 30 - 35 - NULLIF ( + COUNT ( DISTINCT 93 ), - + 13 * + 55 / COUNT ( * ) * 77 + 15 + + NULLIF ( CAST ( NULL AS INTEGER ), - 98 ) * + 50 ) * + - 81 + + COUNT ( DISTINCT + - 23 )
----
-1093

query I rowsort
SELECT ALL - - ( 45 ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT - CAST( 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - CAST ( 81 AS INTEGER )
----
-81

query I rowsort
SELECT ALL 94 * + - 41
----
-3854

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT ALL + 51 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + 51 / + 99 AS col1
----
0

query I rowsort
SELECT ALL - - ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + COALESCE ( + + COUNT( * ), 97, 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5978
SELECT + COALESCE ( + + COUNT ( * ), 97, 55 )
----
1

query II rowsort
SELECT DISTINCT - + 56 AS col2, 76 AS col1
----
-56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + COUNT( * ) * + + 46
----
46

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + COUNT ( * ) * + + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + ( 92 ) + + MAX( - 66 ) * 8 * - 5
----
2732

skipif mysql # not compatible
query I rowsort label-5981
SELECT + ( 92 ) + + MAX ( - 66 ) * 8 * - 5
----
2732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5982
SELECT - 62 * + 58 + + - 35 - + MAX( + 26 ) + + NULLIF ( + ( + COUNT( * ) ), - - CAST( NULL AS SIGNED ) ) DIV - 94 * COUNT( DISTINCT + 79 ) * 9
----
-3657

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 62 * + 58 + + - 35 - + MAX ( + 26 ) + + NULLIF ( + ( + COUNT ( * ) ), - - CAST ( NULL AS INTEGER ) ) / - 94 * COUNT ( DISTINCT + 79 ) * 9
----
-3657

query I rowsort
SELECT + 44 + 69
----
113

query II rowsort
SELECT ALL - 24 AS col2, - 88
----
-24
-88

query I rowsort
SELECT + 27 * + 81 + + 73 AS col2
----
2260

query I rowsort
SELECT 14 + - - 51 AS col1
----
65

query II rowsort
SELECT ALL - - 36, + 57 AS col0
----
36
57

query I rowsort
SELECT ALL 40 * - - 59 AS col2
----
2360

query I rowsort
SELECT ALL - + 4 + 22 * - 1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT - 93 + 89 DIV - 95
----
-93

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 93 + 89 / - 95
----
-93

query I rowsort
SELECT ALL 63 + 46 * 64 AS col2
----
3007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT 52 + - CAST( 67 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5992
SELECT 52 + - CAST ( 67 AS INTEGER )
----
-15

query I rowsort
SELECT ALL - 36 + - 42 col2
----
-78

query I rowsort
SELECT 71 + 25 * - 33 AS col1
----
-754

query II rowsort
SELECT DISTINCT + 72 * + 32 AS col2, 6 + - 44 AS col2
----
2304
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT CAST( NULL AS SIGNED ) * + + ( 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT CAST ( NULL AS INTEGER ) * + + ( 54 )
----
NULL

query I rowsort
SELECT 81 + + 92 AS col0
----
173

query I rowsort
SELECT ALL + 63 + 78 AS col1
----
141

query I rowsort
SELECT ALL - 0 + - 74 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT 87 + + 86 + + COUNT( * ) AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT 87 + + 86 + + COUNT ( * ) AS col2
----
174

query I rowsort
SELECT ALL - 0 + - 11 * - 34 * + 57 + + + 53 * - - 83 AS col0
----
25717

query I rowsort
SELECT 60 - - - 89 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT 67 + - COUNT( DISTINCT - 2 ) + + 71 + + + 82 DIV 74
----
138

skipif mysql # not compatible
query I rowsort label-6003
SELECT 67 + - COUNT ( DISTINCT - 2 ) + + 71 + + + 82 / 74
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT 70 * - - 42 DIV + + 42
----
70

skipif mysql # not compatible
query I rowsort label-6004
SELECT 70 * - - 42 / + + 42
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT MIN( - ( + 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT MIN ( - ( + 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - COUNT( * ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - COUNT ( * ) * 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT 86 * + - CASE - COUNT( * ) WHEN 33 + + 39 + - 2 + - COUNT( * ) THEN 9 WHEN COUNT( * ) + + 65 THEN NULL END, 59 - 62 AS col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6007
SELECT 86 * + - CASE - COUNT ( * ) WHEN 33 + + 39 + - 2 + - COUNT ( * ) THEN 9 WHEN COUNT ( * ) + + 65 THEN NULL END, 59 - 62 AS col2
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - 13 * + + 46 - + - ( - NULLIF ( + COUNT( * ), - 97 * - ( + 41 ) + - MIN( DISTINCT - 93 ) + - 90 * + + 0 * 30 + - 40 ) ) * - 20 AS col1
----
-578

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 13 * + + 46 - + - ( - NULLIF ( + COUNT ( * ), - 97 * - ( + 41 ) + - MIN ( DISTINCT - 93 ) + - 90 * + + 0 * 30 + - 40 ) ) * - 20 AS col1
----
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - + COALESCE ( - - 58, - - SUM( - 94 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - + COALESCE ( - - 58, - - SUM ( - 94 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL - + COUNT( + - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - + COUNT ( + - 59 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6011
SELECT ALL + 22 * + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + 22 * + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 62 * + 34
----
2108

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT DISTINCT + 89 * + 57 AS col1, 99 + 43 * + - MIN( - 79 ) * - 99
----
5073
-336204

skipif mysql # not compatible
query II rowsort label-6013
SELECT DISTINCT + 89 * + 57 AS col1, 99 + 43 * + - MIN ( - 79 ) * - 99
----
5073
-336204

query I rowsort
SELECT - 84 + + 51 AS col0
----
-33

query I rowsort
SELECT - 28 * - + 60
----
1680

query I rowsort
SELECT 70 * 36 + + - 39
----
2481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT CAST( + + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6017
SELECT CAST ( + + 10 AS INTEGER )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT DISTINCT + 37 + - CAST( NULL AS SIGNED ) + 97 * - 8 * + + 9 + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + 37 + - CAST ( NULL AS INTEGER ) + 97 * - 8 * + + 9 + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL - 78 + + + NULLIF ( + 84, + 75 ) + + CASE + + NULLIF ( 12, + - 77 ) WHEN 33 THEN NULL WHEN 98 + - NULLIF ( + - COUNT( DISTINCT 89 ), COUNT( * ) ) THEN - + 62 + - + ( + - 10 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - 78 + + + NULLIF ( + 84, + 75 ) + + CASE + + NULLIF ( 12, + - 77 ) WHEN 33 THEN NULL WHEN 98 + - NULLIF ( + - COUNT ( DISTINCT 89 ), COUNT ( * ) ) THEN - + 62 + - + ( + - 10 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT 21 DIV - - 34 + 16
----
16

skipif mysql # not compatible
query I rowsort label-6020
SELECT 21 / - - 34 + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL - 23 + + 98 + - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - 23 + + 98 + - + COUNT ( * )
----
74

query I rowsort
SELECT + 0 * - CASE + 70 WHEN 99 THEN NULL ELSE - 52 END + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + 54 + - COUNT( DISTINCT + + 58 ) * + 82 + 93 + + 53 * - - 88
----
4729

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 54 + - COUNT ( DISTINCT + + 58 ) * + 82 + 93 + + 53 * - - 88
----
4729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT 47 + - CAST( NULL AS SIGNED ) - + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT 47 + - CAST ( NULL AS INTEGER ) - + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - MIN( - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6025
SELECT - MIN ( - 94 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT + 70 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 70 / + 71 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT + 76 DIV - + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT + 76 / - + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL 82 + + CASE + 62 WHEN + 51 * - - 8 - 7 THEN + 14 WHEN - COUNT( * ) THEN NULL END + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL 82 + + CASE + 62 WHEN + 51 * - - 8 - 7 THEN + 14 WHEN - COUNT ( * ) THEN NULL END + - 73 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 + + 44 + 44 + - + 44 AS col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6030
SELECT - CASE - COUNT( * ) WHEN + 45 * - - 38 * - COALESCE ( + + 21, - 99 ) THEN NULL WHEN - 91 + + 93 THEN 53 + - + COALESCE ( 0, 35 * + ( + CAST( + 26 AS DECIMAL ) ) * - 48 + - - 93 ) ELSE NULL END AS col0, 50 + - 72 * COUNT( * ) AS col1
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-6030
SELECT - CASE - COUNT ( * ) WHEN + 45 * - - 38 * - COALESCE ( + + 21, - 99 ) THEN NULL WHEN - 91 + + 93 THEN 53 + - + COALESCE ( 0, 35 * + ( + CAST ( + 26 AS REAL ) ) * - 48 + - - 93 ) ELSE NULL END AS col0, 50 + - 72 * COUNT ( * ) AS col1
----
NULL
-22

query II rowsort
SELECT 2, 89 AS col0
----
2
89

query I rowsort
SELECT DISTINCT 74 * - 60 AS col0
----
-4440

query I rowsort
SELECT + 80 + 18 + - 36
----
62

query I rowsort
SELECT + 97 * - - 1 * 63 AS col1
----
6111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6035
SELECT DISTINCT - 24 * - CASE 42 WHEN - 37 THEN NULL WHEN + 38 THEN - 51 * - 79 - + 96 + + 27 * + CAST( 5 AS SIGNED ) / + 46 + + 31 END, COALESCE ( + 14, - 86, - 71 + + + 33, 16 * - ( 3 ) + 52 ) * 19 col2
----
NULL
266

skipif mysql # not compatible
query II rowsort label-6035
SELECT DISTINCT - 24 * - CASE 42 WHEN - 37 THEN NULL WHEN + 38 THEN - 51 * - 79 - + 96 + + 27 * + CAST ( 5 AS INTEGER ) / + 46 + + 31 END, COALESCE ( + 14, - 86, - 71 + + + 33, 16 * - ( 3 ) + 52 ) * 19 col2
----
NULL
266

query I rowsort
SELECT DISTINCT - 15 * - 70
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL MIN ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT CASE + 12 WHEN + 15 THEN - + NULLIF ( + 27, + + COALESCE ( 98, - - COUNT( * ) ) - - 99 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT CASE + 12 WHEN + 15 THEN - + NULLIF ( + 27, + + COALESCE ( 98, - - COUNT ( * ) ) - - 99 ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - - COALESCE ( - - 53, + 39 ) * + 29 * + 80 + - COUNT( * ) * - 41 AS col1
----
123001

skipif mysql # not compatible
query I rowsort label-6039
SELECT - - COALESCE ( - - 53, + 39 ) * + 29 * + 80 + - COUNT ( * ) * - 41 AS col1
----
123001

query II rowsort
SELECT + 54 col0, - ( + 48 ) AS col0
----
54
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT - 59 * - NULLIF ( + 28, NULLIF ( COUNT( * ), + MIN( ALL 23 ) * CAST( + - 60 AS SIGNED ) ) )
----
1652

skipif mysql # not compatible
query I rowsort label-6041
SELECT - 59 * - NULLIF ( + 28, NULLIF ( COUNT ( * ), + MIN ( ALL 23 ) * CAST ( + - 60 AS INTEGER ) ) )
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - 99 + + - 56 * + + CASE + 41 WHEN + 72 THEN - COUNT( * ) END / 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT - 99 + + - 56 * + + CASE + 41 WHEN + 72 THEN - COUNT ( * ) END / 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT - 12 DIV - + ( + 82 ) * - - COUNT( * ) + - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6043
SELECT - 12 / - + ( + 82 ) * - - COUNT ( * ) + - 58 AS col1
----
-58

query I rowsort
SELECT - 82 * + - 81 AS col0
----
6642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6045
SELECT DISTINCT - 95 * + 20 * - + COUNT( * ) + + 18 + - - 83 + + COUNT( DISTINCT - 98 ) * + - 39 + - 82 + + 41 * + + 94 * COALESCE ( - CAST( + 94 AS SIGNED ), - CASE + 31 WHEN + + 28 + + + 25 * + 90 + 42 THEN - 58 DIV CASE CASE ( 35 ) WHEN - 39 - 34 THEN NULL WHEN 87 THEN 16 * - 26 ELSE NULL END * CAST( NULL AS DECIMAL ) WHEN + 17 * 36 THEN + 54 END ELSE NULL END * 66, COALESCE ( - NULLIF ( CAST( - 24 AS SIGNED ), 25 ), COUNT( * ) ) DIV - COUNT( * ), 5 * - 73 ) * 79 col0
----
-28617924

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - 95 * + 20 * - + COUNT ( * ) + + 18 + - - 83 + + COUNT ( DISTINCT - 98 ) * + - 39 + - 82 + + 41 * + + 94 * COALESCE ( - CAST ( + 94 AS INTEGER ), - CASE + 31 WHEN + + 28 + + + 25 * + 90 + 42 THEN - 58 / CASE CASE ( 35 ) WHEN - 39 - 34 THEN NULL WHEN 87 THEN 16 * - 26 ELSE NULL END * CAST ( NULL AS REAL ) WHEN + 17 * 36 THEN + 54 END ELSE NULL END * 66, COALESCE ( - NULLIF ( CAST ( - 24 AS INTEGER ), 25 ), COUNT ( * ) ) / - COUNT ( * ), 5 * - 73 ) * 79 col0
----
-28617924

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT + SUM( - 26 ) * - 43 AS col0
----
1118

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + SUM ( - 26 ) * - 43 AS col0
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + 67 * + 94 + + MAX( DISTINCT + 94 ) + - MIN( - 11 ) AS col0
----
6403

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + 67 * + 94 + + MAX ( DISTINCT + 94 ) + - MIN ( - 11 ) AS col0
----
6403

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT + 3 DIV + 4 + 76 * - 9
----
-684

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 3 / + 4 + 76 * - 9
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL + 52 * 96 + + ( - CASE - 15 WHEN - 46 * - COALESCE ( + + 14, + 38 + 50 * 36 ) + 44 THEN + + COUNT( * ) * MAX( ALL 14 ) + - 20 WHEN + - MIN( 91 ) THEN NULL WHEN 32 * - ( - 53 ) + + 92 THEN NULL END ) + 90 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + 52 * 96 + + ( - CASE - 15 WHEN - 46 * - COALESCE ( + + 14, + 38 + 50 * 36 ) + 44 THEN + + COUNT ( * ) * MAX ( ALL 14 ) + - 20 WHEN + - MIN ( 91 ) THEN NULL WHEN 32 * - ( - 53 ) + + 92 THEN NULL END ) + 90 * 82
----
NULL

query I rowsort
SELECT ALL + ( - 43 ) AS col1
----
-43

query I rowsort
SELECT - - 38 * 68 col2
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL 99 * + SUM( DISTINCT - 25 ) + - 6 * 42 + 43
----
-2684

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 99 * + SUM ( DISTINCT - 25 ) + - 6 * 42 + 43
----
-2684

onlyif mysql # aggregate syntax: 
query II rowsort label-6053
SELECT DISTINCT - - 82 * + - 54 + + 28 + 15 * + + COUNT( * ) AS col2, + 85 AS col0
----
-4385
85

skipif mysql # not compatible
query II rowsort label-6053
SELECT DISTINCT - - 82 * + - 54 + + 28 + 15 * + + COUNT ( * ) AS col2, + 85 AS col0
----
-4385
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - - 80 * - ( COUNT( * ) ) + + COUNT( * ) - + 2 + 20
----
-61

skipif mysql # not compatible
query I rowsort label-6054
SELECT - - 80 * - ( COUNT ( * ) ) + + COUNT ( * ) - + 2 + 20
----
-61

query I rowsort
SELECT + 84 - 48
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6056
SELECT + CAST( NULL AS SIGNED ) * - 74 - + COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT + CAST ( NULL AS INTEGER ) * - 74 - + COUNT ( * ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 11 + + 89
----
100

query I rowsort
SELECT ALL 59 * + 84 + - + 87 AS col2
----
4869

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT COALESCE ( + 88, + - 23 * + 95 DIV + 52 + + 34, + 83 )
----
88

skipif mysql # not compatible
query I rowsort label-6059
SELECT COALESCE ( + 88, + - 23 * + 95 / + 52 + + 34, + 83 )
----
88

query II rowsort
SELECT DISTINCT + 22 col1, - 75 + - 58 - + 77
----
22
-210

query I rowsort
SELECT DISTINCT 75 * 46 AS col2
----
3450

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT ALL + 35, + ( - COUNT( * ) ) AS col0
----
35
-1

skipif mysql # not compatible
query II rowsort label-6062
SELECT ALL + 35, + ( - COUNT ( * ) ) AS col0
----
35
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT + 84 * + 89 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT + 84 * + 89 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL 96 * 34 - - - 3 DIV - 83 + - + 91 + 17 * - 79 * - 87 AS col2
----
120014

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL 96 * 34 - - - 3 / - 83 + - + 91 + 17 * - 79 * - 87 AS col2
----
120014

query I rowsort
SELECT + 16 + + 9 + 27 * + - 94 AS col2
----
-2513

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT ALL - 2 * NULLIF ( - COALESCE ( + 54, - 75 + - 28, - 77 * + 44 - + - 25 - + - 19 DIV - + 68 * 95 * 40 ), 57 ) - + 1
----
107

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - 2 * NULLIF ( - COALESCE ( + 54, - 75 + - 28, - 77 * + 44 - + - 25 - + - 19 / - + 68 * 95 * 40 ), 57 ) - + 1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + COUNT( * ) * - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6067
SELECT + COUNT ( * ) * - 66 AS col2
----
-66

query I rowsort
SELECT ALL 40 * 27
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - SUM( - - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6069
SELECT - SUM ( - - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 86 + - COUNT ( * )
----
85

query II rowsort
SELECT ALL 92 * - 41 AS col1, - 73 AS col1
----
-3772
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + SUM( ALL - 78 ) * - 48 AS col0
----
3744

skipif mysql # not compatible
query I rowsort label-6072
SELECT + SUM ( ALL - 78 ) * - 48 AS col0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT + 4 * 40 * - 36 * - + COUNT( * )
----
5760

skipif mysql # not compatible
query I rowsort label-6073
SELECT + 4 * 40 * - 36 * - + COUNT ( * )
----
5760

query I rowsort
SELECT + 62 + - 77 * - + 30 AS col1
----
2372

query II rowsort
SELECT ALL 1 AS col1, - 75 AS col0
----
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + 74 * - 2 / + 46 / + 29 / + CASE - 8 WHEN - 25 + 20 THEN - 67 END / 73 / + + COUNT( * ) + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + 74 * - 2 / + 46 / + 29 / + CASE - 8 WHEN - 25 + 20 THEN - 67 END / 73 / + + COUNT ( * ) + 34 AS col1
----
NULL

query II rowsort
SELECT - 39 + - 53 AS col0, 80 col0
----
-92
80

query I rowsort
SELECT DISTINCT 97 * - + 84 * - 45 AS col1
----
366660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT ALL SUM( 34 ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL SUM ( 34 ) / - 49
----
0

query II rowsort
SELECT DISTINCT 61, ( - 77 ) AS col1
----
61
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6081
SELECT DISTINCT 64, + 57 + + + ( + 35 ) - 85 + + NULLIF ( + CAST( - 73 AS SIGNED ), + + 88 + - 32 ) * - CASE + 1 WHEN - + 97 + - COUNT( * ) * + 26 THEN + 90 * 77 * - + ( COUNT( * ) ) WHEN + SUM( DISTINCT - - 35 ) THEN NULL END / 3 + - COUNT( * ) * 88 AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT DISTINCT 64, + 57 + + + ( + 35 ) - 85 + + NULLIF ( + CAST ( - 73 AS INTEGER ), + + 88 + - 32 ) * - CASE + 1 WHEN - + 97 + - COUNT ( * ) * + 26 THEN + 90 * 77 * - + ( COUNT ( * ) ) WHEN + SUM ( DISTINCT - - 35 ) THEN NULL END / 3 + - COUNT ( * ) * 88 AS col0
----
64
NULL

query II rowsort
SELECT 87 AS col0, + 37 - + 16
----
87
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + + MAX( DISTINCT 50 ) + - 46
----
4

skipif mysql # not compatible
query I rowsort label-6083
SELECT + + MAX ( DISTINCT 50 ) + - 46
----
4

query I rowsort
SELECT - + 78 + - 84 * - 45 * - ( + 23 ) AS col2
----
-87018

query I rowsort
SELECT DISTINCT + 72 * 51
----
3672

query II rowsort
SELECT 63 AS col0, 26 * - 45 + 95 AS col2
----
63
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - - ( - 48 ) + + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6087
SELECT - - ( - 48 ) + + COUNT ( * ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT - + 28 * + - CASE + MAX( DISTINCT CAST( + 97 AS SIGNED ) ) WHEN CAST( - AVG ( ALL - 73 ) AS SIGNED ) THEN NULL WHEN + + 0 THEN NULL ELSE - - 8 END
----
224

skipif mysql # not compatible
query I rowsort label-6088
SELECT - + 28 * + - CASE + MAX ( DISTINCT CAST ( + 97 AS INTEGER ) ) WHEN CAST ( - AVG ( ALL - 73 ) AS INTEGER ) THEN NULL WHEN + + 0 THEN NULL ELSE - - 8 END
----
224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6089
SELECT ALL + 20 DIV - ( - - 89 ) + + + COALESCE ( + - CAST( NULL AS SIGNED ), 54, 73 * 94, + 39 ) * + - 82 * + 1
----
-4428

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + 20 / - ( - - 89 ) + + + COALESCE ( + - CAST ( NULL AS INTEGER ), 54, 73 * 94, + 39 ) * + - 82 * + 1
----
-4428

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT + - 28 DIV - 36 + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + - 28 / - 36 + - 86
----
-86

query I rowsort
SELECT - - 55 * - 59 * - 94 + + 93
----
305123

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT ALL + 98 DIV - 42 + - ( - - 99 ) + + - 20 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + 98 / - 42 + - ( - - 99 ) + + - 20 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL + 78 * + COUNT( * ) col1
----
78

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + 78 * + COUNT ( * ) col1
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( + - 21, + 62 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + - 18 + - - CASE + 4 WHEN + - 29 + 58 / - COUNT( * ) THEN NULL WHEN + + 49 * 27 THEN - + 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + - 18 + - - CASE + 4 WHEN + - 29 + 58 / - COUNT ( * ) THEN NULL WHEN + + 49 * 27 THEN - + 22 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT - MAX( 65 ) + 2 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT - MAX ( 65 ) + 2 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL + SUM( 90 ) + ( 17 ) + - 39 * + - 80 AS col0
----
3227

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + SUM ( 90 ) + ( 17 ) + - 39 * + - 80 AS col0
----
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - - MAX( + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - - MAX ( + 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT MIN( + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6099
SELECT MIN ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT + 88 * - 87 + - - 32 + COALESCE ( - 76, - 53, - 59 ) - - COUNT( * ) + - - 76
----
-7623

skipif mysql # not compatible
query I rowsort label-6100
SELECT + 88 * - 87 + - - 32 + COALESCE ( - 76, - 53, - 59 ) - - COUNT ( * ) + - - 76
----
-7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT + - CAST( CASE - 58 WHEN - COUNT( * ) THEN NULL WHEN 14 THEN 40 WHEN + 27 * + 9 THEN NULL ELSE + 7 - 82 * 28 * + ( - 2 ) * - 44 - - 27 END AS SIGNED )
----
202014

skipif mysql # not compatible
query I rowsort label-6101
SELECT + - CAST ( CASE - 58 WHEN - COUNT ( * ) THEN NULL WHEN 14 THEN 40 WHEN + 27 * + 9 THEN NULL ELSE + 7 - 82 * 28 * + ( - 2 ) * - 44 - - 27 END AS INTEGER )
----
202014

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + 40 * - MIN( - 32 ) AS col1
----
1280

skipif mysql # not compatible
query I rowsort label-6102
SELECT + 40 * - MIN ( - 32 ) AS col1
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT 61 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT 61 / + 91
----
0

query I rowsort
SELECT ALL - 41 * + - CASE + 93 WHEN - 91 THEN NULL ELSE + + NULLIF ( 57, - 60 / 90 / 78 ) END AS col2
----
2337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6105
SELECT DISTINCT + SUM( ALL + - 96 ) - - CAST( NULL AS DECIMAL ) * 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT + SUM ( ALL + - 96 ) - - CAST ( NULL AS REAL ) * 23 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL COUNT( * ) - + + 97
----
-96

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL COUNT ( * ) - + + 97
----
-96

query I rowsort
SELECT ALL - 41 * COALESCE ( 7, - 51 ) AS col0
----
-287

query I rowsort
SELECT 61 - ( 39 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 96 * - MIN( DISTINCT + 57 )
----
-5472

skipif mysql # not compatible
query I rowsort label-6109
SELECT 96 * - MIN ( DISTINCT + 57 )
----
-5472

query I rowsort
SELECT 95 - 94 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL COALESCE ( COUNT( * ), + 45 * + + 19 + - + 85 ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COALESCE ( COUNT ( * ), + 45 * + + 19 + - + 85 ) * + 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT COUNT( * ) * 1 * 12 * MAX( DISTINCT + 19 ) DIV ( - 33 ) * - COUNT( * ) * COALESCE ( + 65, - 97 )
----
390

skipif mysql # not compatible
query I rowsort label-6112
SELECT COUNT ( * ) * 1 * 12 * MAX ( DISTINCT + 19 ) / ( - 33 ) * - COUNT ( * ) * COALESCE ( + 65, - 97 )
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT + 97 + + 62 * - + 57 + - ( + 40 ) + + 96 - CASE - COUNT( * ) WHEN 81 * + 68 + + - 87 + - + 18 + 96 THEN + 52 WHEN - 41 - - 76 * + 34 THEN NULL WHEN 2 THEN NULL END + + 94 * ( 25 ) * - 82 * ( MAX( - 23 ) * - 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + 97 + + 62 * - + 57 + - ( + 40 ) + + 96 - CASE - COUNT ( * ) WHEN 81 * + 68 + + - 87 + - + 18 + 96 THEN + 52 WHEN - 41 - - 76 * + 34 THEN NULL WHEN 2 THEN NULL END + + 94 * ( 25 ) * - 82 * ( MAX ( - 23 ) * - 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT 95 + COUNT( * ) * - MIN( 61 ) + - + 73 + - + 75 + - 18 * + 77 AS col2
----
-1500

skipif mysql # not compatible
query I rowsort label-6114
SELECT 95 + COUNT ( * ) * - MIN ( 61 ) + - + 73 + - + 75 + - 18 * + 77 AS col2
----
-1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + 72 + - SUM( + 4 )
----
68

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 72 + - SUM ( + 4 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT 24 - + CASE - + 42 WHEN + ( - + 48 ) + + MIN( ALL - ( + 1 ) ) THEN 36 ELSE + 4 END
----
20

skipif mysql # not compatible
query I rowsort label-6117
SELECT 24 - + CASE - + 42 WHEN + ( - + 48 ) + + MIN ( ALL - ( + 1 ) ) THEN 36 ELSE + 4 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - + COALESCE ( + - COUNT( * ), 33 * 11, + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT - + COALESCE ( + - COUNT ( * ), 33 * 11, + 9 )
----
1

query I rowsort
SELECT 55 * - + 46 AS col1
----
-2530

query I rowsort
SELECT DISTINCT NULLIF ( - + 51, 65 * + ( - 31 ) * + 30 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL 34 + + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL 34 + + COUNT ( * ) AS col2
----
35

query I rowsort
SELECT ALL - 93 + COALESCE ( 6, - - 31 ) col2
----
-87

query II rowsort
SELECT - 21 + + + 55, + COALESCE ( - CASE - 53 WHEN 21 THEN 23 * 90 * - 37 + 39 ELSE NULL END, - 58 ) AS col1
----
34
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL 61 DIV 34 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL 61 / 34 / + - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL - 91 + - MAX( ALL 79 )
----
-170

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - 91 + - MAX ( ALL 79 )
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6126
SELECT 11 DIV - 46 * - 42 * 2 DIV - 40 + - COUNT( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6126
SELECT 11 / - 46 * - 42 * 2 / - 40 + - COUNT ( + 51 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6127
SELECT + 53 * + MAX( ALL + 22 ), + 60 - - NULLIF ( - 3, 55 ) - + 64 AS col2
----
1166
-7

skipif mysql # not compatible
query II rowsort label-6127
SELECT + 53 * + MAX ( ALL + 22 ), + 60 - - NULLIF ( - 3, 55 ) - + 64 AS col2
----
1166
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL COUNT( * ) - - COUNT( * ) + + 16 * + ( - - COALESCE ( + - 89, - + 65, - 17 ) ) * - 39
----
55538

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL COUNT ( * ) - - COUNT ( * ) + + 16 * + ( - - COALESCE ( + - 89, - + 65, - 17 ) ) * - 39
----
55538

query I rowsort
SELECT + 32 * - + 30 - 42 AS col0
----
-1002

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL - - SUM( ALL - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - - SUM ( ALL - + 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT + 44 * - 17 * - - COUNT( * ) - + 70 - + + 88 AS col1
----
-906

skipif mysql # not compatible
query I rowsort label-6131
SELECT + 44 * - 17 * - - COUNT ( * ) - + 70 - + + 88 AS col1
----
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL 3 - - COUNT( + 97 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 3 - - COUNT ( + 97 ) col1
----
4

query I rowsort
SELECT 90 * - NULLIF ( + 34, - 46 * - 85 / 66 - - 84 + + 20 - - 8 ) AS col1
----
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT + 76 * - + 35 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT + 76 * - + 35 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + 88 * + 73 * + 53 - + COUNT( * )
----
340471

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 88 * + 73 * + 53 - + COUNT ( * )
----
340471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6136
SELECT + 30 col1, + COALESCE ( NULLIF ( 79, 47 * + 34 - - + CAST( NULL AS SIGNED ) + - 37 + - 17 / + COUNT( * ) ), - 10 ) + - + ( + + 47 ) AS col2
----
30
32

skipif mysql # not compatible
query II rowsort label-6136
SELECT + 30 col1, + COALESCE ( NULLIF ( 79, 47 * + 34 - - + CAST ( NULL AS INTEGER ) + - 37 + - 17 / + COUNT ( * ) ), - 10 ) + - + ( + + 47 ) AS col2
----
30
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 73 * - 71 * - NULLIF ( - + 63, COUNT( * ) ) - - SUM( + 9 ) * 16
----
-326385

skipif mysql # not compatible
query I rowsort label-6137
SELECT 73 * - 71 * - NULLIF ( - + 63, COUNT ( * ) ) - - SUM ( + 9 ) * 16
----
-326385

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6138
SELECT 93, + CAST( - - 41 AS SIGNED ) * + 41 + - - ( - 64 ) DIV - + CASE ( 82 ) WHEN - 89 THEN 88 ELSE + 62 + - 22 END AS col0
----
93
1682

skipif mysql # not compatible
query II rowsort label-6138
SELECT 93, + CAST ( - - 41 AS INTEGER ) * + 41 + - - ( - 64 ) / - + CASE ( 82 ) WHEN - 89 THEN 88 ELSE + 62 + - 22 END AS col0
----
93
1682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT CAST( + 68 AS SIGNED ) * + - 78 + 87 * - 60
----
-10524

skipif mysql # not compatible
query I rowsort label-6139
SELECT CAST ( + 68 AS INTEGER ) * + - 78 + 87 * - 60
----
-10524

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6140
SELECT COUNT( * ) DIV - + NULLIF ( - 13, + 12 ) AS col1, - 80 DIV + 52 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-6140
SELECT COUNT ( * ) / - + NULLIF ( - 13, + 12 ) AS col1, - 80 / + 52 AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL - MIN( - + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - MIN ( - + 48 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT ALL COUNT( * ) DIV - COALESCE ( - 33, - 7 + - 48, - COUNT( * ) * COUNT( * ), + + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL COUNT ( * ) / - COALESCE ( - 33, - 7 + - 48, - COUNT ( * ) * COUNT ( * ), + + 71 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT 11 DIV - COALESCE ( - 2, - 22 )
----
5

skipif mysql # not compatible
query I rowsort label-6143
SELECT 11 / - COALESCE ( - 2, - 22 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT - 65 + + MIN( DISTINCT + 88 ) * 38
----
3279

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - 65 + + MIN ( DISTINCT + 88 ) * 38
----
3279

query II rowsort
SELECT 31 AS col1, - CASE + 16 WHEN 27 THEN - 7 ELSE NULL END col2
----
31
NULL

query II rowsort
SELECT - 7, ( - 72 ) AS col2
----
-7
-72

query I rowsort
SELECT DISTINCT + 93 + + - 92
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT ALL COUNT( * ) AS col2, NULLIF ( 15, + COALESCE ( - 64, - NULLIF ( - ( - 32 ), - 41 ) - - COUNT( * ) - + + 9 + COUNT( * ) + + + 71 / 86 + + 95 * + 74 ) * 73 + + + 94 * + + 41 * + 36 ) - 3 AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL COUNT ( * ) AS col2, NULLIF ( 15, + COALESCE ( - 64, - NULLIF ( - ( - 32 ), - 41 ) - - COUNT ( * ) - + + 9 + COUNT ( * ) + + + 71 / 86 + + 95 * + 74 ) * 73 + + + 94 * + + 41 * + 36 ) - 3 AS col1
----
1
12

query I rowsort
SELECT 1 + - 67
----
-66

query I rowsort
SELECT 5 * - - 23 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + 56 + + + CASE + 82 WHEN + 88 / + 81 - + 56 THEN - 36 * SUM( + ( - 43 ) ) * - 61 * + 85 WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + 56 + + + CASE + 82 WHEN + 88 / + 81 - + 56 THEN - 36 * SUM ( + ( - 43 ) ) * - 61 * + 85 WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6152
SELECT ALL - COUNT( * ), + CASE - 51 WHEN + CAST( NULL AS SIGNED ) * - 94 THEN NULL WHEN + 93 THEN + 2 END * + 69 + - - 83 + + - 77 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6152
SELECT ALL - COUNT ( * ), + CASE - 51 WHEN + CAST ( NULL AS INTEGER ) * - 94 THEN NULL WHEN + 93 THEN + 2 END * + 69 + - - 83 + + - 77 AS col1
----
-1
NULL

query I rowsort
SELECT ALL + - 18 + + + 63 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT 72 * - CAST( - - 20 AS SIGNED ) col0
----
-1440

skipif mysql # not compatible
query I rowsort label-6154
SELECT 72 * - CAST ( - - 20 AS INTEGER ) col0
----
-1440

query II rowsort
SELECT DISTINCT 34, ( 9 ) AS col2
----
34
9

query I rowsort
SELECT ALL CASE - 3 WHEN + 12 * - 46 THEN NULL ELSE - 70 END
----
-70

query II rowsort
SELECT ALL 1 AS col2, + 86
----
1
86

query I rowsort
SELECT ALL + 62 + 5 AS col0
----
67

query I rowsort
SELECT - + ( + 30 ) - 9 * - 15 * - 21 AS col1
----
-2865

query II rowsort
SELECT - - 29 AS col0, 5 * + 24 AS col0
----
29
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + 51 + - 53 * + 23 - - 76 + - ( - 96 ) * ( NULLIF ( 92, - NULLIF ( + 19, + + 76 + 5 + - 78 * + 50 ) * + COUNT( * ) + + 66 ) ) col2
----
7740

skipif mysql # not compatible
query I rowsort label-6161
SELECT + 51 + - 53 * + 23 - - 76 + - ( - 96 ) * ( NULLIF ( 92, - NULLIF ( + 19, + + 76 + 5 + - 78 * + 50 ) * + COUNT ( * ) + + 66 ) ) col2
----
7740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT + 64 + + CASE + AVG ( - + NULLIF ( - 42, - - 76 ) ) WHEN + 29 THEN + - MAX( ALL 30 ) * + - 31 + 67 - + 96 + ( - - 22 ) + - + NULLIF ( - NULLIF ( + 7, - 72 ), - 72 + 74 ) / + 65 / 85 WHEN + CAST( 89 AS SIGNED ) + CASE ( + 41 ) WHEN MAX( 91 ) + 91 THEN NULL WHEN 39 THEN - COUNT( * ) END THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT + 64 + + CASE + AVG ( - + NULLIF ( - 42, - - 76 ) ) WHEN + 29 THEN + - MAX ( ALL 30 ) * + - 31 + 67 - + 96 + ( - - 22 ) + - + NULLIF ( - NULLIF ( + 7, - 72 ), - 72 + 74 ) / + 65 / 85 WHEN + CAST ( 89 AS INTEGER ) + CASE ( + 41 ) WHEN MAX ( 91 ) + 91 THEN NULL WHEN 39 THEN - COUNT ( * ) END THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL - MAX( ALL 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - MAX ( ALL 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT + - 99 + COUNT( * ) - 10 + NULLIF ( 0, - COUNT( * ) ) AS col2, + 37 AS col1
----
-108
37

skipif mysql # not compatible
query II rowsort label-6164
SELECT + - 99 + COUNT ( * ) - 10 + NULLIF ( 0, - COUNT ( * ) ) AS col2, + 37 AS col1
----
-108
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + + ( - 16 ) * 67 - COUNT( DISTINCT + 79 ) AS col1
----
-1073

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + + ( - 16 ) * 67 - COUNT ( DISTINCT + 79 ) AS col1
----
-1073

query I rowsort
SELECT DISTINCT + ( 18 ) col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT + - CAST( + + 0 AS SIGNED ) * - 69 * + 95 + 27
----
27

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + - CAST ( + + 0 AS INTEGER ) * - 69 * + 95 + 27
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT DISTINCT + - COUNT( * ), 5 AS col0
----
-1
5

skipif mysql # not compatible
query II rowsort label-6168
SELECT DISTINCT + - COUNT ( * ), 5 AS col0
----
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT 79 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT 79 / + 56
----
1

query I rowsort
SELECT NULLIF ( + 99, 13 )
----
99

query I rowsort
SELECT + 11 + 35
----
46

query I rowsort
SELECT + 87 + + 90 - + 5
----
172

query I rowsort
SELECT 78 * 13 + - 36
----
978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT + CAST( NULL AS SIGNED ) * - + 13 * - 69 * + ( 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT + CAST ( NULL AS INTEGER ) * - + 13 * - 69 * + ( 63 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT ALL - AVG ( ALL - ( + 11 ) ) * - MAX( ALL + ( + 49 ) ) * + 17 + - 22 + 47 + - 35 * - CAST( NULL AS SIGNED ) - + COUNT( * ) * + 69 * - 68 + - + 23 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - AVG ( ALL - ( + 11 ) ) * - MAX ( ALL + ( + 49 ) ) * + 17 + - 22 + 47 + - 35 * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + 69 * - 68 + - + 23 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 8 ) * 38
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT + 4 * + CAST( 10 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 4 * + CAST ( 10 AS INTEGER ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + CASE + + COALESCE ( - - 15, 42, COUNT( * ) ) WHEN + COUNT( * ) THEN NULL WHEN + ( + + 51 ) THEN - - 61 + - + 93 * - 13 ELSE NULL END - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT + CASE + + COALESCE ( - - 15, 42, COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL WHEN + ( + + 51 ) THEN - - 61 + - + 93 * - 13 ELSE NULL END - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT MIN( 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6179
SELECT MIN ( 34 ) AS col1
----
34

query I rowsort
SELECT 16 * + 52 + + 41
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - 73 * - + SUM( DISTINCT + 25 )
----
1825

skipif mysql # not compatible
query I rowsort label-6181
SELECT - 73 * - + SUM ( DISTINCT + 25 )
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT DISTINCT SUM( 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT SUM ( 83 ) col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT DISTINCT + 83 * 77 + + COUNT( * ) - 5 + - + COUNT( * ) DIV - + CASE + 82 WHEN - + 30 + + + COUNT( * ) * 66 DIV + 12 * - + 89 THEN NULL WHEN + 0 * + - 90 THEN NULL ELSE + + COUNT( * ) END col1
----
6388

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + 83 * 77 + + COUNT ( * ) - 5 + - + COUNT ( * ) / - + CASE + 82 WHEN - + 30 + + + COUNT ( * ) * 66 / + 12 * - + 89 THEN NULL WHEN + 0 * + - 90 THEN NULL ELSE + + COUNT ( * ) END col1
----
6388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6184
SELECT ALL + CASE - + 74 WHEN + 51 THEN - 99 / CAST( NULL AS SIGNED ) WHEN - 48 + + - ( - CAST( NULL AS SIGNED ) ) THEN NULL END + COUNT( * ) + - 1 AS col1, 71 + 67 * - COUNT( - 84 ) + + COUNT( * )
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL + CASE - + 74 WHEN + 51 THEN - 99 / CAST ( NULL AS INTEGER ) WHEN - 48 + + - ( - CAST ( NULL AS INTEGER ) ) THEN NULL END + COUNT ( * ) + - 1 AS col1, 71 + 67 * - COUNT ( - 84 ) + + COUNT ( * )
----
NULL
5

query I rowsort
SELECT - ( - 29 ) col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT ALL - + 78 + SUM( ALL - 51 ) - + 66 AS col1, 30
----
-195
30

skipif mysql # not compatible
query II rowsort label-6186
SELECT ALL - + 78 + SUM ( ALL - 51 ) - + 66 AS col1, 30
----
-195
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT COUNT( DISTINCT - CAST( + 48 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6187
SELECT COUNT ( DISTINCT - CAST ( + 48 AS INTEGER ) )
----
1

query I rowsort
SELECT ALL + 60 * - - 42
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT + MAX( - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + MAX ( - - 19 )
----
19

query I rowsort
SELECT ALL - + ( + + 86 ) - - 71
----
-15

query I rowsort
SELECT + 56 + 78
----
134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6192
SELECT - 26 * + 92 + + - COALESCE ( 4, - 91 * - - CAST( NULL AS SIGNED ) DIV + ( 6 ) * - + 84 + + + 7 * CAST( NULL AS SIGNED ) * CASE - 4 WHEN + - 70 DIV + 70 + 93 + + - 67 THEN NULL ELSE - + CASE - 33 WHEN - - 3 THEN NULL WHEN - - 26 THEN 6 END END + - 73 + + CASE - CAST( NULL AS SIGNED ) WHEN 6 * 81 THEN 84 ELSE 16 * 37 END + + 24 * - 18 ) AS col0
----
-2396

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 26 * + 92 + + - COALESCE ( 4, - 91 * - - CAST ( NULL AS INTEGER ) / + ( 6 ) * - + 84 + + + 7 * CAST ( NULL AS INTEGER ) * CASE - 4 WHEN + - 70 / + 70 + 93 + + - 67 THEN NULL ELSE - + CASE - 33 WHEN - - 3 THEN NULL WHEN - - 26 THEN 6 END END + - 73 + + CASE - CAST ( NULL AS INTEGER ) WHEN 6 * 81 THEN 84 ELSE 16 * 37 END + + 24 * - 18 ) AS col0
----
-2396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT DISTINCT CAST( 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT CAST ( 5 AS INTEGER )
----
5

query I rowsort
SELECT - 70 + - 90 AS col1
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT - NULLIF ( - 54, - 66 ) - 9, 98 + - + CAST( - 42 AS SIGNED ) AS col2
----
45
140

skipif mysql # not compatible
query II rowsort label-6195
SELECT - NULLIF ( - 54, - 66 ) - 9, 98 + - + CAST ( - 42 AS INTEGER ) AS col2
----
45
140

query I rowsort
SELECT - 53 - - 58
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL + - 98 - MAX( ALL - 7 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + - 98 - MAX ( ALL - 7 ) col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT - + CAST( NULL AS SIGNED ) * + 69 + + 82 + - 29 + 26 - - 53 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT - + CAST ( NULL AS INTEGER ) * + 69 + + 82 + - 29 + 26 - - 53 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - - 70 + + 33 - - - COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - 70 + + 33 - - - COUNT ( * )
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT - + 95 + + CAST( NULL AS SIGNED ), + 99 * + 12 AS col1
----
NULL
1188

skipif mysql # not compatible
query II rowsort label-6200
SELECT - + 95 + + CAST ( NULL AS INTEGER ), + 99 * + 12 AS col1
----
NULL
1188

query I rowsort
SELECT - - 78 * + 72 * + - 70 + ( + 12 )
----
-393108

query I rowsort
SELECT ALL 68 * + + 32
----
2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT DISTINCT - 56 DIV - + MIN( - + 82 ) * - 99 * - - MIN( - - 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT - 56 / - + MIN ( - + 82 ) * - 99 * - - MIN ( - - 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + COUNT( DISTINCT + 80 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6204
SELECT + COUNT ( DISTINCT + 80 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT CAST( COALESCE ( 61, - 90 * - + 94 ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-6205
SELECT CAST ( COALESCE ( 61, - 90 * - + 94 ) AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6206
SELECT - 82 + NULLIF ( - + COUNT( * ), SUM( DISTINCT 72 ) ) - + COUNT( * ) DIV + 57 - + - 94 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6206
SELECT - 82 + NULLIF ( - + COUNT ( * ), SUM ( DISTINCT 72 ) ) - + COUNT ( * ) / + 57 - + - 94 AS col2
----
11

query I rowsort
SELECT + 87 * ( 52 )
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + COUNT( DISTINCT 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6208
SELECT + COUNT ( DISTINCT 62 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT ALL + 98 DIV 13 + - 17
----
-10

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + 98 / 13 + - 17
----
-10

query I rowsort
SELECT DISTINCT + ( + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT ALL MAX( + - 2 ) DIV - + COUNT( * ) + - 85 col2
----
-83

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL MAX ( + - 2 ) / - + COUNT ( * ) + - 85 col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6212
SELECT COALESCE ( - COUNT( * ), 55 + - 8 ) DIV + - 85 + - - 50, 56 * - 84 AS col0, + 89 * - CASE + + 6 WHEN - + 98 + 71 THEN - 58 + + + 94 END + + - MIN( DISTINCT 44 ) + - COUNT( * ) AS col2
----
50
-4704
NULL

skipif mysql # not compatible
query III rowsort label-6212
SELECT COALESCE ( - COUNT ( * ), 55 + - 8 ) / + - 85 + - - 50, 56 * - 84 AS col0, + 89 * - CASE + + 6 WHEN - + 98 + 71 THEN - 58 + + + 94 END + + - MIN ( DISTINCT 44 ) + - COUNT ( * ) AS col2
----
50
-4704
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL - ( - + 78 ) / CASE + 39 WHEN - - 21 THEN - 53 WHEN - 16 + - + 15 THEN - + COUNT( * ) * - 88 END + - - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - ( - + 78 ) / CASE + 39 WHEN - - 21 THEN - 53 WHEN - 16 + - + 15 THEN - + COUNT ( * ) * - 88 END + - - 63 AS col1
----
NULL

query I rowsort
SELECT + 28 + 44 * + - 68 col2
----
-2964

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT ALL 4 DIV - 19 + 56 + - + 59 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL 4 / - 19 + 56 + - + 59 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT + 4 + - 36 DIV - - 38
----
4

skipif mysql # not compatible
query I rowsort label-6216
SELECT + 4 + - 36 / - - 38
----
4

query I rowsort
SELECT + 21 * - - 1 * 72 AS col1
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6218
SELECT + NULLIF ( + - 10, 50 + - COUNT( * ) * 55 ) DIV - + 31 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6218
SELECT + NULLIF ( + - 10, 50 + - COUNT ( * ) * 55 ) / - + 31 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - 41 * MAX( DISTINCT + 76 ) - + 66 + + ( - 49 ) * - COUNT( * ) AS col1
----
-3133

skipif mysql # not compatible
query I rowsort label-6219
SELECT - 41 * MAX ( DISTINCT + 76 ) - + 66 + + ( - 49 ) * - COUNT ( * ) AS col1
----
-3133

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + MAX( DISTINCT + 7 ) * + + 54 + + MIN( - + 95 ) + 15 + + - 86 AS col2
----
212

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + MAX ( DISTINCT + 7 ) * + + 54 + + MIN ( - + 95 ) + 15 + + - 86 AS col2
----
212

query I rowsort
SELECT + 62 * - 86
----
-5332

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - 84 * ( - 22 ) + + COUNT( * ) col2
----
1849

skipif mysql # not compatible
query I rowsort label-6222
SELECT - 84 * ( - 22 ) + + COUNT ( * ) col2
----
1849

query I rowsort
SELECT ALL + 6 * + 21
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL CAST( NULL AS SIGNED ) - - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL CAST ( NULL AS INTEGER ) - - + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT 2 + + - ( + - MAX( ALL - - 51 ) ) + 72 + - + 58 / CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT 2 + + - ( + - MAX ( ALL - - 51 ) ) + 72 + - + 58 / CAST ( NULL AS INTEGER ) * + 5
----
NULL

query I rowsort
SELECT 79 + 87 AS col2
----
166

query I rowsort
SELECT + 50 + 56 col2
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT DISTINCT 47 AS col0, COALESCE ( COUNT( * ), + 65 )
----
47
1

skipif mysql # not compatible
query II rowsort label-6228
SELECT DISTINCT 47 AS col0, COALESCE ( COUNT ( * ), + 65 )
----
47
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT - + CAST( COALESCE ( COUNT( * ), + 95 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6229
SELECT - + CAST ( COALESCE ( COUNT ( * ), + 95 ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6230
SELECT ALL - 79 DIV - ( - 80 ), + 87 * 16 AS col2
----
0
1392

skipif mysql # not compatible
query II rowsort label-6230
SELECT ALL - 79 / - ( - 80 ), + 87 * 16 AS col2
----
0
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT DISTINCT 81 col1, COUNT( ALL 31 ) AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-6231
SELECT DISTINCT 81 col1, COUNT ( ALL 31 ) AS col2
----
81
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT - + 84 AS col1, - COUNT( * )
----
-84
-1

skipif mysql # not compatible
query II rowsort label-6232
SELECT - + 84 AS col1, - COUNT ( * )
----
-84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - NULLIF ( + 74, + + COUNT( * ) * - ( + - 70 ) * + + 56 + + 69 + + + 86 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-6233
SELECT - NULLIF ( + 74, + + COUNT ( * ) * - ( + - 70 ) * + + 56 + + 69 + + + 86 ) col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - - CASE - + 59 WHEN - 25 THEN NULL WHEN + 48 THEN - + COUNT( * ) * + 49 * - - ( - - 41 ) + - 94 + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT - - CASE - + 59 WHEN - 25 THEN NULL WHEN + 48 THEN - + COUNT ( * ) * + 49 * - - ( - - 41 ) + - 94 + 53 END
----
NULL

query I rowsort
SELECT ALL + 36 + 89 AS col1
----
125

query I rowsort
SELECT 80 * + + COALESCE ( 43, 61 )
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL - COUNT( DISTINCT 99 ) + 73 * + 81 + - COUNT( * ) col2
----
5911

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - COUNT ( DISTINCT 99 ) + 73 * + 81 + - COUNT ( * ) col2
----
5911

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6238
SELECT 12 AS col2, + 45 - - 74 DIV 86, - 22 DIV + 47 + + COUNT( * ) * COUNT( * ) * 0 + 6 DIV - 67 + - 78 + - + SUM( DISTINCT - 59 ) AS col0
----
12
45
-19

skipif mysql # not compatible
query III rowsort label-6238
SELECT 12 AS col2, + 45 - - 74 / 86, - 22 / + 47 + + COUNT ( * ) * COUNT ( * ) * 0 + 6 / - 67 + - 78 + - + SUM ( DISTINCT - 59 ) AS col0
----
12
45
-19

query I rowsort
SELECT ALL 40 + + + 93 * + - 68 AS col2
----
-6284

query I rowsort
SELECT DISTINCT - 97 + + 2
----
-95

query I rowsort
SELECT 5 * 79
----
395

query I rowsort
SELECT ALL - 79 + + - 59
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT MAX( ALL + 54 ) + 41 * + 87 col0
----
3621

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT MAX ( ALL + 54 ) + 41 * + 87 col0
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT 95 * - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6244
SELECT 95 * - COUNT ( * ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6245
SELECT ALL - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ), - 33 AS col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ), - 33 AS col0
----
NULL
-33

query I rowsort
SELECT ALL + ( + + 71 ) + COALESCE ( + 10, - - ( + 34 ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT + 98, - COUNT( * ) * - 94 AS col2
----
98
94

skipif mysql # not compatible
query II rowsort label-6247
SELECT + 98, - COUNT ( * ) * - 94 AS col2
----
98
94

query I rowsort
SELECT ALL + COALESCE ( 51, + 33, - 5 ) - 63 col0
----
-12

query II rowsort
SELECT ALL - 59, 86 AS col0
----
-59
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT + COALESCE ( + 17, - + 21 + - SUM( 83 ), + ( 65 ) ) - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + COALESCE ( + 17, - + 21 + - SUM ( 83 ), + ( 65 ) ) - - COUNT ( * )
----
18

query II rowsort
SELECT ALL - 1 AS col2, - 19
----
-1
-19

query II rowsort
SELECT DISTINCT - 7 AS col0, + 6 AS col0
----
-7
6

query II rowsort
SELECT DISTINCT - 78 col1, - 64 col0
----
-78
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT 16 * + 2 DIV - 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT 16 * + 2 / - 77 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6255
SELECT ALL - - 55 AS col2, ( - ( 99 ) ) * + + 16 + CAST( + COUNT( ALL - 62 ) AS SIGNED ) * NULLIF ( COUNT( * ), COALESCE ( + + COUNT( ALL 57 ), + ( - + 84 ) * NULLIF ( 85, 29 ) ) ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6255
SELECT ALL - - 55 AS col2, ( - ( 99 ) ) * + + 16 + CAST ( + COUNT ( ALL - 62 ) AS INTEGER ) * NULLIF ( COUNT ( * ), COALESCE ( + + COUNT ( ALL 57 ), + ( - + 84 ) * NULLIF ( 85, 29 ) ) ) AS col0
----
55
NULL

query I rowsort
SELECT + 25 + 60 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT + COUNT( * ) * - 86 DIV MAX( + 91 ) + - ( + - ( 20 ) )
----
20

skipif mysql # not compatible
query I rowsort label-6257
SELECT + COUNT ( * ) * - 86 / MAX ( + 91 ) + - ( + - ( 20 ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT + COUNT( * ) AS col0, + 87 + 77
----
1
164

skipif mysql # not compatible
query II rowsort label-6258
SELECT + COUNT ( * ) AS col0, + 87 + 77
----
1
164

query I rowsort
SELECT + 47 * + 37
----
1739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT 24 * 56 + - + CAST( NULL AS SIGNED ) + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT 24 * 56 + - + CAST ( NULL AS INTEGER ) + + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT - CAST( + + 81 AS SIGNED ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-6261
SELECT - CAST ( + + 81 AS INTEGER ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT COUNT( * ) * - 76 + ( - - 93 )
----
17

skipif mysql # not compatible
query I rowsort label-6262
SELECT COUNT ( * ) * - 76 + ( - - 93 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT - 88 + CAST( + 96 AS SIGNED ) col0
----
8

skipif mysql # not compatible
query I rowsort label-6263
SELECT - 88 + CAST ( + 96 AS INTEGER ) col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT DISTINCT - CASE 90 WHEN - 20 THEN 71 WHEN + 68 * + - COUNT( * ) THEN + 99 END * - 88 * - 78 AS col1, SUM( - 54 )
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-6264
SELECT DISTINCT - CASE 90 WHEN - 20 THEN 71 WHEN + 68 * + - COUNT ( * ) THEN + 99 END * - 88 * - 78 AS col1, SUM ( - 54 )
----
NULL
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6265
SELECT DISTINCT - 26 + + - 83 + - COUNT( * ) + + + 30 + + 12 + + 1 DIV + 31
----
-68

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - 26 + + - 83 + - COUNT ( * ) + + + 30 + + 12 + + 1 / + 31
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT CAST( + + 92 AS SIGNED ) * - 6
----
-552

skipif mysql # not compatible
query I rowsort label-6266
SELECT CAST ( + + 92 AS INTEGER ) * - 6
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6267
SELECT + CAST( NULL AS SIGNED ) AS col2, + COUNT( - 81 ) * 43 * - - 32
----
NULL
1376

skipif mysql # not compatible
query II rowsort label-6267
SELECT + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( - 81 ) * 43 * - - 32
----
NULL
1376

query I rowsort
SELECT DISTINCT 3 + + 24
----
27

query I rowsort
SELECT ALL + ( - 63 ) AS col1
----
-63

query I rowsort
SELECT ALL - 32 + 34 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT DISTINCT MAX( ALL 62 ) DIV MIN( + ( + 62 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT MAX ( ALL 62 ) / MIN ( + ( + 62 ) )
----
1

query I rowsort
SELECT ALL - 83 + - ( + 70 )
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT 58 + + MIN( DISTINCT - 3 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT 58 + + MIN ( DISTINCT - 3 ) AS col2
----
55

query I rowsort
SELECT ALL + 19 * COALESCE ( - 3, 79 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT ( - - 92 ) DIV 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6275
SELECT ( - - 92 ) / 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT MAX( DISTINCT - 31 ) * 94 + 99
----
-2815

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT MAX ( DISTINCT - 31 ) * 94 + 99
----
-2815

query I rowsort
SELECT 86 + + 53 AS col1
----
139

query I rowsort
SELECT ( + 42 ) + 88
----
130

query I rowsort
SELECT 20 * + - 83 + + 36
----
-1624

query I rowsort
SELECT 40 * + 54 * + + 6 AS col0
----
12960

query I rowsort
SELECT ALL + 18 * ( - 15 ) - + 98 + 67
----
-301

query II rowsort
SELECT ALL - ( + 30 ) col2, - 16 col2
----
-30
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + CASE AVG ( DISTINCT + 51 ) WHEN MAX( ( - 8 ) ) * + 56 THEN NULL WHEN - 65 THEN + 17 ELSE - MIN( 80 ) * - 54 END
----
4320

skipif mysql # not compatible
query I rowsort label-6283
SELECT + CASE AVG ( DISTINCT + 51 ) WHEN MAX ( ( - 8 ) ) * + 56 THEN NULL WHEN - 65 THEN + 17 ELSE - MIN ( 80 ) * - 54 END
----
4320

query I rowsort
SELECT COALESCE ( 36, + + 22 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT 24 * MIN( - - 38 )
----
912

skipif mysql # not compatible
query I rowsort label-6285
SELECT 24 * MIN ( - - 38 )
----
912

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT ALL - MAX( + + 10 ) AS col1, 15 + + COUNT( * ) AS col0
----
-10
16

skipif mysql # not compatible
query II rowsort label-6286
SELECT ALL - MAX ( + + 10 ) AS col1, 15 + + COUNT ( * ) AS col0
----
-10
16

query I rowsort
SELECT DISTINCT + COALESCE ( NULLIF ( + 5, 7 * - - ( + + 28 ) + + 50 + 21 + + 65 ), 1 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT - 76 * - 82 * COUNT( * ) + - - 73 + + - 83 + + 95
----
6317

skipif mysql # not compatible
query I rowsort label-6288
SELECT - 76 * - 82 * COUNT ( * ) + - - 73 + + - 83 + + 95
----
6317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT - COUNT( * ) * COALESCE ( 88, 44 * + MIN( - 62 ) + + 65 * + 36 ) * + 69 * - CAST( - - 84 AS SIGNED )
----
510048

skipif mysql # not compatible
query I rowsort label-6289
SELECT - COUNT ( * ) * COALESCE ( 88, 44 * + MIN ( - 62 ) + + 65 * + 36 ) * + 69 * - CAST ( - - 84 AS INTEGER )
----
510048

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6290
SELECT ALL + - 67 * + CASE - 78 WHEN + 48 * + 94 + - + CASE + + COUNT( * ) WHEN + 6 THEN NULL WHEN + 99 THEN - ( + COALESCE ( MAX( DISTINCT + 62 ), + 71 * + CAST( 74 AS DECIMAL ) / + - 20 + - + 89, + 45 ) ) * - 57 WHEN + - 42 THEN 20 - - + 58 / - - ( 79 ) / - + 6 ELSE NULL END + 52 THEN 95 * - 89 WHEN COUNT( * ) + 45 THEN - 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + - 67 * + CASE - 78 WHEN + 48 * + 94 + - + CASE + + COUNT ( * ) WHEN + 6 THEN NULL WHEN + 99 THEN - ( + COALESCE ( MAX ( DISTINCT + 62 ), + 71 * + CAST ( 74 AS REAL ) / + - 20 + - + 89, + 45 ) ) * - 57 WHEN + - 42 THEN 20 - - + 58 / - - ( 79 ) / - + 6 ELSE NULL END + 52 THEN 95 * - 89 WHEN COUNT ( * ) + 45 THEN - 33 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT - NULLIF ( - 36, + 99 ) DIV - 18 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6291
SELECT - NULLIF ( - 36, + 99 ) / - 18 AS col2
----
-2

query I rowsort
SELECT + 6 + - 8 * + + 13 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL + COUNT( - - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + COUNT ( - - 88 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL + + 75 * - 19 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + + 75 * - 19 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - COUNT( DISTINCT - 20 ) + + COALESCE ( + - 50, - - ( 90 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6295
SELECT - COUNT ( DISTINCT - 20 ) + + COALESCE ( + - 50, - - ( 90 ) )
----
-51

query II rowsort
SELECT ALL ( - 69 ) AS col0, 10 AS col0
----
-69
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT - + 66 * + - MAX( - 89 )
----
-5874

skipif mysql # not compatible
query I rowsort label-6297
SELECT - + 66 * + - MAX ( - 89 )
----
-5874

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT ALL - + MAX( + - 60 ) + - 79, 15 AS col0
----
-19
15

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL - + MAX ( + - 60 ) + - 79, 15 AS col0
----
-19
15

query I rowsort
SELECT - 34 + + - 28 * 55 + + 56
----
-1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT + + 16 + + COUNT( * ) DIV + + 72 + 90 + + 92
----
198

skipif mysql # not compatible
query I rowsort label-6300
SELECT + + 16 + + COUNT ( * ) / + + 72 + 90 + + 92
----
198

query I rowsort
SELECT ALL + - 20 + - 69 + + - 29 - + 67 * - - 8 AS col1
----
-654

query I rowsort
SELECT + - 39 + 32 + - 39 * + 94
----
-3673

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT + COUNT( * ) + - MAX( ALL + + NULLIF ( 33, + NULLIF ( + 35, - + 81 ) * + + ( - 16 ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + COUNT ( * ) + - MAX ( ALL + + NULLIF ( 33, + NULLIF ( + 35, - + 81 ) * + + ( - 16 ) ) )
----
-32

query I rowsort
SELECT + 87 * - 70 AS col1
----
-6090

query I rowsort
SELECT - ( + 58 ) * - + 93
----
5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + MIN( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + MIN ( 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + 57 * + MIN( DISTINCT - + 56 ) col0
----
-3192

skipif mysql # not compatible
query I rowsort label-6307
SELECT + 57 * + MIN ( DISTINCT - + 56 ) col0
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + MIN( + 95 ) + + 26 - - 41 * 69 AS col1
----
2950

skipif mysql # not compatible
query I rowsort label-6308
SELECT + MIN ( + 95 ) + + 26 - - 41 * 69 AS col1
----
2950

query II rowsort
SELECT ALL 35 AS col0, - 7 * 36
----
35
-252

query I rowsort
SELECT - 51 + - 63 + - 23 + 10
----
-127

query I rowsort
SELECT + 21 * - 23 AS col2
----
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT CAST( - 93 AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6312
SELECT CAST ( - 93 AS INTEGER ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT ALL - 96 DIV + - ( - - 81 ) - 78
----
-77

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - 96 / + - ( - - 81 ) - 78
----
-77

query I rowsort
SELECT DISTINCT + 71 * + COALESCE ( + 77, 84, 41 )
----
5467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6315
SELECT ALL 97 / - 46 - + AVG ( + 15 ) + - 30 + + ( CASE + + 60 WHEN 82 / - CAST( - CAST( - 39 AS SIGNED ) AS SIGNED ) THEN NULL WHEN + 18 * + + 90 / - ( - ( - ( - - 19 ) ) ) * - COUNT( * ) * + - 61 - + 42 * - 25 * - 99 * 89 - - - 99 THEN - 16 END ) + 47 + + CASE 64 WHEN 63 THEN COUNT( * ) WHEN + 44 THEN NULL END + 10 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL 97 / - 46 - + AVG ( + 15 ) + - 30 + + ( CASE + + 60 WHEN 82 / - CAST ( - CAST ( - 39 AS INTEGER ) AS INTEGER ) THEN NULL WHEN + 18 * + + 90 / - ( - ( - ( - - 19 ) ) ) * - COUNT ( * ) * + - 61 - + 42 * - 25 * - 99 * 89 - - - 99 THEN - 16 END ) + 47 + + CASE 64 WHEN 63 THEN COUNT ( * ) WHEN + 44 THEN NULL END + 10 / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 62 * + - 97
----
6014

query I rowsort
SELECT + 91 * 34
----
3094

query I rowsort
SELECT ALL 97 * + 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT - 9 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 9 / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + ( - ( NULLIF ( - 92, - NULLIF ( - CASE 26 WHEN + NULLIF ( - + 18, - + 63 ) THEN + 26 WHEN - 79 THEN + + COUNT( * ) + + 25 END, - - 27 ) - - 68 ) ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6320
SELECT + ( - ( NULLIF ( - 92, - NULLIF ( - CASE 26 WHEN + NULLIF ( - + 18, - + 63 ) THEN + 26 WHEN - 79 THEN + + COUNT ( * ) + + 25 END, - - 27 ) - - 68 ) ) ) AS col0
----
92

query I rowsort
SELECT ALL 91 * 91
----
8281

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL + + COUNT( * ) AS col2, - NULLIF ( - COUNT( * ), 99 ) + + 8 - - 51
----
1
60

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL + + COUNT ( * ) AS col2, - NULLIF ( - COUNT ( * ), 99 ) + + 8 - - 51
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT - + COUNT( * ) * - 84 - + + SUM( DISTINCT 76 )
----
8

skipif mysql # not compatible
query I rowsort label-6323
SELECT - + COUNT ( * ) * - 84 - + + SUM ( DISTINCT 76 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT DISTINCT COUNT( * ) * - + 8 * COALESCE ( - MAX( 7 ), CAST( NULL AS SIGNED ), - + ( - 12 ) * - 4 ) + + 42
----
98

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT COUNT ( * ) * - + 8 * COALESCE ( - MAX ( 7 ), CAST ( NULL AS INTEGER ), - + ( - 12 ) * - 4 ) + + 42
----
98

query II rowsort
SELECT + + 33 AS col0, + 64 * - - 58 + + 75 + 96 + 7 * - 79 + + - 24 * - 58 + - - 45
----
33
4767

query I rowsort
SELECT - 93 * - 54 * - 45 * + 49
----
-11073510

query I rowsort
SELECT ALL + 40 * - 29
----
-1160

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT + 76 * + 52 + + 52 + - 73 + + COUNT( - 95 ) + + 51 - - 17 * + 34 - + MAX( 95 ) + + 10 * - + COUNT( * ), - 22 AS col1
----
4456
-22

skipif mysql # not compatible
query II rowsort label-6328
SELECT + 76 * + 52 + + 52 + - 73 + + COUNT ( - 95 ) + + 51 - - 17 * + 34 - + MAX ( 95 ) + + 10 * - + COUNT ( * ), - 22 AS col1
----
4456
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT - - 10 + - - 37 DIV - - ( - - 34 )
----
11

skipif mysql # not compatible
query I rowsort label-6329
SELECT - - 10 + - - 37 / - - ( - - 34 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT DISTINCT - COUNT( * ) * CAST( + ( + COUNT( * ) ) AS SIGNED ) * 52 - + SUM( + CAST( NULL AS SIGNED ) ) + - + 69 * + + 26 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - COUNT ( * ) * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * 52 - + SUM ( + CAST ( NULL AS INTEGER ) ) + - + 69 * + + 26 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT - + COALESCE ( + + SUM( - 76 ), - 71 ) + + ( + - CAST( - ( 49 ) AS SIGNED ) ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-6331
SELECT - + COALESCE ( + + SUM ( - 76 ), - 71 ) + + ( + - CAST ( - ( 49 ) AS INTEGER ) ) AS col2
----
125

query I rowsort
SELECT - 5 * - - 74 AS col2
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL + COUNT( - 71 ) - + - 46
----
47

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + COUNT ( - 71 ) - + - 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - ( - COUNT( * ) ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-6334
SELECT - ( - COUNT ( * ) ) + - 66
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT + 57 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT + 57 / + 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT + COUNT( * ) - - 40 AS col0, + ( + + COUNT( * ) ) AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-6336
SELECT + COUNT ( * ) - - 40 AS col0, + ( + + COUNT ( * ) ) AS col2
----
41
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6337
SELECT - 63 - + - 26 DIV + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6337
SELECT - 63 - + - 26 / + COUNT ( * )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT DISTINCT CAST( + - 94 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT CAST ( + - 94 AS INTEGER ) AS col0
----
-94

query I rowsort
SELECT ALL 27 * - + 10
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT 20 + NULLIF ( + - 1, - 25 / - COUNT( * ) ) + 58 + - ( - COUNT( * ) ) + - 71 * - 46 + + - 17 + 94 + 85 * + - 97 * + + 27 * + - 71 + - 72 AS col2
----
15809014

skipif mysql # not compatible
query I rowsort label-6340
SELECT 20 + NULLIF ( + - 1, - 25 / - COUNT ( * ) ) + 58 + - ( - COUNT ( * ) ) + - 71 * - 46 + + - 17 + 94 + 85 * + - 97 * + + 27 * + - 71 + - 72 AS col2
----
15809014

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT 49 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-6341
SELECT 49 / 43
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT 90 * + + 4 + - CAST( - 70 AS SIGNED ) AS col0
----
430

skipif mysql # not compatible
query I rowsort label-6342
SELECT 90 * + + 4 + - CAST ( - 70 AS INTEGER ) AS col0
----
430

query I rowsort
SELECT ALL + 21 + 56 - - - 59
----
18

query I rowsort
SELECT DISTINCT 6 + + 97 * + 76
----
7378

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL - - 99 + - COUNT( * ) * - COALESCE ( - 38, + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL - - 99 + - COUNT ( * ) * - COALESCE ( - 38, + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - MIN( ALL + + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6346
SELECT - MIN ( ALL + + 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + + 49 * 38 - 42 + - - 79 + + 98 * - - 59 + - 13 / - 88 * - 86 / - + ( - 27 ) + + CAST( NULL AS SIGNED ) * + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + + 49 * 38 - 42 + - - 79 + + 98 * - - 59 + - 13 / - 88 * - 86 / - + ( - 27 ) + + CAST ( NULL AS INTEGER ) * + + 18 AS col2
----
NULL

query I rowsort
SELECT ALL 24 + + + 82
----
106

query I rowsort
SELECT DISTINCT - 2 + 64
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL + CASE - - 37 WHEN 34 THEN + 25 + + - 96 END * + CAST( - 57 AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + CASE - - 37 WHEN 34 THEN + 25 + + - 96 END * + CAST ( - 57 AS INTEGER ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT + ( + 59 ), 73 - COUNT( * ) AS col2
----
59
72

skipif mysql # not compatible
query II rowsort label-6351
SELECT + ( + 59 ), 73 - COUNT ( * ) AS col2
----
59
72

query I rowsort
SELECT 50 * 48 AS col2
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT + 36 * + CAST( NULL AS SIGNED ) + + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + 36 * + CAST ( NULL AS INTEGER ) + + + 45 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT DISTINCT - 95 * + + CAST( NULL AS SIGNED ) * - 87 + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT - 95 * + + CAST ( NULL AS INTEGER ) * - 87 + - 25 AS col2
----
NULL

query I rowsort
SELECT 34 + 91 * - 29
----
-2605

query I rowsort
SELECT DISTINCT - 7 * - 60
----
420

query I rowsort
SELECT 43 + + 20
----
63

query I rowsort
SELECT 14 * - 8 AS col2
----
-112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6359
SELECT ALL - CASE - 60 WHEN + - 60 THEN NULL WHEN - - 37 - - 73 THEN - - 98 * 7 * - 2 * COALESCE ( 88, 32, - CASE 11 WHEN 93 THEN + 96 - - 88 * - 93 * + 65 + + COALESCE ( - NULLIF ( + - 39, - 67 ), 22 * - COUNT( * ), + - NULLIF ( 51, + ( + 34 ) ) ) WHEN + - 33 THEN NULL ELSE - CAST( - ( 38 ) AS DECIMAL ) END ) WHEN COUNT( * ) THEN NULL END * + ( + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - CASE - 60 WHEN + - 60 THEN NULL WHEN - - 37 - - 73 THEN - - 98 * 7 * - 2 * COALESCE ( 88, 32, - CASE 11 WHEN 93 THEN + 96 - - 88 * - 93 * + 65 + + COALESCE ( - NULLIF ( + - 39, - 67 ), 22 * - COUNT ( * ), + - NULLIF ( 51, + ( + 34 ) ) ) WHEN + - 33 THEN NULL ELSE - CAST ( - ( 38 ) AS REAL ) END ) WHEN COUNT ( * ) THEN NULL END * + ( + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT 30 + + + MIN( - - 89 ) * - CASE - 73 WHEN 33 THEN NULL WHEN + 29 + - ( - - ( 42 ) ) THEN + + 84 * - CASE + - 67 WHEN 70 THEN - ( + COALESCE ( + 90, + + 32 * - 42, 64 + + - 39 + + + NULLIF ( 43, + 44 * - 99 - - CASE - - SUM( ALL + 90 ) WHEN + 2 + 29 * 79 THEN 37 WHEN + 68 - 53 * + COUNT( * ) THEN NULL ELSE NULL END ) * 76 * 18 ) ) * 32 WHEN 78 THEN + 42 END ELSE 53 + COALESCE ( - 82 + + 40, - 87 * - 32 ) END
----
-949

skipif mysql # not compatible
query I rowsort label-6360
SELECT 30 + + + MIN ( - - 89 ) * - CASE - 73 WHEN 33 THEN NULL WHEN + 29 + - ( - - ( 42 ) ) THEN + + 84 * - CASE + - 67 WHEN 70 THEN - ( + COALESCE ( + 90, + + 32 * - 42, 64 + + - 39 + + + NULLIF ( 43, + 44 * - 99 - - CASE - - SUM ( ALL + 90 ) WHEN + 2 + 29 * 79 THEN 37 WHEN + 68 - 53 * + COUNT ( * ) THEN NULL ELSE NULL END ) * 76 * 18 ) ) * 32 WHEN 78 THEN + 42 END ELSE 53 + COALESCE ( - 82 + + 40, - 87 * - 32 ) END
----
-949

query II rowsort
SELECT ALL 89, 28 * + - CASE 90 WHEN - ( + ( - - ( 92 ) ) ) THEN 50 * 86 END / 12 AS col1
----
89
NULL

query I rowsort
SELECT 23 - + 81 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT 59 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT 59 / + + 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT 30 * - 71 * + - CAST( + 39 AS SIGNED ) AS col2
----
83070

skipif mysql # not compatible
query I rowsort label-6364
SELECT 30 * - 71 * + - CAST ( + 39 AS INTEGER ) AS col2
----
83070

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6365
SELECT 65 + 58 DIV 12 AS col1, 80 + MAX( + - 71 ) AS col1
----
69
9

skipif mysql # not compatible
query II rowsort label-6365
SELECT 65 + 58 / 12 AS col1, 80 + MAX ( + - 71 ) AS col1
----
69
9

query II rowsort
SELECT ALL 0, + 9 AS col2
----
0
9

query I rowsort
SELECT 75 + - 87
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT 29 AS col2, - COUNT( DISTINCT - 76 ) * 14 * - COUNT( DISTINCT + - ( + - 40 ) )
----
29
14

skipif mysql # not compatible
query II rowsort label-6368
SELECT 29 AS col2, - COUNT ( DISTINCT - 76 ) * 14 * - COUNT ( DISTINCT + - ( + - 40 ) )
----
29
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT 76 * - + NULLIF ( - COUNT( * ), - NULLIF ( 93, - 69 + + + COUNT( * ) ) * + + 3 + - COUNT( DISTINCT - CASE 4 WHEN - 79 * - 74 THEN NULL ELSE - 6 END ) + + ( 7 ) * 25 ) + 43 + + 26 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT 76 * - + NULLIF ( - COUNT ( * ), - NULLIF ( 93, - 69 + + + COUNT ( * ) ) * + + 3 + - COUNT ( DISTINCT - CASE 4 WHEN - 79 * - 74 THEN NULL ELSE - 6 END ) + + ( 7 ) * 25 ) + 43 + + 26 AS col0
----
145

query I rowsort
SELECT DISTINCT 51 * 12 + - 39 * - 97 * 90
----
341082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL ( - 75 ) * CAST( NULL AS SIGNED ) + + + 34 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL ( - 75 ) * CAST ( NULL AS INTEGER ) + + + 34 + + 58
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + + 27 AS col2
----
-1971

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6373
SELECT - 14 * - 77 - + - CAST( NULL AS DECIMAL ) * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 14 * - 77 - + - CAST ( NULL AS REAL ) * + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT - 41 DIV + - MIN( ALL - 13 ) + + 54 col1
----
51

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 41 / + - MIN ( ALL - 13 ) + + 54 col1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6375
SELECT DISTINCT + 46 DIV + + CAST( + 69 AS SIGNED ) * + 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + 46 / + + CAST ( + 69 AS INTEGER ) * + 60 col0
----
0

query I rowsort
SELECT + 7 + + 78 AS col1
----
85

query I rowsort
SELECT + 91 * NULLIF ( + ( - 27 ), - 49 ) AS col2
----
-2457

query I rowsort
SELECT DISTINCT COALESCE ( 60, + ( - 44 ) ) * 91
----
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT - 68 * MIN( ALL 57 ) + + 80 * 19 DIV + - 8
----
-4066

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 68 * MIN ( ALL 57 ) + + 80 * 19 / + - 8
----
-4066

query I rowsort
SELECT ALL 28 * - 26 AS col2
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + 98 + - COALESCE ( + COUNT( * ), + - 19 * COUNT( * ) ) + + 30 * + ( - 18 )
----
-443

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 98 + - COALESCE ( + COUNT ( * ), + - 19 * COUNT ( * ) ) + + 30 * + ( - 18 )
----
-443

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT + 75 + - 91 - 64 + 38 DIV 95 + 74 + - 30 DIV - 8 + - - 86
----
83

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 75 + - 91 - 64 + 38 / 95 + 74 + - 30 / - 8 + - - 86
----
83

query I rowsort
SELECT - 92 * 2 AS col1
----
-184

query I rowsort
SELECT + 62 + - 58 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6385
SELECT - 91 col0, CAST( NULL AS SIGNED ) * 59
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-6385
SELECT - 91 col0, CAST ( NULL AS INTEGER ) * 59
----
-91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6386
SELECT + 56 * 47 * MAX( + 77 ) * 69 DIV - 48 AS col0, + 39
----
-291329
39

skipif mysql # not compatible
query II rowsort label-6386
SELECT + 56 * 47 * MAX ( + 77 ) * 69 / - 48 AS col0, + 39
----
-291329
39

query I rowsort
SELECT ALL - 58 + + 45 AS col0
----
-13

query I rowsort
SELECT - ( 32 ) col0
----
-32

query I rowsort
SELECT ALL - 95 + + ( 53 )
----
-42

query I rowsort
SELECT DISTINCT NULLIF ( + 15, + + 79 * + 19 + - - AVG ( ALL - 38 ) * + - 42 * + + 74 / - 27 ) AS col1
----
15

query I rowsort
SELECT DISTINCT 73 + 43 AS col1
----
116

query I rowsort
SELECT - 85 + 3 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL NULLIF ( + CASE + + 22 WHEN + 27 * MAX( - + 78 ) + - 38 * ( - + 84 ) / 3 * SUM( ALL 42 ) THEN NULL WHEN - ( + - ( COUNT( + 11 ) ) ) THEN - 66 END, - 11 + 22 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL NULLIF ( + CASE + + 22 WHEN + 27 * MAX ( - + 78 ) + - 38 * ( - + 84 ) / 3 * SUM ( ALL 42 ) THEN NULL WHEN - ( + - ( COUNT ( + 11 ) ) ) THEN - 66 END, - 11 + 22 * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 2 * - 25 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT ALL - 95 + - COUNT( * ) + + 87 * 41 DIV - 87
----
-137

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL - 95 + - COUNT ( * ) + + 87 * 41 / - 87
----
-137

query II rowsort
SELECT 47, 37 + 93 AS col2
----
47
130

query I rowsort
SELECT ALL + ( 89 ) col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - + COUNT( * ) + - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-6398
SELECT - + COUNT ( * ) + - COUNT ( * ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + + COUNT( * ) * 57 + + 55
----
112

skipif mysql # not compatible
query I rowsort label-6399
SELECT + + COUNT ( * ) * 57 + + 55
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT - 98 * - CASE 75 WHEN - 78 * - 29 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + - COALESCE ( + - NULLIF ( - NULLIF ( - COUNT( * ), + 50 ), ( + - 88 ) ), - 68 ) + - 0 + - 89 * - 70 - 54 THEN COUNT( ALL + ( + 78 ) ) + CAST( NULL AS SIGNED ) ELSE + - COUNT( * ) * - 14 - 49 * 32 END AS col1
----
-152292

skipif mysql # not compatible
query I rowsort label-6400
SELECT - 98 * - CASE 75 WHEN - 78 * - 29 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + - COALESCE ( + - NULLIF ( - NULLIF ( - COUNT ( * ), + 50 ), ( + - 88 ) ), - 68 ) + - 0 + - 89 * - 70 - 54 THEN COUNT ( ALL + ( + 78 ) ) + CAST ( NULL AS INTEGER ) ELSE + - COUNT ( * ) * - 14 - 49 * 32 END AS col1
----
-152292

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT DISTINCT + SUM( - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT + SUM ( - 93 ) AS col2
----
-93

query I rowsort
SELECT - 25 + + + 27 * - - 36 AS col1
----
947

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL 69 * 25 + - COUNT( * ) * + - 9
----
1734

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL 69 * 25 + - COUNT ( * ) * + - 9
----
1734

query I rowsort
SELECT - - 22 + + 90 + + - 94 AS col2
----
18

query II rowsort
SELECT DISTINCT + - 13 AS col0, + 35 + 23 + - 13 * 64
----
-13
-774

query I rowsort
SELECT - 82 * - 43 + - - 67 AS col2
----
3593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT + - CAST( 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-6407
SELECT + - CAST ( 31 AS INTEGER )
----
-31

query II rowsort
SELECT + + 33 AS col1, + 44
----
33
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT ALL + - 31, + MAX( ALL - NULLIF ( - 17, - COALESCE ( + 99, - 17 ) ) ) AS col0
----
-31
17

skipif mysql # not compatible
query II rowsort label-6409
SELECT ALL + - 31, + MAX ( ALL - NULLIF ( - 17, - COALESCE ( + 99, - 17 ) ) ) AS col0
----
-31
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL + COUNT( 44 ) * - MIN( 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL + COUNT ( 44 ) * - MIN ( 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - + COUNT( * ) * + 94 + - 95 * + 5 AS col0
----
-569

skipif mysql # not compatible
query I rowsort label-6411
SELECT - + COUNT ( * ) * + 94 + - 95 * + 5 AS col0
----
-569

query II rowsort
SELECT + 92 AS col2, + 65
----
92
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT ALL + 69 col2, COUNT( * ) AS col1
----
69
1

skipif mysql # not compatible
query II rowsort label-6413
SELECT ALL + 69 col2, COUNT ( * ) AS col1
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT CASE - MAX( - 8 ) WHEN - - COUNT( * ) * - 49 * + - NULLIF ( - 41, 0 + - 40 ) + + 42 + - 29 THEN - 16 / - - 67 * - + 2 - - - 57 * - COUNT( * ) * - 68 / + + 4 + - 10 + - 58 * + CAST( NULL AS SIGNED ) WHEN - - 99 THEN NULL WHEN + 30 * 4 + + ( - - 47 ) + NULLIF ( - 31, - 58 ) THEN 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT CASE - MAX ( - 8 ) WHEN - - COUNT ( * ) * - 49 * + - NULLIF ( - 41, 0 + - 40 ) + + 42 + - 29 THEN - 16 / - - 67 * - + 2 - - - 57 * - COUNT ( * ) * - 68 / + + 4 + - 10 + - 58 * + CAST ( NULL AS INTEGER ) WHEN - - 99 THEN NULL WHEN + 30 * 4 + + ( - - 47 ) + NULLIF ( - 31, - 58 ) THEN 71 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6415
SELECT + NULLIF ( - 62, - + 53 + - AVG ( ALL + ( - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6415
SELECT + NULLIF ( - 62, - + 53 + - AVG ( ALL + ( - CAST ( NULL AS REAL ) ) ) ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT + AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) * - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT + AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) * - - 17 AS col0
----
NULL

query I rowsort
SELECT 62 * + 52 + + COALESCE ( + 87, 15 )
----
3311

query I rowsort
SELECT + ( + 42 ) * 9
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6419
SELECT + ( + 15 ) DIV - + COUNT( * ) + 17 + - - COALESCE ( 78, + SUM( ALL - ( - - 47 ) ), - + ( + + NULLIF ( + 24, 75 - + NULLIF ( ( 22 ), + 9 ) ) ) ) AS col1, - ( - 6 ) * + - 93 + - 0 AS col1
----
80
-558

skipif mysql # not compatible
query II rowsort label-6419
SELECT + ( + 15 ) / - + COUNT ( * ) + 17 + - - COALESCE ( 78, + SUM ( ALL - ( - - 47 ) ), - + ( + + NULLIF ( + 24, 75 - + NULLIF ( ( 22 ), + 9 ) ) ) ) AS col1, - ( - 6 ) * + - 93 + - 0 AS col1
----
80
-558

query I rowsort
SELECT DISTINCT 68 + - - 4 + 54 AS col1
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT DISTINCT CAST( - 41 AS SIGNED ) * + + 46 - 87
----
-1973

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT CAST ( - 41 AS INTEGER ) * + + 46 - 87
----
-1973

query II rowsort
SELECT + 50 + ( - + 23 ) AS col0, + 80 AS col1
----
27
80

query I rowsort
SELECT + 26 + - - 88 * + 11 AS col0
----
994

query II rowsort
SELECT ALL 32 + - 8 + + 91 AS col2, 41
----
115
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT + COUNT( * ) + + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6425
SELECT + COUNT ( * ) + + 75 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL + 27 + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + 27 + - COUNT ( * ) AS col1
----
26

query II rowsort
SELECT - 96 + 59, 54 AS col2
----
-37
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT DISTINCT ( - + 27 ) col2, 55 + + - COUNT( * ) * + + 3
----
-27
52

skipif mysql # not compatible
query II rowsort label-6428
SELECT DISTINCT ( - + 27 ) col2, 55 + + - COUNT ( * ) * + + 3
----
-27
52

query I rowsort
SELECT - 43 + ( - 28 )
----
-71

query I rowsort
SELECT - - 87 col2
----
87

query I rowsort
SELECT + 87 * + 36 AS col2
----
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6432
SELECT + + COUNT( * ) / CAST( NULL AS SIGNED ) * - COUNT( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - COUNT ( - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT + - SUM( - 18 ) * - - 25
----
450

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT + - SUM ( - 18 ) * - - 25
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT - 32 DIV 33 * - ( + COUNT( * ) ) * 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT - 32 / 33 * - ( + COUNT ( * ) ) * 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT CASE - COUNT( DISTINCT - + 78 ) WHEN + 35 + 51 THEN NULL WHEN + 37 / + 11 + - 98 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT CASE - COUNT ( DISTINCT - + 78 ) WHEN + 35 + 51 THEN NULL WHEN + 37 / + 11 + - 98 THEN - - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - 5, - - 79, 16 )
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-6437
SELECT - + 2 DIV + - 61 AS col1, 54
----
0
54

skipif mysql # not compatible
query II rowsort label-6437
SELECT - + 2 / + - 61 AS col1, 54
----
0
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT ALL + - COALESCE ( + MAX( DISTINCT + 14 ), - 1 * 26 DIV + 88 * - 78, COUNT( + 57 ) * + 99 * + COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + - COALESCE ( + MAX ( DISTINCT + 14 ), - 1 * 26 / + 88 * - 78, COUNT ( + 57 ) * + 99 * + COUNT ( * ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT + COUNT( + - CAST( - - 47 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6439
SELECT + COUNT ( + - CAST ( - - 47 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6440
SELECT ALL - ( + COUNT( * ) ), 79 DIV - 84 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6440
SELECT ALL - ( + COUNT ( * ) ), 79 / - 84 AS col0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT ALL - COUNT( * ) DIV + COALESCE ( + 67, - 63, + CASE + - 68 WHEN + ( - 27 ) THEN - 11 WHEN 92 DIV - 55 - + 50 THEN NULL ELSE NULL END ) - - + 69 * + 89 DIV + COUNT( * ) col1
----
6141

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - COUNT ( * ) / + COALESCE ( + 67, - 63, + CASE + - 68 WHEN + ( - 27 ) THEN - 11 WHEN 92 / - 55 - + 50 THEN NULL ELSE NULL END ) - - + 69 * + 89 / + COUNT ( * ) col1
----
6141

query I rowsort
SELECT 28 - + 55 + + + 21 * - 23 AS col0
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL - COALESCE ( - ( + COUNT( * ) ), - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - COALESCE ( - ( + COUNT ( * ) ), - 89 )
----
1

query II rowsort
SELECT + 63, 22 AS col1
----
63
22

query II rowsort
SELECT + 18, 97 * + 14 AS col1
----
18
1358

query I rowsort
SELECT 14 + 58 AS col1
----
72

query II rowsort
SELECT + 21, - 12 col1
----
21
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL - CAST( NULL AS SIGNED ) + - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - CAST ( NULL AS INTEGER ) + - 16 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT 24 + - SUM( ALL 62 ) col0, - 76
----
-38
-76

skipif mysql # not compatible
query II rowsort label-6449
SELECT 24 + - SUM ( ALL 62 ) col0, - 76
----
-38
-76

query I rowsort
SELECT 30 * - - 64
----
1920

query I rowsort
SELECT 68 - - 68
----
136

query I rowsort
SELECT ALL 27 + - 70 col0
----
-43

query II rowsort
SELECT DISTINCT - 17 AS col1, + 51 + + - ( + - 64 ) AS col2
----
-17
115

query I rowsort
SELECT 58 + + 98
----
156

query I rowsort
SELECT DISTINCT 14 + + - 79 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6456
SELECT DISTINCT - 23 DIV - COUNT( + - CAST( - 53 AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - 23 / - COUNT ( + - CAST ( - 53 AS INTEGER ) )
----
23

query I rowsort
SELECT 55 + - 19
----
36

query I rowsort
SELECT 93 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT MIN( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6459
SELECT MIN ( ALL 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL MAX( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL MAX ( - 68 ) AS col2
----
-68

query I rowsort
SELECT DISTINCT + 83 * 13
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT COALESCE ( - MIN( 80 ), 74 * 41 * - COUNT( * ) * + 57 + - 47 + + 86, COUNT( * ) + + 52 )
----
-80

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT COALESCE ( - MIN ( 80 ), 74 * 41 * - COUNT ( * ) * + 57 + - 47 + + 86, COUNT ( * ) + + 52 )
----
-80

query I rowsort
SELECT 81 + + 95
----
176

query I rowsort
SELECT 40 * 83
----
3320

onlyif mysql # DIV for integer division: 
query II rowsort label-6465
SELECT - 60 + + + 10 DIV - 8, ( + COALESCE ( + - 61, - ( + 90 ) + - 39 ) ) AS col0
----
-61
-61

skipif mysql # not compatible
query II rowsort label-6465
SELECT - 60 + + + 10 / - 8, ( + COALESCE ( + - 61, - ( + 90 ) + - 39 ) ) AS col0
----
-61
-61

query I rowsort
SELECT 71 - - - 68 AS col0
----
3

query I rowsort
SELECT + 43 - 85 AS col1
----
-42

query I rowsort
SELECT 63 * - + 89 AS col0
----
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - CASE + 2 WHEN - + COUNT( * ) THEN + + 43 END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - CASE + 2 WHEN - + COUNT ( * ) THEN + + 43 END + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT COUNT( * ) + + 85 col1
----
86

skipif mysql # not compatible
query I rowsort label-6470
SELECT COUNT ( * ) + + 85 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL SUM( - 71 ) + + 2 + - 3 * 31 col2
----
-162

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL SUM ( - 71 ) + + 2 + - 3 * 31 col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT - COALESCE ( CAST( - 24 AS SIGNED ), + 77 + 46 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - COALESCE ( CAST ( - 24 AS INTEGER ), + 77 + 46 ) AS col1
----
24

query I rowsort
SELECT 43 + - 61 * + + ( - - 24 ) + - - 98
----
-1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT 24 * - 82
----
-1968

query I rowsort
SELECT DISTINCT - 26 + + ( 21 ) + - 87 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT 43 DIV COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6477
SELECT 43 / COUNT ( * ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT ALL - 99 DIV 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - 99 / 85 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + 29 * - NULLIF ( + - 62, - SUM( + + 45 ) * - 82 ) + + - 79 AS col2
----
1719

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 29 * - NULLIF ( + - 62, - SUM ( + + 45 ) * - 82 ) + + - 79 AS col2
----
1719

query II rowsort
SELECT 48 * - 33 AS col1, 14
----
-1584
14

query I rowsort
SELECT ALL + 36 * + 79
----
2844

query I rowsort
SELECT + 35 * 5 - + - 95 AS col2
----
270

query I rowsort
SELECT ALL - 9 * + 50
----
-450

query I rowsort
SELECT 74 * 50
----
3700

query I rowsort
SELECT DISTINCT - + 80 * 22 * - 74 AS col2
----
130240

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT 86 DIV - - 81 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6486
SELECT 86 / - - 81 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT 16 + - COUNT( * ) DIV - 95 * 48 * + - COALESCE ( + - 48, + 8, - 65 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6487
SELECT 16 + - COUNT ( * ) / - 95 * 48 * + - COALESCE ( + - 48, + 8, - 65 ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT DISTINCT + 74 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + 74 / 72
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL - COUNT( * ) DIV + 77 + - 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - COUNT ( * ) / + 77 + - 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT MIN( + 89 ) * 91 + - COUNT( ALL - - 1 ) AS col1
----
8098

skipif mysql # not compatible
query I rowsort label-6490
SELECT MIN ( + 89 ) * 91 + - COUNT ( ALL - - 1 ) AS col1
----
8098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6491
SELECT NULLIF ( - NULLIF ( 81, 81 * - NULLIF ( + + 18, - ( + COUNT( * ) ) - 83 / + + 3 ) + + + 32 * - ( SUM( ALL 66 ) ) + + - 88 ), - COUNT( * ) + ( - + MAX( 14 ) ) + + + 68 * - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 91 - 70 / + - 7 * - 82 + + CAST( NULL AS SIGNED ) * 72 * + CASE CAST( NULL AS DECIMAL ) WHEN + 26 + 65 - + 45 + - 67 THEN - 71 END + + 53 ) + 37
----
-44

skipif mysql # not compatible
query I rowsort label-6491
SELECT NULLIF ( - NULLIF ( 81, 81 * - NULLIF ( + + 18, - ( + COUNT ( * ) ) - 83 / + + 3 ) + + + 32 * - ( SUM ( ALL 66 ) ) + + - 88 ), - COUNT ( * ) + ( - + MAX ( 14 ) ) + + + 68 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 91 - 70 / + - 7 * - 82 + + CAST ( NULL AS INTEGER ) * 72 * + CASE CAST ( NULL AS REAL ) WHEN + 26 + 65 - + 45 + - 67 THEN - 71 END + + 53 ) + 37
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT AVG ( DISTINCT 20 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT AVG ( DISTINCT 20 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 85 + + 76 AS col0, 5 AS col2
----
161
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT - + ( COUNT( * ) ) / - - COUNT( * ) * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT - + ( COUNT ( * ) ) / - - COUNT ( * ) * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL 24 + 67 * COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 24 + 67 * COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT ALL + - CASE - ( COUNT( * ) ) WHEN 58 THEN - - 96 ELSE + NULLIF ( - 45, - + 30 ) END * + - 96 AS col2, - ( 48 ) AS col0
----
-4320
-48

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL + - CASE - ( COUNT ( * ) ) WHEN 58 THEN - - 96 ELSE + NULLIF ( - 45, - + 30 ) END * + - 96 AS col2, - ( 48 ) AS col0
----
-4320
-48

query I rowsort
SELECT - + 22 - - 51
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - CASE AVG ( DISTINCT 71 ) WHEN + - COUNT( DISTINCT 73 ) THEN + 63 WHEN - 16 THEN NULL END * + 68 * + 1 - 72 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT - CASE AVG ( DISTINCT 71 ) WHEN + - COUNT ( DISTINCT 73 ) THEN + 63 WHEN - 16 THEN NULL END * + 68 * + 1 - 72 * + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT CASE + ( + AVG ( + - 38 ) ) WHEN + COALESCE ( + 30, + 50 * - ( MIN( ALL - - 63 ) ) ) * 47 * + 57 - - + COUNT( 22 ) * + COUNT( * ) + + ( 78 ) * - - 74 * + NULLIF ( COALESCE ( - 51, + 94, - ( + + 14 ) * + 29 + + 74 - - + 45 * - 85 ), 34 ) THEN 32 ELSE - COUNT( 54 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6499
SELECT CASE + ( + AVG ( + - 38 ) ) WHEN + COALESCE ( + 30, + 50 * - ( MIN ( ALL - - 63 ) ) ) * 47 * + 57 - - + COUNT ( 22 ) * + COUNT ( * ) + + ( 78 ) * - - 74 * + NULLIF ( COALESCE ( - 51, + 94, - ( + + 14 ) * + 29 + + 74 - - + 45 * - 85 ), 34 ) THEN 32 ELSE - COUNT ( 54 ) END
----
-1

query I rowsort
SELECT + 40 * + 22
----
880

query I rowsort
SELECT + 46 * + + 56 * 56
----
144256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT ALL 95 * - - 42 * - ( + 65 ) + + CAST( NULL AS SIGNED ) * - + 78 / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL 95 * - - 42 * - ( + 65 ) + + CAST ( NULL AS INTEGER ) * - + 78 / 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT CASE 70 WHEN 23 THEN NULL ELSE 37 + MIN( ALL - 86 ) END
----
-49

skipif mysql # not compatible
query I rowsort label-6503
SELECT CASE 70 WHEN 23 THEN NULL ELSE 37 + MIN ( ALL - 86 ) END
----
-49

query I rowsort
SELECT + 10 - 79
----
-69

query I rowsort
SELECT + 25 * - - NULLIF ( - 3, + 17 ) - - 23
----
-52

query I rowsort
SELECT ALL + COALESCE ( 92, + 85 ) AS col0
----
92

query II rowsort
SELECT DISTINCT + 10, + 81 * ( + 19 ) AS col1
----
10
1539

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT COUNT( * ) col2, 34
----
1
34

skipif mysql # not compatible
query II rowsort label-6508
SELECT COUNT ( * ) col2, 34
----
1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT COUNT( DISTINCT + + NULLIF ( + 22, - 32 + - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6509
SELECT COUNT ( DISTINCT + + NULLIF ( + 22, - 32 + - CAST ( NULL AS INTEGER ) ) )
----
1

query I rowsort
SELECT - 32 - - 96 + 85
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-6511
SELECT ALL + 38, COUNT( * ) + MIN( ALL 62 ) AS col2
----
38
63

skipif mysql # not compatible
query II rowsort label-6511
SELECT ALL + 38, COUNT ( * ) + MIN ( ALL 62 ) AS col2
----
38
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT + COUNT( * ) * + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6512
SELECT + COUNT ( * ) * + 85 AS col1
----
85

query I rowsort
SELECT - 49 * + 52
----
-2548

query I rowsort
SELECT - 20 * - 89 AS col0
----
1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6515
SELECT ALL ( + - 87 ) DIV + ( + COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL ( + - 87 ) / + ( + COUNT ( * ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - 67 + - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 67 + - COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL - 44 * COALESCE ( - - SUM( DISTINCT - 30 ), + 23 + + - 3 ) AS col1
----
1320

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - 44 * COALESCE ( - - SUM ( DISTINCT - 30 ), + 23 + + - 3 ) AS col1
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - - 39 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6518
SELECT - - 39 * COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL - MIN( - 6 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - MIN ( - 6 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + + 28 + - + 18 / + 45 + + 16 - - ( + + 12 ) + + - CASE + 65 WHEN - 40 THEN - 80 WHEN - + COUNT( * ) * 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT + + 28 + - + 18 / + 45 + + 16 - - ( + + 12 ) + + - CASE + 65 WHEN - 40 THEN - 80 WHEN - + COUNT ( * ) * 39 THEN NULL END
----
NULL

query I rowsort
SELECT + - 53 + - + ( + 6 ) + - 86
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - COUNT( * ) * - ( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6522
SELECT - COUNT ( * ) * - ( 87 )
----
87

query I rowsort
SELECT ALL + 98 + - 1 + 70 AS col0
----
167

query I rowsort
SELECT ALL - + 27 + + + 57 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL - COUNT( * ) + + 15 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - COUNT ( * ) + + 15 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL CAST( NULL AS SIGNED ) / 14 + + - ( + AVG ( ALL + - 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL CAST ( NULL AS INTEGER ) / 14 + + - ( + AVG ( ALL + - 51 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT + - 46 * + 42 * + COALESCE ( CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) + - + COUNT( * ) + 0 ) AS col0
----
-1932

skipif mysql # not compatible
query I rowsort label-6528
SELECT + - 46 * + 42 * + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) + - + COUNT ( * ) + 0 ) AS col0
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - + MAX( ALL + + 97 ) + - 6 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-6529
SELECT - + MAX ( ALL + + 97 ) + - 6 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT + 28 - - COUNT( * ) + - + SUM( ALL 43 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6530
SELECT + 28 - - COUNT ( * ) + - + SUM ( ALL 43 ) AS col0
----
-14

query I rowsort
SELECT - - 2 + 57 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) - - 26
----
27

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) - - 26
----
27

query I rowsort
SELECT DISTINCT 69 * + COALESCE ( + + 2, 69, - 33 ) AS col0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT + 1 DIV 19 * + 79 - COUNT( * ) + 33 col0
----
32

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + 1 / 19 * + 79 - COUNT ( * ) + 33 col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT + 46 DIV - - 91 + + 35 + - ( + 13 ) + - 52 * + - COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6535
SELECT + 46 / - - 91 + + 35 + - ( + 13 ) + - 52 * + - COUNT ( * ) AS col0
----
74

query I rowsort
SELECT ALL + 8 * + ( - 8 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6537
SELECT ALL + 39 AS col0, + MAX( CAST( NULL AS SIGNED ) )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6537
SELECT ALL + 39 AS col0, + MAX ( CAST ( NULL AS INTEGER ) )
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6538
SELECT CAST ( + 86 AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT 9 * 56 col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + MIN( ALL - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-6540
SELECT + MIN ( ALL - - 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT CAST( + - 23 AS SIGNED ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-6541
SELECT CAST ( + - 23 AS INTEGER ) col0
----
-23

query I rowsort
SELECT + ( 25 ) AS col0
----
25

query I rowsort
SELECT ( - CASE 28 WHEN - 34 * 76 THEN NULL WHEN + 36 + + 53 THEN - + 85 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6544
SELECT ( + CASE - 73 WHEN + 5 * + 49 THEN - - 65 ELSE NULL END ) AS col2, + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6544
SELECT ( + CASE - 73 WHEN + 5 * + 49 THEN - - 65 ELSE NULL END ) AS col2, + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ( - MIN( ALL - 0 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6545
SELECT ( - MIN ( ALL - 0 ) ) col1
----
0

query I rowsort
SELECT ALL + NULLIF ( + 23, + + 51 + + ( + 33 ) )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT + COUNT( * ) DIV 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT + COUNT ( * ) / 49 AS col2
----
0

query II rowsort
SELECT ALL + 58 AS col0, 79 * - 20 + + ( + 2 ) + - 55
----
58
-1633

onlyif mysql # DIV for integer division: 
query II rowsort label-6549
SELECT DISTINCT 61 DIV - 40 AS col1, 9 AS col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-6549
SELECT DISTINCT 61 / - 40 AS col1, 9 AS col2
----
-1
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6550
SELECT ALL + COUNT( - 82 ) AS col2, ( + NULLIF ( - - 59, - - 95 ) ) * 77 DIV - SUM( ALL - + 40 ) AS col2
----
1
113

skipif mysql # not compatible
query II rowsort label-6550
SELECT ALL + COUNT ( - 82 ) AS col2, ( + NULLIF ( - - 59, - - 95 ) ) * 77 / - SUM ( ALL - + 40 ) AS col2
----
1
113

query I rowsort
SELECT + + 68 * - NULLIF ( - + 17, - 80 * + 65 ) AS col1
----
1156

query I rowsort
SELECT ALL 62 * - + 39 + - 95 AS col2
----
-2513

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT + + COUNT( * ), - 32 AS col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-6553
SELECT + + COUNT ( * ), - 32 AS col1
----
1
-32

query I rowsort
SELECT + 13 + - 2 * 61 * + - 47
----
5747

query I rowsort
SELECT + + 24 - - 38 AS col0
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-6556
SELECT + 27 DIV 25 AS col0, + 33 DIV - - 63 + - 28
----
1
-28

skipif mysql # not compatible
query II rowsort label-6556
SELECT + 27 / 25 AS col0, + 33 / - - 63 + - 28
----
1
-28

query I rowsort
SELECT DISTINCT + + ( + 79 ) + 40
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6558
SELECT + 63 + 78 col2, NULLIF ( CASE + CAST( NULL AS SIGNED ) WHEN - - 55 + - 45 THEN NULL WHEN CAST( COALESCE ( - 21, 52, + 95 ) AS SIGNED ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST( NULL AS SIGNED ) * 9 END, - + 66 ) col2
----
141
NULL

skipif mysql # not compatible
query II rowsort label-6558
SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2
----
141
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT COUNT( * ) - 19 * 12 * 91 + - 64 + + COUNT( * )
----
-20810

skipif mysql # not compatible
query I rowsort label-6559
SELECT COUNT ( * ) - 19 * 12 * 91 + - 64 + + COUNT ( * )
----
-20810

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT 41 DIV 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT 41 / 15 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT ALL 59 + + 70 DIV 61 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL 59 + + 70 / 61 AS col0
----
60

query II rowsort
SELECT ( - + 27 ), 89 AS col0
----
-27
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT - 95 AS col0, - 87 * + 93 * - - 14 + + COUNT( * ) * - - COUNT( * )
----
-95
-113273

skipif mysql # not compatible
query II rowsort label-6563
SELECT - 95 AS col0, - 87 * + 93 * - - 14 + + COUNT ( * ) * - - COUNT ( * )
----
-95
-113273

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - COUNT( * ) + 7 col1
----
6

skipif mysql # not compatible
query I rowsort label-6564
SELECT - COUNT ( * ) + 7 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT DISTINCT + - CAST( + - COUNT( * ) AS SIGNED ) * - 60
----
-60

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT + - CAST ( + - COUNT ( * ) AS INTEGER ) * - 60
----
-60

query II rowsort
SELECT ALL 67, + 7 AS col0
----
67
7

query II rowsort
SELECT - 79 AS col0, + 23
----
-79
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT COUNT( * ) + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-6568
SELECT COUNT ( * ) + 86 col1
----
87

query I rowsort
SELECT 49 * - 20 col2
----
-980

query I rowsort
SELECT DISTINCT + 95 - - 85 col1
----
180

query I rowsort
SELECT 49 - 32 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT MAX( + 48 ) * - - 78 AS col2
----
3744

skipif mysql # not compatible
query I rowsort label-6572
SELECT MAX ( + 48 ) * - - 78 AS col2
----
3744

query I rowsort
SELECT + 17 * - 93 - - + 56
----
-1525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6574
SELECT ALL + 77 DIV MAX( ALL 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + 77 / MAX ( ALL 54 ) AS col1
----
1

query I rowsort
SELECT 64 * - + 95 * - + 39 AS col2
----
237120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT 74 * ( CASE + - 74 WHEN 49 DIV - - 27 * + COUNT( * ) THEN + + 21 - - ( + 32 ) WHEN + 71 * + 84 THEN NULL ELSE 30 END ) DIV - COUNT( * )
----
-2220

skipif mysql # not compatible
query I rowsort label-6576
SELECT 74 * ( CASE + - 74 WHEN 49 / - - 27 * + COUNT ( * ) THEN + + 21 - - ( + 32 ) WHEN + 71 * + 84 THEN NULL ELSE 30 END ) / - COUNT ( * )
----
-2220

onlyif mysql # aggregate syntax: 
query II rowsort label-6577
SELECT ALL COALESCE ( ( 46 ), - + 86 ) * + COUNT( * ), - 67 AS col1
----
46
-67

skipif mysql # not compatible
query II rowsort label-6577
SELECT ALL COALESCE ( ( 46 ), - + 86 ) * + COUNT ( * ), - 67 AS col1
----
46
-67

query I rowsort
SELECT 93 - - - ( - 39 ) + - 78 * 77 + - 47
----
-5921

query I rowsort
SELECT DISTINCT + 60 * + + 4 AS col1
----
240

query III rowsort
SELECT DISTINCT + 5 + - 51 AS col2, 64 AS col0, 34
----
-46
64
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT 83 + + MIN( DISTINCT ( - NULLIF ( + - 1, + 55 ) ) ) - + COUNT( ALL 18 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6581
SELECT 83 + + MIN ( DISTINCT ( - NULLIF ( + - 1, + 55 ) ) ) - + COUNT ( ALL 18 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT 46 + 14 + + CAST( NULL AS SIGNED ) + 76 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT 46 + 14 + + CAST ( NULL AS INTEGER ) + 76 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - - ( + 99 ) * - - 32 + - COUNT( * ) + - 61 col2
----
3106

skipif mysql # not compatible
query I rowsort label-6583
SELECT - - ( + 99 ) * - - 32 + - COUNT ( * ) + - 61 col2
----
3106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT - 85 - + CAST( NULL AS SIGNED ) + - 73 - 86 * + 75 * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT - 85 - + CAST ( NULL AS INTEGER ) + - 73 - 86 * + 75 * 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT ALL + ( - + NULLIF ( + - NULLIF ( - ( 95 ), 81 * + - CAST( CASE + 18 WHEN - + 3 * - 4 THEN - + 5 WHEN - ( 86 ) THEN 2 + 99 ELSE NULL END AS SIGNED ) ), - - 51 ) ) + + 17 col1
----
-78

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + ( - + NULLIF ( + - NULLIF ( - ( 95 ), 81 * + - CAST ( CASE + 18 WHEN - + 3 * - 4 THEN - + 5 WHEN - ( 86 ) THEN 2 + 99 ELSE NULL END AS INTEGER ) ), - - 51 ) ) + + 17 col1
----
-78

query II rowsort
SELECT ALL - ( 57 ), - ( 74 ) AS col1
----
-57
-74

query I rowsort
SELECT DISTINCT 12 + - 84
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + 51 + + SUM( ALL - 45 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6588
SELECT + 51 + + SUM ( ALL - 45 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL + ( 93 ) * + 29 + - 35 * ( + SUM( ALL 2 ) ) + + - 69 + 10
----
2568

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + ( 93 ) * + 29 + - 35 * ( + SUM ( ALL 2 ) ) + + - 69 + 10
----
2568

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 50 + MIN( - + 84 ) + - 15 * 75 AS col2
----
-1159

skipif mysql # not compatible
query I rowsort label-6590
SELECT 50 + MIN ( - + 84 ) + - 15 * 75 AS col2
----
-1159

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - COUNT( * ) * + - 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( * ) * + - 82 col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT COALESCE ( - 88, 35 ) DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT COALESCE ( - 88, 35 ) / - - 98
----
0

query I rowsort
SELECT DISTINCT 19 * 62 AS col2
----
1178

query I rowsort
SELECT + ( COALESCE ( - NULLIF ( - 96, - - 69 + 46 * + 95 ), - 5 + - - 3 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + MAX( - COALESCE ( + + 97, - 49 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + MAX ( - COALESCE ( + + 97, - 49 ) )
----
-97

query I rowsort
SELECT ALL - 54 * - + 90
----
4860

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT ALL 93 DIV - + 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL 93 / - + 66 AS col0
----
-1

query II rowsort
SELECT - 68 AS col0, + COALESCE ( - + 80, + - 76, - + 10 ) * - ( ( + 53 ) )
----
-68
4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6599
SELECT COALESCE ( - 20, MIN( - 45 ) * + 87 * + + 94 + + + 50 + CAST( 42 AS SIGNED ) DIV + 39, ( - 73 ) ) + - + ( - NULLIF ( 62, - AVG ( DISTINCT + - 44 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-6599
SELECT COALESCE ( - 20, MIN ( - 45 ) * + 87 * + + 94 + + + 50 + CAST ( 42 AS INTEGER ) / + 39, ( - 73 ) ) + - + ( - NULLIF ( 62, - AVG ( DISTINCT + - 44 ) ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT 84 * - COALESCE ( COALESCE ( + - 36, - ( - COUNT( * ) ) * - 96 * - 72 + + CAST( NULL AS SIGNED ) ), - MAX( 27 ), - - 17 ) col2
----
3024

skipif mysql # not compatible
query I rowsort label-6600
SELECT 84 * - COALESCE ( COALESCE ( + - 36, - ( - COUNT ( * ) ) * - 96 * - 72 + + CAST ( NULL AS INTEGER ) ), - MAX ( 27 ), - - 17 ) col2
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6601
SELECT 94 - CAST( CASE COUNT( * ) WHEN - COUNT( * ) THEN - CASE + 36 WHEN - + 99 THEN NULL WHEN + + 20 + 27 THEN + 87 + + 0 * COUNT( * ) * 25 ELSE + 43 END END AS SIGNED ) * + 32 + - MIN( 6 ) AS col2, CAST( - 31 AS SIGNED )
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-6601
SELECT 94 - CAST ( CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - CASE + 36 WHEN - + 99 THEN NULL WHEN + + 20 + 27 THEN + 87 + + 0 * COUNT ( * ) * 25 ELSE + 43 END END AS INTEGER ) * + 32 + - MIN ( 6 ) AS col2, CAST ( - 31 AS INTEGER )
----
NULL
-31

query I rowsort
SELECT ALL + 91 * 50
----
4550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6603
SELECT CAST( + - 84 AS SIGNED ) + - 96 * 70 * + 40 * + 93, + 50 AS col1
----
-24998484
50

skipif mysql # not compatible
query II rowsort label-6603
SELECT CAST ( + - 84 AS INTEGER ) + - 96 * 70 * + 40 * + 93, + 50 AS col1
----
-24998484
50

query I rowsort
SELECT 3 + - 81
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT 50 * + ( + + COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT 50 * + ( + + COUNT ( * ) ) AS col1
----
50

query I rowsort
SELECT DISTINCT 44 * - 76 * + + 97 + + 91
----
-324277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL - CAST( + CASE - - COUNT( * ) WHEN + 44 THEN + 35 * + + 28 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - CAST ( + CASE - - COUNT ( * ) WHEN + 44 THEN + 35 * + + 28 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT 3 + - 45 * + - CAST( + 2 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-6608
SELECT 3 + - 45 * + - CAST ( + 2 AS INTEGER )
----
93

query I rowsort
SELECT ALL 18 * + + 6 + 34 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - NULLIF ( - + COUNT( * ), - + 73 + - - 82 * - 40 + - 91 ) * 0 + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-6610
SELECT - NULLIF ( - + COUNT ( * ), - + 73 + - - 82 * - 40 + - 91 ) * 0 + + - 89
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT 83 * - - ( MAX( 29 ) ) AS col0, 51 * - + 86 AS col1
----
2407
-4386

skipif mysql # not compatible
query II rowsort label-6611
SELECT 83 * - - ( MAX ( 29 ) ) AS col0, 51 * - + 86 AS col1
----
2407
-4386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6612
SELECT COUNT( * ) AS col1, 88 * - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6612
SELECT COUNT ( * ) AS col1, 88 * - CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT - 55 * 58 + - - 89 + + - 83
----
-3184

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT DISTINCT - 13 DIV - 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - 13 / - 77 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT - 0 DIV - 69 * COUNT( DISTINCT - + 20 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT - 0 / - 69 * COUNT ( DISTINCT - + 20 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT + + NULLIF ( + 74, + COUNT( * ) * + 11 + - - 69 + - ( - SUM( ALL CAST( NULL AS SIGNED ) ) ) - ( 69 ) ) + + ( + - 30 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6616
SELECT + + NULLIF ( + 74, + COUNT ( * ) * + 11 + - - 69 + - ( - SUM ( ALL CAST ( NULL AS INTEGER ) ) ) - ( 69 ) ) + + ( + - 30 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT ALL - - 58 * - 8 + + + 99 DIV - 37
----
-466

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - - 58 * - 8 + + + 99 / - 37
----
-466

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT - 19 + - 13 + - SUM( - + 90 )
----
58

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - 19 + - 13 + - SUM ( - + 90 )
----
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6619
SELECT ALL + 61 + + ( AVG ( ALL 89 ) ) + + 60 + - CAST( - 94 AS DECIMAL ) + - + 14 + 13 / CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + 61 + + ( AVG ( ALL 89 ) ) + + 60 + - CAST ( - 94 AS REAL ) + - + 14 + 13 / CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 41 AS col0, 21 AS col2
----
41
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + + 59 + - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6621
SELECT + + 59 + - + COUNT ( * )
----
58

query I rowsort
SELECT + + 0 * 93 col2
----
0

query II rowsort
SELECT ALL - 98 AS col2, 4 + - 81
----
-98
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT DISTINCT - 85, - 63 * COUNT( * ) AS col2
----
-85
-63

skipif mysql # not compatible
query II rowsort label-6624
SELECT DISTINCT - 85, - 63 * COUNT ( * ) AS col2
----
-85
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL CAST ( - 64 AS INTEGER ) AS col0
----
-64

query I rowsort
SELECT + ( - 16 ) + + 47
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + - SUM( ALL + + 71 ) - + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-6627
SELECT + - SUM ( ALL + + 71 ) - + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT - + 80 AS col2, - 55 * + 88 * - - SUM( ALL + 66 ) + + 28
----
-80
-319412

skipif mysql # not compatible
query II rowsort label-6628
SELECT - + 80 AS col2, - 55 * + 88 * - - SUM ( ALL + 66 ) + + 28
----
-80
-319412

query I rowsort
SELECT - 57 * - - ( 15 )
----
-855

query I rowsort
SELECT + 81 + + 8 + 17 AS col1
----
106

query I rowsort
SELECT DISTINCT 87 * + 48 * - 25 AS col2
----
-104400

query I rowsort
SELECT + ( + 68 ) + + - 60 + + 58 AS col2
----
66

query I rowsort
SELECT DISTINCT 80 + + 65 + + 62 AS col2
----
207

query II rowsort
SELECT DISTINCT 51 * - 66 AS col0, + 53
----
-3366
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL 9 + + 87 + + ( MAX( DISTINCT + 98 ) ) + - ( - 78 ) col0
----
272

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL 9 + + 87 + + ( MAX ( DISTINCT + 98 ) ) + - ( - 78 ) col0
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT 74 DIV + ( - + 36 )
----
-2

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT 74 / + ( - + 36 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6637
SELECT - COALESCE ( + COUNT( * ), - + COUNT( * ), - + 58 * + + COUNT( * ) * - - 91 * + ( 70 ) * - - 95 * + ( - COUNT( * ) ) DIV + CAST( NULL AS SIGNED ) * + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6637
SELECT - COALESCE ( + COUNT ( * ), - + COUNT ( * ), - + 58 * + + COUNT ( * ) * - - 91 * + ( 70 ) * - - 95 * + ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * + 82 )
----
-1

query I rowsort
SELECT DISTINCT 44 + + + 4
----
48

query I rowsort
SELECT DISTINCT - 5 + + 27 * - 91 AS col0
----
-2462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT CAST( + - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6640
SELECT CAST ( + - 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT + CAST( - 92 AS SIGNED ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6641
SELECT + CAST ( - 92 AS INTEGER ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT + COUNT( ALL - 35 ) - - 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6642
SELECT + COUNT ( ALL - 35 ) - - 5 AS col2
----
6

query II rowsort
SELECT ( 18 ) AS col2, + 59
----
18
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT COUNT( * ) * + 18 + 5
----
23

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( * ) * + 18 + 5
----
23

query I rowsort
SELECT + ( + + 62 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT + CAST( + ( 27 ) AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6646
SELECT + CAST ( + ( 27 ) AS INTEGER ) AS col0
----
27

query I rowsort
SELECT - ( + - 17 ) * - 79 + 97 AS col1
----
-1246

query I rowsort
SELECT DISTINCT + - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT ALL + 70 * - CASE + 16 WHEN + 82 THEN COALESCE ( + - 29, - 77 * - - 37 * 38 - - - 13 - 43, + - 61 + - 81 + + 72 + + COUNT( * ) - - 74 + + + 19 ) + 91 ELSE + - 74 DIV + ( 99 ) * - 87 DIV + COUNT( * ) * + + SUM( DISTINCT - - 11 ) + + - 29 END - 95
----
1935

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + 70 * - CASE + 16 WHEN + 82 THEN COALESCE ( + - 29, - 77 * - - 37 * 38 - - - 13 - 43, + - 61 + - 81 + + 72 + + COUNT ( * ) - - 74 + + + 19 ) + 91 ELSE + - 74 / + ( 99 ) * - 87 / + COUNT ( * ) * + + SUM ( DISTINCT - - 11 ) + + - 29 END - 95
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT + - COUNT( - 74 ) * - 25 * + ( + - 16 ) * - 27 + MIN( ALL + + 69 ) AS col1
----
10869

skipif mysql # not compatible
query I rowsort label-6650
SELECT + - COUNT ( - 74 ) * - 25 * + ( + - 16 ) * - 27 + MIN ( ALL + + 69 ) AS col1
----
10869

query I rowsort
SELECT - - 79 * + 13 AS col0
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + + 10 + - + 81 - + ( + 75 ) - COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-6652
SELECT + + 10 + - + 81 - + ( + 75 ) - COUNT ( * )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + + COALESCE ( - 84, + NULLIF ( - 3, + 55 ) + + 56 + - + MAX( DISTINCT 60 ) - + + 70, + 45 )
----
-84

skipif mysql # not compatible
query I rowsort label-6653
SELECT + + COALESCE ( - 84, + NULLIF ( - 3, + 55 ) + + 56 + - + MAX ( DISTINCT 60 ) - + + 70, + 45 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT 35 * 43 + - - 58 + + SUM( - 1 ) AS col2
----
1562

skipif mysql # not compatible
query I rowsort label-6654
SELECT 35 * 43 + - - 58 + + SUM ( - 1 ) AS col2
----
1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6655
SELECT DISTINCT - + 75 * + COUNT( * ) + + ( + 25 ) AS col1, 4 DIV + - 95 - 1
----
-50
-1

skipif mysql # not compatible
query II rowsort label-6655
SELECT DISTINCT - + 75 * + COUNT ( * ) + + ( + 25 ) AS col1, 4 / + - 95 - 1
----
-50
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6656
SELECT DISTINCT + CASE WHEN NULL IN ( - ( + - 83 ), + ( 86 ) * - CAST( + 41 AS SIGNED ) * + + 85, + - 95, - + CAST( NULL AS SIGNED ) / + COALESCE ( COALESCE ( - COALESCE ( - 25, 39 * 38 / + 13 + + + COALESCE ( - 8, - CAST( NULL AS DECIMAL ) ) ), + + 40 ), 51 * 69, - - 64, + 56 ) + 96 + - 19 + + 82 * + 30 ) THEN - + MAX( + 36 ) END AS col2, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-6656
SELECT DISTINCT + CASE WHEN NULL IN ( - ( + - 83 ), + ( 86 ) * - CAST ( + 41 AS INTEGER ) * + + 85, + - 95, - + CAST ( NULL AS INTEGER ) / + COALESCE ( COALESCE ( - COALESCE ( - 25, 39 * 38 / + 13 + + + COALESCE ( - 8, - CAST ( NULL AS REAL ) ) ), + + 40 ), 51 * 69, - - 64, + 56 ) + 96 + - 19 + + 82 * + 30 ) THEN - + MAX ( + 36 ) END AS col2, 66
----
NULL
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6657
SELECT DISTINCT - CAST( - ( + - 92 ) AS SIGNED ) DIV - 40 col2
----
2

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - CAST ( - ( + - 92 ) AS INTEGER ) / - 40 col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT - + 8 DIV - 75 * + - MAX( ALL - 21 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT - + 8 / - 75 * + - MAX ( ALL - 21 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT - + ( 4 ) DIV - + 95 - 64 col2
----
-64

skipif mysql # not compatible
query I rowsort label-6659
SELECT - + ( 4 ) / - + 95 - 64 col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT - - 11 * + + 20 + - 19 + + 34 * CAST( NULL AS SIGNED ) - - AVG ( ( + 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT - - 11 * + + 20 + - 19 + + 34 * CAST ( NULL AS INTEGER ) - - AVG ( ( + 26 ) )
----
NULL

query I rowsort
SELECT - 51 + - 1 * + 35
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6662
SELECT - COALESCE ( - - 82, COUNT( * ) ), COUNT( * ) * - - ( ( + COALESCE ( + MIN( DISTINCT - 67 ), + + 82 ) ) ) AS col1
----
-82
-67

skipif mysql # not compatible
query II rowsort label-6662
SELECT - COALESCE ( - - 82, COUNT ( * ) ), COUNT ( * ) * - - ( ( + COALESCE ( + MIN ( DISTINCT - 67 ), + + 82 ) ) ) AS col1
----
-82
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT SUM( ALL - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-6663
SELECT SUM ( ALL - - 2 )
----
2

query I rowsort
SELECT - 4 * - ( 29 )
----
116

query I rowsort
SELECT DISTINCT 33 * 18
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6666
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + 90 DIV COUNT( * ) + - 35
----
54

skipif mysql # not compatible
query I rowsort label-6666
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + 90 / COUNT ( * ) + - 35
----
54

query I rowsort
SELECT - 85 + - 15 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - SUM( ( - - 32 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6668
SELECT - SUM ( ( - - 32 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + 50 + - ( + COUNT( * ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6669
SELECT + 50 + - ( + COUNT ( * ) ) AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6670
SELECT ALL 32 * 79 DIV - COUNT( * )
----
-2528

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL 32 * 79 / - COUNT ( * )
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT COUNT( * ) - 99
----
-98

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( * ) - 99
----
-98

query II rowsort
SELECT 54, 34 AS col1
----
54
34

query I rowsort
SELECT ALL - 83 * - 14 AS col0
----
1162

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT DISTINCT 55 - - 92 + 17 + + 54 * + + 92 + + 75 DIV 23 DIV - ( - 31 )
----
5132

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT 55 - - 92 + 17 + + 54 * + + 92 + + 75 / 23 / - ( - 31 )
----
5132

query I rowsort
SELECT ALL - 94 - - 9 - + ( + + 72 ) AS col1
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT 38 + + 72 + + CAST( NULL AS SIGNED ) + - 72 * 44 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT 38 + + 72 + + CAST ( NULL AS INTEGER ) + - 72 * 44 * - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6677
SELECT CAST( - MIN( + 70 ) AS SIGNED ) * + + 52 * 84
----
-305760

skipif mysql # not compatible
query I rowsort label-6677
SELECT CAST ( - MIN ( + 70 ) AS INTEGER ) * + + 52 * 84
----
-305760

onlyif mysql # DIV for integer division: 
query II rowsort label-6678
SELECT ALL 96 DIV - ( 78 ) AS col0, 32 AS col2
----
-1
32

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL 96 / - ( 78 ) AS col0, 32 AS col2
----
-1
32

query I rowsort
SELECT - 40 * - ( + 77 ) + 7 AS col0
----
3087

query I rowsort
SELECT DISTINCT + 11 * - 1
----
-11

query I rowsort
SELECT ALL - 78 - - + 36
----
-42

query I rowsort
SELECT - COALESCE ( + - 95, - 42 ) * + + 53
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL + MIN( - 4 ) * + 36 col1
----
-144

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + MIN ( - 4 ) * + 36 col1
----
-144

query I rowsort
SELECT ALL - - CASE - 4 WHEN - + 18 + - 63 + - 83 THEN + - 41 * + + 15 + - 98 * 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT + ( + - CAST( - 61 AS SIGNED ) ) * 20 AS col0
----
1220

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + ( + - CAST ( - 61 AS INTEGER ) ) * 20 AS col0
----
1220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT - COALESCE ( - 62, - COUNT( * ) DIV - CAST( + 56 AS SIGNED ), - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - COALESCE ( - 62, - COUNT ( * ) / - CAST ( + 56 AS INTEGER ), - COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL + 18 * + + COUNT( * ) * - 88 AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + 18 * + + COUNT ( * ) * - 88 AS col2
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT - 65 * - - 34 / + CAST( NULL AS SIGNED ) * + + 6 + 84 + - - 25 + + MIN( DISTINCT + - 57 ) * - COUNT( ( - + 93 ) ) * + 80 * - + 52 * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT - 65 * - - 34 / + CAST ( NULL AS INTEGER ) * + + 6 + 84 + - - 25 + + MIN ( DISTINCT + - 57 ) * - COUNT ( ( - + 93 ) ) * + 80 * - + 52 * - 59 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - 30, + 27 )
----
-30

query I rowsort
SELECT ALL - 26 + + 23
----
-3

query I rowsort
SELECT ( + + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT 97 * SUM( DISTINCT - ( - 71 ) ) + - + 63 * + ( - + NULLIF ( + + 92, CAST( + + 78 AS SIGNED ) ) ) AS col0
----
12683

skipif mysql # not compatible
query I rowsort label-6692
SELECT 97 * SUM ( DISTINCT - ( - 71 ) ) + - + 63 * + ( - + NULLIF ( + + 92, CAST ( + + 78 AS INTEGER ) ) ) AS col0
----
12683

query I rowsort
SELECT - 79 + + - 43
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT 3 + - MIN( DISTINCT + 83 ) + + COUNT( * ) + + - 59 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-6694
SELECT 3 + - MIN ( DISTINCT + 83 ) + + COUNT ( * ) + + - 59 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL + COUNT( * ) * 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + COUNT ( * ) * 90 AS col1
----
90

query I rowsort
SELECT DISTINCT 69 + 33 col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6697
SELECT - 21 AS col2, - ( + 94 ) * 1 DIV - 55 - - NULLIF ( - 86, AVG ( DISTINCT + - 41 ) + - 92 * - 61 * - ( COUNT( * ) ) ) DIV + - 42 + - SUM( 1 ) + - 44 col1
----
-21
-42

skipif mysql # not compatible
query II rowsort label-6697
SELECT - 21 AS col2, - ( + 94 ) * 1 / - 55 - - NULLIF ( - 86, AVG ( DISTINCT + - 41 ) + - 92 * - 61 * - ( COUNT ( * ) ) ) / + - 42 + - SUM ( 1 ) + - 44 col1
----
-21
-42

query I rowsort
SELECT ALL - 87 + - 23
----
-110

query I rowsort
SELECT ALL + 32 * - + 16
----
-512

query I rowsort
SELECT 74 * + 43
----
3182

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT DISTINCT + NULLIF ( + CASE - ( + - COUNT( * ) ) WHEN + + 44 THEN + + 65 * + 93 END, + 17 + - + 1 * - + 23 ) * + + 66 col2, + 53 col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6701
SELECT DISTINCT + NULLIF ( + CASE - ( + - COUNT ( * ) ) WHEN + + 44 THEN + + 65 * + 93 END, + 17 + - + 1 * - + 23 ) * + + 66 col2, + 53 col1
----
NULL
53

query I rowsort
SELECT ALL - 60 + - ( - 69 )
----
9

query I rowsort
SELECT 83 * - 44
----
-3652

query II rowsort
SELECT - 87 AS col0, - 81 AS col2
----
-87
-81

query I rowsort
SELECT NULLIF ( + CASE 74 WHEN - + 86 THEN + + 24 - 41 ELSE 49 + + 10 END, - + 57 - - 16 + + 65 + - 79 ) + - + ( - + 13 )
----
72

query II rowsort
SELECT ALL 89 AS col1, - 17 AS col0
----
89
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - 61 - - - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - 61 - - - COUNT ( * ) AS col2
----
-62

query I rowsort
SELECT 9 * - 75 * + - 14
----
9450

query II rowsort
SELECT 34 AS col1, 56 AS col1
----
34
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6710
SELECT DISTINCT - 43 - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - 43 - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 1 ) - + 76 * - 16
----
1217

query II rowsort
SELECT DISTINCT 57 AS col0, - 15 * - 21 - - 65 col0
----
57
380

query I rowsort
SELECT 94 - 2 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT - - MAX( DISTINCT - - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT - - MAX ( DISTINCT - - 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL + + ( - + COUNT( * ) ) * + 88 * - NULLIF ( - - 4, + + 39 )
----
352

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + + ( - + COUNT ( * ) ) * + 88 * - NULLIF ( - - 4, + + 39 )
----
352

query I rowsort
SELECT 83 * - 76 * - 23 * + 74
----
10736216

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ( - 28 ) * + MAX( - - 48 ) + - 18 + 65
----
-1297

skipif mysql # not compatible
query I rowsort label-6717
SELECT ( - 28 ) * + MAX ( - - 48 ) + - 18 + 65
----
-1297

query I rowsort
SELECT + CASE - - 47 WHEN - 37 THEN - 20 + - + ( 84 ) + + 69 WHEN + 66 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT 63 DIV - 95 * - ( + + 47 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT 63 / - 95 * - ( + + 47 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT + - CASE - - 61 WHEN 9 + 45 THEN NULL ELSE 30 + COUNT( * ) + 45 END * 17 AS col2
----
-1292

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + - CASE - - 61 WHEN 9 + 45 THEN NULL ELSE 30 + COUNT ( * ) + 45 END * 17 AS col2
----
-1292

query II rowsort
SELECT ALL - ( - 74 ) AS col1, + 1
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + - 96 * + 95 * + 90 - - 18 - COUNT( * ) col0
----
-820783

skipif mysql # not compatible
query I rowsort label-6722
SELECT + - 96 * + 95 * + 90 - - 18 - COUNT ( * ) col0
----
-820783

query II rowsort
SELECT DISTINCT - 14 col0, 74
----
-14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT 97 + - - SUM( DISTINCT - + 83 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT 97 + - - SUM ( DISTINCT - + 83 ) col1
----
14

onlyif mysql # aggregate syntax: 
query III rowsort label-6725
SELECT COUNT( * ) col2, - 98 * + NULLIF ( - - 52, COUNT( * ) * ( - COUNT( * ) ) + - MAX( DISTINCT 14 ) ) AS col2, - 49 AS col2
----
1
-5096
-49

skipif mysql # not compatible
query III rowsort label-6725
SELECT COUNT ( * ) col2, - 98 * + NULLIF ( - - 52, COUNT ( * ) * ( - COUNT ( * ) ) + - MAX ( DISTINCT 14 ) ) AS col2, - 49 AS col2
----
1
-5096
-49

query I rowsort
SELECT ALL 10 + - 39 AS col0
----
-29

query I rowsort
SELECT - 85 + + 35 * + 21 * 72 * + - 63
----
-3334045

query I rowsort
SELECT DISTINCT + 64 + + - 76 AS col0
----
-12

query I rowsort
SELECT + 77 * - 74 * + - 23 col2
----
131054

query I rowsort
SELECT DISTINCT 57 * - 69 col2
----
-3933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT ALL - 91 + - CAST( NULL AS SIGNED ) / - 71 * + 99 + - - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - 91 + - CAST ( NULL AS INTEGER ) / - 71 * + 99 + - - 56 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 28 + + 15
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT ( - COALESCE ( + MAX( ALL + 61 ), - ( + + 2 ) - + + 49 * 20 ) ) * 84 + - COALESCE ( + ( + + MAX( - + CAST( CASE - - 31 WHEN + 26 * 65 THEN NULL WHEN + - 53 * - 87 + - + 37 + + - 45 + - 74 * CAST( NULL AS SIGNED ) THEN 41 + - 93 ELSE NULL END AS SIGNED ) ) ), + 3, 66 ) + 7
----
-5120

skipif mysql # not compatible
query I rowsort label-6733
SELECT ( - COALESCE ( + MAX ( ALL + 61 ), - ( + + 2 ) - + + 49 * 20 ) ) * 84 + - COALESCE ( + ( + + MAX ( - + CAST ( CASE - - 31 WHEN + 26 * 65 THEN NULL WHEN + - 53 * - 87 + - + 37 + + - 45 + - 74 * CAST ( NULL AS INTEGER ) THEN 41 + - 93 ELSE NULL END AS INTEGER ) ) ), + 3, 66 ) + 7
----
-5120

query II rowsort
SELECT DISTINCT 21 * 43, - 33 AS col1
----
903
-33

query I rowsort
SELECT 74 + + - 78 * + 15
----
-1096

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT + ( + - 45 ) * 86 + - 73 DIV - 48 AS col1
----
-3869

skipif mysql # not compatible
query I rowsort label-6736
SELECT + ( + - 45 ) * 86 + - 73 / - 48 AS col1
----
-3869

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL + 1 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + 1 / - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT + 15 + + COUNT( ALL + + 42 ) * - - 43 + 29 + 33 * 93 AS col2, + ( - 77 )
----
3156
-77

skipif mysql # not compatible
query II rowsort label-6738
SELECT + 15 + + COUNT ( ALL + + 42 ) * - - 43 + 29 + 33 * 93 AS col2, + ( - 77 )
----
3156
-77

query I rowsort
SELECT DISTINCT 79 - + 30 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT + MAX( + 35 ) * - - 25 AS col2
----
875

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + MAX ( + 35 ) * - - 25 AS col2
----
875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6741
SELECT - 67 * CAST( NULL AS DECIMAL ) * + 34 * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 67 * CAST ( NULL AS REAL ) * + 34 * + 91 AS col0
----
NULL

query I rowsort
SELECT - 84 + - 85 AS col0
----
-169

query I rowsort
SELECT DISTINCT - 84 * + ( + 99 ) AS col2
----
-8316

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL SUM( ALL - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL SUM ( ALL - 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT - 78 * + 39 * CAST( NULL AS SIGNED ) * 40 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 78 * + 39 * CAST ( NULL AS INTEGER ) * 40 / - 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT - 39 + + 38 + COUNT( * ) + + 84 DIV 95 DIV NULLIF ( - 75, 0 + - + COALESCE ( + CASE 83 WHEN - ( + + 67 ) THEN NULL ELSE + - ( - 47 ) END, + MAX( - + 96 ) + ( - - ( 53 ) ) ) * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT - 39 + + 38 + COUNT ( * ) + + 84 / 95 / NULLIF ( - 75, 0 + - + COALESCE ( + CASE 83 WHEN - ( + + 67 ) THEN NULL ELSE + - ( - 47 ) END, + MAX ( - + 96 ) + ( - - ( 53 ) ) ) * COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT - - 92 + + - 51 DIV + + 82 + + 17 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-6747
SELECT - - 92 + + - 51 / + + 82 + + 17 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT - + 17 + - 56 DIV + 14
----
-21

skipif mysql # not compatible
query I rowsort label-6748
SELECT - + 17 + - 56 / + 14
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT - + MAX( + - 70 ) * + - 99 AS col2
----
-6930

skipif mysql # not compatible
query I rowsort label-6749
SELECT - + MAX ( + - 70 ) * + - 99 AS col2
----
-6930

query II rowsort
SELECT - 2 + 57 + + 8, + 55 AS col1
----
63
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT + + CAST( + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT + + CAST ( + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6752
SELECT ALL 14 * + - 86 * + - COUNT( * ) + COUNT( * ) DIV + + NULLIF ( - + 87, + CAST( + 8 AS SIGNED ) ) + 51 + + - 43 * + - 30 + + 11, - COUNT( * ) AS col2
----
2556
-1

skipif mysql # not compatible
query II rowsort label-6752
SELECT ALL 14 * + - 86 * + - COUNT ( * ) + COUNT ( * ) / + + NULLIF ( - + 87, + CAST ( + 8 AS INTEGER ) ) + 51 + + - 43 * + - 30 + + 11, - COUNT ( * ) AS col2
----
2556
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT + NULLIF ( + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ), - - 85 * - 56 + - 13 * + - 62 + - 87 + + - 84 - - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT + NULLIF ( + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ), - - 85 * - 56 + - 13 * + - 62 + - 87 + + - 84 - - 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL + 70 * - - 53 + + + COUNT( * ) AS col2
----
3711

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + 70 * - - 53 + + + COUNT ( * ) AS col2
----
3711

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - - COUNT( * ) * + COALESCE ( + 62, - 72 * + 81, - 29 )
----
62

skipif mysql # not compatible
query I rowsort label-6755
SELECT - - COUNT ( * ) * + COALESCE ( + 62, - 72 * + 81, - 29 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6756
SELECT + + 49 DIV + COUNT( * ) + + 10 + + - 18 + - 24 + - + 28 * + + 34 * - 0 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6756
SELECT + + 49 / + COUNT ( * ) + + 10 + + - 18 + - 24 + - + 28 * + + 34 * - 0 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL + 35 * 65 * - - 7 + - CAST( - 29 AS SIGNED )
----
15954

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 35 * 65 * - - 7 + - CAST ( - 29 AS INTEGER )
----
15954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT - CAST( 24 AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6758
SELECT - CAST ( 24 AS INTEGER ) AS col0
----
-24

query I rowsort
SELECT + + 80 * - 95 AS col0
----
-7600

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT + NULLIF ( - COUNT( * ), - 93 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - 93 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT - CAST( NULL AS SIGNED ) * 64 + + ( - 0 ) * 55 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT - CAST ( NULL AS INTEGER ) * 64 + + ( - 0 ) * 55 / 40
----
NULL

query I rowsort
SELECT - 45 * - 60
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT COUNT( * ), 63 AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-6763
SELECT COUNT ( * ), 63 AS col2
----
1
63

query I rowsort
SELECT + 42 * - ( 40 ) - + - 80
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + CASE - 43 WHEN 99 * + NULLIF ( + 63, - 85 ) + - 73 * + COUNT( * ) * - 21 / - - 57 THEN + ( + + 21 ) ELSE - 32 + 7 END AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6765
SELECT + CASE - 43 WHEN 99 * + NULLIF ( + 63, - 85 ) + - 73 * + COUNT ( * ) * - 21 / - - 57 THEN + ( + + 21 ) ELSE - 32 + 7 END AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT CASE 27 WHEN + - 63 THEN COUNT( * ) END * + 36 - 38 * + - 4 / - + ( - - SUM( 18 ) ) + + - 96 * 8 * + COALESCE ( 57, - 1 ) + + CASE 28 WHEN + 76 * AVG ( - ( + + ( - - 39 ) ) ) + + - 42 + 80 THEN NULL WHEN - - 5 THEN NULL ELSE - ( 17 ) / - - 68 * - COALESCE ( 17, + - 31 + COUNT( * ) * + 52 * + 96 ) + - 33 + + - 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT CASE 27 WHEN + - 63 THEN COUNT ( * ) END * + 36 - 38 * + - 4 / - + ( - - SUM ( 18 ) ) + + - 96 * 8 * + COALESCE ( 57, - 1 ) + + CASE 28 WHEN + 76 * AVG ( - ( + + ( - - 39 ) ) ) + + - 42 + 80 THEN NULL WHEN - - 5 THEN NULL ELSE - ( 17 ) / - - 68 * - COALESCE ( 17, + - 31 + COUNT ( * ) * + 52 * + 96 ) + - 33 + + - 92 END AS col2
----
NULL

query II rowsort
SELECT ALL ( + 24 ) * - 24 AS col1, + 78 - + 75 AS col1
----
-576
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT COUNT( - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT COUNT ( - 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT NULLIF ( 81, + 75 ) - - + COUNT( * ) + - ( + + 61 ) + 72 * COUNT( * ) * - 97 * + + 60
----
-419019

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT NULLIF ( 81, + 75 ) - - + COUNT ( * ) + - ( + + 61 ) + 72 * COUNT ( * ) * - 97 * + + 60
----
-419019

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT COALESCE ( + + SUM( 67 ), + 12 + + 45 * + 32 * + 49 * 38 )
----
67

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT COALESCE ( + + SUM ( 67 ), + 12 + + 45 * + 32 * + 49 * 38 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT - CAST( + 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6771
SELECT - CAST ( + 15 AS INTEGER ) AS col0
----
-15

query I rowsort
SELECT - NULLIF ( ( + 12 ), - 84 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query III rowsort label-6773
SELECT 72 AS col2, - COUNT( * ) * + SUM( + 16 ) col2, + COUNT( DISTINCT 1 ) AS col0
----
72
-16
1

skipif mysql # not compatible
query III rowsort label-6773
SELECT 72 AS col2, - COUNT ( * ) * + SUM ( + 16 ) col2, + COUNT ( DISTINCT 1 ) AS col0
----
72
-16
1

query II rowsort
SELECT 8 AS col1, + ( + CASE WHEN NOT NULL <> NULL THEN 95 ELSE - - 0 END ) AS col0
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT COUNT( ALL - 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT COUNT ( ALL - 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6776
SELECT + COUNT( * ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6776
SELECT + COUNT ( * ) / COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6777
SELECT 84 AS col2, - ( - - 91 ) * COUNT( * ) * COALESCE ( - CAST( ( - 95 ) AS SIGNED ), - SUM( - ( - - ( - ( - 77 ) ) ) ) * - 51 * + 99 * + + 67 - + + 93, + CASE 75 WHEN + + 83 THEN + COALESCE ( + ( 57 ), - 1 ) + - - 18 DIV - + COUNT( * ) * - + 57 * - - 39 DIV + - 97 END )
----
84
-8645

skipif mysql # not compatible
query II rowsort label-6777
SELECT 84 AS col2, - ( - - 91 ) * COUNT ( * ) * COALESCE ( - CAST ( ( - 95 ) AS INTEGER ), - SUM ( - ( - - ( - ( - 77 ) ) ) ) * - 51 * + 99 * + + 67 - + + 93, + CASE 75 WHEN + + 83 THEN + COALESCE ( + ( 57 ), - 1 ) + - - 18 / - + COUNT ( * ) * - + 57 * - - 39 / + - 97 END )
----
84
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL + 71 + COUNT( * ) + 50 + + COALESCE ( 26, - 25 + + 58 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + 71 + COUNT ( * ) + 50 + + COALESCE ( 26, - 25 + + 58 ) AS col2
----
148

query I rowsort
SELECT ALL - - 66 + + 2
----
68

query I rowsort
SELECT DISTINCT ( NULLIF ( - 50, + 93 ) ) AS col2
----
-50

query II rowsort
SELECT + 54, 42 * 57 * + + 7 + + + 1 - - + 89 AS col1
----
54
16848

query I rowsort
SELECT DISTINCT + + ( 34 ) + - 8
----
26

query I rowsort
SELECT ALL - + 75 + 55 AS col2
----
-20

query I rowsort
SELECT + + 25 + 69 + 51 * - 61
----
-3017

query I rowsort
SELECT - 14 * + 96
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT - CAST( + + 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-6786
SELECT - CAST ( + + 96 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL + + MIN( ALL - 13 ) * - 16 - - - 8 col1
----
200

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + + MIN ( ALL - 13 ) * - 16 - - - 8 col1
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL + CAST( NULL AS SIGNED ) / + + 56 - - 40 + + 57 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 56 - - 40 + + 57 + - 77
----
NULL

query I rowsort
SELECT - - 70 * + + 95 * - + 22 + + - 0 + + + 67 * 45 * - + 40 * + - CASE + 29 WHEN + 51 THEN NULL ELSE - 61 * - 14 + - - 83 END AS col1
----
112855900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6790
SELECT ALL - CAST( NULL AS SIGNED ) / + SUM( DISTINCT + 17 ) + - ( - CAST( - ( + - 87 ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + 17 ) + - ( - CAST ( - ( + - 87 ) AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 78 col2, 87 AS col2
----
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + - SUM( ALL + + 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + - SUM ( ALL + + 12 ) AS col0
----
-12

query II rowsort
SELECT DISTINCT + 0 AS col2, 24 AS col1
----
0
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL 69 * 10 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL 69 * 10 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6795
SELECT - 39 DIV + 76 + - COALESCE ( + 32, + + 21 * + + 76 + 98 ), 99 AS col1
----
-32
99

skipif mysql # not compatible
query II rowsort label-6795
SELECT - 39 / + 76 + - COALESCE ( + 32, + + 21 * + + 76 + 98 ), 99 AS col1
----
-32
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT - NULLIF ( + COUNT( * ), + 28 * - COUNT( + 10 ) ) * - + MAX( DISTINCT + - 85 ) * + 75
----
-6375

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + 28 * - COUNT ( + 10 ) ) * - + MAX ( DISTINCT + - 85 ) * + 75
----
-6375

query I rowsort
SELECT 22 * + 35
----
770

query I rowsort
SELECT ALL - 1 * - - 89 * - + 51 AS col1
----
4539

query I rowsort
SELECT DISTINCT - ( - - 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + 76 * - COUNT( + 43 ) + - 51 + - 0 AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-6800
SELECT + 76 * - COUNT ( + 43 ) + - 51 + - 0 AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT NULLIF ( - + 96, - COUNT( * ) / - 5 ) - + + 46
----
-142

skipif mysql # not compatible
query I rowsort label-6801
SELECT NULLIF ( - + 96, - COUNT ( * ) / - 5 ) - + + 46
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT DISTINCT 68 * + CASE - 31 WHEN + COUNT( * ) * + ( + 31 ) THEN NULL WHEN 12 + + 86 THEN + CAST( + 68 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT 68 * + CASE - 31 WHEN + COUNT ( * ) * + ( + 31 ) THEN NULL WHEN 12 + + 86 THEN + CAST ( + 68 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - COUNT( * ) * - - 35
----
-35

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - COUNT ( * ) * - - 35
----
-35

query I rowsort
SELECT DISTINCT - ( - ( + 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL - NULLIF ( - + MIN( ( + + 45 ) ), - + COUNT( * ) ) * - 39 * + - 98 + - 41
----
171949

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - NULLIF ( - + MIN ( ( + + 45 ) ), - + COUNT ( * ) ) * - 39 * + - 98 + - 41
----
171949

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT ALL - ( - CASE - COUNT( * ) WHEN 49 + - 67 * + COUNT( * ) THEN + 76 END ), 28 col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6806
SELECT ALL - ( - CASE - COUNT ( * ) WHEN 49 + - 67 * + COUNT ( * ) THEN + 76 END ), 28 col0
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT - MAX( ALL - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - MAX ( ALL - 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT 8 + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT 8 + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6809
SELECT DISTINCT MIN( 98 ) DIV 10 DIV - 32 col0, - 1 DIV + 10 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-6809
SELECT DISTINCT MIN ( 98 ) / 10 / - 32 col0, - 1 / + 10 col1
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT CAST( + + 95 AS SIGNED ) - + COUNT( * ) * + 51
----
44

skipif mysql # not compatible
query I rowsort label-6810
SELECT CAST ( + + 95 AS INTEGER ) - + COUNT ( * ) * + 51
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT ALL NULLIF ( ( + 36 ), + - 51 + - + 93 ) DIV - 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL NULLIF ( ( + 36 ), + - 51 + - + 93 ) / - 46 col2
----
0

query I rowsort
SELECT 37 + 9
----
46

query II rowsort
SELECT ALL 74 + 40 AS col2, - 82 col0
----
114
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT ( - - MIN( DISTINCT 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT ( - - MIN ( DISTINCT 14 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6815
SELECT + 57 + + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT 7 + 4 * MIN( + - 22 )
----
-81

skipif mysql # not compatible
query I rowsort label-6816
SELECT 7 + 4 * MIN ( + - 22 )
----
-81

query I rowsort
SELECT 40 * - 16 AS col1
----
-640

query I rowsort
SELECT - 7 + - ( + 8 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6819
SELECT DISTINCT + CASE + COUNT( * ) WHEN + COUNT( * ) / 33 + + - 11 + 41 + - CAST( NULL AS SIGNED ) - + COUNT( * ) * - ( - 97 ) THEN + 16 WHEN - - 32 THEN NULL END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + COUNT ( * ) / 33 + + - 11 + 41 + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - ( - 97 ) THEN + 16 WHEN - - 32 THEN NULL END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - 18 + + 25 * + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - 18 + + 25 * + COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT - 73 * - CAST( 4 AS SIGNED ) * - 16
----
-4672

skipif mysql # not compatible
query I rowsort label-6821
SELECT - 73 * - CAST ( 4 AS INTEGER ) * - 16
----
-4672

query I rowsort
SELECT + - COALESCE ( + - 18, + + 6 * - 86 * 66 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT 56 DIV 48 + 10 + - 41 - + + COALESCE ( - + 61, - 29 + 76 + - 91 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6823
SELECT 56 / 48 + 10 + - 41 - + + COALESCE ( - + 61, - 29 + 76 + - 91 ) AS col0
----
31

query I rowsort
SELECT ALL - ( - 36 ) - ( - 90 ) * - - 10 - 37
----
899

query I rowsort
SELECT ( + NULLIF ( 60, + 61 ) ) * - + 39
----
-2340

query II rowsort
SELECT DISTINCT 88 * - 76 AS col1, 90
----
-6688
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6827
SELECT ALL - 33 * 81 * + 28 * + CASE - - ( - ( - 3 ) ) WHEN 34 THEN - - 22 * - 86 WHEN - + CAST( + COUNT( ALL 48 ) AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - 33 * 81 * + 28 * + CASE - - ( - ( - 3 ) ) WHEN 34 THEN - - 22 * - 86 WHEN - + CAST ( + COUNT ( ALL 48 ) AS REAL ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT CASE + + SUM( DISTINCT - ( + 18 ) ) WHEN + 19 + - ( 56 ) THEN NULL WHEN + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN + 60 / + - 28 + - + 44 - + NULLIF ( 97, + - 57 - + - 91 ) * + - 60 ELSE NULL END / - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT CASE + + SUM ( DISTINCT - ( + 18 ) ) WHEN + 19 + - ( 56 ) THEN NULL WHEN + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN + 60 / + - 28 + - + 44 - + NULLIF ( 97, + - 57 - + - 91 ) * + - 60 ELSE NULL END / - 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6829
SELECT 22 DIV - NULLIF ( 44, + 46 * - + 64 + - 19 * + + 8 DIV - 29 + 22 * - 5 * - CAST( NULL AS SIGNED ) ) * 9 * - 20
----
0

skipif mysql # not compatible
query I rowsort label-6829
SELECT 22 / - NULLIF ( 44, + 46 * - + 64 + - 19 * + + 8 / - 29 + 22 * - 5 * - CAST ( NULL AS INTEGER ) ) * 9 * - 20
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT + 34 DIV + 34 + + 51 * 20 AS col1
----
1021

skipif mysql # not compatible
query I rowsort label-6830
SELECT + 34 / + 34 + + 51 * 20 AS col1
----
1021

query II rowsort
SELECT 98, + 56 AS col0
----
98
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6832
SELECT DISTINCT 63 * + + COUNT( * ) * + - CAST( + 37 AS SIGNED )
----
-2331

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT 63 * + + COUNT ( * ) * + - CAST ( + 37 AS INTEGER )
----
-2331

query I rowsort
SELECT 18 + - 21
----
-3

query II rowsort
SELECT ALL - 92 col1, ( 67 ) * + 14 AS col2
----
-92
938

query I rowsort
SELECT 34 * + 7 + - 84 * - - 75
----
-6062

query II rowsort
SELECT ALL - 76, 98 AS col2
----
-76
98

query I rowsort
SELECT DISTINCT - ( - 87 ) col1
----
87

query I rowsort
SELECT 53 + + 26 + - 64 * 47
----
-2929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6839
SELECT ALL - CAST( CASE - 61 WHEN - 18 THEN + 2 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - CAST ( CASE - 61 WHEN - 18 THEN + 2 END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL COUNT( + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL COUNT ( + - 51 )
----
1

query I rowsort
SELECT ALL - 35 + + 10 AS col0
----
-25

query II rowsort
SELECT ALL 1, 63 AS col1
----
1
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6843
SELECT DISTINCT + MAX( ALL - - 79 ) + 37 DIV 31 + - - 82 AS col1, CAST( + 15 AS SIGNED ) AS col0
----
162
15

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT + MAX ( ALL - - 79 ) + 37 / 31 + - - 82 AS col1, CAST ( + 15 AS INTEGER ) AS col0
----
162
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - CAST( - 47 AS SIGNED ) + - 14
----
33

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - CAST ( - 47 AS INTEGER ) + - 14
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6845
SELECT ALL + 63 + - 31 + 33 + - + ( + 12 ) * - - CAST( NULL AS SIGNED ) + - 24 + + - 62 AS col1, + COALESCE ( - ( + 25 ), - 39, - - CASE + 30 WHEN 93 + + - COUNT( * ) THEN + - 93 - CAST( NULL AS SIGNED ) WHEN + MIN( ( - 98 ) ) THEN - 9 ELSE + NULLIF ( - 74, - 95 * + - 85 * - CASE + 38 WHEN - ( + - 56 ) THEN + + 66 - - 38 * - 13 ELSE + + 69 * + + 44 * 5 - 72 * 52 * + + 67 * + + 76 / AVG ( DISTINCT 58 ) / + - CAST( NULL AS DECIMAL ) END ) END * + + 98 * - 64 * + 9 - - 37 * CAST( NULL AS SIGNED ) ) AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-6845
SELECT ALL + 63 + - 31 + 33 + - + ( + 12 ) * - - CAST ( NULL AS INTEGER ) + - 24 + + - 62 AS col1, + COALESCE ( - ( + 25 ), - 39, - - CASE + 30 WHEN 93 + + - COUNT ( * ) THEN + - 93 - CAST ( NULL AS INTEGER ) WHEN + MIN ( ( - 98 ) ) THEN - 9 ELSE + NULLIF ( - 74, - 95 * + - 85 * - CASE + 38 WHEN - ( + - 56 ) THEN + + 66 - - 38 * - 13 ELSE + + 69 * + + 44 * 5 - 72 * 52 * + + 67 * + + 76 / AVG ( DISTINCT 58 ) / + - CAST ( NULL AS REAL ) END ) END * + + 98 * - 64 * + 9 - - 37 * CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT CAST( - 37 AS SIGNED ) * + 36 + + - COUNT( * ) AS col0
----
-1333

skipif mysql # not compatible
query I rowsort label-6846
SELECT CAST ( - 37 AS INTEGER ) * + 36 + + - COUNT ( * ) AS col0
----
-1333

query I rowsort
SELECT DISTINCT + 30 + + 59
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT - 22 DIV + COUNT( - - 27 ) + 7 col2
----
-15

skipif mysql # not compatible
query I rowsort label-6848
SELECT - 22 / + COUNT ( - - 27 ) + 7 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT ALL + CAST( NULL AS SIGNED ) - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + CAST ( NULL AS INTEGER ) - - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6850
SELECT DISTINCT 92 * - + COALESCE ( - 79, 55, + CASE + ( - 94 ) WHEN 89 THEN NULL WHEN - 0 THEN NULL WHEN - 36 THEN 47 ELSE 43 END ) * + + 3 + 28 * - CAST( - - 76 AS SIGNED ) + ( + + 55 ) * - + COUNT( * ) * - 95 AS col1, 71 AS col0
----
24901
71

skipif mysql # not compatible
query II rowsort label-6850
SELECT DISTINCT 92 * - + COALESCE ( - 79, 55, + CASE + ( - 94 ) WHEN 89 THEN NULL WHEN - 0 THEN NULL WHEN - 36 THEN 47 ELSE 43 END ) * + + 3 + 28 * - CAST ( - - 76 AS INTEGER ) + ( + + 55 ) * - + COUNT ( * ) * - 95 AS col1, 71 AS col0
----
24901
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT DISTINCT + 20 - - - CASE - - AVG ( - 29 ) WHEN - 26 * SUM( 18 ) * COALESCE ( - + CAST( 99 AS SIGNED ), + AVG ( DISTINCT + 59 ), - - 71 ) THEN - - 95 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + 20 - - - CASE - - AVG ( - 29 ) WHEN - 26 * SUM ( 18 ) * COALESCE ( - + CAST ( 99 AS INTEGER ), + AVG ( DISTINCT + 59 ), - - 71 ) THEN - - 95 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + COUNT( * ) + + 17 - + 71 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6852
SELECT + COUNT ( * ) + + 17 - + 71 AS col1
----
-53

query I rowsort
SELECT 32 * 80 + 7 AS col2
----
2567

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT CASE - - 35 WHEN - 16 THEN + COUNT( * ) ELSE + 19 + + 15 END
----
34

skipif mysql # not compatible
query I rowsort label-6854
SELECT CASE - - 35 WHEN - 16 THEN + COUNT ( * ) ELSE + 19 + + 15 END
----
34

query II rowsort
SELECT ALL + 67, - 39 AS col1
----
67
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + 16 * 36 * - - COUNT( * )
----
576

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 16 * 36 * - - COUNT ( * )
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT CASE + COUNT( * ) WHEN 30 * ( 66 ) THEN NULL WHEN 75 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT CASE + COUNT ( * ) WHEN 30 * ( 66 ) THEN NULL WHEN 75 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6858
SELECT ALL + 47 AS col1, - 51 + + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + + - ( 93 )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-6858
SELECT ALL + 47 AS col1, - 51 + + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + + - ( 93 )
----
47
NULL

query II rowsort
SELECT DISTINCT + 51 AS col2, - 86 + 11 * - - COALESCE ( 57, + COALESCE ( - - 49, - 65 ) * + ( - + 2 ) + + NULLIF ( - + 99, - + 69 + 75 - 63 * 38 ) + - ( - 4 ) ) AS col2
----
51
541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + 6 )
----
NULL

query I rowsort
SELECT + 86 * - 16 AS col2
----
-1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6862
SELECT DISTINCT CASE - 56 WHEN - 39 THEN + 32 ELSE + 97 END / 83 * 11 - + 30 - - - 25 + - + 0 * - 18 * 4 * - + 13 / CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) + + 54 + 20
----
NULL
75

skipif mysql # not compatible
query II rowsort label-6862
SELECT DISTINCT CASE - 56 WHEN - 39 THEN + 32 ELSE + 97 END / 83 * 11 - + 30 - - - 25 + - + 0 * - 18 * 4 * - + 13 / CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) + + 54 + 20
----
NULL
75

query I rowsort
SELECT + 56 * - 52 AS col0
----
-2912

query II rowsort
SELECT + 80, 81 + + 60 col1
----
80
141

query I rowsort
SELECT + 50 * 28 * 45 AS col1
----
63000

query I rowsort
SELECT 48 * 53 * - - 29 + 26 + - 55 - 45 AS col2
----
73702

query I rowsort
SELECT + 26 * 11 AS col2
----
286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6868
SELECT DISTINCT - ( COUNT( * ) ) * - 36 * + 49 * + + 81 + + 38 AS col2, + 81 DIV 40
----
142922
2

skipif mysql # not compatible
query II rowsort label-6868
SELECT DISTINCT - ( COUNT ( * ) ) * - 36 * + 49 * + + 81 + + 38 AS col2, + 81 / 40
----
142922
2

query I rowsort
SELECT + ( + ( - 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL COUNT( ALL + + 38 ) * - 20 + 64 + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL COUNT ( ALL + + 38 ) * - 20 + 64 + COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT COUNT( * ), - 83 AS col2
----
1
-83

skipif mysql # not compatible
query II rowsort label-6871
SELECT COUNT ( * ), - 83 AS col2
----
1
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL MAX( 31 ) * - + 55 + + + 13
----
-1692

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL MAX ( 31 ) * - + 55 + + + 13
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT NULLIF ( 32, + COUNT( * ) - - 9 * - 52 * + + MAX( DISTINCT + 96 ) * - NULLIF ( - 47, - + 25 ) / 86 ) * + 71 - - 95
----
2367

skipif mysql # not compatible
query I rowsort label-6873
SELECT NULLIF ( 32, + COUNT ( * ) - - 9 * - 52 * + + MAX ( DISTINCT + 96 ) * - NULLIF ( - 47, - + 25 ) / 86 ) * + 71 - - 95
----
2367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT - 50 * + + 61 * - - SUM( ALL - 83 ) + + 42 + + SUM( - - 25 ) DIV 9 DIV - 79 AS col1
----
253192

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - 50 * + + 61 * - - SUM ( ALL - 83 ) + + 42 + + SUM ( - - 25 ) / 9 / - 79 AS col1
----
253192

query II rowsort
SELECT ALL + 27 AS col2, 7 - - 72 AS col2
----
27
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT COUNT( * ), + 84 - - 30 - + 52 * - 57 * - 41 AS col2
----
1
-121410

skipif mysql # not compatible
query II rowsort label-6876
SELECT COUNT ( * ), + 84 - - 30 - + 52 * - 57 * - 41 AS col2
----
1
-121410

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL COALESCE ( - 47, - 90, - + 99 - + - 87 + COUNT( * ) * 18 - + 6 + - - 85 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL COALESCE ( - 47, - 90, - + 99 - + - 87 + COUNT ( * ) * 18 - + 6 + - - 85 ) AS col1
----
-47

query I rowsort
SELECT - 47 * + 44 + 32
----
-2036

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT 16 AS col1, + 45 * + 2 * - 95 * MAX( + - 82 ) * - + 53
----
16
-37158300

skipif mysql # not compatible
query II rowsort label-6879
SELECT 16 AS col1, + 45 * + 2 * - 95 * MAX ( + - 82 ) * - + 53
----
16
-37158300

query I rowsort
SELECT - - 37 + - 86 * - - 81 * - 38 AS col1
----
264745

query I rowsort
SELECT - - 32 - + 78 col2
----
-46

query II rowsort
SELECT - 40, + 38 - + 14 col1
----
-40
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - + 63 + + 50 * COALESCE ( - - COUNT( * ), + 31 + 49 ) * + + 76 * NULLIF ( + 7, + 37 ) * - 39 + - 17 + + 44 - - COUNT( * ) + + 47 * + 93
----
-1033064

skipif mysql # not compatible
query I rowsort label-6883
SELECT - + 63 + + 50 * COALESCE ( - - COUNT ( * ), + 31 + 49 ) * + + 76 * NULLIF ( + 7, + 37 ) * - 39 + - 17 + + 44 - - COUNT ( * ) + + 47 * + 93
----
-1033064

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6884
SELECT - + ( CAST( - - ( + 29 ) AS SIGNED ) ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT - + ( CAST ( - - ( + 29 ) AS INTEGER ) ) / - 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT - - 88 + - - 96 DIV - + 32
----
85

skipif mysql # not compatible
query I rowsort label-6885
SELECT - - 88 + - - 96 / - + 32
----
85

query II rowsort
SELECT ALL + 13, ( - NULLIF ( 51, - + 31 ) ) - 9 AS col0
----
13
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT - 42 + COUNT( * ) * + 85
----
43

skipif mysql # not compatible
query I rowsort label-6887
SELECT - 42 + COUNT ( * ) * + 85
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - + 13 * + + COUNT( * ) * + + 97
----
-1261

skipif mysql # not compatible
query I rowsort label-6888
SELECT - + 13 * + + COUNT ( * ) * + + 97
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT SUM( - - CASE + 16 WHEN + 35 * - 92 THEN - 66 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT SUM ( - - CASE + 16 WHEN + 35 * - 92 THEN - 66 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT ALL + 91 * - 68 * - - 82 * CAST( + COUNT( + 50 ) AS SIGNED )
----
-507416

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + 91 * - 68 * - - 82 * CAST ( + COUNT ( + 50 ) AS INTEGER )
----
-507416

query II rowsort
SELECT ALL - 49 AS col1, 24
----
-49
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT - CAST( NULL AS SIGNED ) * 88 * + - 73 * - COUNT( * ) + 33 * + 86 + - 61 + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - CAST ( NULL AS INTEGER ) * 88 * + - 73 * - COUNT ( * ) + 33 * + 86 + - 61 + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT + MIN( DISTINCT 41 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT + MIN ( DISTINCT 41 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6894
SELECT + - ( + + COUNT( * ) ) / + MIN( DISTINCT 70 ) + ( 13 ) - + 54 * + - CASE - CAST( + 88 AS DECIMAL ) WHEN 25 * - + 59 * 57 THEN + + 76 * - 14 * - - 94 WHEN + 66 THEN NULL ELSE NULL END AS col2, 51 col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6894
SELECT + - ( + + COUNT ( * ) ) / + MIN ( DISTINCT 70 ) + ( 13 ) - + 54 * + - CASE - CAST ( + 88 AS REAL ) WHEN 25 * - + 59 * 57 THEN + + 76 * - 14 * - - 94 WHEN + 66 THEN NULL ELSE NULL END AS col2, 51 col1
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + SUM( + 17 ) + - 57
----
-40

skipif mysql # not compatible
query I rowsort label-6895
SELECT + SUM ( + 17 ) + - 57
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - SUM( - 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-6896
SELECT - SUM ( - 27 ) col2
----
27

query I rowsort
SELECT - ( + + 15 ) AS col1
----
-15

query I rowsort
SELECT - - 86 * + ( 51 ) AS col2
----
4386

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT + - 81 + - 83 + - 90 - - + SUM( 1 ) + - ( + - 52 ) * 65 + - - COUNT( * ) + + - COUNT( * ) AS col1
----
3127

skipif mysql # not compatible
query I rowsort label-6899
SELECT + - 81 + - 83 + - 90 - - + SUM ( 1 ) + - ( + - 52 ) * 65 + - - COUNT ( * ) + + - COUNT ( * ) AS col1
----
3127

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + NULLIF ( - + SUM( + 62 ), + - 38 )
----
-62

skipif mysql # not compatible
query I rowsort label-6900
SELECT + NULLIF ( - + SUM ( + 62 ), + - 38 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT CAST( + CAST( - 41 AS SIGNED ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-6901
SELECT CAST ( + CAST ( - 41 AS INTEGER ) AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL CASE 98 WHEN - - 63 THEN 59 + - COUNT( * ) * - 45 ELSE NULL END * - + 13 * - 62 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL CASE 98 WHEN - - 63 THEN 59 + - COUNT ( * ) * - 45 ELSE NULL END * - + 13 * - 62 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6903
SELECT 79 DIV COUNT( * ) - - 80, COUNT( * ) - - - ( + - 19 ) AS col2
----
159
20

skipif mysql # not compatible
query II rowsort label-6903
SELECT 79 / COUNT ( * ) - - 80, COUNT ( * ) - - - ( + - 19 ) AS col2
----
159
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT ALL - 99 DIV ( + 23 ) + + MAX( DISTINCT + 25 )
----
21

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - 99 / ( + 23 ) + + MAX ( DISTINCT + 25 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT + 0 * - 59 + - CAST( + 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 0 * - 59 + - CAST ( + 47 AS INTEGER )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT - 83 DIV - + COUNT( * ) + + 98
----
181

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - 83 / - + COUNT ( * ) + + 98
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6907
SELECT ALL - 22 DIV + 77 + + - 59, COUNT( * ) AS col2
----
-59
1

skipif mysql # not compatible
query II rowsort label-6907
SELECT ALL - 22 / + 77 + + - 59, COUNT ( * ) AS col2
----
-59
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT ALL + COUNT( * ) * - 68 + - + 14, 88 AS col0
----
-82
88

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL + COUNT ( * ) * - 68 + - + 14, 88 AS col0
----
-82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + ( - 8 ) * + + COUNT( * ) + + - 65
----
-73

skipif mysql # not compatible
query I rowsort label-6909
SELECT + ( - 8 ) * + + COUNT ( * ) + + - 65
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT ALL 37 DIV - 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 37 / - 23 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6911
SELECT ALL 54 * 95, COUNT( * ) DIV + 85 AS col2
----
5130
0

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL 54 * 95, COUNT ( * ) / + 85 AS col2
----
5130
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6912
SELECT + 60 DIV + COUNT( ALL - 11 ), 29 AS col1
----
60
29

skipif mysql # not compatible
query II rowsort label-6912
SELECT + 60 / + COUNT ( ALL - 11 ), 29 AS col1
----
60
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - COALESCE ( - + COUNT( * ), + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-6913
SELECT - COALESCE ( - + COUNT ( * ), + 45 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT DISTINCT 66 * - - 18 * - CAST( + - 67 AS SIGNED ) - + 31 + 83 + - NULLIF ( - 33, CAST( NULL AS SIGNED ) ) * 34 - - 69 + - 91 * - + 32 AS col0
----
83751

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT 66 * - - 18 * - CAST ( + - 67 AS INTEGER ) - + 31 + 83 + - NULLIF ( - 33, CAST ( NULL AS INTEGER ) ) * 34 - - 69 + - 91 * - + 32 AS col0
----
83751

query I rowsort
SELECT - + 3 * + 46 AS col0
----
-138

query I rowsort
SELECT - - 86 + + 78 - - + 0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6917
SELECT + CAST( - 68 AS SIGNED ) AS col0, ( + COUNT( * ) )
----
-68
1

skipif mysql # not compatible
query II rowsort label-6917
SELECT + CAST ( - 68 AS INTEGER ) AS col0, ( + COUNT ( * ) )
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT + COUNT( * ) * 38 + - 64 - - 95 + - 9 * 4 * + 42 * + - SUM( - 0 ) + 31 * - 12 * - 49
----
18297

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT + COUNT ( * ) * 38 + - 64 - - 95 + - 9 * 4 * + 42 * + - SUM ( - 0 ) + 31 * - 12 * - 49
----
18297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT CAST( 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT CAST ( 8 AS INTEGER ) AS col2
----
8

query I rowsort
SELECT + 93 * - 77 AS col2
----
-7161

query I rowsort
SELECT DISTINCT - NULLIF ( ( + 60 ), - - 64 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT 54 * - - 5 AS col1, SUM( DISTINCT + 77 ) + + 91 + 3
----
270
171

skipif mysql # not compatible
query II rowsort label-6922
SELECT 54 * - - 5 AS col1, SUM ( DISTINCT + 77 ) + + 91 + 3
----
270
171

query I rowsort
SELECT DISTINCT + ( - - 70 ) * + 74
----
5180

query I rowsort
SELECT 33 * 7 * - COALESCE ( + + 93, - 49 ) AS col2
----
-21483

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT ALL COUNT( * ) + - 33, - 5 + 62 AS col0
----
-32
57

skipif mysql # not compatible
query II rowsort label-6925
SELECT ALL COUNT ( * ) + - 33, - 5 + 62 AS col0
----
-32
57

query I rowsort
SELECT 22 - - 88
----
110

query I rowsort
SELECT DISTINCT - 56 * 52 * - 61
----
177632

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT 31 * - 73 * + - 43 * - COALESCE ( + + 29, - 98 + + - SUM( DISTINCT - - 79 ) * - 99 )
----
-2821961

skipif mysql # not compatible
query I rowsort label-6928
SELECT 31 * - 73 * + - 43 * - COALESCE ( + + 29, - 98 + + - SUM ( DISTINCT - - 79 ) * - 99 )
----
-2821961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6929
SELECT ALL + 84 + - ( 97 ) + ( 28 ) + - 55 + - NULLIF ( - 65, + 79 + - AVG ( 68 ) + - ( - 79 ) ) - + CAST( + 59 AS SIGNED ) * - 0 * + ( - - COALESCE ( 52, COUNT( + 7 ), - 92 ) ) * + 47 + - 30
----
-5

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + 84 + - ( 97 ) + ( 28 ) + - 55 + - NULLIF ( - 65, + 79 + - AVG ( 68 ) + - ( - 79 ) ) - + CAST ( + 59 AS INTEGER ) * - 0 * + ( - - COALESCE ( 52, COUNT ( + 7 ), - 92 ) ) * + 47 + - 30
----
-5

query I rowsort
SELECT 12 + - + 7
----
5

query I rowsort
SELECT ALL - 20 + - 19 + 5 + - - 61 * + + 70 AS col2
----
4236

query I rowsort
SELECT 56 - + ( - 81 ) col2
----
137

query I rowsort
SELECT DISTINCT 56 * + 57
----
3192

query I rowsort
SELECT DISTINCT 14 + - 15
----
-1

query I rowsort
SELECT DISTINCT + 66 + + + 83
----
149

query II rowsort
SELECT + 36 AS col1, + 3
----
36
3

query II rowsort
SELECT DISTINCT - 24, 69 AS col2
----
-24
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT - MAX( ALL + 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - MAX ( ALL + 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT 21 * NULLIF ( + - 34, + + 81 + AVG ( + - 74 ) ) + 56 + - - NULLIF ( + + 10, - - 15 * + 68 * + + 48 + COUNT( * ) ) + + 95 AS col0
----
-553

skipif mysql # not compatible
query I rowsort label-6939
SELECT 21 * NULLIF ( + - 34, + + 81 + AVG ( + - 74 ) ) + 56 + - - NULLIF ( + + 10, - - 15 * + 68 * + + 48 + COUNT ( * ) ) + + 95 AS col0
----
-553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT DISTINCT + 31 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + 31 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 52 + + 70
----
122

query I rowsort
SELECT 88 * ( 67 ) col0
----
5896

query I rowsort
SELECT DISTINCT 48 - + 27
----
21

query I rowsort
SELECT - 1 * 67 AS col0
----
-67

query I rowsort
SELECT ALL - - NULLIF ( 69, 76 )
----
69

query I rowsort
SELECT DISTINCT - CASE 53 WHEN + 68 THEN - - 93 ELSE + 1 END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL - COALESCE ( + 33, 65 + ( - COUNT( * ) ) - + NULLIF ( + - 56, COUNT( * ) + + NULLIF ( + 16, COUNT( * ) + - + 38 ) ), 88 + + - COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - COALESCE ( + 33, 65 + ( - COUNT ( * ) ) - + NULLIF ( + - 56, COUNT ( * ) + + NULLIF ( + 16, COUNT ( * ) + - + 38 ) ), 88 + + - COUNT ( * ) )
----
-33

query II rowsort
SELECT ALL - 28 AS col1, - 74 col1
----
-28
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6949
SELECT CAST( NULL AS DECIMAL ) + - - 43 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT CAST ( NULL AS REAL ) + - - 43 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT COUNT( - 18 ) DIV 83 DIV + - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( - 18 ) / 83 / + - 66 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT + 65 DIV - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 65 / - 36 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT 9 + COUNT( * ) + NULLIF ( 98, + - 63 ) + 71 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-6952
SELECT 9 + COUNT ( * ) + NULLIF ( 98, + - 63 ) + 71 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT - CASE + + MIN( ALL - NULLIF ( - 26, - ( - 53 ) ) ) WHEN + - COUNT( * ) - - 61 THEN 26 / + + 20 - - 53 WHEN - - 9 + + + 57 THEN NULL WHEN 59 THEN NULL END - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT - CASE + + MIN ( ALL - NULLIF ( - 26, - ( - 53 ) ) ) WHEN + - COUNT ( * ) - - 61 THEN 26 / + + 20 - - 53 WHEN - - 9 + + + 57 THEN NULL WHEN 59 THEN NULL END - 76
----
NULL

query I rowsort
SELECT ALL 43 * 27 * + - 1 + - 3 AS col2
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL 48 * - - 63 * + - ( + + SUM( + 5 ) ) * 10 AS col1
----
-151200

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL 48 * - - 63 * + - ( + + SUM ( + 5 ) ) * 10 AS col1
----
-151200

query I rowsort
SELECT - 17 + + + 20 AS col1
----
3

query II rowsort
SELECT ALL 42 AS col0, - 95 * 62 - - 70 AS col0
----
42
-5820

query II rowsort
SELECT ALL - 58 AS col0, + 56
----
-58
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT - 31 DIV - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 31 / - COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT + 40 + - - CAST( NULL AS SIGNED ) + COUNT( * ) + + 64 * - ( - - ( 66 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 40 + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 64 * - ( - - ( 66 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL + - ( 74 ) + - - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + - ( 74 ) + - - COUNT ( * )
----
-73

query II rowsort
SELECT DISTINCT 92 + 98, 22 AS col0
----
190
22

query I rowsort
SELECT DISTINCT + ( + - 55 ) + 49 AS col0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6964
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 46 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - CAST ( NULL AS REAL ) * 46 * 50
----
NULL

query I rowsort
SELECT 31 * + + 99 AS col2
----
3069

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6966
SELECT ALL 91 + - 15, - CASE - 94 WHEN ( - CASE + COUNT( * ) WHEN - + 87 + + 88 THEN - 84 ELSE NULL END ) + + 78 THEN COUNT( * ) + + 95 * CAST( + + 77 AS DECIMAL ) WHEN - 39 THEN + - 14 END col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL 91 + - 15, - CASE - 94 WHEN ( - CASE + COUNT ( * ) WHEN - + 87 + + 88 THEN - 84 ELSE NULL END ) + + 78 THEN COUNT ( * ) + + 95 * CAST ( + + 77 AS REAL ) WHEN - 39 THEN + - 14 END col0
----
76
NULL

query I rowsort
SELECT 56 * + 40 * 8 AS col1
----
17920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT DISTINCT - CAST( NULL AS SIGNED ) * NULLIF ( + 51, + - 73 * - + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * NULLIF ( + 51, + - 73 * - + 48 )
----
NULL

query I rowsort
SELECT 81 * - 1 * 18 * - 3 * 32
----
139968

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT 45 * 54 + COALESCE ( + COUNT( * ), + 36 ), 83 AS col0
----
2431
83

skipif mysql # not compatible
query II rowsort label-6970
SELECT 45 * 54 + COALESCE ( + COUNT ( * ), + 36 ), 83 AS col0
----
2431
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT COUNT( DISTINCT - 36 ) * - - 51 DIV - - 26 DIV COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6971
SELECT COUNT ( DISTINCT - 36 ) * - - 51 / - - 26 / COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 52 * + 36 + - + 71 + + - ( + + 10 ) + + 22 AS col2
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + - 34 * 19 + - 5 - MIN( 47 ) + - COUNT( * ) * + + 12 * - 16 + + + COUNT( * ) + - 23
----
-528

skipif mysql # not compatible
query I rowsort label-6973
SELECT + - 34 * 19 + - 5 - MIN ( 47 ) + - COUNT ( * ) * + + 12 * - 16 + + + COUNT ( * ) + - 23
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6974
SELECT + COUNT( * ) * + 85 AS col0, CAST( - + 25 AS SIGNED )
----
85
-25

skipif mysql # not compatible
query II rowsort label-6974
SELECT + COUNT ( * ) * + 85 AS col0, CAST ( - + 25 AS INTEGER )
----
85
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6975
SELECT ALL - + 69 * + CAST( NULL AS DECIMAL ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - + 69 * + CAST ( NULL AS REAL ) * - 12
----
NULL

query I rowsort
SELECT + 58 + 4 + - 55
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT DISTINCT + MAX( 20 ) AS col0, + 22 + - 57
----
20
-35

skipif mysql # not compatible
query II rowsort label-6977
SELECT DISTINCT + MAX ( 20 ) AS col0, + 22 + - 57
----
20
-35

query I rowsort
SELECT - 2 * + 36 - + 91 * - CASE 9 WHEN - AVG ( DISTINCT - 34 ) * + + 81 + - + 30 + - - 64 - - - 91 + 28 * 95 / 34 * + 5 - + + 0 THEN - - 45 + 63 * - 63 * + 70 ELSE NULL END * - 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT DISTINCT 50 + + CASE 92 WHEN + + SUM( DISTINCT 75 ) THEN + 22 * + 48 * - COUNT( DISTINCT 13 ) ELSE NULL END, + ( - 52 ) + - ( + 29 ) AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT 50 + + CASE 92 WHEN + + SUM ( DISTINCT 75 ) THEN + 22 * + 48 * - COUNT ( DISTINCT 13 ) ELSE NULL END, + ( - 52 ) + - ( + 29 ) AS col2
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + COUNT( DISTINCT ( - ( + + 97 ) ) ) + 36 + - 44 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + COUNT ( DISTINCT ( - ( + + 97 ) ) ) + 36 + - 44 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT CASE ( - 43 ) WHEN + COUNT( * ) + COUNT( * ) / + + 53 THEN 25 WHEN + - 73 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT CASE ( - 43 ) WHEN + COUNT ( * ) + COUNT ( * ) / + + 53 THEN 25 WHEN + - 73 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - + NULLIF ( - NULLIF ( + - 68, - ( - ( + + 55 ) ) ), + 98 * + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6982
SELECT - + NULLIF ( - NULLIF ( + - 68, - ( - ( + + 55 ) ) ), + 98 * + COUNT ( * ) ) AS col1
----
-68

query I rowsort
SELECT ALL - + 2 + - 78
----
-80

query I rowsort
SELECT + - 7 * - 63 AS col0
----
441

query I rowsort
SELECT ALL 77 * + 43
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL COUNT( * ) + 1 + 4 * - COALESCE ( 12, - 34 ) * + 69 * COALESCE ( SUM( DISTINCT - 7 ), + - 72 ) + + COALESCE ( - 38, 33 * + COUNT( * ) ) / + + 38 + + 74 * COUNT( * ) * + 40 + CASE 75 WHEN 80 / + - 3 THEN - + ( - + 26 ) WHEN + 90 * 51 + 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL COUNT ( * ) + 1 + 4 * - COALESCE ( 12, - 34 ) * + 69 * COALESCE ( SUM ( DISTINCT - 7 ), + - 72 ) + + COALESCE ( - 38, 33 * + COUNT ( * ) ) / + + 38 + + 74 * COUNT ( * ) * + 40 + CASE 75 WHEN 80 / + - 3 THEN - + ( - + 26 ) WHEN + 90 * 51 + 9 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT - CAST( 98 AS SIGNED ) - + 95 col1
----
-193

skipif mysql # not compatible
query I rowsort label-6987
SELECT - CAST ( 98 AS INTEGER ) - + 95 col1
----
-193

query I rowsort
SELECT + 33 - - ( + - 28 )
----
5

query I rowsort
SELECT + 10 - + ( + + 13 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL 21 * - 66 * - + COUNT( * ) * + ( 84 ) col1
----
116424

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL 21 * - 66 * - + COUNT ( * ) * + ( 84 ) col1
----
116424

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT 39 + - + 0 + 53 * + + COUNT( DISTINCT + NULLIF ( + 5, 86 / 45 * + 86 ) ) + 95 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 39 + - + 0 + 53 * + + COUNT ( DISTINCT + NULLIF ( + 5, 86 / 45 * + 86 ) ) + 95 AS col1
----
187

query I rowsort
SELECT ALL 74 - 21 + + 86 - 85 * - + 78 * - 43 AS col0
----
-284951

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL 85 * MIN( DISTINCT + 59 ) AS col0
----
5015

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL 85 * MIN ( DISTINCT + 59 ) AS col0
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL MAX( ALL NULLIF ( - - 45, 58 + ( 90 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL MAX ( ALL NULLIF ( - - 45, 58 + ( 90 ) ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6995
SELECT + 26 + ( + 91 ) DIV - + 51 + + ( + + COALESCE ( CAST( NULL AS SIGNED ), + + CASE - NULLIF ( + + 72, - + 96 ) WHEN - + 6 * - NULLIF ( + 47, + 79 + - 67 ) THEN NULL WHEN - - 62 * + COUNT( * ) + + - 40 THEN 59 END, + ( - 39 ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 26 + ( + 91 ) / - + 51 + + ( + + COALESCE ( CAST ( NULL AS INTEGER ), + + CASE - NULLIF ( + + 72, - + 96 ) WHEN - + 6 * - NULLIF ( + 47, + 79 + - 67 ) THEN NULL WHEN - - 62 * + COUNT ( * ) + + - 40 THEN 59 END, + ( - 39 ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT + 44 * - COALESCE ( 13, - MAX( DISTINCT 17 ), - 88 )
----
-572

skipif mysql # not compatible
query I rowsort label-6996
SELECT + 44 * - COALESCE ( 13, - MAX ( DISTINCT 17 ), - 88 )
----
-572

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL - 86 * + COALESCE ( 94, - NULLIF ( - COALESCE ( - 69, 57 ), - 55 ) DIV + 38 + - + 36 + - + 62 * + 76 * - 75, - 32 )
----
-8084

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - 86 * + COALESCE ( 94, - NULLIF ( - COALESCE ( - 69, 57 ), - 55 ) / + 38 + - + 36 + - + 62 * + 76 * - 75, - 32 )
----
-8084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT + CAST( - 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6998
SELECT + CAST ( - 59 AS INTEGER ) AS col1
----
-59

query I rowsort
SELECT ALL + ( ( + 69 ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL 72 * + MAX( 35 * 87 ) AS col0
----
219240

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 72 * + MAX ( 35 * 87 ) AS col0
----
219240

query I rowsort
SELECT ( NULLIF ( ( + 99 ), 98 * 57 ) ) AS col0
----
99

query I rowsort
SELECT ALL + 59 * 80 AS col1
----
4720

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT - 36 DIV - 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 36 / - 20 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT + 55 DIV 52 + 97 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7004
SELECT + 55 / 52 + 97 AS col1
----
98

query I rowsort
SELECT DISTINCT + COALESCE ( 83, + ( - 13 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - 24 + - COALESCE ( 89, COUNT( * ) )
----
-113

skipif mysql # not compatible
query I rowsort label-7006
SELECT - 24 + - COALESCE ( 89, COUNT ( * ) )
----
-113

query I rowsort
SELECT COALESCE ( 62, - 6, 27 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT ALL + ( 17 ) DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + ( 17 ) / 75 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7009
SELECT - CAST( NULL AS DECIMAL ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT - CAST ( NULL AS REAL ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 66, 56 )
----
-66

query I rowsort
SELECT 15 * 9 - + 57 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT COALESCE ( - COUNT( * ), - 63, COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7012
SELECT COALESCE ( - COUNT ( * ), - 63, COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT ALL + COUNT( * ) DIV + 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + COUNT ( * ) / + 48 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT - MIN( DISTINCT - 89 ) * ( - 86 DIV - 22 ) + 97 * 29 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT - MIN ( DISTINCT - 89 ) * ( - 86 / - 22 ) + 97 * 29 AS col0
----
3080

query I rowsort
SELECT - 46 + 62 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + 39 * 49 + - MIN( 12 ) * - COUNT( * ) AS col1
----
1923

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + 39 * 49 + - MIN ( 12 ) * - COUNT ( * ) AS col1
----
1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT - CASE + COUNT( * ) WHEN + MIN( + 17 ) THEN 96 * + NULLIF ( 13, - 87 DIV + 20 + - 77 ) WHEN - 35 THEN 54 - 7 DIV - 49 ELSE - ( - ( 53 ) ) END AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7017
SELECT - CASE + COUNT ( * ) WHEN + MIN ( + 17 ) THEN 96 * + NULLIF ( 13, - 87 / + 20 + - 77 ) WHEN - 35 THEN 54 - 7 / - 49 ELSE - ( - ( 53 ) ) END AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7018
SELECT - 54 * CAST( - 99 * COUNT( * ) AS SIGNED ) + + COUNT( - 50 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 54 * CAST ( - 99 * COUNT ( * ) AS INTEGER ) + + COUNT ( - 50 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + NULLIF ( COUNT( * ), - COUNT( * ) * CASE 91 WHEN + CASE - 56 WHEN 24 THEN NULL WHEN COUNT( * ) THEN 23 END / - 6 THEN 4 * - 34 ELSE NULL END ) - - 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7019
SELECT + NULLIF ( COUNT ( * ), - COUNT ( * ) * CASE 91 WHEN + CASE - 56 WHEN 24 THEN NULL WHEN COUNT ( * ) THEN 23 END / - 6 THEN 4 * - 34 ELSE NULL END ) - - 65 AS col1
----
66

query I rowsort
SELECT - 10 + 20 * + NULLIF ( 35, + ( - 93 ) )
----
690

query I rowsort
SELECT + 72 * + ( + 82 ) - 24 * 28
----
5232

query I rowsort
SELECT - 86 + 26 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL 98 - - ( MAX( 46 ) ) * 62 AS col2
----
2950

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL 98 - - ( MAX ( 46 ) ) * 62 AS col2
----
2950

query I rowsort
SELECT DISTINCT ( ( - 77 ) ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7025
SELECT ALL 74 - - ( - COUNT( * ) ) DIV - 42 col0
----
74

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL 74 - - ( - COUNT ( * ) ) / - 42 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + MIN( 35 ) + 97 * 70
----
6825

skipif mysql # not compatible
query I rowsort label-7026
SELECT + MIN ( 35 ) + 97 * 70
----
6825

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT DISTINCT 92 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT 92 / - 77
----
-1

query I rowsort
SELECT + 56 + 60 AS col1
----
116

query I rowsort
SELECT + NULLIF ( - 6, - ( 48 ) + 39 ) + - 22
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT ALL 38 DIV - 35 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL 38 / - 35 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - 44 DIV - 5 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 44 / - 5 AS col0
----
8

query I rowsort
SELECT + 8 + 11
----
19

query I rowsort
SELECT - NULLIF ( 98, 48 )
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7034
SELECT + CAST( NULL AS DECIMAL ) + 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT + CAST ( NULL AS REAL ) + 33 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT MAX( + 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT MAX ( + 49 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT + 72 * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + 72 * COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT - CAST( + ( - 51 ) AS SIGNED ) col1
----
51

skipif mysql # not compatible
query I rowsort label-7037
SELECT - CAST ( + ( - 51 ) AS INTEGER ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - 21 * + CASE 62 WHEN 8 * 75 + - 26 * 55 THEN NULL WHEN + 0 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 21 * + CASE 62 WHEN 8 * 75 + - 26 * 55 THEN NULL WHEN + 0 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT + ( 64 ) DIV + ( + COALESCE ( - 82, - 14 * COALESCE ( 63 * - 16, 38 ) ) ) + 54 * 62
----
3348

skipif mysql # not compatible
query I rowsort label-7039
SELECT + ( 64 ) / + ( + COALESCE ( - 82, - 14 * COALESCE ( 63 * - 16, 38 ) ) ) + 54 * 62
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + MAX( ( + 72 ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7040
SELECT + MAX ( ( + 72 ) ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT + - 68 DIV + 42 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7041
SELECT + - 68 / + 42 - COUNT ( * )
----
-2

query I rowsort
SELECT COALESCE ( 2, 34 ) * ( - 63 )
----
-126

query I rowsort
SELECT - - 39 * 53 + - 70
----
1997

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT ALL - 21 + 11 DIV + 66 col1
----
-21

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - 21 + 11 / + 66 col1
----
-21

query I rowsort
SELECT ALL + 63 * 11
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - - MIN( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - - MIN ( 7 ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 29 * + 24 AS col0
----
696

query I rowsort
SELECT DISTINCT - 18 + + 59 * + 79
----
4643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL - 60 + - CAST( 76 AS SIGNED ) * 87
----
-6672

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - 60 + - CAST ( 76 AS INTEGER ) * 87
----
-6672

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + MAX( 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7050
SELECT + MAX ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + 42 + ( - SUM( + 93 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 42 + ( - SUM ( + 93 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT NULLIF ( COUNT( * ), + 79 * 79 + 41 ) * + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7052
SELECT NULLIF ( COUNT ( * ), + 79 * 79 + 41 ) * + 42 AS col0
----
42

query I rowsort
SELECT ALL - + ( - 59 )
----
59

query I rowsort
SELECT 54 + 98 AS col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT DISTINCT - - 84 DIV - 74 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - - 84 / - 74 AS col2
----
-1

query I rowsort
SELECT ALL + 21 - + 74 col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT 47 DIV - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7057
SELECT 47 / - - COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT - 48 * + - ( 36 ) col1
----
1728

query I rowsort
SELECT ALL + 94 * + 23 * 63 AS col0
----
136206

query I rowsort
SELECT ALL + ( - 72 ) - - 72 AS col0
----
0

query I rowsort
SELECT ( + + 85 ) * - 27
----
-2295

query I rowsort
SELECT 30 * - 63 col2
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT 37 - + - CASE - 42 WHEN CAST( - COUNT( ALL - 97 ) AS SIGNED ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT 37 - + - CASE - 42 WHEN CAST ( - COUNT ( ALL - 97 ) AS INTEGER ) THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 40 * - 64 AS col2
----
-2560

query I rowsort
SELECT 46 - - 42
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT MAX( 74 ) * 9
----
666

skipif mysql # not compatible
query I rowsort label-7066
SELECT MAX ( 74 ) * 9
----
666

query I rowsort
SELECT ALL + 85 * 22
----
1870

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT 56 + 89 DIV 73 col2
----
57

skipif mysql # not compatible
query I rowsort label-7068
SELECT 56 + 89 / 73 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT DISTINCT + ( + ( - COUNT( ALL 65 ) ) ) * - NULLIF ( + 72, COUNT( * ) * 39 )
----
72

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + ( + ( - COUNT ( ALL 65 ) ) ) * - NULLIF ( + 72, COUNT ( * ) * 39 )
----
72

query I rowsort
SELECT 65 * - + 94
----
-6110

query I rowsort
SELECT ALL + 86 * 64
----
5504

query I rowsort
SELECT ALL - 31 + 94
----
63

query I rowsort
SELECT ALL NULLIF ( - + 84, 40 + 74 ) + + 59
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT DISTINCT - COUNT( * ) DIV ( + 11 ) * 92
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - COUNT ( * ) / ( + 11 ) * 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT + COUNT( * ) + 80 * + COALESCE ( - CAST( NULL AS SIGNED ), 31 + + CAST( CAST( NULL AS SIGNED ) + 70 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT + COUNT ( * ) + 80 * + COALESCE ( - CAST ( NULL AS INTEGER ), 31 + + CAST ( CAST ( NULL AS INTEGER ) + 70 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT + - CAST( NULL AS SIGNED ) / - COUNT( * ) / 93 + COUNT( * ) + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 93 + COUNT ( * ) + 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - 83 * COUNT( * ) - - 93 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 83 * COUNT ( * ) - - 93 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7078
SELECT DISTINCT - 14 DIV - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - 14 / - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT DISTINCT 94 + + 12 col2
----
106

query I rowsort
SELECT ALL - 81 * + + 71 * - 70
----
402570

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT + 22 + - MAX( ALL + ( ( - 62 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT + 22 + - MAX ( ALL + ( ( - 62 ) ) )
----
84

query I rowsort
SELECT COALESCE ( + 70, 21 * 47 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT ALL - NULLIF ( ( + CASE + 76 WHEN - 45 * + COUNT( - 52 ) THEN + 59 + 8 DIV 44 ELSE + COUNT( * ) END ), 99 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - NULLIF ( ( + CASE + 76 WHEN - 45 * + COUNT ( - 52 ) THEN + 59 + 8 / 44 ELSE + COUNT ( * ) END ), 99 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + CASE WHEN NOT - 74 IS NULL THEN - 4 ELSE - COUNT( * ) END * + 7 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7084
SELECT + CASE WHEN NOT - 74 IS NULL THEN - 4 ELSE - COUNT ( * ) END * + 7 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + + 60
----
NULL

query I rowsort
SELECT DISTINCT - - ( - ( - 79 ) )
----
79

query I rowsort
SELECT ALL - - 1 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT 79 + SUM( DISTINCT + 95 ) * + 71
----
6824

skipif mysql # not compatible
query I rowsort label-7088
SELECT 79 + SUM ( DISTINCT + 95 ) * + 71
----
6824

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT NULLIF ( + + 69, 89 * + 12 - - COUNT( * ) / 74 ) - - 19 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT NULLIF ( + + 69, 89 * + 12 - - COUNT ( * ) / 74 ) - - 19 AS col1
----
88

query I rowsort
SELECT DISTINCT + - 57 * 62 col0
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT 72 * - MAX( DISTINCT 94 ) AS col1
----
-6768

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT 72 * - MAX ( DISTINCT 94 ) AS col1
----
-6768

onlyif mysql # aggregate syntax: 
query II rowsort label-7092
SELECT DISTINCT - COUNT( * ) AS col0, - SUM( DISTINCT + 70 ) * - 16 AS col1
----
-1
1120

skipif mysql # not compatible
query II rowsort label-7092
SELECT DISTINCT - COUNT ( * ) AS col0, - SUM ( DISTINCT + 70 ) * - 16 AS col1
----
-1
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL - 62 * - + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - 62 * - + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT 56 + - 1
----
55

query I rowsort
SELECT ALL 62 * + + ( + - 88 )
----
-5456

query I rowsort
SELECT 66 + + 87 AS col2
----
153

query I rowsort
SELECT 75 * 4 AS col1
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT 26 * + 18 * + - CAST( MAX( ALL - 86 ) AS SIGNED ) + 75 AS col2
----
40323

skipif mysql # not compatible
query I rowsort label-7098
SELECT 26 * + 18 * + - CAST ( MAX ( ALL - 86 ) AS INTEGER ) + 75 AS col2
----
40323

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT 82 - 40 + - 25 DIV 26 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7099
SELECT 82 - 40 + - 25 / 26 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7100
SELECT 22 col1, + 6 + - SUM( DISTINCT - 64 )
----
22
70

skipif mysql # not compatible
query II rowsort label-7100
SELECT 22 col1, + 6 + - SUM ( DISTINCT - 64 )
----
22
70

query II rowsort
SELECT ALL 70, 87 AS col1
----
70
87

query I rowsort
SELECT + 26 * 47 - + - 90 * 89
----
9232

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL MAX( - - 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL MAX ( - - 22 ) AS col0
----
22

query I rowsort
SELECT 65 * + 56 AS col2
----
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT ALL - COUNT( * ) DIV 45 * - ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - COUNT ( * ) / 45 * - ( 54 )
----
0

query II rowsort
SELECT 6, 75 AS col1
----
6
75

query I rowsort
SELECT 75 * 68 col2
----
5100

query I rowsort
SELECT ALL 55 + 18 AS col1
----
73

query I rowsort
SELECT DISTINCT 14 + + 48 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL CASE CASE 26 WHEN + 73 THEN - 83 * 61 WHEN - COALESCE ( + 75, 29 ) * 68 THEN NULL ELSE + COUNT( * ) END WHEN + 27 + + 29 THEN 54 WHEN - ( MAX( DISTINCT - 28 ) ) - - 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL CASE CASE 26 WHEN + 73 THEN - 83 * 61 WHEN - COALESCE ( + 75, 29 ) * 68 THEN NULL ELSE + COUNT ( * ) END WHEN + 27 + + 29 THEN 54 WHEN - ( MAX ( DISTINCT - 28 ) ) - - 18 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 0 + 51 * + + CASE WHEN NULL IS NOT NULL THEN NULL ELSE 52 END
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT - COUNT( * ) + - + CAST( + 83 AS SIGNED ) * 99 AS col1
----
-8218

skipif mysql # not compatible
query I rowsort label-7112
SELECT - COUNT ( * ) + - + CAST ( + 83 AS INTEGER ) * 99 AS col1
----
-8218

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL - 27 + - + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - 27 + - + COUNT ( * ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT MAX( + NULLIF ( - + 13, - 12 + 32 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT MAX ( + NULLIF ( - + 13, - 12 + 32 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + ( + 11 ) * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7115
SELECT + ( + 11 ) * + COUNT ( * )
----
11

query I rowsort
SELECT - 19 + + 36 + + NULLIF ( + 89, + NULLIF ( 7, COALESCE ( 4, + 20 ) * 97 ) + - ( 80 ) * 16 ) * 89
----
7938

query II rowsort
SELECT - 94 AS col0, 84 AS col0
----
-94
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT ALL + 55 * CASE 71 WHEN 82 + 68 THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + 55 * CASE 71 WHEN 82 + 68 THEN + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT - COUNT( * ) + + 94 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7119
SELECT - COUNT ( * ) + + 94 AS col2
----
93

query I rowsort
SELECT - NULLIF ( 68, + + NULLIF ( 13, - 78 ) ) * - ( + 95 + 90 )
----
12580

query II rowsort
SELECT ALL - 55 AS col1, + 62 + 41 AS col1
----
-55
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - COALESCE ( ( + COALESCE ( COALESCE ( 11, COUNT( * ) * - 1 + SUM( DISTINCT 3 ), + 6 - + 49 ), 2 ) ), + 44 + 58, + 14 )
----
-11

skipif mysql # not compatible
query I rowsort label-7122
SELECT - COALESCE ( ( + COALESCE ( COALESCE ( 11, COUNT ( * ) * - 1 + SUM ( DISTINCT 3 ), + 6 - + 49 ), 2 ) ), + 44 + 58, + 14 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT ALL - - 68 + + COALESCE ( 26, ( + 39 ) + - 65, - 99 * - COUNT( * ) ) DIV 28
----
68

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - - 68 + + COALESCE ( 26, ( + 39 ) + - 65, - 99 * - COUNT ( * ) ) / 28
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT + 93 + NULLIF ( 14, + COUNT( * ) ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT + 93 + NULLIF ( 14, + COUNT ( * ) ) AS col1
----
107

query I rowsort
SELECT 24 * - 75 + + - 64 + 69 col2
----
-1795

query II rowsort
SELECT 67 AS col1, - 63
----
67
-63

query II rowsort
SELECT 73, 7 + + + 36 AS col1
----
73
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7128
SELECT - - 80 * - + 66 + + 83 DIV CAST( + NULLIF ( + 12, + 69 * + 9 ) + + 6 * + ( + 16 ) AS SIGNED )
----
-5280

skipif mysql # not compatible
query I rowsort label-7128
SELECT - - 80 * - + 66 + + 83 / CAST ( + NULLIF ( + 12, + 69 * + 9 ) + + 6 * + ( + 16 ) AS INTEGER )
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7129
SELECT ALL - + NULLIF ( + 4, - 55 + - 39 ) DIV + CASE + COUNT( + 52 ) - 49 WHEN CASE - 19 WHEN - 19 - - 6 * 65 THEN - 88 ELSE NULL END * + 62 THEN NULL ELSE - 87 END
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - + NULLIF ( + 4, - 55 + - 39 ) / + CASE + COUNT ( + 52 ) - 49 WHEN CASE - 19 WHEN - 19 - - 6 * 65 THEN - 88 ELSE NULL END * + 62 THEN NULL ELSE - 87 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT - 72 DIV - 53 + COUNT( * ) - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 72 / - 53 + COUNT ( * ) - + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - + 4 * + 94 - - 77
----
-299

query I rowsort
SELECT - ( - 65 ) * - 22 + + 29 * 96 AS col0
----
1354

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT ALL - - 51 DIV - ( + - 24 ) + - 24
----
-22

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - - 51 / - ( + - 24 ) + - 24
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7134
SELECT ALL + 96, + 57 DIV + MAX( DISTINCT + 47 ) * 1 AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-7134
SELECT ALL + 96, + 57 / + MAX ( DISTINCT + 47 ) * 1 AS col1
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT + - 84 * - 49 - - COUNT( * ) + MAX( 36 ) - + 81
----
4072

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT + - 84 * - 49 - - COUNT ( * ) + MAX ( 36 ) - + 81
----
4072

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT 48 * + 98 * + COUNT( * ) + 40
----
4744

skipif mysql # not compatible
query I rowsort label-7136
SELECT 48 * + 98 * + COUNT ( * ) + 40
----
4744

query I rowsort
SELECT - 27 * + 88 * 37 AS col0
----
-87912

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + COALESCE ( ( 17 ), - + COUNT( * ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7138
SELECT + COALESCE ( ( 17 ), - + COUNT ( * ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT NULLIF ( + COUNT( * ), - 78 + + 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7139
SELECT NULLIF ( + COUNT ( * ), - 78 + + 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT SUM( DISTINCT - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-7140
SELECT SUM ( DISTINCT - 37 )
----
-37

query I rowsort
SELECT + 50 * - 55 AS col0
----
-2750

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT MAX( DISTINCT - ( - + 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-7142
SELECT MAX ( DISTINCT - ( - + 38 ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + 68 + - CASE + - 0 WHEN + 53 THEN - NULLIF ( 15, 49 / - ( ( - 90 ) ) ) WHEN 66 * 72 THEN 35 + 71 END + - 74 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + 68 + - CASE + - 0 WHEN + 53 THEN - NULLIF ( 15, 49 / - ( ( - 90 ) ) ) WHEN 66 * 72 THEN 35 + 71 END + - 74 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT - ( - SUM( + ( + CAST( 37 AS SIGNED ) ) ) ) col1
----
37

skipif mysql # not compatible
query I rowsort label-7144
SELECT - ( - SUM ( + ( + CAST ( 37 AS INTEGER ) ) ) ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT MAX( ALL 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7145
SELECT MAX ( ALL 69 ) AS col2
----
69

query I rowsort
SELECT + 20 * - + 37 * + + 9
----
-6660

query I rowsort
SELECT + 31 - 59 + - 5 + - 26
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT ALL COUNT( * ) + - 59 col2, ( - 48 )
----
-58
-48

skipif mysql # not compatible
query II rowsort label-7148
SELECT ALL COUNT ( * ) + - 59 col2, ( - 48 )
----
-58
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT + CAST( NULL AS SIGNED ) - - 3 / - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT + CAST ( NULL AS INTEGER ) - - 3 / - 96 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 11, 0 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT COALESCE ( + 97, 54, + - COUNT( * ) + 13, MAX( DISTINCT - 53 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT COALESCE ( + 97, 54, + - COUNT ( * ) + 13, MAX ( DISTINCT - 53 ) ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + ( + 91 ) + + 73 + - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-7152
SELECT + ( + 91 ) + + 73 + - COUNT ( * )
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + 55 + - 60 - - - 43 + - ( COUNT( * ) ) * - 66
----
18

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + 55 + - 60 - - - 43 + - ( COUNT ( * ) ) * - 66
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7154
SELECT CAST( + 95 AS SIGNED ), 88 AS col1
----
95
88

skipif mysql # not compatible
query II rowsort label-7154
SELECT CAST ( + 95 AS INTEGER ), 88 AS col1
----
95
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7155
SELECT - - 95 - 60, - CASE 52 WHEN + ( + 52 ) THEN NULL WHEN + ( CAST( NULL AS SIGNED ) ) * 15 THEN + 34 ELSE - 81 + - 41 END AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7155
SELECT - - 95 - 60, - CASE 52 WHEN + ( + 52 ) THEN NULL WHEN + ( CAST ( NULL AS INTEGER ) ) * 15 THEN + 34 ELSE - 81 + - 41 END AS col1
----
35
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT DISTINCT + 31 DIV - - 72
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + 31 / - - 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT + COUNT( * ) DIV 51 * + ( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT + COUNT ( * ) / 51 * + ( + 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - COUNT( * ) + + + COUNT( ALL - + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT - COUNT ( * ) + + + COUNT ( ALL - + 80 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT - 44 DIV + 78 + + COUNT( + 15 ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7159
SELECT - 44 / + 78 + + COUNT ( + 15 ) * 54 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7160
SELECT - + 68 * - 55 + + - 25 + + NULLIF ( COUNT( * ), + 83 * - ( COUNT( * ) ) ) DIV + SUM( 76 + + 51 * 44 ) DIV 6 col0
----
3715

skipif mysql # not compatible
query I rowsort label-7160
SELECT - + 68 * - 55 + + - 25 + + NULLIF ( COUNT ( * ), + 83 * - ( COUNT ( * ) ) ) / + SUM ( 76 + + 51 * 44 ) / 6 col0
----
3715

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT 91 * - CASE + 15 WHEN - 38 / + 1 + - 91 THEN + 20 * ( 90 ) + - 37 ELSE CASE - CASE + COALESCE ( + CASE + 74 WHEN + 81 * - 55 THEN NULL WHEN 9 * 72 THEN 26 * - COUNT( * ) END, 61 * 63 + - 25 * - 75 ) WHEN 74 THEN COUNT( * ) WHEN - ( + 85 ) - 86 * + 78 THEN NULL ELSE NULL END WHEN 63 THEN ( COALESCE ( 56, 73 ) ) END END * + 60 - + 30 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT 91 * - CASE + 15 WHEN - 38 / + 1 + - 91 THEN + 20 * ( 90 ) + - 37 ELSE CASE - CASE + COALESCE ( + CASE + 74 WHEN + 81 * - 55 THEN NULL WHEN 9 * 72 THEN 26 * - COUNT ( * ) END, 61 * 63 + - 25 * - 75 ) WHEN 74 THEN COUNT ( * ) WHEN - ( + 85 ) - 86 * + 78 THEN NULL ELSE NULL END WHEN 63 THEN ( COALESCE ( 56, 73 ) ) END END * + 60 - + 30 + 78
----
NULL

query I rowsort
SELECT - 21 + - 78 * + 55 + + 96 * - - 74 AS col2
----
2793

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT DISTINCT + 17, + MAX( ALL 64 ) col1
----
17
64

skipif mysql # not compatible
query II rowsort label-7163
SELECT DISTINCT + 17, + MAX ( ALL 64 ) col1
----
17
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT COALESCE ( - - 72, - + 98, + 7 + COUNT( * ) ) * 43 + - CAST( NULL AS SIGNED ) * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT COALESCE ( - - 72, - + 98, + 7 + COUNT ( * ) ) * 43 + - CAST ( NULL AS INTEGER ) * 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT ALL CAST( - 39 AS SIGNED ) * - + 87 + + 10 + + CAST( - 0 AS SIGNED ) AS col0
----
3403

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL CAST ( - 39 AS INTEGER ) * - + 87 + + 10 + + CAST ( - 0 AS INTEGER ) AS col0
----
3403

query I rowsort
SELECT DISTINCT + 45 + 1
----
46

query I rowsort
SELECT ALL + 27 * - 13 * + - 75
----
26325

query I rowsort
SELECT ALL - 72 * + + 55
----
-3960

query II rowsort
SELECT DISTINCT - 32 AS col1, + 92
----
-32
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL COUNT( * ) + + - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL COUNT ( * ) + + - 62 AS col1
----
-61

query I rowsort
SELECT + 54 * - + 23 + + 59 AS col2
----
-1183

query I rowsort
SELECT ( - 84 ) * - CASE - ( 43 ) WHEN - 50 THEN + 68 ELSE 20 END
----
1680

query I rowsort
SELECT 81 + - + ( - CASE + 15 WHEN - 13 + 96 THEN - 16 ELSE NULL END ) + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT COUNT( * ) - + - 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7174
SELECT COUNT ( * ) - + - 63 AS col0
----
64

query I rowsort
SELECT DISTINCT ( - 58 ) * + 20 AS col0
----
-1160

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT ALL + 72, MAX( 70 ) AS col1
----
72
70

skipif mysql # not compatible
query II rowsort label-7176
SELECT ALL + 72, MAX ( 70 ) AS col1
----
72
70

query I rowsort
SELECT DISTINCT + 35 * + 46
----
1610

query I rowsort
SELECT 74 + + + 95 AS col2
----
169

query I rowsort
SELECT DISTINCT - 2 * - - 48 + + 42
----
-54

query II rowsort
SELECT 65 AS col0, + 27
----
65
27

query I rowsort
SELECT DISTINCT 49 - ( + ( + COALESCE ( 66, - ( + ( + 51 ) ) * + 23 ) ) ) + NULLIF ( + 87 + - 94, + 78 - 30 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL NULLIF ( + - 2, - COUNT( DISTINCT + - 69 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL NULLIF ( + - 2, - COUNT ( DISTINCT + - 69 ) ) AS col1
----
-2

query I rowsort
SELECT DISTINCT 93 * - 39 * + + 51 + + 66 + + 24 * 6
----
-184767

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7184
SELECT ALL + + CAST( 95 AS SIGNED ) DIV 18 * + - ( 62 ) * - 43
----
13330

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + + CAST ( 95 AS INTEGER ) / 18 * + - ( 62 ) * - 43
----
13330

query I rowsort
SELECT DISTINCT + + ( + - 44 ) * + 31 + - + 74 - - 1
----
-1437

query I rowsort
SELECT + 87 + 19 AS col0
----
106

query I rowsort
SELECT ALL - - CASE - - 97 WHEN 43 THEN 87 + - + 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT 46 * - MIN( ( - 2 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7188
SELECT 46 * - MIN ( ( - 2 ) ) AS col1
----
92

query I rowsort
SELECT + 44 - + 51
----
-7

query II rowsort
SELECT + 0 AS col2, ( + 27 ) AS col0
----
0
27

query II rowsort
SELECT ALL - 20 AS col2, 43
----
-20
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7192
SELECT + 2 col2, - CAST( - 39 AS SIGNED )
----
2
39

skipif mysql # not compatible
query II rowsort label-7192
SELECT + 2 col2, - CAST ( - 39 AS INTEGER )
----
2
39

query I rowsort
SELECT ALL 4 + - 1
----
3

query I rowsort
SELECT DISTINCT - 86 + - 89
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + COUNT( * ) + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + COUNT ( * ) + 54 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL - MAX( + 27 ) + ( ( - 67 ) ) * - + 79 + + CAST( ( + 23 ) AS SIGNED ) * 5 AS col1
----
5381

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - MAX ( + 27 ) + ( ( - 67 ) ) * - + 79 + + CAST ( ( + 23 ) AS INTEGER ) * 5 AS col1
----
5381

query I rowsort
SELECT DISTINCT + 13 + - 46 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL - 68 + - 64 + - - 94 + CAST( + + 94 AS SIGNED ) * - - 94 * 71
----
627318

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - 68 + - 64 + - - 94 + CAST ( + + 94 AS INTEGER ) * - - 94 * 71
----
627318

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT + COUNT( * ) + + - 70 + + 64
----
-5

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT + COUNT ( * ) + + - 70 + + 64
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT + 76 col1, + COUNT( * ) AS col1
----
76
1

skipif mysql # not compatible
query II rowsort label-7200
SELECT + 76 col1, + COUNT ( * ) AS col1
----
76
1

query II rowsort
SELECT 46 AS col1, 39 AS col2
----
46
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT 81 DIV + 74 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7202
SELECT 81 / + 74 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT COUNT( * ) + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7203
SELECT COUNT ( * ) + 28 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL - 69 - - 66 + + + 32 + + - COUNT( * ) + - 40
----
-12

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - 69 - - 66 + + + 32 + + - COUNT ( * ) + - 40
----
-12

query I rowsort
SELECT ALL ( ( 65 ) ) - ( 79 ) - - 5
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT COUNT( * ) * - 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7206
SELECT COUNT ( * ) * - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + MIN( 50 ) * + + 56 AS col1
----
2800

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + MIN ( 50 ) * + + 56 AS col1
----
2800

query III rowsort
SELECT ALL 44 AS col0, - 49 AS col1, 69
----
44
-49
69

query I rowsort
SELECT 16 * + 45 AS col2
----
720

query I rowsort
SELECT ALL + 78 * - 20 * - - 27 AS col0
----
-42120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7211
SELECT 99 + - 51 + + 54 + 67 * - 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT 99 + - 51 + + 54 + 67 * - 32 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT COUNT( * ) / - + CASE 96 WHEN + 56 - 92 + - - ( ( + 41 ) ) THEN COUNT( * ) + 27 * 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT COUNT ( * ) / - + CASE 96 WHEN + 56 - 92 + - - ( ( + 41 ) ) THEN COUNT ( * ) + 27 * 18 END
----
NULL

query I rowsort
SELECT + NULLIF ( - + 48, - 99 ) * 83
----
-3984

query II rowsort
SELECT 55 AS col2, 20
----
55
20

query I rowsort
SELECT + 85 - - 83
----
168

query I rowsort
SELECT + 59 * NULLIF ( - 32, - - 83 ) * + 79 + - 33 AS col2
----
-149185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT COALESCE ( 32, - - 73 DIV - MIN( DISTINCT - - 6 ) + 27 + - 6, 27 ) + 4 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7217
SELECT COALESCE ( 32, - - 73 / - MIN ( DISTINCT - - 6 ) + 27 + - 6, 27 ) + 4 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT - ( - COUNT( - + 92 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7218
SELECT - ( - COUNT ( - + 92 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7219
SELECT ALL 75, + 49 DIV - 89 AS col2
----
75
0

skipif mysql # not compatible
query II rowsort label-7219
SELECT ALL 75, + 49 / - 89 AS col2
----
75
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7220
SELECT 24 AS col2, 30 DIV 4 AS col0
----
24
7

skipif mysql # not compatible
query II rowsort label-7220
SELECT 24 AS col2, 30 / 4 AS col0
----
24
7

query II rowsort
SELECT DISTINCT 97 col0, + 50 + - 59
----
97
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT 99 * 89 DIV - 58
----
-151

skipif mysql # not compatible
query I rowsort label-7222
SELECT 99 * 89 / - 58
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT + 26 + 81 - + 53 * - 31 * 21 + - 38 + COUNT( * ) * - 37 AS col0
----
34535

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 26 + 81 - + 53 * - 31 * 21 + - 38 + COUNT ( * ) * - 37 AS col0
----
34535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT CAST( + + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT CAST ( + + 77 AS INTEGER ) AS col1
----
77

query I rowsort
SELECT 91 - + - 18 + + + 82
----
191

query I rowsort
SELECT ALL + ( 34 ) * 4 col2
----
136

query I rowsort
SELECT + 57 * - 8
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT + 29 + - SUM( - 44 ) + - ( 43 ) * + - 14 * + 88
----
53049

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + 29 + - SUM ( - 44 ) + - ( 43 ) * + - 14 * + 88
----
53049

query I rowsort
SELECT - NULLIF ( - - 68, + 98 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT - COUNT( * ) AS col1, 7 - + 53
----
-1
-46

skipif mysql # not compatible
query II rowsort label-7230
SELECT - COUNT ( * ) AS col1, 7 - + 53
----
-1
-46

query I rowsort
SELECT ALL - 96 + - 40 + 31 AS col2
----
-105

query II rowsort
SELECT 79 AS col2, + 8
----
79
8

query I rowsort
SELECT - 24 * - 33 * COALESCE ( - 13, + + 61 - + - 40 ) + + 6 AS col1
----
-10290

query II rowsort
SELECT + 21 AS col2, + 87
----
21
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7235
SELECT DISTINCT - 47 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - 47 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL 22 * 36 * - 99 + + + 30
----
-78378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT + 27 * COALESCE ( + 89, - SUM( ALL - 73 ) * + + NULLIF ( 30, 74 ), 34 * 93 ) DIV - 72 col1
----
-33

skipif mysql # not compatible
query I rowsort label-7237
SELECT + 27 * COALESCE ( + 89, - SUM ( ALL - 73 ) * + + NULLIF ( 30, 74 ), 34 * 93 ) / - 72 col1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-7238
SELECT + 44 DIV + 97, 37 AS col1
----
0
37

skipif mysql # not compatible
query II rowsort label-7238
SELECT + 44 / + 97, 37 AS col1
----
0
37

query II rowsort
SELECT ALL 90 * + 31 * 65 + + 25 - - + 2 col2, 80 + 44 * 89
----
181377
3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7240
SELECT + 9 * 51 * 39 * COALESCE ( + 6, + 37, - COUNT( * ) * + NULLIF ( - 84, MAX( DISTINCT ( ( - 0 ) ) ) * 66 + - 85 ), CAST( NULL AS SIGNED ) ) + MIN( DISTINCT - 87 ) * + 83
----
100185

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 9 * 51 * 39 * COALESCE ( + 6, + 37, - COUNT ( * ) * + NULLIF ( - 84, MAX ( DISTINCT ( ( - 0 ) ) ) * 66 + - 85 ), CAST ( NULL AS INTEGER ) ) + MIN ( DISTINCT - 87 ) * + 83
----
100185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7241
SELECT - 14 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 14 / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + ( - 35 ) + - + MIN( DISTINCT + 31 ) * - 36
----
1081

skipif mysql # not compatible
query I rowsort label-7242
SELECT + ( - 35 ) + - + MIN ( DISTINCT + 31 ) * - 36
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT 10 * - 74 * + + COUNT( * ) * 2 + + 45 + 13 col1
----
-1422

skipif mysql # not compatible
query I rowsort label-7243
SELECT 10 * - 74 * + + COUNT ( * ) * 2 + + 45 + 13 col1
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL COUNT( * ) * + 27 * 72
----
1944

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL COUNT ( * ) * + 27 * 72
----
1944

query I rowsort
SELECT - 71 * - 28 * - - 96 + 26 + + 13
----
190887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + CAST( + 77 AS SIGNED ) col2
----
77

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + COALESCE ( + SUM( DISTINCT - 56 ), + + 76 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7247
SELECT + COALESCE ( + SUM ( DISTINCT - 56 ), + + 76 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - COUNT( * ) + CASE - - AVG ( 86 ) WHEN + + SUM( ALL + 35 ) * 73 THEN COUNT( * ) * - 2 + 73 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT - COUNT ( * ) + CASE - - AVG ( 86 ) WHEN + + SUM ( ALL + 35 ) * 73 THEN COUNT ( * ) * - 2 + 73 END col1
----
NULL

query I rowsort
SELECT - ( + - 18 ) * 26
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT - 30 * 60 + - + 97 + ( - 68 ) + - CAST( - + 87 AS SIGNED ) * 26 + 20
----
317

skipif mysql # not compatible
query I rowsort label-7250
SELECT - 30 * 60 + - + 97 + ( - 68 ) + - CAST ( - + 87 AS INTEGER ) * 26 + 20
----
317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT - 83 + - 59 + - - 26 / + 74 * CAST( NULL AS SIGNED ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT - 83 + - 59 + - - 26 / + 74 * CAST ( NULL AS INTEGER ) + + 67
----
NULL

query I rowsort
SELECT ALL - 52 * + 62 * - 35 + - 60
----
112780

query II rowsort
SELECT - 96 * 17 col2, 99 + + ( + + 61 )
----
-1632
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7254
SELECT - + 30 DIV COUNT( * ) AS col2, + 97 * - 30 + + 3 + + + COUNT( * ) AS col2
----
-30
-2906

skipif mysql # not compatible
query II rowsort label-7254
SELECT - + 30 / COUNT ( * ) AS col2, + 97 * - 30 + + 3 + + + COUNT ( * ) AS col2
----
-30
-2906

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT - + 81 + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7255
SELECT - + 81 + COUNT ( * ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT - 59 + - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - 59 + - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT + + COUNT( * ) DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT + + COUNT ( * ) / - 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT - - NULLIF ( - + 30, COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7258
SELECT - - NULLIF ( - + 30, COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT DISTINCT - 18 + + SUM( DISTINCT + 80 ) AS col1, ( + MIN( DISTINCT - 5 ) ) AS col2
----
62
-5

skipif mysql # not compatible
query II rowsort label-7259
SELECT DISTINCT - 18 + + SUM ( DISTINCT + 80 ) AS col1, ( + MIN ( DISTINCT - 5 ) ) AS col2
----
62
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL ( + 12 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL ( + 12 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - SUM( DISTINCT 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7261
SELECT - SUM ( DISTINCT 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT + 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + 86 + - COUNT ( * )
----
85

query I rowsort
SELECT - CASE 91 WHEN + - 15 THEN - 90 * 8 END
----
NULL

query II rowsort
SELECT 33 AS col1, + 20 + 15
----
33
35

query I rowsort
SELECT ALL 9 * 62
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7266
SELECT CAST( NULL AS SIGNED ), - 90 * - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7266
SELECT CAST ( NULL AS INTEGER ), - 90 * - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT - 32 * - 14 AS col2
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7268
SELECT CAST( + CAST( - - 74 AS DECIMAL ) AS SIGNED ) AS col0, - COALESCE ( + + 59, - - 61 * + + 26 * MAX( ALL 59 ) * - 6 + COALESCE ( - ( 11 ), - 55 DIV - 82 ), 31 + 23 ) * - 81 AS col2
----
74
4779

skipif mysql # not compatible
query II rowsort label-7268
SELECT CAST ( + CAST ( - - 74 AS REAL ) AS INTEGER ) AS col0, - COALESCE ( + + 59, - - 61 * + + 26 * MAX ( ALL 59 ) * - 6 + COALESCE ( - ( 11 ), - 55 / - 82 ), 31 + 23 ) * - 81 AS col2
----
74
4779

query I rowsort
SELECT + CASE ( - 26 ) WHEN 40 THEN - - 55 * - 79 WHEN + 1 + 88 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + 73 * + SUM( + 89 )
----
6497

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 73 * + SUM ( + 89 )
----
6497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT + COALESCE ( + 93, 64, - + 40 * - CAST( NULL AS SIGNED ) + - 65 + + 96 * + 20 + 20 )
----
93

skipif mysql # not compatible
query I rowsort label-7271
SELECT + COALESCE ( + 93, 64, - + 40 * - CAST ( NULL AS INTEGER ) + - 65 + + 96 * + 20 + 20 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - 46 / - + 88 - + MIN( DISTINCT + 56 ) * - - CASE - CASE + - 55 WHEN - 22 * - 75 THEN - ( 50 ) END WHEN + 63 * 58 THEN 51 ELSE NULL END * - COUNT( 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - 46 / - + 88 - + MIN ( DISTINCT + 56 ) * - - CASE - CASE + - 55 WHEN - 22 * - 75 THEN - ( 50 ) END WHEN + 63 * 58 THEN 51 ELSE NULL END * - COUNT ( 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + 37 * NULLIF ( COUNT( * ), - - 95 + + + 79 )
----
37

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 37 * NULLIF ( COUNT ( * ), - - 95 + + + 79 )
----
37

query II rowsort
SELECT ALL + 45, 37 + + 28 * + 95 AS col0
----
45
2697

query I rowsort
SELECT + 13 * + + 87 col1
----
1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT + CAST( - ( + + 22 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7276
SELECT + CAST ( - ( + + 22 ) AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - 7 * - + MAX( + + 50 )
----
350

skipif mysql # not compatible
query I rowsort label-7277
SELECT - 7 * - + MAX ( + + 50 )
----
350

query I rowsort
SELECT + 77 * - 88 * - + 96 AS col2
----
650496

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - CASE + + 95 WHEN - 33 THEN - + 68 WHEN + - COALESCE ( - 40, + 38 * - 88 ) THEN SUM( ALL - COALESCE ( 45, COALESCE ( 50, - 45 ) * + 43 + - 93 ) ) / 49 ELSE NULL END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT - CASE + + 95 WHEN - 33 THEN - + 68 WHEN + - COALESCE ( - 40, + 38 * - 88 ) THEN SUM ( ALL - COALESCE ( 45, COALESCE ( 50, - 45 ) * + 43 + - 93 ) ) / 49 ELSE NULL END * + 98
----
NULL

query II rowsort
SELECT + - 60 AS col1, 26 col1
----
-60
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT ALL 41 DIV - 56 * - COUNT( DISTINCT + - 14 ) * - 19 + + COALESCE ( + 42, - - 56, - 43 - - 15 * 29, - 53 ) + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 41 / - 56 * - COUNT ( DISTINCT + - 14 ) * - 19 + + COALESCE ( + 42, - - 56, - 43 - - 15 * 29, - 53 ) + + COUNT ( * ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-7282
SELECT + + 6 col1, + 6 DIV 2
----
6
3

skipif mysql # not compatible
query II rowsort label-7282
SELECT + + 6 col1, + 6 / 2
----
6
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7283
SELECT + + COUNT( * ) AS col2, - ( + - 18 ) * COUNT( * ) / + - 14 / - 7 + 38 + + CASE + 97 WHEN 19 THEN 89 ELSE NULL END - - 14 * + MAX( DISTINCT CAST( NULL AS SIGNED ) / 15 ) / + 59
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7283
SELECT + + COUNT ( * ) AS col2, - ( + - 18 ) * COUNT ( * ) / + - 14 / - 7 + 38 + + CASE + 97 WHEN 19 THEN 89 ELSE NULL END - - 14 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) / 15 ) / + 59
----
1
NULL

query I rowsort
SELECT DISTINCT + ( + NULLIF ( - - 82, + 9 ) )
----
82

query II rowsort
SELECT - + 85 - + + 27 * + 51, + NULLIF ( + - 35, + ( - 46 ) ) AS col1
----
-1462
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT DISTINCT + + 98 * + + 97 + - 60 AS col2, + COUNT( * )
----
9446
1

skipif mysql # not compatible
query II rowsort label-7286
SELECT DISTINCT + + 98 * + + 97 + - 60 AS col2, + COUNT ( * )
----
9446
1

query I rowsort
SELECT + + 40 + - + 49 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT - CAST( NULL AS SIGNED ) * - 58 + + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT - CAST ( NULL AS INTEGER ) * - 58 + + - 46
----
NULL

query I rowsort
SELECT + 83 + - 22 + 32 * + - 7 * COALESCE ( ( - 57 ), - 35 * - 48 ) * 29 * 90
----
33324541

query I rowsort
SELECT ALL 14 * - + ( CASE + - 82 WHEN - 2 THEN + + 96 END ) + - + 3 * + 22 + - 74 AS col1
----
NULL

query I rowsort
SELECT - 97 + + 57
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7292
SELECT - + CASE 43 WHEN + + ( + + COALESCE ( - + CASE + COUNT( * ) WHEN - - CAST( + 47 AS DECIMAL ) THEN NULL WHEN + 36 THEN 40 * - AVG ( 18 ) + CAST( NULL AS SIGNED ) * - 88 WHEN - 46 THEN + ( - 16 ) ELSE - 94 * + 9 + 27 * - NULLIF ( 7 * 34, - 53 + 33 ) END, NULLIF ( 85, - 15 * + 71 ) / COALESCE ( COUNT( + 5 ), - COUNT( - 45 ), + 3 ) + - 33 * CAST( + CAST( ( - 76 ) AS SIGNED ) * 59 - ( 38 ) * - COUNT( * ) AS SIGNED ) ) ) + + COUNT( * ) THEN NULL WHEN - CAST( + 48 AS SIGNED ) * 46 + 2 THEN - 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT - + CASE 43 WHEN + + ( + + COALESCE ( - + CASE + COUNT ( * ) WHEN - - CAST ( + 47 AS REAL ) THEN NULL WHEN + 36 THEN 40 * - AVG ( 18 ) + CAST ( NULL AS INTEGER ) * - 88 WHEN - 46 THEN + ( - 16 ) ELSE - 94 * + 9 + 27 * - NULLIF ( 7 * 34, - 53 + 33 ) END, NULLIF ( 85, - 15 * + 71 ) / COALESCE ( COUNT ( + 5 ), - COUNT ( - 45 ), + 3 ) + - 33 * CAST ( + CAST ( ( - 76 ) AS INTEGER ) * 59 - ( 38 ) * - COUNT ( * ) AS INTEGER ) ) ) + + COUNT ( * ) THEN NULL WHEN - CAST ( + 48 AS INTEGER ) * 46 + 2 THEN - 71 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 86 - - + 79
----
-7

query I rowsort
SELECT 94 + + 73 + 77 AS col2
----
244

query I rowsort
SELECT ALL + 82 - - 34
----
116

query I rowsort
SELECT 65 * 90 * - 82 AS col2
----
-479700

query I rowsort
SELECT 0 * - 63 AS col1
----
0

query II rowsort
SELECT 74 * + - 94, - 18 - 4 + + NULLIF ( + 21, + 90 * - - 29 * - + 20 - 13 * 11 ) * + 71 col1
----
-6956
1469

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT 84 + + 44 + - - COALESCE ( + ( + 13 ), + 45, + - 28 ) DIV - - 99
----
128

skipif mysql # not compatible
query I rowsort label-7299
SELECT 84 + + 44 + - - COALESCE ( + ( + 13 ), + 45, + - 28 ) / - - 99
----
128

query I rowsort
SELECT DISTINCT - 28 * - ( + - 41 )
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT - NULLIF ( + COUNT( * ), + + 33 + - - 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + + 33 + - - 24 ) AS col2
----
-1

query I rowsort
SELECT 90 * 91
----
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL - CAST( + - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - CAST ( + - 88 AS INTEGER )
----
88

query I rowsort
SELECT DISTINCT 54 * + - ( + 96 )
----
-5184

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT - 62 DIV + + 30 + 15 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7305
SELECT - 62 / + + 30 + 15 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT COUNT( * ) * + + 21, - 53 AS col2
----
21
-53

skipif mysql # not compatible
query II rowsort label-7306
SELECT COUNT ( * ) * + + 21, - 53 AS col2
----
21
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL MIN( ALL 86 ) + + 52
----
138

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL MIN ( ALL 86 ) + + 52
----
138

query II rowsort
SELECT 74 * - 28 - + 56 * 99 AS col2, 33
----
-7616
33

query I rowsort
SELECT DISTINCT - 66 + - 48 AS col0
----
-114

query I rowsort
SELECT ALL + 94 + + - 15
----
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7311
SELECT + 78 DIV 56 DIV + 35 * + - 42 * + + CAST( + CAST( + 52 AS DECIMAL ) AS SIGNED ) + + 81 + + 79 * 99
----
7902

skipif mysql # not compatible
query I rowsort label-7311
SELECT + 78 / 56 / + 35 * + - 42 * + + CAST ( + CAST ( + 52 AS REAL ) AS INTEGER ) + + 81 + + 79 * 99
----
7902

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + COUNT( * ) + - 82 - - 20 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + COUNT ( * ) + - 82 - - 20 AS col1
----
-61

query I rowsort
SELECT - + 19 * + - 13 + + 99 * - 37 * + + 4 + + 84 + 14 + + 59 AS col1
----
-14248

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7314
SELECT 97 + - 17 AS col0, CAST( NULL AS DECIMAL ) * 93 * 77 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7314
SELECT 97 + - 17 AS col0, CAST ( NULL AS REAL ) * 93 * 77 AS col2
----
80
NULL

query I rowsort
SELECT ALL 71 + + + 90
----
161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7316
SELECT 43 + - COALESCE ( - 54, + NULLIF ( + + CAST( NULL AS SIGNED ), - - 79 ), + 72 DIV + + 27 ) + - 47 * 28 col1
----
-1219

skipif mysql # not compatible
query I rowsort label-7316
SELECT 43 + - COALESCE ( - 54, + NULLIF ( + + CAST ( NULL AS INTEGER ), - - 79 ), + 72 / + + 27 ) + - 47 * 28 col1
----
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + 54 * - COUNT( * ) + + ( - 95 ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 54 * - COUNT ( * ) + + ( - 95 ) AS col0
----
-149

onlyif mysql # DIV for integer division: 
query II rowsort label-7318
SELECT DISTINCT - 42 DIV 2, 81 + - NULLIF ( 83, - - 43 ) + + 81 * + 35 col2
----
-21
2833

skipif mysql # not compatible
query II rowsort label-7318
SELECT DISTINCT - 42 / 2, 81 + - NULLIF ( 83, - - 43 ) + + 81 * + 35 col2
----
-21
2833

query I rowsort
SELECT + NULLIF ( - + 32, + + 41 )
----
-32

query I rowsort
SELECT ALL + 9 * - - 7
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT COALESCE ( - + 64, + 97 + + 79 + 21 DIV + 65 + + 18 - 30 ) DIV - - MIN( ALL + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT COALESCE ( - + 64, + 97 + + 79 + 21 / + 65 + + 18 - 30 ) / - - MIN ( ALL + 66 )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7322
SELECT ALL + MIN( - + 81 ) + - + 32 * 77 AS col0, + 6 col0, 89 * COALESCE ( + 84, - + 30 * COUNT( * ) ) + - ( 55 + + 18 * 2 ) AS col2
----
-2545
6
7385

skipif mysql # not compatible
query III rowsort label-7322
SELECT ALL + MIN ( - + 81 ) + - + 32 * 77 AS col0, + 6 col0, 89 * COALESCE ( + 84, - + 30 * COUNT ( * ) ) + - ( 55 + + 18 * 2 ) AS col2
----
-2545
6
7385

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT SUM( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT SUM ( 40 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7324
SELECT ALL CAST( - 36 AS SIGNED ) col2, + CAST( + + 8 AS SIGNED ) * + NULLIF ( - 74, - COUNT( * ) ) + 45 + - - CASE - 52 WHEN 71 THEN 83 END * - 12
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL CAST ( - 36 AS INTEGER ) col2, + CAST ( + + 8 AS INTEGER ) * + NULLIF ( - 74, - COUNT ( * ) ) + 45 + - - CASE - 52 WHEN 71 THEN 83 END * - 12
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT + 15 - + CASE - + 31 WHEN - - COUNT( 94 ) THEN - + MIN( DISTINCT 52 ) + - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + 15 - + CASE - + 31 WHEN - - COUNT ( 94 ) THEN - + MIN ( DISTINCT 52 ) + - 22 END
----
NULL

query II rowsort
SELECT DISTINCT 46, - 73 AS col1
----
46
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7327
SELECT 10 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT 10 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - 59 AS col2, ( 31 )
----
-59
31

query II rowsort
SELECT 0 * - ( + + 2 ) AS col2, + 61 AS col0
----
0
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT ALL 63, COUNT( * ) AS col2
----
63
1

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL 63, COUNT ( * ) AS col2
----
63
1

query I rowsort
SELECT 99 * 30
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - ( MAX( - - 22 ) ) * - 1 + + 25 + + 51 + 77 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - ( MAX ( - - 22 ) ) * - 1 + + 25 + + 51 + 77 AS col0
----
175

query II rowsort
SELECT + 82, 98 AS col0
----
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT 15 * + - SUM( - 36 ) * 59 AS col1
----
31860

skipif mysql # not compatible
query I rowsort label-7334
SELECT 15 * + - SUM ( - 36 ) * 59 AS col1
----
31860

query I rowsort
SELECT DISTINCT - 21 * - 12 + - ( + 93 ) AS col0
----
159

query I rowsort
SELECT ALL + 38 * - 4 + + 55 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT - NULLIF ( + - 24, + - 60 + - + 62 ) * - 0 + - - 14 * + - COALESCE ( + 50, + + 48 + - 42 * + 41 ) * COUNT( * )
----
-700

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - NULLIF ( + - 24, + - 60 + - + 62 ) * - 0 + - - 14 * + - COALESCE ( + 50, + + 48 + - 42 * + 41 ) * COUNT ( * )
----
-700

query II rowsort
SELECT + 27, - 54 col0
----
27
-54

query I rowsort
SELECT ALL 14 * + 15 - + - 38 + - ( + 59 )
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - + 77 * COUNT( * ) * - 52 + 95 + 37 + + 84 + - + ( - 17 )
----
4237

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - + 77 * COUNT ( * ) * - 52 + 95 + 37 + + 84 + - + ( - 17 )
----
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT 99 - ( + COUNT( + 70 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7341
SELECT 99 - ( + COUNT ( + 70 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT + - SUM( 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7342
SELECT + - SUM ( 40 ) AS col0
----
-40

query I rowsort
SELECT DISTINCT + + 55 * 93 + + - 33
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + 88 * COALESCE ( + 89, - MAX( - 15 ) ) AS col0
----
7832

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 88 * COALESCE ( + 89, - MAX ( - 15 ) ) AS col0
----
7832

query I rowsort
SELECT DISTINCT + - 80 - - - 47 AS col2
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT ALL 45 DIV - 78 * 12 DIV + 9 + - - 79 col1
----
79

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 45 / - 78 * 12 / + 9 + - - 79 col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT + - 92 DIV - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-7347
SELECT + - 92 / - COUNT ( * )
----
92

query I rowsort
SELECT ALL NULLIF ( - - CASE - - 75 WHEN - 18 THEN NULL WHEN - 22 * + 87 + - 23 + 28 THEN + ( - 16 ) END, - 90 )
----
NULL

query I rowsort
SELECT - - 81 * - 94
----
-7614

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - MAX( DISTINCT + 15 ) + - COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-7350
SELECT - MAX ( DISTINCT + 15 ) + - COUNT ( * ) col0
----
-16

query I rowsort
SELECT - ( ( + ( - 99 ) ) ) AS col0
----
99

query I rowsort
SELECT - NULLIF ( 68, + - CASE 36 WHEN + - ( ( + 93 ) ) THEN + 31 * + 79 END ) AS col2
----
-68

query II rowsort
SELECT DISTINCT 13 AS col0, 6
----
13
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT + - COUNT( * ) + 95 - + 29 + - - 99 + + + 89 * + 19 * 4 + - + 78, - 21 col0
----
6850
-21

skipif mysql # not compatible
query II rowsort label-7354
SELECT + - COUNT ( * ) + 95 - + 29 + - - 99 + + + 89 * + 19 * 4 + - + 78, - 21 col0
----
6850
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT + + NULLIF ( + - 53, - - 96 * - 63 + 62 ) DIV - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT + + NULLIF ( + - 53, - - 96 * - 63 + 62 ) / - 99 col1
----
0

query II rowsort
SELECT ALL 80 * - 89 AS col1, 30 + - 78 + + 13 AS col2
----
-7120
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT + 44 + - 17 + - 19 / - 65 * - CAST( NULL AS SIGNED ) * - MAX( - - 40 ) * - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 44 + - 17 + - 19 / - 65 * - CAST ( NULL AS INTEGER ) * - MAX ( - - 40 ) * - + 56 AS col0
----
NULL

query I rowsort
SELECT ALL 50 * - 84 * + 84
----
-352800

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT + 62 DIV - 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7359
SELECT + 62 / - 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT ALL COUNT( * ) AS col1, + 56 * 98
----
1
5488

skipif mysql # not compatible
query II rowsort label-7360
SELECT ALL COUNT ( * ) AS col1, + 56 * 98
----
1
5488

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT 92 AS col0, + MAX( ALL - 68 ) AS col2
----
92
-68

skipif mysql # not compatible
query II rowsort label-7361
SELECT 92 AS col0, + MAX ( ALL - 68 ) AS col2
----
92
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT + 14 + + + CASE - COUNT( * ) WHEN - 9 THEN NULL WHEN 98 THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT + 14 + + + CASE - COUNT ( * ) WHEN - 9 THEN NULL WHEN 98 THEN - 7 END
----
NULL

query II rowsort
SELECT ALL 16 AS col1, + 68 AS col1
----
16
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7364
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + + + 91 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7364
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 91 AS col1
----
-1
NULL

query I rowsort
SELECT - 91 + - - 34 - + 12 * - COALESCE ( + 11, 51 * - 14 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL NULLIF ( + - 74, 55 * + COALESCE ( + 42, - + 43 * - 19 ) + - + CASE 2 WHEN + 50 THEN NULL WHEN + CAST( + 96 AS SIGNED ) THEN + 33 ELSE NULL END + - COUNT( * ) * 91 ) + 33 * CASE - COUNT( * ) WHEN COUNT( * ) THEN 86 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL NULLIF ( + - 74, 55 * + COALESCE ( + 42, - + 43 * - 19 ) + - + CASE 2 WHEN + 50 THEN NULL WHEN + CAST ( + 96 AS INTEGER ) THEN + 33 ELSE NULL END + - COUNT ( * ) * 91 ) + 33 * CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 86 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 20 - - 45 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT + 55 + 33 - 99 + COUNT( * ) * 24 * + COUNT( * ) + - CAST( NULL AS SIGNED ) + - - 56 * - - 99 / + 30 + - + COUNT( * ) + - 4 * SUM( 77 + CASE 75 WHEN - 62 THEN - 65 END * 30 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 55 + 33 - 99 + COUNT ( * ) * 24 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - - 56 * - - 99 / + 30 + - + COUNT ( * ) + - 4 * SUM ( 77 + CASE 75 WHEN - 62 THEN - 65 END * 30 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT + 72 DIV - + 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7369
SELECT + 72 / - + 64 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - 10 / - COUNT( * ) * - + CASE - 2 WHEN + 39 THEN - + COALESCE ( - - COALESCE ( + 75, + 61 + + 30 ), + 53, + 84 / 82 ) ELSE NULL END + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - 10 / - COUNT ( * ) * - + CASE - 2 WHEN + 39 THEN - + COALESCE ( - - COALESCE ( + 75, + 61 + + 30 ), + 53, + 84 / 82 ) ELSE NULL END + 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 2 * - COALESCE ( - 91, + + 30 - + 59 )
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7372
SELECT ALL MIN( - + 46 ) DIV + 76 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL MIN ( - + 46 ) / + 76 + + 96
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL CAST( NULL AS SIGNED ) / - ( + 67 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) / - ( + 67 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT - NULLIF ( - 99, 42 ) - - CASE 4 WHEN - 24 THEN + CAST( - COALESCE ( + + 69, + MIN( + 0 ) - 39 ) AS SIGNED ) ELSE 71 * - 32 + - 82 * 14 END + 55 AS col0
----
-3266

skipif mysql # not compatible
query I rowsort label-7374
SELECT - NULLIF ( - 99, 42 ) - - CASE 4 WHEN - 24 THEN + CAST ( - COALESCE ( + + 69, + MIN ( + 0 ) - 39 ) AS INTEGER ) ELSE 71 * - 32 + - 82 * 14 END + 55 AS col0
----
-3266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7375
SELECT COUNT( * ) * 35 + + COUNT( 14 ) DIV 92 + - 89 AS col0, + 3
----
-54
3

skipif mysql # not compatible
query II rowsort label-7375
SELECT COUNT ( * ) * 35 + + COUNT ( 14 ) / 92 + - 89 AS col0, + 3
----
-54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - - 82 * + COUNT( * ) + 17 + - 39 + - - ( + 39 ) * + - 43 * + - COALESCE ( COUNT( * ), - 84 )
----
1737

skipif mysql # not compatible
query I rowsort label-7376
SELECT - - 82 * + COUNT ( * ) + 17 + - 39 + - - ( + 39 ) * + - 43 * + - COALESCE ( COUNT ( * ), - 84 )
----
1737

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + - 53 * - - 16 * - COUNT( * ) AS col1
----
848

skipif mysql # not compatible
query I rowsort label-7377
SELECT + - 53 * - - 16 * - COUNT ( * ) AS col1
----
848

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT 37 DIV + 29 + + + 18 + + - 78 + + + 81 * 73 + 66 AS col0
----
5920

skipif mysql # not compatible
query I rowsort label-7378
SELECT 37 / + 29 + + + 18 + + - 78 + + + 81 * 73 + 66 AS col0
----
5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL - ( + + 79 ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - ( + + 79 ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 90 AS col0, 48 * - 38 AS col1
----
90
-1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7381
SELECT + + CAST( - + 1 AS SIGNED ) * + 33 * + 80 + - - 30 + 4 AS col0, COUNT( * )
----
-2606
1

skipif mysql # not compatible
query II rowsort label-7381
SELECT + + CAST ( - + 1 AS INTEGER ) * + 33 * + 80 + - - 30 + 4 AS col0, COUNT ( * )
----
-2606
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT - + COUNT( * ) + + - 43 DIV - 68 * + 84 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7382
SELECT - + COUNT ( * ) + + - 43 / - 68 * + 84 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - MAX( DISTINCT 64 ) * - 99 col0
----
6336

skipif mysql # not compatible
query I rowsort label-7383
SELECT - MAX ( DISTINCT 64 ) * - 99 col0
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT + 22 * 95 - - COUNT( * )
----
2091

skipif mysql # not compatible
query I rowsort label-7384
SELECT + 22 * 95 - - COUNT ( * )
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - 23 * + - MIN( ALL NULLIF ( + + ( + 33 ), - 16 ) ) + - - 73 + - - 50 AS col0
----
882

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 23 * + - MIN ( ALL NULLIF ( + + ( + 33 ), - 16 ) ) + - - 73 + - - 50 AS col0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL COUNT( * ) * - - CASE + ( CASE + 11 WHEN 38 * - 51 + + - 52 THEN 36 END ) WHEN - 21 + + 53 + 40 THEN NULL WHEN COUNT( * ) THEN COALESCE ( COUNT( * ), + 35 + 84 ) ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL COUNT ( * ) * - - CASE + ( CASE + 11 WHEN 38 * - 51 + + - 52 THEN 36 END ) WHEN - 21 + + 53 + 40 THEN NULL WHEN COUNT ( * ) THEN COALESCE ( COUNT ( * ), + 35 + 84 ) ELSE NULL END * 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT + 78 * + 79 * CAST( - + COUNT( DISTINCT + 24 ) AS SIGNED )
----
-6162

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + 78 * + 79 * CAST ( - + COUNT ( DISTINCT + 24 ) AS INTEGER )
----
-6162

query I rowsort
SELECT DISTINCT + 69 * - 13
----
-897

query I rowsort
SELECT DISTINCT + 96 + + 44 + - 96 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT COUNT( * ) + + - ( - 10 )
----
11

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT COUNT ( * ) + + - ( - 10 )
----
11

query I rowsort
SELECT + 79 - - + 82 - + 29 - + 62 AS col0
----
70

query I rowsort
SELECT + 96 + - + 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT DISTINCT + 79 + - + COALESCE ( - 53, + - COALESCE ( 29, - COALESCE ( + 76, + SUM( + ( - 19 ) ) ), + 0 - 3 ) + - 44 DIV 98 ) + 48 * + 58
----
2916

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + 79 + - + COALESCE ( - 53, + - COALESCE ( 29, - COALESCE ( + 76, + SUM ( + ( - 19 ) ) ), + 0 - 3 ) + - 44 / 98 ) + 48 * + 58
----
2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7394
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 7 + - CASE + 39 WHEN + - ( 96 ) THEN + 33 ELSE NULL END AS col0, 25 * + COUNT( * ) * - + 80
----
NULL
-2000

skipif mysql # not compatible
query II rowsort label-7394
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 7 + - CASE + 39 WHEN + - ( 96 ) THEN + 33 ELSE NULL END AS col0, 25 * + COUNT ( * ) * - + 80
----
NULL
-2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL COALESCE ( - 65, + - MIN( - 85 ), - 35 / 62 + ( - SUM( + 48 ) ) + + - 81 * - 7 + + 53 + 34 * 0 ) + CASE 41 WHEN - 70 THEN 91 WHEN + 97 + 61 THEN 84 ELSE NULL END * + ( 50 * CAST( 53 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL COALESCE ( - 65, + - MIN ( - 85 ), - 35 / 62 + ( - SUM ( + 48 ) ) + + - 81 * - 7 + + 53 + 34 * 0 ) + CASE 41 WHEN - 70 THEN 91 WHEN + 97 + 61 THEN 84 ELSE NULL END * + ( 50 * CAST ( 53 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * 75 * - 82 * + 45 AS col2
----
-26568000

query I rowsort
SELECT ALL 60 + 0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT ALL 19 + - - NULLIF ( + 50, - 8 + 51 + + 20 DIV 32 - - 92 * 79 ) + 39 * + COUNT( * ) * + 2 * ( + 13 DIV + 22 ) + SUM( 18 )
----
87

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 19 + - - NULLIF ( + 50, - 8 + 51 + + 20 / 32 - - 92 * 79 ) + 39 * + COUNT ( * ) * + 2 * ( + 13 / + 22 ) + SUM ( 18 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7399
SELECT + COALESCE ( - + COALESCE ( - 44, + 22 + - - MAX( - + 7 ) + 82 + - ( - 8 ) DIV SUM( DISTINCT - + 48 ) * - - 51 DIV - 68, 12, + CAST( NULL AS SIGNED ) ), + ( SUM( ALL 83 ) ) ) * 25
----
1100

skipif mysql # not compatible
query I rowsort label-7399
SELECT + COALESCE ( - + COALESCE ( - 44, + 22 + - - MAX ( - + 7 ) + 82 + - ( - 8 ) / SUM ( DISTINCT - + 48 ) * - - 51 / - 68, 12, + CAST ( NULL AS INTEGER ) ), + ( SUM ( ALL 83 ) ) ) * 25
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + COALESCE ( COALESCE ( + 71, 96 - - SUM( + 96 ) + - + COALESCE ( - - 6, + ( + - ( + 86 ) ), + + ( 14 ) ) + 53, + 54 * COUNT( * ) + 32 ), ( ( 74 ) ) + 6, 6 * - 91 ) + - 94 * 23 AS col2
----
-2091

skipif mysql # not compatible
query I rowsort label-7400
SELECT + COALESCE ( COALESCE ( + 71, 96 - - SUM ( + 96 ) + - + COALESCE ( - - 6, + ( + - ( + 86 ) ), + + ( 14 ) ) + 53, + 54 * COUNT ( * ) + 32 ), ( ( 74 ) ) + 6, 6 * - 91 ) + - 94 * 23 AS col2
----
-2091

query I rowsort
SELECT 41 * - - 86
----
3526

query I rowsort
SELECT ALL + 85 - - 26 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT DISTINCT 21 - + ( + CAST( - MIN( - ( ( + 64 ) ) ) AS SIGNED ) ) * 94
----
-5995

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 21 - + ( + CAST ( - MIN ( - ( ( + 64 ) ) ) AS INTEGER ) ) * 94
----
-5995

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT COUNT( * ) * - - CASE - 64 WHEN + - 87 - - 31 THEN NULL WHEN - - 37 THEN - COALESCE ( ( + 8 ), + 52 ) END - ( + 82 ) + + 58 / + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT COUNT ( * ) * - - CASE - 64 WHEN + - 87 - - 31 THEN NULL WHEN - - 37 THEN - COALESCE ( ( + 8 ), + 52 ) END - ( + 82 ) + + 58 / + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - - 55 * + COUNT( * ) + - 64
----
-9

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - - 55 * + COUNT ( * ) + - 64
----
-9

query I rowsort
SELECT ( - + 18 ) * + 55
----
-990

query II rowsort
SELECT 31 - + + 53 AS col0, 12 AS col2
----
-22
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT - 6 DIV - NULLIF ( - ( + 52 ), + - 19 ) * - - COUNT( * ) + + NULLIF ( - 32, + 82 ) * 17 AS col1
----
-544

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 6 / - NULLIF ( - ( + 52 ), + - 19 ) * - - COUNT ( * ) + + NULLIF ( - 32, + 82 ) * 17 AS col1
----
-544

query I rowsort
SELECT DISTINCT + 67 * + 54 AS col1
----
3618

query II rowsort
SELECT DISTINCT - - 38 + 77 AS col0, 21
----
115
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7411
SELECT ALL - - CASE COUNT( * ) WHEN - + NULLIF ( CAST( NULL AS DECIMAL ), NULLIF ( 55, + 80 + - 55 ) ) * 69 THEN NULL ELSE - 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - - CASE COUNT ( * ) WHEN - + NULLIF ( CAST ( NULL AS REAL ), NULLIF ( 55, + 80 + - 55 ) ) * 69 THEN NULL ELSE - 70 END
----
-70

query I rowsort
SELECT ALL - 91 + 43 AS col1
----
-48

query I rowsort
SELECT 10 - - 31 + - COALESCE ( + 23, - 48 - - 36 + - 83, - 56 )
----
18

query II rowsort
SELECT ALL - 64 + - + 89 * + 47 AS col1, - 43 + + 6
----
-4247
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT 28 * + COUNT( * ) + 63 * 4 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-7415
SELECT 28 * + COUNT ( * ) + 63 * 4 AS col0
----
280

query I rowsort
SELECT 19 - 96 - 94
----
-171

query II rowsort
SELECT ALL + ( + 12 ) + + 65 * + 96 AS col2, + 97
----
6252
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT 9 + + + 30 DIV 63 + - 50 - 73 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-7418
SELECT 9 + + + 30 / 63 + - 50 - 73 AS col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COALESCE ( + - 88, + 94 ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COALESCE ( + - 88, + 94 ) * - - 63
----
NULL

query I rowsort
SELECT DISTINCT - 47 + + 86 * + 42
----
3565

query I rowsort
SELECT DISTINCT 26 * - 8
----
-208

query I rowsort
SELECT 28 + - 40
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL - 29 + - ( + 48 ) + + ( + CASE - COUNT( * ) WHEN + 90 THEN 29 END ) - + 21 + + COUNT( * ) * 92 * + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - 29 + - ( + 48 ) + + ( + CASE - COUNT ( * ) WHEN + 90 THEN 29 END ) - + 21 + + COUNT ( * ) * 92 * + 79 AS col2
----
NULL

query I rowsort
SELECT ALL 19 + + + 96 + 65 + + 6 + + 54 * + COALESCE ( + 13, - 57 ) AS col1
----
888

onlyif mysql # aggregate syntax: 
query II rowsort label-7425
SELECT 49 AS col2, + 95 * - + SUM( + + 48 ) * + 24
----
49
-109440

skipif mysql # not compatible
query II rowsort label-7425
SELECT 49 AS col2, + 95 * - + SUM ( + + 48 ) * + 24
----
49
-109440

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT 18 DIV + 1
----
18

skipif mysql # not compatible
query I rowsort label-7426
SELECT 18 / + 1
----
18

query I rowsort
SELECT 54 + + 57 + + 13 + + + 66 * + + 65 AS col0
----
4414

onlyif mysql # aggregate syntax: 
query III rowsort label-7428
SELECT 24 * COUNT( * ) * - 45 AS col2, 72 AS col0, 53 + - + 89 col2
----
-1080
72
-36

skipif mysql # not compatible
query III rowsort label-7428
SELECT 24 * COUNT ( * ) * - 45 AS col2, 72 AS col0, 53 + - + 89 col2
----
-1080
72
-36

query II rowsort
SELECT ALL 38 AS col1, 40 col1
----
38
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT 66 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-7430
SELECT 66 / 28
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT + 79 * - 63 * + 55, + COUNT( * ) + + 28 AS col0
----
-273735
29

skipif mysql # not compatible
query II rowsort label-7431
SELECT + 79 * - 63 * + 55, + COUNT ( * ) + + 28 AS col0
----
-273735
29

query I rowsort
SELECT ALL + 25 * - 47 * + - 39 * 81
----
3711825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT ALL - COUNT( * ) DIV - - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - COUNT ( * ) / - - 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT ALL 29 col1, + 34 + NULLIF ( 40, 18 * + AVG ( 75 ) * - 59 + - COUNT( * ) ) * 73 AS col2
----
29
2954

skipif mysql # not compatible
query II rowsort label-7434
SELECT ALL 29 col1, + 34 + NULLIF ( 40, 18 * + AVG ( 75 ) * - 59 + - COUNT ( * ) ) * 73 AS col2
----
29
2954

query I rowsort
SELECT - + NULLIF ( - 12, + 19 ) AS col0
----
12

query I rowsort
SELECT ALL 71 * + 73
----
5183

query I rowsort
SELECT + 45 * - 98 * 38 AS col2
----
-167580

query I rowsort
SELECT ALL 15 * - 37 col1
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT COALESCE ( + - 76, + COALESCE ( - - 91, - 33, MIN( ALL - NULLIF ( - 17, 7 * + ( 50 ) ) ) * + 49 - + CASE + 51 WHEN - 25 THEN - 63 + 78 ELSE 29 END ) ) * COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7439
SELECT COALESCE ( + - 76, + COALESCE ( - - 91, - 33, MIN ( ALL - NULLIF ( - 17, 7 * + ( 50 ) ) ) * + 49 - + CASE + 51 WHEN - 25 THEN - 63 + 78 ELSE 29 END ) ) * COUNT ( * ) AS col1
----
-76

query II rowsort
SELECT 66 + 36 * + - 38, + 43 AS col1
----
-1302
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL 37 * - + NULLIF ( - CASE 58 WHEN 11 * - - 18 * + + 55 - + + 87 * + 12 * - + 42 THEN 27 END, MAX( ALL - ( 93 ) ) * 7 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL 37 * - + NULLIF ( - CASE 58 WHEN 11 * - - 18 * + + 55 - + + 87 * + 12 * - + 42 THEN 27 END, MAX ( ALL - ( 93 ) ) * 7 ) col2
----
NULL

query I rowsort
SELECT 46 + + 29 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT 69 * - COUNT( * ) - + + 10 + - - 88 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7443
SELECT 69 * - COUNT ( * ) - + + 10 + - - 88 AS col1
----
9

query I rowsort
SELECT ALL - 58 + - - 46
----
-12

query I rowsort
SELECT ALL 58 + + + 72 + - + NULLIF ( - ( + + 60 ), + 68 / + - 3 + 48 ) AS col2
----
190

query I rowsort
SELECT 19 + - 29 AS col1
----
-10

query I rowsort
SELECT ALL 21 + - + 60 + - - 45
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + COUNT( ALL + + 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT + COUNT ( ALL + + 54 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT 29 + - 44 DIV - SUM( + 80 )
----
29

skipif mysql # not compatible
query I rowsort label-7449
SELECT 29 + - 44 / - SUM ( + 80 )
----
29

query I rowsort
SELECT ALL 97 + - 3 + 12 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT COALESCE ( - COUNT( * ), + COUNT( * ) * 65 ) * - 60 + - COUNT( DISTINCT 34 ) + + 36 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7451
SELECT COALESCE ( - COUNT ( * ), + COUNT ( * ) * 65 ) * - 60 + - COUNT ( DISTINCT 34 ) + + 36 AS col2
----
95

query I rowsort
SELECT 45 * - 30
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7453
SELECT ALL - COUNT( DISTINCT - 62 ) AS col2, COALESCE ( + + ( 22 ), + 89 * - + CAST( - - 95 AS SIGNED ) ) * - ( + MIN( + + 30 ) ) + + + 2 + + 48 * - 83
----
-1
-4642

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL - COUNT ( DISTINCT - 62 ) AS col2, COALESCE ( + + ( 22 ), + 89 * - + CAST ( - - 95 AS INTEGER ) ) * - ( + MIN ( + + 30 ) ) + + + 2 + + 48 * - 83
----
-1
-4642

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT COUNT( * ) + + 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT COUNT ( * ) + + 7 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT COUNT ( * ) * 65
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7456
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 17 AS col1, + 47 * - 76 / - 95 * - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 17 AS col1, + 47 * - 76 / - 95 * - + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 44 * 13
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7458
SELECT 50 + + CASE ( 72 ) WHEN + CAST( NULL AS SIGNED ) + - - 61 THEN 45 ELSE NULL END, CAST( NULL AS SIGNED ) + + 4 * - ( + 57 ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7458
SELECT 50 + + CASE ( 72 ) WHEN + CAST ( NULL AS INTEGER ) + - - 61 THEN 45 ELSE NULL END, CAST ( NULL AS INTEGER ) + + 4 * - ( + 57 ) col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7459
SELECT DISTINCT - COUNT( * ) - - 35 + + 25 DIV + CAST( - 86 AS SIGNED ) * + - 23 * - - 46 + + 66
----
100

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - COUNT ( * ) - - 35 + + 25 / + CAST ( - 86 AS INTEGER ) * + - 23 * - - 46 + + 66
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT ALL COUNT( 25 ), 34 col0
----
1
34

skipif mysql # not compatible
query II rowsort label-7460
SELECT ALL COUNT ( 25 ), 34 col0
----
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL - CAST( - + 45 AS SIGNED ) - + 87 * - 41
----
3612

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - CAST ( - + 45 AS INTEGER ) - + 87 * - 41
----
3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT - COUNT( ALL - 67 ) - + CAST( NULL AS SIGNED ) + + AVG ( 90 ) + + - 16 + - 58 * 35 + + COALESCE ( 62, - + 21 ) + - CASE + ( 27 ) WHEN + 2 THEN + 21 * + AVG ( + 87 ) WHEN + 68 / + 70 THEN + 24 ELSE 12 * - 88 END * MIN( - 53 / 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT - COUNT ( ALL - 67 ) - + CAST ( NULL AS INTEGER ) + + AVG ( 90 ) + + - 16 + - 58 * 35 + + COALESCE ( 62, - + 21 ) + - CASE + ( 27 ) WHEN + 2 THEN + 21 * + AVG ( + 87 ) WHEN + 68 / + 70 THEN + 24 ELSE 12 * - 88 END * MIN ( - 53 / 96 )
----
NULL

query I rowsort
SELECT DISTINCT - 71 * + 77 AS col2
----
-5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT DISTINCT + + COALESCE ( 26, + MIN( 83 ), + 32 * + + ( + + 33 ) + - - 31 ) * 97 - + ( 44 ) + 87 * COUNT( ALL 50 ) DIV 47 AS col0
----
2479

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + + COALESCE ( 26, + MIN ( 83 ), + 32 * + + ( + + 33 ) + - - 31 ) * 97 - + ( 44 ) + 87 * COUNT ( ALL 50 ) / 47 AS col0
----
2479

query I rowsort
SELECT DISTINCT + - 21 * + - 91 * 52 * - - ( + 67 )
----
6657924

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT - 43 DIV + 32
----
-1

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 43 / + 32
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7467
SELECT - - 8 + + 28 AS col2, 50 DIV + + 3 AS col1
----
36
16

skipif mysql # not compatible
query II rowsort label-7467
SELECT - - 8 + + 28 AS col2, 50 / + + 3 AS col1
----
36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL SUM( + + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL SUM ( + + 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + MAX( - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + MAX ( - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - MAX( ALL + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7470
SELECT - MAX ( ALL + 44 ) AS col0
----
-44

query I rowsort
SELECT - COALESCE ( - 95, ( 72 ) * - 41 ) AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT + - 59 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - 59 / - 63
----
0

query I rowsort
SELECT ALL 89 * 19
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL - 3 * + COUNT( * ) + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - 3 * + COUNT ( * ) + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT 54 * - + ( + 81 ) + COUNT( * )
----
-4373

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT 54 * - + ( + 81 ) + COUNT ( * )
----
-4373

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT ALL - - 72 * + + 84 + - 79 + + + 63 DIV + 27
----
5971

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - - 72 * + + 84 + - 79 + + + 63 / + 27
----
5971

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT CASE + 97 WHEN - 75 THEN + - 50 / ( + + 16 ) * COUNT( * ) / + MAX( ALL 26 ) * + NULLIF ( + COUNT( - 8 ), + NULLIF ( 18, + COALESCE ( 31, + 67 - AVG ( 57 + 13 * + ( + 34 ) ), 58 + - 39 * 50 ) ) ) + + 23 ELSE 90 + 19 END AS col2
----
109

skipif mysql # not compatible
query I rowsort label-7477
SELECT CASE + 97 WHEN - 75 THEN + - 50 / ( + + 16 ) * COUNT ( * ) / + MAX ( ALL 26 ) * + NULLIF ( + COUNT ( - 8 ), + NULLIF ( 18, + COALESCE ( 31, + 67 - AVG ( 57 + 13 * + ( + 34 ) ), 58 + - 39 * 50 ) ) ) + + 23 ELSE 90 + 19 END AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT 29 * - + 8 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT 29 * - + 8 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT CASE + 70 WHEN - 94 * + 2 + - - MAX( 70 ) THEN - 96 WHEN - 47 THEN NULL ELSE + 30 END AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7479
SELECT CASE + 70 WHEN - 94 * + 2 + - - MAX ( 70 ) THEN - 96 WHEN - 47 THEN NULL ELSE + 30 END AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7480
SELECT - COUNT( * ) * + - 78 + + 83 AS col1, - ( - 46 ) + NULLIF ( + 43, - 62 * CAST( NULL AS SIGNED ) * 82 + - 34 * + 33 + + ( + 47 ) ) AS col1
----
161
89

skipif mysql # not compatible
query II rowsort label-7480
SELECT - COUNT ( * ) * + - 78 + + 83 AS col1, - ( - 46 ) + NULLIF ( + 43, - 62 * CAST ( NULL AS INTEGER ) * 82 + - 34 * + 33 + + ( + 47 ) ) AS col1
----
161
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL - 45 * - + 14 - COUNT( * ) * + NULLIF ( - - NULLIF ( 60, 76 + 21 ), - + COUNT( * ) + + 13 )
----
570

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 45 * - + 14 - COUNT ( * ) * + NULLIF ( - - NULLIF ( 60, 76 + 21 ), - + COUNT ( * ) + + 13 )
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT DISTINCT + NULLIF ( - CAST( + 60 AS SIGNED ), - 56 ) * - COUNT( * ) - + 14
----
46

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + NULLIF ( - CAST ( + 60 AS INTEGER ), - 56 ) * - COUNT ( * ) - + 14
----
46

query I rowsort
SELECT + 37 * + 73 AS col1
----
2701

query I rowsort
SELECT + 96 + + 34 + - 91 AS col1
----
39

query I rowsort
SELECT - NULLIF ( - 7, - 82 ) AS col2
----
7

query II rowsort
SELECT - 24 AS col2, - 14
----
-24
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7487
SELECT + 90 / 27 * + + CASE - - 27 WHEN 61 * + 54 + 29 + ( + CAST( NULL AS DECIMAL ) ) THEN 22 + - 49 * 77 ELSE NULL END * ( + - 29 ) + - 75 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + 90 / 27 * + + CASE - - 27 WHEN 61 * + 54 + 29 + ( + CAST ( NULL AS REAL ) ) THEN 22 + - 49 * 77 ELSE NULL END * ( + - 29 ) + - 75 * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - CASE - + 52 WHEN + ( 82 ) + - - COUNT( * ) THEN + COUNT( * ) ELSE NULL END * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT - CASE - + 52 WHEN + ( 82 ) + - - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END * - 24 AS col0
----
NULL

query I rowsort
SELECT ALL 1 * - 16 AS col0
----
-16

query I rowsort
SELECT + 66 + + 27 * + NULLIF ( - ( 48 ), + - 33 ) AS col2
----
-1230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL CAST( NULL AS SIGNED ) * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL CAST ( NULL AS INTEGER ) * - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL COALESCE ( - + 39, - 36 * - + COUNT( * ) * + MIN( 44 ), - ( - - 30 ) + COUNT( * ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL COALESCE ( - + 39, - 36 * - + COUNT ( * ) * + MIN ( 44 ), - ( - - 30 ) + COUNT ( * ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT + + COUNT( * ) DIV + MAX( 84 )
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT + + COUNT ( * ) / + MAX ( 84 )
----
0

query I rowsort
SELECT - + 37 * - 93
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT + - 68 * - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7495
SELECT + - 68 * - + COUNT ( * )
----
68

query I rowsort
SELECT - - 62 * + 73 AS col1
----
4526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT - 3 + 98 - 54 - 78 * ( + - CAST( NULL AS SIGNED ) ) + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT - 3 + 98 - 54 - 78 * ( + - CAST ( NULL AS INTEGER ) ) + + 38 AS col0
----
NULL

query I rowsort
SELECT - 16 + + 24 col2
----
8

query I rowsort
SELECT DISTINCT + - NULLIF ( 47, + 15 ) + - + 53 * + 88 + - 22 AS col2
----
-4733

query I rowsort
SELECT DISTINCT + 80 * + 23 - - 8 AS col1
----
1848

query II rowsort
SELECT ALL - 22 + + + 49 * + NULLIF ( 5, - 37 ) AS col2, + 50 + + 69
----
223
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - + ( 81 ) + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7502
SELECT - + ( 81 ) + - COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT - 80 + + - 68
----
-148

query II rowsort
SELECT - 56 + + 63, + 55 AS col2
----
7
55

query I rowsort
SELECT - 74 * 55
----
-4070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL + CASE - - 12 WHEN - + 97 THEN 49 WHEN + + 89 THEN NULL WHEN + AVG ( - CASE 20 WHEN CAST( 55 AS SIGNED ) THEN - + 64 / - 97 END ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + CASE - - 12 WHEN - + 97 THEN 49 WHEN + + 89 THEN NULL WHEN + AVG ( - CASE 20 WHEN CAST ( 55 AS INTEGER ) THEN - + 64 / - 97 END ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7507
SELECT + CASE 96 WHEN 27 * + 1 + - 24 * + + 39 + 19 * - + 43 - + 9 * - 2 THEN - 33 WHEN CAST( - - 33 AS SIGNED ) THEN NULL WHEN - 40 THEN NULL END, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7507
SELECT + CASE 96 WHEN 27 * + 1 + - 24 * + + 39 + 19 * - + 43 - + 9 * - 2 THEN - 33 WHEN CAST ( - - 33 AS INTEGER ) THEN NULL WHEN - 40 THEN NULL END, 60 AS col1
----
NULL
60

query I rowsort
SELECT + 8 * - ( + - 59 ) AS col1
----
472

query I rowsort
SELECT ALL - 70 * - ( 43 ) col1
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT + CASE AVG ( - ( - + 64 ) ) WHEN + - COALESCE ( - ( + + 30 ), + + 22 * - + COUNT( * ) - 98 - - 45 ) * + 86 THEN NULL WHEN + 55 THEN NULL ELSE + 85 * - CASE - + MIN( ALL + ( + 68 ) ) WHEN - 26 + - 86 THEN - 75 * + MAX( ALL + 90 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT + CASE AVG ( - ( - + 64 ) ) WHEN + - COALESCE ( - ( + + 30 ), + + 22 * - + COUNT ( * ) - 98 - - 45 ) * + 86 THEN NULL WHEN + 55 THEN NULL ELSE + 85 * - CASE - + MIN ( ALL + ( + 68 ) ) WHEN - 26 + - 86 THEN - 75 * + MAX ( ALL + 90 ) END END AS col1
----
NULL

query I rowsort
SELECT ALL - 61 * + - 80 * 39 * - 17 col1
----
-3235440

query I rowsort
SELECT - 38 * ( + 42 ) AS col1
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + COUNT( * ) + 49 - - 21 col0
----
71

skipif mysql # not compatible
query I rowsort label-7513
SELECT + COUNT ( * ) + 49 - - 21 col0
----
71

query I rowsort
SELECT - 14 * - + 32
----
448

query I rowsort
SELECT DISTINCT ( + - 63 ) * + - 74 col2
----
4662

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT 79, 77 - NULLIF ( - - NULLIF ( MAX( - 58 ), 20 ), + + 36 ) AS col0
----
79
135

skipif mysql # not compatible
query II rowsort label-7516
SELECT 79, 77 - NULLIF ( - - NULLIF ( MAX ( - 58 ), 20 ), + + 36 ) AS col0
----
79
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT + 96 * + 27 + + CAST( 46 AS SIGNED ) * - COUNT( + + 61 ) * - COALESCE ( + 68, 55 - + 13, + - 98 ) * - 98 col2
----
-303952

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 96 * + 27 + + CAST ( 46 AS INTEGER ) * - COUNT ( + + 61 ) * - COALESCE ( + 68, 55 - + 13, + - 98 ) * - 98 col2
----
-303952

query II rowsort
SELECT ALL 32, 48 AS col0
----
32
48

query II rowsort
SELECT 65, 69 col0
----
65
69

query II rowsort
SELECT ALL 34 AS col2, 65 * + 76 AS col2
----
34
4940

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT - 87 AS col2, - COUNT( * )
----
-87
-1

skipif mysql # not compatible
query II rowsort label-7521
SELECT - 87 AS col2, - COUNT ( * )
----
-87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL COUNT( * ) * ( + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL COUNT ( * ) * ( + 10 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7523
SELECT DISTINCT 91, CAST( - 60 AS SIGNED ) * 39 * - MIN( - + 98 ) * - + 45 - + - 18 + MIN( DISTINCT + + 75 ) + 31 + + + 81 * + 13 * - + 35 + + COUNT( + 57 ) * NULLIF ( + 86, - COUNT( * ) * ( - 94 ) ) AS col0
----
91
10282755

skipif mysql # not compatible
query II rowsort label-7523
SELECT DISTINCT 91, CAST ( - 60 AS INTEGER ) * 39 * - MIN ( - + 98 ) * - + 45 - + - 18 + MIN ( DISTINCT + + 75 ) + 31 + + + 81 * + 13 * - + 35 + + COUNT ( + 57 ) * NULLIF ( + 86, - COUNT ( * ) * ( - 94 ) ) AS col0
----
91
10282755

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT COUNT( * ) * - 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7524
SELECT COUNT ( * ) * - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL + COUNT( * ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + COUNT ( * ) * 94
----
94

query II rowsort
SELECT - 93 col0, 24 AS col1
----
-93
24

query I rowsort
SELECT - 34 + + - 3
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL 17 + ( COUNT( * ) ) + + MAX( - - 85 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL 17 + ( COUNT ( * ) ) + + MAX ( - - 85 ) AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT COUNT( + 9 ) + + + COUNT( * ) DIV + + 87 + + - 6 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7529
SELECT COUNT ( + 9 ) + + + COUNT ( * ) / + + 87 + + - 6 AS col1
----
-5

query I rowsort
SELECT - ( + 97 ) - 5
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-7531
SELECT DISTINCT 21, 51 DIV - + 54 AS col2
----
21
0

skipif mysql # not compatible
query II rowsort label-7531
SELECT DISTINCT 21, 51 / - + 54 AS col2
----
21
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT ALL + CAST( 53 AS SIGNED ) + + 95 + + - 83
----
65

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + CAST ( 53 AS INTEGER ) + + 95 + + - 83
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT DISTINCT 88 + + MIN( ALL + 56 ) + - 18 * - + 16 * - - 8 + + - 46 AS col1
----
2402

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT 88 + + MIN ( ALL + 56 ) + - 18 * - + 16 * - - 8 + + - 46 AS col1
----
2402

query II rowsort
SELECT - 27 AS col1, 79 * 39 AS col1
----
-27
3081

query I rowsort
SELECT 21 + + 32 AS col0
----
53

query I rowsort
SELECT DISTINCT COALESCE ( - - 56, - 97 ) + 74
----
130

query II rowsort
SELECT - 0, 83 col2
----
0
83

query I rowsort
SELECT ALL - + 37 + 83
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7539
SELECT 25, CAST( NULL AS SIGNED ) * + - COUNT( * ) col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7539
SELECT 25, CAST ( NULL AS INTEGER ) * + - COUNT ( * ) col0
----
25
NULL

query I rowsort
SELECT DISTINCT + - 24 * - ( 47 )
----
1128

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT DISTINCT - 21 AS col0, 1 + - COUNT( * ) * - COUNT( * ) * + 12 * - + 52
----
-21
-623

skipif mysql # not compatible
query II rowsort label-7541
SELECT DISTINCT - 21 AS col0, 1 + - COUNT ( * ) * - COUNT ( * ) * + 12 * - + 52
----
-21
-623

query I rowsort
SELECT ALL ( - 5 ) * - 2 col0
----
10

onlyif mysql # aggregate syntax: 
query III rowsort label-7543
SELECT DISTINCT - ( 92 ) - + - 97 + + 35 - ( + 68 ) + - + COUNT( * ) AS col0, + ( - 18 ) * - 8, - 7 AS col0
----
-29
144
-7

skipif mysql # not compatible
query III rowsort label-7543
SELECT DISTINCT - ( 92 ) - + - 97 + + 35 - ( + 68 ) + - + COUNT ( * ) AS col0, + ( - 18 ) * - 8, - 7 AS col0
----
-29
144
-7

query I rowsort
SELECT ALL - NULLIF ( + + 31, + + 92 * + + 46 + AVG ( DISTINCT 99 ) / + 31 + - + 26 * + - 88 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL - MAX( + 89 ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - MAX ( + 89 ) col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL - CAST( + - ( + + AVG ( - 36 ) ) AS SIGNED ) * + SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - CAST ( + - ( + + AVG ( - 36 ) ) AS INTEGER ) * + SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 25 / 34 * + CASE WHEN NOT 83 NOT BETWEEN - + 31 AND + - 76 THEN - - 67 * 52 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - CASE + 50 WHEN COALESCE ( 28, - + 79 * + + 83 / COUNT( * ) * + 51 + + 41 ) THEN - COALESCE ( 76, 79 * - - 74 + + 44, - 71 / NULLIF ( + 67, - 22 - CASE + 4 WHEN 17 THEN + 94 + + 75 WHEN COUNT( * ) * COALESCE ( - 46, 21 * + 28 + 16 ) THEN NULL ELSE NULL END ) * - 58, - 78 * 86 - - 98 ) + + 82 WHEN 55 THEN 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - CASE + 50 WHEN COALESCE ( 28, - + 79 * + + 83 / COUNT ( * ) * + 51 + + 41 ) THEN - COALESCE ( 76, 79 * - - 74 + + 44, - 71 / NULLIF ( + 67, - 22 - CASE + 4 WHEN 17 THEN + 94 + + 75 WHEN COUNT ( * ) * COALESCE ( - 46, 21 * + 28 + 16 ) THEN NULL ELSE NULL END ) * - 58, - 78 * 86 - - 98 ) + + 82 WHEN 55 THEN 16 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 73 * + + 7
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT COUNT( * ) * - 93 - - 60, - 26 AS col1
----
-33
-26

skipif mysql # not compatible
query II rowsort label-7550
SELECT COUNT ( * ) * - 93 - - 60, - 26 AS col1
----
-33
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7551
SELECT ALL - 30 DIV - - COUNT( * ), NULLIF ( + - CAST( ( - 99 ) AS SIGNED ), - COUNT( * ) * - 75 ) + - 59 + + ( - 53 ) * + 69 AS col1
----
-30
-3617

skipif mysql # not compatible
query II rowsort label-7551
SELECT ALL - 30 / - - COUNT ( * ), NULLIF ( + - CAST ( ( - 99 ) AS INTEGER ), - COUNT ( * ) * - 75 ) + - 59 + + ( - 53 ) * + 69 AS col1
----
-30
-3617

query I rowsort
SELECT 60 * - + 48 AS col2
----
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL - 40 + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - 40 + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7554
SELECT DISTINCT - ( - CAST( 5 AS SIGNED ) ), 97 - + 66 * + 15 AS col1
----
5
-893

skipif mysql # not compatible
query II rowsort label-7554
SELECT DISTINCT - ( - CAST ( 5 AS INTEGER ) ), 97 - + 66 * + 15 AS col1
----
5
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT CAST( NULL AS SIGNED ) * - - 55 - - ( - 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT CAST ( NULL AS INTEGER ) * - - 55 - - ( - 13 ) AS col0
----
NULL

query II rowsort
SELECT + 71 * + 81 AS col1, + 76
----
5751
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - MIN( DISTINCT - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - MIN ( DISTINCT - 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL + NULLIF ( 40, COALESCE ( COUNT( * ), + 35 * - COALESCE ( - ( - 4 ), + - ( - 80 ), - COALESCE ( 22, - 12 ) + + 68 / - 35 ) + CASE - 58 WHEN 37 + 80 THEN NULL WHEN + 29 THEN - 47 ELSE NULL END + - 77 + 80 ) )
----
40

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + NULLIF ( 40, COALESCE ( COUNT ( * ), + 35 * - COALESCE ( - ( - 4 ), + - ( - 80 ), - COALESCE ( 22, - 12 ) + + 68 / - 35 ) + CASE - 58 WHEN 37 + 80 THEN NULL WHEN + 29 THEN - 47 ELSE NULL END + - 77 + 80 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT - - ( - + ( - MAX( ALL - 49 ) ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7559
SELECT - - ( - + ( - MAX ( ALL - 49 ) ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + - MIN( DISTINCT - ( - 6 ) ) + 49 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + - MIN ( DISTINCT - ( - 6 ) ) + 49 AS col1
----
43

query I rowsort
SELECT ALL + + 22 + + + 77
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT + 56 * + CAST( - 48 AS SIGNED ) * 93
----
-249984

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 56 * + CAST ( - 48 AS INTEGER ) * 93
----
-249984

query I rowsort
SELECT 5 + - 83 - - 20
----
-58

query I rowsort
SELECT - COALESCE ( - + ( + 45 ), - - 83 + 58 ) + + + 4 AS col0
----
49

query I rowsort
SELECT DISTINCT - 97 * + - 37 AS col0
----
3589

query I rowsort
SELECT + 87 + - + 75
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( * ) * + - COALESCE ( + - 92, 94 + - - MIN( - 75 ) + + + 93 * - ( - MIN( 27 ) ) + ( COUNT( * ) ), - ( MAX( DISTINCT - 92 ) ) * + 71 * + 29 * + SUM( DISTINCT 10 ) )
----
92

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( * ) * + - COALESCE ( + - 92, 94 + - - MIN ( - 75 ) + + + 93 * - ( - MIN ( 27 ) ) + ( COUNT ( * ) ), - ( MAX ( DISTINCT - 92 ) ) * + 71 * + 29 * + SUM ( DISTINCT 10 ) )
----
92

query I rowsort
SELECT ( 33 ) + - 80 + 36
----
-11

query III rowsort
SELECT DISTINCT 40 * 81 + + 73 AS col0, 72 + + 40 col0, + + 27 AS col2
----
3313
112
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - COALESCE ( 20, - + CAST( - + MIN( ALL - 89 ) AS SIGNED ) + - 85 + + - ( - COUNT( ALL 78 ) ), 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - COALESCE ( 20, - + CAST ( - + MIN ( ALL - 89 ) AS INTEGER ) + - 85 + + - ( - COUNT ( ALL 78 ) ), 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT CAST( NULL AS SIGNED ) * 98 * + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT CAST ( NULL AS INTEGER ) * 98 * + - 4 AS col0
----
NULL

query I rowsort
SELECT ALL 97 * 63 AS col1
----
6111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT COUNT( * ) * - 23 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT COUNT ( * ) * - 23 / 50
----
0

query I rowsort
SELECT 54 + 78 AS col0
----
132

query I rowsort
SELECT + 73 * - 14
----
-1022

query I rowsort
SELECT NULLIF ( + 33, 9 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + 67 + COUNT( * ) * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7577
SELECT + 67 + COUNT ( * ) * + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT ALL + 89, + ( + CASE - - CASE - 53 WHEN + ( ( + 30 ) ) - 21 THEN - 4 WHEN + - 63 / + 66 THEN NULL END WHEN + 19 * + + 57 * + - 28 * 67 + - - 19 + - COUNT( * ) THEN NULL WHEN + 50 + + SUM( - 44 ) THEN - COUNT( * ) * 56 END ) * - COUNT( * ) AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL + 89, + ( + CASE - - CASE - 53 WHEN + ( ( + 30 ) ) - 21 THEN - 4 WHEN + - 63 / + 66 THEN NULL END WHEN + 19 * + + 57 * + - 28 * 67 + - - 19 + - COUNT ( * ) THEN NULL WHEN + 50 + + SUM ( - 44 ) THEN - COUNT ( * ) * 56 END ) * - COUNT ( * ) AS col0
----
89
NULL

query I rowsort
SELECT DISTINCT 84 * + + 79 AS col1
----
6636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT + 7 * 66 col2
----
462

query I rowsort
SELECT ALL - 35 * 1 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT MAX( ALL + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7583
SELECT MAX ( ALL + 92 )
----
92

query I rowsort
SELECT DISTINCT 87 * 35 + + 82 * + 7
----
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - 77 * + NULLIF ( - + SUM( + 76 ), - MAX( - ( 58 ) ) ) * - 7
----
-40964

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 77 * + NULLIF ( - + SUM ( + 76 ), - MAX ( - ( 58 ) ) ) * - 7
----
-40964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7586
SELECT DISTINCT - CAST( 90 AS SIGNED ) + + 50 - + COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - CAST ( 90 AS INTEGER ) + + 50 - + COUNT ( * ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT - 36 DIV + 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - 36 / + 31 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT - + COUNT( * ) DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT - + COUNT ( * ) / - - 57
----
0

query II rowsort
SELECT DISTINCT 95 AS col2, - 71 + + 29
----
95
-42

query I rowsort
SELECT DISTINCT + 3 + - 19 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT + MAX( - 17 ) + - 94 + - + CASE - 21 WHEN COUNT( * ) * + 53 THEN - + 13 * - 68 * + COUNT( * ) + 21 * 49 WHEN + - 89 THEN - + 34 * 45 * - + 90 + + + MAX( DISTINCT 52 ) WHEN 40 * - 19 THEN NULL WHEN 86 + + 35 THEN 51 + - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT + MAX ( - 17 ) + - 94 + - + CASE - 21 WHEN COUNT ( * ) * + 53 THEN - + 13 * - 68 * + COUNT ( * ) + 21 * 49 WHEN + - 89 THEN - + 34 * 45 * - + 90 + + + MAX ( DISTINCT 52 ) WHEN 40 * - 19 THEN NULL WHEN 86 + + 35 THEN 51 + - 59 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT - 40 - CAST( - 73 AS SIGNED ) * + + 13 - - + ( - + 56 ) + + 32 * + ( - ( + 19 ) )
----
245

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 40 - CAST ( - 73 AS INTEGER ) * + + 13 - - + ( - + 56 ) + + 32 * + ( - ( + 19 ) )
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + 59 * + + 19 * + 37 + - 32 + + 80 + - COUNT( * )
----
41524

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + 59 * + + 19 * + 37 + - 32 + + 80 + - COUNT ( * )
----
41524

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT - - SUM( + 13 ) * 23 col1
----
299

skipif mysql # not compatible
query I rowsort label-7594
SELECT - - SUM ( + 13 ) * 23 col1
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + COUNT ( * ) * 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7596
SELECT + + 73 + + 7 + 46 * 45 * COALESCE ( - 8, 35, + MAX( + - CAST( NULL AS SIGNED ) ) - - - 53 + - 2, - 44 ) - - - 76 AS col2, COUNT( * ) DIV + 58 AS col1
----
-16556
0

skipif mysql # not compatible
query II rowsort label-7596
SELECT + + 73 + + 7 + 46 * 45 * COALESCE ( - 8, 35, + MAX ( + - CAST ( NULL AS INTEGER ) ) - - - 53 + - 2, - 44 ) - - - 76 AS col2, COUNT ( * ) / + 58 AS col1
----
-16556
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT ALL - + 57 * - 56 + + + 95 AS col2, + CASE 7 WHEN 54 THEN NULL WHEN - 83 / 29 + - + 15 + + 55 * + 58 * 34 / 20 + COUNT( * ) + + 10 * + - 51 * - 75 THEN + 2 WHEN 77 THEN NULL END AS col0
----
3287
NULL

skipif mysql # not compatible
query II rowsort label-7597
SELECT ALL - + 57 * - 56 + + + 95 AS col2, + CASE 7 WHEN 54 THEN NULL WHEN - 83 / 29 + - + 15 + + 55 * + 58 * 34 / 20 + COUNT ( * ) + + 10 * + - 51 * - 75 THEN + 2 WHEN 77 THEN NULL END AS col0
----
3287
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT ALL + CAST( + + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + CAST ( + + 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT ALL - COALESCE ( + 9, COUNT( - CASE CASE + - 74 WHEN - 11 + - 56 THEN - 29 + + 29 DIV - 45 * + 15 ELSE NULL END WHEN - - 96 THEN + 68 - + - 78 END ) + 42, - 6 DIV 88 + - 89 ) * - 40
----
360

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - COALESCE ( + 9, COUNT ( - CASE CASE + - 74 WHEN - 11 + - 56 THEN - 29 + + 29 / - 45 * + 15 ELSE NULL END WHEN - - 96 THEN + 68 - + - 78 END ) + 42, - 6 / 88 + - 89 ) * - 40
----
360

query I rowsort
SELECT ALL + ( 8 ) - + + 93 * + - 36
----
3356

query II rowsort
SELECT ALL 86 AS col0, 4
----
86
4

query II rowsort
SELECT + 26 * + - 35 * 13, 27 + 35 + + 54 col2
----
-11830
116

query I rowsort
SELECT + - 47 + 71
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT - CASE + MAX( ALL 10 ) WHEN - - 58 THEN CASE AVG ( 45 ) WHEN + 49 THEN NULL WHEN COUNT( ALL + NULLIF ( 32, + CAST( NULL AS SIGNED ) ) ) + 41 THEN + - COUNT( * ) ELSE - 68 / + 36 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT - CASE + MAX ( ALL 10 ) WHEN - - 58 THEN CASE AVG ( 45 ) WHEN + 49 THEN NULL WHEN COUNT ( ALL + NULLIF ( 32, + CAST ( NULL AS INTEGER ) ) ) + 41 THEN + - COUNT ( * ) ELSE - 68 / + 36 END END AS col0
----
NULL

query I rowsort
SELECT - 73 * 38 col1
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT + SUM( ALL 36 ) * + 40
----
1440

skipif mysql # not compatible
query I rowsort label-7606
SELECT + SUM ( ALL 36 ) * + 40
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL CASE - + 75 WHEN 44 + - - 14 THEN + + 88 * 98 + + 66 + 22 + + 22 + - - 35 * ( - + COUNT( * ) ) END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL CASE - + 75 WHEN 44 + - - 14 THEN + + 88 * 98 + + 66 + 22 + + 22 + - - 35 * ( - + COUNT ( * ) ) END * - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7608
SELECT DISTINCT 3 * + CAST( NULL AS SIGNED ) AS col0, 10 * + 36 col1
----
NULL
360

skipif mysql # not compatible
query II rowsort label-7608
SELECT DISTINCT 3 * + CAST ( NULL AS INTEGER ) AS col0, 10 * + 36 col1
----
NULL
360

query I rowsort
SELECT + ( + - CASE - 39 WHEN - 86 THEN + 73 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT ( - - MAX( + 45 ) ) DIV ( + 18 ) + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT ( - - MAX ( + 45 ) ) / ( + 18 ) + - COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT ALL 40 DIV + 43 + + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL 40 / + 43 + + 33 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL 34 DIV + + ( 96 ) + + - 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL 34 / + + ( 96 ) + + - 58 AS col2
----
-58

query I rowsort
SELECT + ( + 11 ) * + 2 * + - 92
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT COUNT( * ) * - ( - 88 ) * + - 50 * 31 + - 26
----
-136426

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT COUNT ( * ) * - ( - 88 ) * + - 50 * 31 + - 26
----
-136426

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7615
SELECT - CAST( - 51 AS SIGNED ) DIV 68 + + ( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7615
SELECT - CAST ( - 51 AS INTEGER ) / 68 + + ( + 36 )
----
36

query I rowsort
SELECT DISTINCT 46 * - - 61 * + 71 + + 58
----
199284

query I rowsort
SELECT DISTINCT + NULLIF ( - 54, - 46 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - 47 * ( + COUNT( * ) ) - - + ( - 43 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - 47 * ( + COUNT ( * ) ) - - + ( - 43 ) AS col1
----
-90

query I rowsort
SELECT ALL - 63 * + 48
----
-3024

query I rowsort
SELECT 99 * 54 + + 62
----
5408

query I rowsort
SELECT DISTINCT + - 68 * + 25
----
-1700

query I rowsort
SELECT + + 25 + 10
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + - COUNT( * ) * + 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7623
SELECT + - COUNT ( * ) * + 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - - 44 + - + 5 * - SUM( DISTINCT - 73 ) * - ( + ( 17 ) ) + - 27 AS col1
----
6222

skipif mysql # not compatible
query I rowsort label-7624
SELECT - - 44 + - + 5 * - SUM ( DISTINCT - 73 ) * - ( + ( 17 ) ) + - 27 AS col1
----
6222

query I rowsort
SELECT - + 33 + + 79 AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT DISTINCT + 70 * + + 60 AS col1, COUNT( * ) AS col1
----
4200
1

skipif mysql # not compatible
query II rowsort label-7626
SELECT DISTINCT + 70 * + + 60 AS col1, COUNT ( * ) AS col1
----
4200
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - 74 + COUNT( ALL - 22 ) - - + 16 + - 38 * - - 86 - - + 72 + - + 97 + + ( 0 ) + 53
----
-3297

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 74 + COUNT ( ALL - 22 ) - - + 16 + - 38 * - - 86 - - + 72 + - + 97 + + ( 0 ) + 53
----
-3297

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT ALL + 48 DIV - ( 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + 48 / - ( 84 ) AS col0
----
0

query I rowsort
SELECT - CASE + - 15 WHEN + - 59 * + 51 * - + 85 * + 30 * 3 + 62 + + ( - - 68 ) THEN - 98 WHEN + 34 / + - 11 THEN NULL ELSE NULL END * - - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - + MIN( - + 25 ) + - 67 + - COUNT( DISTINCT + CASE + + 45 WHEN + 53 * 67 THEN - 67 END ) + + - 98
----
-140

skipif mysql # not compatible
query I rowsort label-7630
SELECT - + MIN ( - + 25 ) + - 67 + - COUNT ( DISTINCT + CASE + + 45 WHEN + 53 * 67 THEN - 67 END ) + + - 98
----
-140

query I rowsort
SELECT - - 18 + 25 * - 81 + 77
----
-1930

query I rowsort
SELECT - - 7 + + + 42
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + ( + MAX( + 56 ) ) * + + 81 AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + ( + MAX ( + 56 ) ) * + + 81 AS col0
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT 28 / + CASE CAST( NULL AS SIGNED ) WHEN - 42 THEN - 38 ELSE NULL END * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT 28 / + CASE CAST ( NULL AS INTEGER ) WHEN - 42 THEN - 38 ELSE NULL END * + 77 AS col2
----
NULL

query I rowsort
SELECT ALL - 43 + 40
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL + ( - 33 ) + SUM( DISTINCT + 93 )
----
60

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + ( - 33 ) + SUM ( DISTINCT + 93 )
----
60

query I rowsort
SELECT DISTINCT 97 + + 43 AS col2
----
140

query I rowsort
SELECT ALL 55 + + ( - 4 ) * + 70 AS col2
----
-225

query I rowsort
SELECT 63 + - 35
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL 31 + - - COUNT( * ) + - 59
----
-27

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL 31 + - - COUNT ( * ) + - 59
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT 53, - COUNT( * ) col1
----
53
-1

skipif mysql # not compatible
query II rowsort label-7641
SELECT 53, - COUNT ( * ) col1
----
53
-1

query I rowsort
SELECT DISTINCT + 26 + + 50
----
76

query I rowsort
SELECT DISTINCT - 63 + - - 66 col2
----
3

query I rowsort
SELECT ALL 96 + + 52
----
148

query I rowsort
SELECT 59 * 36 AS col1
----
2124

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT NULLIF ( - 62, - 15 ) DIV - 3 + + + 67 - - 27 + - 56 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7646
SELECT NULLIF ( - 62, - 15 ) / - 3 + + + 67 - - 27 + - 56 AS col2
----
58

query I rowsort
SELECT ALL + 9 - + + 91 + + 78 + - + 64 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7648
SELECT + 36 AS col1, NULLIF ( + COUNT( * ), + - 17 ) * - 85 col1
----
36
-85

skipif mysql # not compatible
query II rowsort label-7648
SELECT + 36 AS col1, NULLIF ( + COUNT ( * ), + - 17 ) * - 85 col1
----
36
-85

query I rowsort
SELECT 11 + - 91
----
-80

query I rowsort
SELECT ALL 61 - - 15 col1
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT 44 DIV - 29 + + - CAST( + 1 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7651
SELECT 44 / - 29 + + - CAST ( + 1 AS INTEGER ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - 24 * + COUNT( * ) + ( + COUNT( * ) ) * - + 66 * 63
----
-4182

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 24 * + COUNT ( * ) + ( + COUNT ( * ) ) * - + 66 * 63
----
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - - MIN( DISTINCT - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - - MIN ( DISTINCT - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - 82 * + ( COUNT( * ) ) + COUNT( * ) + + + 24
----
-57

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 82 * + ( COUNT ( * ) ) + COUNT ( * ) + + + 24
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - MAX( ALL + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - MAX ( ALL + 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT CASE + - CAST( - + ( - 7 ) AS SIGNED ) WHEN - 4 THEN NULL ELSE 15 END
----
15

skipif mysql # not compatible
query I rowsort label-7656
SELECT CASE + - CAST ( - + ( - 7 ) AS INTEGER ) WHEN - 4 THEN NULL ELSE 15 END
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7657
SELECT ALL + 2 * ( + + COALESCE ( + MAX( DISTINCT - 42 ), 49 * 67, 69 + COALESCE ( + - 91, + - 23 ) + - + 57 * - - 12 DIV - 66 * - 50 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + 2 * ( + + COALESCE ( + MAX ( DISTINCT - 42 ), 49 * 67, 69 + COALESCE ( + - 91, + - 23 ) + - + 57 * - - 12 / - 66 * - 50 ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT COUNT( * ) * + - 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7658
SELECT COUNT ( * ) * + - 25 AS col2
----
-25

query I rowsort
SELECT DISTINCT + 69 * - 3
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT - 58 + + MIN( DISTINCT + 30 ) + - 31
----
-59

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - 58 + + MIN ( DISTINCT + 30 ) + - 31
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT CAST( - 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7661
SELECT CAST ( - 69 AS INTEGER ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT 92 * 26 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT 92 * 26 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 86 + + 84 + - ( - ( 63 ) ), + 36 AS col2
----
233
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT ALL + 95 AS col1, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-7664
SELECT ALL + 95 AS col1, COUNT ( * )
----
95
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT SUM( DISTINCT + - CAST( - + 93 AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-7665
SELECT SUM ( DISTINCT + - CAST ( - + 93 AS INTEGER ) )
----
93

query II rowsort
SELECT - 92 AS col1, - 9 col1
----
-92
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT ALL + 12 + - - COUNT( * ), + 13
----
13
13

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL + 12 + - - COUNT ( * ), + 13
----
13
13

query I rowsort
SELECT DISTINCT + 94 + + 43 AS col2
----
137

query I rowsort
SELECT ALL - 85 * - ( - - 57 ) col0
----
4845

query I rowsort
SELECT ALL - 12 + + 48
----
36

query I rowsort
SELECT 69 * 11
----
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7672
SELECT - 57 col2, + ( - CAST( + 16 AS SIGNED ) ) + - MIN( 73 ) * + 22 AS col0
----
-57
-1622

skipif mysql # not compatible
query II rowsort label-7672
SELECT - 57 col2, + ( - CAST ( + 16 AS INTEGER ) ) + - MIN ( 73 ) * + 22 AS col0
----
-57
-1622

query I rowsort
SELECT ALL + 40 + 3
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT 1, 54 + - - ( + + 90 ) * + + 71 * + MIN( ALL 11 ) AS col2
----
1
70344

skipif mysql # not compatible
query II rowsort label-7674
SELECT 1, 54 + - - ( + + 90 ) * + + 71 * + MIN ( ALL 11 ) AS col2
----
1
70344

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT 88 DIV - - 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7675
SELECT 88 / - - 73 AS col2
----
1

query I rowsort
SELECT ALL - 76 + - 80
----
-156

query I rowsort
SELECT 59 - 8
----
51

query II rowsort
SELECT - 68 col0, 22 AS col1
----
-68
22

query I rowsort
SELECT 72 * 39
----
2808

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT DISTINCT 13 * + - 41 DIV 89 DIV + + 96 - - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT 13 * + - 41 / 89 / + + 96 - - 14 AS col1
----
14

query I rowsort
SELECT ALL + 22 * + 41
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT - COUNT( + 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - COUNT ( + 98 )
----
-1

query I rowsort
SELECT ALL - ( + COALESCE ( + - 76, - - 25 ) ) * + 28 - - - 21 + - 88 + 91
----
2110

query I rowsort
SELECT DISTINCT + 5 * 89
----
445

query II rowsort
SELECT ALL - 33, 99 * 98 AS col1
----
-33
9702

query II rowsort
SELECT + 57 AS col1, + 69 AS col0
----
57
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL 51 * - COALESCE ( CAST( + 97 AS SIGNED ), + 98 - CASE COUNT( * ) WHEN 25 * + + MAX( DISTINCT + - 77 ) + - 50 * NULLIF ( + NULLIF ( - 26, - CAST( NULL AS SIGNED ) + - 52 ), COUNT( * ) * + + 8 ) * + 35 + - ( - + 64 ) + 16 * 29 THEN 3 ELSE NULL END, 46 ) + + 15 - 64 / - CASE - 48 WHEN 66 THEN - NULLIF ( - 73, + 33 * + 58 ) WHEN 83 + - 19 THEN 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL 51 * - COALESCE ( CAST ( + 97 AS INTEGER ), + 98 - CASE COUNT ( * ) WHEN 25 * + + MAX ( DISTINCT + - 77 ) + - 50 * NULLIF ( + NULLIF ( - 26, - CAST ( NULL AS INTEGER ) + - 52 ), COUNT ( * ) * + + 8 ) * + 35 + - ( - + 64 ) + 16 * 29 THEN 3 ELSE NULL END, 46 ) + + 15 - 64 / - CASE - 48 WHEN 66 THEN - NULLIF ( - 73, + 33 * + 58 ) WHEN 83 + - 19 THEN 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7688
SELECT + + 25 col2, 29 + + SUM( ALL + CASE + + 61 WHEN + 78 THEN - - 90 / - + 14 END )
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7688
SELECT + + 25 col2, 29 + + SUM ( ALL + CASE + + 61 WHEN + 78 THEN - - 90 / - + 14 END )
----
25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT DISTINCT + COUNT( * ) DIV + ( + 19 ) - COALESCE ( + + COUNT( * ), 65 * + ( + 85 ) ) + 27 + 93 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + COUNT ( * ) / + ( + 19 ) - COALESCE ( + + COUNT ( * ), 65 * + ( + 85 ) ) + 27 + 93 AS col2
----
119

query II rowsort
SELECT + 67 * 80 * + 21 + - 30 * + - 89 + + 42 AS col2, - 37 AS col0
----
115272
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT + 98 / + 3 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 98 / + 3 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT ALL - MIN( 39 ) * - 62
----
2418

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - MIN ( 39 ) * - 62
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT - + 9 * COUNT( * ) * + - COUNT( * ) + - 50
----
-41

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - + 9 * COUNT ( * ) * + - COUNT ( * ) + - 50
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + MIN( ALL - 39 ) + ( COUNT( + 81 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7694
SELECT + MIN ( ALL - 39 ) + ( COUNT ( + 81 ) )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7695
SELECT DISTINCT - - 30 AS col2, - 52 DIV 43 DIV + 84 * + + 88 * 48 * + + CAST( COUNT( * ) AS SIGNED )
----
30
0

skipif mysql # not compatible
query II rowsort label-7695
SELECT DISTINCT - - 30 AS col2, - 52 / 43 / + 84 * + + 88 * 48 * + + CAST ( COUNT ( * ) AS INTEGER )
----
30
0

query I rowsort
SELECT ALL - 20 * - + ( + + 91 )
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT 5 AS col1, COUNT( * ) + + 91
----
5
92

skipif mysql # not compatible
query II rowsort label-7697
SELECT 5 AS col1, COUNT ( * ) + + 91
----
5
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT + CASE - 18 WHEN + 6 * + COALESCE ( + 73, - - 11 + - - NULLIF ( - 87, - COUNT( - COALESCE ( - 51, - ( + 30 ) * - + 70 ) ) * + - COUNT( * ) * + 36 + COUNT( * ) + + CAST( - - 97 AS SIGNED ) ) + - 83 - + COUNT( * ) / + 99 * + 77, 67 + + ( COUNT( * ) ) * + 0 ) THEN - 79 * - 70 ELSE - 34 END + - 26
----
-60

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + CASE - 18 WHEN + 6 * + COALESCE ( + 73, - - 11 + - - NULLIF ( - 87, - COUNT ( - COALESCE ( - 51, - ( + 30 ) * - + 70 ) ) * + - COUNT ( * ) * + 36 + COUNT ( * ) + + CAST ( - - 97 AS INTEGER ) ) + - 83 - + COUNT ( * ) / + 99 * + 77, 67 + + ( COUNT ( * ) ) * + 0 ) THEN - 79 * - 70 ELSE - 34 END + - 26
----
-60

query I rowsort
SELECT + 58 + 29
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7700
SELECT + + ( COUNT( ( - 30 ) ) ) DIV - 3 * - COALESCE ( - - CAST( NULL AS SIGNED ), COUNT( ALL + 90 ) ) * 49
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT + + ( COUNT ( ( - 30 ) ) ) / - 3 * - COALESCE ( - - CAST ( NULL AS INTEGER ), COUNT ( ALL + 90 ) ) * 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT - MIN( CAST( + - 83 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-7701
SELECT - MIN ( CAST ( + - 83 AS INTEGER ) )
----
83

query I rowsort
SELECT DISTINCT 85 + 41
----
126

query II rowsort
SELECT + 14 * + 48 AS col2, 22 + + 15 + - + 85 col1
----
672
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT - MIN( ALL - 96 ) AS col1, + 0 + + ( + + COUNT( + 37 ) ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-7704
SELECT - MIN ( ALL - 96 ) AS col1, + 0 + + ( + + COUNT ( + 37 ) ) AS col0
----
96
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT + 61 * - CASE - + 30 WHEN ( + 63 ) * - + SUM( ALL - + 46 ) + ( 21 ) + 72 THEN NULL WHEN - 71 THEN - 48 * + ( + 27 ) + + 28 DIV - + 70 * + + 45 + 10 WHEN + - 17 THEN NULL ELSE + 92 * + 19 + - - 63 + 63 END
----
-114314

skipif mysql # not compatible
query I rowsort label-7705
SELECT + 61 * - CASE - + 30 WHEN ( + 63 ) * - + SUM ( ALL - + 46 ) + ( 21 ) + 72 THEN NULL WHEN - 71 THEN - 48 * + ( + 27 ) + + 28 / - + 70 * + + 45 + 10 WHEN + - 17 THEN NULL ELSE + 92 * + 19 + - - 63 + 63 END
----
-114314

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + 78 + + 53 * + COUNT( * ) * COUNT( * )
----
131

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 78 + + 53 * + COUNT ( * ) * COUNT ( * )
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT ALL - 45 - 17 AS col2, MAX( DISTINCT - - 91 ) AS col0
----
-62
91

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL - 45 - 17 AS col2, MAX ( DISTINCT - - 91 ) AS col0
----
-62
91

query II rowsort
SELECT - 0 + 53, 19 AS col1
----
53
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT ALL - 46 DIV - + ( COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - 46 / - + ( COUNT ( * ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT + COUNT( * ) DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-7710
SELECT + COUNT ( * ) / - 43
----
0

query I rowsort
SELECT + - ( - - COALESCE ( + - 48, + + 79 ) )
----
48

query II rowsort
SELECT - + 90 * - 41 AS col1, 51
----
3690
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT CASE + + 16 WHEN - - 5 THEN NULL WHEN + - COALESCE ( COUNT( ALL ( - 87 ) ), + 9, - 18 * - + 18 * + COUNT( * ) + 31 - 35 ) THEN - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT CASE + + 16 WHEN - - 5 THEN NULL WHEN + - COALESCE ( COUNT ( ALL ( - 87 ) ), + 9, - 18 * - + 18 * + COUNT ( * ) + 31 - 35 ) THEN - 37 END
----
NULL

query I rowsort
SELECT ALL - ( 40 ) * + 92 * 95
----
-349600

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - - COUNT( * ) * 31 - 46 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - - COUNT ( * ) * 31 - 46 AS col0
----
-15

query II rowsort
SELECT DISTINCT - 24 * - 89 AS col1, 37 AS col0
----
2136
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT - - 69 * 26 DIV - 3 AS col0
----
-598

skipif mysql # not compatible
query I rowsort label-7717
SELECT - - 69 * 26 / - 3 AS col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT CASE + 21 WHEN - COUNT( * ) - 72 THEN + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT CASE + 21 WHEN - COUNT ( * ) - 72 THEN + 87 END
----
NULL

query I rowsort
SELECT - 20 * + 15 AS col2
----
-300

query II rowsort
SELECT + 90 + + 22 AS col0, - 0
----
112
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL + - 8 * ( + 38 ) + - 97 - - CAST( SUM( + 84 ) AS SIGNED ) + - 50
----
-367

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + - 8 * ( + 38 ) + - 97 - - CAST ( SUM ( + 84 ) AS INTEGER ) + - 50
----
-367

query II rowsort
SELECT + - ( 74 ), - 47 AS col0
----
-74
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - + 89 * - 33 * - COUNT( * ) + 83
----
-2854

skipif mysql # not compatible
query I rowsort label-7723
SELECT - + 89 * - 33 * - COUNT ( * ) + 83
----
-2854

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT - - SUM( ALL 49 ) * 38 AS col0, 39
----
1862
39

skipif mysql # not compatible
query II rowsort label-7724
SELECT - - SUM ( ALL 49 ) * 38 AS col0, 39
----
1862
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL MIN( ALL - NULLIF ( + - 72, + 25 ) ) * - 98 * - COUNT( * ) * + 13 AS col1
----
91728

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL MIN ( ALL - NULLIF ( + - 72, + 25 ) ) * - 98 * - COUNT ( * ) * + 13 AS col1
----
91728

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( ALL + - 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( ALL + - 69 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT ALL CAST( NULL AS SIGNED ) * - 20 + + 21 + ( 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL CAST ( NULL AS INTEGER ) * - 20 + + 21 + ( 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT DISTINCT 74 * - + 59 + - + COUNT( * ) AS col2, - CASE + 51 WHEN 40 * + + 28 THEN - 62 * 85 * - 6 ELSE NULL END + + + 52
----
-4367
NULL

skipif mysql # not compatible
query II rowsort label-7728
SELECT DISTINCT 74 * - + 59 + - + COUNT ( * ) AS col2, - CASE + 51 WHEN 40 * + + 28 THEN - 62 * 85 * - 6 ELSE NULL END + + + 52
----
-4367
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7729
SELECT COUNT( * ), - COALESCE ( + 93, + + 93 + - COUNT( * ), 0 * - 41 ) AS col0
----
1
-93

skipif mysql # not compatible
query II rowsort label-7729
SELECT COUNT ( * ), - COALESCE ( + 93, + + 93 + - COUNT ( * ), 0 * - 41 ) AS col0
----
1
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT CAST( NULL AS SIGNED ) * - - 17 * 12 * CAST( + 58 AS SIGNED ) * + + 23 + 11 + + - 75 * - + 47 + - CASE + 62 WHEN - 90 THEN NULL WHEN - + ( + 41 ) THEN + - 21 * - 61 / - COALESCE ( + - CAST( - + 88 AS SIGNED ), - 80 ) END + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT CAST ( NULL AS INTEGER ) * - - 17 * 12 * CAST ( + 58 AS INTEGER ) * + + 23 + 11 + + - 75 * - + 47 + - CASE + 62 WHEN - 90 THEN NULL WHEN - + ( + 41 ) THEN + - 21 * - 61 / - COALESCE ( + - CAST ( - + 88 AS INTEGER ), - 80 ) END + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - MAX( ALL + + 71 ) * + 87 AS col2
----
-6177

skipif mysql # not compatible
query I rowsort label-7731
SELECT - MAX ( ALL + + 71 ) * + 87 AS col2
----
-6177

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT ALL 73 DIV 82 * - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 73 / 82 * - 59 AS col2
----
0

query I rowsort
SELECT + 37 * + + 35 * - + 51 AS col1
----
-66045

query I rowsort
SELECT DISTINCT 66 - 57 AS col0
----
9

query I rowsort
SELECT ALL 1 * - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL 65 * - SUM( DISTINCT + 22 )
----
-1430

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 65 * - SUM ( DISTINCT + 22 )
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + MAX( ALL + 39 ) * 99 AS col0
----
3861

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( ALL + 39 ) * 99 AS col0
----
3861

query II rowsort
SELECT 7 AS col0, - 43 AS col0
----
7
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT ALL - 39 AS col2, + MAX( DISTINCT + + 93 ) col2
----
-39
93

skipif mysql # not compatible
query II rowsort label-7739
SELECT ALL - 39 AS col2, + MAX ( DISTINCT + + 93 ) col2
----
-39
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + 11 * - + SUM( + 78 )
----
-858

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 11 * - + SUM ( + 78 )
----
-858

query II rowsort
SELECT ALL + 29 col0, 0 col2
----
29
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7742
SELECT ALL - + 92 DIV + COUNT( * ) + + - 83 DIV ( + 67 ) * - 27 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - + 92 / + COUNT ( * ) + + - 83 / ( + 67 ) * - 27 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT DISTINCT + ( + + 30 ) DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT + ( + + 30 ) / - 88 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT - 38 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 38 / 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - + COUNT( * ) - - 6
----
5

skipif mysql # not compatible
query I rowsort label-7745
SELECT - + COUNT ( * ) - - 6
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT ALL + 3 DIV + MIN( + 69 ) * - 45 + - + COUNT( * ) * 36 + + 99
----
63

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + 3 / + MIN ( + 69 ) * - 45 + - + COUNT ( * ) * 36 + + 99
----
63

query I rowsort
SELECT 67 + + + COALESCE ( - - 70, 73 ) * - NULLIF ( + 16, 92 ) AS col1
----
-1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7748
SELECT + + 11 AS col1, COUNT( * ) DIV + 55 col1
----
11
0

skipif mysql # not compatible
query II rowsort label-7748
SELECT + + 11 AS col1, COUNT ( * ) / + 55 col1
----
11
0

query I rowsort
SELECT ALL - 29 + - 70
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7750
SELECT + 4 + + COALESCE ( 80, - 13 + 58 + + COALESCE ( COALESCE ( - ( + 28 ), + 86 - - 28 + 82 + + 3 ), 95 ) * + CAST( NULL AS SIGNED ) * + 16 * 39, 2 + - + ( + 51 ) ) + 7 DIV + 86 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 4 + + COALESCE ( 80, - 13 + 58 + + COALESCE ( COALESCE ( - ( + 28 ), + 86 - - 28 + 82 + + 3 ), 95 ) * + CAST ( NULL AS INTEGER ) * + 16 * 39, 2 + - + ( + 51 ) ) + 7 / + 86 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT + 37 * - + MIN( ALL + 81 ) AS col1
----
-2997

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + 37 * - + MIN ( ALL + 81 ) AS col1
----
-2997

query I rowsort
SELECT ALL - 79 + - + 13
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT ALL - - 96 AS col1, + 50 * + SUM( - - 73 )
----
96
3650

skipif mysql # not compatible
query II rowsort label-7753
SELECT ALL - - 96 AS col1, + 50 * + SUM ( - - 73 )
----
96
3650

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT - COUNT( * ) * + ( 9 ) + + COUNT( * ) col0, - 41
----
-8
-41

skipif mysql # not compatible
query II rowsort label-7754
SELECT - COUNT ( * ) * + ( 9 ) + + COUNT ( * ) col0, - 41
----
-8
-41

query I rowsort
SELECT ALL - - 37 + - 3
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7756
SELECT - 41 * - 27 + - 4 + + 77 + + 52 DIV + 65
----
1180

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 41 * - 27 + - 4 + + 77 + + 52 / + 65
----
1180

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT ( - - ( - 6 ) ) * 8 - + 6 DIV - 58 * + 1 * 8 + - 82 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-7757
SELECT ( - - ( - 6 ) ) * 8 - + 6 / - 58 * + 1 * 8 + - 82 AS col0
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT + MAX( ALL - - CAST( 43 AS SIGNED ) ) * + + MIN( 91 ) * - + 40 - + 39 + - ( - 72 ) + 99 * 82
----
-148369

skipif mysql # not compatible
query I rowsort label-7758
SELECT + MAX ( ALL - - CAST ( 43 AS INTEGER ) ) * + + MIN ( 91 ) * - + 40 - + 39 + - ( - 72 ) + 99 * 82
----
-148369

query I rowsort
SELECT ALL + 63 * + 67 AS col1
----
4221

query I rowsort
SELECT 72 + + 97 col2
----
169

query I rowsort
SELECT 63 * + 83 + + 84
----
5313

query I rowsort
SELECT ALL + 63 * - 98 AS col1
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COUNT( * ) - + 48 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( * ) - + 48 AS col1
----
-47

query I rowsort
SELECT DISTINCT + 46 * 29 col1
----
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7765
SELECT 78 + + 27 * - ( + 34 ) * + + 58 * - - CAST( COUNT( * ) AS SIGNED ), 39 AS col2
----
-53166
39

skipif mysql # not compatible
query II rowsort label-7765
SELECT 78 + + 27 * - ( + 34 ) * + + 58 * - - CAST ( COUNT ( * ) AS INTEGER ), 39 AS col2
----
-53166
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT 87 DIV + + 81 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT 87 / + + 81 * + COUNT ( * )
----
1

query I rowsort
SELECT ALL 59 + 34
----
93

query I rowsort
SELECT 3 + 7 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT - COUNT( ALL + + 56 ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - COUNT ( ALL + + 56 ) + - 86
----
-87

query I rowsort
SELECT ALL - - 65 + + + 8 col2
----
73

query I rowsort
SELECT DISTINCT 83 + - - 96 + + 7 + + 11 AS col0
----
197

query I rowsort
SELECT DISTINCT 57 + + - 75 + 4 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT CASE + COUNT( * ) WHEN - 77 THEN COALESCE ( + - 51, ( - 91 ) * - NULLIF ( - ( + 28 ), + 98 ) * 46 - COUNT( * ) * + - 39 + + 39 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT CASE + COUNT ( * ) WHEN - 77 THEN COALESCE ( + - 51, ( - 91 ) * - NULLIF ( - ( + 28 ), + 98 ) * 46 - COUNT ( * ) * + - 39 + + 39 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 74 * + 26
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT + 75 * + COALESCE ( - 59, + 33 ) * + COUNT( * ) AS col2
----
-4425

skipif mysql # not compatible
query I rowsort label-7775
SELECT + 75 * + COALESCE ( - 59, + 33 ) * + COUNT ( * ) AS col2
----
-4425

query I rowsort
SELECT DISTINCT 23 * + 49 * + 2
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT + MIN( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7777
SELECT + MIN ( DISTINCT 58 )
----
58

query I rowsort
SELECT ALL 41 + 74 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - 11 * 3 + - CASE + 93 WHEN - + 59 THEN 83 / 24 * - 94 + + - 62 + - + COUNT( * ) ELSE NULL END * + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT - 11 * 3 + - CASE + 93 WHEN - + 59 THEN 83 / 24 * - 94 + + - 62 + - + COUNT ( * ) ELSE NULL END * + - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + MIN( + 17 ) * - ( + ( + ( - 30 ) ) ) + - 78 AS col0
----
432

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + MIN ( + 17 ) * - ( + ( + ( - 30 ) ) ) + - 78 AS col0
----
432

query I rowsort
SELECT - ( - + ( 60 ) )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT ALL - 47 - + 49 DIV + 59 + - - 11
----
-36

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL - 47 - + 49 / + 59 + - - 11
----
-36

query I rowsort
SELECT ( - 13 ) * - 48 AS col2
----
624

query I rowsort
SELECT 88 * + + 87
----
7656

query I rowsort
SELECT DISTINCT 97 * + 55 AS col1
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL + 31 * MIN( ALL 20 )
----
620

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + 31 * MIN ( ALL 20 )
----
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT DISTINCT 61 * CAST( - 85 AS SIGNED )
----
-5185

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT 61 * CAST ( - 85 AS INTEGER )
----
-5185

query I rowsort
SELECT 88 * - 96
----
-8448

query I rowsort
SELECT DISTINCT 55 * - - 83
----
4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7790
SELECT ALL 64, 21 * + + 2 + + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
64
43

skipif mysql # not compatible
query II rowsort label-7790
SELECT ALL 64, 21 * + + 2 + + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
64
43

query I rowsort
SELECT 13 + - 51 + 39
----
1

query I rowsort
SELECT ALL - CASE - + 16 WHEN - 71 + - 72 THEN - 75 END + + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL SUM( 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL SUM ( 10 ) AS col1
----
10

query I rowsort
SELECT 3 * + 46 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT 6 - CAST( + + 0 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-7795
SELECT 6 - CAST ( + + 0 AS INTEGER )
----
6

query I rowsort
SELECT ALL - 60 + - 36
----
-96

query I rowsort
SELECT ALL + 97 * + + 42
----
4074

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT 22 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT 22 / + 49 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT ALL - 47 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL - 47 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 2 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT + 36 * 97
----
3492

query I rowsort
SELECT NULLIF ( - 24, 96 + + - 7 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT + 29 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 29 / - - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL + 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL + 12 + COUNT ( * )
----
13

query I rowsort
SELECT - - ( 87 ) - 19
----
68

query I rowsort
SELECT - 86 * - 25 + - ( + 37 ) + - - 55
----
2168

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT - + 32 DIV + 66 * - 82 - - - 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7807
SELECT - + 32 / + 66 * - 82 - - - 29 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-7808
SELECT ALL + 21 DIV + 50 * + + 50 * 60 + 71, 58 col0
----
71
58

skipif mysql # not compatible
query II rowsort label-7808
SELECT ALL + 21 / + 50 * + + 50 * 60 + 71, 58 col0
----
71
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT ALL + + 39 AS col0, 44 * MAX( COALESCE ( + 91, - - 2 * + 7, - 71 ) ) AS col0
----
39
4004

skipif mysql # not compatible
query II rowsort label-7809
SELECT ALL + + 39 AS col0, 44 * MAX ( COALESCE ( + 91, - - 2 * + 7, - 71 ) ) AS col0
----
39
4004

query I rowsort
SELECT ALL - + 89 * 71 - 64
----
-6383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7811
SELECT ALL COALESCE ( - + 14, - + 28 - + + 12 DIV 89 * + 6 - + 37 + - + COUNT( 78 ) DIV 4 + + COUNT( * ) * 21 * + CAST( - COUNT( * ) AS SIGNED ), - CASE - 63 WHEN - 56 THEN NULL WHEN + + MIN( + + CAST( NULL AS DECIMAL ) ) THEN - 32 ELSE CAST( + COUNT( * ) AS SIGNED ) END * - - 16 + 76 ) * 78 - 93 AS col2
----
-1185

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL COALESCE ( - + 14, - + 28 - + + 12 / 89 * + 6 - + 37 + - + COUNT ( 78 ) / 4 + + COUNT ( * ) * 21 * + CAST ( - COUNT ( * ) AS INTEGER ), - CASE - 63 WHEN - 56 THEN NULL WHEN + + MIN ( + + CAST ( NULL AS REAL ) ) THEN - 32 ELSE CAST ( + COUNT ( * ) AS INTEGER ) END * - - 16 + 76 ) * 78 - 93 AS col2
----
-1185

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT + - COALESCE ( NULLIF ( - 17, + - 40 + + + 90 ), + 52 ) * - - 35 - + 88 DIV - 22 AS col1
----
599

skipif mysql # not compatible
query I rowsort label-7812
SELECT + - COALESCE ( NULLIF ( - 17, + - 40 + + + 90 ), + 52 ) * - - 35 - + 88 / - 22 AS col1
----
599

query II rowsort
SELECT + 46 AS col2, - 60 AS col0
----
46
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT ALL 42 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL 42 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 30 * + - 18
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT 63 * - ( 59 ) * - COUNT( * ) * - 43 + - - COUNT( * ) * - 15 AS col1
----
-159846

skipif mysql # not compatible
query I rowsort label-7816
SELECT 63 * - ( 59 ) * - COUNT ( * ) * - 43 + - - COUNT ( * ) * - 15 AS col1
----
-159846

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL 20 * + - MAX( DISTINCT - 45 )
----
900

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 20 * + - MAX ( DISTINCT - 45 )
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7818
SELECT ALL + 62, CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL + 62, CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1
----
62
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT + COUNT( * ) AS col2, - ( - - ( + 10 ) )
----
1
-10

skipif mysql # not compatible
query II rowsort label-7819
SELECT + COUNT ( * ) AS col2, - ( - - ( + 10 ) )
----
1
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT + 96 DIV - + 84
----
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 96 / - + 84
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7821
SELECT + 64, + COUNT( * ) DIV - 40 - - 57 AS col0
----
64
57

skipif mysql # not compatible
query II rowsort label-7821
SELECT + 64, + COUNT ( * ) / - 40 - - 57 AS col0
----
64
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL - 15 * 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - 15 * 38 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + 28 * + 0 * - SUM( DISTINCT 62 ) * - 74 * - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 28 * + 0 * - SUM ( DISTINCT 62 ) * - 74 * - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + 42 * + + MAX( ALL - 14 ) * 9 * + MIN( DISTINCT + NULLIF ( - + 88, - 39 ) ) + - COALESCE ( - 70, - COUNT( ALL - + 67 ) ) * + 26 + - + 59 * + 88 AS col0
----
462324

skipif mysql # not compatible
query I rowsort label-7824
SELECT + 42 * + + MAX ( ALL - 14 ) * 9 * + MIN ( DISTINCT + NULLIF ( - + 88, - 39 ) ) + - COALESCE ( - 70, - COUNT ( ALL - + 67 ) ) * + 26 + - + 59 * + 88 AS col0
----
462324

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL COUNT( * ) + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL COUNT ( * ) + 60 AS col2
----
61

query I rowsort
SELECT ALL 7 + + 45
----
52

query I rowsort
SELECT ALL - 56 + - 92 + 48
----
-100

query I rowsort
SELECT + 6 + 61 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - COALESCE ( - 65, - 51 * - - 15 ) + - - COUNT( * ) + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - COALESCE ( - 65, - 51 * - - 15 ) + - - COUNT ( * ) + COUNT ( * ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT - + COUNT( * ) + 13 * CAST( NULL AS SIGNED ) * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT - + COUNT ( * ) + 13 * CAST ( NULL AS INTEGER ) * - + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT - - CAST( - 32 AS SIGNED ) + 67 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7831
SELECT - - CAST ( - 32 AS INTEGER ) + 67 AS col2
----
35

query I rowsort
SELECT ALL - + COALESCE ( + 41, 0 ) - + + 34
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - - 11 + - SUM( - 43 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7833
SELECT - - 11 + - SUM ( - 43 ) AS col0
----
54

query I rowsort
SELECT DISTINCT - + 47 * - 78
----
3666

query I rowsort
SELECT - 20 * - 23
----
460

query I rowsort
SELECT ALL - + 30 * - - 18 AS col0
----
-540

query I rowsort
SELECT - 29 + + + 32 AS col2
----
3

query I rowsort
SELECT DISTINCT - 98 * - + 58 AS col2
----
5684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT MAX( + 0 ) * + COUNT( * ) + + CAST( + 62 AS SIGNED ) + COUNT( DISTINCT - 23 )
----
63

skipif mysql # not compatible
query I rowsort label-7839
SELECT MAX ( + 0 ) * + COUNT ( * ) + + CAST ( + 62 AS INTEGER ) + COUNT ( DISTINCT - 23 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT + + 45 AS col0, + ( - + COUNT( * ) )
----
45
-1

skipif mysql # not compatible
query II rowsort label-7840
SELECT + + 45 AS col0, + ( - + COUNT ( * ) )
----
45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT ALL + - ( + - 5 ) * - 0 + - - 60 AS col2, + NULLIF ( + 69, + COUNT( * ) * + 27 )
----
60
69

skipif mysql # not compatible
query II rowsort label-7841
SELECT ALL + - ( + - 5 ) * - 0 + - - 60 AS col2, + NULLIF ( + 69, + COUNT ( * ) * + 27 )
----
60
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7842
SELECT ALL 9 DIV + 28 * 77 col1, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-7842
SELECT ALL 9 / + 28 * 77 col1, - 52
----
0
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT - COUNT( * ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT - COUNT ( * ) / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT - ( - + COUNT( * ) ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7844
SELECT - ( - + COUNT ( * ) ) * COUNT ( * ) col0
----
1

query I rowsort
SELECT + ( + 36 ) col1
----
36

query I rowsort
SELECT + 78 * + 90 * - - 52
----
365040

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + CASE + SUM( DISTINCT - ( + - 94 ) ) WHEN + 63 + - 38 * + 13 THEN NULL WHEN + + 18 + 20 + 64 * 91 + - 84 - + - 66 * + COUNT( * ) + - 97 + + 27 THEN - 99 * 31 + 70 WHEN + ( + ( + - 28 ) ) THEN COUNT( * ) ELSE + - 27 + + - 32 END
----
-59

skipif mysql # not compatible
query I rowsort label-7847
SELECT + CASE + SUM ( DISTINCT - ( + - 94 ) ) WHEN + 63 + - 38 * + 13 THEN NULL WHEN + + 18 + 20 + 64 * 91 + - 84 - + - 66 * + COUNT ( * ) + - 97 + + 27 THEN - 99 * 31 + 70 WHEN + ( + ( + - 28 ) ) THEN COUNT ( * ) ELSE + - 27 + + - 32 END
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT ALL + 5 * 43 + 73 + - 13 DIV + 90
----
288

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + 5 * 43 + 73 + - 13 / + 90
----
288

query I rowsort
SELECT DISTINCT ( 39 ) * - 98 + - 20
----
-3842

query I rowsort
SELECT CASE 24 WHEN + - 4 THEN NULL WHEN + 12 + 50 + + ( + + 66 ) * 95 THEN ( + - 94 ) + - 94 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7851
SELECT DISTINCT 66 * - COUNT( * ), 60 DIV + + 33 AS col1
----
-66
1

skipif mysql # not compatible
query II rowsort label-7851
SELECT DISTINCT 66 * - COUNT ( * ), 60 / + + 33 AS col1
----
-66
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT ALL - 39 * - - 68 DIV + COUNT( * ) + + - 94 AS col2
----
-2746

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - 39 * - - 68 / + COUNT ( * ) + + - 94 AS col2
----
-2746

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL 89 + + NULLIF ( 29, + + NULLIF ( 36, + AVG ( DISTINCT - + 56 ) + 25 + - + 98 ) * + - CASE - + 42 WHEN COALESCE ( 58, AVG ( - COALESCE ( 48, - 62 * 64 / + - 37 + + 25 + + + 97, ( 46 ) ) ) ) * 26 THEN NULL WHEN 78 + + 50 - + - AVG ( 22 ) THEN NULL WHEN - NULLIF ( 72, 10 ) THEN 50 ELSE COUNT( 42 ) END ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL 89 + + NULLIF ( 29, + + NULLIF ( 36, + AVG ( DISTINCT - + 56 ) + 25 + - + 98 ) * + - CASE - + 42 WHEN COALESCE ( 58, AVG ( - COALESCE ( 48, - 62 * 64 / + - 37 + + 25 + + + 97, ( 46 ) ) ) ) * 26 THEN NULL WHEN 78 + + 50 - + - AVG ( 22 ) THEN NULL WHEN - NULLIF ( 72, 10 ) THEN 50 ELSE COUNT ( 42 ) END ) AS col1
----
118

query I rowsort
SELECT DISTINCT ( 26 ) + - 95 + - + 95
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT COUNT( * ) + - 46 AS col0, - 76
----
-45
-76

skipif mysql # not compatible
query II rowsort label-7855
SELECT COUNT ( * ) + - 46 AS col0, - 76
----
-45
-76

query I rowsort
SELECT ALL + 45 - - 19 + + 8 * 59 AS col2
----
536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT ALL + COUNT( 81 ) DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + COUNT ( 81 ) / + - 74
----
0

query I rowsort
SELECT ( + - 15 ) * - 7
----
105

query I rowsort
SELECT - NULLIF ( + 2, + 72 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT ALL 34 - - 30 + - 1 - - AVG ( ALL - 58 ) * - - 82 * + 51 + - 42 + - 36 + - - CAST( NULL AS SIGNED ) * + 91 + - 58 * 79 * - - 82 / + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL 34 - - 30 + - 1 - - AVG ( ALL - 58 ) * - - 82 * + 51 + - 42 + - 36 + - - CAST ( NULL AS INTEGER ) * + 91 + - 58 * 79 * - - 82 / + - 97
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - 22 AS col2
----
1364

query I rowsort
SELECT ALL + 4 - 30 * + - 85
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL MIN( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL MIN ( + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT 88 * COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7864
SELECT 88 * COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT 49 * 99, - COUNT( * ) - 46 AS col0
----
4851
-47

skipif mysql # not compatible
query II rowsort label-7865
SELECT 49 * 99, - COUNT ( * ) - 46 AS col0
----
4851
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT SUM( DISTINCT - 11 ) * + 12
----
-132

skipif mysql # not compatible
query I rowsort label-7866
SELECT SUM ( DISTINCT - 11 ) * + 12
----
-132

query I rowsort
SELECT - COALESCE ( + 78, + NULLIF ( + - 12, - 41 * + - 90 * + 36 * - + 90 + - + 23 + - 71 ) ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7868
SELECT - 80 - + CAST( NULL AS SIGNED ) / + 87 AS col0, 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7868
SELECT - 80 - + CAST ( NULL AS INTEGER ) / + 87 AS col0, 99 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT - NULLIF ( - COUNT( * ), + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + 82 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7870
SELECT ALL - 0 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - 0 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - CAST( + - 22 AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - CAST ( + - 22 AS INTEGER ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT 17 * - + CAST( + NULLIF ( + 48, - - CASE 96 WHEN MAX( ALL 24 ) + + - 97 THEN - COUNT( * ) END * - 56 * + - 5 - - 95 + - 33 ) AS SIGNED ) * 67
----
-54672

skipif mysql # not compatible
query I rowsort label-7872
SELECT 17 * - + CAST ( + NULLIF ( + 48, - - CASE 96 WHEN MAX ( ALL 24 ) + + - 97 THEN - COUNT ( * ) END * - 56 * + - 5 - - 95 + - 33 ) AS INTEGER ) * 67
----
-54672

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + COUNT( * ) + - + 43 * + 18 + - 34 * - 18 col1
----
-161

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + COUNT ( * ) + - + 43 * + 18 + - 34 * - 18 col1
----
-161

query I rowsort
SELECT 97 + 19
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT + 6, + COUNT( * ) + + 11 + + MAX( 73 ) col1
----
6
85

skipif mysql # not compatible
query II rowsort label-7875
SELECT + 6, + COUNT ( * ) + + 11 + + MAX ( 73 ) col1
----
6
85

query II rowsort
SELECT ALL - 68 AS col1, - 31 * - 87
----
-68
2697

query I rowsort
SELECT - 9 * + 97 + - 48
----
-921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7878
SELECT 74 DIV 26 + - ( - - MAX( + - CAST( 74 AS SIGNED ) ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7878
SELECT 74 / 26 + - ( - - MAX ( + - CAST ( 74 AS INTEGER ) ) ) AS col2
----
76

query I rowsort
SELECT ALL ( + - 81 ) + - + 13 AS col2
----
-94

query I rowsort
SELECT 6 * + COALESCE ( 2, - 2 ) AS col2
----
12

query I rowsort
SELECT 42 + + 67 AS col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT 61, - COUNT( + + 88 ) * + 39 * - 33 col1
----
61
1287

skipif mysql # not compatible
query II rowsort label-7882
SELECT 61, - COUNT ( + + 88 ) * + 39 * - 33 col1
----
61
1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7883
SELECT + MAX( DISTINCT - - 84 ) * - - 57 + + + COUNT( * ) DIV + 53 AS col1
----
4788

skipif mysql # not compatible
query I rowsort label-7883
SELECT + MAX ( DISTINCT - - 84 ) * - - 57 + + + COUNT ( * ) / + 53 AS col1
----
4788

query II rowsort
SELECT 34 AS col0, - 29
----
34
-29

query I rowsort
SELECT ALL 78 * + 20
----
1560

query I rowsort
SELECT 34 + + 68 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT - 14 * + ( + - 98 ) + + + COUNT( * )
----
1373

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - 14 * + ( + - 98 ) + + + COUNT ( * )
----
1373

query II rowsort
SELECT ALL 57 AS col1, 35 * - - 43 AS col1
----
57
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT - COUNT( ALL - 60 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7889
SELECT - COUNT ( ALL - 60 ) col1
----
-1

query I rowsort
SELECT 26 * + 29 * - 82 col1
----
-61828

query II rowsort
SELECT ALL 25, 26 AS col0
----
25
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7892
SELECT - COUNT( * ) + NULLIF ( - - 26, - NULLIF ( 29, + COUNT( * ) + + + 10 ) * - COUNT( * ) * COALESCE ( 74, + 65 + + CAST( + 45 AS DECIMAL ) ) ) + + COUNT( * ) DIV + COUNT( - 96 ), - 84 AS col0
----
26
-84

skipif mysql # not compatible
query II rowsort label-7892
SELECT - COUNT ( * ) + NULLIF ( - - 26, - NULLIF ( 29, + COUNT ( * ) + + + 10 ) * - COUNT ( * ) * COALESCE ( 74, + 65 + + CAST ( + 45 AS REAL ) ) ) + + COUNT ( * ) / + COUNT ( - 96 ), - 84 AS col0
----
26
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT - 81 DIV + ( NULLIF ( - + 16, - + 49 ) )
----
5

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - 81 / + ( NULLIF ( - + 16, - + 49 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7894
SELECT 82 + COUNT ( * )
----
83

query II rowsort
SELECT - 53 AS col2, + 3 * - 98 * 67 * ( - 28 ) AS col0
----
-53
551544

query I rowsort
SELECT ALL ( - - 24 ) + + 33 + 22 + - 94 * + - 50
----
4779

query I rowsort
SELECT - 78 + 97
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL - + 50 * + COUNT( * ) - + 30 * 71 AS col0
----
-2180

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL - + 50 * + COUNT ( * ) - + 30 * 71 AS col0
----
-2180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7900
SELECT DISTINCT CASE - 47 WHEN - 81 / + 29 * 13 * 12 / - + COUNT( * ) + CASE - 91 WHEN + + COUNT( DISTINCT + 28 ) THEN NULL WHEN + 77 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * - 80 - 25 + - 67 END THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT CASE - 47 WHEN - 81 / + 29 * 13 * 12 / - + COUNT ( * ) + CASE - 91 WHEN + + COUNT ( DISTINCT + 28 ) THEN NULL WHEN + 77 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * - 80 - 25 + - 67 END THEN + 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 51 + - 18 + + NULLIF ( - - ( + + 4 ), + COUNT( * ) + - 24 / + 46 ) + - 17 + - - 49 + + 8 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7901
SELECT 51 + - 18 + + NULLIF ( - - ( + + 4 ), + COUNT ( * ) + - 24 / + 46 ) + - 17 + - - 49 + + 8 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT 72 * - COALESCE ( - COALESCE ( CASE + 52 WHEN - 22 * + 50 * CAST( NULL AS SIGNED ) * 74 THEN NULL ELSE - - 28 + + SUM( + 97 ) + + + 48 END, - - 80 ), 86 + 48, - 20 ) AS col2
----
12456

skipif mysql # not compatible
query I rowsort label-7902
SELECT 72 * - COALESCE ( - COALESCE ( CASE + 52 WHEN - 22 * + 50 * CAST ( NULL AS INTEGER ) * 74 THEN NULL ELSE - - 28 + + SUM ( + 97 ) + + + 48 END, - - 80 ), 86 + 48, - 20 ) AS col2
----
12456

query I rowsort
SELECT 7 + - + 96 * - 0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT + COUNT( ALL + 64 ) AS col0, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7904
SELECT + COUNT ( ALL + 64 ) AS col0, + COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL - 33 * - 8 + - COUNT( * ) col2
----
263

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - 33 * - 8 + - COUNT ( * ) col2
----
263

query I rowsort
SELECT ALL 49 * + + 30 + - 33 AS col0
----
1437

query I rowsort
SELECT 16 * + 96 * - + 2 AS col0
----
-3072

query I rowsort
SELECT ALL + 56 * - - 69 - - - 50 + CASE 55 WHEN - 85 THEN + 50 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT SUM( - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7909
SELECT SUM ( - 53 ) AS col2
----
-53

query I rowsort
SELECT ALL + ( + 31 ) * - - 75
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT - 36 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT - 36 / - 57 AS col1
----
0

query I rowsort
SELECT - 12 - 73
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT ALL + + 15 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + + 15 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - - COUNT( * ) * - 64 + - - 0 - + - COUNT( ALL - + 42 ) * 1
----
-63

skipif mysql # not compatible
query I rowsort label-7914
SELECT - - COUNT ( * ) * - 64 + - - 0 - + - COUNT ( ALL - + 42 ) * 1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + COUNT( ALL - - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-7915
SELECT + COUNT ( ALL - - 76 )
----
1

query I rowsort
SELECT NULLIF ( - 85, 47 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7917
SELECT 32 * COUNT( * ) + + NULLIF ( CAST( NULL AS DECIMAL ), - 76 * + 69 * 60 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT 32 * COUNT ( * ) + + NULLIF ( CAST ( NULL AS REAL ), - 76 * + 69 * 60 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT - 39 * - 18
----
702

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT ALL + - COUNT( * ) + + 47 AS col1, + ( 25 ) + + 62 - MAX( DISTINCT + + 83 ) AS col2
----
46
4

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL + - COUNT ( * ) + + 47 AS col1, + ( 25 ) + + 62 - MAX ( DISTINCT + + 83 ) AS col2
----
46
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7920
SELECT + ( - 59 ) AS col1, COUNT( * ) * 29 DIV + MIN( ALL - + 85 ) + - + 73 AS col1, 19 AS col0
----
-59
-73
19

skipif mysql # not compatible
query III rowsort label-7920
SELECT + ( - 59 ) AS col1, COUNT ( * ) * 29 / + MIN ( ALL - + 85 ) + - + 73 AS col1, 19 AS col0
----
-59
-73
19

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT DISTINCT - + 81 + + CAST( - 80 AS SIGNED ) AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT - + 81 + + CAST ( - 80 AS INTEGER ) AS col2
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT COUNT( * ) + + SUM( - 5 ) * + + 31 DIV 32 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT COUNT ( * ) + + SUM ( - 5 ) * + + 31 / 32 / + 18
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + - MIN( DISTINCT - 64 ) + - 2
----
62

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + - MIN ( DISTINCT - 64 ) + - 2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT - 42 + 88 AS col0, 65 * - + 55 * - COUNT( * ) AS col2
----
46
3575

skipif mysql # not compatible
query II rowsort label-7925
SELECT - 42 + 88 AS col0, 65 * - + 55 * - COUNT ( * ) AS col2
----
46
3575

query I rowsort
SELECT ALL 81 + ( 1 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT - NULLIF ( ( - - CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - NULLIF ( ( - - CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL COALESCE ( + COUNT( * ), + - SUM( + - 80 ) ) + + 41 * 65 * + - 84
----
-223859

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL COALESCE ( + COUNT ( * ), + - SUM ( + - 80 ) ) + + 41 * 65 * + - 84
----
-223859

query I rowsort
SELECT + 26 - + 83 * + 61 AS col1
----
-5037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT CASE + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - + COALESCE ( 86, 13 * + - ( 34 ) + - 56 + COUNT( * ), COUNT( * ) ) THEN NULL WHEN - + NULLIF ( 4, MAX( + - 50 ) ) THEN + + 35 * - 70 WHEN + 38 THEN - - 74 - - 48 * + COUNT( * ) + + 58 ELSE - 58 * - + ( 49 ) END DIV + 30 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT CASE + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - + COALESCE ( 86, 13 * + - ( 34 ) + - 56 + COUNT ( * ), COUNT ( * ) ) THEN NULL WHEN - + NULLIF ( 4, MAX ( + - 50 ) ) THEN + + 35 * - 70 WHEN + 38 THEN - - 74 - - 48 * + COUNT ( * ) + + 58 ELSE - 58 * - + ( 49 ) END / + 30 AS col0
----
94

query I rowsort
SELECT + 19 * 62 AS col2
----
1178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT CAST( CAST( + 63 AS SIGNED ) AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7932
SELECT CAST ( CAST ( + 63 AS INTEGER ) AS INTEGER ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT 10 DIV - 78 * + 32 + - 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7933
SELECT 10 / - 78 * + 32 + - 58 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT CASE - MAX( 79 ) WHEN + - NULLIF ( - 44, - 78 ) THEN + + 94 END * - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT CASE - MAX ( 79 ) WHEN + - NULLIF ( - 44, - 78 ) THEN + + 94 END * - + 57 AS col1
----
NULL

query I rowsort
SELECT ( - 68 ) col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT - 63 * + - NULLIF ( + + 93, + - 38 ) DIV - COUNT( * ) + 42 AS col1
----
-5817

skipif mysql # not compatible
query I rowsort label-7936
SELECT - 63 * + - NULLIF ( + + 93, + - 38 ) / - COUNT ( * ) + 42 AS col1
----
-5817

query I rowsort
SELECT ALL + 39 * + - 22
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + 75 * CASE + 50 WHEN - - ( - 72 ) THEN - COUNT( * ) WHEN 75 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + 75 * CASE + 50 WHEN - - ( - 72 ) THEN - COUNT ( * ) WHEN 75 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + 97 + + + 21 - + ( + 79 ) + - ( - - 18 ) * CAST( - 89 AS SIGNED )
----
1641

skipif mysql # not compatible
query I rowsort label-7939
SELECT + 97 + + + 21 - + ( + 79 ) + - ( - - 18 ) * CAST ( - 89 AS INTEGER )
----
1641

query I rowsort
SELECT - 66 * - 59 * + - ( 50 ) AS col0
----
-194700

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT COUNT( ALL 55 ) * 36 + - 25
----
11

skipif mysql # not compatible
query I rowsort label-7941
SELECT COUNT ( ALL 55 ) * 36 + - 25
----
11

query I rowsort
SELECT ALL + - COALESCE ( + + 51, - 95 * 43 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT + - 42, ( - - CAST( NULL AS SIGNED ) ) * + 22 + + CAST( 55 AS SIGNED ) AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-7943
SELECT + - 42, ( - - CAST ( NULL AS INTEGER ) ) * + 22 + + CAST ( 55 AS INTEGER ) AS col2
----
-42
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT - COUNT( * ) AS col2, 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-7944
SELECT - COUNT ( * ) AS col2, 57
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL + ( 7 ) * + - COUNT( * ) + NULLIF ( - - CASE - 66 WHEN + - 20 / - + 54 THEN - NULLIF ( - 41, - 96 ) END, - - 96 * + 73 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + ( 7 ) * + - COUNT ( * ) + NULLIF ( - - CASE - 66 WHEN + - 20 / - + 54 THEN - NULLIF ( - 41, - 96 ) END, - - 96 * + 73 ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT + COUNT( * ) * + 53 + 55
----
108

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT + COUNT ( * ) * + 53 + 55
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT - - COUNT( * ) * 4 + + - 22 + + + MAX( - 40 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-7947
SELECT - - COUNT ( * ) * 4 + + - 22 + + + MAX ( - 40 ) col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT - - 26 + + 51 DIV + 23
----
28

skipif mysql # not compatible
query I rowsort label-7948
SELECT - - 26 + + 51 / + 23
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT - 99 DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - 99 / 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - ( + COUNT( * ) ) + + 94 + - - 18 + + + 46 + 64 * + 87 col1
----
5725

skipif mysql # not compatible
query I rowsort label-7950
SELECT - ( + COUNT ( * ) ) + + 94 + - - 18 + + + 46 + 64 * + 87 col1
----
5725

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - SUM( ALL + 7 ) + + - 15 AS col1, 76 * - 60 * SUM( 21 ) * - 78 + + 59 * + 48 * - 74 AS col1
----
-22
7259712

skipif mysql # not compatible
query II rowsort label-7951
SELECT - SUM ( ALL + 7 ) + + - 15 AS col1, 76 * - 60 * SUM ( 21 ) * - 78 + + 59 * + 48 * - 74 AS col1
----
-22
7259712

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - CASE - 82 WHEN + 0 THEN + 12 WHEN - 80 THEN NULL WHEN - + 44 + - + 97 + MIN( ALL + - 54 ) * 87 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7952
SELECT - CASE - 82 WHEN + 0 THEN + 12 WHEN - 80 THEN NULL WHEN - + 44 + - + 97 + MIN ( ALL + - 54 ) * 87 THEN NULL ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL ( 37 ) AS col0
----
37

query I rowsort
SELECT ALL ( - 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT ALL CAST( NULL AS SIGNED ) * - - 9 * + + NULLIF ( + ( - MIN( ALL + 40 ) ), 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL CAST ( NULL AS INTEGER ) * - - 9 * + + NULLIF ( + ( - MIN ( ALL + 40 ) ), 77 ) AS col1
----
NULL

query II rowsort
SELECT ALL 44 AS col2, 76
----
44
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT 16 + - - CASE - + COUNT( * ) WHEN COUNT( * ) * - MIN( - + 44 ) - + 28 + + 43 THEN 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT 16 + - - CASE - + COUNT ( * ) WHEN COUNT ( * ) * - MIN ( - + 44 ) - + 28 + + 43 THEN 45 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT COUNT( * ) + ( - + 98 )
----
-97

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( * ) + ( - + 98 )
----
-97

query II rowsort
SELECT 34 AS col2, - 94 * - + 22
----
34
2068

query I rowsort
SELECT 79 * + + 18 + - 69 * - - 51 * 85 * - 34 AS col0
----
10171332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT 22 DIV - + 19 * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7961
SELECT 22 / - + 19 * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT + 59 DIV + 70 + MAX( DISTINCT + - 58 ) + + MIN( DISTINCT - 31 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 59 / + 70 + MAX ( DISTINCT + - 58 ) + + MIN ( DISTINCT - 31 ) AS col0
----
-89

query I rowsort
SELECT DISTINCT 89 * + 48
----
4272

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT ALL 24 * 47 AS col2, COUNT( * )
----
1128
1

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL 24 * 47 AS col2, COUNT ( * )
----
1128
1

query I rowsort
SELECT 47 + 26 + 18 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT DISTINCT - COUNT( * ) DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - COUNT ( * ) / 88 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7967
SELECT ALL - 86 AS col2, 90 * + CASE - 27 WHEN + - CAST( 93 AS SIGNED ) THEN - 43 END + + + COUNT( * ) * + 46 * 55
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-7967
SELECT ALL - 86 AS col2, 90 * + CASE - 27 WHEN + - CAST ( 93 AS INTEGER ) THEN - 43 END + + + COUNT ( * ) * + 46 * 55
----
-86
NULL

query I rowsort
SELECT ( 78 ) * 44 + + 23 * + - 99
----
1155

query I rowsort
SELECT DISTINCT 18 + 89 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT 31 - - 60 + + 86 * + + CASE 7 WHEN - + NULLIF ( - MAX( ALL 82 ), + + 60 + - 79 ) THEN NULL WHEN + ( - COUNT( * ) ) * - 62 * - + 67 * COUNT( * ) THEN + CASE 46 WHEN + MIN( + - 82 ) + - ( 16 ) * - + COUNT( * ) * COUNT( * ) THEN 70 - - - 68 + + - 95 / + ( 66 ) END END + - + 69 * - - 67 * - 78 - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT 31 - - 60 + + 86 * + + CASE 7 WHEN - + NULLIF ( - MAX ( ALL 82 ), + + 60 + - 79 ) THEN NULL WHEN + ( - COUNT ( * ) ) * - 62 * - + 67 * COUNT ( * ) THEN + CASE 46 WHEN + MIN ( + - 82 ) + - ( 16 ) * - + COUNT ( * ) * COUNT ( * ) THEN 70 - - - 68 + + - 95 / + ( 66 ) END END + - + 69 * - - 67 * - 78 - - 47
----
NULL

query I rowsort
SELECT 11 * + + 97
----
1067

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + + 73 DIV 76 + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7972
SELECT + + 73 / 76 + 27 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL - SUM( ALL - ( + - CAST( - 16 AS SIGNED ) ) ) + + - 61 + 99 * - 24 * - 14 * - - 81 + - 79 AS col0
----
2694260

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - SUM ( ALL - ( + - CAST ( - 16 AS INTEGER ) ) ) + + - 61 + 99 * - 24 * - 14 * - - 81 + - 79 AS col0
----
2694260

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT ALL - COALESCE ( + - 31, 74 DIV - 1 * - - 25 ) * - 56
----
-1736

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - COALESCE ( + - 31, 74 / - 1 * - - 25 ) * - 56
----
-1736

query I rowsort
SELECT DISTINCT - ( - + 56 ) + 97 * + 39 AS col0
----
3839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT ( COUNT( * ) ) - - 73 + - 94 / - 87 * + CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT ( COUNT ( * ) ) - - 73 + - 94 / - 87 * + CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7977
SELECT - 5 AS col1, - 59 * 51 + NULLIF ( COUNT( * ), - + COUNT( * ) + + - 85 + + 54 ) + - 3 + - - MIN( - ( - + 38 ) ) DIV + - 49 * + 62
----
-5
-3011

skipif mysql # not compatible
query II rowsort label-7977
SELECT - 5 AS col1, - 59 * 51 + NULLIF ( COUNT ( * ), - + COUNT ( * ) + + - 85 + + 54 ) + - 3 + - - MIN ( - ( - + 38 ) ) / + - 49 * + 62
----
-5
-3011

query II rowsort
SELECT ALL 14 + + 79, + 25 AS col1
----
93
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT + 55, - MIN( DISTINCT 80 ) - + 44 AS col2
----
55
-124

skipif mysql # not compatible
query II rowsort label-7979
SELECT + 55, - MIN ( DISTINCT 80 ) - + 44 AS col2
----
55
-124

query II rowsort
SELECT + + 72 AS col0, + 31 AS col2
----
72
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + 80 + + - 91 * - 83 * - COUNT( - 27 )
----
-7473

skipif mysql # not compatible
query I rowsort label-7981
SELECT + 80 + + - 91 * - 83 * - COUNT ( - 27 )
----
-7473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7982
SELECT 19 - - MIN( DISTINCT - - 24 ) - - + ( - ( - - 24 ) ) * + 61 * 54 * CASE 69 WHEN + 17 THEN 18 WHEN - - 80 * + 89 * CASE 31 WHEN + + COUNT( * ) + 46 * - + 55 THEN NULL WHEN + 30 * + 53 THEN COUNT( * ) WHEN - - 19 THEN COUNT( 0 ) DIV + - 18 - - CAST( ( - 73 ) AS SIGNED ) ELSE NULL END THEN COALESCE ( + NULLIF ( 77, COUNT( * ) ), 9 ) DIV COUNT( * ) ELSE 91 END - 27 AS col0
----
-7194080

skipif mysql # not compatible
query I rowsort label-7982
SELECT 19 - - MIN ( DISTINCT - - 24 ) - - + ( - ( - - 24 ) ) * + 61 * 54 * CASE 69 WHEN + 17 THEN 18 WHEN - - 80 * + 89 * CASE 31 WHEN + + COUNT ( * ) + 46 * - + 55 THEN NULL WHEN + 30 * + 53 THEN COUNT ( * ) WHEN - - 19 THEN COUNT ( 0 ) / + - 18 - - CAST ( ( - 73 ) AS INTEGER ) ELSE NULL END THEN COALESCE ( + NULLIF ( 77, COUNT ( * ) ), 9 ) / COUNT ( * ) ELSE 91 END - 27 AS col0
----
-7194080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT - 60 * CAST( NULL AS SIGNED ) + + 40 + 76 + + - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT - 60 * CAST ( NULL AS INTEGER ) + + 40 + 76 + + - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - ( - + COUNT( * ) ) - - 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - ( - + COUNT ( * ) ) - - 59 AS col0
----
60

query I rowsort
SELECT 36 * 11 AS col2
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7986
SELECT DISTINCT - + ( - 13 ) - + CAST( - + NULLIF ( + + 12, 16 * - - 89 ) AS SIGNED ) + - 24 + 21 * - COUNT( * ) DIV 57 AS col2, 8 * - - 16 col1
----
1
128

skipif mysql # not compatible
query II rowsort label-7986
SELECT DISTINCT - + ( - 13 ) - + CAST ( - + NULLIF ( + + 12, 16 * - - 89 ) AS INTEGER ) + - 24 + 21 * - COUNT ( * ) / 57 AS col2, 8 * - - 16 col1
----
1
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL + 65 * - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + 65 * - COUNT ( * ) AS col2
----
-65

query I rowsort
SELECT DISTINCT 67 - - - 87 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT COUNT( + 18 ) + 73 * + 6 col2
----
439

skipif mysql # not compatible
query I rowsort label-7989
SELECT COUNT ( + 18 ) + 73 * + 6 col2
----
439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT 32 DIV + 43 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT 32 / + 43 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT ALL - 37 DIV + 53 * + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - 37 / + 53 * + 45 AS col0
----
0

query II rowsort
SELECT 16 * - 22 AS col2, - 32
----
-352
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7993
SELECT 51 * COUNT ( * )
----
51

query II rowsort
SELECT 25 * 90 * + 67 AS col0, 70
----
150750
70

query I rowsort
SELECT ALL - 38 * + 19 AS col1
----
-722

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT 51 + - 86 DIV 47
----
50

skipif mysql # not compatible
query I rowsort label-7996
SELECT 51 + - 86 / 47
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL - CAST( NULL AS SIGNED ) * + COALESCE ( - COUNT( * ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - CAST ( NULL AS INTEGER ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT ALL 48 * ( + + 71 ) + + 85 AS col1
----
3493

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7999
SELECT 41 + - CASE + - COUNT( * ) WHEN COUNT( * ) THEN 34 * + MAX( - - 8 ) * + 91 WHEN 84 THEN - ( - 84 ) END * - - 83 * - 20 + + CAST( 11 AS DECIMAL ) / ( ( + + 31 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT 41 + - CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN 34 * + MAX ( - - 8 ) * + 91 WHEN 84 THEN - ( - 84 ) END * - - 83 * - 20 + + CAST ( 11 AS REAL ) / ( ( + + 31 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8000
SELECT + + CAST( 88 AS SIGNED ) AS col1, - COALESCE ( + ( + + 32 ), + ( + 48 ) * - - 3 )
----
88
-32

skipif mysql # not compatible
query II rowsort label-8000
SELECT + + CAST ( 88 AS INTEGER ) AS col1, - COALESCE ( + ( + + 32 ), + ( + 48 ) * - - 3 )
----
88
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT 23 DIV ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT 23 / ( 88 )
----
0

query I rowsort
SELECT ALL - 56 + + + 2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT 3 / + MIN( ALL - 83 ) + 5 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT 3 / + MIN ( ALL - 83 ) + 5 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - COUNT( + + 73 ) + - 51 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - COUNT ( + + 73 ) + - 51 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT + MIN( - 24 ), + 3 AS col2
----
-24
3

skipif mysql # not compatible
query II rowsort label-8005
SELECT + MIN ( - 24 ), + 3 AS col2
----
-24
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT DISTINCT + 73 + - 61 + + 79 * + + CAST( NULL AS SIGNED ) * - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT + 73 + - 61 + + 79 * + + CAST ( NULL AS INTEGER ) * - + 19
----
NULL

query I rowsort
SELECT ALL + 29 * - 48 * - 44 col2
----
61248

query I rowsort
SELECT - 16 * + 65 + 20 col0
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT - + 60 * + ( + ( + 11 ) ) + - + 35 * - 23 DIV + 23 + + 98 * + 49
----
4177

skipif mysql # not compatible
query I rowsort label-8009
SELECT - + 60 * + ( + ( + 11 ) ) + - + 35 * - 23 / + 23 + + 98 * + 49
----
4177

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL + MIN( ALL + ( - 26 ) ) - 38
----
-64

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + MIN ( ALL + ( - 26 ) ) - 38
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8011
SELECT 51 + + 88 + - - 78 * + 36 + - - 79 AS col0, NULLIF ( - ( - CAST( NULL AS SIGNED ) ), 18 * 49 / + + 11 )
----
3026
NULL

skipif mysql # not compatible
query II rowsort label-8011
SELECT 51 + + 88 + - - 78 * + 36 + - - 79 AS col0, NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), 18 * 49 / + + 11 )
----
3026
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT + NULLIF ( 30, MAX( + + ( 32 ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT + NULLIF ( 30, MAX ( + + ( 32 ) ) )
----
30

query I rowsort
SELECT ALL - 42 * - 18 AS col1
----
756

query I rowsort
SELECT + 55 * + - 47 * 18
----
-46530

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL MIN( ALL + + 54 ) * - - COUNT( * ) * + 17
----
918

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL MIN ( ALL + + 54 ) * - - COUNT ( * ) * + 17
----
918

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT DISTINCT 94 AS col1, 54 + + 31 + + 4 * + COUNT( * )
----
94
89

skipif mysql # not compatible
query II rowsort label-8016
SELECT DISTINCT 94 AS col1, 54 + + 31 + + 4 * + COUNT ( * )
----
94
89

query I rowsort
SELECT + 61 + 64
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL COUNT( * ) * - + 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL COUNT ( * ) * - + 89 AS col0
----
-89

query II rowsort
SELECT DISTINCT 4 col2, - 28 AS col0
----
4
-28

query I rowsort
SELECT ALL - 52 + 29
----
-23

query I rowsort
SELECT + 13 + - 37 - - 39 AS col2
----
15

query I rowsort
SELECT - 65 * + - 5
----
325

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT - 83 + + 30 DIV 52
----
-83

skipif mysql # not compatible
query I rowsort label-8023
SELECT - 83 + + 30 / 52
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8024
SELECT ALL + 89 + + + MAX( ALL - 97 ) DIV - 63 AS col2, 88 * + CAST( NULL AS SIGNED ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8024
SELECT ALL + 89 + + + MAX ( ALL - 97 ) / - 63 AS col2, 88 * + CAST ( NULL AS INTEGER ) AS col2
----
90
NULL

query I rowsort
SELECT + 29 * + - 96 * 46 * - 55 col1
----
7043520

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - 35 + - - COUNT( * ) + 9 col1
----
-25

skipif mysql # not compatible
query I rowsort label-8026
SELECT - 35 + - - COUNT ( * ) + 9 col1
----
-25

query I rowsort
SELECT ALL 19 * + - 23 * + 52 + + 40 AS col1
----
-22684

query II rowsort
SELECT + 94, - 45 + + 89 AS col2
----
94
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + + NULLIF ( + 24, CASE 14 WHEN - 8 THEN NULL WHEN + - MIN( 90 ) THEN + 38 WHEN 11 THEN - 90 WHEN - 25 THEN NULL END ) / + ( 86 ) / - CASE MAX( ALL - 27 ) WHEN + 21 THEN 55 END + + AVG ( DISTINCT + + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT + + NULLIF ( + 24, CASE 14 WHEN - 8 THEN NULL WHEN + - MIN ( 90 ) THEN + 38 WHEN 11 THEN - 90 WHEN - 25 THEN NULL END ) / + ( 86 ) / - CASE MAX ( ALL - 27 ) WHEN + 21 THEN 55 END + + AVG ( DISTINCT + + 20 )
----
NULL

query I rowsort
SELECT ALL 85 * - 95 + + + 70 AS col1
----
-8005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT DISTINCT - - 12 * - 15 * + - 97 * - 24 + 57 * COALESCE ( + 17, + + MIN( - - 60 ) * 56 ) DIV - + 1 * + + COUNT( * ) + - 73 + + - 26 + - 26 AS col0
----
-420134

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT - - 12 * - 15 * + - 97 * - 24 + 57 * COALESCE ( + 17, + + MIN ( - - 60 ) * 56 ) / - + 1 * + + COUNT ( * ) + - 73 + + - 26 + - 26 AS col0
----
-420134

query I rowsort
SELECT ALL + - ( 77 ) * + - 42 + + + 85
----
3319

query I rowsort
SELECT + + ( - 19 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8034
SELECT - - CASE - + 13 WHEN - SUM( + ( - 96 ) ) THEN + 88 + - 13 WHEN + 1 * 6 THEN + 53 END - + ( - 50 ) + + 83 + + 25 * CAST( NULL AS SIGNED ) + + - COUNT( * ) - CASE WHEN NOT - 71 IN ( - 99 - + - 60 + + + 75 + - 37, MAX( DISTINCT - CAST( + + 47 AS DECIMAL ) ) + AVG ( + 79 ), - 32, 0 * - - 35 - + 55 + + COUNT( * ) + - 76 * - 10 * + COALESCE ( 56 + - 65, + COUNT( * ) + - 29 ) ) THEN 99 END * 51 / CASE - 38 * 62 WHEN - 60 THEN NULL WHEN - ( - 80 ) * - 77 THEN - 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - - CASE - + 13 WHEN - SUM ( + ( - 96 ) ) THEN + 88 + - 13 WHEN + 1 * 6 THEN + 53 END - + ( - 50 ) + + 83 + + 25 * CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - CASE WHEN NOT - 71 IN ( - 99 - + - 60 + + + 75 + - 37, MAX ( DISTINCT - CAST ( + + 47 AS REAL ) ) + AVG ( + 79 ), - 32, 0 * - - 35 - + 55 + + COUNT ( * ) + - 76 * - 10 * + COALESCE ( 56 + - 65, + COUNT ( * ) + - 29 ) ) THEN 99 END * 51 / CASE - 38 * 62 WHEN - 60 THEN NULL WHEN - ( - 80 ) * - 77 THEN - 95 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 64 * - - 30
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - 68 * ( - NULLIF ( - + 95, 93 / COUNT( + + 19 ) + 73 ) ) + + + 88
----
-6372

skipif mysql # not compatible
query I rowsort label-8036
SELECT - 68 * ( - NULLIF ( - + 95, 93 / COUNT ( + + 19 ) + 73 ) ) + + + 88
----
-6372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT - 85 * - + 53 + 12 * + 35 * - COUNT( * ) / 6 + - 51 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - 85 * - + 53 + 12 * + 35 * - COUNT ( * ) / 6 + - 51 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - COUNT( * ) - - - COALESCE ( + - ( + 92 ), + - COUNT( * ), + 28 ) + 28 col0
----
119

skipif mysql # not compatible
query I rowsort label-8038
SELECT - COUNT ( * ) - - - COALESCE ( + - ( + 92 ), + - COUNT ( * ), + 28 ) + 28 col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT ALL + - 18 DIV 21 * - NULLIF ( + 65, - - 29 DIV 42 - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + - 18 / 21 * - NULLIF ( + 65, - - 29 / 42 - + COUNT ( * ) )
----
0

query II rowsort
SELECT DISTINCT + 40, - 5 + - 5 AS col1
----
40
-10

query I rowsort
SELECT ALL - 68 * 83 + + 21 * + 91 AS col1
----
-3733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8042
SELECT ALL + + 25 AS col2, + 38 * - - COUNT( - CAST( + 68 AS SIGNED ) ) AS col1
----
25
38

skipif mysql # not compatible
query II rowsort label-8042
SELECT ALL + + 25 AS col2, + 38 * - - COUNT ( - CAST ( + 68 AS INTEGER ) ) AS col1
----
25
38

query I rowsort
SELECT + 97 + + - 20
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8044
SELECT + MIN( DISTINCT - 48 ) DIV - + CAST( + + 7 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8044
SELECT + MIN ( DISTINCT - 48 ) / - + CAST ( + + 7 AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT - 67 * - COALESCE ( + COUNT( * ), + + 71 * - - 77 DIV + COALESCE ( + COUNT( * ), + 95 ) + + ( + + 53 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 67 * - COALESCE ( + COUNT ( * ), + + 71 * - - 77 / + COALESCE ( + COUNT ( * ), + 95 ) + + ( + + 53 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8046
SELECT MIN( ALL - 49 ) AS col2, SUM( + 95 ) AS col2
----
-49
95

skipif mysql # not compatible
query II rowsort label-8046
SELECT MIN ( ALL - 49 ) AS col2, SUM ( + 95 ) AS col2
----
-49
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT MIN( 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8047
SELECT MIN ( 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT 66 + - + SUM( ALL + 72 ) - ( + 68 ) * 60 * - 16 * + COUNT( * ) AS col1
----
65274

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT 66 + - + SUM ( ALL + 72 ) - ( + 68 ) * 60 * - 16 * + COUNT ( * ) AS col1
----
65274

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT NULLIF ( - + 64, - 69 / 79 ) + - SUM( 73 ) * + - 11 AS col1
----
739

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT NULLIF ( - + 64, - 69 / 79 ) + - SUM ( 73 ) * + - 11 AS col1
----
739

query I rowsort
SELECT ALL 1 + + ( + 77 ) col1
----
78

query I rowsort
SELECT - ( + ( + 36 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL ( + 39 ) + - 43 + + COUNT( * ) + 5 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL ( + 39 ) + - 43 + + COUNT ( * ) + 5 AS col2
----
2

query I rowsort
SELECT + 77 + 55
----
132

query II rowsort
SELECT + 54 + + 91 AS col0, 61
----
145
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL 65 + + 72 - - - 39 * + - COUNT( * ) AS col1
----
176

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 65 + + 72 - - - 39 * + - COUNT ( * ) AS col1
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT + COUNT( * ) + 26, - 84 AS col0
----
27
-84

skipif mysql # not compatible
query II rowsort label-8056
SELECT + COUNT ( * ) + 26, - 84 AS col0
----
27
-84

query I rowsort
SELECT - ( + 8 ) * 45
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT 59 * + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT 59 * + COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT + 15 DIV + + ( + 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + 15 / + + ( + 65 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT + CASE MAX( DISTINCT - 16 ) WHEN 31 THEN 60 WHEN + ( + 28 ) + - NULLIF ( COALESCE ( - + ( - 92 ), - 84 + - 90, 72 / - 20 ), + COUNT( * ) * - 88 ) + - + 65 THEN NULL ELSE NULL END / - 79 * + 2 + CAST( 92 AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT + CASE MAX ( DISTINCT - 16 ) WHEN 31 THEN 60 WHEN + ( + 28 ) + - NULLIF ( COALESCE ( - + ( - 92 ), - 84 + - 90, 72 / - 20 ), + COUNT ( * ) * - 88 ) + - + 65 THEN NULL ELSE NULL END / - 79 * + 2 + CAST ( 92 AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - 66 * + 48 - - COUNT( * ) AS col0
----
-3167

skipif mysql # not compatible
query I rowsort label-8061
SELECT - 66 * + 48 - - COUNT ( * ) AS col0
----
-3167

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT + - MIN( 62 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-8062
SELECT + - MIN ( 62 ) col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL - 21 * - CAST( 55 AS SIGNED )
----
1155

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - 21 * - CAST ( 55 AS INTEGER )
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - 74 * + COUNT( + 14 ) + + 59
----
-15

skipif mysql # not compatible
query I rowsort label-8064
SELECT - 74 * + COUNT ( + 14 ) + + 59
----
-15

query I rowsort
SELECT DISTINCT - + 48 col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8066
SELECT + 86 DIV CASE + COUNT( * ) WHEN + - 25 * + - CAST( + - 83 AS SIGNED ) THEN - - 88 ELSE - 6 END * 4 + - - 37
----
-19

skipif mysql # not compatible
query I rowsort label-8066
SELECT + 86 / CASE + COUNT ( * ) WHEN + - 25 * + - CAST ( + - 83 AS INTEGER ) THEN - - 88 ELSE - 6 END * 4 + - - 37
----
-19

query I rowsort
SELECT DISTINCT + 19 * ( 35 ) AS col0
----
665

query I rowsort
SELECT - 40 * + 60
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL + + 65 * + CASE 57 WHEN - ( 14 ) THEN NULL WHEN + - 62 + - 17 / - + ( + + 21 ) THEN - CAST( NULL AS SIGNED ) + - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + + 65 * + CASE 57 WHEN - ( 14 ) THEN NULL WHEN + - 62 + - 17 / - + ( + + 21 ) THEN - CAST ( NULL AS INTEGER ) + - 87 ELSE NULL END
----
NULL

query I rowsort
SELECT 14 + - + ( + 83 ) * + 67
----
-5547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT + 69 * + NULLIF ( - + 21, - 77 * + - NULLIF ( + COUNT( * ), - AVG ( 25 ) * - SUM( ALL + 97 ) * - CAST( 40 AS SIGNED ) ) ) * - 51 - - - 62 + + 47 * - 84 + CASE - COUNT( * ) WHEN - 50 + - + 48 * - 2 + 3 + NULLIF ( - 43, 96 ) * + - 52 THEN NULL ELSE 8 / + COALESCE ( + + COUNT( DISTINCT + CAST( + 28 AS SIGNED ) ), - - 25, + 82 * 42 + + 57 * - CASE 40 / - 3 WHEN CASE + 53 WHEN + 66 * + 67 + 83 THEN 79 ELSE 9 / 88 END THEN + 75 WHEN 6 THEN NULL ELSE - 38 * COALESCE ( 22, CASE + ( + 88 ) WHEN 0 / + CASE 99 WHEN + 48 THEN NULL WHEN 72 THEN 48 ELSE + 46 * 85 END THEN ( + 22 ) ELSE NULL END, + 38, + 5 ) END ) * 66 + 68 * - 23 END - - 90 / COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 69 * + NULLIF ( - + 21, - 77 * + - NULLIF ( + COUNT ( * ), - AVG ( 25 ) * - SUM ( ALL + 97 ) * - CAST ( 40 AS INTEGER ) ) ) * - 51 - - - 62 + + 47 * - 84 + CASE - COUNT ( * ) WHEN - 50 + - + 48 * - 2 + 3 + NULLIF ( - 43, 96 ) * + - 52 THEN NULL ELSE 8 / + COALESCE ( + + COUNT ( DISTINCT + CAST ( + 28 AS INTEGER ) ), - - 25, + 82 * 42 + + 57 * - CASE 40 / - 3 WHEN CASE + 53 WHEN + 66 * + 67 + 83 THEN 79 ELSE 9 / 88 END THEN + 75 WHEN 6 THEN NULL ELSE - 38 * COALESCE ( 22, CASE + ( + 88 ) WHEN 0 / + CASE 99 WHEN + 48 THEN NULL WHEN 72 THEN 48 ELSE + 46 * 85 END THEN ( + 22 ) ELSE NULL END, + 38, + 5 ) END ) * 66 + 68 * - 23 END - - 90 / COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT - 25 * - CAST( NULL AS SIGNED ) + + ( - - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT - 25 * - CAST ( NULL AS INTEGER ) + + ( - - 91 )
----
NULL

query I rowsort
SELECT 16 * 8 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT MIN( DISTINCT + + 60 ) * + 27, 25 AS col0
----
1620
25

skipif mysql # not compatible
query II rowsort label-8074
SELECT MIN ( DISTINCT + + 60 ) * + 27, 25 AS col0
----
1620
25

query I rowsort
SELECT DISTINCT 66 + 80 AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL 25 + - - 18 + + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL 25 + - - 18 + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT DISTINCT - COUNT( * ) DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - COUNT ( * ) / 2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8078
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) DIV 43 + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) / 43 + 88 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8079
SELECT ALL 60 * + CASE ( + 67 ) WHEN + 78 + + 30 DIV + - 42 THEN NULL ELSE + 3 * - + 46 * + - 36 + + 76 + + - 32 + - 80 * - - 85 * + 49 END, COALESCE ( - COUNT( * ), 93 DIV - - 59 + - 56 ) AS col0
----
-19691280
-1

skipif mysql # not compatible
query II rowsort label-8079
SELECT ALL 60 * + CASE ( + 67 ) WHEN + 78 + + 30 / + - 42 THEN NULL ELSE + 3 * - + 46 * + - 36 + + 76 + + - 32 + - 80 * - - 85 * + 49 END, COALESCE ( - COUNT ( * ), 93 / - - 59 + - 56 ) AS col0
----
-19691280
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - ( 97 ) + - 40 + - + 35 * COUNT( - 72 )
----
-172

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - ( 97 ) + - 40 + - + 35 * COUNT ( - 72 )
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8081
SELECT 31 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT 31 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * + 41 AS col1
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT SUM( DISTINCT 30 ) + - 8 * + 30
----
-210

skipif mysql # not compatible
query I rowsort label-8083
SELECT SUM ( DISTINCT 30 ) + - 8 * + 30
----
-210

query I rowsort
SELECT ALL 65 + - 95 AS col1
----
-30

query II rowsort
SELECT - 65, 21 AS col0
----
-65
21

query I rowsort
SELECT 86 + + 46
----
132

query I rowsort
SELECT 57 + + 7
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - ( 12 ) + - 88 + ( + 1 ) + 5 * - COUNT( * ) * 86
----
-529

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - ( 12 ) + - 88 + ( + 1 ) + 5 * - COUNT ( * ) * 86
----
-529

query I rowsort
SELECT ALL + 17 + 1
----
18

query II rowsort
SELECT ALL 26, 17 AS col0
----
26
17

query I rowsort
SELECT + ( + - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT 80 * - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8092
SELECT 80 * - - COUNT ( * )
----
80

query I rowsort
SELECT + 31 * 60
----
1860

query I rowsort
SELECT ALL + 92 * 53
----
4876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL 58 * - CAST( + + 21 AS SIGNED ) col1
----
-1218

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL 58 * - CAST ( + + 21 AS INTEGER ) col1
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT - MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 77 ) * + - 29
----
2233

query I rowsort
SELECT - 15 * + 83 * + 74 * + 1
----
-92130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT - COUNT( * ) DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT - COUNT ( * ) / 49 AS col0
----
0

query I rowsort
SELECT 98 - - 9 + + 97 * + 25
----
2532

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT ALL - 66 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - 66 / - + 89 AS col1
----
0

query I rowsort
SELECT ( 59 ) + 98 * 45 + + - 77
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + MAX( + - ( + 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8103
SELECT + MAX ( + - ( + 58 ) ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT CAST( NULL AS SIGNED ) * ( + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT CAST ( NULL AS INTEGER ) * ( + 16 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 47 + + 89 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL CAST( 95 AS SIGNED ) + + + 52 + + ( + + ( 55 ) ) * + 91 + + + COALESCE ( 68, - 47 * + - 88 ) * 4 AS col2
----
5424

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL CAST ( 95 AS INTEGER ) + + + 52 + + ( + + ( 55 ) ) * + 91 + + + COALESCE ( 68, - 47 * + - 88 ) * 4 AS col2
----
5424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT + 49 col1, + 0 * - CASE + + COUNT( * ) WHEN NULLIF ( + - NULLIF ( - 29, + - 99 * 49 + 64 * - 7 + + - ( + NULLIF ( - NULLIF ( - CAST( NULL AS SIGNED ), COALESCE ( + COUNT( * ), - - COUNT( * ) ) ), + - 65 ) ) ), + COUNT( * ) + - - 76 ) THEN - + COUNT( * ) * - 27 + + 61 END * - MAX( - + 23 ) * 29 + - 96 + 52
----
49
NULL

skipif mysql # not compatible
query II rowsort label-8108
SELECT + 49 col1, + 0 * - CASE + + COUNT ( * ) WHEN NULLIF ( + - NULLIF ( - 29, + - 99 * 49 + 64 * - 7 + + - ( + NULLIF ( - NULLIF ( - CAST ( NULL AS INTEGER ), COALESCE ( + COUNT ( * ), - - COUNT ( * ) ) ), + - 65 ) ) ), + COUNT ( * ) + - - 76 ) THEN - + COUNT ( * ) * - 27 + + 61 END * - MAX ( - + 23 ) * 29 + - 96 + 52
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + MAX( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8109
SELECT + MAX ( ALL - 11 )
----
-11

query I rowsort
SELECT 76 * - + 97 * + 13
----
-95836

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT 66 DIV ( 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT 66 / ( 53 )
----
1

query II rowsort
SELECT ALL - 85 - - 35 + - ( 16 ) AS col2, 83 AS col2
----
-66
83

query II rowsort
SELECT ALL 70, + 55 AS col1
----
70
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8114
SELECT ALL + 85 - 41 * + 52 - - + 8 AS col1, + CAST( NULL AS SIGNED ) col2
----
-2039
NULL

skipif mysql # not compatible
query II rowsort label-8114
SELECT ALL + 85 - 41 * + 52 - - + 8 AS col1, + CAST ( NULL AS INTEGER ) col2
----
-2039
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL 71 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL 71 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL - 58 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - 58 / + 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT - - 85 col0, - 86 * + 56 * + - COUNT( * ) AS col1
----
85
4816

skipif mysql # not compatible
query II rowsort label-8117
SELECT - - 85 col0, - 86 * + 56 * + - COUNT ( * ) AS col1
----
85
4816

query II rowsort
SELECT 75 AS col1, 95 * - + 16
----
75
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - COALESCE ( - 75, 8 + - COUNT( ALL 91 ) - + 96 )
----
75

skipif mysql # not compatible
query I rowsort label-8119
SELECT - COALESCE ( - 75, 8 + - COUNT ( ALL 91 ) - + 96 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8120
SELECT ALL 47 AS col0, NULLIF ( + 52, + COUNT( * ) ) DIV - 89 + 22
----
47
22

skipif mysql # not compatible
query II rowsort label-8120
SELECT ALL 47 AS col0, NULLIF ( + 52, + COUNT ( * ) ) / - 89 + 22
----
47
22

query I rowsort
SELECT - 72 + - 53 AS col1
----
-125

query II rowsort
SELECT ALL 69 AS col2, - 62 AS col2
----
69
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8123
SELECT DISTINCT 3, + CAST( + COUNT( * ) AS SIGNED ) + - 40 * + 49 * - - CAST( NULL AS SIGNED ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8123
SELECT DISTINCT 3, + CAST ( + COUNT ( * ) AS INTEGER ) + - 40 * + 49 * - - CAST ( NULL AS INTEGER ) AS col0
----
3
NULL

query II rowsort
SELECT ALL - 74, 69 + + 10 AS col2
----
-74
79

query I rowsort
SELECT + - 25 * - - 91
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL SUM( ALL - + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL SUM ( ALL - + 14 )
----
-14

query II rowsort
SELECT 67 AS col1, 45 AS col0
----
67
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT + COALESCE ( + - CASE 39 WHEN 81 + - + 18 + - ( CAST( NULL AS SIGNED ) ) * + - MAX( DISTINCT - 87 ) * 98 * 26 / CASE - - COUNT( - + 52 ) WHEN - 18 * 15 THEN - SUM( ALL + 75 ) END THEN NULL WHEN - 30 * 73 + 57 THEN + 6 ELSE NULL END, + - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8128
SELECT + COALESCE ( + - CASE 39 WHEN 81 + - + 18 + - ( CAST ( NULL AS INTEGER ) ) * + - MAX ( DISTINCT - 87 ) * 98 * 26 / CASE - - COUNT ( - + 52 ) WHEN - 18 * 15 THEN - SUM ( ALL + 75 ) END THEN NULL WHEN - 30 * 73 + 57 THEN + 6 ELSE NULL END, + - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + CASE WHEN + 47 BETWEEN NULL AND + 36 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + CASE WHEN + 47 BETWEEN NULL AND + 36 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - + ( + COALESCE ( + 91, - - 83 - + 52, + - 15 - + - COUNT( * ) * - 90 ) ) * - 62 - - 95 AS col1
----
5737

skipif mysql # not compatible
query I rowsort label-8130
SELECT - + ( + COALESCE ( + 91, - - 83 - + 52, + - 15 - + - COUNT ( * ) * - 90 ) ) * - 62 - - 95 AS col1
----
5737

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + COUNT( * ) * + NULLIF ( + 27, + 55 ) * + 88 AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-8131
SELECT + COUNT ( * ) * + NULLIF ( + 27, + 55 ) * + 88 AS col0
----
2376

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT - - 14 DIV - + 38 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-8132
SELECT - - 14 / - + 38 + + - 15
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8133
SELECT 4, CAST( NULL AS SIGNED ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8133
SELECT 4, CAST ( NULL AS INTEGER ) AS col1
----
4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT ALL - - 6 DIV COUNT( * ) * 82
----
492

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - - 6 / COUNT ( * ) * 82
----
492

query I rowsort
SELECT + 97 * + + 3
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COALESCE ( + 28, + 0, - + MIN( DISTINCT + 74 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COALESCE ( + 28, + 0, - + MIN ( DISTINCT + 74 ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + 28 * + - 39 + - 52 * COUNT( * )
----
-1144

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + 28 * + - 39 + - 52 * COUNT ( * )
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + MAX( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-8138
SELECT + MAX ( DISTINCT 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT 16 * - - 82 * - + 8 * - COUNT( * ) + SUM( DISTINCT + + 13 ) col0
----
10509

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT 16 * - - 82 * - + 8 * - COUNT ( * ) + SUM ( DISTINCT + + 13 ) col0
----
10509

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 35 * + - 51 + - + COUNT( * ) + - 23
----
-1809

skipif mysql # not compatible
query I rowsort label-8140
SELECT 35 * + - 51 + - + COUNT ( * ) + - 23
----
-1809

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8141
SELECT DISTINCT 84 DIV + SUM( + 93 ) col2, 30 * COUNT( DISTINCT 45 ) - + ( + + 20 ) + - NULLIF ( + 92, + COUNT( * ) DIV + 79 * MAX( + 37 ) DIV + MAX( DISTINCT - + 10 ) - 51 ) + - 17 * - 30 AS col1
----
0
428

skipif mysql # not compatible
query II rowsort label-8141
SELECT DISTINCT 84 / + SUM ( + 93 ) col2, 30 * COUNT ( DISTINCT 45 ) - + ( + + 20 ) + - NULLIF ( + 92, + COUNT ( * ) / + 79 * MAX ( + 37 ) / + MAX ( DISTINCT - + 10 ) - 51 ) + - 17 * - 30 AS col1
----
0
428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8142
SELECT + COUNT( * ) * - COALESCE ( + 37, + + 36 * + + 57 + + - COUNT( * ) - + 26 + + COALESCE ( + 11, - 87 ) + - 61, - 9 DIV 56 * - 19 * + NULLIF ( 87, - - 25 ) * + - COUNT( * ) + - + 63 * + + ( + 94 ) + - 9 )
----
-37

skipif mysql # not compatible
query I rowsort label-8142
SELECT + COUNT ( * ) * - COALESCE ( + 37, + + 36 * + + 57 + + - COUNT ( * ) - + 26 + + COALESCE ( + 11, - 87 ) + - 61, - 9 / 56 * - 19 * + NULLIF ( 87, - - 25 ) * + - COUNT ( * ) + - + 63 * + + ( + 94 ) + - 9 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT ALL ( - 41 ) DIV + 40 - + 92 * - - COUNT( + + 78 ) * - 79 + + - 83 + 65 DIV + 34
----
7185

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL ( - 41 ) / + 40 - + 92 * - - COUNT ( + + 78 ) * - 79 + + - 83 + 65 / + 34
----
7185

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT + COUNT( * ) + 8 * - - 86
----
689

skipif mysql # not compatible
query I rowsort label-8144
SELECT + COUNT ( * ) + 8 * - - 86
----
689

query I rowsort
SELECT + 83 * + COALESCE ( - + 54, - + 11 ) col2
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + 0 + + COUNT( ALL + 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 0 + + COUNT ( ALL + 37 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL MAX( ALL 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL MAX ( ALL 30 )
----
30

query I rowsort
SELECT DISTINCT 41 * - + 68 AS col1
----
-2788

query II rowsort
SELECT + 47 * 70 col2, - 59 * + 1
----
3290
-59

query I rowsort
SELECT ALL - 54 * 66 * + 84
----
-299376

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL MIN( 54 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL MIN ( 54 ) col1
----
54

query II rowsort
SELECT - ( 11 ) AS col0, - 76
----
-11
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8153
SELECT - 90 + - 53 AS col0, CAST( NULL AS SIGNED ) col0
----
-143
NULL

skipif mysql # not compatible
query II rowsort label-8153
SELECT - 90 + - 53 AS col0, CAST ( NULL AS INTEGER ) col0
----
-143
NULL

query I rowsort
SELECT DISTINCT - CASE - 77 WHEN + 4 THEN + 73 * + 33 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT ALL + 14 * 91 * SUM( DISTINCT CAST( + + 57 AS SIGNED ) )
----
72618

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + 14 * 91 * SUM ( DISTINCT CAST ( + + 57 AS INTEGER ) )
----
72618

query I rowsort
SELECT DISTINCT + + 21 + + - 74 AS col2
----
-53

query I rowsort
SELECT ALL - CASE + + 54 WHEN 38 THEN + AVG ( ALL + 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT + 43 + - + 59 + - SUM( DISTINCT + ( - 96 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT + 43 + - + 59 + - SUM ( DISTINCT + ( - 96 ) ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8159
SELECT DISTINCT + COUNT( * ) DIV + 43 AS col0, + 72 + - ( - CAST( NULL AS SIGNED ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8159
SELECT DISTINCT + COUNT ( * ) / + 43 AS col0, + 72 + - ( - CAST ( NULL AS INTEGER ) )
----
0
NULL

query I rowsort
SELECT - + 10 * - 29 + - - 10 + + ( 74 ) * + ( - - 28 ) + - + 91 AS col0
----
2281

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL + 99 * - - SUM( DISTINCT + - 48 ) + - MIN( + 3 ) * - + 85
----
-4497

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL + 99 * - - SUM ( DISTINCT + - 48 ) + - MIN ( + 3 ) * - + 85
----
-4497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT + CASE COUNT( * ) WHEN + CAST( + 21 AS SIGNED ) * + - 42 THEN NULL WHEN 62 + 16 * + - 0 + - SUM( DISTINCT + 78 ) THEN NULL WHEN 72 * + + 4 THEN NULL WHEN + 35 THEN - - 43 * - CASE + 42 WHEN - - AVG ( ALL 88 ) / + + 11 THEN NULL ELSE + 78 END + COUNT( DISTINCT - + 14 ) END + 92 + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + CASE COUNT ( * ) WHEN + CAST ( + 21 AS INTEGER ) * + - 42 THEN NULL WHEN 62 + 16 * + - 0 + - SUM ( DISTINCT + 78 ) THEN NULL WHEN 72 * + + 4 THEN NULL WHEN + 35 THEN - - 43 * - CASE + 42 WHEN - - AVG ( ALL 88 ) / + + 11 THEN NULL ELSE + 78 END + COUNT ( DISTINCT - + 14 ) END + 92 + - 0
----
NULL

query I rowsort
SELECT DISTINCT - + 46 + + - 4 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT ALL + 49 + + + 85 + - 13 DIV - + 54
----
134

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 49 + + + 85 + - 13 / - + 54
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - 73 * COUNT( * ) * - NULLIF ( 45, - COUNT( * ) + - 63 ) / - - NULLIF ( ( CASE + + 65 WHEN + - 30 * + COUNT( * ) THEN NULL WHEN + ( - ( COUNT( * ) ) ) THEN 82 * + 22 + + 72 WHEN - COUNT( * ) THEN NULL ELSE NULL END ), + 97 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 73 * COUNT ( * ) * - NULLIF ( 45, - COUNT ( * ) + - 63 ) / - - NULLIF ( ( CASE + + 65 WHEN + - 30 * + COUNT ( * ) THEN NULL WHEN + ( - ( COUNT ( * ) ) ) THEN 82 * + 22 + + 72 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ), + 97 ) col1
----
NULL

query I rowsort
SELECT ALL + 38 * + - 76 * + 55 AS col2
----
-158840

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT + 45 DIV - - 38 + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + 45 / - - 38 + - 19
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT DISTINCT - 52 DIV + 43 + - 76 + - COUNT( * ) + + - 8 * 67
----
-614

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - 52 / + 43 + - 76 + - COUNT ( * ) + + - 8 * 67
----
-614

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT DISTINCT - - 17 DIV - 88 + 67
----
67

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - - 17 / - 88 + 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT ALL + COUNT( * ) DIV + - 97 * + - 41 + - - 29 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + COUNT ( * ) / + - 97 * + - 41 + - - 29 / - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT DISTINCT 12 DIV + 98 + - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT 12 / + 98 + - + 39
----
-39

query I rowsort
SELECT + COALESCE ( + 46, - + 30 * - 71, - + 80 - + - 68 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + SUM( ALL - + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + SUM ( ALL - + 59 ) AS col1
----
-59

query II rowsort
SELECT + 38, 65 * + 30 AS col0
----
38
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - COUNT( * ) + - 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8175
SELECT - COUNT ( * ) + - 1 AS col2
----
-2

query I rowsort
SELECT - 31 * 10
----
-310

query I rowsort
SELECT ALL 24 * - 7 - ( - 11 ) col0
----
-157

query II rowsort
SELECT + COALESCE ( 89, + + 47 ) AS col1, + 49 + 95
----
89
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL 61 * + CAST( NULL AS SIGNED ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 61 * + CAST ( NULL AS INTEGER ) - - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT + COALESCE ( + - 80, + 20, COUNT( * ) DIV + 77 + 39 + - - COUNT( * ) + - MAX( DISTINCT 86 ) * - 56 + - + MAX( 93 ) + - - COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8180
SELECT + COALESCE ( + - 80, + 20, COUNT ( * ) / + 77 + 39 + - - COUNT ( * ) + - MAX ( DISTINCT 86 ) * - 56 + - + MAX ( 93 ) + - - COUNT ( * ) )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8181
SELECT CASE 4 WHEN - 26 THEN NULL WHEN - + 95 * - CAST( + - 31 AS SIGNED ) / + 33 * + 99 + - 13 THEN + - 50 * - 42 END AS col0, 82 col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-8181
SELECT CASE 4 WHEN - 26 THEN NULL WHEN - + 95 * - CAST ( + - 31 AS INTEGER ) / + 33 * + 99 + - 13 THEN + - 50 * - 42 END AS col0, 82 col1
----
NULL
82

query I rowsort
SELECT + ( - ( 69 ) ) * - 88
----
6072

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT + 29 * COUNT( * ) * 55 AS col2, 10
----
1595
10

skipif mysql # not compatible
query II rowsort label-8183
SELECT + 29 * COUNT ( * ) * 55 AS col2, 10
----
1595
10

query I rowsort
SELECT + 27 - ( - 20 ) AS col2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8185
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) + + + 25 * 36 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + ( + CAST ( NULL AS REAL ) ) + + + 25 * 36 * - 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8186
SELECT 24 DIV + CAST( 62 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT 24 / + CAST ( 62 AS INTEGER ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL - 94 + COUNT( 9 )
----
-93

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - 94 + COUNT ( 9 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT - MAX( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - MAX ( 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT NULLIF ( CAST( NULL AS SIGNED ), 62 - - 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 62 - - 22 ) AS col2
----
NULL

query I rowsort
SELECT ALL 51 + 21 AS col0
----
72

query I rowsort
SELECT 4 + + 50
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8192
SELECT - COALESCE ( ( + 42 ), + 31 + - + 24 * + ( + 58 ) ) + - - SUM( ALL - 10 ) + + CAST( NULL AS SIGNED ) + SUM( DISTINCT + 71 ) - 60 col0, 64 + - COUNT( * ) AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-8192
SELECT - COALESCE ( ( + 42 ), + 31 + - + 24 * + ( + 58 ) ) + - - SUM ( ALL - 10 ) + + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + 71 ) - 60 col0, 64 + - COUNT ( * ) AS col1
----
NULL
63

query I rowsort
SELECT 93 * 4
----
372

query I rowsort
SELECT ALL + 53 + + + ( - + 23 ) + - 20
----
10

query I rowsort
SELECT + 57 + + + ( + 93 ) AS col1
----
150

query I rowsort
SELECT DISTINCT 36 + - 2 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT - 61, 24 * + SUM( DISTINCT - 75 ) AS col2
----
-61
-1800

skipif mysql # not compatible
query II rowsort label-8197
SELECT - 61, 24 * + SUM ( DISTINCT - 75 ) AS col2
----
-61
-1800

query II rowsort
SELECT DISTINCT 72, 95 AS col1
----
72
95

query I rowsort
SELECT ALL - + 52 - + 76
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT COALESCE ( + 39, - 78 * - 11 * - + MIN( DISTINCT - + 49 ) )
----
39

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT COALESCE ( + 39, - 78 * - 11 * - + MIN ( DISTINCT - + 49 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT 65 + + 66 * - + COUNT( - - ( + + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8201
SELECT 65 + + 66 * - + COUNT ( - - ( + + 88 ) )
----
-1

query I rowsort
SELECT 52 * - 79 col2
----
-4108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT ALL + ( + 88 ) DIV + MAX( + 95 ) - 94 * 86
----
-8084

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + ( + 88 ) / + MAX ( + 95 ) - 94 * 86
----
-8084

onlyif mysql # DIV for integer division: 
query II rowsort label-8204
SELECT 71 DIV - ( + - 30 ) + 99 AS col2, 25 AS col1
----
101
25

skipif mysql # not compatible
query II rowsort label-8204
SELECT 71 / - ( + - 30 ) + 99 AS col2, 25 AS col1
----
101
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT COUNT( * ) * + COUNT( * ) + + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-8205
SELECT COUNT ( * ) * + COUNT ( * ) + + - 28
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8206
SELECT DISTINCT + 43 * - COUNT( * ) DIV + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + 43 * - COUNT ( * ) / + COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT ALL + 34 * - 48 AS col1
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 49 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 49 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 89 * + 97 * - 60 AS col0
----
517980

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT ALL 95 DIV + - 9 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL 95 / + - 9 AS col2
----
-10

query I rowsort
SELECT 85 * + NULLIF ( - + 10, NULLIF ( - - 83, 93 - + + 46 * - 25 ) + + 17 * - + 50 + + 83 )
----
-850

query I rowsort
SELECT DISTINCT - NULLIF ( 23, + - 38 + + + 86 * - + 16 * + 11 * - - 6 / - 89 ) AS col0
----
-23

query I rowsort
SELECT 1 - + + 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL + COUNT( * ) + + - 55 + + ( + 8 ) + - 80 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + COUNT ( * ) + + - 55 + + ( + 8 ) + - 80 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 93 + - - COUNT( * ) + + 43 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8215
SELECT 93 + - - COUNT ( * ) + + 43 AS col2
----
137

query I rowsort
SELECT DISTINCT + 65 * - 63 + + 20 AS col2
----
-4075

query I rowsort
SELECT - 92 * 55 col2
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + NULLIF ( 51, + + 64 + COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + NULLIF ( 51, + + 64 + COUNT ( * ) ) col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8219
SELECT CAST( NULL AS SIGNED ) * - - 15 AS col0, + 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8219
SELECT CAST ( NULL AS INTEGER ) * - - 15 AS col0, + 73
----
NULL
73

query I rowsort
SELECT DISTINCT COALESCE ( - 7, 65 ) + + 73 * - 95
----
-6942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL CAST( NULL AS SIGNED ) - - 26 * NULLIF ( - 96, + COUNT( * ) / - - NULLIF ( + 12, - 96 ) ) + ( - 82 ) + + + ( + COUNT( * ) ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL CAST ( NULL AS INTEGER ) - - 26 * NULLIF ( - 96, + COUNT ( * ) / - - NULLIF ( + 12, - 96 ) ) + ( - 82 ) + + + ( + COUNT ( * ) ) + - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL - CASE + 18 WHEN + + 60 * - 47 - - + 41 THEN - SUM( + 21 ) WHEN - - COUNT( DISTINCT 56 ) THEN + COUNT( * ) * - - ( + + SUM( ALL + ( - - ( + 57 ) ) ) ) END * MIN( 33 ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - CASE + 18 WHEN + + 60 * - 47 - - + 41 THEN - SUM ( + 21 ) WHEN - - COUNT ( DISTINCT 56 ) THEN + COUNT ( * ) * - - ( + + SUM ( ALL + ( - - ( + 57 ) ) ) ) END * MIN ( 33 ) * 89
----
NULL

query I rowsort
SELECT DISTINCT - 99 - + - 49 col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT CAST( - COUNT( - + 15 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8224
SELECT CAST ( - COUNT ( - + 15 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ( - + 70 ) * - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8225
SELECT ( - + 70 ) * - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT 67 * - 10 * - COUNT( ALL + 27 )
----
670

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT 67 * - 10 * - COUNT ( ALL + 27 )
----
670

query I rowsort
SELECT ALL 26 - + 60 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 95 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT + 91 DIV + + 16 - - 59 - 78 DIV 6
----
51

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 91 / + + 16 - - 59 - 78 / 6
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT + 29 DIV 44 + - + ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-8230
SELECT + 29 / 44 + - + ( 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT MIN( DISTINCT - - 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8231
SELECT MIN ( DISTINCT - - 5 ) AS col1
----
5

query I rowsort
SELECT - ( - 34 ) * + + 1 + + 17 + + - ( COALESCE ( 59, - 14 ) ) + - 37
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT 5 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT 5 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT 75 DIV 31 * + 11
----
22

skipif mysql # not compatible
query I rowsort label-8234
SELECT 75 / 31 * + 11
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL COALESCE ( + 29, + 26 ) * - 86 * + 40 + 91 + COUNT( DISTINCT + - 15 )
----
-99668

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL COALESCE ( + 29, + 26 ) * - 86 * + 40 + 91 + COUNT ( DISTINCT + - 15 )
----
-99668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL - CASE - ( + 44 ) WHEN + 50 + - COUNT( * ) + + 2 / COALESCE ( COUNT( * ), 2 ) - - CAST( NULL AS SIGNED ) THEN NULL ELSE + - COUNT( * ) * + 3 + COALESCE ( 0, COALESCE ( - 3, - 98 ) + 48 + - 3 ) END
----
3

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - CASE - ( + 44 ) WHEN + 50 + - COUNT ( * ) + + 2 / COALESCE ( COUNT ( * ), 2 ) - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + - COUNT ( * ) * + 3 + COALESCE ( 0, COALESCE ( - 3, - 98 ) + 48 + - 3 ) END
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT - MIN( + - 13 ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - MIN ( + - 13 ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 65 * 46 * 51 + 33
----
152523

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - 12 * MIN( + + 95 ) AS col1
----
-1140

skipif mysql # not compatible
query I rowsort label-8239
SELECT - 12 * MIN ( + + 95 ) AS col1
----
-1140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8240
SELECT - 88 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 88 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 56 * + + 27 * - + 30 + - 16 + - ( + - 14 ) AS col2
----
45358

query II rowsort
SELECT 39 AS col2, + 45
----
39
45

query I rowsort
SELECT ALL - + 52 + 68 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT CAST( 26 AS SIGNED ) * + COUNT( * ) + + 95 - 96 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8244
SELECT CAST ( 26 AS INTEGER ) * + COUNT ( * ) + + 95 - 96 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8245
SELECT + 33 AS col2, 67 - + CASE WHEN NOT NULL <> ( NULL ) THEN + 97 WHEN 0 * - 69 < ( COUNT( * ) * 3 + COUNT( * ) ) THEN NULL ELSE NULL END * - 92
----
33
NULL

skipif mysql # not compatible
query II rowsort label-8245
SELECT + 33 AS col2, 67 - + CASE WHEN NOT NULL <> ( NULL ) THEN + 97 WHEN 0 * - 69 < ( COUNT ( * ) * 3 + COUNT ( * ) ) THEN NULL ELSE NULL END * - 92
----
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT ALL + - 39 + - NULLIF ( - 80, + ( - - 43 ) * + CASE - - ( - CAST( - + 99 AS SIGNED ) ) WHEN + 58 THEN + 30 ELSE + - 88 END + + - 54 ) - 90
----
-49

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + - 39 + - NULLIF ( - 80, + ( - - 43 ) * + CASE - - ( - CAST ( - + 99 AS INTEGER ) ) WHEN + 58 THEN + 30 ELSE + - 88 END + + - 54 ) - 90
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - ( - - MIN( 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-8247
SELECT - ( - - MIN ( 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT NULLIF ( 50, - - ( + COUNT( * ) ) / 63 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8248
SELECT NULLIF ( 50, - - ( + COUNT ( * ) ) / 63 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - MAX( + - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-8249
SELECT - MAX ( + - 5 )
----
5

query I rowsort
SELECT DISTINCT 65 * 15 AS col0
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT DISTINCT - 9 DIV - ( - 28 ) + + + ( - + MIN( ALL - 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - 9 / - ( - 28 ) + + + ( - + MIN ( ALL - 57 ) )
----
57

query I rowsort
SELECT DISTINCT - + 97 * + - 36 + + NULLIF ( + - 43, + - 62 )
----
3449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT CAST( - 7 AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - SUM( 83 ) - 30 * COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - SUM ( 83 ) - 30 * COUNT ( * )
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT - + 95 + + 67 + - CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - + 95 + + 67 + - CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - 21 + - 30 + + 66 + 91
----
148

query I rowsort
SELECT + - ( - 22 ) - + 0 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8258
SELECT ALL - COUNT( * ) AS col0, 14
----
-1
14

skipif mysql # not compatible
query II rowsort label-8258
SELECT ALL - COUNT ( * ) AS col0, 14
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - COUNT( * ) * 48 + + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8259
SELECT - COUNT ( * ) * 48 + + COUNT ( * ) AS col0
----
-47

query I rowsort
SELECT - + 46 + 98 + + 26 * - - 17 + + 18 - + 33 AS col2
----
479

query I rowsort
SELECT DISTINCT ( 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8262
SELECT ALL 88, COUNT( * ) DIV 96 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL 88, COUNT ( * ) / 96 AS col2
----
88
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8263
SELECT DISTINCT 49 DIV 4
----
12

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT 49 / 4
----
12

query I rowsort
SELECT ALL 72 * + - ( + 57 )
----
-4104

query I rowsort
SELECT ALL 84 * + 24 * + 63 * - 10
----
-1270080

query I rowsort
SELECT ALL 42 + + 74 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT CAST( + ( - + 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-8267
SELECT CAST ( + ( - + 33 ) AS INTEGER )
----
-33

query I rowsort
SELECT + 66 * + - 50 AS col1
----
-3300

query I rowsort
SELECT - 80 * + + 61 + 4
----
-4876

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - 43 / - + 28 * + 42 + + 72 + - 47 + + + CASE + + 33 WHEN + 8 THEN NULL WHEN + 96 + - MIN( - 14 ) * 90 THEN 97 END * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - 43 / - + 28 * + 42 + + 72 + - 47 + + + CASE + + 33 WHEN + 8 THEN NULL WHEN + 96 + - MIN ( - 14 ) * 90 THEN 97 END * + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT ALL - 76 DIV - ( - + COUNT( * ) ) + + 94
----
18

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - 76 / - ( - + COUNT ( * ) ) + + 94
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT + 71 * 91 DIV - + 85 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8272
SELECT + 71 * 91 / - + 85 AS col2
----
-76

query II rowsort
SELECT ALL + 40 AS col1, + 47
----
40
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - NULLIF ( - + 98, - 65 ) * + 72 * - 46 * - NULLIF ( - + MAX( ALL + 98 ), + 10 ) * - COUNT( * ) * + COUNT( * ) + - 36 * - MIN( ALL - 19 ) + + + 25 - + - 19
----
31807808

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - NULLIF ( - + 98, - 65 ) * + 72 * - 46 * - NULLIF ( - + MAX ( ALL + 98 ), + 10 ) * - COUNT ( * ) * + COUNT ( * ) + - 36 * - MIN ( ALL - 19 ) + + + 25 - + - 19
----
31807808

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + + COUNT( * ) + + - SUM( + + NULLIF ( + 28, - 76 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8275
SELECT + + COUNT ( * ) + + - SUM ( + + NULLIF ( + 28, - 76 ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT - MIN( ALL + - 60 ) * + COALESCE ( - 82, + - 61 ) * + - 45 - CASE + 87 WHEN 99 THEN - 32 * - 51 WHEN - + 77 * + 21 THEN + 15 / + COUNT( + - ( + + 62 ) ) * - NULLIF ( - - ( + - 57 ), + COUNT( * ) ) + + 73 - 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT - MIN ( ALL + - 60 ) * + COALESCE ( - 82, + - 61 ) * + - 45 - CASE + 87 WHEN 99 THEN - 32 * - 51 WHEN - + 77 * + 21 THEN + 15 / + COUNT ( + - ( + + 62 ) ) * - NULLIF ( - - ( + - 57 ), + COUNT ( * ) ) + + 73 - 79 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8277
SELECT - 43 - + + 23 AS col1, COALESCE ( ( - CAST( NULL AS SIGNED ) ), + - 13 * 48 )
----
-66
-624

skipif mysql # not compatible
query II rowsort label-8277
SELECT - 43 - + + 23 AS col1, COALESCE ( ( - CAST ( NULL AS INTEGER ) ), + - 13 * 48 )
----
-66
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL + 94 * - - 98 * - 97 - - 65 * - - 1 * - 37 * - + ( - 57 ) + 29 + NULLIF ( + - COUNT( * ), - - 46 + 70 + - 10 - + 28 ) * - - 88
----
-1030708

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + 94 * - - 98 * - 97 - - 65 * - - 1 * - 37 * - + ( - 57 ) + 29 + NULLIF ( + - COUNT ( * ), - - 46 + 70 + - 10 - + 28 ) * - - 88
----
-1030708

query I rowsort
SELECT ALL + NULLIF ( - 97, - NULLIF ( + - 87, - ( 35 ) ) )
----
-97

query I rowsort
SELECT - 1 * - - 79 - - 55 AS col0
----
-24

query I rowsort
SELECT ALL 70 / - NULLIF ( - + CASE - 95 WHEN + + 98 THEN + 88 ELSE NULL END, - + 17 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL - MAX( DISTINCT 49 ) * 91 * - 95 AS col0
----
423605

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - MAX ( DISTINCT 49 ) * 91 * - 95 AS col0
----
423605

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - 10 + + MAX( 62 ) + + 75
----
127

skipif mysql # not compatible
query I rowsort label-8283
SELECT - 10 + + MAX ( 62 ) + + 75
----
127

query I rowsort
SELECT ALL + ( 81 ) * + 31 AS col2
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL + - COUNT( + 48 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + - COUNT ( + 48 ) col0
----
-1

query I rowsort
SELECT - + 85 + + 56 col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT - + 94 DIV 80
----
-1

skipif mysql # not compatible
query I rowsort label-8287
SELECT - + 94 / 80
----
-1

query I rowsort
SELECT - - ( + 69 )
----
69

query II rowsort
SELECT 90, - 72 AS col0
----
90
-72

query II rowsort
SELECT 19 * + COALESCE ( 29, 98, 39 * ( + 63 ) + + - COALESCE ( + 57, - 50 ) ) + - 32 AS col0, - 1
----
519
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8291
SELECT - CAST( 68 AS SIGNED ) AS col1, ( + 26 ) col2
----
-68
26

skipif mysql # not compatible
query II rowsort label-8291
SELECT - CAST ( 68 AS INTEGER ) AS col1, ( + 26 ) col2
----
-68
26

query I rowsort
SELECT ALL NULLIF ( - 16, + - 32 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT - + COUNT( * ) * + + CASE - + 5 WHEN + + 40 * + COUNT( ALL + 90 ) THEN + 26 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT - + COUNT ( * ) * + + CASE - + 5 WHEN + + 40 * + COUNT ( ALL + 90 ) THEN + 26 END * 89
----
NULL

query II rowsort
SELECT ALL 14 AS col1, 44 AS col2
----
14
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL 79 * COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 79 * COUNT ( * ) col1
----
79

query I rowsort
SELECT ALL - 39 * + 50 col1
----
-1950

query I rowsort
SELECT ALL 96 * + ( + 41 ) * 72
----
283392

query I rowsort
SELECT - 2 * + - 1 * 54 col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT - 30 + - SUM( 74 )
----
-104

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - 30 + - SUM ( 74 )
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8300
SELECT ALL CAST( - 37 AS SIGNED ) AS col1, - 35 * - 25 + - - ( 99 )
----
-37
974

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL CAST ( - 37 AS INTEGER ) AS col1, - 35 * - 25 + - - ( 99 )
----
-37
974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT - 49 - + 0 + COUNT( * ) / + CAST( NULL AS SIGNED ) * 23 + AVG ( 26 ) * + 98 * + - 70 + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT - 49 - + 0 + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 23 + AVG ( 26 ) * + 98 * + - 70 + + 98
----
NULL

query I rowsort
SELECT - ( + - ( - + 31 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT 79 / - CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT 79 / - CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 89 + 35 - 62 col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT 95 - + COUNT( - 44 ) DIV + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8305
SELECT 95 - + COUNT ( - 44 ) / + COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT COUNT( * ) * - + CAST( + 99 AS SIGNED ) * + 33
----
-3267

skipif mysql # not compatible
query I rowsort label-8306
SELECT COUNT ( * ) * - + CAST ( + 99 AS INTEGER ) * + 33
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT MAX( - 29 ) + + + 60
----
31

skipif mysql # not compatible
query I rowsort label-8307
SELECT MAX ( - 29 ) + + + 60
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) / + ( COUNT( * ) ) + - 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + ( COUNT ( * ) ) + - 66 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + ( + - 88 ) - 69 + + - COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + ( + - 88 ) - 69 + + - COUNT ( * )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL 2 * + 80 * + COUNT( * ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 2 * + 80 * + COUNT ( * ) AS col2
----
160

query I rowsort
SELECT 68 + + + 50 AS col0
----
118

query I rowsort
SELECT + NULLIF ( + - 64, 47 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL - COUNT( * ) * - 76 - 68 + - COUNT( * ) * - CAST( NULL AS SIGNED ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL - COUNT ( * ) * - 76 - 68 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - 1 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 1 * COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT + 10 - - 76 DIV + 48
----
11

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 10 - - 76 / + 48
----
11

query I rowsort
SELECT DISTINCT + 77 * - + 11
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - COUNT( * ) * COUNT( * ) + - ( 57 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - ( 57 ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8318
SELECT CASE 6 WHEN 72 * 39 + 5 * - - 59 THEN NULL WHEN + COUNT( * ) / NULLIF ( + COUNT( * ), 7 / - + ( + CAST( NULL AS DECIMAL ) ) * 57 - - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN 6 END - + ( MAX( ALL 32 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT CASE 6 WHEN 72 * 39 + 5 * - - 59 THEN NULL WHEN + COUNT ( * ) / NULLIF ( + COUNT ( * ), 7 / - + ( + CAST ( NULL AS REAL ) ) * 57 - - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN 6 END - + ( MAX ( ALL 32 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + NULLIF ( + COUNT( * ), - COUNT( * ) + 14 * - + NULLIF ( 20, - 7 * + 70 / - 93 ) ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + NULLIF ( + COUNT ( * ), - COUNT ( * ) + 14 * - + NULLIF ( 20, - 7 * + 70 / - 93 ) ) * - 79
----
-79

query I rowsort
SELECT DISTINCT - 74 * - 6 + - ( + + 50 )
----
394

query I rowsort
SELECT DISTINCT 8 + - + 26
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT 22, COALESCE ( 95, COALESCE ( + + COUNT( * ), + 33 + - 87 ) ) AS col0
----
22
95

skipif mysql # not compatible
query II rowsort label-8322
SELECT 22, COALESCE ( 95, COALESCE ( + + COUNT ( * ), + 33 + - 87 ) ) AS col0
----
22
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL + 81 + - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + 81 + - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8324
SELECT 95 - COALESCE ( + NULLIF ( NULLIF ( + 70, 20 ), + - 61 ), - - 93 ) AS col1, + CASE + + 27 WHEN + - 40 / 63 + + SUM( + 51 ) THEN + - 43 + + 93 ELSE - - 37 END * COUNT( * ) * - 79 AS col0
----
25
-2923

skipif mysql # not compatible
query II rowsort label-8324
SELECT 95 - COALESCE ( + NULLIF ( NULLIF ( + 70, 20 ), + - 61 ), - - 93 ) AS col1, + CASE + + 27 WHEN + - 40 / 63 + + SUM ( + 51 ) THEN + - 43 + + 93 ELSE - - 37 END * COUNT ( * ) * - 79 AS col0
----
25
-2923

query II rowsort
SELECT ALL 87, + 82 AS col1
----
87
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT 69 + 33 + ( + COUNT( * ) ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8326
SELECT 69 + 33 + ( + COUNT ( * ) ) AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT 5 - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8327
SELECT 5 - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT 79 + + 11 AS col0
----
90

query I rowsort
SELECT DISTINCT 66 + + 37 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT 4 + + 46 + COALESCE ( - 44, - NULLIF ( + + 68, + MAX( 55 ) ) * + ( - - 49 ) + 92 + + + 46 * - + 30, ( COUNT( DISTINCT + 7 ) ) + - MIN( ALL + 50 ) DIV + 58 ) * - 40
----
1810

skipif mysql # not compatible
query I rowsort label-8330
SELECT 4 + + 46 + COALESCE ( - 44, - NULLIF ( + + 68, + MAX ( 55 ) ) * + ( - - 49 ) + 92 + + + 46 * - + 30, ( COUNT ( DISTINCT + 7 ) ) + - MIN ( ALL + 50 ) / + 58 ) * - 40
----
1810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT COALESCE ( + 52, + - 65 ) * - + CAST( - + 88 AS SIGNED ) AS col2
----
4576

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT COALESCE ( + 52, + - 65 ) * - + CAST ( - + 88 AS INTEGER ) AS col2
----
4576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT 14 + - + 64 - SUM( DISTINCT 83 ) + 46 - + CAST( - + ( - 62 ) AS SIGNED )
----
-149

skipif mysql # not compatible
query I rowsort label-8332
SELECT 14 + - + 64 - SUM ( DISTINCT 83 ) + 46 - + CAST ( - + ( - 62 ) AS INTEGER )
----
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT 85 * - + NULLIF ( + 80, + + 57 * + 68 - ( + AVG ( 48 ) ) ), COALESCE ( + - 24, - - COUNT( * ) ) AS col1
----
-6800
-24

skipif mysql # not compatible
query II rowsort label-8333
SELECT 85 * - + NULLIF ( + 80, + + 57 * + 68 - ( + AVG ( 48 ) ) ), COALESCE ( + - 24, - - COUNT ( * ) ) AS col1
----
-6800
-24

query I rowsort
SELECT 91 + 19
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL - CAST( - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - CAST ( - 82 AS INTEGER )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT 46 DIV - 33 + ( ( + 35 ) ) * + 31 + - 70 * + 28
----
-876

skipif mysql # not compatible
query I rowsort label-8336
SELECT 46 / - 33 + ( ( + 35 ) ) * + 31 + - 70 * + 28
----
-876

query I rowsort
SELECT DISTINCT + 88 * 40 + - 52
----
3468

query I rowsort
SELECT 70 + 22 AS col0
----
92

query II rowsort
SELECT DISTINCT - - NULLIF ( 84, 40 ) AS col2, + 29 AS col1
----
84
29

query I rowsort
SELECT DISTINCT 31 - + + 48 - - 60 * + 23
----
1363

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT ALL + 5 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + 5 / - 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT 8 DIV - 97 - + 87 + 23 * COUNT( * ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-8342
SELECT 8 / - 97 - + 87 + 23 * COUNT ( * ) col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT + 49 DIV COUNT( * ) DIV 91 - - + COUNT( * ) + - 95 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 49 / COUNT ( * ) / 91 - - + COUNT ( * ) + - 95 / 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8344
SELECT DISTINCT + CAST( + - 99 AS SIGNED ) * - COUNT( * ) * - ( + COALESCE ( 22, 3 * 14 + + - 21 DIV - - 83 DIV - MAX( ALL + - NULLIF ( - + 28, - - 89 ) ) ) )
----
-2178

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT + CAST ( + - 99 AS INTEGER ) * - COUNT ( * ) * - ( + COALESCE ( 22, 3 * 14 + + - 21 / - - 83 / - MAX ( ALL + - NULLIF ( - + 28, - - 89 ) ) ) )
----
-2178

query I rowsort
SELECT ALL ( - 82 ) * 52 * + + 14
----
-59696

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - 69 * + 90 + - MIN( 31 ) + - 55 * - + 50 * - - 52 AS col1
----
136759

skipif mysql # not compatible
query I rowsort label-8346
SELECT - 69 * + 90 + - MIN ( 31 ) + - 55 * - + 50 * - - 52 AS col1
----
136759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT + CAST( NULL AS SIGNED ) + + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT + CAST ( NULL AS INTEGER ) + + - 31 AS col1
----
NULL

query II rowsort
SELECT + 31 AS col2, + 84 * + 10
----
31
840

query I rowsort
SELECT - 8 + - 59
----
-67

query I rowsort
SELECT ALL 77 * 45
----
3465

query I rowsort
SELECT ALL - + 82 col2
----
-82

query II rowsort
SELECT DISTINCT - 40 + + - 20 * + 55 AS col2, - 65 AS col2
----
-1140
-65

query I rowsort
SELECT DISTINCT - 29 + + 47
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT 2 + + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 2 + + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT ALL 20 DIV - COUNT( - COALESCE ( - 90, - 98, ( 76 ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL 20 / - COUNT ( - COALESCE ( - 90, - 98, ( 76 ) ) )
----
-20

query I rowsort
SELECT - 31 + 52 + - - 73 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT SUM( + 84 ) + + 32 * - + 25 * 23 AS col0
----
-18316

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT SUM ( + 84 ) + + 32 * - + 25 * 23 AS col0
----
-18316

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - 13 + + + 2 + - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL - 13 + + + 2 + - COUNT ( * ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT - COALESCE ( CAST( NULL AS SIGNED ), 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8359
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL SUM( + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL SUM ( + 31 ) AS col2
----
31

query I rowsort
SELECT DISTINCT 95 * + 26 AS col1
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT CASE + - ( + 56 ) WHEN - 54 / - ( ( + + 34 ) ) * - - SUM( 53 ) + 10 THEN - - SUM( DISTINCT - + ( 97 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT CASE + - ( + 56 ) WHEN - 54 / - ( ( + + 34 ) ) * - - SUM ( 53 ) + 10 THEN - - SUM ( DISTINCT - + ( 97 ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 59 - - + 94 AS col0, 81
----
153
81

query I rowsort
SELECT + ( + 31 ) - + + 83
----
-52

query II rowsort
SELECT - 41 * 71 AS col0, - 15
----
-2911
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT ALL SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT SUM( DISTINCT + - 78 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT SUM ( DISTINCT + - 78 ) col2
----
-78

query I rowsort
SELECT DISTINCT COALESCE ( - 13, + 39 + - 8 ) col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8369
SELECT ALL + 51 - - + 25 + + 84 - MIN( - 55 ) * COALESCE ( - - 97, + 77 * - 24 * 48 * - ( + 58 ) DIV + + COUNT( * ), - - ( - - CAST( - 35 AS SIGNED ) ) + + 92 + - 53, + 22 ) AS col0, - 32 * + 89 AS col1
----
5495
-2848

skipif mysql # not compatible
query II rowsort label-8369
SELECT ALL + 51 - - + 25 + + 84 - MIN ( - 55 ) * COALESCE ( - - 97, + 77 * - 24 * 48 * - ( + 58 ) / + + COUNT ( * ), - - ( - - CAST ( - 35 AS INTEGER ) ) + + 92 + - 53, + 22 ) AS col0, - 32 * + 89 AS col1
----
5495
-2848

query II rowsort
SELECT - 5 * - 8 AS col0, + 78 * + 19 * - + 44 * 2 * - 92 * - 29
----
40
-347949888

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - - MAX( + 42 ) - + - 27 * - + 71 AS col2
----
-1875

skipif mysql # not compatible
query I rowsort label-8371
SELECT - - MAX ( + 42 ) - + - 27 * - + 71 AS col2
----
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT - 47 * 20 - - - 10 DIV + + 25
----
-940

skipif mysql # not compatible
query I rowsort label-8372
SELECT - 47 * 20 - - - 10 / + + 25
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL + 3 * - COUNT( * ) * - 92
----
276

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + 3 * - COUNT ( * ) * - 92
----
276

query I rowsort
SELECT - 90 * - 18
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + - MAX( DISTINCT - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + - MAX ( DISTINCT - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT + - CASE - 27 WHEN + + 35 THEN - + ( - 77 ) WHEN - 66 THEN 53 * 14 WHEN + - COUNT( * ) * 90 * + - COUNT( * ) * - - ( - 19 ) + + - 99 - CASE + 19 WHEN 30 THEN COUNT( * ) * - COUNT( DISTINCT - 15 ) WHEN + - 88 THEN 29 END THEN - 44 * + 37 * COUNT( ALL - 58 ) END * + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT + - CASE - 27 WHEN + + 35 THEN - + ( - 77 ) WHEN - 66 THEN 53 * 14 WHEN + - COUNT ( * ) * 90 * + - COUNT ( * ) * - - ( - 19 ) + + - 99 - CASE + 19 WHEN 30 THEN COUNT ( * ) * - COUNT ( DISTINCT - 15 ) WHEN + - 88 THEN 29 END THEN - 44 * + 37 * COUNT ( ALL - 58 ) END * + + 17
----
NULL

query I rowsort
SELECT ALL + ( + 83 ) * 42 * - - 29
----
101094

query II rowsort
SELECT - - 37 * 20, 72 + + 38 * - 30 - + 42 AS col2
----
740
-1110

query I rowsort
SELECT ALL 25 * + - 12 + ( 46 ) AS col2
----
-254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8380
SELECT ALL ( + 56 ) * - + COUNT( * ) + - 74 * + NULLIF ( + 51, - 9 / - 64 ) + + + 25 + - 73 + - + COUNT( * ) + CAST( NULL AS DECIMAL ) * + - CAST( + 15 AS SIGNED ) * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL ( + 56 ) * - + COUNT ( * ) + - 74 * + NULLIF ( + 51, - 9 / - 64 ) + + + 25 + - 73 + - + COUNT ( * ) + CAST ( NULL AS REAL ) * + - CAST ( + 15 AS INTEGER ) * 24 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8381
SELECT + 19 DIV + 59 * + + MAX( + ( CAST( + - 10 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT + 19 / + 59 * + + MAX ( + ( CAST ( + - 10 AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8382
SELECT ALL + 58 * - COUNT( * ) + - - 33 DIV + 40 AS col1, + 89 AS col1
----
-58
89

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL + 58 * - COUNT ( * ) + - - 33 / + 40 AS col1, + 89 AS col1
----
-58
89

query I rowsort
SELECT - + 10 - - 3
----
-7

query I rowsort
SELECT + - 5 * + 60 * 99
----
-29700

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + + 93 * - 9 + + 29 * - ( + - 7 ) * + COUNT( * ) + 70 * - + 0 AS col0
----
-634

skipif mysql # not compatible
query I rowsort label-8385
SELECT + + 93 * - 9 + + 29 * - ( + - 7 ) * + COUNT ( * ) + 70 * - + 0 AS col0
----
-634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT + CASE - 32 WHEN + - 26 THEN 66 * - + 92 * - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT + CASE - 32 WHEN + - 26 THEN 66 * - + 92 * - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL 20 * + - MAX( ALL 58 ) AS col0
----
-1160

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL 20 * + - MAX ( ALL 58 ) AS col0
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT COUNT( ALL + - 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8388
SELECT COUNT ( ALL + - 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + 8 * COUNT( * ) * + - 78 * - 4 AS col0
----
2496

skipif mysql # not compatible
query I rowsort label-8389
SELECT + 8 * COUNT ( * ) * + - 78 * - 4 AS col0
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL - 67 * + COUNT( * ) * - 65 + 45
----
4400

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - 67 * + COUNT ( * ) * - 65 + 45
----
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT + CAST( NULL AS SIGNED ) - - 22 * 67 * - 43 - - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT + CAST ( NULL AS INTEGER ) - - 22 * 67 * - 43 - - - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + 9 * 94 * - - MIN( ALL + - 79 ) AS col1
----
-66834

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + 9 * 94 * - - MIN ( ALL + - 79 ) AS col1
----
-66834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT + COUNT( + 15 ) - + CAST( NULL AS SIGNED ) / + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( + 15 ) - + CAST ( NULL AS INTEGER ) / + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL COUNT( 12 ) - - + 45 * - 69 + + - 30
----
-3134

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL COUNT ( 12 ) - - + 45 * - 69 + + - 30
----
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT MIN( 36 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-8395
SELECT MIN ( 36 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - COUNT( DISTINCT 50 ) + - ( 6 )
----
-7

skipif mysql # not compatible
query I rowsort label-8396
SELECT - COUNT ( DISTINCT 50 ) + - ( 6 )
----
-7

query II rowsort
SELECT ALL 52 AS col2, + ( - 80 )
----
52
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT + 42 - + 13 DIV + 81 * - + 66
----
42

skipif mysql # not compatible
query I rowsort label-8398
SELECT + 42 - + 13 / + 81 * - + 66
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + 53 * CASE WHEN NOT ( NOT + SUM( 35 ) IS NOT NULL ) THEN NULL WHEN 71 IN ( - + 1, + SUM( + 2 ), + AVG ( + 76 ), + + 75 * + 39 ) THEN - CASE - 57 WHEN - 87 + 17 THEN NULL WHEN - 17 THEN 57 + COALESCE ( - - AVG ( 50 ), - 20, - - 37 ) + + - 72 * - - 11 + + 63 * + - 30 * - + 39 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 53 * CASE WHEN NOT ( NOT + SUM ( 35 ) IS NOT NULL ) THEN NULL WHEN 71 IN ( - + 1, + SUM ( + 2 ), + AVG ( + 76 ), + + 75 * + 39 ) THEN - CASE - 57 WHEN - 87 + 17 THEN NULL WHEN - 17 THEN 57 + COALESCE ( - - AVG ( 50 ), - 20, - - 37 ) + + - 72 * - - 11 + + 63 * + - 30 * - + 39 END ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT - 18 - - + NULLIF ( - 23, + - 83 + - AVG ( DISTINCT + 22 ) ) - 35 * - + 87 - + 86 - - ( - MIN( ALL + 36 ) ) * - + 48 * + MAX( - 38 ) * + - 95 * 33 * + COUNT( + 60 ) - - COALESCE ( - - 41, + 63, - + 27 + 11 ) * - - 29 * ( + - 96 ) * 98 DIV + 87 + + 63 * + 55 - - COUNT( * ) + + - 95 + - - COALESCE ( + + 23, + + 64 * 1 + - 57 ) DIV - + 65 + 76
----
205734429

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 18 - - + NULLIF ( - 23, + - 83 + - AVG ( DISTINCT + 22 ) ) - 35 * - + 87 - + 86 - - ( - MIN ( ALL + 36 ) ) * - + 48 * + MAX ( - 38 ) * + - 95 * 33 * + COUNT ( + 60 ) - - COALESCE ( - - 41, + 63, - + 27 + 11 ) * - - 29 * ( + - 96 ) * 98 / + 87 + + 63 * + 55 - - COUNT ( * ) + + - 95 + - - COALESCE ( + + 23, + + 64 * 1 + - 57 ) / - + 65 + 76
----
205734429

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8401
SELECT + 88 + + 8 DIV + + 41 + + ( - - 58 ) + - + ( + + 55 ) + + COUNT( * ) * + 20 + 38 * 66 * - MIN( 46 ) + + ( 73 ) + - 77 - - + ( + NULLIF ( + + 13, 47 * - 56 ) ) AS col1, + SUM( + 76 )
----
-115248
76

skipif mysql # not compatible
query II rowsort label-8401
SELECT + 88 + + 8 / + + 41 + + ( - - 58 ) + - + ( + + 55 ) + + COUNT ( * ) * + 20 + 38 * 66 * - MIN ( 46 ) + + ( 73 ) + - 77 - - + ( + NULLIF ( + + 13, 47 * - 56 ) ) AS col1, + SUM ( + 76 )
----
-115248
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT + 6 DIV - + 64 * - - COUNT( 7 )
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 6 / - + 64 * - - COUNT ( 7 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT ALL 12 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 12 / + 54 AS col0
----
0

query I rowsort
SELECT + 82 + - + 39
----
43

query I rowsort
SELECT ALL CASE + COALESCE ( 93, + 88 - - 62 ) WHEN - - 12 THEN - 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT NULLIF ( - - COUNT( + - 89 ), + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT NULLIF ( - - COUNT ( + - 89 ), + 54 ) AS col2
----
1

query I rowsort
SELECT + 58 + - 1 + 52
----
109

query I rowsort
SELECT ALL 34 * - 3 * - 87 col0
----
8874

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8409
SELECT - + CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT - + CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL + 63 * CAST( NULL AS SIGNED ) * + 98 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL + 63 * CAST ( NULL AS INTEGER ) * + 98 + + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8411
SELECT - - COUNT( ALL - 61 ) * + COALESCE ( - + 60, CAST( - 2 AS SIGNED ) * - 45, - SUM( DISTINCT - + 96 ) ) * SUM( ALL 4 ) DIV 41 - 63 + + 90 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8411
SELECT - - COUNT ( ALL - 61 ) * + COALESCE ( - + 60, CAST ( - 2 AS INTEGER ) * - 45, - SUM ( DISTINCT - + 96 ) ) * SUM ( ALL 4 ) / 41 - 63 + + 90 AS col2
----
22

query I rowsort
SELECT + 27 + - + 20 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + + SUM( ALL 7 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + + SUM ( ALL 7 ) col2
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-8414
SELECT + 90 DIV - 9 + + 93 AS col2, ( - 33 )
----
83
-33

skipif mysql # not compatible
query II rowsort label-8414
SELECT + 90 / - 9 + + 93 AS col2, ( - 33 )
----
83
-33

query I rowsort
SELECT - 10 * + 69
----
-690

query I rowsort
SELECT + 54 * - - 98 AS col2
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - COUNT( * ) * + - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8417
SELECT - COUNT ( * ) * + - 27 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8418
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - MIN( 31 )
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-8418
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - MIN ( 31 )
----
NULL
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT + 54 DIV 88 * CASE - NULLIF ( - ( 97 ), + + 71 ) WHEN - CAST( NULL AS SIGNED ) * 84 DIV + 57 THEN NULL WHEN + ( - 37 ) THEN - + COUNT( * ) ELSE + CAST( + COUNT( * ) AS SIGNED ) END + ( + 18 ) * + - NULLIF ( SUM( + 51 ), + - 98 ) * + + ( - - 72 ) AS col2
----
-66096

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + 54 / 88 * CASE - NULLIF ( - ( 97 ), + + 71 ) WHEN - CAST ( NULL AS INTEGER ) * 84 / + 57 THEN NULL WHEN + ( - 37 ) THEN - + COUNT ( * ) ELSE + CAST ( + COUNT ( * ) AS INTEGER ) END + ( + 18 ) * + - NULLIF ( SUM ( + 51 ), + - 98 ) * + + ( - - 72 ) AS col2
----
-66096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT - 2 * + 29 * + CAST( NULL AS SIGNED ) + - - 89 + + 67 / MIN( + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 2 * + 29 * + CAST ( NULL AS INTEGER ) + - - 89 + + 67 / MIN ( + 52 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) / CAST( NULL AS SIGNED ) + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) / CAST ( NULL AS INTEGER ) + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT + - COUNT( * ) + + 25 * 61 * + 27 * + 20, 0 AS col1
----
823499
0

skipif mysql # not compatible
query II rowsort label-8422
SELECT + - COUNT ( * ) + + 25 * 61 * + 27 * + 20, 0 AS col1
----
823499
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT - COUNT( + ( - + 68 ) ) AS col0, 15
----
-1
15

skipif mysql # not compatible
query II rowsort label-8423
SELECT - COUNT ( + ( - + 68 ) ) AS col0, 15
----
-1
15

query I rowsort
SELECT ALL - + ( + - NULLIF ( CASE - 77 WHEN - 35 THEN - - 18 ELSE NULL END, - 55 ) ) * 99 + + 91
----
NULL

query I rowsort
SELECT - - 65 + + + 19 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT - - 68 + - COUNT( * ) + 18 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - - 68 + - COUNT ( * ) + 18 AS col2
----
85

query I rowsort
SELECT ALL + + 6 + - 22
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL - 49 - - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - 49 - - COUNT ( * )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT 13 * 96 DIV + 89 + + + 10 - + 86 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8429
SELECT 13 * 96 / + 89 + + + 10 - + 86 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT - MAX( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT - MAX ( - - 37 )
----
-37

query II rowsort
SELECT DISTINCT - 66, 50 col1
----
-66
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL 66 / + 1 * + 36 * + CAST( NULL AS SIGNED ) * + 50 * + - MIN( DISTINCT - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL 66 / + 1 * + 36 * + CAST ( NULL AS INTEGER ) * + 50 * + - MIN ( DISTINCT - 14 )
----
NULL

query I rowsort
SELECT 4 + 1 * 30
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL - SUM( 18 ) - 43 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - SUM ( 18 ) - 43 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - ( + COUNT( DISTINCT + 62 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - ( + COUNT ( DISTINCT + 62 ) ) AS col2
----
-1

query I rowsort
SELECT - 66 * + 54 + + 39
----
-3525

query I rowsort
SELECT 85 * + 88 * - + 83
----
-620840

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 23 * ( + - COUNT( * ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8438
SELECT 23 * ( + - COUNT ( * ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT ALL - 23 DIV - - 22 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 23 / - - 22 * COUNT ( * )
----
-1

query I rowsort
SELECT 1 * + CASE + 31 WHEN + 93 THEN - 73 ELSE NULL END * - + 12 + + - 77 AS col2
----
NULL

query I rowsort
SELECT 46 * + 85
----
3910

query I rowsort
SELECT DISTINCT 59 * + 99 AS col0
----
5841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8443
SELECT ALL - MAX( - 43 ) * - 0 + - ( + - 48 ) DIV - CAST( + 64 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - MAX ( - 43 ) * - 0 + - ( + - 48 ) / - CAST ( + 64 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 23 * 22
----
506

query I rowsort
SELECT 48 * - 90 * + - 88 AS col2
----
380160

query II rowsort
SELECT + COALESCE ( + + 55, 20 - + + 59 ) - + 65 * - 84 AS col2, - 52 * + - 76
----
5515
3952

query II rowsort
SELECT - + 14 AS col0, - 60 * - 86 AS col1
----
-14
5160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8448
SELECT ALL - 58, CAST( 12 AS SIGNED ) DIV + 8 AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-8448
SELECT ALL - 58, CAST ( 12 AS INTEGER ) / + 8 AS col0
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - 11 * - + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8449
SELECT - 11 * - + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT 17 - + 22 AS col2
----
-5

query I rowsort
SELECT DISTINCT + 43 + + - 14 - - - ( + + 49 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - COUNT( * ) + + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-8452
SELECT - COUNT ( * ) + + - 96
----
-97

query I rowsort
SELECT 6 * - - 56 * - + 52 col0
----
-17472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL CASE 51 WHEN + CAST( NULL AS SIGNED ) THEN - 41 * + - COALESCE ( - + 43, - 62 ) WHEN - CASE 76 WHEN + 54 THEN COALESCE ( + 89, 94 ) * - 8 ELSE NULL END * + - 61 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + - 17 THEN + ( 42 ) END / 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL CASE 51 WHEN + CAST ( NULL AS INTEGER ) THEN - 41 * + - COALESCE ( - + 43, - 62 ) WHEN - CASE 76 WHEN + 54 THEN COALESCE ( + 89, 94 ) * - 8 ELSE NULL END * + - 61 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 17 THEN + ( 42 ) END / 82 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT 37 + - - 65 + CAST( - + COALESCE ( ( - + 85 ), - 6, - 85 + + + 93 ) AS SIGNED ) AS col0
----
187

skipif mysql # not compatible
query I rowsort label-8455
SELECT 37 + - - 65 + CAST ( - + COALESCE ( ( - + 85 ), - 6, - 85 + + + 93 ) AS INTEGER ) AS col0
----
187

query I rowsort
SELECT DISTINCT 86 * - + 52 * + - 55 AS col0
----
245960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8457
SELECT ALL + 35 + - + COUNT( * ) * 92 * + + 16 AS col0, - CAST( NULL AS DECIMAL ) AS col2
----
-1437
NULL

skipif mysql # not compatible
query II rowsort label-8457
SELECT ALL + 35 + - + COUNT ( * ) * 92 * + + 16 AS col0, - CAST ( NULL AS REAL ) AS col2
----
-1437
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + ( COUNT( * ) ) + + 49 * COUNT( DISTINCT + 55 )
----
50

skipif mysql # not compatible
query I rowsort label-8458
SELECT + ( COUNT ( * ) ) + + 49 * COUNT ( DISTINCT + 55 )
----
50

query I rowsort
SELECT DISTINCT + 24 + 49
----
73

query I rowsort
SELECT ALL - 60 * + - ( - 62 ) * + 8 AS col2
----
-29760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8461
SELECT COUNT( * ) DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT COUNT ( * ) / + + 84
----
0

query I rowsort
SELECT 96 * 74 + 29 - + - CASE + NULLIF ( + 27, + 67 ) WHEN + 28 THEN NULL WHEN + 79 THEN + + 10 * - 22 + - + 82 END + + 43 * - 79
----
NULL

query I rowsort
SELECT DISTINCT ( + ( + 93 ) ) * + 77 AS col1
----
7161

query I rowsort
SELECT 65 * - 49
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + 62 * ( 49 ) + 50 + + COUNT( * )
----
3089

skipif mysql # not compatible
query I rowsort label-8465
SELECT + 62 * ( 49 ) + 50 + + COUNT ( * )
----
3089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT 14 DIV - + 41 + COUNT( * ) + - - 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-8466
SELECT 14 / - + 41 + COUNT ( * ) + - - 99 AS col2
----
100

query I rowsort
SELECT DISTINCT - 36 * 25 AS col2
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL + ( + 6 ) - - COUNT( ALL - + 82 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + ( + 6 ) - - COUNT ( ALL - + 82 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8469
SELECT DISTINCT - COALESCE ( + 43, NULLIF ( + 68, + COUNT( * ) * 86 - + 36 / 94 * + CAST( NULL AS SIGNED ) ) * - 14 * ( - + 78 ) ), 71 * + COALESCE ( 18, + 10 * - + 70 ) col1
----
-43
1278

skipif mysql # not compatible
query II rowsort label-8469
SELECT DISTINCT - COALESCE ( + 43, NULLIF ( + 68, + COUNT ( * ) * 86 - + 36 / 94 * + CAST ( NULL AS INTEGER ) ) * - 14 * ( - + 78 ) ), 71 * + COALESCE ( 18, + 10 * - + 70 ) col1
----
-43
1278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT DISTINCT - COUNT( * ) * 59 DIV - 66 * + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - COUNT ( * ) * 59 / - 66 * + 26 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - CASE CAST( 90 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN - + 79 + - COUNT( * ) THEN NULL ELSE + ( NULLIF ( 58, 1 ) ) + - 51 + ( + 39 ) * + 59 END AS col0
----
-2308

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - CASE CAST ( 90 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN - + 79 + - COUNT ( * ) THEN NULL ELSE + ( NULLIF ( 58, 1 ) ) + - 51 + ( + 39 ) * + 59 END AS col0
----
-2308

query I rowsort
SELECT + 24 * + 10 + + + 2
----
242

query I rowsort
SELECT 4 + 38
----
42

query I rowsort
SELECT ALL - 19 * + 9 AS col2
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT 10 DIV + 39 * - - 76
----
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT 10 / + 39 * - - 76
----
0

query I rowsort
SELECT 20 - - - 17 col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8477
SELECT 29 - - 66 * + 18 DIV - COUNT( * )
----
-1159

skipif mysql # not compatible
query I rowsort label-8477
SELECT 29 - - 66 * + 18 / - COUNT ( * )
----
-1159

query I rowsort
SELECT ALL - 29 + + + 92
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT 45 * + - CAST( - + 91 AS SIGNED ) AS col1
----
4095

skipif mysql # not compatible
query I rowsort label-8479
SELECT 45 * + - CAST ( - + 91 AS INTEGER ) AS col1
----
4095

onlyif mysql # aggregate syntax: 
query II rowsort label-8480
SELECT DISTINCT - ( + 29 ) + ( + - MAX( + 10 ) ) col1, NULLIF ( + 21, - 10 ) AS col0
----
-39
21

skipif mysql # not compatible
query II rowsort label-8480
SELECT DISTINCT - ( + 29 ) + ( + - MAX ( + 10 ) ) col1, NULLIF ( + 21, - 10 ) AS col0
----
-39
21

query II rowsort
SELECT ALL - 29 + 28 AS col2, 37 AS col1
----
-1
37

query I rowsort
SELECT 29 + 28 + - - ( 60 )
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT 64 - ( - - 35 ), + 19 + - COUNT( * ) AS col0
----
29
18

skipif mysql # not compatible
query II rowsort label-8483
SELECT 64 - ( - - 35 ), + 19 + - COUNT ( * ) AS col0
----
29
18

query I rowsort
SELECT 31 + + 94
----
125

query II rowsort
SELECT - 83 - + + 87 AS col2, - 32 AS col2
----
-170
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT DISTINCT 57 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT 57 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL - - CAST( + 57 AS SIGNED ) + - COUNT( * ) * - 7 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - - CAST ( + 57 AS INTEGER ) + - COUNT ( * ) * - 7 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL - CAST( 94 AS SIGNED ) * - 95 * - 56 + + ( - 28 )
----
-500108

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - CAST ( 94 AS INTEGER ) * - 95 * - 56 + + ( - 28 )
----
-500108

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL - 6 + - COUNT( * ) + - 79 + + 49 * + - SUM( DISTINCT 99 ) * + + 21 col2
----
-101957

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - 6 + - COUNT ( * ) + - 79 + + 49 * + - SUM ( DISTINCT 99 ) * + + 21 col2
----
-101957

query I rowsort
SELECT ALL + ( + + 65 ) col2
----
65

query I rowsort
SELECT 0 + - + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - - 23 + 72 + + - 80 + MAX( - - 44 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8492
SELECT - - 23 + 72 + + - 80 + MAX ( - - 44 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8493
SELECT + 99 * + 62 AS col1, NULLIF ( - - 67, - 83 / 72 + - + CASE 39 WHEN - - 79 THEN - + 28 WHEN - + COUNT( * ) THEN - 40 + - COUNT( * ) ELSE - + 88 - 40 - + COUNT( * ) * - 40 END ) + + CAST( - 57 AS SIGNED ) - - + 10
----
6138
20

skipif mysql # not compatible
query II rowsort label-8493
SELECT + 99 * + 62 AS col1, NULLIF ( - - 67, - 83 / 72 + - + CASE 39 WHEN - - 79 THEN - + 28 WHEN - + COUNT ( * ) THEN - 40 + - COUNT ( * ) ELSE - + 88 - 40 - + COUNT ( * ) * - 40 END ) + + CAST ( - 57 AS INTEGER ) - - + 10
----
6138
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8494
SELECT + 43 DIV - 59 * 16 DIV + 9 + COUNT( * ) * - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8494
SELECT + 43 / - 59 * 16 / + 9 + COUNT ( * ) * - 21 AS col2
----
-21

query I rowsort
SELECT ALL + 9 * + 8 + 37 - + 87
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT 87 * + ( - + 82 ) * + - COUNT( * ) AS col0
----
7134

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT 87 * + ( - + 82 ) * + - COUNT ( * ) AS col0
----
7134

query I rowsort
SELECT + + 99 * - + ( - - 10 )
----
-990

query I rowsort
SELECT ALL + 88 * + 48
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - 80 * - COUNT( * ) + - 39 - - + ( + - 81 )
----
-40

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - 80 * - COUNT ( * ) + - 39 - - + ( + - 81 )
----
-40

query I rowsort
SELECT 22 * - ( - 79 ) + + ( + 29 )
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + MIN( ALL - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + MIN ( ALL - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8502
SELECT - COUNT( * ) DIV - + 27 + + 12 * - COUNT( * ) * - 9 + - - 59 + + NULLIF ( - + 24, - MAX( + 52 ) )
----
143

skipif mysql # not compatible
query I rowsort label-8502
SELECT - COUNT ( * ) / - + 27 + + 12 * - COUNT ( * ) * - 9 + - - 59 + + NULLIF ( - + 24, - MAX ( + 52 ) )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + ( COUNT( * ) ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT + ( COUNT ( * ) ) + + - COUNT ( * )
----
0

query I rowsort
SELECT CASE + 13 WHEN + 58 THEN - 94 * NULLIF ( - 7, + 67 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + COUNT( * ) + + - 24 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8505
SELECT + COUNT ( * ) + + - 24 AS col1
----
-23

query II rowsort
SELECT ALL + 65, 11 + 13 AS col0
----
65
24

query I rowsort
SELECT + 13 * + - 98 * ( 58 )
----
-73892

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT ALL ( - 70 ) DIV - 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL ( - 70 ) / - 69 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT 87 * 20 / + 43 + + - 65 + + CAST( NULL AS SIGNED ) + 29 * 33 * - - 63 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT 87 * 20 / + 43 + + - 65 + + CAST ( NULL AS INTEGER ) + 29 * 33 * - - 63 + + 91
----
NULL

query I rowsort
SELECT + 83 + - 72
----
11

query II rowsort
SELECT ALL + 65 AS col1, + 34
----
65
34

query I rowsort
SELECT - 59 + 86
----
27

query I rowsort
SELECT ALL + 88 * + 46
----
4048

query II rowsort
SELECT + 10, - 77 AS col1
----
10
-77

query II rowsort
SELECT - 13 AS col1, + 24 AS col0
----
-13
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL + 88 * - 97 * - CASE SUM( + + 36 ) WHEN - COUNT( * ) THEN NULL ELSE - - COALESCE ( + 4, + 40 + - - 85 ) + ( + + 44 ) END col2
----
409728

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 88 * - 97 * - CASE SUM ( + + 36 ) WHEN - COUNT ( * ) THEN NULL ELSE - - COALESCE ( + 4, + 40 + - - 85 ) + ( + + 44 ) END col2
----
409728

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT SUM( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8517
SELECT SUM ( + 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8518
SELECT - CAST( NULL AS SIGNED ) col2, - 87 DIV 23
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8518
SELECT - CAST ( NULL AS INTEGER ) col2, - 87 / 23
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT 85 + + + MIN( DISTINCT + 7 )
----
92

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT 85 + + + MIN ( DISTINCT + 7 )
----
92

query II rowsort
SELECT ALL 83 col2, - 82 * + 98
----
83
-8036

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - NULLIF ( + 7, - COUNT( * ) ) + - - 66 col2
----
59

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - NULLIF ( + 7, - COUNT ( * ) ) + - - 66 col2
----
59

query I rowsort
SELECT DISTINCT + ( - 6 ) + - ( - 49 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8523
SELECT - 43 + 19 + - - 37 + - CAST( 44 AS SIGNED ) DIV - - 68 * NULLIF ( + + 16, - - ( + MAX( DISTINCT 96 ) ) + + 94 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8523
SELECT - 43 + 19 + - - 37 + - CAST ( 44 AS INTEGER ) / - - 68 * NULLIF ( + + 16, - - ( + MAX ( DISTINCT 96 ) ) + + 94 ) AS col1
----
13

query I rowsort
SELECT - 56 * 1 - + ( + 93 )
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT - 45, ( - COALESCE ( + + 44, 97 ) ) + - 95 * - + COUNT( * ) - - COALESCE ( - + CAST( NULL AS SIGNED ), - 66 + + 38, + 8 + - + 7 ) + + - 58 + - NULLIF ( + - 56, - 38 ) * + 77 * + 35 AS col2
----
-45
150885

skipif mysql # not compatible
query II rowsort label-8525
SELECT - 45, ( - COALESCE ( + + 44, 97 ) ) + - 95 * - + COUNT ( * ) - - COALESCE ( - + CAST ( NULL AS INTEGER ), - 66 + + 38, + 8 + - + 7 ) + + - 58 + - NULLIF ( + - 56, - 38 ) * + 77 * + 35 AS col2
----
-45
150885

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT - COUNT( * ) - 33 col2
----
-34

skipif mysql # not compatible
query I rowsort label-8526
SELECT - COUNT ( * ) - 33 col2
----
-34

query I rowsort
SELECT ALL - 83 * - 91 col2
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - - 77 * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-8528
SELECT - - 77 * - COUNT ( * )
----
-77

query I rowsort
SELECT + - 72 + 20
----
-52

query II rowsort
SELECT ALL + - ( + 62 ) * - 8 AS col0, ( + 90 )
----
496
90

query I rowsort
SELECT DISTINCT + 80 - + 87
----
-7

query I rowsort
SELECT - 63 - ( + + 33 ) col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8533
SELECT DISTINCT + CAST( CAST( - + 22 AS SIGNED ) AS SIGNED ) AS col0, + 30 AS col2
----
-22
30

skipif mysql # not compatible
query II rowsort label-8533
SELECT DISTINCT + CAST ( CAST ( - + 22 AS INTEGER ) AS INTEGER ) AS col0, + 30 AS col2
----
-22
30

query I rowsort
SELECT + ( + NULLIF ( - 16, 11 ) ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT CAST( + MIN( 30 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-8535
SELECT CAST ( + MIN ( 30 ) AS INTEGER )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL ( - - 79 ) DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL ( - - 79 ) / 58
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT ALL - 48 / - 58 + - CAST( NULL AS SIGNED ) + + COUNT( * ) / - NULLIF ( 23, + NULLIF ( AVG ( - 82 ), 30 / COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - 48 / - 58 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - NULLIF ( 23, + NULLIF ( AVG ( - 82 ), 30 / COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT + ( + 75 ) AS col2, - COUNT( * ) AS col1
----
75
-1

skipif mysql # not compatible
query II rowsort label-8538
SELECT + ( + 75 ) AS col2, - COUNT ( * ) AS col1
----
75
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - SUM( ALL - + ( 43 ) ) * 61 + 77 DIV - + NULLIF ( - 21, - 63 ) AS col1
----
2626

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - SUM ( ALL - + ( 43 ) ) * 61 + 77 / - + NULLIF ( - 21, - 63 ) AS col1
----
2626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL COUNT( - 50 ) * - CASE + COUNT( * ) WHEN - 58 THEN - MAX( DISTINCT - - 1 ) * - COUNT( * ) - - 96 * + 13 * - + 80 WHEN + 6 * + + 84 THEN NULL WHEN COUNT( * ) * - + NULLIF ( + - 64, - 34 / CAST( NULL AS SIGNED ) * 26 + - COALESCE ( + + CAST( NULL AS SIGNED ), - 76, 3 + - 96 + - 99 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) ) + 69 * + 94 * + - 36 ) * - 42 THEN - 16 END + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL COUNT ( - 50 ) * - CASE + COUNT ( * ) WHEN - 58 THEN - MAX ( DISTINCT - - 1 ) * - COUNT ( * ) - - 96 * + 13 * - + 80 WHEN + 6 * + + 84 THEN NULL WHEN COUNT ( * ) * - + NULLIF ( + - 64, - 34 / CAST ( NULL AS INTEGER ) * 26 + - COALESCE ( + + CAST ( NULL AS INTEGER ), - 76, 3 + - 96 + - 99 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) ) + 69 * + 94 * + - 36 ) * - 42 THEN - 16 END + + 98
----
NULL

query I rowsort
SELECT + 36 * - - 61 AS col0
----
2196

query I rowsort
SELECT ALL - 21 * + 18 * - 11 + + + 6 + + 5
----
4169

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT + 0 + - + 1 * + 13 * - ( + 71 ) AS col1, - 7 * ( - + 29 ) + - + ( - CASE - 95 WHEN - + COUNT( DISTINCT + + 41 ) THEN - COUNT( * ) + + 26 + 0 * - 73 / + COUNT( * ) WHEN + 76 * + + ( + 42 ) * + + 11 * 22 THEN NULL END ) + - - 19 + + ( - 80 ) + + COUNT( ALL + - 85 ) - + 38 * + AVG ( + + 17 ) col0
----
923
NULL

skipif mysql # not compatible
query II rowsort label-8543
SELECT + 0 + - + 1 * + 13 * - ( + 71 ) AS col1, - 7 * ( - + 29 ) + - + ( - CASE - 95 WHEN - + COUNT ( DISTINCT + + 41 ) THEN - COUNT ( * ) + + 26 + 0 * - 73 / + COUNT ( * ) WHEN + 76 * + + ( + 42 ) * + + 11 * 22 THEN NULL END ) + - - 19 + + ( - 80 ) + + COUNT ( ALL + - 85 ) - + 38 * + AVG ( + + 17 ) col0
----
923
NULL

query I rowsort
SELECT - NULLIF ( + + 62, - - ( + 21 ) * + 91 ) * + 7 / + CASE - + 76 WHEN - 4 THEN - 61 * ( + 11 ) + + 46 END * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL 15 * - COUNT( * ) + + 86
----
71

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL 15 * - COUNT ( * ) + + 86
----
71

query II rowsort
SELECT + 93 - 67, - 22 AS col0
----
26
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * COUNT( + 85 ) + 7 + + 61 * - 32 + + - 45 * + 92 - COALESCE ( + + COALESCE ( 62, + 73 ), - 65 ) + COUNT( * ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * COUNT ( + 85 ) + 7 + + 61 * - 32 + + - 45 * + 92 - COALESCE ( + + COALESCE ( 62, + 73 ), - 65 ) + COUNT ( * ) * + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT CASE COUNT( * ) WHEN - 16 THEN - COUNT( * ) ELSE NULL END AS col1, - MAX( ALL 18 )
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-8548
SELECT CASE COUNT ( * ) WHEN - 16 THEN - COUNT ( * ) ELSE NULL END AS col1, - MAX ( ALL 18 )
----
NULL
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8549
SELECT - + MIN( DISTINCT - 8 ) AS col0, CAST( NULL AS SIGNED ) + + + COUNT( * )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8549
SELECT - + MIN ( DISTINCT - 8 ) AS col0, CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT + 54 * + COUNT( * ) AS col0, + COUNT( * ) * + 47 col1
----
54
47

skipif mysql # not compatible
query II rowsort label-8550
SELECT + 54 * + COUNT ( * ) AS col0, + COUNT ( * ) * + 47 col1
----
54
47

query I rowsort
SELECT + 98 + - - 16 AS col2
----
114

query II rowsort
SELECT DISTINCT + - 10 * 76, - 31 + - 58 col2
----
-760
-89

query I rowsort
SELECT + 81 - + ( 45 ) * - 84
----
3861

query II rowsort
SELECT - 20 * 16, + 72 AS col1
----
-320
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT DISTINCT + ( - - 73 ) * CAST( NULL AS SIGNED ) * + + 63 - - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + ( - - 73 ) * CAST ( NULL AS INTEGER ) * + + 63 - - - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT 50 + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT 50 + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT - COALESCE ( - + 99, + MAX( - 55 ) * + + COALESCE ( - 75, 83 - - + COALESCE ( - MIN( ALL - 92 ), - + COUNT( * ) ) + + 62 DIV - 77 DIV - 60 + 30 + - - 88 ) + + - 76 DIV - + COUNT( * ) DIV - 18 + - 63 )
----
99

skipif mysql # not compatible
query I rowsort label-8557
SELECT - COALESCE ( - + 99, + MAX ( - 55 ) * + + COALESCE ( - 75, 83 - - + COALESCE ( - MIN ( ALL - 92 ), - + COUNT ( * ) ) + + 62 / - 77 / - 60 + 30 + - - 88 ) + + - 76 / - + COUNT ( * ) / - 18 + - 63 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT - CAST( NULL AS SIGNED ) + - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT - CAST ( NULL AS INTEGER ) + - - 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT - 12 DIV - 71 + + COUNT( ALL 68 ) + + ( - 86 )
----
-85

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 12 / - 71 + + COUNT ( ALL 68 ) + + ( - 86 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8560
SELECT COUNT( * ) DIV + - 23 + 31 * + ( + - 36 ), NULLIF ( + 71, + 47 * + - CAST( NULL AS SIGNED ) ) AS col2
----
-1116
71

skipif mysql # not compatible
query II rowsort label-8560
SELECT COUNT ( * ) / + - 23 + 31 * + ( + - 36 ), NULLIF ( + 71, + 47 * + - CAST ( NULL AS INTEGER ) ) AS col2
----
-1116
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT + COUNT( * ) * + + 74
----
74

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT + COUNT ( * ) * + + 74
----
74

query I rowsort
SELECT ALL - 60 + + 65 + - 78 * 5 col1
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT 20 + - ( - COALESCE ( - COALESCE ( - - ( - 95 ), - - MAX( + 48 ) + - 88 * + ( + 24 ) * - + 29 DIV - + 3 ), - 81 ) )
----
115

skipif mysql # not compatible
query I rowsort label-8563
SELECT 20 + - ( - COALESCE ( - COALESCE ( - - ( - 95 ), - - MAX ( + 48 ) + - 88 * + ( + 24 ) * - + 29 / - + 3 ), - 81 ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT - 87 * - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - 87 * - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8565
SELECT ALL - CASE - 30 WHEN 22 + 98 THEN - - 87 + 8 DIV - 34 WHEN ( + COALESCE ( + 28, + 61 * + 96 * + COUNT( + + 45 ) - + + 88 * - + MIN( DISTINCT 14 ) ) ) THEN + 84 ELSE + 46 END
----
-46

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - CASE - 30 WHEN 22 + 98 THEN - - 87 + 8 / - 34 WHEN ( + COALESCE ( + 28, + 61 * + 96 * + COUNT ( + + 45 ) - + + 88 * - + MIN ( DISTINCT 14 ) ) ) THEN + 84 ELSE + 46 END
----
-46

query I rowsort
SELECT DISTINCT + 15 + 80
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8567
SELECT - 74 DIV + + COALESCE ( - NULLIF ( + + 36, + 7 * - 59 ), COALESCE ( - + CAST( + 10 AS SIGNED ), + COUNT( * ) ) * - 10 - + 58 DIV AVG ( 23 ) + + 56 + 23 ) + - 6 * - 26 * + 46 + - - 38 * - - 85
----
10408

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 74 / + + COALESCE ( - NULLIF ( + + 36, + 7 * - 59 ), COALESCE ( - + CAST ( + 10 AS INTEGER ), + COUNT ( * ) ) * - 10 - + 58 / AVG ( 23 ) + + 56 + 23 ) + - 6 * - 26 * + 46 + - - 38 * - - 85
----
10408

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT 19 * NULLIF ( COUNT( * ), - 11 ) * 3 col2
----
57

skipif mysql # not compatible
query I rowsort label-8568
SELECT 19 * NULLIF ( COUNT ( * ), - 11 ) * 3 col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT MAX( ALL + 15 ) + + 63 * + + MIN( DISTINCT - + 1 ) AS col0, + 93 + 86 * - + 16
----
-48
-1283

skipif mysql # not compatible
query II rowsort label-8569
SELECT MAX ( ALL + 15 ) + + 63 * + + MIN ( DISTINCT - + 1 ) AS col0, + 93 + 86 * - + 16
----
-48
-1283

query II rowsort
SELECT ALL - 3 col2, - 76 * + ( - 31 )
----
-3
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT 74 + ( + + ( COUNT( * ) ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8571
SELECT 74 + ( + + ( COUNT ( * ) ) ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), 1 ) + - - 53 + 38
----
92

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), 1 ) + - - 53 + 38
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT DISTINCT 29 DIV + + 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT 29 / + + 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - ( + SUM( DISTINCT + 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - ( + SUM ( DISTINCT + 77 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT 64 + - COUNT( * ) DIV 73 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8575
SELECT 64 + - COUNT ( * ) / 73 AS col0
----
64

query I rowsort
SELECT ALL 81 * - 78
----
-6318

query I rowsort
SELECT DISTINCT - 53 * 81 AS col2
----
-4293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8578
SELECT ALL 52 - - 31 DIV COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 52 - - 31 / COUNT ( * ) AS col0
----
83

query I rowsort
SELECT DISTINCT 87 - ( 0 ) * 89 AS col0
----
87

query I rowsort
SELECT ALL 45 * 27
----
1215

query I rowsort
SELECT 73 * + 32 AS col0
----
2336

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT COUNT( * ) + CASE - 18 WHEN 25 * MAX( DISTINCT 11 * 32 ) THEN 35 * + 32 WHEN - ( - 96 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT COUNT ( * ) + CASE - 18 WHEN 25 * MAX ( DISTINCT 11 * 32 ) THEN 35 * + 32 WHEN - ( - 96 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 81 * + ( + 64 )
----
5184

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT DISTINCT 15 DIV + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT 15 / + 44 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT DISTINCT 33 DIV - MAX( DISTINCT + 13 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT 33 / - MAX ( DISTINCT + 13 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT COALESCE ( - COUNT( * ), + ( NULLIF ( 83, + 67 + + 80 ) ) + - COUNT( * ) ) + 8 * 17
----
135

skipif mysql # not compatible
query I rowsort label-8586
SELECT COALESCE ( - COUNT ( * ), + ( NULLIF ( 83, + 67 + + 80 ) ) + - COUNT ( * ) ) + 8 * 17
----
135

query I rowsort
SELECT 14 * + 32 AS col1
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT CASE - COUNT( * ) WHEN + COALESCE ( 43, CAST( - 37 AS SIGNED ) ) * - 66 THEN 37 ELSE NULL END - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT CASE - COUNT ( * ) WHEN + COALESCE ( 43, CAST ( - 37 AS INTEGER ) ) * - 66 THEN 37 ELSE NULL END - + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT 98 + - ( SUM( ALL 50 ) + 92 * 79 ) DIV 59
----
-26

skipif mysql # not compatible
query I rowsort label-8589
SELECT 98 + - ( SUM ( ALL 50 ) + 92 * 79 ) / 59
----
-26

query I rowsort
SELECT 4 * 87
----
348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT 39 + + CASE ( - 45 ) WHEN + 47 + - CAST( NULL AS SIGNED ) THEN + 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT 39 + + CASE ( - 45 ) WHEN + 47 + - CAST ( NULL AS INTEGER ) THEN + 84 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 91 + + 17
----
-74

query I rowsort
SELECT ALL + 28 + + 90 * - 96 col0
----
-8612

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - MAX( - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8594
SELECT - MAX ( - 58 ) AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL 72 * ( CAST( NULL AS SIGNED ) * - CAST( - NULLIF ( 8, - ( 88 ) * 82 ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 72 * ( CAST ( NULL AS INTEGER ) * - CAST ( - NULLIF ( 8, - ( 88 ) * 82 ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT NULLIF ( 28, 45 ) + 1 DIV 48 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT NULLIF ( 28, 45 ) + 1 / 48 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT 33 - - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8597
SELECT 33 - - COUNT ( * ) AS col1
----
34

query I rowsort
SELECT DISTINCT 52 * + 15 + - 24 * - 67
----
2388

query I rowsort
SELECT - ( - 17 ) * 16 - 86
----
186

query I rowsort
SELECT 55 * + 57 AS col1
----
3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT - CASE - NULLIF ( + CAST( ( + 17 ) AS SIGNED ), COUNT( * ) ) WHEN 29 * - 96 THEN ( + 17 ) * - 80 WHEN 82 + - COUNT( * ) THEN 95 WHEN 42 + COUNT( + 16 ) THEN NULL ELSE + 71 * 37 END DIV + 69
----
-38

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - CASE - NULLIF ( + CAST ( ( + 17 ) AS INTEGER ), COUNT ( * ) ) WHEN 29 * - 96 THEN ( + 17 ) * - 80 WHEN 82 + - COUNT ( * ) THEN 95 WHEN 42 + COUNT ( + 16 ) THEN NULL ELSE + 71 * 37 END / + 69
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL - ( CASE + 69 WHEN + COUNT( * ) THEN 77 * + CASE 40 WHEN 63 / + 84 - 11 THEN NULL ELSE ( + 68 ) END ELSE - COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - ( CASE + 69 WHEN + COUNT ( * ) THEN 77 * + CASE 40 WHEN 63 / + 84 - 11 THEN NULL ELSE ( + 68 ) END ELSE - COUNT ( * ) END )
----
1

query I rowsort
SELECT 67 * + 19
----
1273

query I rowsort
SELECT ALL 63 * + ( + 17 ) - + 45 col0
----
1026

query I rowsort
SELECT 45 - + 66 AS col0
----
-21

query I rowsort
SELECT ALL - 66 * - 97 col1
----
6402

query I rowsort
SELECT 54 * - 83 col0
----
-4482

query I rowsort
SELECT 57 * + 98 AS col2
----
5586

query I rowsort
SELECT ALL - 66 * 70
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT 44 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8610
SELECT 44 + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + COUNT( - 53 ) * COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-8611
SELECT + COUNT ( - 53 ) * COUNT ( * ) + 25
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT + 27 * - ( 9 + + 13 DIV + 83 ) col0
----
-243

skipif mysql # not compatible
query I rowsort label-8612
SELECT + 27 * - ( 9 + + 13 / + 83 ) col0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + COUNT( + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT + COUNT ( + 85 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT - + ( 71 ) * SUM( ALL + CAST( ( 26 ) AS SIGNED ) ) AS col1
----
-1846

skipif mysql # not compatible
query I rowsort label-8614
SELECT - + ( 71 ) * SUM ( ALL + CAST ( ( 26 ) AS INTEGER ) ) AS col1
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + + COUNT( ALL - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + + COUNT ( ALL - 19 ) AS col2
----
1

query I rowsort
SELECT ALL + 21 * 10 col2
----
210

query I rowsort
SELECT - + 15 + 64 col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT + 21 * - CAST( NULL AS SIGNED ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + 21 * - CAST ( NULL AS INTEGER ) + + 7
----
NULL

query I rowsort
SELECT ALL + 71 + 69
----
140

query I rowsort
SELECT + + 65 + ( + 64 )
----
129

query I rowsort
SELECT ALL + - ( + 45 ) * - 76 col1
----
3420

query I rowsort
SELECT - 82 + + 23 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL CAST( NULL AS SIGNED ) * CASE COUNT( * ) WHEN 11 THEN NULL WHEN - 46 / - 76 THEN NULL WHEN - 40 * 35 THEN + 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL CAST ( NULL AS INTEGER ) * CASE COUNT ( * ) WHEN 11 THEN NULL WHEN - 46 / - 76 THEN NULL WHEN - 40 * 35 THEN + 43 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 26 + 81 AS col1
----
107

query I rowsort
SELECT - 96 + 11 col1
----
-85

query I rowsort
SELECT + 66 - - 4 * + ( + 68 )
----
338

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT + + 83 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT + + 83 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL + COUNT( * ) + + 67 col1
----
68

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + COUNT ( * ) + + 67 col1
----
68

query I rowsort
SELECT ( COALESCE ( 74, 73 * 58 ) ) AS col0
----
74

query I rowsort
SELECT ALL - ( 37 ) * 42
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL ( - COUNT( * ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL ( - COUNT ( * ) ) + COUNT ( * )
----
0

query I rowsort
SELECT + 67 * 67
----
4489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL ( - 21 ) DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL ( - 21 ) / COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8634
SELECT + 84 DIV - COUNT( * ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 84 / - COUNT ( * ) col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT CASE SUM( 17 ) WHEN ( COUNT( * ) ) + ( - COUNT( * ) ) * + 74 THEN - 75 ELSE 61 * CASE - 2 WHEN - COUNT( * ) * - 10 + 72 THEN NULL ELSE 79 END END + - CAST( 41 AS SIGNED )
----
4778

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT CASE SUM ( 17 ) WHEN ( COUNT ( * ) ) + ( - COUNT ( * ) ) * + 74 THEN - 75 ELSE 61 * CASE - 2 WHEN - COUNT ( * ) * - 10 + 72 THEN NULL ELSE 79 END END + - CAST ( 41 AS INTEGER )
----
4778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT - NULLIF ( - 6, - 73 * + 87 + + CAST( 50 + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-8636
SELECT - NULLIF ( - 6, - 73 * + 87 + + CAST ( 50 + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL ( ( + CASE 2 WHEN - MIN( DISTINCT + 78 ) + - 1 THEN NULL WHEN 43 * - 49 THEN 72 END ) ) + - ( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL ( ( + CASE 2 WHEN - MIN ( DISTINCT + 78 ) + - 1 THEN NULL WHEN 43 * - 49 THEN 72 END ) ) + - ( + 16 )
----
NULL

query I rowsort
SELECT + 48 + + NULLIF ( 52, 7 ) * 60 AS col1
----
3168

query I rowsort
SELECT + 7 * 48 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL COUNT( * ) * - 42 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL COUNT ( * ) * - 42 * + COUNT ( * )
----
-42

query I rowsort
SELECT + 24 + - ( 88 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + COUNT( * ) + + 34 * + 90 AS col0
----
3061

skipif mysql # not compatible
query I rowsort label-8642
SELECT + COUNT ( * ) + + 34 * + 90 AS col0
----
3061

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT ALL 91 DIV 23 - - 16
----
19

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL 91 / 23 - - 16
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL 71 * - 47 * COUNT( * ) AS col0
----
-3337

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL 71 * - 47 * COUNT ( * ) AS col0
----
-3337

query I rowsort
SELECT + 77 * 18 AS col2
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + COUNT( + - 79 ) + COUNT( ALL - 13 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8646
SELECT + COUNT ( + - 79 ) + COUNT ( ALL - 13 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT + COUNT( * ) * - 87 * + CAST( - COUNT( * ) * 2 AS SIGNED ) + + ( - 83 + - 15 * + 27 )
----
-314

skipif mysql # not compatible
query I rowsort label-8647
SELECT + COUNT ( * ) * - 87 * + CAST ( - COUNT ( * ) * 2 AS INTEGER ) + + ( - 83 + - 15 * + 27 )
----
-314

query I rowsort
SELECT + CASE - - 37 WHEN 77 * - 37 THEN NULL ELSE + 75 + - 64 * + 17 END AS col1
----
-1013

query I rowsort
SELECT - 23 + 86 - + 7 * 86 AS col0
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT SUM( ALL 70 ) DIV + 1 + - 35
----
35

skipif mysql # not compatible
query I rowsort label-8650
SELECT SUM ( ALL 70 ) / + 1 + - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT - ( CASE + 96 WHEN - 99 - + COUNT( * ) * + 31 THEN 44 ELSE + 31 END ) * - ( + MIN( 45 ) + + ( + 92 ) ) col1
----
4247

skipif mysql # not compatible
query I rowsort label-8651
SELECT - ( CASE + 96 WHEN - 99 - + COUNT ( * ) * + 31 THEN 44 ELSE + 31 END ) * - ( + MIN ( 45 ) + + ( + 92 ) ) col1
----
4247

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - - 5 + + - COUNT( * ) + - 98 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8652
SELECT - - 5 + + - COUNT ( * ) + - 98 * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + - SUM( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8653
SELECT + - SUM ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT + + 3 * + 32 - COUNT( * ) * 40 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + + 3 * + 32 - COUNT ( * ) * 40 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT - - 61 DIV - + 40 + - ( 30 ) * 43
----
-1291

skipif mysql # not compatible
query I rowsort label-8655
SELECT - - 61 / - + 40 + - ( 30 ) * 43
----
-1291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8656
SELECT ALL - 55 DIV + - CAST( - COUNT( ALL 80 ) AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - 55 / + - CAST ( - COUNT ( ALL 80 ) AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT ALL + ( - 44 ) * 60 + + 69
----
-2571

query I rowsort
SELECT - - 53 * + + 79 col0
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + - CASE - + SUM( DISTINCT 83 ) WHEN CASE 29 WHEN 29 THEN NULL WHEN 78 THEN - 90 END THEN + 1 + 77 * - 54 WHEN + 92 * + 80 + - MAX( DISTINCT - 10 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT + - CASE - + SUM ( DISTINCT 83 ) WHEN CASE 29 WHEN 29 THEN NULL WHEN 78 THEN - 90 END THEN + 1 + 77 * - 54 WHEN + 92 * + 80 + - MAX ( DISTINCT - 10 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL + + ( + MIN( ALL + 58 ) ) * ( 52 ) + NULLIF ( 38, + 81 / 23 )
----
3054

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + + ( + MIN ( ALL + 58 ) ) * ( 52 ) + NULLIF ( 38, + 81 / 23 )
----
3054

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - - 92 * - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8661
SELECT - - 92 * - COUNT ( * )
----
-92

query I rowsort
SELECT - - ( - 34 ) * 74
----
-2516

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT ALL + + 11 * - 13 + + 14 * 63 + 95 DIV 75 AS col2
----
740

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + + 11 * - 13 + + 14 * 63 + 95 / 75 AS col2
----
740

query I rowsort
SELECT NULLIF ( - NULLIF ( - 73, - 71 + 25 ), + 54 ) col1
----
73

query I rowsort
SELECT - 25 + COALESCE ( - 37, - 15 ) + + 23 * 16 AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT - 46 + + COUNT( * ) * + 43
----
-3

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - 46 + + COUNT ( * ) * + 43
----
-3

query II rowsort
SELECT 50 AS col0, 41 - 80 AS col2
----
50
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - NULLIF ( COUNT( * ), - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-8668
SELECT - NULLIF ( COUNT ( * ), - 66 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT DISTINCT + ( + COUNT( * ) ) * - 47 DIV + 14
----
-3

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + ( + COUNT ( * ) ) * - 47 / + 14
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - 7 + + + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-8670
SELECT - 7 + + + COUNT ( * ) col2
----
-6

query I rowsort
SELECT + COALESCE ( ( - 71 ), 24 ) * - 48
----
3408

query I rowsort
SELECT DISTINCT 36 - 16 + 24 * 28 AS col1
----
692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT ALL 71 - - COUNT( * ) + + 96 DIV 72
----
73

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL 71 - - COUNT ( * ) + + 96 / 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + CASE WHEN NOT 24 IS NULL THEN NULL WHEN NULL NOT IN ( - 35 / 12 ) THEN NULL ELSE SUM( + 29 ) + + 77 * - 3 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + CASE WHEN NOT 24 IS NULL THEN NULL WHEN NULL NOT IN ( - 35 / 12 ) THEN NULL ELSE SUM ( + 29 ) + + 77 * - 3 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( - - 51 ) * - 50 AS col1
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT - COUNT( - - 74 ) * 61
----
-61

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - COUNT ( - - 74 ) * 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + 53 * - MAX( 12 )
----
-636

skipif mysql # not compatible
query I rowsort label-8677
SELECT + 53 * - MAX ( 12 )
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL MAX( ALL 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL MAX ( ALL 27 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT 24 DIV + - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT 24 / + - 79 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT ALL 35 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL 35 / 32
----
1

query II rowsort
SELECT 74, 82 AS col1
----
74
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT 66 * + + 58 - - + NULLIF ( + 87, 25 ) DIV 52 AS col1
----
3829

skipif mysql # not compatible
query I rowsort label-8682
SELECT 66 * + + 58 - - + NULLIF ( + 87, 25 ) / 52 AS col1
----
3829

query I rowsort
SELECT 47 * 49
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8684
SELECT DISTINCT 64 * - COALESCE ( - CAST( + 3 AS SIGNED ), NULLIF ( + COUNT( ALL 0 ), + COALESCE ( + 6, - 92 ) * ( - CAST( - AVG ( ALL 3 ) AS SIGNED ) * - 6 + 86 ) ) * + 13, CAST( 68 AS SIGNED ), 62 ) * MIN( + 10 DIV - 65 + CAST( 24 AS SIGNED ) * 33 ) AS col0
----
152064

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT 64 * - COALESCE ( - CAST ( + 3 AS INTEGER ), NULLIF ( + COUNT ( ALL 0 ), + COALESCE ( + 6, - 92 ) * ( - CAST ( - AVG ( ALL 3 ) AS INTEGER ) * - 6 + 86 ) ) * + 13, CAST ( 68 AS INTEGER ), 62 ) * MIN ( + 10 / - 65 + CAST ( 24 AS INTEGER ) * 33 ) AS col0
----
152064

query I rowsort
SELECT + 48 * - - 60 + + ( 73 )
----
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT - MIN( 66 ) - - 91 + MIN( 47 ) * + 2 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8686
SELECT - MIN ( 66 ) - - 91 + MIN ( 47 ) * + 2 AS col0
----
119

query I rowsort
SELECT + - ( - + 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL 32 + 23 * + 16 * 4 - - SUM( ALL - 33 ) AS col1
----
1471

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL 32 + 23 * + 16 * 4 - - SUM ( ALL - 33 ) AS col1
----
1471

query I rowsort
SELECT DISTINCT + 26 + - 72 * 4 AS col2
----
-262

query I rowsort
SELECT ALL + 4 + + ( - - 94 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT 47 AS col0, MAX( ALL + ( - 57 ) ) + 32 AS col1
----
47
-25

skipif mysql # not compatible
query II rowsort label-8691
SELECT 47 AS col0, MAX ( ALL + ( - 57 ) ) + 32 AS col1
----
47
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL + CAST( NULL AS SIGNED ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + CAST ( NULL AS INTEGER ) + - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8693
SELECT + 50 * SUM( - 47 ) + - NULLIF ( + COUNT( + CASE 20 WHEN + ( + 65 ) THEN 45 - - 56 END ), 70 * 40 + 51 ) + ( + 3 ) DIV 34
----
-2350

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 50 * SUM ( - 47 ) + - NULLIF ( + COUNT ( + CASE 20 WHEN + ( + 65 ) THEN 45 - - 56 END ), 70 * 40 + 51 ) + ( + 3 ) / 34
----
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT CAST( + 77 AS SIGNED ) - + 57 + + 63
----
83

skipif mysql # not compatible
query I rowsort label-8694
SELECT CAST ( + 77 AS INTEGER ) - + 57 + + 63
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + 64 + + + 13 - CASE - MIN( 55 ) WHEN + 90 THEN 54 END * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT + 64 + + + 13 - CASE - MIN ( 55 ) WHEN + 90 THEN 54 END * 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ( + ( + + 43 ) ) + MIN( DISTINCT - 71 - 58 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8696
SELECT ( + ( + + 43 ) ) + MIN ( DISTINCT - 71 - 58 ) AS col2
----
-86

query I rowsort
SELECT 63 * + - 52 AS col2
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT + 50 + + + 17 + - 97 * COUNT( 17 * 98 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT + 50 + + + 17 + - 97 * COUNT ( 17 * 98 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT 22 * - 46 + + - 58 + 92 * + 32 * + MIN( - 81 )
----
-239534

skipif mysql # not compatible
query I rowsort label-8699
SELECT 22 * - 46 + + - 58 + 92 * + 32 * + MIN ( - 81 )
----
-239534

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8700
SELECT ALL - CAST( NULL AS DECIMAL ) - - ( + 80 ) + MAX( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - CAST ( NULL AS REAL ) - - ( + 80 ) + MAX ( + 2 )
----
NULL

query I rowsort
SELECT 1 + - - 62 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL + COUNT( + - 61 ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + COUNT ( + - 61 ) * 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( DISTINCT + 83 ) + MIN( ALL + 59 ) + 1 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( DISTINCT + 83 ) + MIN ( ALL + 59 ) + 1 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT 39 * COALESCE ( - 61, + SUM( 5 ), 75, 37 )
----
-2379

skipif mysql # not compatible
query I rowsort label-8704
SELECT 39 * COALESCE ( - 61, + SUM ( 5 ), 75, 37 )
----
-2379

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT 58 DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT 58 / + 64 AS col2
----
0

query I rowsort
SELECT 67 + 58
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT DISTINCT + 25 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + 25 / 27
----
0

query I rowsort
SELECT 44 + - 50 AS col2
----
-6

query I rowsort
SELECT ALL - 7 * + 74 * + ( - + 2 ) AS col0
----
1036

query I rowsort
SELECT 54 + - 35
----
19

query II rowsort
SELECT 63 + - 20 AS col1, - ( - ( CASE - 78 WHEN + 18 THEN 94 + AVG ( DISTINCT - 38 ) END ) ) AS col0
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT ALL MAX( + - 39 ) AS col2, - 15 col1
----
-39
-15

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL MAX ( + - 39 ) AS col2, - 15 col1
----
-39
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT 73 DIV - - 7
----
10

skipif mysql # not compatible
query I rowsort label-8713
SELECT 73 / - - 7
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT 35 / - 67 * 58 + - NULLIF ( CAST( NULL AS SIGNED ), + 21 + 45 ) / ( - 56 * - ( + 87 * - 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT 35 / - 67 * 58 + - NULLIF ( CAST ( NULL AS INTEGER ), + 21 + 45 ) / ( - 56 * - ( + 87 * - 18 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8715
SELECT ALL - 17 DIV - CAST( + 7 AS SIGNED ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - 17 / - CAST ( + 7 AS INTEGER ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - NULLIF ( - + 40, + + CASE - 31 WHEN - AVG ( ALL - 33 ) * 61 THEN NULL WHEN 76 THEN - 94 ELSE + 59 * + MIN( DISTINCT 54 ) - + ( - 21 + 77 ) END )
----
40

skipif mysql # not compatible
query I rowsort label-8716
SELECT - NULLIF ( - + 40, + + CASE - 31 WHEN - AVG ( ALL - 33 ) * 61 THEN NULL WHEN 76 THEN - 94 ELSE + 59 * + MIN ( DISTINCT 54 ) - + ( - 21 + 77 ) END )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - CASE - + 36 WHEN - - ( - + 85 ) THEN COUNT( * ) + 77 END + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - CASE - + 36 WHEN - - ( - + 85 ) THEN COUNT ( * ) + 77 END + - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT 55 * + 9 * COUNT( ALL - CAST( + 32 AS SIGNED ) ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-8718
SELECT 55 * + 9 * COUNT ( ALL - CAST ( + 32 AS INTEGER ) ) AS col0
----
495

query I rowsort
SELECT 98 + - COALESCE ( 66, - - 8 + + 55 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL - 12 + - + CAST( NULL AS SIGNED ) + + + ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 12 + - + CAST ( NULL AS INTEGER ) + + + ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8721
SELECT 78 * - CAST( NULL AS SIGNED ), 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8721
SELECT 78 * - CAST ( NULL AS INTEGER ), 11 AS col0
----
NULL
11

query I rowsort
SELECT ALL - 21 * + ( 26 ) AS col1
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8723
SELECT DISTINCT CAST( + COUNT( ALL 59 ) AS SIGNED ) * 42 * 92 + 68 * ( 66 DIV + 44 + 42 )
----
6788

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT CAST ( + COUNT ( ALL 59 ) AS INTEGER ) * 42 * 92 + 68 * ( 66 / + 44 + 42 )
----
6788

query II rowsort
SELECT + ( - - 7 ) AS col1, - 8 * - + 32
----
7
256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT + 38 - 12 DIV COUNT( * ) * + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + 38 - 12 / COUNT ( * ) * + COUNT ( * ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT ALL 96 DIV 96 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL 96 / 96 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8727
SELECT 39 * CAST( NULL AS SIGNED ) * - + 53 AS col1, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8727
SELECT 39 * CAST ( NULL AS INTEGER ) * - + 53 AS col1, + 68
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT CAST( NULL AS SIGNED ) * - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT CAST ( NULL AS INTEGER ) * - + 56 AS col0
----
NULL

query I rowsort
SELECT ALL - 84 * - ( + + 42 ) col1
----
3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8730
SELECT MIN( + 85 ) - - 72 AS col2, CASE + 47 WHEN 61 + 3 THEN NULLIF ( 27, 60 - COALESCE ( + SUM( ALL 13 ), + 45 ) ) + + COALESCE ( + 58, CAST( NULL AS SIGNED ) * 43 + 84 / 58 ) / 51 END + - 5 AS col1
----
157
NULL

skipif mysql # not compatible
query II rowsort label-8730
SELECT MIN ( + 85 ) - - 72 AS col2, CASE + 47 WHEN 61 + 3 THEN NULLIF ( 27, 60 - COALESCE ( + SUM ( ALL 13 ), + 45 ) ) + + COALESCE ( + 58, CAST ( NULL AS INTEGER ) * 43 + 84 / 58 ) / 51 END + - 5 AS col1
----
157
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT 64 + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-8731
SELECT 64 + - + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT + COUNT( * ) * + MIN( ALL 34 ) AS col1, + COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-8732
SELECT + COUNT ( * ) * + MIN ( ALL 34 ) AS col1, + COUNT ( * ) AS col1
----
34
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT - ( COALESCE ( 41, - 36 ) ) * + CAST( 38 AS SIGNED ) col0
----
-1558

skipif mysql # not compatible
query I rowsort label-8733
SELECT - ( COALESCE ( 41, - 36 ) ) * + CAST ( 38 AS INTEGER ) col0
----
-1558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT - COALESCE ( + 69, CAST( + 29 AS SIGNED ) * + 44 )
----
-69

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COALESCE ( + 69, CAST ( + 29 AS INTEGER ) * + 44 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT + 94 + - ( COUNT( * ) ) - - + COUNT( * ) * 46 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 94 + - ( COUNT ( * ) ) - - + COUNT ( * ) * 46 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + 12 * - + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8736
SELECT + 12 * - + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT - 17 + + 53 - 80 + + + ( 28 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL MAX( ALL - + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL MAX ( ALL - + 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8739
SELECT DISTINCT 52 + - 0 + 16 AS col0, COUNT( ALL CAST( + 18 AS SIGNED ) ) - CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-8739
SELECT DISTINCT 52 + - 0 + 16 AS col0, COUNT ( ALL CAST ( + 18 AS INTEGER ) ) - CAST ( NULL AS INTEGER )
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - 81 * COUNT( * ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-8740
SELECT - 81 * COUNT ( * ) col0
----
-81

query I rowsort
SELECT DISTINCT - 4 + - - NULLIF ( 15, + - 23 - + 18 ) AS col2
----
11

query I rowsort
SELECT - + ( + 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8743
SELECT DISTINCT + + COALESCE ( ( 33 ), + CAST( 87 AS SIGNED ) * - 82 ) + - 15 DIV 86
----
33

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + + COALESCE ( ( 33 ), + CAST ( 87 AS INTEGER ) * - 82 ) + - 15 / 86
----
33

query I rowsort
SELECT ALL - COALESCE ( - 95, 33 ) * + + 80 + 89 AS col0
----
7689

query I rowsort
SELECT DISTINCT + - 32 * + 94 - 51 + + - 4
----
-3063

query I rowsort
SELECT + 94 * 61
----
5734

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT + - 16 DIV + - 32
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT + - 16 / + - 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL + NULLIF ( - 34, 78 + - COUNT( * ) + + 22 * - NULLIF ( - 0 * CAST( NULL AS SIGNED ), - 5 + 7 ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + NULLIF ( - 34, 78 + - COUNT ( * ) + + 22 * - NULLIF ( - 0 * CAST ( NULL AS INTEGER ), - 5 + 7 ) ) AS col0
----
-34

query I rowsort
SELECT - - 72 * + 61
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - MIN( DISTINCT + 28 ) * 9 * + 31 - - - 41
----
-7853

skipif mysql # not compatible
query I rowsort label-8750
SELECT - MIN ( DISTINCT + 28 ) * 9 * + 31 - - - 41
----
-7853

query II rowsort
SELECT ALL + 80, - 29 - 59 + + NULLIF ( 75, - 54 * - AVG ( ALL 75 ) ) + + 36 AS col0
----
80
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + 19 - - + 49 + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8752
SELECT + 19 - - + 49 + + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL + COUNT( - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + COUNT ( - - 58 )
----
1

query I rowsort
SELECT - + 3 * - - 41
----
-123

query I rowsort
SELECT - 63 + + 68 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT SUM( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8756
SELECT SUM ( - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL - ( ( + + 58 ) ) * + 5 + - + CASE WHEN - 31 IS NULL THEN - MAX( - 82 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - ( ( + + 58 ) ) * + 5 + - + CASE WHEN - 31 IS NULL THEN - MAX ( - 82 ) END
----
NULL

query I rowsort
SELECT + 87 * 95 + + - COALESCE ( - - 76, - 32, 32 ) - - 42
----
8231

query II rowsort
SELECT ALL + 93 AS col1, 73 + - 76 AS col0
----
93
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT COUNT ( * ) * 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT 52 * + 80 + + COUNT( ALL 94 ) + - 11 * - - 3 + - 90 * 92 AS col1
----
-4152

skipif mysql # not compatible
query I rowsort label-8761
SELECT 52 * + 80 + + COUNT ( ALL 94 ) + - 11 * - - 3 + - 90 * 92 AS col1
----
-4152

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - MIN( 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8762
SELECT - MIN ( 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT + COUNT( * ) DIV COUNT( * ) DIV - - 90 * - 66 * - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) / COUNT ( * ) / - - 90 * - 66 * - 9 AS col2
----
0

query I rowsort
SELECT - NULLIF ( + 92, + 73 ) * + ( + 58 ) col0
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - 76 + + 98 + CASE + 32 WHEN + 90 + - + 65 + COUNT( 20 ) * - 74 THEN NULL WHEN - 16 THEN 67 END * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 76 + + 98 + CASE + 32 WHEN + 90 + - + 65 + COUNT ( 20 ) * - 74 THEN NULL WHEN - 16 THEN 67 END * + 57 AS col0
----
NULL

query I rowsort
SELECT ALL 0 + - NULLIF ( - ( 78 ), + + 45 ) AS col0
----
78

query II rowsort
SELECT 84 col0, + 24 * - 54
----
84
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + CASE + 82 WHEN + 37 * - 0 + 44 * MIN( DISTINCT 2 ) THEN COUNT( * ) * - SUM( ALL 48 / 70 ) ELSE NULL END + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + CASE + 82 WHEN + 37 * - 0 + 44 * MIN ( DISTINCT 2 ) THEN COUNT ( * ) * - SUM ( ALL 48 / 70 ) ELSE NULL END + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + NULLIF ( - CASE 78 WHEN + 45 THEN NULL WHEN + COUNT( * ) THEN 7 - 27 END, - 16 * 56 ) * + ( 82 + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + NULLIF ( - CASE 78 WHEN + 45 THEN NULL WHEN + COUNT ( * ) THEN 7 - 27 END, - 16 * 56 ) * + ( 82 + 29 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT - 17 * + + COALESCE ( - + CAST( NULL AS SIGNED ), + 62 * + - COUNT( * ), COUNT( * ) * + 86 )
----
1054

skipif mysql # not compatible
query I rowsort label-8770
SELECT - 17 * + + COALESCE ( - + CAST ( NULL AS INTEGER ), + 62 * + - COUNT ( * ), COUNT ( * ) * + 86 )
----
1054

query II rowsort
SELECT - 68, 32 AS col0
----
-68
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL NULLIF ( + COALESCE ( + 65, ( + 76 ), + NULLIF ( + 0, + 44 + - COUNT( * ) ) + + 62 * 54 ), 49 + + 15 ) + 23 * + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL NULLIF ( + COALESCE ( + 65, ( + 76 ), + NULLIF ( + 0, + 44 + - COUNT ( * ) ) + + 62 * 54 ), 49 + + 15 ) + 23 * + COUNT ( * ) AS col2
----
88

query I rowsort
SELECT + + 0 + 17 col0
----
17

query I rowsort
SELECT + - 25 + 0 AS col2
----
-25

query I rowsort
SELECT DISTINCT - - 14 * + + CASE - 71 WHEN + + 88 THEN 84 * + 69 * + NULLIF ( + ( + 63 ), + 16 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT + + 50 + + 86 + - MIN( - - 17 ) * + 69 - - 19 DIV 93 AS col1
----
-1037

skipif mysql # not compatible
query I rowsort label-8776
SELECT + + 50 + + 86 + - MIN ( - - 17 ) * + 69 - - 19 / 93 AS col1
----
-1037

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - - COUNT( * ) + 43 - + + 41 col0
----
3

skipif mysql # not compatible
query I rowsort label-8777
SELECT - - COUNT ( * ) + 43 - + + 41 col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT - 78 DIV + CAST( + - 47 AS SIGNED ) - 2 * + COALESCE ( 52, 69 * - COUNT( * ) + 98 ) * + 43 + 13 - 31
----
-4489

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT - 78 / + CAST ( + - 47 AS INTEGER ) - 2 * + COALESCE ( 52, 69 * - COUNT ( * ) + 98 ) * + 43 + 13 - 31
----
-4489

query II rowsort
SELECT DISTINCT + - 10 AS col2, 37 AS col2
----
-10
37

query II rowsort
SELECT ALL + 28, - 34 + 6 AS col1
----
28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8781
SELECT - 53 + 63 * + CASE + 94 WHEN + 81 / 11 * + 85 + - 61 THEN COUNT( * ) WHEN 50 THEN - 81 + 98 ELSE + CASE 58 WHEN + 1 + 54 THEN 94 WHEN - 64 THEN + 52 * COUNT( ALL 34 ) ELSE - 42 * COALESCE ( COALESCE ( - CASE + ( - COUNT( * ) ) WHEN - CAST( COUNT( * ) AS DECIMAL ) THEN + 83 ELSE NULL END, 75, - 32 * - 29 + - 43, COUNT( * ) ) * + 95, 7 + 71 * - 12 ) END * - CAST( NULL AS SIGNED ) END / CASE COALESCE ( + COUNT( * ), + 70 * ( + 30 ) ) WHEN + 24 THEN - 43 / 34 + - 40 * AVG ( + 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT - 53 + 63 * + CASE + 94 WHEN + 81 / 11 * + 85 + - 61 THEN COUNT ( * ) WHEN 50 THEN - 81 + 98 ELSE + CASE 58 WHEN + 1 + 54 THEN 94 WHEN - 64 THEN + 52 * COUNT ( ALL 34 ) ELSE - 42 * COALESCE ( COALESCE ( - CASE + ( - COUNT ( * ) ) WHEN - CAST ( COUNT ( * ) AS REAL ) THEN + 83 ELSE NULL END, 75, - 32 * - 29 + - 43, COUNT ( * ) ) * + 95, 7 + 71 * - 12 ) END * - CAST ( NULL AS INTEGER ) END / CASE COALESCE ( + COUNT ( * ), + 70 * ( + 30 ) ) WHEN + 24 THEN - 43 / 34 + - 40 * AVG ( + 66 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8782
SELECT DISTINCT + - 93 AS col1, 49 DIV + ( + ( 99 ) ) AS col1
----
-93
0

skipif mysql # not compatible
query II rowsort label-8782
SELECT DISTINCT + - 93 AS col1, 49 / + ( + ( 99 ) ) AS col1
----
-93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8783
SELECT DISTINCT + CASE + + 22 WHEN + - 8 + + COUNT( * ) + 14 + 68 THEN CAST( NULL AS SIGNED ) ELSE - CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + CASE + + 22 WHEN + - 8 + + COUNT ( * ) + 14 + 68 THEN CAST ( NULL AS INTEGER ) ELSE - CAST ( NULL AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - SUM( DISTINCT - 70 ) * + + 70
----
4900

skipif mysql # not compatible
query I rowsort label-8784
SELECT - SUM ( DISTINCT - 70 ) * + + 70
----
4900

query II rowsort
SELECT 59 AS col1, 93 * + 56 * 12 AS col2
----
59
62496

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - - 43 + + 85 * + COUNT( * ) * - 4
----
-297

skipif mysql # not compatible
query I rowsort label-8786
SELECT - - 43 + + 85 * + COUNT ( * ) * - 4
----
-297

query I rowsort
SELECT ALL + 38 * + 97 AS col2
----
3686

query I rowsort
SELECT DISTINCT + - 5 * + 68 * 8
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - + 99 * - - 85 + - ( + 85 ) + - 86 + + 16 * + COUNT( * ) AS col1
----
-8570

skipif mysql # not compatible
query I rowsort label-8789
SELECT - + 99 * - - 85 + - ( + 85 ) + - 86 + + 16 * + COUNT ( * ) AS col1
----
-8570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL + ( + + 16 ) * - 64 * - ( + - 84 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + ( + + 16 ) * - 64 * - ( + - 84 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT DISTINCT - ( + - 54 ) AS col2, 37 AS col1
----
54
37

query I rowsort
SELECT 48 - - 43 + + + 15 col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT COUNT( - ( + - 91 ) ) - - + NULLIF ( + MIN( + 83 ), + COUNT( * ) + + 25 ) * - 41 AS col1
----
-3402

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( - ( + - 91 ) ) - - + NULLIF ( + MIN ( + 83 ), + COUNT ( * ) + + 25 ) * - 41 AS col1
----
-3402

query I rowsort
SELECT DISTINCT 65 + + 7 * - 24 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT 67 * + 87 * + 46 * + COUNT( * ) AS col2
----
268134

skipif mysql # not compatible
query I rowsort label-8795
SELECT 67 * + 87 * + 46 * + COUNT ( * ) AS col2
----
268134

query I rowsort
SELECT DISTINCT 0 + + + 97 col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT MIN( 0 ) - CAST( COUNT( * ) AS SIGNED ) * + - 76 col1
----
76

skipif mysql # not compatible
query I rowsort label-8797
SELECT MIN ( 0 ) - CAST ( COUNT ( * ) AS INTEGER ) * + - 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT 64 + - - 73 * + 68 * + + COUNT( * )
----
5028

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT 64 + - - 73 * + 68 * + + COUNT ( * )
----
5028

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - 58 + + 82 * + 55 * - COUNT( * ) AS col2
----
-4568

skipif mysql # not compatible
query I rowsort label-8799
SELECT - 58 + + 82 * + 55 * - COUNT ( * ) AS col2
----
-4568

query I rowsort
SELECT + COALESCE ( + - 51, - 48 * - 14 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT 4 + 69 + - COUNT( * ) * 53 DIV - ( 74 ) * + + ( ( - 41 ) ) + + NULLIF ( - 81, - 13 )
----
-8

skipif mysql # not compatible
query I rowsort label-8801
SELECT 4 + 69 + - COUNT ( * ) * 53 / - ( 74 ) * + + ( ( - 41 ) ) + + NULLIF ( - 81, - 13 )
----
-8

query I rowsort
SELECT - 15 * 86
----
-1290

onlyif mysql # DIV for integer division: 
query II rowsort label-8803
SELECT ALL 54 DIV + 70 * - 65 AS col1, 72 * - - 11 AS col2
----
0
792

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL 54 / + 70 * - 65 AS col1, 72 * - - 11 AS col2
----
0
792

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT - 24 DIV + 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT - 24 / + 76 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT + 66 DIV - ( COUNT( * ) ) + - 73 - + 23 * + MIN( + 73 ) col1
----
-1818

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + 66 / - ( COUNT ( * ) ) + - 73 - + 23 * + MIN ( + 73 ) col1
----
-1818

query I rowsort
SELECT ALL + ( + 26 ) * - 67 AS col0
----
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL - 33 * 6 - + COUNT( * ) * + COALESCE ( - + 50, + 32 ) * - - 6 + - 66 - + 32
----
4

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - 33 * 6 - + COUNT ( * ) * + COALESCE ( - + 50, + 32 ) * - - 6 + - 66 - + 32
----
4

query I rowsort
SELECT DISTINCT 43 * - 43 - 66
----
-1915

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT - 24 DIV 31 + + 59 + - 74 + - 9 + - 57 * + 80 * - 71 + - 68 + 15 AS col0
----
323683

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 24 / 31 + + 59 + - 74 + - 9 + - 57 * + 80 * - 71 + - 68 + 15 AS col0
----
323683

query I rowsort
SELECT ALL + 79 * + - 19 AS col0
----
-1501

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - 25 + - + 11 + COUNT( * ) * + + 54 col2
----
18

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - 25 + - + 11 + COUNT ( * ) * + + 54 col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT 77 * + ( - 80 ) AS col1, SUM( 79 ) * 51 * + + 2
----
-6160
8058

skipif mysql # not compatible
query II rowsort label-8812
SELECT 77 * + ( - 80 ) AS col1, SUM ( 79 ) * 51 * + + 2
----
-6160
8058

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - 79 * + 69 * 35 + NULLIF ( - SUM( - 2 ), 41 + + 40 ) * 32 AS col1
----
-190721

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 79 * + 69 * 35 + NULLIF ( - SUM ( - 2 ), 41 + + 40 ) * 32 AS col1
----
-190721

query II rowsort
SELECT 28 AS col0, - 93 AS col0
----
28
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + 80 * COUNT( * ) * - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + 80 * COUNT ( * ) * - COUNT ( * ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT CASE 77 WHEN + CAST( 86 AS SIGNED ) THEN ( - CASE + 23 WHEN - ( + 96 ) THEN - SUM( ALL - COALESCE ( - 24, + 45 + 18 ) ) * - ( CASE + 66 WHEN 79 THEN MIN( ALL 75 ) * + 48 ELSE COALESCE ( + 53, 67 + - CAST( + 47 AS SIGNED ) * 74 ) END ) - + 61 WHEN 81 THEN - COUNT( * ) ELSE NULL END ) ELSE - ( - COUNT( * ) ) END * + 98 + - 38 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8816
SELECT CASE 77 WHEN + CAST ( 86 AS INTEGER ) THEN ( - CASE + 23 WHEN - ( + 96 ) THEN - SUM ( ALL - COALESCE ( - 24, + 45 + 18 ) ) * - ( CASE + 66 WHEN 79 THEN MIN ( ALL 75 ) * + 48 ELSE COALESCE ( + 53, 67 + - CAST ( + 47 AS INTEGER ) * 74 ) END ) - + 61 WHEN 81 THEN - COUNT ( * ) ELSE NULL END ) ELSE - ( - COUNT ( * ) ) END * + 98 + - 38 AS col1
----
60

query I rowsort
SELECT ALL + 62 * - 47
----
-2914

query I rowsort
SELECT 67 + + - 29 AS col1
----
38

query I rowsort
SELECT ALL 77 + + 29
----
106

query II rowsort
SELECT 23, + 53 AS col1
----
23
53

onlyif mysql # DIV for integer division: 
query II rowsort label-8821
SELECT ALL - 18 AS col1, 82 DIV - + 74 AS col0
----
-18
-1

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL - 18 AS col1, 82 / - + 74 AS col0
----
-18
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT - 8 + + 21 DIV + 50
----
-8

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - 8 + + 21 / + 50
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT ALL 53 DIV + CASE - - 92 WHEN + + MIN( ALL 69 ) THEN NULL WHEN - COUNT( * ) * 62 * - ( 28 ) THEN NULL WHEN - 80 THEN - NULLIF ( 91, + 42 + + 62 DIV - ( 11 + 81 ) ) * 85 ELSE ( 60 ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 53 / + CASE - - 92 WHEN + + MIN ( ALL 69 ) THEN NULL WHEN - COUNT ( * ) * 62 * - ( 28 ) THEN NULL WHEN - 80 THEN - NULLIF ( 91, + 42 + + 62 / - ( 11 + 81 ) ) * 85 ELSE ( 60 ) END AS col2
----
0

query I rowsort
SELECT 2 + + 23 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + 90 - + - 97 * - 58 * COUNT( * ) AS col1
----
-5536

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + 90 - + - 97 * - 58 * COUNT ( * ) AS col1
----
-5536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8826
SELECT 82 DIV - SUM( ALL + + CAST( + 56 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8826
SELECT 82 / - SUM ( ALL + + CAST ( + 56 AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT ALL - 18 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - 18 / - 29
----
0

query I rowsort
SELECT 88 + + 42 + + - 99
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT COUNT( * ) * + ( - 84 ) AS col2, + 86 + + COUNT( * )
----
-84
87

skipif mysql # not compatible
query II rowsort label-8829
SELECT COUNT ( * ) * + ( - 84 ) AS col2, + 86 + + COUNT ( * )
----
-84
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT NULLIF ( CAST( - 3 AS SIGNED ), + + ( + - 44 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT NULLIF ( CAST ( - 3 AS INTEGER ), + + ( + - 44 ) ) AS col0
----
-3

query I rowsort
SELECT ALL ( 4 ) - + 14 AS col2
----
-10

query I rowsort
SELECT - 13 * + 34
----
-442

query II rowsort
SELECT DISTINCT 30 col0, - 94
----
30
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL MIN( DISTINCT + + ( + 26 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL MIN ( DISTINCT + + ( + 26 ) ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL + 4 * 68 + - CAST( + 35 AS SIGNED )
----
237

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + 4 * 68 + - CAST ( + 35 AS INTEGER )
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT - 88 + - 76 * + COUNT( * ) - - - 76 + - + 18 AS col2
----
-258

skipif mysql # not compatible
query I rowsort label-8836
SELECT - 88 + - 76 * + COUNT ( * ) - - - 76 + - + 18 AS col2
----
-258

query I rowsort
SELECT 78 + - - 91 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT - 72 - + CASE 95 WHEN + - 39 + 60 + + - CAST( COUNT( * ) AS SIGNED ) THEN + + COUNT( * ) * - 78 - - 25 WHEN - 43 + 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT - 72 - + CASE 95 WHEN + - 39 + 60 + + - CAST ( COUNT ( * ) AS INTEGER ) THEN + + COUNT ( * ) * - 78 - - 25 WHEN - 43 + 13 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 15 + + 74 AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT ALL + COUNT( * ) AS col0, - 90 * 34 AS col0
----
1
-3060

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL + COUNT ( * ) AS col0, - 90 * 34 AS col0
----
1
-3060

query I rowsort
SELECT ALL + 52 + - - 46 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - 68 * COUNT( * ) + 36
----
-32

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - 68 * COUNT ( * ) + 36
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + CASE + NULLIF ( + 68, - 9 ) WHEN - SUM( ALL + - 42 ) THEN NULL ELSE - 13 END * - 87 * - 9 + + 83 AS col1
----
-10096

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + CASE + NULLIF ( + 68, - 9 ) WHEN - SUM ( ALL + - 42 ) THEN NULL ELSE - 13 END * - 87 * - 9 + + 83 AS col1
----
-10096

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + + 46 * + + COUNT( * ) + + COALESCE ( + CASE WHEN 17 = NULL THEN - 49 + - + SUM( DISTINCT 32 ) END, - 76 + - 44 ) + 65
----
-9

skipif mysql # not compatible
query I rowsort label-8844
SELECT + + 46 * + + COUNT ( * ) + + COALESCE ( + CASE WHEN 17 = NULL THEN - 49 + - + SUM ( DISTINCT 32 ) END, - 76 + - 44 ) + 65
----
-9

query I rowsort
SELECT DISTINCT + 28 * 3 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT CASE - 53 WHEN - 60 * - - 11 THEN + CAST( NULL AS SIGNED ) * - 85 + - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT CASE - 53 WHEN - 60 * - - 11 THEN + CAST ( NULL AS INTEGER ) * - 85 + - 54 END
----
NULL

query I rowsort
SELECT + 19 * 58 AS col2
----
1102

query I rowsort
SELECT + 25 * - + 27
----
-675

query I rowsort
SELECT ALL 31 * + 25 AS col2
----
775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8850
SELECT - CAST( NULL AS SIGNED ) + - 11 col1, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-8850
SELECT - CAST ( NULL AS INTEGER ) + - 11 col1, - 89
----
NULL
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT + COALESCE ( + 46, 72, + CAST( NULL AS SIGNED ) )
----
46

skipif mysql # not compatible
query I rowsort label-8851
SELECT + COALESCE ( + 46, 72, + CAST ( NULL AS INTEGER ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ALL 43 * - 33 + - - 79 * + - ( + COALESCE ( 25, - + SUM( - 68 ) ) ) - 76 + NULLIF ( + 67 - + 70, COUNT( * ) * - 45 ) AS col2
----
-3473

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL 43 * - 33 + - - 79 * + - ( + COALESCE ( 25, - + SUM ( - 68 ) ) ) - 76 + NULLIF ( + 67 - + 70, COUNT ( * ) * - 45 ) AS col2
----
-3473

query I rowsort
SELECT + COALESCE ( - - 97, 5 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT COUNT( ALL - + 11 ) AS col1, - 42
----
1
-42

skipif mysql # not compatible
query II rowsort label-8854
SELECT COUNT ( ALL - + 11 ) AS col1, - 42
----
1
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT + CAST( - + ( - + 85 ) AS SIGNED ) * 37
----
3145

skipif mysql # not compatible
query I rowsort label-8855
SELECT + CAST ( - + ( - + 85 ) AS INTEGER ) * 37
----
3145

query I rowsort
SELECT ALL + CASE + 56 WHEN - 73 THEN NULL ELSE - 92 END AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT + CAST( NULL AS SIGNED ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT + CAST ( NULL AS INTEGER ) * 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT + COALESCE ( 63, + 64, 37 ) - - + 57 * + COUNT( DISTINCT + - 45 ) + - - 24 DIV + - 69 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8858
SELECT + COALESCE ( 63, + 64, 37 ) - - + 57 * + COUNT ( DISTINCT + - 45 ) + - - 24 / + - 69 AS col0
----
120

query I rowsort
SELECT ALL - COALESCE ( 49, + - 60 ) * + ( + ( + 12 ) ) AS col2
----
-588

query I rowsort
SELECT - 87 * - 21 col2
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT 50 * + + 99 + 71 - - COUNT( * )
----
5022

skipif mysql # not compatible
query I rowsort label-8861
SELECT 50 * + + 99 + 71 - - COUNT ( * )
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT DISTINCT - 14 * + CASE + 77 WHEN + - CAST( - 81 AS SIGNED ) * + + ( - COUNT( * ) ) + - 7 / 69 THEN NULL WHEN 22 THEN 58 ELSE 11 END
----
-154

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - 14 * + CASE + 77 WHEN + - CAST ( - 81 AS INTEGER ) * + + ( - COUNT ( * ) ) + - 7 / 69 THEN NULL WHEN 22 THEN 58 ELSE 11 END
----
-154

query I rowsort
SELECT ALL 40 * + 28
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT MIN( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT MIN ( ALL + + 19 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT ALL + ( 83 ) * - CASE + 36 WHEN - + 90 * - - 21 THEN NULL ELSE 91 * + - ( - - 69 ) END + COUNT( ALL - CAST( + 14 AS SIGNED ) + 71 * - 57 )
----
521158

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + ( 83 ) * - CASE + 36 WHEN - + 90 * - - 21 THEN NULL ELSE 91 * + - ( - - 69 ) END + COUNT ( ALL - CAST ( + 14 AS INTEGER ) + 71 * - 57 )
----
521158

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - + 39 - - + 84 + - - 43 * - 66 + + ( - + 11 ) * + COUNT( * ) + - 7 AS col1
----
-2811

skipif mysql # not compatible
query I rowsort label-8866
SELECT - + 39 - - + 84 + - - 43 * - 66 + + ( - + 11 ) * + COUNT ( * ) + - 7 AS col1
----
-2811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL CAST( - 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL CAST ( - 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - 47 * 55 * + + COUNT( * ) AS col1
----
-2585

skipif mysql # not compatible
query I rowsort label-8868
SELECT - 47 * 55 * + + COUNT ( * ) AS col1
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL - MIN( ALL 31 ) + 95 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - MIN ( ALL 31 ) + 95 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8870
SELECT DISTINCT CAST( + - 10 AS SIGNED ) AS col2, + COUNT( DISTINCT + 60 ) * + 27 * + 4 AS col1
----
-10
108

skipif mysql # not compatible
query II rowsort label-8870
SELECT DISTINCT CAST ( + - 10 AS INTEGER ) AS col2, + COUNT ( DISTINCT + 60 ) * + 27 * + 4 AS col1
----
-10
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - + 98 + 16 + + 58 + + 46 * - CASE + COUNT( * ) WHEN 22 + - 88 THEN - + 9 * 56 WHEN CASE - 19 WHEN - 46 * + 51 + 39 THEN - ( - 44 ) ELSE + 97 END / ( 7 ) THEN - ( 62 ) ELSE + 91 * NULLIF ( SUM( 33 ) * 43, 61 + - 26 ) END + + 57 AS col0
----
-5939901

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - + 98 + 16 + + 58 + + 46 * - CASE + COUNT ( * ) WHEN 22 + - 88 THEN - + 9 * 56 WHEN CASE - 19 WHEN - 46 * + 51 + 39 THEN - ( - 44 ) ELSE + 97 END / ( 7 ) THEN - ( 62 ) ELSE + 91 * NULLIF ( SUM ( 33 ) * 43, 61 + - 26 ) END + + 57 AS col0
----
-5939901

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL + + 48 + MIN( 94 ) * - - COALESCE ( - - 85, 20 ) AS col0
----
8038

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + + 48 + MIN ( 94 ) * - - COALESCE ( - - 85, 20 ) AS col0
----
8038

query I rowsort
SELECT + ( - 62 ) * 9 col2
----
-558

query I rowsort
SELECT - 89 - + 82
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT - - 71 DIV + COUNT( * ) - 80 * - COUNT( * ) + - 63 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8875
SELECT - - 71 / + COUNT ( * ) - 80 * - COUNT ( * ) + - 63 AS col1
----
88

query I rowsort
SELECT + + 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + 1 * + - 70 * - 70 * + + COUNT( * )
----
4900

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 1 * + - 70 * - 70 * + + COUNT ( * )
----
4900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT DISTINCT 33 DIV + COUNT( * ) - ( + 12 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT 33 / + COUNT ( * ) - ( + 12 ) AS col0
----
21

query I rowsort
SELECT DISTINCT 77 * - 90 * + - 35
----
242550

query I rowsort
SELECT + 95 * + 41 - + 60 AS col2
----
3835

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT ALL NULLIF ( 35, + + 70 * + 15 + + - NULLIF ( - 41, - 77 ) ) DIV 63 - + 6 + 23 * 23 AS col2
----
523

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL NULLIF ( 35, + + 70 * + 15 + + - NULLIF ( - 41, - 77 ) ) / 63 - + 6 + 23 * 23 AS col2
----
523

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT DISTINCT 6 DIV - ( + 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT 6 / - ( + 98 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8883
SELECT + 18 + + CAST( + - 86 AS SIGNED ) + - 77 - - + 76 - - 33 AS col2, ( + COALESCE ( + - 81, - COALESCE ( 12, + CAST( NULL AS SIGNED ) * 8 + CAST( NULL AS SIGNED ) * + ( 1 + COUNT( * ) ), 58 ) + - 6, 91 ) )
----
-36
-81

skipif mysql # not compatible
query II rowsort label-8883
SELECT + 18 + + CAST ( + - 86 AS INTEGER ) + - 77 - - + 76 - - 33 AS col2, ( + COALESCE ( + - 81, - COALESCE ( 12, + CAST ( NULL AS INTEGER ) * 8 + CAST ( NULL AS INTEGER ) * + ( 1 + COUNT ( * ) ), 58 ) + - 6, 91 ) )
----
-36
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT - COUNT( * ) DIV - - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT - COUNT ( * ) / - - 64 AS col0
----
0

query I rowsort
SELECT + 35 * - + 94 AS col0
----
-3290

query I rowsort
SELECT DISTINCT 41 * 11 AS col1
----
451

query I rowsort
SELECT + 32 * 87 * + 12 + + 64
----
33472

query I rowsort
SELECT + 12 * - + 79
----
-948

query I rowsort
SELECT - 51 * + ( - + 68 ) - + ( + COALESCE ( - ( - - 85 ), - 18, + 50 ) ) + 13 AS col1
----
3566

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + 58 + 35 + - - 80 + 66 * - NULLIF ( 25, + COUNT( * ) ) AS col0
----
-1477

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 58 + 35 + - - 80 + 66 * - NULLIF ( 25, + COUNT ( * ) ) AS col0
----
-1477

query I rowsort
SELECT + 76 * + 54 * 29
----
119016

query I rowsort
SELECT ALL 81 * + + 40 col0
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT 99 * 30 * + + CAST( - 93 AS SIGNED ) AS col2
----
-276210

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT 99 * 30 * + + CAST ( - 93 AS INTEGER ) AS col2
----
-276210

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL + SUM( ALL 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + SUM ( ALL 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - COUNT( * ) * + 1 * - + COUNT( * ) + + + 53
----
54

skipif mysql # not compatible
query I rowsort label-8895
SELECT - COUNT ( * ) * + 1 * - + COUNT ( * ) + + + 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + COUNT( * ) * 7 * - 57 + - + 36
----
-435

skipif mysql # not compatible
query I rowsort label-8896
SELECT + COUNT ( * ) * 7 * - 57 + - + 36
----
-435

query I rowsort
SELECT - 8 + 79 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8898
SELECT - + 84 AS col0, ( - COUNT( * ) ) col0, - - 11 + - 97 * - COUNT( * ) * + 43 * + 27 - - CAST( NULL AS SIGNED ) + + ( - 63 ) AS col0
----
-84
-1
NULL

skipif mysql # not compatible
query III rowsort label-8898
SELECT - + 84 AS col0, ( - COUNT ( * ) ) col0, - - 11 + - 97 * - COUNT ( * ) * + 43 * + 27 - - CAST ( NULL AS INTEGER ) + + ( - 63 ) AS col0
----
-84
-1
NULL

query I rowsort
SELECT + - 65 + + 34
----
-31

query I rowsort
SELECT - - 60 * + - 46 AS col0
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + + CASE - 16 WHEN - ( + + COUNT( + 75 ) ) THEN 17 END + + - 44 - - 34 / + 62 * + - 33 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT + + CASE - 16 WHEN - ( + + COUNT ( + 75 ) ) THEN 17 END + + - 44 - - 34 / + 62 * + - 33 * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT ALL + + 43 * - COUNT( * ) + - ( - MIN( + - 92 ) ) DIV - 63 + - 66
----
-108

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + + 43 * - COUNT ( * ) + - ( - MIN ( + - 92 ) ) / - 63 + - 66
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8903
SELECT ALL - 21 * COUNT( * ) + - 21 DIV + 37 * + CAST( - + 68 AS SIGNED ) * + + 79 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - 21 * COUNT ( * ) + - 21 / + 37 * + CAST ( - + 68 AS INTEGER ) * + + 79 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL - COUNT( * ) + - 3 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - COUNT ( * ) + - 3 AS col2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8905
SELECT DISTINCT - CASE - 12 WHEN - - CAST( NULL AS DECIMAL ) THEN + 42 - - + 50 / + + 80 ELSE NULL END + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - CASE - 12 WHEN - - CAST ( NULL AS REAL ) THEN + 42 - - + 50 / + + 80 ELSE NULL END + + 6 AS col2
----
NULL

query I rowsort
SELECT ALL + - 25 + 67 AS col1
----
42

query I rowsort
SELECT - 20 + 33 AS col0
----
13

query I rowsort
SELECT ALL + 19 + - 96 + + + 5 + + 8
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8909
SELECT ALL + MIN( ALL + - 62 ) * 35 AS col2, - NULLIF ( - 3, - CASE COUNT( * ) WHEN + AVG ( - + 97 ) + - 80 THEN + 89 * + CAST( NULL AS DECIMAL ) + - 68 / + 57 ELSE NULL END ) AS col2
----
-2170
3

skipif mysql # not compatible
query II rowsort label-8909
SELECT ALL + MIN ( ALL + - 62 ) * 35 AS col2, - NULLIF ( - 3, - CASE COUNT ( * ) WHEN + AVG ( - + 97 ) + - 80 THEN + 89 * + CAST ( NULL AS REAL ) + - 68 / + 57 ELSE NULL END ) AS col2
----
-2170
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - COUNT( 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - COUNT ( 71 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8911
SELECT COALESCE ( + 51, 19 ) + - 99 + - 62 DIV 82 * - 23 * - - 62 * - COALESCE ( + 92, 39 - ( - 16 ), + COALESCE ( COUNT( * ), ( 79 ) DIV 87 ) ) DIV - COALESCE ( + CASE + 49 WHEN 12 + - COALESCE ( + CAST( NULL AS SIGNED ) + 0, 56, 51 ) THEN 10 ELSE NULL END, 17, 77 + SUM( + ( 89 ) + 14 ) * 19 )
----
-48

skipif mysql # not compatible
query I rowsort label-8911
SELECT COALESCE ( + 51, 19 ) + - 99 + - 62 / 82 * - 23 * - - 62 * - COALESCE ( + 92, 39 - ( - 16 ), + COALESCE ( COUNT ( * ), ( 79 ) / 87 ) ) / - COALESCE ( + CASE + 49 WHEN 12 + - COALESCE ( + CAST ( NULL AS INTEGER ) + 0, 56, 51 ) THEN 10 ELSE NULL END, 17, 77 + SUM ( + ( 89 ) + 14 ) * 19 )
----
-48

query I rowsort
SELECT + 86 + - 0 AS col1
----
86

query I rowsort
SELECT + 0 + + + 19 + + 23 * 47 * + - 76 + NULLIF ( - + 90, - 9 ) + 25 * ( + 74 ) AS col1
----
-80377

query I rowsort
SELECT 73 * - - 57
----
4161

query II rowsort
SELECT 25 AS col2, - 22 AS col2
----
25
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT DISTINCT - 76 - - 32 - - NULLIF ( + + 18, - + 14 ) + - COUNT( * ) AS col0, CASE + - COUNT( * ) WHEN 71 THEN - MAX( - 64 ) * - 23 END + + MIN( ALL + 35 ) AS col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8916
SELECT DISTINCT - 76 - - 32 - - NULLIF ( + + 18, - + 14 ) + - COUNT ( * ) AS col0, CASE + - COUNT ( * ) WHEN 71 THEN - MAX ( - 64 ) * - 23 END + + MIN ( ALL + 35 ) AS col1
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL - COALESCE ( + 59, - - 56 * + + 24 + - ( 92 ), + COUNT( * ) * - - 22 * + + 21 * - 29 )
----
-59

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - COALESCE ( + 59, - - 56 * + + 24 + - ( 92 ), + COUNT ( * ) * - - 22 * + + 21 * - 29 )
----
-59

query I rowsort
SELECT ALL 36 * + ( - 12 )
----
-432

query I rowsort
SELECT ALL - 58 - - 40 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - ( - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - ( - COUNT ( * ) ) col2
----
1

query I rowsort
SELECT ALL - 31 * - 89 * - + 18 AS col1
----
-49662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT - CAST( - 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) AS col1
----
86

query II rowsort
SELECT ALL - 63 col1, 73 * + 75
----
-63
5475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8924
SELECT DISTINCT - CAST( NULL AS SIGNED ), 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 81 AS col0
----
NULL
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT ALL + 32 * + COUNT( * ) AS col0, COUNT( * ) - 96 - 17 col2
----
32
-112

skipif mysql # not compatible
query II rowsort label-8925
SELECT ALL + 32 * + COUNT ( * ) AS col0, COUNT ( * ) - 96 - 17 col2
----
32
-112

query I rowsort
SELECT DISTINCT - COALESCE ( - - 45, + 45 ) AS col2
----
-45

query II rowsort
SELECT ALL - 53 AS col2, 45
----
-53
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT ALL COALESCE ( - - NULLIF ( + 50, + 80 ), + - 38 * SUM( DISTINCT 22 ) ) * + ( - 92 ), COUNT( * ) AS col1
----
-4600
1

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL COALESCE ( - - NULLIF ( + 50, + 80 ), + - 38 * SUM ( DISTINCT 22 ) ) * + ( - 92 ), COUNT ( * ) AS col1
----
-4600
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT ALL + 96 DIV - 1 col0
----
-96

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 96 / - 1 col0
----
-96

query I rowsort
SELECT ALL - ( - 18 ) + + 58
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT ALL 76 + CAST( 60 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL 76 + CAST ( 60 AS INTEGER )
----
136

query I rowsort
SELECT 53 - + 9
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL ( - COUNT( * ) ) + 1 * + ( + 16 )
----
15

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL ( - COUNT ( * ) ) + 1 * + ( + 16 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT - COUNT( * ) + - 68 + - - 83
----
14

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - COUNT ( * ) + - 68 + - - 83
----
14

query I rowsort
SELECT ALL 65 * + - 44 * 88 AS col0
----
-251680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8936
SELECT - COALESCE ( CAST( NULL AS SIGNED ), 17 DIV 31 + + - COUNT( * ), - 23 * + 63 * - 63 * 21 * 49 * + 7 * 5, + ( 65 ) * 16 )
----
1

skipif mysql # not compatible
query I rowsort label-8936
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), 17 / 31 + + - COUNT ( * ), - 23 * + 63 * - 63 * 21 * 49 * + 7 * 5, + ( 65 ) * 16 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT - COUNT( * ) AS col2, - 91 + + ( 74 )
----
-1
-17

skipif mysql # not compatible
query II rowsort label-8937
SELECT - COUNT ( * ) AS col2, - 91 + + ( 74 )
----
-1
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - COUNT( CAST( 15 AS SIGNED ) ) + COALESCE ( 62, + - 37 ) * COUNT( * ) + ( 47 ) + - - ( + 73 ) * - 8
----
-476

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - COUNT ( CAST ( 15 AS INTEGER ) ) + COALESCE ( 62, + - 37 ) * COUNT ( * ) + ( 47 ) + - - ( + 73 ) * - 8
----
-476

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT ALL CASE 10 WHEN - 81 + + 38 / - 76 THEN + 12 END AS col1, CASE - 76 WHEN + + 99 THEN + CAST( + + CAST( 92 AS SIGNED ) AS SIGNED ) WHEN 83 * - 35 THEN 78 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL CASE 10 WHEN - 81 + + 38 / - 76 THEN + 12 END AS col1, CASE - 76 WHEN + + 99 THEN + CAST ( + + CAST ( 92 AS INTEGER ) AS INTEGER ) WHEN 83 * - 35 THEN 78 ELSE NULL END AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8940
SELECT CAST( NULL AS DECIMAL ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT CAST ( NULL AS REAL ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + 75 + + MAX( ALL - 98 )
----
-23

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 75 + + MAX ( ALL - 98 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT DISTINCT COUNT( * ) - - CAST( + + 33 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT COUNT ( * ) - - CAST ( + + 33 AS INTEGER ) AS col2
----
34

query I rowsort
SELECT DISTINCT + 16 * + 83 + + 39
----
1367

query I rowsort
SELECT DISTINCT 13 * 53
----
689

query I rowsort
SELECT ALL 31 * - 46 * + 63 * + 41
----
-3683358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT CAST( - 8 AS SIGNED ) * - 44 AS col2
----
352

skipif mysql # not compatible
query I rowsort label-8946
SELECT CAST ( - 8 AS INTEGER ) * - 44 AS col2
----
352

query I rowsort
SELECT 11 * - 1 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT CAST( - 81 AS SIGNED ) + + + COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8948
SELECT CAST ( - 81 AS INTEGER ) + + + COUNT ( * ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT DISTINCT - CASE - 30 WHEN 91 * + - COUNT( * ) + CAST( NULL AS SIGNED ) THEN + - 68 WHEN 5 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - CASE - 30 WHEN 91 * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN + - 68 WHEN 5 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - COUNT( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - COUNT ( 75 )
----
-1

query I rowsort
SELECT 98 * 53
----
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT - 99 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT - 99 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - - 62, - 13 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT 11 * - CAST( 10 AS SIGNED ) * - 8 * + 58 + 12 * + 25 AS col1
----
51340

skipif mysql # not compatible
query I rowsort label-8954
SELECT 11 * - CAST ( 10 AS INTEGER ) * - 8 * + 58 + 12 * + 25 AS col1
----
51340

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL - COUNT( * ) * - 59 * + 27
----
1593

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - COUNT ( * ) * - 59 * + 27
----
1593

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT 0 DIV 3 + + 25 + 29 * - 42 + + 75
----
-1118

skipif mysql # not compatible
query I rowsort label-8956
SELECT 0 / 3 + + 25 + 29 * - 42 + + 75
----
-1118

query I rowsort
SELECT 36 + - 69 - - 50 AS col1
----
17

query I rowsort
SELECT ALL - 37 * ( 45 ) + 72 * - - 44 * + 68 * + - 93 AS col0
----
-20036097

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT 1 * + 92 + + COUNT( * ) * - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8959
SELECT 1 * + 92 + + COUNT ( * ) * - COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - - MIN( + 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - - MIN ( + 21 ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT - CAST( - COALESCE ( + + 83, + 2 ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - CAST ( - COALESCE ( + + 83, + 2 ) AS INTEGER )
----
83

query I rowsort
SELECT ALL - 85 + 27
----
-58

query I rowsort
SELECT DISTINCT + 27 * + COALESCE ( + 24, 2 ) + 56 * CASE + 58 WHEN + ( 69 ) THEN NULL ELSE ( + 1 ) END * + + 24 + - 16 col1
----
1976

query I rowsort
SELECT ALL + 63 + + - 59
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL COUNT( * ) + - - 65
----
66

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL COUNT ( * ) + - - 65
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT - CAST( 30 AS SIGNED ) + - 38 + - MAX( 40 ) + - 35 * - COALESCE ( + - 56, - COALESCE ( + 14, - ( - 78 ), CASE + COUNT( * ) WHEN 73 THEN COUNT( * ) * 5 WHEN + 79 THEN COUNT( * ) * + COUNT( * ) - 60 WHEN 39 THEN - 29 + 39 ELSE COUNT( * ) END * 81 ) ) * 58 AS col0
----
-113788

skipif mysql # not compatible
query I rowsort label-8966
SELECT - CAST ( 30 AS INTEGER ) + - 38 + - MAX ( 40 ) + - 35 * - COALESCE ( + - 56, - COALESCE ( + 14, - ( - 78 ), CASE + COUNT ( * ) WHEN 73 THEN COUNT ( * ) * 5 WHEN + 79 THEN COUNT ( * ) * + COUNT ( * ) - 60 WHEN 39 THEN - 29 + 39 ELSE COUNT ( * ) END * 81 ) ) * 58 AS col0
----
-113788

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT COUNT( * ) * - 9 + - 19
----
-28

skipif mysql # not compatible
query I rowsort label-8967
SELECT COUNT ( * ) * - 9 + - 19
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT + + 50 + - 27 DIV - 62 DIV - 86 DIV + COUNT( 35 ) * - - 73 + + + 6 + - COUNT( * ) + + - 34 * 86 * - 96 - + 57 * - 65
----
284464

skipif mysql # not compatible
query I rowsort label-8968
SELECT + + 50 + - 27 / - 62 / - 86 / + COUNT ( 35 ) * - - 73 + + + 6 + - COUNT ( * ) + + - 34 * 86 * - 96 - + 57 * - 65
----
284464

query I rowsort
SELECT + - 33 * - + 28 + + + 34 AS col1
----
958

query I rowsort
SELECT - 55 + 35 AS col2
----
-20

query I rowsort
SELECT - - COALESCE ( + + 53, - 21 * 43 + + - 30 + - + 1 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT + 43 + + 2 DIV 72
----
43

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 43 + + 2 / 72
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT CAST( 14 AS SIGNED ) * - 62 + 74 * + - ( + + 39 ) AS col2
----
-3754

skipif mysql # not compatible
query I rowsort label-8973
SELECT CAST ( 14 AS INTEGER ) * - 62 + 74 * + - ( + + 39 ) AS col2
----
-3754

onlyif mysql # aggregate syntax: 
query II rowsort label-8974
SELECT ALL - - MAX( - + 12 ) * 19 AS col2, 59 + - 6 AS col1
----
-228
53

skipif mysql # not compatible
query II rowsort label-8974
SELECT ALL - - MAX ( - + 12 ) * 19 AS col2, 59 + - 6 AS col1
----
-228
53

query I rowsort
SELECT ALL + + 99 - + 89 col1
----
10

query I rowsort
SELECT + - 81 + 73
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT DISTINCT - 76 - 58 AS col1, COUNT( * ) AS col2
----
-134
1

skipif mysql # not compatible
query II rowsort label-8977
SELECT DISTINCT - 76 - 58 AS col1, COUNT ( * ) AS col2
----
-134
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT DISTINCT 90 * + 99 * - - COUNT( * ) AS col0, 95 AS col1
----
8910
95

skipif mysql # not compatible
query II rowsort label-8978
SELECT DISTINCT 90 * + 99 * - - COUNT ( * ) AS col0, 95 AS col1
----
8910
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 19 + 81 * CASE + ( 69 ) WHEN - 83 THEN + SUM( - 53 ) WHEN COALESCE ( + + 88, - 97 ) * - 90 * - + 10 THEN 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 19 + 81 * CASE + ( 69 ) WHEN - 83 THEN + SUM ( - 53 ) WHEN COALESCE ( + + 88, - 97 ) * - 90 * - + 10 THEN 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT + COALESCE ( + 83, - 76 + 33 ) + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8980
SELECT + COALESCE ( + 83, - 76 + 33 ) + - COUNT ( * )
----
82

query I rowsort
SELECT + 95 + - 55 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT + 7 + + COALESCE ( 90, 58 * + + ( + 29 ) * 88 / - 68 + + SUM( ALL + 9 ) * - 25 + + 41 + + 26 ) + 34 / + CASE 60 * + 77 WHEN 5 - + ( 80 - 29 ) THEN + ( + CAST( + 14 AS SIGNED ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 7 + + COALESCE ( 90, 58 * + + ( + 29 ) * 88 / - 68 + + SUM ( ALL + 9 ) * - 25 + + 41 + + 26 ) + 34 / + CASE 60 * + 77 WHEN 5 - + ( 80 - 29 ) THEN + ( + CAST ( + 14 AS INTEGER ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + 12 + MIN( 47 )
----
59

skipif mysql # not compatible
query I rowsort label-8983
SELECT + 12 + MIN ( 47 )
----
59

query I rowsort
SELECT - 71 * - 32
----
2272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL CASE + 88 WHEN + + 97 / - - 15 + + 95 + - 11 - - CAST( NULL AS SIGNED ) + + 81 + + + 76 * - + COUNT( * ) + - - 62 * + 42 / - 99 THEN NULL ELSE + 3 / + 48 END / ( MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL CASE + 88 WHEN + + 97 / - - 15 + + 95 + - 11 - - CAST ( NULL AS INTEGER ) + + 81 + + + 76 * - + COUNT ( * ) + - - 62 * + 42 / - 99 THEN NULL ELSE + 3 / + 48 END / ( MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT ALL COUNT( * ) AS col0, + 33 col2
----
1
33

skipif mysql # not compatible
query II rowsort label-8986
SELECT ALL COUNT ( * ) AS col0, + 33 col2
----
1
33

query I rowsort
SELECT - NULLIF ( + 59, + 82 * - 9 + + - 48 * + + 61 + + 12 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL 65 + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 65 + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT DISTINCT COUNT( * ) DIV - 12 * + + 42 * 34
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT COUNT ( * ) / - 12 * + + 42 * 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + MIN( ALL + 85 ) + + 98 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + MIN ( ALL + 85 ) + + 98 AS col1
----
183

query I rowsort
SELECT + 53 + + + 84 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT DISTINCT + 26 DIV COUNT( * ) + - - 97
----
123

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + 26 / COUNT ( * ) + - - 97
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT + 99 DIV - 17
----
-5

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 99 / - 17
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT 5 / + + COUNT( * ) + + - CASE + 98 WHEN 43 THEN NULL WHEN - 48 THEN + SUM( ALL + - ( - + 31 ) ) WHEN + - 35 THEN - 14 * - 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT 5 / + + COUNT ( * ) + + - CASE + 98 WHEN 43 THEN NULL WHEN - 48 THEN + SUM ( ALL + - ( - + 31 ) ) WHEN + - 35 THEN - 14 * - 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - ( - ( COUNT( * ) ) ) * + + 42 + 60 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - ( - ( COUNT ( * ) ) ) * + + 42 + 60 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 17 * CASE - 63 WHEN - 54 THEN NULL WHEN COUNT( * ) + + - ( + AVG ( DISTINCT + + NULLIF ( + - 38, ( 74 ) ) ) ) + 58 / + COUNT( * ) * 15 THEN 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 17 * CASE - 63 WHEN - 54 THEN NULL WHEN COUNT ( * ) + + - ( + AVG ( DISTINCT + + NULLIF ( + - 38, ( 74 ) ) ) ) + 58 / + COUNT ( * ) * 15 THEN 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT - SUM( + 66 ) * - 49 + - 8
----
3226

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - SUM ( + 66 ) * - 49 + - 8
----
3226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT ALL + 94 * + 37 * + 21 + + COUNT( * ) DIV - 81 + COUNT( * ) + - 22 AS col0
----
73017

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + 94 * + 37 * + 21 + + COUNT ( * ) / - 81 + COUNT ( * ) + - 22 AS col0
----
73017

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT + 69 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 69 / - 27 AS col2
----
-2

query I rowsort
SELECT - 75 + + 5 - - + 37
----
-33

query I rowsort
SELECT + - COALESCE ( 69, - - 21 * + 88 - 76 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT + 26 * - + 95 * - - 79 - 99 AS col0
----
-195229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT DISTINCT + NULLIF ( - + COUNT( * ), 64 ) * + 74 DIV 81 + - - ( - ( - 23 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), 64 ) * + 74 / 81 + - - ( - ( - 23 ) ) AS col2
----
23

query I rowsort
SELECT DISTINCT + - 77 * 4 AS col1
----
-308

query I rowsort
SELECT - 57 - + 15 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL + 54 * + - 29 - CASE COUNT( * ) WHEN + - 10 * + + 78 THEN NULL ELSE + - 74 END AS col2
----
-1492

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + 54 * + - 29 - CASE COUNT ( * ) WHEN + - 10 * + + 78 THEN NULL ELSE + - 74 END AS col2
----
-1492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT ALL - 38 * - + 65 * - - 9 + - COALESCE ( - 58, 95 * + + 29 * + ( 61 ), 95 + + + 77 DIV - 90 ) + 73 + - COUNT( * ) AS col2
----
22360

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 38 * - + 65 * - - 9 + - COALESCE ( - 58, 95 * + + 29 * + ( 61 ), 95 + + + 77 / - 90 ) + 73 + - COUNT ( * ) AS col2
----
22360

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - 89 * - - 77 - 66 - + + COUNT( * )
----
-6920

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - 89 * - - 77 - 66 - + + COUNT ( * )
----
-6920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9009
SELECT - - 27 * - CAST( - 80 AS SIGNED ), + 48 - 3 - - 52 + - 88 - + 36 * + NULLIF ( - COUNT( * ), 65 ) AS col2
----
2160
45

skipif mysql # not compatible
query II rowsort label-9009
SELECT - - 27 * - CAST ( - 80 AS INTEGER ), + 48 - 3 - - 52 + - 88 - + 36 * + NULLIF ( - COUNT ( * ), 65 ) AS col2
----
2160
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT 28 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT 28 / - 70
----
0

query II rowsort
SELECT DISTINCT - 13 col0, ( + 84 )
----
-13
84

query I rowsort
SELECT - - 77 - - 85
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT - + MIN( + 67 ) * + + COUNT( DISTINCT - + 57 ) DIV + - 90 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9013
SELECT - + MIN ( + 67 ) * + + COUNT ( DISTINCT - + 57 ) / + - 90 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9014
SELECT ALL - 99 / ( - NULLIF ( 67, - 78 / 76 / ( 62 ) * 94 ) ) * 90 + + + CASE - 96 WHEN + 48 + COALESCE ( 64, 89 ) THEN NULL WHEN - 14 * + 15 THEN ( 9 ) + + CAST( - 67 AS DECIMAL ) ELSE - 68 * 59 + CAST( NULL AS SIGNED ) END + + COUNT( ALL + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - 99 / ( - NULLIF ( 67, - 78 / 76 / ( 62 ) * 94 ) ) * 90 + + + CASE - 96 WHEN + 48 + COALESCE ( 64, 89 ) THEN NULL WHEN - 14 * + 15 THEN ( 9 ) + + CAST ( - 67 AS REAL ) ELSE - 68 * 59 + CAST ( NULL AS INTEGER ) END + + COUNT ( ALL + 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT ALL CAST( + + CASE + 39 WHEN - + 57 THEN NULL WHEN - - 14 THEN NULL ELSE + + CAST( + 16 AS SIGNED ) * 0 END AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL CAST ( + + CASE + 39 WHEN - + 57 THEN NULL WHEN - - 14 THEN NULL ELSE + + CAST ( + 16 AS INTEGER ) * 0 END AS INTEGER )
----
0

query I rowsort
SELECT - 66 + + - 33 AS col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT + 72 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 72 / 47
----
1

query I rowsort
SELECT - 83 * 25
----
-2075

query I rowsort
SELECT + 89 * - 13
----
-1157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL CAST( + 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL CAST ( + 69 AS INTEGER ) AS col2
----
69

query I rowsort
SELECT - 59 * + - 81 AS col2
----
4779

query I rowsort
SELECT ALL ( - 65 ) + - + 24 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + COUNT( * ) * ( - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + COUNT ( * ) * ( - + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9024
SELECT ALL - 73 + - 83 + - - CAST( + 89 AS SIGNED ), 60 AS col1
----
-67
60

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL - 73 + - 83 + - - CAST ( + 89 AS INTEGER ), 60 AS col1
----
-67
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL ( CASE - 87 WHEN + - 69 THEN - ( - 61 ) * 73 + + 42 * + + COUNT( * ) * 79 WHEN + + 79 THEN 92 WHEN + 99 - - 27 THEN NULL ELSE NULL END ) + - 45 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL ( CASE - 87 WHEN + - 69 THEN - ( - 61 ) * 73 + + 42 * + + COUNT ( * ) * 79 WHEN + + 79 THEN 92 WHEN + 99 - - 27 THEN NULL ELSE NULL END ) + - 45 * - 10
----
NULL

query I rowsort
SELECT - 0 + + 45 + 98
----
143

query I rowsort
SELECT - 17 + - - 21 + - 36
----
-32

query I rowsort
SELECT - NULLIF ( - + 48, - + 30 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + 70 + 68 * - 6 * + COUNT( * ) * + 76 + + 77 AS col1
----
-30861

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 70 + 68 * - 6 * + COUNT ( * ) * + 76 + + 77 AS col1
----
-30861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT 10 * - COUNT( * ) * + 22 + - COUNT( * ) + NULLIF ( - 26, 40 ) DIV 33 AS col0
----
-221

skipif mysql # not compatible
query I rowsort label-9030
SELECT 10 * - COUNT ( * ) * + 22 + - COUNT ( * ) + NULLIF ( - 26, 40 ) / 33 AS col0
----
-221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL 4 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL 4 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL - NULLIF ( - + ( + CASE + 42 WHEN + 3 + + - 20 THEN + - 95 END ), - COUNT( * ) * - - 15 * - MIN( + + 89 ) * - COUNT( * ) / COUNT( * ) + - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - NULLIF ( - + ( + CASE + 42 WHEN + 3 + + - 20 THEN + - 95 END ), - COUNT ( * ) * - - 15 * - MIN ( + + 89 ) * - COUNT ( * ) / COUNT ( * ) + - 46 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT + 83 * 11 - 37 * + CAST( + - 6 AS SIGNED ) + MIN( ALL + 86 ) + - COUNT( * ) / - 73 * - CAST( NULL AS SIGNED ) * + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT + 83 * 11 - 37 * + CAST ( + - 6 AS INTEGER ) + MIN ( ALL + 86 ) + - COUNT ( * ) / - 73 * - CAST ( NULL AS INTEGER ) * + + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT 61 * 3 * 72 + + ( COUNT( * ) ) AS col1
----
13177

skipif mysql # not compatible
query I rowsort label-9034
SELECT 61 * 3 * 72 + + ( COUNT ( * ) ) AS col1
----
13177

query I rowsort
SELECT - 71 * + + 79 col0
----
-5609

query I rowsort
SELECT 20 + + 3 + 39 - + - 29 * - 87
----
-2461

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - 91 * - 85 + + COUNT( * )
----
7736

skipif mysql # not compatible
query I rowsort label-9037
SELECT - 91 * - 85 + + COUNT ( * )
----
7736

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - + COUNT( DISTINCT + 95 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - + COUNT ( DISTINCT + 95 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + 3 * - 60 * - 20 + - COUNT( * ) + - 66 + 41
----
3574

skipif mysql # not compatible
query I rowsort label-9039
SELECT + 3 * - 60 * - 20 + - COUNT ( * ) + - 66 + 41
----
3574

query I rowsort
SELECT 99 + 72 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT ALL - - ( 58 ) DIV + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - - ( 58 ) / + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT 76 DIV + + 88 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9042
SELECT 76 / + + 88 / COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9043
SELECT ALL 34 DIV + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * - - 7 AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9043
SELECT ALL 34 / + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - - 7 AS col2
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT - ( + 32 ) * 3 + COUNT( * ) * - 27 + + ( + - 90 ) DIV + - NULLIF ( + 4, COUNT( * ) - + + AVG ( ALL 55 ) ) + - - 66 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9044
SELECT - ( + 32 ) * 3 + COUNT ( * ) * - 27 + + ( + - 90 ) / + - NULLIF ( + 4, COUNT ( * ) - + + AVG ( ALL 55 ) ) + - - 66 AS col2
----
-35

query I rowsort
SELECT ALL - - 99 * + - 98 * + - 86 AS col0
----
834372

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT ALL - + 7 * 54 * - + 83 * + 89, COUNT( * ) - 23 + + + MAX( DISTINCT + 49 ) * - + 39 + - 91 - 88 AS col2
----
2792286
-2112

skipif mysql # not compatible
query II rowsort label-9046
SELECT ALL - + 7 * 54 * - + 83 * + 89, COUNT ( * ) - 23 + + + MAX ( DISTINCT + 49 ) * - + 39 + - 91 - 88 AS col2
----
2792286
-2112

query I rowsort
SELECT 82 + - - 62
----
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9048
SELECT 92 + + 80 + + 21, CASE + 60 WHEN + ( - NULLIF ( + - 75, - + 5 ) ) * - COALESCE ( + 34, COALESCE ( + 57, + - 68, 30 ) + + ( 61 ) * 39, + ( - COALESCE ( 89, - COUNT( * ) * COUNT( * ) ) ) + 84 * + ( + 49 ) ) + 74 THEN + CASE 69 WHEN - 60 / NULLIF ( + 81, 80 ) THEN + 65 / COUNT( * ) WHEN + 37 THEN 56 WHEN 45 + + 99 THEN 92 * 75 + + 90 * 68 WHEN - 2 + - 7 THEN + 40 * 9 + - 57 ELSE CAST( NULL AS DECIMAL ) END ELSE NULL END + 51 / 90 col0
----
193
NULL

skipif mysql # not compatible
query II rowsort label-9048
SELECT 92 + + 80 + + 21, CASE + 60 WHEN + ( - NULLIF ( + - 75, - + 5 ) ) * - COALESCE ( + 34, COALESCE ( + 57, + - 68, 30 ) + + ( 61 ) * 39, + ( - COALESCE ( 89, - COUNT ( * ) * COUNT ( * ) ) ) + 84 * + ( + 49 ) ) + 74 THEN + CASE 69 WHEN - 60 / NULLIF ( + 81, 80 ) THEN + 65 / COUNT ( * ) WHEN + 37 THEN 56 WHEN 45 + + 99 THEN 92 * 75 + + 90 * 68 WHEN - 2 + - 7 THEN + 40 * 9 + - 57 ELSE CAST ( NULL AS REAL ) END ELSE NULL END + 51 / 90 col0
----
193
NULL

query II rowsort
SELECT 45 AS col2, - 39
----
45
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9050
SELECT DISTINCT + ( 63 ) + - 24 * - - CAST( NULL AS DECIMAL ) * - - 41 col2, 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9050
SELECT DISTINCT + ( 63 ) + - 24 * - - CAST ( NULL AS REAL ) * - - 41 col2, 88
----
NULL
88

query I rowsort
SELECT 1 * - - 28 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT DISTINCT - 86 + - 22 + - 68 * + 53 DIV - COUNT( * ) + 78 AS col1
----
3574

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT - 86 + - 22 + - 68 * + 53 / - COUNT ( * ) + 78 AS col1
----
3574

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL COUNT( * ) + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL COUNT ( * ) + 2 AS col0
----
3

query I rowsort
SELECT 27 + 38
----
65

query I rowsort
SELECT ALL - 68 + + COALESCE ( 1, - 79 ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT DISTINCT - CASE COUNT( * ) WHEN 58 THEN NULL ELSE MIN( DISTINCT - 10 ) DIV + 4 END + - - 30
----
32

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT - CASE COUNT ( * ) WHEN 58 THEN NULL ELSE MIN ( DISTINCT - 10 ) / + 4 END + - - 30
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT ALL - CAST( NULL AS SIGNED ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - CAST ( NULL AS INTEGER ) * - 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT 17 DIV - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT 17 / - 99 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT COUNT( DISTINCT + + 91 ) + - 36 col0
----
-35

skipif mysql # not compatible
query I rowsort label-9059
SELECT COUNT ( DISTINCT + + 91 ) + - 36 col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT 42 AS col2, - NULLIF ( + 28, + - SUM( - 26 ) ) + - 9 AS col1
----
42
-37

skipif mysql # not compatible
query II rowsort label-9060
SELECT 42 AS col2, - NULLIF ( + 28, + - SUM ( - 26 ) ) + - 9 AS col1
----
42
-37

query I rowsort
SELECT ALL 58 - - + 36 + - - 96 AS col1
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT 42 DIV + - MAX( DISTINCT 36 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9062
SELECT 42 / + - MAX ( DISTINCT 36 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL + NULLIF ( + + CASE 85 WHEN 6 + CAST( NULL AS SIGNED ) THEN NULL ELSE COUNT( * ) END, - - 4 * - 7 + 83 * - - 99 - + NULLIF ( 97, - - MAX( - ( + 83 ) ) * + COUNT( * ) ) / 98 ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + NULLIF ( + + CASE 85 WHEN 6 + CAST ( NULL AS INTEGER ) THEN NULL ELSE COUNT ( * ) END, - - 4 * - 7 + 83 * - - 99 - + NULLIF ( 97, - - MAX ( - ( + 83 ) ) * + COUNT ( * ) ) / 98 ) * 42
----
42

query II rowsort
SELECT DISTINCT 60, 84 AS col2
----
60
84

query I rowsort
SELECT 52 + + 63 + 71 AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT CASE COALESCE ( - COUNT( * ), - COUNT( * ) + - + 64 + - - 82 + - COUNT( 96 ) ) WHEN - 55 THEN - 45 * 81 * + - 53 WHEN + - ( - COALESCE ( + ( + COUNT( * ) ), - 28 ) ) THEN 84 END * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT CASE COALESCE ( - COUNT ( * ), - COUNT ( * ) + - + 64 + - - 82 + - COUNT ( 96 ) ) WHEN - 55 THEN - 45 * 81 * + - 53 WHEN + - ( - COALESCE ( + ( + COUNT ( * ) ), - 28 ) ) THEN 84 END * 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT + 68 * - CAST( - 64 AS SIGNED ) AS col0
----
4352

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 68 * - CAST ( - 64 AS INTEGER ) AS col0
----
4352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT ALL - CAST( - + 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - CAST ( - + 3 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT + + 53 DIV 95 DIV - - 27 + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9069
SELECT + + 53 / 95 / - - 27 + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + + CASE + + MAX( DISTINCT 52 ) WHEN + 20 / 60 THEN + + 89 + + 18 + - + 28 WHEN + 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT + + CASE + + MAX ( DISTINCT 52 ) WHEN + 20 / 60 THEN + + 89 + + 18 + - + 28 WHEN + 9 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL + MIN( ALL ( - - 54 ) ) * + - 21
----
-1134

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + MIN ( ALL ( - - 54 ) ) * + - 21
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - 35 * + + MIN( + ( + 94 ) )
----
-3290

skipif mysql # not compatible
query I rowsort label-9072
SELECT - 35 * + + MIN ( + ( + 94 ) )
----
-3290

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT + - 45, - SUM( 51 ) + + - 54 + 84 + + CASE 92 WHEN + COUNT( * ) THEN + COUNT( * ) END AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-9073
SELECT + - 45, - SUM ( 51 ) + + - 54 + 84 + + CASE 92 WHEN + COUNT ( * ) THEN + COUNT ( * ) END AS col0
----
-45
NULL

query I rowsort
SELECT ALL - - ( + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT + 88 * COUNT( * ) * 32 * + 55 - + - 52 + 3 AS col0
----
154935

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + 88 * COUNT ( * ) * 32 * + 55 - + - 52 + 3 AS col0
----
154935

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL - MIN( - 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - MIN ( - 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 83 * + COUNT( DISTINCT 1 )
----
83

skipif mysql # not compatible
query I rowsort label-9077
SELECT 83 * + COUNT ( DISTINCT 1 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL + COUNT( * ) + + ( - - 64 ) * - 58 + - COALESCE ( + SUM( DISTINCT + 46 ), - - 72 * 40 ) AS col0
----
-3757

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + COUNT ( * ) + + ( - - 64 ) * - 58 + - COALESCE ( + SUM ( DISTINCT + 46 ), - - 72 * 40 ) AS col0
----
-3757

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT + 42 - 81 DIV + 23 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 42 - 81 / + 23 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT + - CAST( - - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9080
SELECT + - CAST ( - - 16 AS INTEGER )
----
-16

query I rowsort
SELECT + 71 * - 68 + - + 35
----
-4863

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT ALL 48 + - ( - 41 ) DIV - 97 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL 48 + - ( - 41 ) / - 97 AS col1
----
48

query I rowsort
SELECT ALL 66 + - + ( 54 ) AS col2
----
12

query I rowsort
SELECT ALL - 82 + - 32 AS col1
----
-114

query I rowsort
SELECT 17 * - 37 * - 20 * + 31 col2
----
389980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT 59 + - - COUNT( * ) + - 10 DIV - NULLIF ( + 13, 79 + - 89 + - CAST( NULL AS SIGNED ) * 58 * + + ( - AVG ( 77 ) ) ) + 75 - + COUNT( * ) * + 64 * NULLIF ( + ( - 26 ), 79 ) * + 1 AS col1
----
1799

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT 59 + - - COUNT ( * ) + - 10 / - NULLIF ( + 13, 79 + - 89 + - CAST ( NULL AS INTEGER ) * 58 * + + ( - AVG ( 77 ) ) ) + 75 - + COUNT ( * ) * + 64 * NULLIF ( + ( - 26 ), 79 ) * + 1 AS col1
----
1799

query II rowsort
SELECT 9 AS col2, 50
----
9
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL NULLIF ( + SUM( DISTINCT + - 79 ), 73 + + 60 ) + + + 25 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL NULLIF ( + SUM ( DISTINCT + - 79 ), 73 + + 60 ) + + + 25 AS col0
----
-54

query II rowsort
SELECT DISTINCT 83 AS col0, 70 * - - 37 * - 37 + 5 AS col0
----
83
-95825

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT 90 AS col2, + COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-9090
SELECT 90 AS col2, + COUNT ( * )
----
90
1

query II rowsort
SELECT - 88, 93 AS col0
----
-88
93

query II rowsort
SELECT - 42 AS col2, - 11 AS col0
----
-42
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT COUNT( 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT COUNT ( 16 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9094
SELECT ALL - CAST( NULL AS SIGNED ) - + 84, 89 / - 41 + 50 - + 92 - 20 / CASE + - 88 WHEN + 56 + 35 THEN NULL WHEN - 75 * + + 8 THEN + 35 ELSE - ( - 11 ) - 67 * CASE + NULLIF ( + 49, 47 ) + - 8 WHEN CAST( + 35 AS SIGNED ) - COALESCE ( + 32 + - 59, 81 ) * COUNT( * ) THEN - 35 * - 42 WHEN + 17 THEN NULL END END / COUNT( * ) * 62
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9094
SELECT ALL - CAST ( NULL AS INTEGER ) - + 84, 89 / - 41 + 50 - + 92 - 20 / CASE + - 88 WHEN + 56 + 35 THEN NULL WHEN - 75 * + + 8 THEN + 35 ELSE - ( - 11 ) - 67 * CASE + NULLIF ( + 49, 47 ) + - 8 WHEN CAST ( + 35 AS INTEGER ) - COALESCE ( + 32 + - 59, 81 ) * COUNT ( * ) THEN - 35 * - 42 WHEN + 17 THEN NULL END END / COUNT ( * ) * 62
----
NULL
NULL

query I rowsort
SELECT - 64 - - + 53 AS col1
----
-11

query I rowsort
SELECT DISTINCT NULLIF ( ( + 62 ), + 34 - - 61 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL CASE - 49 WHEN 43 * MAX( ALL - - 41 ) THEN NULL WHEN 8 THEN 84 + - 89 ELSE COUNT( ALL - 61 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL CASE - 49 WHEN 43 * MAX ( ALL - - 41 ) THEN NULL WHEN 8 THEN 84 + - 89 ELSE COUNT ( ALL - 61 ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL + COUNT( * ) - - 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL + COUNT ( * ) - - 88 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL NULLIF ( - + COUNT( * ), + NULLIF ( - 95, + 40 / - 37 - - 97 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL NULLIF ( - + COUNT ( * ), + NULLIF ( - 95, + 40 / - 37 - - 97 ) ) col2
----
-1

query I rowsort
SELECT - + 72 * 14
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - MIN( - 22 ) DIV CASE + 96 WHEN + - 78 THEN NULL WHEN + 56 - 12 THEN NULL ELSE - 24 END col1
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT - MIN ( - 22 ) / CASE + 96 WHEN + - 78 THEN NULL WHEN + 56 - 12 THEN NULL ELSE - 24 END col1
----
0

query III rowsort
SELECT - + 34 AS col2, 11, 9 * + - 58 AS col1
----
-34
11
-522

query I rowsort
SELECT - 10 + 74
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9104
SELECT ALL + - NULLIF ( + + 90, + 89 ) * - COALESCE ( 56, COUNT( * ) ) * COALESCE ( - 82, - 74, - CAST( NULL AS SIGNED ) DIV - AVG ( - - ( + 51 ) ) - - 84 ) * + 58 + 48 + - 0 col0
----
-23970192

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + - NULLIF ( + + 90, + 89 ) * - COALESCE ( 56, COUNT ( * ) ) * COALESCE ( - 82, - 74, - CAST ( NULL AS INTEGER ) / - AVG ( - - ( + 51 ) ) - - 84 ) * + 58 + 48 + - 0 col0
----
-23970192

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT ALL + 26 AS col2, + COUNT( * ) AS col2
----
26
1

skipif mysql # not compatible
query II rowsort label-9105
SELECT ALL + 26 AS col2, + COUNT ( * ) AS col2
----
26
1

query II rowsort
SELECT DISTINCT + - 67 col2, + 58 AS col0
----
-67
58

query I rowsort
SELECT ALL + 50 * + + 78 * + 94 + + ( + COALESCE ( 14, - 86, + 75 * - 76 - + + 57 * 29 + - 53 + + 6 + - 18 + - 26 + + - 12 * 3 ) ) * + 94
----
367916

query II rowsort
SELECT ALL + 16 AS col0, + 80 * + 81 col1
----
16
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL + - 28 * + 7 * - COUNT( * ) * - 60 / CAST( NULL AS SIGNED ) / + + 68 * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + - 28 * + 7 * - COUNT ( * ) * - 60 / CAST ( NULL AS INTEGER ) / + + 68 * - 46 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT - 90 * + ( - CAST( + 46 AS SIGNED ) )
----
4140

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 90 * + ( - CAST ( + 46 AS INTEGER ) )
----
4140

query I rowsort
SELECT + - 65 + - 88 AS col2
----
-153

query I rowsort
SELECT ALL - 59 * 9 + + 28 * ( + + ( - - NULLIF ( - 95, + 10 * - 11 ) ) )
----
-3191

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - ( - CASE COUNT( * ) WHEN 4 + + 83 THEN - 33 * CASE COALESCE ( + COALESCE ( - + 39, - + 90, - 71 * + CASE 64 WHEN 29 * - 40 + 44 THEN MIN( 3 ) / + 32 ELSE - ( - 8 ) END ), + 48 ) WHEN + 95 THEN - 0 - - ( - 80 - 12 ) ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT - ( - CASE COUNT ( * ) WHEN 4 + + 83 THEN - 33 * CASE COALESCE ( + COALESCE ( - + 39, - + 90, - 71 * + CASE 64 WHEN 29 * - 40 + 44 THEN MIN ( 3 ) / + 32 ELSE - ( - 8 ) END ), + 48 ) WHEN + 95 THEN - 0 - - ( - 80 - 12 ) ELSE NULL END END )
----
NULL

query I rowsort
SELECT + - 48 * 91 AS col0
----
-4368

query I rowsort
SELECT DISTINCT - 26 * - 16 + NULLIF ( - 20, 47 / - 59 )
----
396

query I rowsort
SELECT + 44 * - 89 * - - 69 + - + 70 + 3 AS col0
----
-270271

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL COUNT( * ) * + 5 * + MAX( - + 99 ) * + 83 - 76 - ( - 39 ) + 59 * 46 col1
----
-38408

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL COUNT ( * ) * + 5 * + MAX ( - + 99 ) * + 83 - 76 - ( - 39 ) + 59 * 46 col1
----
-38408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT + - 26 * 76 + + 63 * - CAST( NULL AS SIGNED ) * + + CAST( - + 20 AS SIGNED ) + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT + - 26 * 76 + + 63 * - CAST ( NULL AS INTEGER ) * + + CAST ( - + 20 AS INTEGER ) + 51 AS col0
----
NULL

query I rowsort
SELECT - 35 * - 14 + + 84
----
574

query II rowsort
SELECT DISTINCT + + 14 AS col1, 86 AS col1
----
14
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT - COUNT( ALL + + 39 ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - COUNT ( ALL + + 39 ) * + 47
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9122
SELECT SUM( - 50 ) col2, 63 + + COUNT( * ) * 66 AS col2
----
-50
129

skipif mysql # not compatible
query II rowsort label-9122
SELECT SUM ( - 50 ) col2, 63 + + COUNT ( * ) * 66 AS col2
----
-50
129

query I rowsort
SELECT + 54 * 63 AS col1
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT + NULLIF ( - 83, + COUNT( + CAST( NULL AS SIGNED ) ) * - 45 )
----
-83

skipif mysql # not compatible
query I rowsort label-9124
SELECT + NULLIF ( - 83, + COUNT ( + CAST ( NULL AS INTEGER ) ) * - 45 )
----
-83

query II rowsort
SELECT + 89 + + 70 * + 52 AS col2, + 20 * 85 col1
----
3729
1700

query I rowsort
SELECT ALL CASE + - 69 WHEN 59 THEN + 40 END * + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL NULLIF ( MIN( ALL + 18 ), 13 / 70 ) * - - 81 * + 49
----
71442

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL NULLIF ( MIN ( ALL + 18 ), 13 / 70 ) * - - 81 * + 49
----
71442

query I rowsort
SELECT - 0 - - 86
----
86

query I rowsort
SELECT + 70 + 29
----
99

query I rowsort
SELECT + 64 + 17 - 34 + - COALESCE ( - - 51, + 63 + - 47 * 33 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT + COALESCE ( - 98, - - CAST( NULL AS SIGNED ) * 81 ) * + 63 * + COUNT( * )
----
-6174

skipif mysql # not compatible
query I rowsort label-9131
SELECT + COALESCE ( - 98, - - CAST ( NULL AS INTEGER ) * 81 ) * + 63 * + COUNT ( * )
----
-6174

query I rowsort
SELECT ALL + 79 * + + 80 * + 96 * + + 9 col1
----
5460480

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT + 40 + + COUNT( * ) * + + SUM( - 89 ) + + 32 AS col1, - 44 + + + 12
----
-17
-32

skipif mysql # not compatible
query II rowsort label-9133
SELECT + 40 + + COUNT ( * ) * + + SUM ( - 89 ) + + 32 AS col1, - 44 + + + 12
----
-17
-32

query I rowsort
SELECT ALL 46 - + 45 AS col0
----
1

query I rowsort
SELECT - CASE + - 37 WHEN - 36 THEN + 49 + 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - - COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-9136
SELECT - - COUNT ( * ) * 46
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT ALL + 15 * + - SUM( + 1 ) AS col2, - COUNT( * )
----
-15
-1

skipif mysql # not compatible
query II rowsort label-9137
SELECT ALL + 15 * + - SUM ( + 1 ) AS col2, - COUNT ( * )
----
-15
-1

query I rowsort
SELECT DISTINCT NULLIF ( - 93, - 44 + - 41 ) col1
----
-93

query I rowsort
SELECT ALL + - 68 * + - 40 AS col2
----
2720

query I rowsort
SELECT DISTINCT + 87 * + - 72 + + ( 89 )
----
-6175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9141
SELECT - - CASE - 33 WHEN - 8 THEN NULL WHEN NULLIF ( 83, - 5 ) / - 84 * - - ( - CAST( NULL AS DECIMAL ) ) * + AVG ( + - 33 ) + + - 50 THEN - 79 ELSE - 47 + + 64 + + 18 END
----
35

skipif mysql # not compatible
query I rowsort label-9141
SELECT - - CASE - 33 WHEN - 8 THEN NULL WHEN NULLIF ( 83, - 5 ) / - 84 * - - ( - CAST ( NULL AS REAL ) ) * + AVG ( + - 33 ) + + - 50 THEN - 79 ELSE - 47 + + 64 + + 18 END
----
35

query I rowsort
SELECT DISTINCT + ( + 15 ) col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9143
SELECT + ( + - 72 ) col1, 86 * + 49 * COUNT( * ) * + 39
----
-72
164346

skipif mysql # not compatible
query II rowsort label-9143
SELECT + ( + - 72 ) col1, 86 * + 49 * COUNT ( * ) * + 39
----
-72
164346

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - + NULLIF ( + - 27, - - 55 ) DIV + 28 + - + 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9144
SELECT - + NULLIF ( + - 27, - - 55 ) / + 28 + - + 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT ALL + 29 / + + 94 + + CASE 49 WHEN + 32 THEN NULL WHEN 70 + 95 * 3 THEN - - 94 / + - 92 * CAST( 24 AS SIGNED ) * - COUNT( * ) + 33 WHEN - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + 29 / + + 94 + + CASE 49 WHEN + 32 THEN NULL WHEN 70 + 95 * 3 THEN - - 94 / + - 92 * CAST ( 24 AS INTEGER ) * - COUNT ( * ) + 33 WHEN - 63 THEN NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( + 83, + - 43 ) * - 51 + 74
----
4307

query I rowsort
SELECT - 80 * - 87
----
6960

query I rowsort
SELECT ALL + 22 * 5 AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT DISTINCT 83 DIV 29 + 71 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT 83 / 29 + 71 AS col2
----
73

query II rowsort
SELECT ALL + + ( - - 44 ) AS col1, 36 AS col2
----
44
36

query I rowsort
SELECT + - NULLIF ( - 36, - 28 )
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9152
SELECT ALL - + 30 DIV ( COALESCE ( + + 96, - - 68 ) ) - - 17 + 9 AS col1, + 17
----
26
17

skipif mysql # not compatible
query II rowsort label-9152
SELECT ALL - + 30 / ( COALESCE ( + + 96, - - 68 ) ) - - 17 + 9 AS col1, + 17
----
26
17

query I rowsort
SELECT ( + - 80 ) AS col1
----
-80

query I rowsort
SELECT ALL + 82 * + 43 col2
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + NULLIF ( - - 53, + 80 + + CASE + - 90 WHEN - - 38 * + - COUNT( * ) / + ( 72 ) THEN ( + 81 ) - - 3 WHEN + + 99 THEN NULL ELSE + 74 END + + 33 + 43 * + COUNT( * ) * + 13 + 49 )
----
53

skipif mysql # not compatible
query I rowsort label-9155
SELECT + NULLIF ( - - 53, + 80 + + CASE + - 90 WHEN - - 38 * + - COUNT ( * ) / + ( 72 ) THEN ( + 81 ) - - 3 WHEN + + 99 THEN NULL ELSE + 74 END + + 33 + 43 * + COUNT ( * ) * + 13 + 49 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9156
SELECT ALL + 89 * + 4 - 62 AS col2, CAST( NULL AS SIGNED )
----
294
NULL

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL + 89 * + 4 - 62 AS col2, CAST ( NULL AS INTEGER )
----
294
NULL

query I rowsort
SELECT - 77 * 0
----
0

query I rowsort
SELECT - 53 + - 39
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9159
SELECT ( CAST( - 34 AS SIGNED ) ) AS col2, + COUNT( * ) col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-9159
SELECT ( CAST ( - 34 AS INTEGER ) ) AS col2, + COUNT ( * ) col0
----
-34
1

query I rowsort
SELECT ALL 59 * - 59 AS col2
----
-3481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT 94 * + - COALESCE ( 17, + - 93 DIV CASE - 63 WHEN - 29 THEN NULL WHEN ( + 14 ) * + 79 THEN + 1 END + 48, - + 35 + + 35, - 43 + - 90 * + COUNT( * ) + + - 17 )
----
-1598

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT 94 * + - COALESCE ( 17, + - 93 / CASE - 63 WHEN - 29 THEN NULL WHEN ( + 14 ) * + 79 THEN + 1 END + 48, - + 35 + + 35, - 43 + - 90 * + COUNT ( * ) + + - 17 )
----
-1598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT ( - CAST( NULL AS SIGNED ) ) - + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ( - CAST ( NULL AS INTEGER ) ) - + + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT 40 * - COALESCE ( 20, + 51 DIV 43 * - 21 + - 70 - + CASE 71 WHEN - 97 THEN - 8 * - COUNT( * ) * - 5 ELSE NULL END ) AS col2
----
-800

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT 40 * - COALESCE ( 20, + 51 / 43 * - 21 + - 70 - + CASE 71 WHEN - 97 THEN - 8 * - COUNT ( * ) * - 5 ELSE NULL END ) AS col2
----
-800

query II rowsort
SELECT ALL 53, 81 AS col0
----
53
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT 80 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-9165
SELECT 80 / - + 41
----
-1

query I rowsort
SELECT 51 * - 20 AS col0
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL + 58 + + 47 * 13 + - + 90 + - 0 * - + COUNT( * ) * - 47 - + AVG ( ALL + + CAST( NULL AS SIGNED ) ) + 31 * - 33 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + 58 + + 47 * 13 + - + 90 + - 0 * - + COUNT ( * ) * - 47 - + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) + 31 * - 33 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT ALL ( - 31 ) DIV ( NULLIF ( + 16, 58 ) ) * - 52 + - MAX( 16 )
----
36

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL ( - 31 ) / ( NULLIF ( + 16, 58 ) ) * - 52 + - MAX ( 16 )
----
36

query II rowsort
SELECT DISTINCT + 94 AS col0, 86
----
94
86

query I rowsort
SELECT ALL + + 65 + + 43 col1
----
108

query II rowsort
SELECT - 76 AS col1, 51 col2
----
-76
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - SUM( - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9172
SELECT - SUM ( - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL COUNT( * ) + + + ( - 68 )
----
-67

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL COUNT ( * ) + + + ( - 68 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT CASE - - 45 WHEN 91 THEN + COUNT( * ) END + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT CASE - - 45 WHEN 91 THEN + COUNT ( * ) END + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL - 82 + + COUNT( * ) + - 31 - 11 - - - 28 * - 82 * COUNT( * )
----
2173

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - 82 + + COUNT ( * ) + - 31 - 11 - - - 28 * - 82 * COUNT ( * )
----
2173

query I rowsort
SELECT 11 * + + 92
----
1012

query I rowsort
SELECT 46 * + + 60 col0
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9178
SELECT DISTINCT - 5 - + CAST( NULL AS SIGNED ) col1, 13 + - 48 * + 17 + + 74 AS col0
----
NULL
-729

skipif mysql # not compatible
query II rowsort label-9178
SELECT DISTINCT - 5 - + CAST ( NULL AS INTEGER ) col1, 13 + - 48 * + 17 + + 74 AS col0
----
NULL
-729

query II rowsort
SELECT DISTINCT - 96 * 32 AS col2, 44 AS col0
----
-3072
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT ALL 36 DIV 14 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL 36 / 14 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL - 78 * - CASE - - 28 WHEN - 0 * - 44 + + + ( 75 ) - 66 - 12 * - - MIN( DISTINCT + 94 ) * + + ( - - 8 ) + - + SUM( DISTINCT - - 30 ) * + ( COALESCE ( + + COUNT( * ), 10 ) ) * 47 + COALESCE ( + 95, 19 / + 68 - 11 ) THEN COUNT( * ) WHEN + 99 + 12 / - 36 THEN NULL ELSE NULL END / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - 78 * - CASE - - 28 WHEN - 0 * - 44 + + + ( 75 ) - 66 - 12 * - - MIN ( DISTINCT + 94 ) * + + ( - - 8 ) + - + SUM ( DISTINCT - - 30 ) * + ( COALESCE ( + + COUNT ( * ), 10 ) ) * 47 + COALESCE ( + 95, 19 / + 68 - 11 ) THEN COUNT ( * ) WHEN + 99 + 12 / - 36 THEN NULL ELSE NULL END / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 24 * - - 48 AS col1
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT MIN( ALL 68 ) + + 31 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9183
SELECT MIN ( ALL 68 ) + + 31 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9184
SELECT ALL - 88 * COUNT( + ( + CAST( NULL AS DECIMAL ) ) ) AS col1, + 28 - SUM( 97 )
----
0
-69

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL - 88 * COUNT ( + ( + CAST ( NULL AS REAL ) ) ) AS col1, + 28 - SUM ( 97 )
----
0
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT 26 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT 26 / 80 AS col0
----
0

query I rowsort
SELECT 61 * - 62
----
-3782

query I rowsort
SELECT 36 * + - NULLIF ( + 59, 40 )
----
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT CASE + 29 WHEN + ( + - ( - MAX( + 79 ) ) ) * - - COUNT( * ) + NULLIF ( - + 30, + ( + 91 ) ) + - + 63 + 62 * 99 + COALESCE ( - + 16, 58 ) THEN + - 30 * + 69 - COUNT( * ) * 19 WHEN 75 THEN NULL ELSE - 56 END * - 36
----
2016

skipif mysql # not compatible
query I rowsort label-9188
SELECT CASE + 29 WHEN + ( + - ( - MAX ( + 79 ) ) ) * - - COUNT ( * ) + NULLIF ( - + 30, + ( + 91 ) ) + - + 63 + 62 * 99 + COALESCE ( - + 16, 58 ) THEN + - 30 * + 69 - COUNT ( * ) * 19 WHEN 75 THEN NULL ELSE - 56 END * - 36
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT 42 + + 1 col1, + COUNT( * ) + - 23 + - CASE 0 WHEN - + 14 THEN NULL WHEN + 41 + COUNT( * ) THEN - CASE + 47 WHEN - 40 THEN + 67 END + + 51 * + + 35 WHEN + - 83 THEN NULL WHEN + - 45 THEN NULLIF ( + 61, + 79 ) * + 63 - 86 END + + 16
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9189
SELECT 42 + + 1 col1, + COUNT ( * ) + - 23 + - CASE 0 WHEN - + 14 THEN NULL WHEN + 41 + COUNT ( * ) THEN - CASE + 47 WHEN - 40 THEN + 67 END + + 51 * + + 35 WHEN + - 83 THEN NULL WHEN + - 45 THEN NULLIF ( + 61, + 79 ) * + 63 - 86 END + + 16
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT MAX( ALL + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT MAX ( ALL + + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT COUNT( ALL + 79 ) * - + 94 * + COUNT( * ) + - - COUNT( * ) + - 48 * + + 45 * + 41 + 50 AS col1
----
-88603

skipif mysql # not compatible
query I rowsort label-9191
SELECT COUNT ( ALL + 79 ) * - + 94 * + COUNT ( * ) + - - COUNT ( * ) + - 48 * + + 45 * + 41 + 50 AS col1
----
-88603

query I rowsort
SELECT ALL - ( - + 77 ) + + - 98 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT COUNT( * ) + - + 51 * + 71 AS col2
----
-3620

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT COUNT ( * ) + - + 51 * + 71 AS col2
----
-3620

query I rowsort
SELECT - 85 + - 64 AS col0
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT DISTINCT - - 84 + - 11 * - CAST( NULL AS SIGNED ) * 84 + - - 22 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT - - 84 + - 11 * - CAST ( NULL AS INTEGER ) * 84 + - - 22 / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - COALESCE ( - 81, - MAX( + 99 ), 74 + + 44 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COALESCE ( - 81, - MAX ( + 99 ), 74 + + 44 ) col1
----
81

query I rowsort
SELECT - 26 + - 12 AS col2
----
-38

query I rowsort
SELECT ALL - 72 + 97 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT 0 + - COALESCE ( + - 31, + COUNT( * ) - - + 88 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT 0 + - COALESCE ( + - 31, + COUNT ( * ) - - + 88 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT + 55 * + 89 * + 43 * - 42 + + COUNT( * ) AS col2
----
-8840369

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + 55 * + 89 * + 43 * - 42 + + COUNT ( * ) AS col2
----
-8840369

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT 27 + + 96 * COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT 27 + + 96 * COUNT ( * )
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9202
SELECT DISTINCT 41 DIV - 72 * - COUNT( * ) * - - 2
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT 41 / - 72 * - COUNT ( * ) * - - 2
----
0

query I rowsort
SELECT ALL 45 - 45 + - - 80 - + + 86 * - - 76 AS col2
----
-6456

query I rowsort
SELECT + 68 * + 69 AS col1
----
4692

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT DISTINCT - 28 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - 28 / + 40
----
0

query I rowsort
SELECT + ( - ( - - 58 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT + - MIN( + 75 ) AS col0, + 62
----
-75
62

skipif mysql # not compatible
query II rowsort label-9207
SELECT + - MIN ( + 75 ) AS col0, + 62
----
-75
62

query I rowsort
SELECT + 95 - - 0 - 59 * 1 * 23 + + 13 - - + 96
----
-1153

query I rowsort
SELECT - 60 * + + 40
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT ALL 66 * 70 * CAST( ( - + ( 68 ) ) AS SIGNED ) * + 19
----
-5969040

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL 66 * 70 * CAST ( ( - + ( 68 ) ) AS INTEGER ) * + 19
----
-5969040

query I rowsort
SELECT + 71 * - 77
----
-5467

query II rowsort
SELECT ALL + 65, 96 * - 81 AS col2
----
65
-7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9213
SELECT DISTINCT 95 * COUNT( * ) DIV - COUNT( * ), - COUNT( * ) AS col1
----
-95
-1

skipif mysql # not compatible
query II rowsort label-9213
SELECT DISTINCT 95 * COUNT ( * ) / - COUNT ( * ), - COUNT ( * ) AS col1
----
-95
-1

query I rowsort
SELECT DISTINCT + COALESCE ( 93, + 18, - + 95 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query III rowsort label-9215
SELECT MAX( + NULLIF ( - 9, - 82 * 65 ) ) AS col0, ( - SUM( 31 ) ) AS col1, 1 AS col2
----
-9
-31
1

skipif mysql # not compatible
query III rowsort label-9215
SELECT MAX ( + NULLIF ( - 9, - 82 * 65 ) ) AS col0, ( - SUM ( 31 ) ) AS col1, 1 AS col2
----
-9
-31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL + MAX( 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + MAX ( 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9217
SELECT - MAX( ALL + - 15 ) * - MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT - MAX ( ALL + - 15 ) * - MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + 5 * + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 5 * + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT + COUNT( DISTINCT - 58 ) + COUNT( * ) + - + 5 DIV 45 DIV COUNT( * ) + + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT + COUNT ( DISTINCT - 58 ) + COUNT ( * ) + - + 5 / 45 / COUNT ( * ) + + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9220
SELECT + 94 AS col2, 1 + COUNT( * )
----
94
2

skipif mysql # not compatible
query II rowsort label-9220
SELECT + 94 AS col2, 1 + COUNT ( * )
----
94
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT COUNT( DISTINCT + 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9221
SELECT COUNT ( DISTINCT + 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( * ) * 89 * + 23 * 30 + - - 18
----
61428

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( * ) * 89 * + 23 * 30 + - - 18
----
61428

query I rowsort
SELECT ALL - 57 * - + 64
----
3648

query I rowsort
SELECT ALL + 48 + + - 15 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT DISTINCT 81 DIV + 7 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT 81 / + 7 AS col1
----
11

query I rowsort
SELECT ALL - 84 + 18 col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + 30 + - - ( + + COUNT( + 23 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + 30 + - - ( + + COUNT ( + 23 ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT NULLIF ( + 48, 51 + - + SUM( ALL - - 91 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT NULLIF ( + 48, 51 + - + SUM ( ALL - - 91 ) ) AS col1
----
48

query I rowsort
SELECT DISTINCT - + 31 + - 50
----
-81

query I rowsort
SELECT - 88 + 55 + + + 15 col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT - + 37, + 49 * + COUNT( * ) + 80 AS col2
----
-37
129

skipif mysql # not compatible
query II rowsort label-9231
SELECT - + 37, + 49 * + COUNT ( * ) + 80 AS col2
----
-37
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL - 76 + + CAST( + 18 AS SIGNED ) / - ( + + 4 ) * - 69 - + - CASE - COALESCE ( - 90, - 19 + - + COUNT( * ) ) WHEN + COUNT( * ) THEN + + 77 * 19 ELSE NULL END + - 61 / + 53 + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - 76 + + CAST ( + 18 AS INTEGER ) / - ( + + 4 ) * - 69 - + - CASE - COALESCE ( - 90, - 19 + - + COUNT ( * ) ) WHEN + COUNT ( * ) THEN + + 77 * 19 ELSE NULL END + - 61 / + 53 + - 51 AS col0
----
NULL

query I rowsort
SELECT - + 70 - 7 + + ( + 32 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT CASE + 78 WHEN - 6 * + 34 THEN NULL WHEN + 41 / - + 17 + - - COUNT( * ) * SUM( 26 ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT CASE + 78 WHEN - 6 * + 34 THEN NULL WHEN + 41 / - + 17 + - - COUNT ( * ) * SUM ( 26 ) THEN 24 END
----
NULL

query I rowsort
SELECT NULLIF ( + 3, 89 )
----
3

query II rowsort
SELECT DISTINCT 33, 65 AS col0
----
33
65

query I rowsort
SELECT ALL + COALESCE ( - ( - 63 ), + 66, + 83 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - MAX( ALL + 6 ) * 90 AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-9238
SELECT - MAX ( ALL + 6 ) * 90 AS col1
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL + 35 - + + 88 - + + 91 DIV - 62
----
-52

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + 35 - + + 88 - + + 91 / - 62
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - MIN( + - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - MIN ( + - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL COUNT( * ) * - + 79 - + + 62
----
-141

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL COUNT ( * ) * - + 79 - + + 62
----
-141

query I rowsort
SELECT DISTINCT - 43 * - 93 AS col2
----
3999

query I rowsort
SELECT - + 10 + - 92
----
-102

query I rowsort
SELECT CASE WHEN ( NULL ) > - 38 THEN + ( 17 ) + 28 END
----
NULL

query I rowsort
SELECT ALL - 99 * 70 + + ( + 9 ) AS col2
----
-6921

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + 35 * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9246
SELECT + 35 * + COUNT ( * ) AS col2
----
35

query I rowsort
SELECT - + 19 + - - 57 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT + + MIN( DISTINCT - 75 ) * 93 * 69 * + 69 AS col1, 36 AS col0
----
-33207975
36

skipif mysql # not compatible
query II rowsort label-9248
SELECT + + MIN ( DISTINCT - 75 ) * 93 * 69 * + 69 AS col1, 36 AS col0
----
-33207975
36

query I rowsort
SELECT - 93 + + - 76
----
-169

query I rowsort
SELECT ALL + ( 52 ) * - 11 AS col0
----
-572

query I rowsort
SELECT + 72 * - 55 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT + ( COUNT( * ) ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + ( COUNT ( * ) ) * - 70 AS col2
----
-70

query II rowsort
SELECT ALL + 72 AS col0, 3
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - 50 * + SUM( DISTINCT - + 53 ) + - + NULLIF ( ( 61 ), COUNT( * ) * 76 ) - + + 54
----
2535

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 50 * + SUM ( DISTINCT - + 53 ) + - + NULLIF ( ( 61 ), COUNT ( * ) * 76 ) - + + 54
----
2535

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL 36 DIV + 55 * - - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL 36 / + 55 * - - 92 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT 61 DIV - - COUNT( * ) + 61 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-9256
SELECT 61 / - - COUNT ( * ) + 61 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT ALL 82 DIV + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 82 / + 38 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT + ( - ( CAST( NULL AS SIGNED ) ) ) / + + NULLIF ( 48, + + 99 + + - COUNT( * ) + - ( + 36 ) * 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT + ( - ( CAST ( NULL AS INTEGER ) ) ) / + + NULLIF ( 48, + + 99 + + - COUNT ( * ) + - ( + 36 ) * 82 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + NULLIF ( 8, - - 30 * + + SUM( - - 35 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9259
SELECT + NULLIF ( 8, - - 30 * + + SUM ( - - 35 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL 76 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 76 * - COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT + 82 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT + 82 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + - 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL - 87 * + + MIN( ALL + 6 ) + - 98 * + 32 AS col0
----
-3658

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - 87 * + + MIN ( ALL + 6 ) + - 98 * + 32 AS col0
----
-3658

query II rowsort
SELECT + ( + 67 ) AS col0, 92 + 82
----
67
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT 61 * + 68 + + 39 * + - CAST( NULL AS SIGNED ) + + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT 61 * + 68 + + 39 * + - CAST ( NULL AS INTEGER ) + + 88 AS col1
----
NULL

query I rowsort
SELECT ALL 28 * - 19 * + 38 AS col2
----
-20216

query I rowsort
SELECT ALL 40 * + 86 AS col0
----
3440

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-9268
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * + 7
----
1
7

query II rowsort
SELECT + 60 AS col2, + COALESCE ( CASE 40 WHEN + + 52 * - 66 + 47 + + - 24 + 13 * - 39 * 66 - + 39 THEN NULL WHEN + - 28 - + 77 THEN NULL ELSE - - 44 * - - 14 * - 31 + - CASE WHEN NOT ( - 47 ) IS NULL THEN 5 * CASE - 29 WHEN 89 THEN NULL ELSE + 79 * - 39 END + + 29 END END, 41 ) + 78 AS col0
----
60
-3642

query I rowsort
SELECT ALL 79 * + - 52 + + 46
----
-4062

query I rowsort
SELECT + COALESCE ( + 96, - 26, 29 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9272
SELECT + NULLIF ( + - CASE + - SUM( DISTINCT - NULLIF ( + 45, - - 2 ) ) WHEN ( 6 ) THEN - COUNT( 73 ) WHEN - ( 82 ) THEN NULL ELSE - 92 END, + - MAX( DISTINCT - 82 ) ) + - 53 + + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT + NULLIF ( + - CASE + - SUM ( DISTINCT - NULLIF ( + 45, - - 2 ) ) WHEN ( 6 ) THEN - COUNT ( 73 ) WHEN - ( 82 ) THEN NULL ELSE - 92 END, + - MAX ( DISTINCT - 82 ) ) + - 53 + + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + + COUNT( - + ( 97 ) ) * 76 * - - 0 * - + 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT + + COUNT ( - + ( 97 ) ) * 76 * - - 0 * - + 43 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9274
SELECT ALL + ( - - COALESCE ( + 46, - 43 ) ) DIV COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + ( - - COALESCE ( + 46, - 43 ) ) / COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT + 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 47 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - 98 * - 44 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - 98 * - 44 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 16 * + + 72
----
-1152

query I rowsort
SELECT ALL + 6 * + 10
----
60

query I rowsort
SELECT - 74 * + 0 + - - 7 - - 89 + - 80 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT ALL - SUM( ALL + + 37 ) DIV MIN( + 16 )
----
-2

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - SUM ( ALL + + 37 ) / MIN ( + 16 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - - COUNT( + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9281
SELECT - - COUNT ( + 96 ) AS col0
----
1

query I rowsort
SELECT ALL - 3 - 23
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - + 34 + - ( - COUNT( * ) ) * - ( + COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9283
SELECT - + 34 + - ( - COUNT ( * ) ) * - ( + COUNT ( * ) )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT + 50 DIV 7
----
7

skipif mysql # not compatible
query I rowsort label-9284
SELECT + 50 / 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9285
SELECT CAST( NULL AS SIGNED ) AS col1, - 71
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-9285
SELECT CAST ( NULL AS INTEGER ) AS col1, - 71
----
NULL
-71

query II rowsort
SELECT - - 23 col0, - ( + 47 )
----
23
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + COUNT( * ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + COUNT ( * ) * 24
----
24

query I rowsort
SELECT ALL COALESCE ( - 74, 60 * - + 12 * - 69 ) AS col2
----
-74

query I rowsort
SELECT DISTINCT 77 * - 75
----
-5775

query I rowsort
SELECT ALL 95 + - 55 * - 45
----
2570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT + 74 * - 28 * - - CAST( COUNT( + 7 ) AS SIGNED )
----
-2072

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT + 74 * - 28 * - - CAST ( COUNT ( + 7 ) AS INTEGER )
----
-2072

query I rowsort
SELECT ALL - 20 + 65
----
45

query I rowsort
SELECT 45 - ( - 23 ) + 73 col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT COUNT( - - 49 ) DIV + 73 * + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT COUNT ( - - 49 ) / + 73 * + 4 AS col2
----
0

query I rowsort
SELECT DISTINCT 94 + 77 * + 50 AS col2
----
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT + 75 * - MAX( ALL - 33 ) AS col2
----
2475

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + 75 * - MAX ( ALL - 33 ) AS col2
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL - 3 + - + MIN( 29 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - 3 + - + MIN ( 29 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT DISTINCT 34 + + 77, MIN( DISTINCT 94 ) AS col2
----
111
94

skipif mysql # not compatible
query II rowsort label-9298
SELECT DISTINCT 34 + + 77, MIN ( DISTINCT 94 ) AS col2
----
111
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT SUM( - 44 ) * - + SUM( DISTINCT - + 74 ) * + 53
----
-172568

skipif mysql # not compatible
query I rowsort label-9299
SELECT SUM ( - 44 ) * - + SUM ( DISTINCT - + 74 ) * + 53
----
-172568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT 28 DIV COUNT( * ) * - 93 * 96
----
-249984

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT 28 / COUNT ( * ) * - 93 * 96
----
-249984

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - 23 + + 9 * - 92 + + 70 + SUM( DISTINCT 17 ) * ( 7 ) + - 88 + - 77
----
-827

skipif mysql # not compatible
query I rowsort label-9301
SELECT - 23 + + 9 * - 92 + + 70 + SUM ( DISTINCT 17 ) * ( 7 ) + - 88 + - 77
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - - COUNT( - 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - - COUNT ( - 50 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT + COUNT( + 77 ), - COUNT( * ) * 90 AS col1
----
1
-90

skipif mysql # not compatible
query II rowsort label-9303
SELECT + COUNT ( + 77 ), - COUNT ( * ) * 90 AS col1
----
1
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT + 56 * + + CASE - 14 WHEN ( - CAST( - - COUNT( * ) AS SIGNED ) ) THEN - + 52 + 89 END / - - 50 * + - CAST( NULL AS SIGNED ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT + 56 * + + CASE - 14 WHEN ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) THEN - + 52 + 89 END / - - 50 * + - CAST ( NULL AS INTEGER ) + + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT ALL - 93 * 23 + + 61 - - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + NULLIF ( 82, + 10 * + + 71 + + ( - - 82 ) ) + - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - 93 * 23 + + 61 - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + NULLIF ( 82, + 10 * + + 71 + + ( - - 82 ) ) + - - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT ALL - + MAX( ALL + 12 ) AS col2, 42 AS col0
----
-12
42

skipif mysql # not compatible
query II rowsort label-9306
SELECT ALL - + MAX ( ALL + 12 ) AS col2, 42 AS col0
----
-12
42

query I rowsort
SELECT DISTINCT - 65 * + 53
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL 51 * + ( COUNT( * ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL 51 * + ( COUNT ( * ) ) AS col2
----
51

query I rowsort
SELECT 99 - 44
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - 39 * + - COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 39 * + - COUNT ( * ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT COALESCE ( - + ( + 74 ), - 31 - + 17, + 26 ) * - + 54 + COUNT( * )
----
3997

skipif mysql # not compatible
query I rowsort label-9311
SELECT COALESCE ( - + ( + 74 ), - 31 - + 17, + 26 ) * - + 54 + COUNT ( * )
----
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - 17 * - 65 + - + MIN( ALL 29 ) + 76 col1
----
1152

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - 17 * - 65 + - + MIN ( ALL 29 ) + 76 col1
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - 47 + - 38 - - + 75 - 93 + 38 * + - MIN( ALL - 7 ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - 47 + - 38 - - + 75 - 93 + 38 * + - MIN ( ALL - 7 ) AS col2
----
163

query I rowsort
SELECT DISTINCT 62 + - + 26 - - 63 + 67 * + - 9 * + - 9 AS col2
----
5526

query I rowsort
SELECT 55 - + 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL 7 + ( + + SUM( + - 31 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL 7 + ( + + SUM ( + - 31 ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT + ( + - 49 ) * 0 * - + ( CAST( + MIN( DISTINCT 15 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + ( + - 49 ) * 0 * - + ( CAST ( + MIN ( DISTINCT 15 ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT + 88 * - COUNT( * ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + 88 * - COUNT ( * ) col2
----
-88

query I rowsort
SELECT ALL - 34 + - - 82 AS col0
----
48

query I rowsort
SELECT 45 + + 36 * + 51
----
1881

query I rowsort
SELECT ALL + 70 + - 49
----
21

query I rowsort
SELECT ALL - COALESCE ( - - 16, - 49 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT DISTINCT 47 * NULLIF ( - - 13, COUNT( * ) ) + + - 31 + - + 1, 21 AS col2
----
579
21

skipif mysql # not compatible
query II rowsort label-9323
SELECT DISTINCT 47 * NULLIF ( - - 13, COUNT ( * ) ) + + - 31 + - + 1, 21 AS col2
----
579
21

query I rowsort
SELECT ALL + 25 * - 64 AS col1
----
-1600

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT COUNT( * ), 32 + 94 col2
----
1
126

skipif mysql # not compatible
query II rowsort label-9325
SELECT COUNT ( * ), 32 + 94 col2
----
1
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9326
SELECT CASE + ( - 78 ) WHEN + CASE + - 92 WHEN + + SUM( 30 ) * - 81 THEN 13 - - 1 - + - ( 43 ) WHEN - NULLIF ( + COUNT( - 83 ), 1 + - CAST( + CASE + - 53 WHEN - 7 THEN NULL WHEN 7 THEN 9 END AS DECIMAL ) ) THEN NULL WHEN + ( COUNT( * ) ) THEN NULL ELSE NULL END * - 80 + 38 * - 28 THEN + 59 * + 19 ELSE NULL END + CAST( - COUNT( ALL + 98 ) AS SIGNED ) * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT CASE + ( - 78 ) WHEN + CASE + - 92 WHEN + + SUM ( 30 ) * - 81 THEN 13 - - 1 - + - ( 43 ) WHEN - NULLIF ( + COUNT ( - 83 ), 1 + - CAST ( + CASE + - 53 WHEN - 7 THEN NULL WHEN 7 THEN 9 END AS REAL ) ) THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL ELSE NULL END * - 80 + 38 * - 28 THEN + 59 * + 19 ELSE NULL END + CAST ( - COUNT ( ALL + 98 ) AS INTEGER ) * 97 AS col2
----
NULL

query I rowsort
SELECT 6 * + + 90 col1
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT 76 + - 96 / NULLIF ( - + 34, 23 ) * - 57 * - 17 * - CAST( NULL AS SIGNED ) + + - 76 + - - 59 * - + 83 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT 76 + - 96 / NULLIF ( - + 34, 23 ) * - 57 * - 17 * - CAST ( NULL AS INTEGER ) + + - 76 + - - 59 * - + 83 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT MIN( - - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9329
SELECT MIN ( - - 17 )
----
17

query I rowsort
SELECT + 84 * 10 + + 29
----
869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9331
SELECT DISTINCT + + CASE - CAST( + - 38 AS SIGNED ) WHEN - 16 + 4 - - 1 THEN + 66 + 7 - - 59 + - - COALESCE ( 24, + 55 ) * + + ( - 37 ) DIV - ( - 44 ) * - ( COALESCE ( 98, - 0 ) ) DIV - 64 + + + COUNT( * ) DIV + 17 * 36 ELSE 82 END - - 69 DIV 30 col0
----
84

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + + CASE - CAST ( + - 38 AS INTEGER ) WHEN - 16 + 4 - - 1 THEN + 66 + 7 - - 59 + - - COALESCE ( 24, + 55 ) * + + ( - 37 ) / - ( - 44 ) * - ( COALESCE ( 98, - 0 ) ) / - 64 + + + COUNT ( * ) / + 17 * 36 ELSE 82 END - - 69 / 30 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL - + CASE + COUNT( * ) WHEN + + 55 + ( - COUNT( * ) ) + - ( + CASE + + 11 WHEN + + MIN( - 36 ) * 44 / 41 * + 13 THEN NULL WHEN - MAX( 76 ) THEN NULL WHEN - 73 * - - 1 THEN + 88 * + SUM( - 22 ) * + 38 ELSE + 55 END ) + - 34 * 85 THEN 28 * - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - + CASE + COUNT ( * ) WHEN + + 55 + ( - COUNT ( * ) ) + - ( + CASE + + 11 WHEN + + MIN ( - 36 ) * 44 / 41 * + 13 THEN NULL WHEN - MAX ( 76 ) THEN NULL WHEN - 73 * - - 1 THEN + 88 * + SUM ( - 22 ) * + 38 ELSE + 55 END ) + - 34 * 85 THEN 28 * - 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT + 29 * MIN( DISTINCT - 67 ) DIV - COUNT( ALL - 19 ) + - COUNT( * )
----
1942

skipif mysql # not compatible
query I rowsort label-9333
SELECT + 29 * MIN ( DISTINCT - 67 ) / - COUNT ( ALL - 19 ) + - COUNT ( * )
----
1942

query II rowsort
SELECT ALL - 45 AS col0, - 37 * + 24 AS col1
----
-45
-888

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT 4 DIV + - 53 * - + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT 4 / + - 53 * - + 82 AS col2
----
0

query I rowsort
SELECT 35 + - 80 + + 43 * 55 col1
----
2320

onlyif mysql # DIV for integer division: 
query II rowsort label-9337
SELECT + + 50 AS col0, 27 DIV 7 * + 94
----
50
282

skipif mysql # not compatible
query II rowsort label-9337
SELECT + + 50 AS col0, 27 / 7 * + 94
----
50
282

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT - - 57 DIV 6
----
9

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - - 57 / 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT + ( - COUNT( * ) ) + - 46
----
-47

skipif mysql # not compatible
query I rowsort label-9339
SELECT + ( - COUNT ( * ) ) + - 46
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT - 23 DIV - 88 * 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 23 / - 88 * 39 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT + - 17 DIV 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT + - 17 / 21 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - - 6 + COUNT( * ) - + - 43 * 56 AS col0
----
2415

skipif mysql # not compatible
query I rowsort label-9342
SELECT - - 6 + COUNT ( * ) - + - 43 * 56 AS col0
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT 1 * + 38 - + 85 + MIN( 80 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9343
SELECT 1 * + 38 - + 85 + MIN ( 80 ) AS col2
----
33

query I rowsort
SELECT + + 43 * - 31 AS col2
----
-1333

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT + + 32 + - 55 + - 63 DIV 24 + - + 73 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9345
SELECT + + 32 + - 55 + - 63 / 24 + - + 73 AS col2
----
-98

query I rowsort
SELECT ALL 85 * 91 AS col2
----
7735

onlyif mysql # aggregate syntax: 
query II rowsort label-9347
SELECT ALL COUNT( * ) col0, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-9347
SELECT ALL COUNT ( * ) col0, 2
----
1
2

query II rowsort
SELECT - 37, 85 + + 8 AS col2
----
-37
93

query I rowsort
SELECT ALL - 51 + + 10 + 67 * + 95 * - 39 AS col2
----
-248276

query I rowsort
SELECT DISTINCT + 29 + - 70 AS col2
----
-41

query I rowsort
SELECT DISTINCT - 18 + + + 68 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9352
SELECT ALL 51 * - + 19 - + + CAST( NULL AS SIGNED ) AS col2, 2 * - + 70
----
NULL
-140

skipif mysql # not compatible
query II rowsort label-9352
SELECT ALL 51 * - + 19 - + + CAST ( NULL AS INTEGER ) AS col2, 2 * - + 70
----
NULL
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9353
SELECT - ( - ( + 38 ) ) AS col1, + 36 DIV - - COUNT( * ) AS col2
----
38
36

skipif mysql # not compatible
query II rowsort label-9353
SELECT - ( - ( + 38 ) ) AS col1, + 36 / - - COUNT ( * ) AS col2
----
38
36

query I rowsort
SELECT ALL 59 + + + 39
----
98

query II rowsort
SELECT DISTINCT 18 + + 26 - 58 + + 51 AS col1, 72
----
37
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT + 41 DIV + 74 * - + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 41 / + 74 * - + 18 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9357
SELECT ALL 53 DIV 68 col2, ( 37 ) AS col1
----
0
37

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL 53 / 68 col2, ( 37 ) AS col1
----
0
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9358
SELECT - CASE + COUNT( * ) WHEN + - CAST( NULL AS SIGNED ) + 53 THEN ( + 39 ) DIV - 12 * - 91 WHEN - COUNT( * ) THEN + 72 ELSE - 99 END col1
----
99

skipif mysql # not compatible
query I rowsort label-9358
SELECT - CASE + COUNT ( * ) WHEN + - CAST ( NULL AS INTEGER ) + 53 THEN ( + 39 ) / - 12 * - 91 WHEN - COUNT ( * ) THEN + 72 ELSE - 99 END col1
----
99

query I rowsort
SELECT ALL 23 + 49
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9360
SELECT DISTINCT MIN( - 0 ), COUNT( * ) DIV ( 26 ) * - - 14 * CASE + + 80 WHEN - 41 THEN NULL WHEN + 58 - - + 8 + 1 + 76 THEN NULL ELSE + 30 END
----
0
0

skipif mysql # not compatible
query II rowsort label-9360
SELECT DISTINCT MIN ( - 0 ), COUNT ( * ) / ( 26 ) * - - 14 * CASE + + 80 WHEN - 41 THEN NULL WHEN + 58 - - + 8 + 1 + 76 THEN NULL ELSE + 30 END
----
0
0

query I rowsort
SELECT + 11 * - 58 AS col0
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - CASE 52 WHEN - 67 / 46 THEN + + NULLIF ( + 39, 98 - + - 53 ) WHEN - + CASE 71 WHEN + + 84 + + 98 + 23 * + - 84 / + 2 * - 49 THEN NULL WHEN 37 * + 77 + + 86 * - - 41 THEN - COUNT( * ) END + 22 THEN - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT - CASE 52 WHEN - 67 / 46 THEN + + NULLIF ( + 39, 98 - + - 53 ) WHEN - + CASE 71 WHEN + + 84 + + 98 + 23 * + - 84 / + 2 * - 49 THEN NULL WHEN 37 * + 77 + + 86 * - - 41 THEN - COUNT ( * ) END + 22 THEN - 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT - CAST( - ( - MAX( ALL 39 ) ) AS SIGNED ) * - 34 * + CASE - COUNT( * ) WHEN - COUNT( * ) THEN + 11 ELSE - SUM( ALL + + 27 ) * - - 58 END
----
14586

skipif mysql # not compatible
query I rowsort label-9363
SELECT - CAST ( - ( - MAX ( ALL 39 ) ) AS INTEGER ) * - 34 * + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 11 ELSE - SUM ( ALL + + 27 ) * - - 58 END
----
14586

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT COUNT ( * ) * + 32
----
32

query I rowsort
SELECT - 81 * 29 AS col1
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + ( - MAX( - 61 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + ( - MAX ( - 61 ) ) AS col0
----
61

query I rowsort
SELECT - 57 * + - 40
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9368
SELECT DISTINCT 16 * + 91 * + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0, + 20 AS col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-9368
SELECT DISTINCT 16 * + 91 * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0, + 20 AS col1
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + MAX( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + MAX ( ALL 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9370
SELECT ALL + ( - 89 ), + 37 * + COUNT( * ) AS col0
----
-89
37

skipif mysql # not compatible
query II rowsort label-9370
SELECT ALL + ( - 89 ), + 37 * + COUNT ( * ) AS col0
----
-89
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - 27 * + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 27 * + COUNT ( * )
----
-27

query I rowsort
SELECT - 88 * - - NULLIF ( - 52, - + 49 ) - - 5 col2
----
4581

query I rowsort
SELECT - - 27 * + - 51 + - + 46 AS col2
----
-1423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT + + CASE NULLIF ( + + 13, + CAST( NULL AS SIGNED ) * 95 * - 12 * + - 75 ) WHEN - + 53 * COUNT( + ( - 33 ) ) THEN - MIN( ALL - 23 ) WHEN + - ( - + 36 ) + + 98 THEN SUM( 78 ) WHEN - - 10 THEN NULL ELSE - ( - 78 ) END AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9374
SELECT + + CASE NULLIF ( + + 13, + CAST ( NULL AS INTEGER ) * 95 * - 12 * + - 75 ) WHEN - + 53 * COUNT ( + ( - 33 ) ) THEN - MIN ( ALL - 23 ) WHEN + - ( - + 36 ) + + 98 THEN SUM ( 78 ) WHEN - - 10 THEN NULL ELSE - ( - 78 ) END AS col0
----
78

query I rowsort
SELECT DISTINCT - + 4 * - - 23 + + 4 AS col2
----
-88

query I rowsort
SELECT - - 77 + + 15 * + 54
----
887

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT - - 16 * - 96 + + 35 / 56 * - - 91 * + - 76 + 15 * + + COUNT( 59 ) * - CASE - 23 WHEN + - COUNT( * ) THEN - MAX( ALL 48 ) WHEN - ( + 73 ) THEN NULL WHEN + COUNT( ALL + - 79 ) THEN + - ( - 83 ) END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - - 16 * - 96 + + 35 / 56 * - - 91 * + - 76 + 15 * + + COUNT ( 59 ) * - CASE - 23 WHEN + - COUNT ( * ) THEN - MAX ( ALL 48 ) WHEN - ( + 73 ) THEN NULL WHEN + COUNT ( ALL + - 79 ) THEN + - ( - 83 ) END + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - + SUM( ALL - 72 ) * 64 * + 55
----
253440

skipif mysql # not compatible
query I rowsort label-9378
SELECT - + SUM ( ALL - 72 ) * 64 * + 55
----
253440

query II rowsort
SELECT - - 25 * - 80 AS col1, + 54
----
-2000
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + COUNT( * ) * 32 + + 3
----
35

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + COUNT ( * ) * 32 + + 3
----
35

query I rowsort
SELECT - ( - ( 62 ) )
----
62

query I rowsort
SELECT - 66 + + 25 AS col0
----
-41

query I rowsort
SELECT ALL 12 * 24 AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL MIN( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL MIN ( + 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 82 + - + 83
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT + SUM( DISTINCT - - 98 ) - - + 62 DIV - - 72
----
98

skipif mysql # not compatible
query I rowsort label-9387
SELECT + SUM ( DISTINCT - - 98 ) - - + 62 / - - 72
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT + COUNT( * ) * - + 60
----
-60

skipif mysql # not compatible
query I rowsort label-9388
SELECT + COUNT ( * ) * - + 60
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT + SUM( 57 ) + - - COUNT( * ) AS col0, 14 AS col1
----
58
14

skipif mysql # not compatible
query II rowsort label-9389
SELECT + SUM ( 57 ) + - - COUNT ( * ) AS col0, 14 AS col1
----
58
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + SUM( + 76 ) * COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9390
SELECT + SUM ( + 76 ) * COUNT ( * ) AS col2
----
76

query I rowsort
SELECT + 13 * + ( + + 13 ) + ( + - 71 ) * + - 42
----
3151

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT + 22 DIV 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT + 22 / 33 AS col1
----
0

query I rowsort
SELECT ALL + 63 * + 21 AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + MIN( ( - 12 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + MIN ( ( - 12 ) ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT - 36 * + 74 + CASE CASE 49 WHEN 80 THEN - 24 + + + 75 + - 66 * + 89 WHEN CAST( NULL AS SIGNED ) * + - 19 + + COUNT( * ) THEN NULL WHEN 33 * + 66 THEN + 60 * 36 END WHEN 60 THEN 26 + + + 23 END - - + 90 + 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 36 * + 74 + CASE CASE 49 WHEN 80 THEN - 24 + + + 75 + - 66 * + 89 WHEN CAST ( NULL AS INTEGER ) * + - 19 + + COUNT ( * ) THEN NULL WHEN 33 * + 66 THEN + 60 * 36 END WHEN 60 THEN 26 + + + 23 END - - + 90 + 52 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + - MIN( ALL 87 ) * + 30
----
-2610

skipif mysql # not compatible
query I rowsort label-9396
SELECT + - MIN ( ALL 87 ) * + 30
----
-2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9397
SELECT + + ( + + 20 ) DIV + COUNT( * ) + 87 + - 70 * + CAST( COALESCE ( ( - 79 ), - 76 ) AS SIGNED )
----
5637

skipif mysql # not compatible
query I rowsort label-9397
SELECT + + ( + + 20 ) / + COUNT ( * ) + 87 + - 70 * + CAST ( COALESCE ( ( - 79 ), - 76 ) AS INTEGER )
----
5637

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT - 48 DIV - + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT - 48 / - + 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT ALL NULLIF ( - + 43, + - ( + SUM( ALL + - CAST( - 1 AS SIGNED ) ) ) / + - 84 + - 88 ) + + 7
----
-36

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL NULLIF ( - + 43, + - ( + SUM ( ALL + - CAST ( - 1 AS INTEGER ) ) ) / + - 84 + - 88 ) + + 7
----
-36

query I rowsort
SELECT ALL - 87 * - 75 AS col2
----
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT 67 * COUNT( 96 ) AS col1, - 28 + + COUNT( * ) + + + COUNT( * )
----
67
-26

skipif mysql # not compatible
query II rowsort label-9401
SELECT 67 * COUNT ( 96 ) AS col1, - 28 + + COUNT ( * ) + + + COUNT ( * )
----
67
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT + 43 + - + 64 DIV - 60 - + MIN( - 61 )
----
105

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + 43 + - + 64 / - 60 - + MIN ( - 61 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL - MAX( DISTINCT COALESCE ( - 49, 71 ) ) + 60 - + COUNT( 96 )
----
108

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - MAX ( DISTINCT COALESCE ( - 49, 71 ) ) + 60 - + COUNT ( 96 )
----
108

query I rowsort
SELECT + 50 + + 17
----
67

query I rowsort
SELECT + - ( + + 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT CASE + + MAX( - + 0 ) WHEN - 86 * + NULLIF ( + COUNT( * ), - 30 + 2 ) - - 48 - + 11 THEN - 84 WHEN + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT CASE + + MAX ( - + 0 ) WHEN - 86 * + NULLIF ( + COUNT ( * ), - 30 + 2 ) - - 48 - + 11 THEN - 84 WHEN + 32 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 69 + - 1 AS col0
----
68

query I rowsort
SELECT - 0 - + 60 * - 96 * - - 8 AS col2
----
46080

query I rowsort
SELECT DISTINCT + 77 * 42 AS col2
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL - NULLIF ( + 2, - ( - + COUNT( DISTINCT - 41 ) ) ) - 29 + + + COUNT( ALL - + 35 ) + + CAST( + + 4 AS SIGNED ) * + - 1 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - NULLIF ( + 2, - ( - + COUNT ( DISTINCT - 41 ) ) ) - 29 + + + COUNT ( ALL - + 35 ) + + CAST ( + + 4 AS INTEGER ) * + - 1 AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT + 30 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + 30 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 80 + + - 87
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT 61 DIV COUNT( ALL + 66 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9413
SELECT 61 / COUNT ( ALL + 66 ) AS col2
----
61

query II rowsort
SELECT 18, 28 * + 83 + + + ( - - 29 ) AS col0
----
18
2353

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT 99 + 92 * + COUNT( * ) AS col0
----
191

skipif mysql # not compatible
query I rowsort label-9415
SELECT 99 + 92 * + COUNT ( * ) AS col0
----
191

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT 23, + 5 * + 34 * + COALESCE ( 6, 25, SUM( DISTINCT 30 ) ) AS col2
----
23
1020

skipif mysql # not compatible
query II rowsort label-9416
SELECT 23, + 5 * + 34 * + COALESCE ( 6, 25, SUM ( DISTINCT 30 ) ) AS col2
----
23
1020

query I rowsort
SELECT ( - 40 ) + - NULLIF ( + + 9, - 86 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + 94 / - 23 * + CASE + 24 WHEN ( - 80 ) THEN NULL WHEN + 83 * + 55 + COUNT( * ) THEN + - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + 94 / - 23 * + CASE + 24 WHEN ( - 80 ) THEN NULL WHEN + 83 * + 55 + COUNT ( * ) THEN + - 9 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9419
SELECT 47 AS col0, - NULLIF ( 11, COALESCE ( CAST( 33 AS SIGNED ), 68 * - 21 + + - 27 + 82 ) ) * COALESCE ( + CASE - MAX( + 76 ) WHEN + 81 THEN - COUNT( ALL 77 ) + + COUNT( * ) ELSE CASE + - ( 9 ) WHEN + ( + 61 ) THEN NULL WHEN - 37 THEN 96 + 20 + CAST( NULL AS SIGNED ) END - + ( - 61 + 84 ) END, 94 + 86 ) AS col0
----
47
-1980

skipif mysql # not compatible
query II rowsort label-9419
SELECT 47 AS col0, - NULLIF ( 11, COALESCE ( CAST ( 33 AS INTEGER ), 68 * - 21 + + - 27 + 82 ) ) * COALESCE ( + CASE - MAX ( + 76 ) WHEN + 81 THEN - COUNT ( ALL 77 ) + + COUNT ( * ) ELSE CASE + - ( 9 ) WHEN + ( + 61 ) THEN NULL WHEN - 37 THEN 96 + 20 + CAST ( NULL AS INTEGER ) END - + ( - 61 + 84 ) END, 94 + 86 ) AS col0
----
47
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL SUM( ALL - - 92 ) * 43 AS col0
----
3956

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL SUM ( ALL - - 92 ) * 43 AS col0
----
3956

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT 61 AS col1, 94 - 19 * + COALESCE ( + 57, 64 + 14, + 47 ) + COUNT( * ) AS col2
----
61
-988

skipif mysql # not compatible
query II rowsort label-9421
SELECT 61 AS col1, 94 - 19 * + COALESCE ( + 57, 64 + 14, + 47 ) + COUNT ( * ) AS col2
----
61
-988

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT 86 * - 97 DIV 96
----
-86

skipif mysql # not compatible
query I rowsort label-9422
SELECT 86 * - 97 / 96
----
-86

query I rowsort
SELECT 89 + + 92 AS col1
----
181

query II rowsort
SELECT - 7, + 57 col1
----
-7
57

query I rowsort
SELECT ( + 44 ) AS col1
----
44

query I rowsort
SELECT ALL 6 + - + 47 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT MIN( DISTINCT - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9427
SELECT MIN ( DISTINCT - 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL - - 84 + + 69 DIV + 94 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - - 84 + + 69 / + 94 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL + - COUNT( * ) + + - COALESCE ( + ( 51 ), + + NULLIF ( 73, - 22 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + - COUNT ( * ) + + - COALESCE ( + ( 51 ), + + NULLIF ( 73, - 22 ) ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - COALESCE ( 38, + 18 ) + - MAX( + - 32 )
----
-6

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - COALESCE ( 38, + 18 ) + - MAX ( + - 32 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT ALL - 75 + - 98 + + COALESCE ( + - COUNT( * ), + + 26 ) + 6, + 5 - - MAX( DISTINCT - 34 ) + - 53 AS col2
----
-168
-82

skipif mysql # not compatible
query II rowsort label-9431
SELECT ALL - 75 + - 98 + + COALESCE ( + - COUNT ( * ), + + 26 ) + 6, + 5 - - MAX ( DISTINCT - 34 ) + - 53 AS col2
----
-168
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT + 88 AS col2, COUNT( * ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-9432
SELECT + 88 AS col2, COUNT ( * ) AS col2
----
88
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT + 39 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT + 39 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT ALL COUNT( * ) + - 96 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL COUNT ( * ) + - 96 / 54
----
0

query II rowsort
SELECT + - 38 AS col0, - 6 * 82 AS col0
----
-38
-492

query II rowsort
SELECT + 89 AS col0, + 23 - 18 - + 92 AS col2
----
89
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT 27 * - + 0 * + NULLIF ( - COALESCE ( - - CAST( NULL AS SIGNED ), COUNT( ALL 1 ), + COUNT( * ) * - ( - COUNT( * ) ) + 12 ), + 36 / + - 75 ) * + 27
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT 27 * - + 0 * + NULLIF ( - COALESCE ( - - CAST ( NULL AS INTEGER ), COUNT ( ALL 1 ), + COUNT ( * ) * - ( - COUNT ( * ) ) + 12 ), + 36 / + - 75 ) * + 27
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9438
SELECT + + 75 * + 56 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT + + 75 * + 56 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 37 * - 20
----
740

query I rowsort
SELECT ALL 2 - - ( - 1 ) * + 55 AS col0
----
-53

query I rowsort
SELECT NULLIF ( - 68, + 13 ) * - 86
----
5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9442
SELECT 74 * + - 91 AS col0, COUNT( * ) DIV - SUM( DISTINCT - 3 )
----
-6734
0

skipif mysql # not compatible
query II rowsort label-9442
SELECT 74 * + - 91 AS col0, COUNT ( * ) / - SUM ( DISTINCT - 3 )
----
-6734
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT 54 + - 11 * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9443
SELECT 54 + - 11 * COUNT ( * ) AS col0
----
43

query I rowsort
SELECT ( 94 ) * + 90 + - 64 * - - 92 * - 64
----
385292

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT 6 * - 97, - 51 + + 79 + - COUNT( * ) AS col1
----
-582
27

skipif mysql # not compatible
query II rowsort label-9445
SELECT 6 * - 97, - 51 + + 79 + - COUNT ( * ) AS col1
----
-582
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT COUNT( * ) * - 81 + 38
----
-43

skipif mysql # not compatible
query I rowsort label-9446
SELECT COUNT ( * ) * - 81 + 38
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 89 + + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9447
SELECT 89 + + - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL 34 * - COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL 34 * - COUNT ( * ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT 96 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-9449
SELECT 96 / + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + COUNT( DISTINCT - 11 ) + + 14 + 2 * - - 74
----
163

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( DISTINCT - 11 ) + + 14 + 2 * - - 74
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT COUNT( * ) - - NULLIF ( - COUNT( * ), - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT COUNT ( * ) - - NULLIF ( - COUNT ( * ), - 31 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9452
SELECT 89 + - + COUNT( * ) * - - 97 + + + 86 * + 45, + 59 + + - CAST( - - 0 AS SIGNED ) AS col1
----
3862
59

skipif mysql # not compatible
query II rowsort label-9452
SELECT 89 + - + COUNT ( * ) * - - 97 + + + 86 * + 45, + 59 + + - CAST ( - - 0 AS INTEGER ) AS col1
----
3862
59

query I rowsort
SELECT 24 + + 24 * 92 AS col1
----
2232

query I rowsort
SELECT - 60 + + - 60 + - 13
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT ALL - NULLIF ( - COUNT( * ), - + 12 ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL - NULLIF ( - COUNT ( * ), - + 12 ) / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - + 65 + 5 + + 93 * 74
----
6822

query II rowsort
SELECT DISTINCT - 95 + - - 83 AS col0, 54 * - ( - 81 ) AS col1
----
-12
4374

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT DISTINCT + COUNT( 6 ) AS col1, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-9458
SELECT DISTINCT + COUNT ( 6 ) AS col1, 87
----
1
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT - - 88 * - CAST( + 84 AS SIGNED )
----
-7392

skipif mysql # not compatible
query I rowsort label-9459
SELECT - - 88 * - CAST ( + 84 AS INTEGER )
----
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL - - 3 * 20 * - NULLIF ( MIN( ALL - - CAST( - 79 AS SIGNED ) ), ( NULLIF ( 77, NULLIF ( - + MAX( ALL - 45 ), - CASE - - COUNT( * ) WHEN - + MIN( ALL - 46 ) THEN + - 68 * + + 17 / - + 1 * COALESCE ( + + COALESCE ( 99, 33 * - - 68 * + 91 * + ( + 41 ) + + 16 ), 82 * 86 + - 5 * 65 ) + - ( MAX( CAST( NULL AS SIGNED ) ) ) + + CAST( 58 - + 53 AS SIGNED ) ELSE - 21 * - 42 END ) / + 16 ) ) ) * - 60 - NULLIF ( COUNT( * ), ( - 63 ) * - 80 ) col1
----
-284401

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - - 3 * 20 * - NULLIF ( MIN ( ALL - - CAST ( - 79 AS INTEGER ) ), ( NULLIF ( 77, NULLIF ( - + MAX ( ALL - 45 ), - CASE - - COUNT ( * ) WHEN - + MIN ( ALL - 46 ) THEN + - 68 * + + 17 / - + 1 * COALESCE ( + + COALESCE ( 99, 33 * - - 68 * + 91 * + ( + 41 ) + + 16 ), 82 * 86 + - 5 * 65 ) + - ( MAX ( CAST ( NULL AS INTEGER ) ) ) + + CAST ( 58 - + 53 AS INTEGER ) ELSE - 21 * - 42 END ) / + 16 ) ) ) * - 60 - NULLIF ( COUNT ( * ), ( - 63 ) * - 80 ) col1
----
-284401

query I rowsort
SELECT + 39 * + 53 * + - 18 AS col2
----
-37206

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + 13 + + SUM( 46 )
----
59

skipif mysql # not compatible
query I rowsort label-9462
SELECT + 13 + + SUM ( 46 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT + ( + 11 ) * - 93 + - COUNT( * ) DIV 96 + + 31 + + 95
----
-897

skipif mysql # not compatible
query I rowsort label-9463
SELECT + ( + 11 ) * - 93 + - COUNT ( * ) / 96 + + 31 + + 95
----
-897

query II rowsort
SELECT ALL 53 * - ( - - 98 ) AS col1, - 20
----
-5194
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT + 59 DIV - 12 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 59 / - 12 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ( - - 92 ) * - - COALESCE ( - 34, - 35 - - 28 * 87 + + 65 - 88 ) * + 76 * COUNT( * ) + - 71 + + 69 - + 59 + + 29 AS col0
----
-237760

skipif mysql # not compatible
query I rowsort label-9466
SELECT ( - - 92 ) * - - COALESCE ( - 34, - 35 - - 28 * 87 + + 65 - 88 ) * + 76 * COUNT ( * ) + - 71 + + 69 - + 59 + + 29 AS col0
----
-237760

query I rowsort
SELECT + 77 + - 99
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9468
SELECT ALL 17 * + COUNT( 88 ) AS col2, 92
----
17
92

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL 17 * + COUNT ( 88 ) AS col2, 92
----
17
92

query I rowsort
SELECT + 29 * - 22 AS col1
----
-638

query I rowsort
SELECT DISTINCT 94 * 56 AS col1
----
5264

query I rowsort
SELECT - 33 * - 58 + + 71 AS col1
----
1985

query I rowsort
SELECT - 75 + 87 - - - 19 * 7
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL ( - COUNT( * ) ) + 22 * + + 34 AS col2
----
747

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL ( - COUNT ( * ) ) + 22 * + + 34 AS col2
----
747

query II rowsort
SELECT 13 AS col0, + ( - - 59 ) * + 59
----
13
3481

query II rowsort
SELECT 86 AS col2, - 98 col2
----
86
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ALL CASE WHEN NOT + ( + COUNT( * ) ) >= 33 - - 65 + - + 69 THEN - COUNT( * ) + - - COALESCE ( 92, 44 * - - 38 + 82 - - 34 * + 66 + + 91 + 80 ) WHEN NOT 99 * - 50 * + 36 * - COUNT( - 66 ) IS NULL THEN NULL END col0, 16
----
91
16

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL CASE WHEN NOT + ( + COUNT ( * ) ) >= 33 - - 65 + - + 69 THEN - COUNT ( * ) + - - COALESCE ( 92, 44 * - - 38 + 82 - - 34 * + 66 + + 91 + 80 ) WHEN NOT 99 * - 50 * + 36 * - COUNT ( - 66 ) IS NULL THEN NULL END col0, 16
----
91
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - 50 + ( SUM( ALL 82 ) ) - - COALESCE ( + ( 0 ), + 46 * + NULLIF ( - ( + MIN( + 98 ) ), + 44 ), 17 )
----
32

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - 50 + ( SUM ( ALL 82 ) ) - - COALESCE ( + ( 0 ), + 46 * + NULLIF ( - ( + MIN ( + 98 ) ), + 44 ), 17 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + 39 * ( - MAX( 83 ) ) * + 82 AS col1
----
-265434

skipif mysql # not compatible
query I rowsort label-9478
SELECT + 39 * ( - MAX ( 83 ) ) * + 82 AS col1
----
-265434

query I rowsort
SELECT ALL + 8 + - + 34
----
-26

query II rowsort
SELECT ALL 27 AS col0, + 91 AS col1
----
27
91

query II rowsort
SELECT ALL + 54 AS col1, + 72
----
54
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT + 38 + COUNT( * ) * 86 DIV 41 * + 28
----
94

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 38 + COUNT ( * ) * 86 / 41 * + 28
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT - + 36 + - 2 + - + 96 + + CAST( 49 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-9483
SELECT - + 36 + - 2 + - + 96 + + CAST ( 49 AS INTEGER )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT - ( + - 90 ) DIV + 84 col0
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT - ( + - 90 ) / + 84 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT - + CASE ( - 81 ) WHEN 64 * 76 + - 44 + + + 11 - + + 5 * + 34 THEN - 72 + - ( + + CAST( NULL AS SIGNED ) ) WHEN - - 51 THEN NULL ELSE NULL END * - - ( COUNT( * ) ) * - + CAST( + 86 AS SIGNED ) + - AVG ( DISTINCT - 7 ) + + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT - + CASE ( - 81 ) WHEN 64 * 76 + - 44 + + + 11 - + + 5 * + 34 THEN - 72 + - ( + + CAST ( NULL AS INTEGER ) ) WHEN - - 51 THEN NULL ELSE NULL END * - - ( COUNT ( * ) ) * - + CAST ( + 86 AS INTEGER ) + - AVG ( DISTINCT - 7 ) + + - 12
----
NULL

query I rowsort
SELECT - - 61 * CASE - 46 WHEN 54 THEN NULL ELSE + - 18 END * 18
----
-19764

query I rowsort
SELECT + NULLIF ( 82, + 36 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT - - 92 - CAST( NULL AS SIGNED ) * - + COUNT( * ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT - - 92 - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT ALL + ( CASE - 3 WHEN + 71 + - - COUNT( * ) * + 72 / + - 17 THEN - 19 / - - 34 + + 77 ELSE + + SUM( ALL - ( - 60 ) ) END ) AS col1, 86 * - + 19 AS col0
----
60
-1634

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL + ( CASE - 3 WHEN + 71 + - - COUNT ( * ) * + 72 / + - 17 THEN - 19 / - - 34 + + 77 ELSE + + SUM ( ALL - ( - 60 ) ) END ) AS col1, 86 * - + 19 AS col0
----
60
-1634

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT ALL - - 79 DIV COALESCE ( 30, 81, - + ( 50 ) - 38 ) + + 54 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - - 79 / COALESCE ( 30, 81, - + ( 50 ) - 38 ) + + 54 AS col2
----
56

query I rowsort
SELECT DISTINCT + + 62 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + COUNT( - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + COUNT ( - 98 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9493
SELECT ALL + 77 AS col2, ( - CAST( NULL AS SIGNED ) ) + + - 87
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9493
SELECT ALL + 77 AS col2, ( - CAST ( NULL AS INTEGER ) ) + + - 87
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - 37 - - ( - COUNT( * ) ) * 13
----
-50

skipif mysql # not compatible
query I rowsort label-9494
SELECT - 37 - - ( - COUNT ( * ) ) * 13
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT + NULLIF ( - CASE - 59 WHEN 33 THEN NULL WHEN - 33 THEN - + 64 WHEN - COUNT( * ) THEN NULL ELSE 39 END, + - CASE + 98 WHEN - ( CAST( - 56 AS SIGNED ) ) + - - 2 THEN NULL ELSE + CASE - + 40 WHEN - COUNT( * ) + - 47 + + + 3 - 81 THEN - + 50 ELSE NULL END + 90 END ) * MIN( 18 ) / + CAST( NULL AS SIGNED ) + - 69 - + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT + NULLIF ( - CASE - 59 WHEN 33 THEN NULL WHEN - 33 THEN - + 64 WHEN - COUNT ( * ) THEN NULL ELSE 39 END, + - CASE + 98 WHEN - ( CAST ( - 56 AS INTEGER ) ) + - - 2 THEN NULL ELSE + CASE - + 40 WHEN - COUNT ( * ) + - 47 + + + 3 - 81 THEN - + 50 ELSE NULL END + 90 END ) * MIN ( 18 ) / + CAST ( NULL AS INTEGER ) + - 69 - + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - 98 * COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - 98 * COUNT ( * ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + SUM( ALL - + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9497
SELECT + SUM ( ALL - + 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL + NULLIF ( - 30, + - ( - 41 ) + - + MIN( - 69 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + NULLIF ( - 30, + - ( - 41 ) + - + MIN ( - 69 ) ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT CAST( - 1 AS SIGNED ) * - 52 + - 82 * + + COALESCE ( + 25, + 62, - CASE + COUNT( * ) WHEN + CAST( + 55 AS SIGNED ) THEN CASE + + COUNT( * ) WHEN - - 63 * - + 29 THEN - - 53 ELSE - 31 + + - 10 END ELSE NULL END, 60 + 71 - + - 35 + + + 87 ) AS col2
----
-1998

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT CAST ( - 1 AS INTEGER ) * - 52 + - 82 * + + COALESCE ( + 25, + 62, - CASE + COUNT ( * ) WHEN + CAST ( + 55 AS INTEGER ) THEN CASE + + COUNT ( * ) WHEN - - 63 * - + 29 THEN - - 53 ELSE - 31 + + - 10 END ELSE NULL END, 60 + 71 - + - 35 + + + 87 ) AS col2
----
-1998

query I rowsort
SELECT DISTINCT + ( - + 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL 35 * + CASE + - CAST( NULL AS SIGNED ) WHEN - - COALESCE ( + COUNT( * ), 11, - ( + 58 ) * - COUNT( * ) * - 98 ) * - 23 * ( 57 ) THEN + + 47 / - 94 ELSE NULL END * - - SUM( ALL - 92 ) + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL 35 * + CASE + - CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( + COUNT ( * ), 11, - ( + 58 ) * - COUNT ( * ) * - 98 ) * - 23 * ( 57 ) THEN + + 47 / - 94 ELSE NULL END * - - SUM ( ALL - 92 ) + 44 AS col1
----
NULL

query I rowsort
SELECT ALL - 26 * - - 11 + + 32 + - 18
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT 89 + + - COUNT( - + 8 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9503
SELECT 89 + + - COUNT ( - + 8 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT COUNT( * ) * + - 66 * - ( MAX( + - CAST( NULL AS SIGNED ) ) ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT COUNT ( * ) * + - 66 * - ( MAX ( + - CAST ( NULL AS INTEGER ) ) ) * - 5
----
NULL

query I rowsort
SELECT 95 * - + 49 AS col2
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT 99 * + CASE + AVG ( ALL + 11 ) WHEN - COUNT( * ) THEN 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT 99 * + CASE + AVG ( ALL + 11 ) WHEN - COUNT ( * ) THEN 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT ALL COUNT( * ) * 94 DIV + - 9 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL COUNT ( * ) * 94 / + - 9 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) + 72 + + + ( - 17 )
----
56

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) + 72 + + + ( - 17 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT ALL 27 + + - 89 + - ( SUM( + + 42 ) ) AS col1, COALESCE ( + 53, + 65 * + 18 )
----
-104
53

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL 27 + + - 89 + - ( SUM ( + + 42 ) ) AS col1, COALESCE ( + 53, + 65 * + 18 )
----
-104
53

query I rowsort
SELECT + 92 + + + 62 + 25 * 44 * - 39 AS col1
----
-42746

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT MIN( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9511
SELECT MIN ( - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT ALL NULLIF ( - - 48, 91 + + + 45 + COUNT( * ) ) - + 54 + 86 col0, 87 - + - 75 - 55 * + 79 - - - 36
----
80
-4219

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL NULLIF ( - - 48, 91 + + + 45 + COUNT ( * ) ) - + 54 + 86 col0, 87 - + - 75 - 55 * + 79 - - - 36
----
80
-4219

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9513
SELECT DISTINCT - ( + 29 ) AS col2, - COUNT( * ) * - + 62 DIV 45
----
-29
1

skipif mysql # not compatible
query II rowsort label-9513
SELECT DISTINCT - ( + 29 ) AS col2, - COUNT ( * ) * - + 62 / 45
----
-29
1

query I rowsort
SELECT ALL - 61 * 75
----
-4575

query I rowsort
SELECT 13 * + - 94
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - - COUNT( - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - - COUNT ( - 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + COUNT( * ) + - MAX( DISTINCT - 94 )
----
95

skipif mysql # not compatible
query I rowsort label-9517
SELECT + COUNT ( * ) + - MAX ( DISTINCT - 94 )
----
95

query I rowsort
SELECT ALL - 9 + - 61
----
-70

query I rowsort
SELECT 70 + + + 32 * 7 AS col2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + 38 * - + COUNT( * ) + - 98 col1
----
-136

skipif mysql # not compatible
query I rowsort label-9520
SELECT + 38 * - + COUNT ( * ) + - 98 col1
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT + COUNT( * ) DIV - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + COUNT ( * ) / - 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9522
SELECT ALL + 22 * - ( + + COUNT( DISTINCT 76 ) ) * - MIN( + 70 ), - 69 AS col2
----
1540
-69

skipif mysql # not compatible
query II rowsort label-9522
SELECT ALL + 22 * - ( + + COUNT ( DISTINCT 76 ) ) * - MIN ( + 70 ), - 69 AS col2
----
1540
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9523
SELECT DISTINCT - AVG ( DISTINCT - 49 ) + - CAST( NULL AS DECIMAL ) + - - 30 + 2 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - AVG ( DISTINCT - 49 ) + - CAST ( NULL AS REAL ) + - - 30 + 2 * - + 33
----
NULL

query I rowsort
SELECT DISTINCT - 95 + + - 23
----
-118

query I rowsort
SELECT 79 * - - 22 AS col0
----
1738

query II rowsort
SELECT 15 + + + 45 + - - 94, + 65 AS col2
----
154
65

query I rowsort
SELECT ALL - 77 + 17
----
-60

query I rowsort
SELECT 5 * - 28
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT 77 * 99 + - 93 + - COALESCE ( - COUNT( * ), + 49 DIV + + 51 ) AS col1
----
7531

skipif mysql # not compatible
query I rowsort label-9529
SELECT 77 * 99 + - 93 + - COALESCE ( - COUNT ( * ), + 49 / + + 51 ) AS col1
----
7531

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT MAX( DISTINCT + 27 ) + - + 90
----
-63

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT MAX ( DISTINCT + 27 ) + - + 90
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT ALL - 85 AS col2, SUM( - 51 ) * + - 21 col0
----
-85
1071

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL - 85 AS col2, SUM ( - 51 ) * + - 21 col0
----
-85
1071

query II rowsort
SELECT DISTINCT 97 AS col2, 71 AS col2
----
97
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL - 50 - - 2 + - 80 + - 96 + - COUNT( * ) + + NULLIF ( + + 86, + 81 ) * 55 * - - 64 * 4 AS col2
----
1210655

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - 50 - - 2 + - 80 + - 96 + - COUNT ( * ) + + NULLIF ( + + 86, + 81 ) * 55 * - - 64 * 4 AS col2
----
1210655

query I rowsort
SELECT 30 * 31 AS col0
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT + COUNT( * ) - - 87
----
88

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT + COUNT ( * ) - - 87
----
88

query I rowsort
SELECT + 76 + - 20
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL + 6 - - CAST( - + COUNT( * ) AS SIGNED ) * + 40 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + 6 - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 40 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - COUNT( * ) * COUNT( * ) * + 82
----
-82

skipif mysql # not compatible
query I rowsort label-9538
SELECT - COUNT ( * ) * COUNT ( * ) * + 82
----
-82

query II rowsort
SELECT 86 AS col1, - 48 AS col2
----
86
-48

query I rowsort
SELECT + 33 * - 50
----
-1650

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT 71 * 68 + - - 50 AS col1, - COUNT( * ) AS col1
----
4878
-1

skipif mysql # not compatible
query II rowsort label-9541
SELECT 71 * 68 + - - 50 AS col1, - COUNT ( * ) AS col1
----
4878
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL 73 * + + COALESCE ( + 26, + 62, ( COUNT( * ) ) * - + 94 + + NULLIF ( - - COUNT( * ), + 41 - - 94 ) ) + + CAST( COALESCE ( - - MAX( ALL 74 ), - 70 ) AS SIGNED ) + 41 + + + 76 col2
----
2089

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 73 * + + COALESCE ( + 26, + 62, ( COUNT ( * ) ) * - + 94 + + NULLIF ( - - COUNT ( * ), + 41 - - 94 ) ) + + CAST ( COALESCE ( - - MAX ( ALL 74 ), - 70 ) AS INTEGER ) + 41 + + + 76 col2
----
2089

onlyif mysql # DIV for integer division: 
query II rowsort label-9543
SELECT 29 AS col1, + 7 + + 40 DIV 41 AS col2
----
29
7

skipif mysql # not compatible
query II rowsort label-9543
SELECT 29 AS col1, + 7 + + 40 / 41 AS col2
----
29
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT 2 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-9544
SELECT 2 / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + COUNT( 15 ) * + - COUNT( * ) * + 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + COUNT ( 15 ) * + - COUNT ( * ) * + 98 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT DISTINCT 18 DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT 18 / + 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT + NULLIF ( 55, + 45 * + 83 + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-9547
SELECT + NULLIF ( 55, + 45 * + 83 + COUNT ( * ) )
----
55

query I rowsort
SELECT - 31 * + - 69 * + 8
----
17112

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT ( - + 24 ) + + 31 AS col0, + ( + 1 ) + - CASE 5 WHEN - ( - COUNT( * ) ) THEN + 17 - 75 + - - 59 * - + 94 ELSE NULL END + + COUNT( * )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-9549
SELECT ( - + 24 ) + + 31 AS col0, + ( + 1 ) + - CASE 5 WHEN - ( - COUNT ( * ) ) THEN + 17 - 75 + - - 59 * - + 94 ELSE NULL END + + COUNT ( * )
----
7
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT + CAST( - + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-9550
SELECT + CAST ( - + 32 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - 15 + COUNT( + 66 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9551
SELECT - 15 + COUNT ( + 66 ) AS col2
----
-14

query I rowsort
SELECT 50 * 27 + + + 82 + + 13 + - 76 * - 42
----
4637

query I rowsort
SELECT - 72 - - + 88
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT DISTINCT 40 * + - COUNT( + 14 ) + 41 + 71 + - - ( + 91 ) * + 8, + 95 + 47 * - 76 + 55 AS col2
----
800
-3422

skipif mysql # not compatible
query II rowsort label-9554
SELECT DISTINCT 40 * + - COUNT ( + 14 ) + 41 + 71 + - - ( + 91 ) * + 8, + 95 + 47 * - 76 + 55 AS col2
----
800
-3422

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT + 34 * + 11 + + 84 + 8 DIV - - 87 AS col2
----
458

skipif mysql # not compatible
query I rowsort label-9555
SELECT + 34 * + 11 + + 84 + 8 / - - 87 AS col2
----
458

query I rowsort
SELECT ALL + 53 * + 98
----
5194

query I rowsort
SELECT ALL 52 * - 64 + - ( - 84 ) AS col0
----
-3244

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL - 66 * - + 23 * + - COUNT( ALL 50 ) + - COUNT( * ) - - NULLIF ( 28, + 13 ) * - 29 AS col0
----
-2331

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - 66 * - + 23 * + - COUNT ( ALL 50 ) + - COUNT ( * ) - - NULLIF ( 28, + 13 ) * - 29 AS col0
----
-2331

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT COUNT( * ) AS col2, + 29 AS col2
----
1
29

skipif mysql # not compatible
query II rowsort label-9559
SELECT COUNT ( * ) AS col2, + 29 AS col2
----
1
29

query I rowsort
SELECT - 58 - - ( + - 10 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9561
SELECT + COUNT( * ) AS col0, 38
----
1
38

skipif mysql # not compatible
query II rowsort label-9561
SELECT + COUNT ( * ) AS col0, 38
----
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT MAX( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9562
SELECT MAX ( 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL + MAX( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + MAX ( 33 )
----
33

query II rowsort
SELECT + 45, 75 col2
----
45
75

query I rowsort
SELECT ALL - 19 * 56
----
-1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT 82 * 24 - + CASE - ( - 47 ) WHEN - 44 / + 7 THEN + + 94 END + CAST( - ( 48 ) AS SIGNED ) * + 74 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT 82 * 24 - + CASE - ( - 47 ) WHEN - 44 / + 7 THEN + + 94 END + CAST ( - ( 48 ) AS INTEGER ) * + 74 + + 7 AS col2
----
NULL

query II rowsort
SELECT - 69 * + 25 AS col0, - 63 + + 47
----
-1725
-16

query I rowsort
SELECT - + 54 + 99 + - 82 col2
----
-37

query I rowsort
SELECT - + 49 * 93 - - 71
----
-4486

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT - MIN( DISTINCT ( - 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9570
SELECT - MIN ( DISTINCT ( - 6 ) ) AS col0
----
6

query I rowsort
SELECT ALL + 16 * - + 3 AS col0
----
-48

query I rowsort
SELECT DISTINCT + 83 * - 77 * + + 35 * - + NULLIF ( + - 96, - CASE + ( ( - 4 ) ) WHEN - + 67 THEN - 94 ELSE NULL END ) + - 7 AS col2
----
-21473767

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - 16 * - SUM( ALL 14 ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 16 * - SUM ( ALL 14 ) AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + MAX( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-9574
SELECT + MAX ( + 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT - - COUNT( * ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - - COUNT ( * ) + - 91
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT CASE + - COALESCE ( + 81, + 4 * - 69 * - + 29 ) WHEN + 87 THEN + COUNT( * ) WHEN - + 96 THEN + 64 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT CASE + - COALESCE ( + 81, + 4 * - 69 * - + 29 ) WHEN + 87 THEN + COUNT ( * ) WHEN - + 96 THEN + 64 ELSE NULL END col0
----
NULL

query II rowsort
SELECT - + 3 + - 22, - 90 + - 56 * - + 45 AS col2
----
-25
2430

query II rowsort
SELECT 68 AS col2, + NULLIF ( + 72, + 15 * - - 6 + - 76 ) + + 69 AS col2
----
68
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT DISTINCT + + 0 DIV - 19 - - 80
----
80

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + + 0 / - 19 - - 80
----
80

query II rowsort
SELECT ALL 38 AS col2, 52
----
38
52

query I rowsort
SELECT ALL - - 50 + - 69
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL + 94 + ( 90 ) * - CAST( 55 AS SIGNED ) * + - 66 AS col0
----
326794

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + 94 + ( 90 ) * - CAST ( 55 AS INTEGER ) * + - 66 AS col0
----
326794

query II rowsort
SELECT DISTINCT - 40 * - 80 * - - 4 AS col2, - COALESCE ( - 15, - - 94 * + 76 * - 33 * + 38 + + - 49 + + 44 + 15 ) * + 69 + + 63 AS col0
----
12800
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL COUNT( * ) + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL COUNT ( * ) + 64 AS col2
----
65

query II rowsort
SELECT + 83 * - - 89, 80 AS col1
----
7387
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT + 0 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 0 / 93
----
0

query II rowsort
SELECT ( + 34 ) col1, - 61 * 29 * - + 99
----
34
175131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT ALL + COUNT( * ) DIV + 80 * 69 * - - 58 + ( - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + COUNT ( * ) / + 80 * 69 * - - 58 + ( - 19 ) AS col1
----
-19

query I rowsort
SELECT + 64 + + 29 * - + NULLIF ( 85, 36 ) AS col1
----
-2401

query I rowsort
SELECT + 23 * + 90
----
2070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT 23 / - + CAST( NULL AS SIGNED ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT 23 / - + CAST ( NULL AS INTEGER ) + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + SUM( + 53 ) * + 33 AS col0
----
1749

skipif mysql # not compatible
query I rowsort label-9592
SELECT + SUM ( + 53 ) * + 33 AS col0
----
1749

query I rowsort
SELECT ALL + 87 * + 26 AS col1
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT + COUNT( * ) + + 87, - 43 col0
----
88
-43

skipif mysql # not compatible
query II rowsort label-9594
SELECT + COUNT ( * ) + + 87, - 43 col0
----
88
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT ( + 6 ) * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT ( + 6 ) * + COUNT ( * )
----
6

query I rowsort
SELECT + NULLIF ( + 17, - 63 ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9597
SELECT - 86 + 65 + - 78 * + + COUNT( * ) * - CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9597
SELECT - 86 + 65 + - 78 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + 57 * - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 57 * - COUNT ( * ) AS col2
----
-57

query I rowsort
SELECT CASE + + 84 WHEN + NULLIF ( + - 35, + + 73 * + - 53 + + 15 / - + 25 / + 4 + + + 17 ) THEN - 78 ELSE 16 END
----
16

query I rowsort
SELECT - - 20 + - 20 col2
----
0

query I rowsort
SELECT + 91 * - 11 + + 58
----
-943

query I rowsort
SELECT ALL + COALESCE ( 78, 85 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT + 86 * + 5 * + + COUNT( * ) + + COUNT( * ) + - + 27
----
404

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + 86 * + 5 * + + COUNT ( * ) + + COUNT ( * ) + - + 27
----
404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL ( ( - 35 ) ) * 66 * - - 93 + + ( - + CAST( - 31 AS SIGNED ) ) col0
----
-214799

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL ( ( - 35 ) ) * 66 * - - 93 + + ( - + CAST ( - 31 AS INTEGER ) ) col0
----
-214799

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT DISTINCT + - 57 * + 52 + + + 42 * + + COUNT( - + 5 ) AS col2, COUNT( * ) + COALESCE ( + COUNT( * ), + 13 + + 67 ) AS col2
----
-2922
2

skipif mysql # not compatible
query II rowsort label-9605
SELECT DISTINCT + - 57 * + 52 + + + 42 * + + COUNT ( - + 5 ) AS col2, COUNT ( * ) + COALESCE ( + COUNT ( * ), + 13 + + 67 ) AS col2
----
-2922
2

query I rowsort
SELECT ALL 40 * - - 16 + 28 AS col2
----
668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT + ( + - NULLIF ( + CASE + 2 WHEN COUNT( * ) + 1 * + + 48 + + + MAX( DISTINCT + 17 ) + + CASE WHEN - CASE 25 WHEN + 11 * - 33 THEN COUNT( * ) * + 71 ELSE + CAST( NULL AS SIGNED ) * 11 END IS NOT NULL THEN + + ( + 56 ) ELSE + + 30 END * 59 THEN NULL ELSE + + 77 END, - 37 ) ) * 89 AS col1
----
-6853

skipif mysql # not compatible
query I rowsort label-9607
SELECT + ( + - NULLIF ( + CASE + 2 WHEN COUNT ( * ) + 1 * + + 48 + + + MAX ( DISTINCT + 17 ) + + CASE WHEN - CASE 25 WHEN + 11 * - 33 THEN COUNT ( * ) * + 71 ELSE + CAST ( NULL AS INTEGER ) * 11 END IS NOT NULL THEN + + ( + 56 ) ELSE + + 30 END * 59 THEN NULL ELSE + + 77 END, - 37 ) ) * 89 AS col1
----
-6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9608
SELECT DISTINCT + CASE CAST( NULL AS DECIMAL ) WHEN - + 95 THEN - 40 / + - ( + 88 ) + + 35 * 49 + - CAST( + MAX( ALL 24 ) AS SIGNED ) END + + 72 - + 41 AS col2, ( - COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9608
SELECT DISTINCT + CASE CAST ( NULL AS REAL ) WHEN - + 95 THEN - 40 / + - ( + 88 ) + + 35 * 49 + - CAST ( + MAX ( ALL 24 ) AS INTEGER ) END + + 72 - + 41 AS col2, ( - COUNT ( * ) ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT ALL - - 28 + + CAST( 31 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - - 28 + + CAST ( 31 AS INTEGER ) AS col1
----
59

query II rowsort
SELECT + ( + 64 ) col0, - 88
----
64
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9611
SELECT - + CAST( + 96 AS SIGNED ), + 27 AS col0
----
-96
27

skipif mysql # not compatible
query II rowsort label-9611
SELECT - + CAST ( + 96 AS INTEGER ), + 27 AS col0
----
-96
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT - + 43 * 77 * - 93 * + CASE - 30 WHEN + COUNT( * ) THEN 2 * - 40 * - + COUNT( * ) WHEN + 72 * + 23 + 5 + - MAX( ALL + 34 ) THEN 24 * + 11 * + 5 END AS col1, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-9612
SELECT - + 43 * 77 * - 93 * + CASE - 30 WHEN + COUNT ( * ) THEN 2 * - 40 * - + COUNT ( * ) WHEN + 72 * + 23 + 5 + - MAX ( ALL + 34 ) THEN 24 * + 11 * + 5 END AS col1, 26
----
NULL
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9613
SELECT ALL - + 36 + + COALESCE ( - + MAX( DISTINCT + 22 ), - + 70 DIV 29 + + 76, - 46 ) + 8 * + 36
----
230

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - + 36 + + COALESCE ( - + MAX ( DISTINCT + 22 ), - + 70 / 29 + + 76, - 46 ) + 8 * + 36
----
230

query I rowsort
SELECT 15 + - 32 - 52 AS col2
----
-69

query II rowsort
SELECT 89 * + 25 * - + 55, 25 AS col2
----
-122375
25

query I rowsort
SELECT ALL + 63 - + + 89
----
-26

query II rowsort
SELECT - 67, - 30 AS col2
----
-67
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT 8 + + + CAST( + + 4 AS SIGNED ) + ( - 79 ) - 53 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-9618
SELECT 8 + + + CAST ( + + 4 AS INTEGER ) + ( - 79 ) - 53 AS col2
----
-120

query I rowsort
SELECT ALL 35 * - 3 AS col0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT ALL - 18 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - 18 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT ALL + 64 - + 40 + COUNT( * ) AS col2, 92
----
25
92

skipif mysql # not compatible
query II rowsort label-9621
SELECT ALL + 64 - + 40 + COUNT ( * ) AS col2, 92
----
25
92

query I rowsort
SELECT ALL - NULLIF ( 18, + 76 ) * - + 63
----
1134

query I rowsort
SELECT DISTINCT + 46 * - 91
----
-4186

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT ALL - ( + + ( 99 ) ) * 4, - MIN( + + ( 14 ) ) AS col2
----
-396
-14

skipif mysql # not compatible
query II rowsort label-9624
SELECT ALL - ( + + ( 99 ) ) * 4, - MIN ( + + ( 14 ) ) AS col2
----
-396
-14

query II rowsort
SELECT 35 AS col2, 22 AS col1
----
35
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT 1 * - 26 - + 92 + + + 50 DIV - 46 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-9626
SELECT 1 * - 26 - + 92 + + + 50 / - 46 AS col0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT 19 * 23 - + ( - 86 ) + + 50 DIV 65
----
523

skipif mysql # not compatible
query I rowsort label-9627
SELECT 19 * 23 - + ( - 86 ) + + 50 / 65
----
523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT NULLIF ( + ( - 67 ), CAST( NULL AS SIGNED ) - 17 + + 29 + + 72 * - 94 * + 39 * - - 59 / - + 2 - + 67 * 64 + + + COUNT( * ) - + 65 * - COUNT( * ) ) * + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9628
SELECT NULLIF ( + ( - 67 ), CAST ( NULL AS INTEGER ) - 17 + + 29 + + 72 * - 94 * + 39 * - - 59 / - + 2 - + 67 * 64 + + + COUNT ( * ) - + 65 * - COUNT ( * ) ) * + COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + 66 * + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + 66 * + COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL COUNT( * ) + COALESCE ( 1, - 25 * 82, + 60 + 20, ( + 7 ) + 41 )
----
2

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL COUNT ( * ) + COALESCE ( 1, - 25 * 82, + 60 + 20, ( + 7 ) + 41 )
----
2

query I rowsort
SELECT 36 + + + 62
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + CAST( NULL AS SIGNED ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT + CAST ( NULL AS INTEGER ) + - 90
----
NULL

query I rowsort
SELECT - 11 + 11 AS col2
----
0

query II rowsort
SELECT 16, 84 + - - 71 AS col1
----
16
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT + 92 * - + CAST( - 49 AS SIGNED ) + 10 + - 91 AS col0
----
4427

skipif mysql # not compatible
query I rowsort label-9635
SELECT + 92 * - + CAST ( - 49 AS INTEGER ) + 10 + - 91 AS col0
----
4427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT ALL 8 + - 97 DIV + 13 * MIN( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 8 + - 97 / + 13 * MIN ( ALL 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - CASE - + 10 WHEN - 13 THEN NULL WHEN + 3 THEN - 16 WHEN - COUNT( * ) THEN - 14 - + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - CASE - + 10 WHEN - 13 THEN NULL WHEN + 3 THEN - 16 WHEN - COUNT ( * ) THEN - 14 - + 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL - COUNT( * ) + - 70 + - 41 + 18 * - ( - - ( - 26 ) ) col1
----
356

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - COUNT ( * ) + - 70 + - 41 + 18 * - ( - - ( - 26 ) ) col1
----
356

query I rowsort
SELECT + 74 + 20 col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT CAST( NULL AS SIGNED ) / MIN( - - 9 ) + + + NULLIF ( + 2, + 43 * - COUNT( DISTINCT - + 97 ) * 74 - + 15 + ( + + 49 ) ) + 63 + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT CAST ( NULL AS INTEGER ) / MIN ( - - 9 ) + + + NULLIF ( + 2, + 43 * - COUNT ( DISTINCT - + 97 ) * 74 - + 15 + ( + + 49 ) ) + 63 + - 26 AS col2
----
NULL

query I rowsort
SELECT ALL - 31 - - 69 * - 66 col1
----
-4585

query II rowsort
SELECT 99 * 73 AS col0, 99 col1
----
7227
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9643
SELECT ALL 5 - - 38 AS col0, CAST( NULL AS SIGNED ) AS col2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT ALL 5 - - 38 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
43
NULL

query I rowsort
SELECT 24 * + 21 AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL COUNT( ALL - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL COUNT ( ALL - 39 )
----
1

query II rowsort
SELECT ALL - ( 97 ), 26 col0
----
-97
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT 69 DIV COUNT( DISTINCT - 71 )
----
69

skipif mysql # not compatible
query I rowsort label-9647
SELECT 69 / COUNT ( DISTINCT - 71 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9648
SELECT 24 * - 18 * + 60 + + - COUNT( * ), - 21 + - 27 DIV + COUNT( * ) AS col0
----
-25921
-48

skipif mysql # not compatible
query II rowsort label-9648
SELECT 24 * - 18 * + 60 + + - COUNT ( * ), - 21 + - 27 / + COUNT ( * ) AS col0
----
-25921
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT ALL - 24 + - 29 + - 14 * + 93 AS col0, + SUM( ALL - 95 )
----
-1355
-95

skipif mysql # not compatible
query II rowsort label-9649
SELECT ALL - 24 + - 29 + - 14 * + 93 AS col0, + SUM ( ALL - 95 )
----
-1355
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT + 6 DIV COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 6 / COUNT ( * ) AS col0
----
6

query I rowsort
SELECT ALL + 6 + - 65 + - 51 * - - 10 * 20 AS col0
----
-10259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * + 76
----
-76

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * + 76
----
-76

query I rowsort
SELECT ALL - 37 + 34 * 20
----
643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT + - CAST( - - COUNT( * ) AS SIGNED ) + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + - CAST ( - - COUNT ( * ) AS INTEGER ) + - 27
----
-28

query I rowsort
SELECT + + NULLIF ( + 8, + 49 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT + 73 DIV + - 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 73 / + - 34 AS col2
----
-2

query I rowsort
SELECT ALL + 46 + - ( - 24 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT ALL - - 56 - CAST( + 68 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - - 56 - CAST ( + 68 AS INTEGER )
----
-12

query II rowsort
SELECT DISTINCT NULLIF ( + 48, - 7 * - 87 ) AS col2, - 97
----
48
-97

query I rowsort
SELECT ALL + 30 - - 52
----
82

query I rowsort
SELECT DISTINCT 80 * + 43 col2
----
3440

query I rowsort
SELECT DISTINCT 24 - 47 AS col1
----
-23

query I rowsort
SELECT - + ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT + 11 * 15 * 35 * + - MAX( ALL 97 ) AS col1
----
-560175

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + 11 * 15 * 35 * + - MAX ( ALL 97 ) AS col1
----
-560175

query I rowsort
SELECT - ( - + 71 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - 53 * + MAX( - + 15 )
----
795

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 53 * + MAX ( - + 15 )
----
795

query I rowsort
SELECT DISTINCT 71 * - 92
----
-6532

query I rowsort
SELECT + 94 * + 94 * + - 84
----
-742224

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + 64 + - + CASE + 33 WHEN 51 + - MAX( ALL 59 ) THEN NULL WHEN + 77 - - 84 THEN NULL ELSE + + 80 * + ( 52 ) * NULLIF ( - - 87, - 24 + + ( - 44 ) / 68 ) + - + 67 * 15 - - 7 - - - 84 END AS col0
----
-360774

skipif mysql # not compatible
query I rowsort label-9669
SELECT + 64 + - + CASE + 33 WHEN 51 + - MAX ( ALL 59 ) THEN NULL WHEN + 77 - - 84 THEN NULL ELSE + + 80 * + ( 52 ) * NULLIF ( - - 87, - 24 + + ( - 44 ) / 68 ) + - + 67 * 15 - - 7 - - - 84 END AS col0
----
-360774

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT + 81 DIV + 74 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 81 / + 74 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - COUNT( 26 ) + 85 - 34 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9671
SELECT - COUNT ( 26 ) + 85 - 34 AS col2
----
50

query I rowsort
SELECT - 64 * + 45 AS col2
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT - COALESCE ( + COUNT( * ), - - 65, - + 95 * 48 + COUNT( * ) + + + 19 ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-9673
SELECT - COALESCE ( + COUNT ( * ), - - 65, - + 95 * 48 + COUNT ( * ) + + + 19 ) * + 49
----
-49

query I rowsort
SELECT DISTINCT - 83 * - 18
----
1494

query I rowsort
SELECT ALL + 28 + + 21 AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - 28 * CAST( NULL AS SIGNED ) * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 28 * CAST ( NULL AS INTEGER ) * + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL + COALESCE ( - 88, - COUNT( ALL + CAST( + + 50 AS SIGNED ) ) + - 52 * + COALESCE ( + 73, 51 ), + + 28 + - - 71 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + COALESCE ( - 88, - COUNT ( ALL + CAST ( + + 50 AS INTEGER ) ) + - 52 * + COALESCE ( + 73, 51 ), + + 28 + - - 71 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL + + CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + + CAST ( 61 AS INTEGER )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT ALL + CAST( - 16 AS SIGNED ) * 91 + 59 + - 9
----
-1406

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + CAST ( - 16 AS INTEGER ) * 91 + 59 + - 9
----
-1406

query II rowsort
SELECT DISTINCT + + 6 col0, - 11 * - + 49 AS col1
----
6
539

query I rowsort
SELECT + + 94 * ( + 13 ) - - 49
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + 12 / - - MIN( + + 83 ) - + CASE + 15 WHEN 54 THEN + 78 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT + 12 / - - MIN ( + + 83 ) - + CASE + 15 WHEN 54 THEN + 78 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL 4 * + 37 - - COUNT( * ) + + ( + COUNT( * ) )
----
150

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL 4 * + 37 - - COUNT ( * ) + + ( + COUNT ( * ) )
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT ALL + MIN( DISTINCT + - 30 ) DIV 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + MIN ( DISTINCT + - 30 ) / 6 AS col0
----
-5

query I rowsort
SELECT - NULLIF ( 66, + NULLIF ( 74, CASE + 32 WHEN - 95 THEN NULL ELSE + 2 END * + 9 ) - ( - + 46 ) + + NULLIF ( - 23, + - 66 ) * - - ( + 63 ) )
----
-66

query I rowsort
SELECT DISTINCT + - 91 * - 75 AS col1
----
6825

query I rowsort
SELECT - - 95 * + - 0 AS col0
----
0

query I rowsort
SELECT ALL + + 41 * 44 AS col0
----
1804

query I rowsort
SELECT ALL + - 16 * 31
----
-496

query I rowsort
SELECT - 87 + + 53 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL + COUNT( * ) * 35 * - 61 - + 33 AS col0
----
-2168

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + COUNT ( * ) * 35 * - 61 - + 33 AS col0
----
-2168

query I rowsort
SELECT - 0 * - 94
----
0

query I rowsort
SELECT + CASE - 37 WHEN - 56 * ( - 2 ) THEN - - 66 WHEN 22 - + + 10 THEN NULL ELSE NULL END * - 81 / + 14 - - 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT + - ( + 1 ) DIV + 88 DIV + 1 + - 63 - + - 93 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9694
SELECT + - ( + 1 ) / + 88 / + 1 + - 63 - + - 93 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT - - 57 * - + 38 + + 14 DIV - 45 + + 44 + + COUNT( * ) AS col2
----
-2121

skipif mysql # not compatible
query I rowsort label-9695
SELECT - - 57 * - + 38 + + 14 / - 45 + + 44 + + COUNT ( * ) AS col2
----
-2121

query I rowsort
SELECT DISTINCT ( + ( + + 5 ) ) AS col0
----
5

query I rowsort
SELECT + 0 + - - 60
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT CAST( - + 17 AS SIGNED ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT CAST ( - + 17 AS INTEGER ) col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT + 76 + COUNT( * ) + + - 44 * CASE + ( 98 ) WHEN + - COUNT( * ) * + 24 THEN + 37 / COUNT( * ) + - 66 WHEN - 7 - + - 41 * - MAX( 57 ) + - COUNT( * ) THEN - 22 + - 53 + + 20 END AS col1, + 36 * + 7 col2
----
NULL
252

skipif mysql # not compatible
query II rowsort label-9699
SELECT + 76 + COUNT ( * ) + + - 44 * CASE + ( 98 ) WHEN + - COUNT ( * ) * + 24 THEN + 37 / COUNT ( * ) + - 66 WHEN - 7 - + - 41 * - MAX ( 57 ) + - COUNT ( * ) THEN - 22 + - 53 + + 20 END AS col1, + 36 * + 7 col2
----
NULL
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT ALL CAST( + ( + 47 ) AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL CAST ( + ( + 47 ) AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT COALESCE ( + 66, - 55, + + 85 ) * 17 - - MIN( DISTINCT - - NULLIF ( - 5, + - 57 * + 18 ) ) + 80 DIV + 2 + COUNT( * )
----
1158

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT COALESCE ( + 66, - 55, + + 85 ) * 17 - - MIN ( DISTINCT - - NULLIF ( - 5, + - 57 * + 18 ) ) + 80 / + 2 + COUNT ( * )
----
1158

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT - COUNT( * ), + 48 * + - 87 AS col1
----
-1
-4176

skipif mysql # not compatible
query II rowsort label-9702
SELECT - COUNT ( * ), + 48 * + - 87 AS col1
----
-1
-4176

query I rowsort
SELECT - 41 * 81 AS col0
----
-3321

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT + COUNT( * ) + - - 66 AS col1, COUNT( * )
----
67
1

skipif mysql # not compatible
query II rowsort label-9704
SELECT + COUNT ( * ) + - - 66 AS col1, COUNT ( * )
----
67
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9705
SELECT ALL CAST( 57 AS SIGNED ) + 87 + + CASE - COUNT( * ) WHEN + COUNT( * ) + - 14 THEN + 68 ELSE + + 96 END, + 15 AS col2
----
240
15

skipif mysql # not compatible
query II rowsort label-9705
SELECT ALL CAST ( 57 AS INTEGER ) + 87 + + CASE - COUNT ( * ) WHEN + COUNT ( * ) + - 14 THEN + 68 ELSE + + 96 END, + 15 AS col2
----
240
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT - NULLIF ( - MAX( ALL + + 7 ), 49 )
----
7

skipif mysql # not compatible
query I rowsort label-9706
SELECT - NULLIF ( - MAX ( ALL + + 7 ), 49 )
----
7

query II rowsort
SELECT 94, + 54 * + 97 * 37 * + 92 * + 89 + - - 60 AS col0
----
94
1586883588

query I rowsort
SELECT + 52 + - 41 * - 11 + + 72
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - NULLIF ( 66, + COUNT( * ) ) + - 7 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - NULLIF ( 66, + COUNT ( * ) ) + - 7 AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9710
SELECT + COALESCE ( + 17, - COALESCE ( - + 83, + MAX( 93 ), NULLIF ( + 15, 51 ) ) - + 40 + - 42, MAX( - 35 ) ) DIV 69 * - MIN( DISTINCT + + 6 ) AS col2, - 9
----
0
-9

skipif mysql # not compatible
query II rowsort label-9710
SELECT + COALESCE ( + 17, - COALESCE ( - + 83, + MAX ( 93 ), NULLIF ( + 15, 51 ) ) - + 40 + - 42, MAX ( - 35 ) ) / 69 * - MIN ( DISTINCT + + 6 ) AS col2, - 9
----
0
-9

query II rowsort
SELECT 75, + 12 * - + 71 AS col1
----
75
-852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9712
SELECT ALL COUNT( * ), NULLIF ( - CAST( NULL AS SIGNED ), - 81 - + - NULLIF ( MAX( + + ( 34 ) ), + 67 + 28 ) ) * + - NULLIF ( ( 66 ), + + COUNT( * ) ) * + 69 - + 60 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9712
SELECT ALL COUNT ( * ), NULLIF ( - CAST ( NULL AS INTEGER ), - 81 - + - NULLIF ( MAX ( + + ( 34 ) ), + 67 + 28 ) ) * + - NULLIF ( ( 66 ), + + COUNT ( * ) ) * + 69 - + 60 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL COUNT( * ) + - 63 col0
----
-62

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL COUNT ( * ) + - 63 col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT DISTINCT NULLIF ( COUNT( * ), + 32 * + 42 * 31 * + 95 * + 21 ) AS col2, ( + + 63 )
----
1
63

skipif mysql # not compatible
query II rowsort label-9714
SELECT DISTINCT NULLIF ( COUNT ( * ), + 32 * + 42 * 31 * + 95 * + 21 ) AS col2, ( + + 63 )
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + COUNT( + 85 ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-9715
SELECT + COUNT ( + 85 ) + 55
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT DISTINCT 61 DIV + - 13 + + - 19 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT 61 / + - 13 + + - 19 AS col2
----
-23

query II rowsort
SELECT ALL + 13 AS col2, - 88 AS col2
----
13
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - 16 DIV - 80 * + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 16 / - 80 * + 61 AS col0
----
0

query I rowsort
SELECT ALL 85 * + 65 + + - 16 * - + 68
----
6613

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9720
SELECT ALL + CAST( NULL AS DECIMAL ) * + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + CAST ( NULL AS REAL ) * + + 86
----
NULL

query I rowsort
SELECT + + 24 + - + 94
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT ALL + 54 * + 75 * ( - 31 ) * 31 + + 1 + - + 11 DIV COUNT( * ) * - - 8 * - COUNT( * )
----
-3891961

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + 54 * + 75 * ( - 31 ) * 31 + + 1 + - + 11 / COUNT ( * ) * - - 8 * - COUNT ( * )
----
-3891961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT + + COUNT( * ) * - + 37 * ( MIN( 9 ) ) - + 27 * 10 DIV 51 - - NULLIF ( + - COALESCE ( 79, + 97, + - 95 + - 71 ), 98 ) + - 45 AS col1
----
-462

skipif mysql # not compatible
query I rowsort label-9723
SELECT + + COUNT ( * ) * - + 37 * ( MIN ( 9 ) ) - + 27 * 10 / 51 - - NULLIF ( + - COALESCE ( 79, + 97, + - 95 + - 71 ), 98 ) + - 45 AS col1
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT MAX( 73 ) * 95 AS col0
----
6935

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT MAX ( 73 ) * 95 AS col0
----
6935

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT + - MIN( DISTINCT - - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT + - MIN ( DISTINCT - - 72 )
----
-72

query I rowsort
SELECT ALL 74 * + + 64 + + 74 * + 81
----
10730

query I rowsort
SELECT DISTINCT + 35 - + - ( ( + CASE - AVG ( + 54 ) WHEN - ( - 99 ) - - 71 + + 11 THEN + - 32 END ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9728
SELECT + - 90 AS col2, - 70 * + + 2 / + 60 * - CAST( NULL AS SIGNED ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9728
SELECT + - 90 AS col2, - 70 * + + 2 / + 60 * - CAST ( NULL AS INTEGER ) AS col1
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - 27 + ( COUNT( ALL - + 64 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 27 + ( COUNT ( ALL - + 64 ) )
----
-26

query II rowsort
SELECT + + 36 AS col2, - 74 AS col1
----
36
-74

query I rowsort
SELECT + 80 * + 98
----
7840

query II rowsort
SELECT - 19 col0, 30 + - 15 AS col2
----
-19
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT 58 * COALESCE ( 6, 5 + + 75 * + 90 + 39, + + 81 ) + - COUNT( * ) col2, 10 AS col0
----
347
10

skipif mysql # not compatible
query II rowsort label-9733
SELECT 58 * COALESCE ( 6, 5 + + 75 * + 90 + 39, + + 81 ) + - COUNT ( * ) col2, 10 AS col0
----
347
10

query I rowsort
SELECT + + ( + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT ALL + - COUNT( * ) * - - 17 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + - COUNT ( * ) * - - 17 / 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT ALL + 61 * + + CASE - - 68 WHEN + ( 48 ) * - CAST( - 67 AS SIGNED ) THEN - - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + 61 * + + CASE - - 68 WHEN + ( 48 ) * - CAST ( - 67 AS INTEGER ) THEN - - 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9737
SELECT DISTINCT + SUM( DISTINCT + 87 ) / - - CAST( NULL AS SIGNED ) * 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + SUM ( DISTINCT + 87 ) / - - CAST ( NULL AS INTEGER ) * 52 col1
----
NULL

query II rowsort
SELECT ALL - CASE 81 WHEN 72 THEN NULL WHEN - 66 THEN + - 28 ELSE NULL END AS col1, - 60
----
NULL
-60

query I rowsort
SELECT 27 * - 23 AS col2
----
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT DISTINCT 6 + + - 19 - - - 14 DIV + 90
----
-13

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 6 + + - 19 - - - 14 / + 90
----
-13

query I rowsort
SELECT ALL + ( 82 ) * + 34 + - - 88 - ( + 7 ) * 92
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT 17 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT 17 / 59
----
0

query I rowsort
SELECT 53 * + 93
----
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT - ( 15 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - ( 15 ) + - COUNT ( * )
----
-16

query I rowsort
SELECT 33 - - + 59
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL 5 + ( - + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL 5 + ( - + COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - COUNT( * ) + 13
----
12

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - COUNT ( * ) + 13
----
12

query I rowsort
SELECT ALL 63 * 95 * + - 4
----
-23940

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ( + + ( 20 ) ) + + COUNT( * ) + + MAX( DISTINCT + - 80 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9749
SELECT ( + + ( 20 ) ) + + COUNT ( * ) + + MAX ( DISTINCT + - 80 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT 98 * CAST( + 25 AS SIGNED ) AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 98 * CAST ( + 25 AS INTEGER ) AS col2
----
2450

query I rowsort
SELECT ALL + COALESCE ( 58, + NULLIF ( + 46, + 59 ) * - - 39 ) - 54 * 94
----
-5018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT CAST( NULL AS SIGNED ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT CAST ( NULL AS INTEGER ) * + 98 AS col0
----
NULL

query I rowsort
SELECT + 71 * + 50 + - 0 * - 25
----
3550

query I rowsort
SELECT DISTINCT - 56 * - ( - 12 )
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT 18 DIV + 79 + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9755
SELECT 18 / + 79 + + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT 5 * + + 23 * + NULLIF ( + - 35, + - ( - - COUNT( * ) ) )
----
-4025

skipif mysql # not compatible
query I rowsort label-9756
SELECT 5 * + + 23 * + NULLIF ( + - 35, + - ( - - COUNT ( * ) ) )
----
-4025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT + COUNT( ALL - 63 ) * + COUNT( - + 59 ) * + 67 + 16 + CAST( 68 AS SIGNED ) col1
----
151

skipif mysql # not compatible
query I rowsort label-9757
SELECT + COUNT ( ALL - 63 ) * + COUNT ( - + 59 ) * + 67 + 16 + CAST ( 68 AS INTEGER ) col1
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT + + MIN( DISTINCT - 26 ) * - CAST( MIN( 54 ) AS SIGNED ) - - 81 + + 51 - + + COUNT( ALL 54 )
----
1535

skipif mysql # not compatible
query I rowsort label-9758
SELECT + + MIN ( DISTINCT - 26 ) * - CAST ( MIN ( 54 ) AS INTEGER ) - - 81 + + 51 - + + COUNT ( ALL 54 )
----
1535

query I rowsort
SELECT 28 + - ( - 92 )
----
120

query I rowsort
SELECT ALL + - 86 * + + 1
----
-86

query I rowsort
SELECT DISTINCT + + COALESCE ( + 38, 58 ) + 42 * + 64 * - 90 * - + 17 AS col1
----
4112678

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT ( 57 ) + - + CASE - 13 WHEN - 33 + + COUNT( * ) THEN NULL WHEN - - COUNT( * ) + + - 55 THEN 59 + - 5 + 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT ( 57 ) + - + CASE - 13 WHEN - 33 + + COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) + + - 55 THEN 59 + - 5 + 11 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 8 + - COUNT( DISTINCT - - 21 ) + - 32 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9763
SELECT 8 + - COUNT ( DISTINCT - - 21 ) + - 32 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9764
SELECT COUNT( * ) * - + 15 * - 83 - 73 + + 92 * - COUNT( * ), NULLIF ( - COALESCE ( - - 96, COUNT( * ) + + + 67 ), - + 24 * 58 ) DIV 74 AS col0
----
1080
-1

skipif mysql # not compatible
query II rowsort label-9764
SELECT COUNT ( * ) * - + 15 * - 83 - 73 + + 92 * - COUNT ( * ), NULLIF ( - COALESCE ( - - 96, COUNT ( * ) + + + 67 ), - + 24 * 58 ) / 74 AS col0
----
1080
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL - MAX( 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - MAX ( 41 )
----
-41

query I rowsort
SELECT NULLIF ( + 60, 3 + + 9 + + 37 ) + + 63 col2
----
123

query I rowsort
SELECT 53 - + 78
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT DISTINCT + ( + 51 ) + + + 18, COUNT( * ) AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-9768
SELECT DISTINCT + ( + 51 ) + + + 18, COUNT ( * ) AS col0
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - COUNT( * ) + COALESCE ( 19, - 80 ) - - + 81 + + 44 + + + COALESCE ( 41, 55 * + - MIN( DISTINCT + 46 ) * - NULLIF ( + COUNT( * ), + - 72 ) ) + - NULLIF ( + ( COUNT( * ) ), 98 ) - + 18 + + + 87 * - - COUNT( * ) * + 46 + COUNT( * ) * + + 84 col0
----
4251

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - COUNT ( * ) + COALESCE ( 19, - 80 ) - - + 81 + + 44 + + + COALESCE ( 41, 55 * + - MIN ( DISTINCT + 46 ) * - NULLIF ( + COUNT ( * ), + - 72 ) ) + - NULLIF ( + ( COUNT ( * ) ), 98 ) - + 18 + + + 87 * - - COUNT ( * ) * + 46 + COUNT ( * ) * + + 84 col0
----
4251

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT 33 + - 90 + - + 8 DIV + 28 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9770
SELECT 33 + - 90 + - + 8 / + 28 AS col1
----
-57

query II rowsort
SELECT ALL 68 AS col2, 95
----
68
95

query I rowsort
SELECT - 17 * 9 + 34 AS col2
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT ALL - 15 * SUM( ALL - 42 ) * + + ( - + 81 ) * - 86 + 94 - - - COUNT( * ), COUNT( * ) col2
----
4388673
1

skipif mysql # not compatible
query II rowsort label-9774
SELECT ALL - 15 * SUM ( ALL - 42 ) * + + ( - + 81 ) * - 86 + 94 - - - COUNT ( * ), COUNT ( * ) col2
----
4388673
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT 52 + - ( - - 91 ) DIV 41 + - 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9775
SELECT 52 + - ( - - 91 ) / 41 + - 25 AS col2
----
25

query I rowsort
SELECT ALL 93 + - + 0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT MAX( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT MAX ( DISTINCT 26 )
----
26

query I rowsort
SELECT 62 + 28 AS col1
----
90

query II rowsort
SELECT ALL 83, - 61 * + 53 AS col1
----
83
-3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT CAST( NULL AS SIGNED ) + 85 * 91 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT CAST ( NULL AS INTEGER ) + 85 * 91 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT 42 DIV + - ( - 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT 42 / + - ( - 91 ) AS col0
----
0

query I rowsort
SELECT ALL - 7 * - + 74
----
518

query I rowsort
SELECT 49 * + + 70
----
3430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9784
SELECT - 94 AS col0, 9 + - CAST( 82 AS SIGNED ) col0
----
-94
-73

skipif mysql # not compatible
query II rowsort label-9784
SELECT - 94 AS col0, 9 + - CAST ( 82 AS INTEGER ) col0
----
-94
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL MAX( ALL + + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL MAX ( ALL + + 90 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT 68 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT 68 / 96
----
0

query I rowsort
SELECT 3 * 39
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - 53 * + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - 53 * + COUNT ( * )
----
-53

query II rowsort
SELECT - 51 * 41 * + - 45 AS col2, - 60 AS col1
----
94095
-60

query II rowsort
SELECT ALL 96, 99 AS col0
----
96
99

query I rowsort
SELECT + 60 + + 41 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT COUNT( * ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT COUNT ( * ) * 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL - MIN( ALL + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - MIN ( ALL + 41 )
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9794
SELECT DISTINCT 2 AS col2, 57 * + + 7 * CAST( NULL AS DECIMAL ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9794
SELECT DISTINCT 2 AS col2, 57 * + + 7 * CAST ( NULL AS REAL ) AS col1
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + SUM( - 58 ) + COUNT( 90 )
----
-57

skipif mysql # not compatible
query I rowsort label-9795
SELECT + SUM ( - 58 ) + COUNT ( 90 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9796
SELECT + 80 AS col0, CAST( NULL AS SIGNED ) + + 33 - - + 79
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9796
SELECT + 80 AS col0, CAST ( NULL AS INTEGER ) + + 33 - - + 79
----
80
NULL

query I rowsort
SELECT - 53 * - 87
----
4611

query I rowsort
SELECT ALL 92 * 66 * + ( - 41 ) AS col1
----
-248952

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT + 9 * 37 - + + 24 + - COUNT( * ) + + 86 AS col1
----
394

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT + 9 * 37 - + + 24 + - COUNT ( * ) + + 86 AS col1
----
394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9800
SELECT ALL + 66 * - 92 + 98 - + + CAST( NULL AS SIGNED ) + - 71 - - 22, + 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + 66 * - 92 + 98 - + + CAST ( NULL AS INTEGER ) + - 71 - - 22, + 38 AS col1
----
NULL
38

query I rowsort
SELECT + - 65 + ( - 24 ) + - - 70 AS col1
----
-19

query I rowsort
SELECT + ( + ( + 92 ) ) + 57 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + 41 * - COUNT( * ) * - - 72 AS col0
----
-2952

skipif mysql # not compatible
query I rowsort label-9803
SELECT + 41 * - COUNT ( * ) * - - 72 AS col0
----
-2952

query I rowsort
SELECT 10 * + 69 + - 0
----
690

query I rowsort
SELECT ALL + 60 * - 19 + + 35
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + 13 * + + SUM( 91 ) * - - 84 + + 31 * - CASE - 1 WHEN + 67 + - 82 THEN + + 80 WHEN + COUNT( * ) * AVG ( ALL + + 81 ) * + MIN( + - 60 ) THEN NULL WHEN + - 70 * + + 48 THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT + 13 * + + SUM ( 91 ) * - - 84 + + 31 * - CASE - 1 WHEN + 67 + - 82 THEN + + 80 WHEN + COUNT ( * ) * AVG ( ALL + + 81 ) * + MIN ( + - 60 ) THEN NULL WHEN + - 70 * + + 48 THEN - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL - 10 * 64 + - COUNT( * )
----
-641

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - 10 * 64 + - COUNT ( * )
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - COUNT( * ) * 44 * - + 32
----
1408

skipif mysql # not compatible
query I rowsort label-9808
SELECT - COUNT ( * ) * 44 * - + 32
----
1408

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT DISTINCT 47 * 96, 7 * - COUNT( ALL + + 96 ) + + + 21 * - - ( - 65 ) * 79 AS col1
----
4512
-107842

skipif mysql # not compatible
query II rowsort label-9809
SELECT DISTINCT 47 * 96, 7 * - COUNT ( ALL + + 96 ) + + + 21 * - - ( - 65 ) * 79 AS col1
----
4512
-107842

query I rowsort
SELECT DISTINCT + 66 * + 98 + + 87
----
6555

query I rowsort
SELECT ALL 23 * + 18 * + - 64 col1
----
-26496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT + CASE + - ( - 62 ) WHEN - 91 THEN + COUNT( * ) WHEN + 30 THEN NULL WHEN - + CAST( 7 AS SIGNED ) + - 56 + - + COUNT( * ) + + 9 / - COUNT( * ) + - ( + 69 ) THEN NULL ELSE + 53 * - 74 * - 34 END
----
133348

skipif mysql # not compatible
query I rowsort label-9812
SELECT + CASE + - ( - 62 ) WHEN - 91 THEN + COUNT ( * ) WHEN + 30 THEN NULL WHEN - + CAST ( 7 AS INTEGER ) + - 56 + - + COUNT ( * ) + + 9 / - COUNT ( * ) + - ( + 69 ) THEN NULL ELSE + 53 * - 74 * - 34 END
----
133348

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + 33 * + - CASE + 6 WHEN - 57 THEN - - SUM( - 89 ) * ( 53 ) WHEN - 55 THEN - 89 ELSE + 51 * 9 END - - 8 + - 80 + - 58 + 4 * + 63 + 9 * + - 65 AS col0
----
-15610

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + 33 * + - CASE + 6 WHEN - 57 THEN - - SUM ( - 89 ) * ( 53 ) WHEN - 55 THEN - 89 ELSE + 51 * 9 END - - 8 + - 80 + - 58 + 4 * + 63 + 9 * + - 65 AS col0
----
-15610

query I rowsort
SELECT DISTINCT 52 * - 72
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT MAX( DISTINCT - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9815
SELECT MAX ( DISTINCT - 75 ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-9816
SELECT ALL - 11 - + - 36 + 64 DIV 53 AS col1, + ( - - 28 ) * + 63
----
26
1764

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL - 11 - + - 36 + 64 / 53 AS col1, + ( - - 28 ) * + 63
----
26
1764

query II rowsort
SELECT ALL 87 * + 77 AS col0, + 73
----
6699
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + MIN( ALL 18 ) + + - 94 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9818
SELECT + MIN ( ALL 18 ) + + - 94 AS col2
----
-76

query I rowsort
SELECT ALL 39 - ( + 73 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - MAX( + + 77 ) * - + COUNT( * ) * SUM( + COALESCE ( 9, 13 + 72 * - 74 ) ) * - 21 AS col2
----
-14553

skipif mysql # not compatible
query I rowsort label-9820
SELECT - MAX ( + + 77 ) * - + COUNT ( * ) * SUM ( + COALESCE ( 9, 13 + 72 * - 74 ) ) * - 21 AS col2
----
-14553

query I rowsort
SELECT + ( + 23 ) - NULLIF ( 21, - 40 )
----
2

query I rowsort
SELECT ALL CASE 72 WHEN - 71 * - 22 THEN 47 END
----
NULL

query I rowsort
SELECT ALL - 75 * + - 32 * 58
----
139200

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - COUNT( * ) * + 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9824
SELECT - COUNT ( * ) * + 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT + - COUNT( * ) * - ( 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + - COUNT ( * ) * - ( 4 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT DISTINCT 23 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT 23 / - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT - + 12 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9827
SELECT - + 12 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - - NULLIF ( - 75, + 63 * - 72 ) - + COUNT( * ) - + 30 + - - ( 52 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9828
SELECT - - NULLIF ( - 75, + 63 * - 72 ) - + COUNT ( * ) - + 30 + - - ( 52 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT + 73 * 44 AS col2
----
3212

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - - 35 * - - ( - COALESCE ( - + MAX( ALL - + 84 ), 74, + 74 * + ( 68 ) ) )
----
-2940

skipif mysql # not compatible
query I rowsort label-9830
SELECT - - 35 * - - ( - COALESCE ( - + MAX ( ALL - + 84 ), 74, + 74 * + ( 68 ) ) )
----
-2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT DISTINCT + 55 DIV 64 + - 66 * - COUNT( 42 ) + - 95 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT + 55 / 64 + - 66 * - COUNT ( 42 ) + - 95 AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT ALL - ( 63 ) DIV - - COUNT( * ) + - - 25 + 3 * 97 AS col1
----
253

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - ( 63 ) / - - COUNT ( * ) + - - 25 + 3 * 97 AS col1
----
253

query I rowsort
SELECT + - 88 col1
----
-88

query I rowsort
SELECT DISTINCT + - 66 col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT - COUNT( * ) + 53 + - - 91 + - NULLIF ( + 92, CAST( NULL AS SIGNED ) ) - NULLIF ( + - 19, - 42 ) + + 14 - - 34 * - 17 * - 26
----
15112

skipif mysql # not compatible
query I rowsort label-9835
SELECT - COUNT ( * ) + 53 + - - 91 + - NULLIF ( + 92, CAST ( NULL AS INTEGER ) ) - NULLIF ( + - 19, - 42 ) + + 14 - - 34 * - 17 * - 26
----
15112

query I rowsort
SELECT + 23 * - 40 AS col2
----
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT ALL + - 50 DIV - ( + - 73 ) + ( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + - 50 / - ( + - 73 ) + ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT COUNT( * ) * - COUNT( * ) - + 24
----
-25

skipif mysql # not compatible
query I rowsort label-9838
SELECT COUNT ( * ) * - COUNT ( * ) - + 24
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + ( - - MIN( + 49 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9839
SELECT + ( - - MIN ( + 49 ) ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT 42 * + COUNT( * ) - + - 2
----
44

skipif mysql # not compatible
query I rowsort label-9840
SELECT 42 * + COUNT ( * ) - + - 2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - COUNT( * ) * 20 - + 35 * + 82 - + + 6 AS col2
----
-2896

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - COUNT ( * ) * 20 - + 35 * + 82 - + + 6 AS col2
----
-2896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT + 88 + - ( + CAST( 49 AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 88 + - ( + CAST ( 49 AS INTEGER ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL + ( 5 ) * - COUNT( * ) - - 57 - - + 47 * ( 86 ) + 0 * + 7 - 85 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + ( 5 ) * - COUNT ( * ) - - 57 - - + 47 * ( 86 ) + 0 * + 7 - 85 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9844
SELECT ALL COUNT( * ) * - 73 - + 3 * CASE - CAST( NULL AS SIGNED ) WHEN - - CAST( NULL AS SIGNED ) DIV + - 43 + - + 71 - + 69 THEN NULL ELSE - COUNT( * ) DIV - + COALESCE ( + + 57, - - 0 ) END
----
-73

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( * ) * - 73 - + 3 * CASE - CAST ( NULL AS INTEGER ) WHEN - - CAST ( NULL AS INTEGER ) / + - 43 + - + 71 - + 69 THEN NULL ELSE - COUNT ( * ) / - + COALESCE ( + + 57, - - 0 ) END
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COUNT( * ) * + NULLIF ( + COUNT( * ), SUM( ALL - 70 ) * - 60 ) - - 50 + - 69
----
-18

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COUNT ( * ) * + NULLIF ( + COUNT ( * ), SUM ( ALL - 70 ) * - 60 ) - - 50 + - 69
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT NULLIF ( - CAST( NULL AS SIGNED ), 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), 96 )
----
NULL

query I rowsort
SELECT + ( + 72 ) + - 2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL 40 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL 40 / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT + NULLIF ( 62, - 86 + + - COUNT( * ) ) DIV - COUNT( 90 ) + + 27
----
-35

skipif mysql # not compatible
query I rowsort label-9849
SELECT + NULLIF ( 62, - 86 + + - COUNT ( * ) ) / - COUNT ( 90 ) + + 27
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL MIN( DISTINCT 71 ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL MIN ( DISTINCT 71 ) * COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + ( 44 ) + 39 + + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9851
SELECT + ( 44 ) + 39 + + COUNT ( * ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT ALL 4 DIV + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL 4 / + 5 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9853
SELECT ( - 27 ) DIV + 27 AS col2, - 14 + - 47 AS col1
----
-1
-61

skipif mysql # not compatible
query II rowsort label-9853
SELECT ( - 27 ) / + 27 AS col2, - 14 + - 47 AS col1
----
-1
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT SUM( DISTINCT + 38 ) + - + SUM( ALL - 59 ) + - - 49 + - + 80 DIV - 39
----
148

skipif mysql # not compatible
query I rowsort label-9854
SELECT SUM ( DISTINCT + 38 ) + - + SUM ( ALL - 59 ) + - - 49 + - + 80 / - 39
----
148

query II rowsort
SELECT ALL 46 col0, 62 * 11
----
46
682

query I rowsort
SELECT ALL 97 * 51
----
4947

query II rowsort
SELECT ALL - 34 AS col1, + 22
----
-34
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT 65 + + 65 + 77 + - + NULLIF ( 20, + + 4 ) + - 77 DIV 56 * - 16 + - + 62 * + 73 * + + 32 AS col1
----
-144629

skipif mysql # not compatible
query I rowsort label-9858
SELECT 65 + + 65 + 77 + - + NULLIF ( 20, + + 4 ) + - 77 / 56 * - 16 + - + 62 * + 73 * + + 32 AS col1
----
-144629

query I rowsort
SELECT 54 * + + 84
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT DISTINCT - NULLIF ( + - 16, + ( - CAST( NULL AS SIGNED ) ) ) + - 5 + - 94 + - ( 84 ) * 13 AS col2
----
-1175

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - NULLIF ( + - 16, + ( - CAST ( NULL AS INTEGER ) ) ) + - 5 + - 94 + - ( 84 ) * 13 AS col2
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT - COALESCE ( - - COUNT( * ), + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9861
SELECT - COALESCE ( - - COUNT ( * ), + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + ( - + 54 ) + + ( 71 ) + + 45 + + ( + 75 ) * + - ( - + SUM( ALL - 34 ) ) * - 45 + + 4 + + 5 * - 31 AS col2
----
114661

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + ( - + 54 ) + + ( 71 ) + + 45 + + ( + 75 ) * + - ( - + SUM ( ALL - 34 ) ) * - 45 + + 4 + + 5 * - 31 AS col2
----
114661

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT 34 + COALESCE ( + 59, 64 * - + 39 - + COUNT( * ) ) * + + 65
----
3869

skipif mysql # not compatible
query I rowsort label-9863
SELECT 34 + COALESCE ( + 59, 64 * - + 39 - + COUNT ( * ) ) * + + 65
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT COUNT( * ) + + 34
----
35

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT COUNT ( * ) + + 34
----
35

query I rowsort
SELECT 80 + + + 32 AS col0
----
112

query I rowsort
SELECT DISTINCT - + 42 + - + 77 * + 56 + 61
----
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + 45 * - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + 45 * - - COUNT ( * )
----
45

query I rowsort
SELECT ( + + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT - 15 - 17 * - 30 * + COUNT( * ) * + + MAX( 55 ) AS col1, 90
----
28035
90

skipif mysql # not compatible
query II rowsort label-9869
SELECT - 15 - 17 * - 30 * + COUNT ( * ) * + + MAX ( 55 ) AS col1, 90
----
28035
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT 3 + - - 74 + - 42 * - 63 - ( 94 ) + + 18 + + CASE - 44 WHEN - NULLIF ( + + 20, - MAX( + 34 ) + - 84 + - - CAST( NULL AS SIGNED ) * + 60 ) + + - COUNT( * ) * 76 THEN - - 41 WHEN - - COUNT( * ) THEN NULL WHEN + NULLIF ( + 64, - + 84 ) * + 62 * 12 / 62 * - 4 + - 48 * + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT 3 + - - 74 + - 42 * - 63 - ( 94 ) + + 18 + + CASE - 44 WHEN - NULLIF ( + + 20, - MAX ( + 34 ) + - 84 + - - CAST ( NULL AS INTEGER ) * + 60 ) + + - COUNT ( * ) * 76 THEN - - 41 WHEN - - COUNT ( * ) THEN NULL WHEN + NULLIF ( + 64, - + 84 ) * + 62 * 12 / 62 * - 4 + - 48 * + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT DISTINCT - COUNT( * ) + + 12 + 68 DIV - 23
----
9

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - COUNT ( * ) + + 12 + 68 / - 23
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL + + CASE + 6 WHEN + COUNT( * ) THEN - COUNT( * ) * 0 * - - 45 WHEN 31 * + 47 + 58 THEN + 11 * + + 0 / 96 + - 50 END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + + CASE + 6 WHEN + COUNT ( * ) THEN - COUNT ( * ) * 0 * - - 45 WHEN 31 * + 47 + 58 THEN + 11 * + + 0 / 96 + - 50 END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + CASE - - 6 WHEN - 92 THEN 54 WHEN ( COUNT( * ) ) * 43 THEN NULL ELSE - - 37 END * - 65 - 7
----
-2412

skipif mysql # not compatible
query I rowsort label-9873
SELECT + CASE - - 6 WHEN - 92 THEN 54 WHEN ( COUNT ( * ) ) * 43 THEN NULL ELSE - - 37 END * - 65 - 7
----
-2412

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT ALL - 83 DIV + ( + 32 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - 83 / + ( + 32 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT 46 * + + COALESCE ( - 87, - - 85 - + - ( + NULLIF ( 46, - 79 ) ), - 20 * + ( COUNT( * ) ) ) + + + 32
----
-3970

skipif mysql # not compatible
query I rowsort label-9875
SELECT 46 * + + COALESCE ( - 87, - - 85 - + - ( + NULLIF ( 46, - 79 ) ), - 20 * + ( COUNT ( * ) ) ) + + + 32
----
-3970

query I rowsort
SELECT ALL 18 - + - 17
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9877
SELECT + 56 col0, + CASE - + ( 38 ) WHEN - 68 * + 18 THEN + CAST( - 61 AS SIGNED ) WHEN 99 THEN - ( + 6 ) ELSE - + COALESCE ( + + 49, 94, - 14, + + 51 * + - COUNT( * ) ) - - + 23 + + COUNT( * ) DIV - 50 END * + + 38 + - 71 col0
----
56
-1059

skipif mysql # not compatible
query II rowsort label-9877
SELECT + 56 col0, + CASE - + ( 38 ) WHEN - 68 * + 18 THEN + CAST ( - 61 AS INTEGER ) WHEN 99 THEN - ( + 6 ) ELSE - + COALESCE ( + + 49, 94, - 14, + + 51 * + - COUNT ( * ) ) - - + 23 + + COUNT ( * ) / - 50 END * + + 38 + - 71 col0
----
56
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + 10 - - - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 10 - - - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT 59 * - COALESCE ( - 89, 46 )
----
5251

query II rowsort
SELECT 30, 64 AS col1
----
30
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT ALL - 97 AS col2, + 48 + - - CASE + 30 WHEN 33 THEN 36 + + COUNT( * ) * + - ( + 48 ) END
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL - 97 AS col2, + 48 + - - CASE + 30 WHEN 33 THEN 36 + + COUNT ( * ) * + - ( + 48 ) END
----
-97
NULL

query I rowsort
SELECT 68 + + 41
----
109

query I rowsort
SELECT ALL - NULLIF ( - - 57, + 27 + - 36 * + + 54 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9884
SELECT MIN( + + 73 ) + + 82 DIV - 90 + + + 36 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9884
SELECT MIN ( + + 73 ) + + 82 / - 90 + + + 36 AS col0
----
109

query I rowsort
SELECT 49 * + 86 * + - 52
----
-219128

query II rowsort
SELECT 59 AS col0, + 89
----
59
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9887
SELECT 29 AS col1, NULLIF ( - 0, + CAST( NULL AS SIGNED ) + - 71 * + ( - 68 ) - - 59 * 89 ) col0
----
29
0

skipif mysql # not compatible
query II rowsort label-9887
SELECT 29 AS col1, NULLIF ( - 0, + CAST ( NULL AS INTEGER ) + - 71 * + ( - 68 ) - - 59 * 89 ) col0
----
29
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT ALL - 42 AS col0, COUNT( * ) AS col2
----
-42
1

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL - 42 AS col0, COUNT ( * ) AS col2
----
-42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + 94 * + COUNT( ALL + 5 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + 94 * + COUNT ( ALL + 5 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT SUM( + 96 ) * - ( + 17 ) + 47 + + 84 * + - 51
----
-5869

skipif mysql # not compatible
query I rowsort label-9890
SELECT SUM ( + 96 ) * - ( + 17 ) + 47 + + 84 * + - 51
----
-5869

onlyif mysql # aggregate syntax: 
query II rowsort label-9891
SELECT ALL - 58 AS col0, COUNT( * ) * + 32
----
-58
32

skipif mysql # not compatible
query II rowsort label-9891
SELECT ALL - 58 AS col0, COUNT ( * ) * + 32
----
-58
32

query I rowsort
SELECT ALL - 21 + - - 42
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT 67 - - CASE - + 23 WHEN - COUNT( * ) THEN - 38 END + - + 19 * 32 * - + COALESCE ( - 87, + + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT 67 - - CASE - + 23 WHEN - COUNT ( * ) THEN - 38 END + - + 19 * 32 * - + COALESCE ( - 87, + + 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT MAX( DISTINCT - + 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9894
SELECT MAX ( DISTINCT - + 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - - COUNT( ALL ( + 12 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9895
SELECT - - COUNT ( ALL ( + 12 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9896
SELECT + 62 + 62 DIV + - CAST( + MIN( - NULLIF ( + 15, + 63 * - NULLIF ( + 78, + + 21 + - 67 ) ) ) AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 62 + 62 / + - CAST ( + MIN ( - NULLIF ( + 15, + 63 * - NULLIF ( + 78, + + 21 + - 67 ) ) ) AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL + COUNT( * ) + - + MIN( - 40 )
----
41

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + COUNT ( * ) + - + MIN ( - 40 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT + 87 + + - 9 DIV 2
----
83

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + 87 + + - 9 / 2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT ALL MAX( ( + + 60 ) ) * + - COALESCE ( - 4, 7 ) - + 38 AS col0, + COUNT( * ) * - - 86
----
202
86

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL MAX ( ( + + 60 ) ) * + - COALESCE ( - 4, 7 ) - + 38 AS col0, + COUNT ( * ) * - - 86
----
202
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9900
SELECT ALL + 54 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + 54 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - 96 * - + 8 + - ( ( + ( - + SUM( DISTINCT 35 ) ) ) )
----
803

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - 96 * - + 8 + - ( ( + ( - + SUM ( DISTINCT 35 ) ) ) )
----
803

query I rowsort
SELECT DISTINCT + 21 * + 20 * - 36 + - 58 col2
----
-15178

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT SUM( ALL - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT SUM ( ALL - - 19 )
----
19

query II rowsort
SELECT ALL 30 + - 62 AS col2, 35 AS col0
----
-32
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT 97 + COUNT( * ) DIV - 63 * - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9905
SELECT 97 + COUNT ( * ) / - 63 * - COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT NULLIF ( + COUNT( * ), + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT NULLIF ( + COUNT ( * ), + 88 )
----
1

query II rowsort
SELECT 70 AS col2, 22 AS col0
----
70
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL CASE - 36 WHEN - - 45 THEN + - 25 / - + 75 + + + MIN( DISTINCT - 94 ) - + 74 * - 67 * 93 / + 17 * + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 30 WHEN - 69 THEN + - 20 / + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL CASE - 36 WHEN - - 45 THEN + - 25 / - + 75 + + + MIN ( DISTINCT - 94 ) - + 74 * - 67 * 93 / + 17 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 30 WHEN - 69 THEN + - 20 / + 47 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT - CAST( 68 AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9909
SELECT - CAST ( 68 AS INTEGER ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT - CASE COALESCE ( + 13, 68 * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - + 76 + + 70 * + 96 * + COUNT( * ) ) WHEN - 86 + + - ( + + 10 ) + 87 + - - 14 * + 32 * + 4 THEN NULL ELSE + - 10 END AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9910
SELECT - CASE COALESCE ( + 13, 68 * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - + 76 + + 70 * + 96 * + COUNT ( * ) ) WHEN - 86 + + - ( + + 10 ) + 87 + - - 14 * + 32 * + 4 THEN NULL ELSE + - 10 END AS col0
----
10

query I rowsort
SELECT DISTINCT 14 - + 8 AS col0
----
6

query II rowsort
SELECT ALL 28 AS col1, - 14 * + 49 * 33
----
28
-22638

query II rowsort
SELECT 26, 3 AS col1
----
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT - + COUNT( * ) - - 79 * + 12 AS col1
----
947

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT - + COUNT ( * ) - - 79 * + 12 AS col1
----
947

query I rowsort
SELECT ALL - 79 * - + 79
----
6241

query I rowsort
SELECT DISTINCT - 70 * - 6 col2
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9917
SELECT DISTINCT 29 * - + 66 AS col0, 82 / CAST( NULL AS SIGNED ) / - - 34 + + - 5
----
-1914
NULL

skipif mysql # not compatible
query II rowsort label-9917
SELECT DISTINCT 29 * - + 66 AS col0, 82 / CAST ( NULL AS INTEGER ) / - - 34 + + - 5
----
-1914
NULL

query I rowsort
SELECT 72 * - ( + 8 )
----
-576

query I rowsort
SELECT 42 + - + ( + 66 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL 64 * + 85 / + + 60 * - - 28 * - CASE 27 WHEN COUNT( * ) THEN - 72 * 64 + + + CASE - 87 WHEN - ( - + ( - 46 ) ) * - COUNT( * ) THEN - - 24 WHEN MIN( + - 11 ) * + 33 * - 76 + - 20 THEN NULL END / 50 + - 71 END * 42 / + COALESCE ( - 31, 47, - - COUNT( * ) ) * - 40 + + COUNT( * ) + + - 22 * 74 * - 19 / + - 20 - + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL 64 * + 85 / + + 60 * - - 28 * - CASE 27 WHEN COUNT ( * ) THEN - 72 * 64 + + + CASE - 87 WHEN - ( - + ( - 46 ) ) * - COUNT ( * ) THEN - - 24 WHEN MIN ( + - 11 ) * + 33 * - 76 + - 20 THEN NULL END / 50 + - 71 END * 42 / + COALESCE ( - 31, 47, - - COUNT ( * ) ) * - 40 + + COUNT ( * ) + + - 22 * 74 * - 19 / + - 20 - + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + 75 * + - 69 * - + COUNT( * ) + + 60 * - 66 + + + 99 + + 21 + + 59 * + 95
----
6940

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 75 * + - 69 * - + COUNT ( * ) + + 60 * - 66 + + + 99 + + 21 + + 59 * + 95
----
6940

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + COUNT( * ) * + - 24 * 30 - - 58
----
-662

skipif mysql # not compatible
query I rowsort label-9922
SELECT + COUNT ( * ) * + - 24 * 30 - - 58
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 97 * SUM( DISTINCT - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT 97 * SUM ( DISTINCT - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT 16 * + COUNT( * ) + + 10 DIV + 99 * 43
----
16

skipif mysql # not compatible
query I rowsort label-9924
SELECT 16 * + COUNT ( * ) + + 10 / + 99 * 43
----
16

query I rowsort
SELECT ALL 28 * - - 77 AS col0
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT - CAST( 76 AS SIGNED ) * - 81 - + COUNT( * )
----
6155

skipif mysql # not compatible
query I rowsort label-9926
SELECT - CAST ( 76 AS INTEGER ) * - 81 - + COUNT ( * )
----
6155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT + ( - + 91 ) + + 52 - - CAST( NULL AS SIGNED ) * + ( + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + ( - + 91 ) + + 52 - - CAST ( NULL AS INTEGER ) * + ( + 99 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT 53 * + - 3 - - - COUNT( * ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-9928
SELECT 53 * + - 3 - - - COUNT ( * ) AS col2
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT - CAST( NULL AS SIGNED ) * 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT - CAST ( NULL AS INTEGER ) * 33 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT ALL + + 0 + + CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + + 0 + + CAST ( - 45 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT ALL - 94 + 56 + + + 80 AS col0
----
42

query I rowsort
SELECT - COALESCE ( - + 42, 92 ) + ( - 56 ) + 93 * - + 24
----
-2246

query II rowsort
SELECT ALL - 3 + + + 68 AS col0, 34
----
65
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - + NULLIF ( - - ( - 8 ), + NULLIF ( + COUNT( * ), ( - + 70 ) * - 98 + + 42 ) ) * + COUNT( * ) * - + 1 + 64 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9934
SELECT - + NULLIF ( - - ( - 8 ), + NULLIF ( + COUNT ( * ), ( - + 70 ) * - 98 + + 42 ) ) * + COUNT ( * ) * - + 1 + 64 AS col2
----
56

query I rowsort
SELECT + + 23 * + 16 * 48 + 73 AS col1
----
17737

query I rowsort
SELECT DISTINCT - 1 - ( + 7 ) AS col2
----
-8

query I rowsort
SELECT + + 73 + + - 37
----
36

query II rowsort
SELECT + 89 * - + 31 AS col0, 9
----
-2759
9

query I rowsort
SELECT ALL 59 * + - 60 col0
----
-3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL 86 * CAST( + 78 AS SIGNED ) col1
----
6708

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL 86 * CAST ( + 78 AS INTEGER ) col1
----
6708

query I rowsort
SELECT + - 96 + - 53 AS col1
----
-149

query I rowsort
SELECT ALL - + 4 * - - 22 + - 96
----
-184

query I rowsort
SELECT ALL + 27 * 80
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT + + COUNT( * ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-9944
SELECT + + COUNT ( * ) * 99
----
99

query I rowsort
SELECT + 82 + 15 - + 10 AS col1
----
87

query I rowsort
SELECT DISTINCT 88 * + 91 AS col1
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - MIN( ALL - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9947
SELECT - MIN ( ALL - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT + CASE + - COALESCE ( - - 63, + 11 * 68 ) WHEN - CASE - 0 WHEN COUNT( * ) THEN - COALESCE ( 58, + 85, + + COUNT( * ) ) END + + 68 + + MAX( CAST( NULL AS SIGNED ) ) + - + 70 / CAST( - COUNT( ALL - ( 98 ) ) AS SIGNED ) * - 64 - - COUNT( * ) + + 36 / + MIN( 53 ) * + 38 - + 65 * + COUNT( * ) THEN 94 ELSE NULL END + + 40 + 49 + - 9 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT + CASE + - COALESCE ( - - 63, + 11 * 68 ) WHEN - CASE - 0 WHEN COUNT ( * ) THEN - COALESCE ( 58, + 85, + + COUNT ( * ) ) END + + 68 + + MAX ( CAST ( NULL AS INTEGER ) ) + - + 70 / CAST ( - COUNT ( ALL - ( 98 ) ) AS INTEGER ) * - 64 - - COUNT ( * ) + + 36 / + MIN ( 53 ) * + 38 - + 65 * + COUNT ( * ) THEN 94 ELSE NULL END + + 40 + 49 + - 9 * - 18
----
NULL

query I rowsort
SELECT + 29 * - 63 AS col0
----
-1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9950
SELECT COUNT( * ) DIV COUNT( * ) + - 27 * - CAST( + + 58 AS SIGNED )
----
1567

skipif mysql # not compatible
query I rowsort label-9950
SELECT COUNT ( * ) / COUNT ( * ) + - 27 * - CAST ( + + 58 AS INTEGER )
----
1567

query I rowsort
SELECT ( 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9952
SELECT + ( CAST( NULL AS SIGNED ) ) + + 61 AS col0, + 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9952
SELECT + ( CAST ( NULL AS INTEGER ) ) + + 61 AS col0, + 80
----
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9953
SELECT + COALESCE ( - 40, 52, - COUNT( * ) * + 92 * CAST( + CAST( - MIN( DISTINCT 85 ) AS DECIMAL ) AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-9953
SELECT + COALESCE ( - 40, 52, - COUNT ( * ) * + 92 * CAST ( + CAST ( - MIN ( DISTINCT 85 ) AS REAL ) AS INTEGER ) )
----
-40

query I rowsort
SELECT + 99 * NULLIF ( - 84, - 47 + + 56 ) * + - 35 + 83 AS col1
----
291143

query I rowsort
SELECT ALL 11 * - 8 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT + ( COALESCE ( - + 18, - 47 DIV - 38 + - 74 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9956
SELECT + ( COALESCE ( - + 18, - 47 / - 38 + - 74 ) ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT ALL - 30 * - COUNT( * ) * - 90 AS col1, + 32 + + 6 AS col2
----
-2700
38

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL - 30 * - COUNT ( * ) * - 90 AS col1, + 32 + + 6 AS col2
----
-2700
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT + COUNT( DISTINCT + + 2 ) DIV + COUNT( ALL - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT + COUNT ( DISTINCT + + 2 ) / + COUNT ( ALL - 4 )
----
1

query I rowsort
SELECT ALL 75 * 20 AS col0
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9960
SELECT + CASE + COUNT( * ) WHEN - 97 THEN NULL WHEN - 69 THEN - - CAST( - + 81 AS SIGNED ) * + 86 WHEN - - 70 + 18 THEN - 7 * CASE NULLIF ( + 98, + COUNT( * ) / + 25 + - 27 + + 36 + + - 29 / - + 18 - - - 52 * - 92 + + + 66 - AVG ( ALL + - 97 ) ) WHEN + - CAST( NULL AS DECIMAL ) THEN NULL WHEN - + COUNT( * ) THEN + COALESCE ( + + CAST( NULL AS SIGNED ), - 57 * NULLIF ( + 73, + + COUNT( * ) * + 75 + - - 87 ) * + - SUM( + NULLIF ( - 59, + 88 * + 89 - - NULLIF ( + 80, - CAST( 23 AS SIGNED ) + 55 * CAST( 66 AS SIGNED ) ) + + 88 * + 96 ) ) + COUNT( * ) + - COUNT( * ) ) + 22 / - 51 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT + CASE + COUNT ( * ) WHEN - 97 THEN NULL WHEN - 69 THEN - - CAST ( - + 81 AS INTEGER ) * + 86 WHEN - - 70 + 18 THEN - 7 * CASE NULLIF ( + 98, + COUNT ( * ) / + 25 + - 27 + + 36 + + - 29 / - + 18 - - - 52 * - 92 + + + 66 - AVG ( ALL + - 97 ) ) WHEN + - CAST ( NULL AS REAL ) THEN NULL WHEN - + COUNT ( * ) THEN + COALESCE ( + + CAST ( NULL AS INTEGER ), - 57 * NULLIF ( + 73, + + COUNT ( * ) * + 75 + - - 87 ) * + - SUM ( + NULLIF ( - 59, + 88 * + 89 - - NULLIF ( + 80, - CAST ( 23 AS INTEGER ) + 55 * CAST ( 66 AS INTEGER ) ) + + 88 * + 96 ) ) + COUNT ( * ) + - COUNT ( * ) ) + 22 / - 51 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT ALL 10 * MIN( DISTINCT + 41 ) DIV + NULLIF ( + + NULLIF ( + 92, + COUNT( * ) ), - SUM( DISTINCT - COALESCE ( + 3, 76, + 31 + - 67 ) ) * + + 67 DIV 4 * - + 74 + + 28 * - 26 + - - NULLIF ( + - 75, 0 * + - NULLIF ( 55, - 32 * 43 + 67 ) ) ) - + 54
----
-50

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 10 * MIN ( DISTINCT + 41 ) / + NULLIF ( + + NULLIF ( + 92, + COUNT ( * ) ), - SUM ( DISTINCT - COALESCE ( + 3, 76, + 31 + - 67 ) ) * + + 67 / 4 * - + 74 + + 28 * - 26 + - - NULLIF ( + - 75, 0 * + - NULLIF ( 55, - 32 * 43 + 67 ) ) ) - + 54
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 58 * - MIN( - 72 ) + 6
----
4182

skipif mysql # not compatible
query I rowsort label-9962
SELECT 58 * - MIN ( - 72 ) + 6
----
4182

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + COUNT( * ) * - 59 * - 82
----
4838

skipif mysql # not compatible
query I rowsort label-9963
SELECT + COUNT ( * ) * - 59 * - 82
----
4838

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - 49 * - + 11 + - ( - COUNT( * ) ) AS col1
----
540

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - 49 * - + 11 + - ( - COUNT ( * ) ) AS col1
----
540

query I rowsort
SELECT CASE + - 24 WHEN + COALESCE ( + 58, + 93 ) * + + 55 THEN + - 36 * + + 51 ELSE - 6 END
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL + MIN( - + 3 ) * + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + MIN ( - + 3 ) * + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT ( - - ( - - COUNT( * ) ) ) * + 97 * 95
----
9215

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT ( - - ( - - COUNT ( * ) ) ) * + 97 * 95
----
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT - - 18 DIV + 93 * - - 10 * + 44
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT - - 18 / + 93 * - - 10 * + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + COALESCE ( - 15, 86, + 56 * - ( - COUNT( * ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9969
SELECT + COALESCE ( - 15, 86, + 56 * - ( - COUNT ( * ) ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT + + COUNT( * ), + 99 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-9970
SELECT + + COUNT ( * ), + 99 AS col0
----
1
99

query I rowsort
SELECT ALL + - 4 * 56 + 69
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT + 74 * - + MIN( DISTINCT - - 17 ) AS col1
----
-1258

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + 74 * - + MIN ( DISTINCT - - 17 ) AS col1
----
-1258

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT COUNT( * ) col1, - ( + + COUNT( * ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-9973
SELECT COUNT ( * ) col1, - ( + + COUNT ( * ) ) AS col1
----
1
-1

query I rowsort
SELECT - 51 * + 85 - 48 * 81 * - 15 col1
----
53985

query I rowsort
SELECT - 60 + - 40 AS col2
----
-100

query II rowsort
SELECT 37 AS col2, 63 + + 56
----
37
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL MIN( - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL MIN ( - 47 ) AS col2
----
-47

query I rowsort
SELECT - 17 - + - 27 + + 13 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL - COUNT( * ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - COUNT ( * ) * - 3
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT DISTINCT + 62 AS col2, 38 * - 54 * ( + COUNT( * ) )
----
62
-2052

skipif mysql # not compatible
query II rowsort label-9980
SELECT DISTINCT + 62 AS col2, 38 * - 54 * ( + COUNT ( * ) )
----
62
-2052

query I rowsort
SELECT - + 50 * + 94 + 80
----
-4620

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT COUNT( * ) AS col1, + 82
----
1
82

skipif mysql # not compatible
query II rowsort label-9982
SELECT COUNT ( * ) AS col1, + 82
----
1
82

query I rowsort
SELECT - ( - - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + COUNT( * ) - - 41
----
42

skipif mysql # not compatible
query I rowsort label-9984
SELECT + COUNT ( * ) - - 41
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT - 29 DIV + 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 29 / + 42 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT ALL + 61 DIV + - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 61 / + - 48 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 7 + - + 24 + 63
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT + 10 )
----
1

query I rowsort
SELECT ALL 70 * + 88 AS col0
----
6160

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT ALL - 89 + 56 DIV + - 76 + + 47 * - - 14 * - - 86
----
56499

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - 89 + 56 / + - 76 + + 47 * - - 14 * - - 86
----
56499

query I rowsort
SELECT ALL 34 * - - 83 * - 13
----
-36686

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT COUNT( * ) * 98 + 22
----
120

skipif mysql # not compatible
query I rowsort label-9992
SELECT COUNT ( * ) * 98 + 22
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT + 28 * 14 + - 29 - + 28 + + 33 + + 76 * - 12 * - + 56 * - CAST( + COALESCE ( + SUM( ALL 50 ), - + NULLIF ( + 42, - + 66 ) * 57, + + CAST( 16 AS SIGNED ), + + 1, - 28 ) AS SIGNED ) AS col1
----
-2553232

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 28 * 14 + - 29 - + 28 + + 33 + + 76 * - 12 * - + 56 * - CAST ( + COALESCE ( + SUM ( ALL 50 ), - + NULLIF ( + 42, - + 66 ) * 57, + + CAST ( 16 AS INTEGER ), + + 1, - 28 ) AS INTEGER ) AS col1
----
-2553232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9994
SELECT ALL COALESCE ( - 27, - 85, - - 66 ) + - CASE - 89 WHEN - + COUNT( * ) THEN + + ( + - 17 ) + + 36 + - - 24 DIV 80 ELSE + 48 END + + 49 + - + ( 93 ) + - 12 * - 81 * 65 AS col0
----
63061

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COALESCE ( - 27, - 85, - - 66 ) + - CASE - 89 WHEN - + COUNT ( * ) THEN + + ( + - 17 ) + + 36 + - - 24 / 80 ELSE + 48 END + + 49 + - + ( 93 ) + - 12 * - 81 * 65 AS col0
----
63061

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 66 * - 62 + + COUNT( * )
----
-4091

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 66 * - 62 + + COUNT ( * )
----
-4091

query I rowsort
SELECT ALL 3 + - 14
----
-11

query I rowsort
SELECT ( 67 ) + - 3 AS col2
----
64

query I rowsort
SELECT ALL - 78 * - 77 + 89 + + 44 * COALESCE ( ( + ( - + 77 ) ), 30 ) AS col2
----
2707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9999
SELECT - + 27 * 0 + NULLIF ( - + ( - 72 ), + 32 * CASE - + ( - - 56 ) WHEN + + 25 + + 98 + + 28 * + 64 + - AVG ( ( - 14 ) ) + - + MAX( DISTINCT - + 76 ) + COALESCE ( + 23, 35 * - - 71 + 74, + + CAST( - 11 AS SIGNED ) + - 49 ) THEN NULL WHEN + 87 THEN + 30 / - CASE + 81 WHEN - 92 THEN - - 48 + - 20 WHEN - - 0 THEN NULL END - + 36 ELSE - COUNT( * ) END * + + 71 + + + 57 + + - CAST( NULL AS SIGNED ) * + ( - ( 62 ) ) + + 71 + - 44 - + COUNT( * ) * 43 )
----
72

skipif mysql # not compatible
query I rowsort label-9999
SELECT - + 27 * 0 + NULLIF ( - + ( - 72 ), + 32 * CASE - + ( - - 56 ) WHEN + + 25 + + 98 + + 28 * + 64 + - AVG ( ( - 14 ) ) + - + MAX ( DISTINCT - + 76 ) + COALESCE ( + 23, 35 * - - 71 + 74, + + CAST ( - 11 AS INTEGER ) + - 49 ) THEN NULL WHEN + 87 THEN + 30 / - CASE + 81 WHEN - 92 THEN - - 48 + - 20 WHEN - - 0 THEN NULL END - + 36 ELSE - COUNT ( * ) END * + + 71 + + + 57 + + - CAST ( NULL AS INTEGER ) * + ( - ( 62 ) ) + + 71 + - 44 - + COUNT ( * ) * 43 )
----
72

