sqllogictest
Artifact Content
Not logged in

Artifact ea3e25eb621c973649174fda628ce57ff323a3fa:


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 + COU