sqllogictest
Artifact Content
Not logged in

Artifact 7cf4ab96ab324430be0e507df55ebfff55a08abd:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + ( + ( + 16 ) ) + + 2 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT ALL - - MAX( - 87 ) + + 66 DIV + 55
----
-86

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - - MAX ( - 87 ) + + 66 / + 55
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT + 23 * 29 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + 23 * 29 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL + - ( 1 ) * 65 + - 8 + - 8 * + 47 + 63 * + + MIN( + - 68 )
----
-4733

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + - ( 1 ) * 65 + - 8 + - 8 * + 47 + 63 * + + MIN ( + - 68 )
----
-4733

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT + MIN( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-484
SELECT + MIN ( 94 ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL + 99 DIV 65 DIV + 69 + - 6 - - 8 col0
----
2

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + 99 / 65 / + 69 + - 6 - - 8 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT DISTINCT + CASE + - 30 WHEN COUNT( * ) + COUNT( * ) * CASE CAST( NULL AS SIGNED ) WHEN + 12 THEN ( - - 84 ) WHEN + 65 + COUNT( * ) THEN NULL ELSE - 4 * 10 END * - - 45 * - 74 * 59 THEN NULL WHEN - MAX( - - 34 ) THEN NULL ELSE - ( - COALESCE ( + SUM( + - 51 ), - - COUNT( - 78 ) + - 69 ) ) * 56 + 53 END * ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT + CASE + - 30 WHEN COUNT ( * ) + COUNT ( * ) * CASE CAST ( NULL AS INTEGER ) WHEN + 12 THEN ( - - 84 ) WHEN + 65 + COUNT ( * ) THEN NULL ELSE - 4 * 10 END * - - 45 * - 74 * 59 THEN NULL WHEN - MAX ( - - 34 ) THEN NULL ELSE - ( - COALESCE ( + SUM ( + - 51 ), - - COUNT ( - 78 ) + - 69 ) ) * 56 + 53 END * ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - + 39 * + + 60 * 40 + SUM( + 2 ) AS col0
----
-93598

skipif mysql # not compatible
query I rowsort label-487
SELECT - + 39 * + + 60 * 40 + SUM ( + 2 ) AS col0
----
-93598

query I rowsort
SELECT ALL + 34 * - 6 AS col0
----
-204

query I rowsort
SELECT + - ( + - 72 ) AS col0
----
72

query I rowsort
SELECT - - 79 * - + 59 - 71
----
-4732

query I rowsort
SELECT - 95 * + + 77 + 96 AS col1
----
-7219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT + 74 * - 72 + - - CAST( NULL AS SIGNED ) / 14 * - ( - 9 ) + + + 41 + - + NULLIF ( 48, - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT + 74 * - 72 + - - CAST ( NULL AS INTEGER ) / 14 * - ( - 9 ) + + + 41 + - + NULLIF ( 48, - 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT - COUNT( * ) - CAST( NULL AS SIGNED ) - - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER ) - - - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL 9 * - 84 + 88 + 29 + - COUNT( + 7 ) * 28 AS col0
----
-667

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL 9 * - 84 + 88 + 29 + - COUNT ( + 7 ) * 28 AS col0
----
-667

query I rowsort
SELECT DISTINCT + - 40 * - 12
----
480

query I rowsort
SELECT ALL + NULLIF ( 63, - 73 * 39 + - + 93 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - MIN( DISTINCT + 10 ) * + 84 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-497
SELECT - MIN ( DISTINCT + 10 ) * + 84 AS col0
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT 49 * - - 17 + - NULLIF ( + 16, + 23 + ( - 80 ) * - 75 + - + CAST( NULL AS SIGNED ) ) AS col0
----
817

skipif mysql # not compatible
query I rowsort label-498
SELECT 49 * - - 17 + - NULLIF ( + 16, + 23 + ( - 80 ) * - 75 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
817

query I rowsort
SELECT COALESCE ( 68, + - 30 ) AS col2
----
68

query I rowsort
SELECT NULLIF ( 69, 78 * 67 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT NULLIF ( CASE + 62 WHEN 56 * + CAST( NULL AS SIGNED ) * - ( - - 35 ) - 20 + + CAST( NULL AS SIGNED ) THEN + COUNT( * ) END, + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT NULLIF ( CASE + 62 WHEN 56 * + CAST ( NULL AS INTEGER ) * - ( - - 35 ) - 20 + + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END, + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT DISTINCT SUM( ALL - 93 ) * ( 34 ), + 77 - + - 2 AS col0
----
-3162
79

skipif mysql # not compatible
query II rowsort label-502
SELECT DISTINCT SUM ( ALL - 93 ) * ( 34 ), + 77 - + - 2 AS col0
----
-3162
79

query I rowsort
SELECT ALL + 96 * 18
----
1728

query I rowsort
SELECT DISTINCT ( - 83 ) + + 22 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT + MAX( 71 ) + + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + MAX ( 71 ) + + 30 AS col0
----
101

query I rowsort
SELECT DISTINCT 24 + + 83
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL CAST( - 79 AS SIGNED ) + - ( 26 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL CAST ( - 79 AS INTEGER ) + - ( 26 ) AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT COALESCE ( COUNT( 67 ), 33 * - NULLIF ( + 22, + 4 * + CASE COUNT( * ) WHEN - 23 THEN + 42 END * MAX( - CAST( NULL AS SIGNED ) ) ) + - 14 * + 89, + 25 * + 83 + + - 73 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT COALESCE ( COUNT ( 67 ), 33 * - NULLIF ( + 22, + 4 * + CASE COUNT ( * ) WHEN - 23 THEN + 42 END * MAX ( - CAST ( NULL AS INTEGER ) ) ) + - 14 * + 89, + 25 * + 83 + + - 73 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT SUM( 37 ) + - 89 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT SUM ( 37 ) + - 89 AS col0
----
-52

query I rowsort
SELECT ALL 10 + + + 74
----
84

query I rowsort
SELECT - 80 - - ( + + ( + 69 ) ) col2
----
-11

query I rowsort
SELECT 39 - - ( 88 ) AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-513
SELECT ALL MAX( + 73 ) AS col1, CASE - - 82 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN 46 THEN + 19 + COALESCE ( - - 71, 90 ) ELSE NULL END AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL MAX ( + 73 ) AS col1, CASE - - 82 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN 46 THEN + 19 + COALESCE ( - - 71, 90 ) ELSE NULL END AS col2
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT - 87 + + 57 + + SUM( 16 ) * - 66 AS col2
----
-1086

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - 87 + + 57 + + SUM ( 16 ) * - 66 AS col2
----
-1086

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - COUNT( * ) * - CASE + 50 WHEN - COUNT( * ) / AVG ( DISTINCT + 2 ) * + 28 * + + 80 THEN - - 23 * - 16 * + 30 - - MIN( ALL + 24 ) + 73 + + 27 * + - 19 * CASE - COUNT( * ) WHEN + 41 - - ( - - 8 ) THEN - 23 END ELSE - + 72 * 40 * 21 + - COUNT( + 35 ) END * 30
----
-1814430

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - COUNT ( * ) * - CASE + 50 WHEN - COUNT ( * ) / AVG ( DISTINCT + 2 ) * + 28 * + + 80 THEN - - 23 * - 16 * + 30 - - MIN ( ALL + 24 ) + 73 + + 27 * + - 19 * CASE - COUNT ( * ) WHEN + 41 - - ( - - 8 ) THEN - 23 END ELSE - + 72 * 40 * 21 + - COUNT ( + 35 ) END * 30
----
-1814430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-516
SELECT DISTINCT 56 + + 37 + - 86 + - 83, COUNT( * ) DIV + 91 AS col0
----
-76
0

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT 56 + + 37 + - 86 + - 83, COUNT ( * ) / + 91 AS col0
----
-76
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT DISTINCT CAST( COUNT( DISTINCT - + COALESCE ( + 59, - + 18 ) ) AS SIGNED ) * - - 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT CAST ( COUNT ( DISTINCT - + COALESCE ( + 59, - + 18 ) ) AS INTEGER ) * - - 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL - CASE + 38 WHEN NULLIF ( + 32, - MAX( - 30 ) ) - - + COUNT( * ) - + COUNT( * ) * - 20 + + COALESCE ( + COUNT( * ), 26 ) * 75 - + 80 THEN - 63 + - + 23 + 39 WHEN + 10 + + + COUNT( * ) + - 21 THEN - + ( + - 1 ) - - 46 / + - 37 + + NULLIF ( + 99 + + 86 * + 86, + 40 ) * 39 WHEN + 6 THEN + COUNT( * ) END - - SUM( DISTINCT + 4 ) * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - CASE + 38 WHEN NULLIF ( + 32, - MAX ( - 30 ) ) - - + COUNT ( * ) - + COUNT ( * ) * - 20 + + COALESCE ( + COUNT ( * ), 26 ) * 75 - + 80 THEN - 63 + - + 23 + 39 WHEN + 10 + + + COUNT ( * ) + - 21 THEN - + ( + - 1 ) - - 46 / + - 37 + + NULLIF ( + 99 + + 86 * + 86, + 40 ) * 39 WHEN + 6 THEN + COUNT ( * ) END - - SUM ( DISTINCT + 4 ) * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-519
SELECT 68 DIV - + 95 * - - ( + 53 ) - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-519
SELECT 68 / - + 95 * - - ( + 53 ) - + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT DISTINCT + 5 * - 36 * - + 78 + - - 76 DIV + 41 col0
----
14041

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT + 5 * - 36 * - + 78 + - - 76 / + 41 col0
----
14041

query I rowsort
SELECT NULLIF ( + 48, 19 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT ALL 40 - - + CAST( + 38 AS SIGNED ) - + COUNT( * ) - + + MIN( DISTINCT + + 35 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL 40 - - + CAST ( + 38 AS INTEGER ) - + COUNT ( * ) - + + MIN ( DISTINCT + + 35 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT DISTINCT - - CASE - 19 WHEN 42 THEN - + NULLIF ( - + 91, - - NULLIF ( - + 51, + CAST( NULL AS SIGNED ) * + COUNT( * ) + 96 ) / 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - - CASE - 19 WHEN 42 THEN - + NULLIF ( - + 91, - - NULLIF ( - + 51, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 96 ) / 68 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL - ( - - CAST( 46 AS SIGNED ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - ( - - CAST ( 46 AS INTEGER ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + ( 38 ) * - + CASE - COUNT( * ) WHEN + - ( + NULLIF ( + 62, + + AVG ( ALL + 63 ) ) ) THEN NULL WHEN + 84 THEN - 96 ELSE 72 END
----
-2736

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + ( 38 ) * - + CASE - COUNT ( * ) WHEN + - ( + NULLIF ( + 62, + + AVG ( ALL + 63 ) ) ) THEN NULL WHEN + 84 THEN - 96 ELSE 72 END
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT COUNT( * ) * + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT COUNT ( * ) * + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT 9 + + 61 * + - CASE 58 WHEN 39 THEN COUNT( * ) + - NULLIF ( 87, - 94 + - - 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT 9 + + 61 * + - CASE 58 WHEN 39 THEN COUNT ( * ) + - NULLIF ( 87, - 94 + - - 94 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-528
SELECT 15 * + COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-528
SELECT 15 * + COUNT ( * ) / - 41
----
0

query I rowsort
SELECT 86 - - 87
----
173

query II rowsort
SELECT 38 AS col0, - 83
----
38
-83

query I rowsort
SELECT ALL 25 + + 43 * 6 AS col2
----
283

query I rowsort
SELECT 15 * - + 35
----
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL + 55 + + - 22 DIV + - 53 * 35 DIV 46 + + ( + 22 )
----
77

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + 55 + + - 22 / + - 53 * 35 / 46 + + ( + 22 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL - CAST( + + 46 AS SIGNED ) + + COALESCE ( + ( 99 ), - 58 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - CAST ( + + 46 AS INTEGER ) + + COALESCE ( + ( 99 ), - 58 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT ALL - MIN( ALL 8 ) + + 93 + - + ( + + 59 ) AS col2, 67
----
26
67

skipif mysql # not compatible
query II rowsort label-535
SELECT ALL - MIN ( ALL 8 ) + + 93 + - + ( + + 59 ) AS col2, 67
----
26
67

query I rowsort
SELECT 21 + + - 80 + + 49
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT 30 + - + COUNT( 0 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-537
SELECT 30 + - + COUNT ( 0 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL - + COUNT( * ) - 81 * + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - + COUNT ( * ) - 81 * + - COUNT ( * )
----
80

query I rowsort
SELECT + 5 + + 9 - + 48 + 51 * + 52 - 59 AS col2
----
2559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT - 14 * + 69 DIV - COUNT( * )
----
966

skipif mysql # not compatible
query I rowsort label-540
SELECT - 14 * + 69 / - COUNT ( * )
----
966

query I rowsort
SELECT - 55 + - 17 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT - COALESCE ( ( - 80 ), + - COUNT( * ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-542
SELECT - COALESCE ( ( - 80 ), + - COUNT ( * ) ) AS col0
----
80

query II rowsort
SELECT + 58 AS col0, 10
----
58
10

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT - 44 DIV - 90 + 23 + + + 33 - - 56 * 17 DIV - 79
----
44

skipif mysql # not compatible
query I rowsort label-544
SELECT - 44 / - 90 + 23 + + + 33 - - 56 * 17 / - 79
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-545
SELECT ALL 13 * - 75 - + - 6, - 16 DIV + 61 - - ( - 90 ) * + + 61 col2
----
-969
-5490

skipif mysql # not compatible
query II rowsort label-545
SELECT ALL 13 * - 75 - + - 6, - 16 / + 61 - - ( - 90 ) * + + 61 col2
----
-969
-5490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT CAST( NULL AS SIGNED ) + 48 * + - CAST( 89 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT CAST ( NULL AS INTEGER ) + 48 * + - CAST ( 89 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT COUNT( ALL - - 17 ) * - ( - - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( ALL - - 17 ) * - ( - - 28 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT ALL - MAX( ALL + ( - CAST( + 97 AS SIGNED ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - MAX ( ALL + ( - CAST ( + 97 AS INTEGER ) ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT COUNT( ALL + - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-549
SELECT COUNT ( ALL + - 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT COUNT( * ) / - 63 + CASE + 87 WHEN + 95 THEN + 52 * - 6 END + - SUM( ALL - - 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT COUNT ( * ) / - 63 + CASE + 87 WHEN + 95 THEN + 52 * - 6 END + - SUM ( ALL - - 13 ) AS col2
----
NULL

query II rowsort
SELECT ALL + 70, 52 + - - 48 - - 10 AS col1
----
70
110

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT MIN( 78 ) AS col1, + 38 * + + 39 AS col2
----
78
1482

skipif mysql # not compatible
query II rowsort label-552
SELECT MIN ( 78 ) AS col1, + 38 * + + 39 AS col2
----
78
1482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-553
SELECT ALL 8 * + ( 84 ) + + - 82 AS col0, NULLIF ( + 39, CAST( NULL AS SIGNED ) )
----
590
39

skipif mysql # not compatible
query II rowsort label-553
SELECT ALL 8 * + ( 84 ) + + - 82 AS col0, NULLIF ( + 39, CAST ( NULL AS INTEGER ) )
----
590
39

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + NULLIF ( + NULLIF ( 80, + + 23 ), COUNT( * ) * - COUNT( 37 ) + ( COALESCE ( 83, 68 ) ) ) col2
----
80

skipif mysql # not compatible
query I rowsort label-554
SELECT + NULLIF ( + NULLIF ( 80, + + 23 ), COUNT ( * ) * - COUNT ( 37 ) + ( COALESCE ( 83, 68 ) ) ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT ALL - 38 * + CAST( - - ( - 39 ) AS SIGNED ) + + 62 + + + 81 * + MIN( 2 ) - + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) / + + 11 * + 37 + 87 THEN NULL WHEN - + 63 THEN + - COUNT( * ) / - 81 * + ( - + 19 ) / 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - 38 * + CAST ( - - ( - 39 ) AS INTEGER ) + + 62 + + + 81 * + MIN ( 2 ) - + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) / + + 11 * + 37 + 87 THEN NULL WHEN - + 63 THEN + - COUNT ( * ) / - 81 * + ( - + 19 ) / 61 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 57, CASE 35 WHEN + 83 THEN NULL WHEN + 17 THEN NULL ELSE + 21 * - 21 + + ( 27 ) + 70 + - - 18 - + 78 END col1
----
57
-404

query II rowsort
SELECT ALL + 60 AS col2, 96 * + - 96 * 68 * + - 52
----
60
32587776

query I rowsort
SELECT - 45 * 9 + + - 8
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT MAX( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-559
SELECT MAX ( + 5 )
----
5

query I rowsort
SELECT - 65 + + 93 AS col0
----
28

query I rowsort
SELECT ALL 71 + - 94
----
-23

query I rowsort
SELECT + 77 * + 58 AS col2
----
4466

query I rowsort
SELECT + CASE + ( - 63 ) WHEN 96 THEN - 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT - CASE COUNT( * ) WHEN 54 * - + CAST( NULL AS SIGNED ) * COUNT( * ) * - - COUNT( * ) THEN + 66 + + + 18 WHEN + 70 THEN + 56 ELSE 75 * + - 78 END
----
5850

skipif mysql # not compatible
query I rowsort label-564
SELECT - CASE COUNT ( * ) WHEN 54 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - COUNT ( * ) THEN + 66 + + + 18 WHEN + 70 THEN + 56 ELSE 75 * + - 78 END
----
5850

query II rowsort
SELECT 23 AS col2, 79 * + + 13 * - 84
----
23
-86268

query III rowsort
SELECT - 30 AS col1, + 7 AS col1, + ( - 50 ) col0
----
-30
7
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT + 30 DIV + + 55 * - - 62
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT + 30 / + + 55 * - - 62
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 60, 69 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT - MIN( - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - MIN ( - 98 )
----
98

query II rowsort
SELECT - - 68 AS col2, 89
----
68
89

query I rowsort
SELECT ALL - + 67 - 73 * 14 + - 61
----
-1150

query II rowsort
SELECT ALL - 58 AS col0, 45 AS col1
----
-58
45

query I rowsort
SELECT - 12 * + 87 * - + 92 * - 84
----
-8068032

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT 37 AS col1, - 61 * - - SUM( - 40 ) AS col0
----
37
2440

skipif mysql # not compatible
query II rowsort label-574
SELECT 37 AS col1, - 61 * - - SUM ( - 40 ) AS col0
----
37
2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT ALL + COUNT( * ) - - CAST( + - 81 AS SIGNED ) + + ( + + 38 ) + - 79 * + 60 * - 78 + 92 * + 87 + - 98 - 7 * CAST( NULL AS SIGNED ) / + - 49 * 12 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + COUNT ( * ) - - CAST ( + - 81 AS INTEGER ) + + ( + + 38 ) + - 79 * + 60 * - 78 + 92 * + 87 + - 98 - 7 * CAST ( NULL AS INTEGER ) / + - 49 * 12 * + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-576
SELECT 75, + COUNT( * ) + NULLIF ( - + COUNT( * ), - 90 * - 28 ) * + + NULLIF ( + 86, 45 + + + 27 + + + 49 ) DIV + 8 AS col0
----
75
-9

skipif mysql # not compatible
query II rowsort label-576
SELECT 75, + COUNT ( * ) + NULLIF ( - + COUNT ( * ), - 90 * - 28 ) * + + NULLIF ( + 86, 45 + + + 27 + + + 49 ) / + 8 AS col0
----
75
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT - COUNT( * ) col0, - 66 * - 12
----
-1
792

skipif mysql # not compatible
query II rowsort label-577
SELECT - COUNT ( * ) col0, - 66 * - 12
----
-1
792

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - + SUM( 0 ) * - 40
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT - + SUM ( 0 ) * - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL - 55 * + - MAX( DISTINCT - 25 ) * + + 72
----
-99000

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - 55 * + - MAX ( DISTINCT - 25 ) * + + 72
----
-99000

query I rowsort
SELECT - + 16 + 88
----
72

query I rowsort
SELECT ALL - + 96 * CASE + + 49 WHEN - + 72 THEN NULL WHEN - - 85 THEN - 53 ELSE NULL END + + + 21 AS col1
----
NULL

query I rowsort
SELECT - 14 * + 67
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT SUM( DISTINCT + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT SUM ( DISTINCT + + 36 )
----
36

query I rowsort
SELECT ALL - + 21 + + + 24 - - + 12 + - ( 41 ) * 84 AS col0
----
-3429

query I rowsort
SELECT - 72 + - 23 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT 50 DIV - 80 - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-586
SELECT 50 / - 80 - 92 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-587
SELECT - - 39 DIV + - 27 - 98 + 35 AS col1, + 15
----
-64
15

skipif mysql # not compatible
query II rowsort label-587
SELECT - - 39 / + - 27 - 98 + 35 AS col1, + 15
----
-64
15

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ( - + CASE + 84 WHEN - COUNT( * ) + 94 THEN - - 88 WHEN 98 THEN + 24 * + ( - NULLIF ( - - 50, 52 * - 18 ) ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ( - + CASE + 84 WHEN - COUNT ( * ) + 94 THEN - - 88 WHEN 98 THEN + 24 * + ( - NULLIF ( - - 50, 52 * - 18 ) ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT ALL - 60 DIV 50 * + + 38 + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - 60 / 50 * + + 38 + + COUNT ( * )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT 29 * + + CAST( NULL AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT 29 * + + CAST ( NULL AS INTEGER ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ( CASE - ( + - 64 ) WHEN + + 39 THEN + 39 * - 5 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT - 50 * COUNT( DISTINCT + + 42 ) * + COUNT( * ) + 40 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - 50 * COUNT ( DISTINCT + + 42 ) * + COUNT ( * ) + 40 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + 48 * - COUNT( DISTINCT - 94 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-593
SELECT + 48 * - COUNT ( DISTINCT - 94 ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL + CAST( NULL AS SIGNED ) * - - 24 + + + COUNT( * ) * 67 - - CASE - 14 WHEN 86 THEN - CASE WHEN NOT ( NULL ) IS NULL THEN - 39 ELSE - 14 END * - 74 * 52 / - 72 + + COUNT( * ) ELSE - 80 + 18 END * - - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 24 + + + COUNT ( * ) * 67 - - CASE - 14 WHEN 86 THEN - CASE WHEN NOT ( NULL ) IS NULL THEN - 39 ELSE - 14 END * - 74 * 52 / - 72 + + COUNT ( * ) ELSE - 80 + 18 END * - - ( + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT CASE 62 WHEN - AVG ( NULLIF ( + 68, COALESCE ( + 69, + 35 ) ) ) + 85 + + 14 * - + 87 THEN - + ( + + COUNT( * ) ) / - 75 / - COUNT( - COALESCE ( 20, - 96, + 52 ) ) - - 13 WHEN - ( - + 16 ) THEN AVG ( 41 ) * + - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT CASE 62 WHEN - AVG ( NULLIF ( + 68, COALESCE ( + 69, + 35 ) ) ) + 85 + + 14 * - + 87 THEN - + ( + + COUNT ( * ) ) / - 75 / - COUNT ( - COALESCE ( 20, - 96, + 52 ) ) - - 13 WHEN - ( - + 16 ) THEN AVG ( 41 ) * + - 44 END
----
NULL

query II rowsort
SELECT + 54 + + 50, 94 AS col2
----
104
94

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT 65 * 48 + - + 48 + SUM( 3 ), 61 AS col0
----
3075
61

skipif mysql # not compatible
query II rowsort label-597
SELECT 65 * 48 + - + 48 + SUM ( 3 ), 61 AS col0
----
3075
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-598
SELECT ALL 47 * CAST( + 19 AS SIGNED ) - + - 6 + + - COALESCE ( + 18, 36 + - 86, + 48 * - + ( + + 64 ) + + COUNT( * ) + + + 68 * - - 73 ) + + 49 * - MIN( 66 ) * - 76 AS col2, 25 AS col0
----
246665
25

skipif mysql # not compatible
query II rowsort label-598
SELECT ALL 47 * CAST ( + 19 AS INTEGER ) - + - 6 + + - COALESCE ( + 18, 36 + - 86, + 48 * - + ( + + 64 ) + + COUNT ( * ) + + + 68 * - - 73 ) + + 49 * - MIN ( 66 ) * - 76 AS col2, 25 AS col0
----
246665
25

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT CASE - - COALESCE ( + 68, - - 52 ) WHEN - + 14 * - 1 * + - 30 THEN NULL WHEN + 91 THEN - - ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT CASE - - COALESCE ( + 68, - - 52 ) WHEN - + 14 * - 1 * + - 30 THEN NULL WHEN + 91 THEN - - ( COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT + + NULLIF ( - - 64, 19 * 28 * + 14 * - + 78 ) - + 7 AS col1, - ( - 97 ) AS col0
----
57
97

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + ( + + SUM( - 91 ) ) * + MAX( ALL 15 )
----
-1365

skipif mysql # not compatible
query I rowsort label-601
SELECT + ( + + SUM ( - 91 ) ) * + MAX ( ALL 15 )
----
-1365

query I rowsort
SELECT + - 61 + + - 66 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + - 56 - + 64 + + 36 + - COUNT( * ) - - + 40
----
-45

skipif mysql # not compatible
query I rowsort label-603
SELECT + - 56 - + 64 + + 36 + - COUNT ( * ) - - + 40
----
-45

query II rowsort
SELECT - + 81 + + - 61, ( - 32 ) col0
----
-142
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL - ( - + CAST( - 94 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - ( - + CAST ( - 94 AS INTEGER ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT + 17 * + 29 * - COUNT( * ) * - 34 AS col2
----
16762

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 17 * + 29 * - COUNT ( * ) * - 34 AS col2
----
16762

query I rowsort
SELECT - - 6 + + 43
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + COUNT( + + 97 ) + + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-608
SELECT + COUNT ( + + 97 ) + + - 42
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT + 73 * - COUNT( DISTINCT + 3 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + 73 * - COUNT ( DISTINCT + 3 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL SUM( ALL + + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL SUM ( ALL + + 93 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT + 1 DIV + + 4 + 89
----
89

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT + 1 / + + 4 + 89
----
89

query I rowsort
SELECT ALL - 43 + 66 + - + 44 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT + + SUM( DISTINCT CAST( + 81 AS SIGNED ) ) * + + 5
----
405

skipif mysql # not compatible
query I rowsort label-613
SELECT + + SUM ( DISTINCT CAST ( + 81 AS INTEGER ) ) * + + 5
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - + 79 + + MAX( + + 16 )
----
-63

skipif mysql # not compatible
query I rowsort label-614
SELECT - + 79 + + MAX ( + + 16 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT - 35 DIV - + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-615
SELECT - 35 / - + 58 AS col2
----
0

query I rowsort
SELECT ALL - 99 + - 61 * - + 73
----
4354

query I rowsort
SELECT ( 8 ) + + 8
----
16

query I rowsort
SELECT 96 + 63
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT 50 + ( COUNT( * ) ) + + 18 + - 45 * + 97 * - 61 AS col0
----
266334

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT 50 + ( COUNT ( * ) ) + + 18 + - 45 * + 97 * - 61 AS col0
----
266334

query I rowsort
SELECT 95 * + ( - 32 ) + ( 89 )
----
-2951

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT COALESCE ( - 79, COUNT( * ) * COALESCE ( + - COUNT( * ), + + ( + - 41 ), COALESCE ( - - 56, - 38, - 21 ), 44 ) * - 4 + - 81 ) * 14 - 38 * + 37 * 1, - 31 AS col0
----
-2512
-31

skipif mysql # not compatible
query II rowsort label-621
SELECT COALESCE ( - 79, COUNT ( * ) * COALESCE ( + - COUNT ( * ), + + ( + - 41 ), COALESCE ( - - 56, - 38, - 21 ), 44 ) * - 4 + - 81 ) * 14 - 38 * + 37 * 1, - 31 AS col0
----
-2512
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT 40 + + 4 + + COUNT( * ) * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-622
SELECT 40 + + 4 + + COUNT ( * ) * + COUNT ( * )
----
45

query I rowsort
SELECT 14 * 79 AS col1
----
1106

query I rowsort
SELECT 30 + - 6
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - 60 - 38 * CAST( - - 1 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - 60 - 38 * CAST ( - - 1 AS INTEGER )
----
-98

query II rowsort
SELECT ALL - 14 AS col2, 52
----
-14
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-627
SELECT 61 * - 15 * 36 * - 34 + 85 DIV COUNT( * )
----
1120045

skipif mysql # not compatible
query I rowsort label-627
SELECT 61 * - 15 * 36 * - 34 + 85 / COUNT ( * )
----
1120045

query I rowsort
SELECT 30 * - - 69
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + CAST( + 57 AS SIGNED ) * + 92 - + 57 * COUNT( * ) + + - 46 + - 25 + + 50 * - - 37 * + - 68 + + - 18 col2
----
-120702

skipif mysql # not compatible
query I rowsort label-629
SELECT + CAST ( + 57 AS INTEGER ) * + 92 - + 57 * COUNT ( * ) + + - 46 + - 25 + + 50 * - - 37 * + - 68 + + - 18 col2
----
-120702

query I rowsort
SELECT 28 + 90
----
118

query I rowsort
SELECT DISTINCT + 88 * + 31 AS col0
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - SUM( + + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-632
SELECT - SUM ( + + 26 ) AS col1
----
-26

query I rowsort
SELECT 21 * 13
----
273

query I rowsort
SELECT ALL 91 + + 90
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + MIN( DISTINCT - 39 ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-635
SELECT + MIN ( DISTINCT - 39 ) col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - COALESCE ( - 89, + MIN( + - 37 ) * - SUM( ALL + 76 ) * 96 + COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-636
SELECT - COALESCE ( - 89, + MIN ( + - 37 ) * - SUM ( ALL + 76 ) * 96 + COUNT ( * ) ) AS col2
----
89

query I rowsort
SELECT ALL + 94 + + - 60 AS col1
----
34

query I rowsort
SELECT DISTINCT + - 95 + 96 AS col1
----
1

query I rowsort
SELECT + 40 + - 93
----
-53

query II rowsort
SELECT ALL + 21 AS col0, - 2
----
21
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ( - - COUNT( * ) ) + MAX( ALL - 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-641
SELECT ( - - COUNT ( * ) ) + MAX ( ALL - 27 )
----
-26

query I rowsort
SELECT - 24 * - 76
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - 12 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - 12 + COUNT ( * )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT 56 - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + COUNT( - 28 ) / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT 56 - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + COUNT ( - 28 ) / 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT - NULLIF ( 92, - 6 * + 36 ), + 1 * + - 68 * COUNT( DISTINCT - - 80 ) + + 38 col2
----
-92
-30

skipif mysql # not compatible
query II rowsort label-645
SELECT - NULLIF ( 92, - 6 * + 36 ), + 1 * + - 68 * COUNT ( DISTINCT - - 80 ) + + 38 col2
----
-92
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT COUNT( * ) + - 15 AS col1, NULLIF ( 76, 77 )
----
-14
76

skipif mysql # not compatible
query II rowsort label-646
SELECT COUNT ( * ) + - 15 AS col1, NULLIF ( 76, 77 )
----
-14
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL CASE - COUNT( * ) WHEN 24 THEN - COUNT( * ) * + 13 END + + NULLIF ( + CASE + 94 WHEN - - 7 THEN + CAST( NULL AS SIGNED ) END, + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL CASE - COUNT ( * ) WHEN 24 THEN - COUNT ( * ) * + 13 END + + NULLIF ( + CASE + 94 WHEN - - 7 THEN + CAST ( NULL AS INTEGER ) END, + 86 ) AS col2
----
NULL

query II rowsort
SELECT 25 * - 14 AS col0, ( - 10 )
----
-350
-10

query I rowsort
SELECT 34 - - + 29 * + - 85
----
-2431

query II rowsort
SELECT 44 - - 61 col1, + ( + NULLIF ( 42, ( + + 66 ) ) )
----
105
42

query I rowsort
SELECT ( - - 98 ) * - 16
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT DISTINCT - MIN( ( + 93 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - MIN ( ( + 93 ) ) AS col0
----
-93

query II rowsort
SELECT ALL + 74 * - + 12, - 7 AS col2
----
-888
-7

query I rowsort
SELECT 49 * - 65
----
-3185

query I rowsort
SELECT 2 * - 12 + - - 82 * 9
----
714

query II rowsort
SELECT ALL - ( + 6 ), 43 AS col0
----
-6
43

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT MIN( - 6 ) * - - 35
----
-210

skipif mysql # not compatible
query I rowsort label-657
SELECT MIN ( - 6 ) * - - 35
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - ( + 88 ) / - 96 * ( 33 ) + + + 23 * - + 80 * - 10 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - ( + 88 ) / - 96 * ( 33 ) + + + 23 * - + 80 * - 10 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + 57 + - + COUNT( * ) * - + 79 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + 57 + - + COUNT ( * ) * - + 79 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL + 35 * MIN( DISTINCT - - 10 ) AS col0
----
350

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + 35 * MIN ( DISTINCT - - 10 ) AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT + ( - + COUNT( * ) ) + - 65 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-661
SELECT + ( - + COUNT ( * ) ) + - 65 AS col2
----
-66

query I rowsort
SELECT ALL - 24 + - - 94 * + 10 - + 80
----
836

query I rowsort
SELECT DISTINCT + 65 + - 37
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + SUM( + + ( + - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + SUM ( + + ( + - 83 ) )
----
-83

query I rowsort
SELECT ALL - 74 * 70 AS col1
----
-5180

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - 38 DIV - 11 - 96 * 67 * 8 * - 42 - 81
----
2161074

skipif mysql # not compatible
query I rowsort label-666
SELECT - 38 / - 11 - 96 * 67 * 8 * - 42 - 81
----
2161074

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT 92 + - COUNT( * ) - - 98
----
189

skipif mysql # not compatible
query I rowsort label-667
SELECT 92 + - COUNT ( * ) - - 98
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + COUNT( * ) + - 64 - - - 8 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-668
SELECT + COUNT ( * ) + - 64 - - - 8 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL CAST( ( + 92 ) AS SIGNED ) + + - NULLIF ( - + 21, - 2 * - + CASE - 36 WHEN 40 * + 53 THEN NULL WHEN + - 7 THEN NULL ELSE + ( + 89 ) * + ( - COUNT( * ) ) + 96 + 70 END * + - 5 + COUNT( * ) ) + + 80 + 83
----
276

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL CAST ( ( + 92 ) AS INTEGER ) + + - NULLIF ( - + 21, - 2 * - + CASE - 36 WHEN 40 * + 53 THEN NULL WHEN + - 7 THEN NULL ELSE + ( + 89 ) * + ( - COUNT ( * ) ) + 96 + 70 END * + - 5 + COUNT ( * ) ) + + 80 + 83
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-670
SELECT - - 77 + CAST( NULL AS SIGNED ) - - 21 / - - 88 + COUNT( * ) col0, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-670
SELECT - - 77 + CAST ( NULL AS INTEGER ) - - 21 / - - 88 + COUNT ( * ) col0, 17
----
NULL
17

query I rowsort
SELECT - COALESCE ( + 88, - 57 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + + NULLIF ( - + 99, 19 - - - 53 + + MAX( ( + 39 ) ) ) + - ( COUNT( * ) ) * + 56 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-672
SELECT + + NULLIF ( - + 99, 19 - - - 53 + + MAX ( ( + 39 ) ) ) + - ( COUNT ( * ) ) * + 56 AS col1
----
-155

query I rowsort
SELECT ALL ( - - 69 ) AS col0
----
69

query I rowsort
SELECT + - 27 + - - 54
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT MAX( + CASE - 69 WHEN + 29 THEN 68 WHEN 47 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT MAX ( + CASE - 69 WHEN + 29 THEN 68 WHEN 47 THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - MAX( - + 53 ) + 4 col1
----
57

skipif mysql # not compatible
query I rowsort label-676
SELECT - MAX ( - + 53 ) + 4 col1
----
57

query I rowsort
SELECT + 61 * - 70
----
-4270

query I rowsort
SELECT + 25 + + 55
----
80

query I rowsort
SELECT ALL 7 * - 10 AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT + 13 DIV 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT + 13 / 18 AS col0
----
0

query II rowsort
SELECT DISTINCT 56 AS col1, + 82 + 57
----
56
139

query I rowsort
SELECT - CASE + 94 WHEN + - 24 THEN NULL ELSE + - 38 END
----
38

query I rowsort
SELECT DISTINCT 54 * - 13 * - 9 * - ( - + 98 ) * ( - + 63 ) AS col1
----
-39007332

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + 83 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-684
SELECT + 83 / 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + MIN( + 73 ) * - MAX( DISTINCT + 32 )
----
-2336

skipif mysql # not compatible
query I rowsort label-685
SELECT + MIN ( + 73 ) * - MAX ( DISTINCT + 32 )
----
-2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-686
SELECT + 53 DIV - + 17 + + 0 + + - 77 * - ( + + NULLIF ( CASE - 63 WHEN - 70 - + 13 + - 62 * - COUNT( * ) DIV - - ( - COUNT( * ) ) * ( - 60 ) + + ( - COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( * ) * 16 * 7 DIV - 53 + + 98 + + - 24 ) ) THEN - NULLIF ( - - COUNT( * ), + + COUNT( * ) DIV - + 73 ) WHEN - - 13 THEN - MIN( ALL 55 ) ELSE CAST( + 35 AS SIGNED ) * 28 END, + ( COUNT( * ) ) * + 47 ) ) * 58 AS col1
----
4376677

skipif mysql # not compatible
query I rowsort label-686
SELECT + 53 / - + 17 + + 0 + + - 77 * - ( + + NULLIF ( CASE - 63 WHEN - 70 - + 13 + - 62 * - COUNT ( * ) / - - ( - COUNT ( * ) ) * ( - 60 ) + + ( - COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) * 16 * 7 / - 53 + + 98 + + - 24 ) ) THEN - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) / - + 73 ) WHEN - - 13 THEN - MIN ( ALL 55 ) ELSE CAST ( + 35 AS INTEGER ) * 28 END, + ( COUNT ( * ) ) * + 47 ) ) * 58 AS col1
----
4376677

query I rowsort
SELECT NULLIF ( + 8, + + 98 * - 69 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT ALL 41 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 41 / - 62 AS col2
----
0

query I rowsort
SELECT - 53 + + 41 * + 45
----
1792

query I rowsort
SELECT + 65 * - - 66 + + ( - 32 )
----
4258

query I rowsort
SELECT + ( - 76 ) AS col1
----
-76

query I rowsort
SELECT ALL + - 54 * 19 * - + 11 + - 63
----
11223

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - 42 * MAX( ALL + 11 )
----
-462

skipif mysql # not compatible
query I rowsort label-693
SELECT - 42 * MAX ( ALL + 11 )
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + - SUM( + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-694
SELECT + - SUM ( + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + 9 * + 64 * - NULLIF ( - 9, 91 * + + 11 * + SUM( - 1 ) + - SUM( DISTINCT - 80 ) * 11 )
----
5184

skipif mysql # not compatible
query I rowsort label-695
SELECT + 9 * + 64 * - NULLIF ( - 9, 91 * + + 11 * + SUM ( - 1 ) + - SUM ( DISTINCT - 80 ) * 11 )
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-696
SELECT ALL + - CASE CAST( + - 27 AS SIGNED ) WHEN - 48 DIV 10 + - + MIN( + 16 ) + 62 + - 6 * 90 THEN NULL ELSE 7 DIV - - 25 + 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + - CASE CAST ( + - 27 AS INTEGER ) WHEN - 48 / 10 + - + MIN ( + 16 ) + 62 + - 6 * 90 THEN NULL ELSE 7 / - - 25 + 12 END
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - - ( - ( SUM( DISTINCT 70 ) ) ) * + 68 + + + 79 + - 52
----
-4733

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - - ( - ( SUM ( DISTINCT 70 ) ) ) * + 68 + + + 79 + - 52
----
-4733

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT - + COUNT( * ) * - + ( - - 14 ) - - - 46
----
-32

skipif mysql # not compatible
query I rowsort label-698
SELECT - + COUNT ( * ) * - + ( - - 14 ) - - - 46
----
-32

query I rowsort
SELECT - 15 * + 15 * ( + 11 ) + 37 AS col2
----
-2438

query I rowsort
SELECT ALL - - 86 * - 64
----
-5504

query I rowsort
SELECT - 81 * - 77
----
6237

query I rowsort
SELECT DISTINCT - 29 * ( - 56 )
----
1624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-703
SELECT ALL 25 - 16 * - 12 * - 38 + + CAST( NULL AS DECIMAL ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 25 - 16 * - 12 * - 38 + + CAST ( NULL AS REAL ) - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT - COALESCE ( - CASE - 53 WHEN 7 * + 26 * 21 THEN NULL ELSE 52 - + 12 - + COUNT( * ) END, ( - 57 ), - - 73 - + 32 ) + + 99 col2
----
138

skipif mysql # not compatible
query I rowsort label-704
SELECT - COALESCE ( - CASE - 53 WHEN 7 * + 26 * 21 THEN NULL ELSE 52 - + 12 - + COUNT ( * ) END, ( - 57 ), - - 73 - + 32 ) + + 99 col2
----
138

query I rowsort
SELECT + 67 + - 7
----
60

query I rowsort
SELECT - 37 * + - 1 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT 64 AS col1, + ( - + 50 ) + 10 + - + ( - COUNT( * ) ) * - + 91 AS col0
----
64
-131

skipif mysql # not compatible
query II rowsort label-707
SELECT 64 AS col1, + ( - + 50 ) + 10 + - + ( - COUNT ( * ) ) * - + 91 AS col0
----
64
-131

query I rowsort
SELECT + 2 * + 21
----
42

query I rowsort
SELECT - 14 - + 13 + + - 26 * - + 96 + - 71
----
2398

query II rowsort
SELECT ALL ( - 12 ) AS col0, - 41 AS col0
----
-12
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT DISTINCT + COALESCE ( 15, + ( - 48 ) ) * - CAST( - COUNT( * ) AS SIGNED ) + - - 94
----
109

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + COALESCE ( 15, + ( - 48 ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - - 94
----
109

query I rowsort
SELECT DISTINCT ( + - 35 )
----
-35

query I rowsort
SELECT + 7 * 62 * - + 51
----
-22134

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL - 1 * + SUM( + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - 1 * + SUM ( + 92 )
----
-92

query I rowsort
SELECT ALL 54 * - 2
----
-108

query I rowsort
SELECT - ( 33 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-717
SELECT - 71 * + 5 AS col0, COUNT( * )
----
-355
1

skipif mysql # not compatible
query II rowsort label-717
SELECT - 71 * + 5 AS col0, COUNT ( * )
----
-355
1

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + 77 * + MAX( DISTINCT - - 69 ) AS col1
----
5313

skipif mysql # not compatible
query I rowsort label-718
SELECT + 77 * + MAX ( DISTINCT - - 69 ) AS col1
----
5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT + NULLIF ( 28, + MAX( + 89 ) * + - 46 * + + 43 ) - - 70 * - CAST( + 77 AS SIGNED ) AS col2
----
-5362

skipif mysql # not compatible
query I rowsort label-719
SELECT + NULLIF ( 28, + MAX ( + 89 ) * + - 46 * + + 43 ) - - 70 * - CAST ( + 77 AS INTEGER ) AS col2
----
-5362

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT + 30 DIV + - ( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-720
SELECT + 30 / + - ( - 29 )
----
1

query I rowsort
SELECT + 41 * 59
----
2419

query I rowsort
SELECT + ( + - 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT ALL + CAST( - - 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + CAST ( - - 47 AS INTEGER ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT DISTINCT + COUNT( * ) DIV + 75 * 30 + - 17 DIV + 80 + + MAX( DISTINCT + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT + COUNT ( * ) / + 75 * 30 + - 17 / + 80 + + MAX ( DISTINCT + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT ALL 36 DIV - ( + 23 ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 36 / - ( + 23 ) + + - COUNT ( * ) AS col0
----
-2

query II rowsort
SELECT ALL + 16 AS col1, + 84
----
16
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT + COUNT( * ) DIV - - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-727
SELECT + COUNT ( * ) / - - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT - 40 * + 35 * - + COUNT( * )
----
1400

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - 40 * + 35 * - + COUNT ( * )
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL + MAX( - - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + MAX ( - - 58 ) AS col0
----
58

query I rowsort
SELECT 85 + 50 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL + COUNT( * ) + MIN( + 74 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + COUNT ( * ) + MIN ( + 74 ) col1
----
75

query I rowsort
SELECT 16 + 5 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT 62 + - CAST( 2 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-733
SELECT 62 + - CAST ( 2 AS INTEGER ) AS col1
----
60

query II rowsort
SELECT DISTINCT - - 69, - 10 - - 10 + - 55 AS col0
----
69
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL COUNT( * ) - ( - 67 )
----
68

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL COUNT ( * ) - ( - 67 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT 30 - - MAX( DISTINCT + - 14 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 30 - - MAX ( DISTINCT + - 14 ) AS col2
----
16

query I rowsort
SELECT DISTINCT - + 35 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT + CAST( NULL AS SIGNED ) * - 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-738
SELECT + CAST ( NULL AS INTEGER ) * - 2 col2
----
NULL

query I rowsort
SELECT 24 + + - 92 - + 86 AS col2
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT COUNT( * ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) / 63 AS col1
----
0

query I rowsort
SELECT 50 * 6 AS col1
----
300

query I rowsort
SELECT 24 + - 55 + - ( - + 76 ) * 5 * + 83 AS col1
----
31509

query I rowsort
SELECT 34 + - 62 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query IIII rowsort label-744
SELECT 40 * + 32, COUNT( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1
----
1280
1
5396
10

skipif mysql # not compatible
query IIII rowsort label-744
SELECT 40 * + 32, COUNT ( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1
----
1280
1
5396
10

query II rowsort
SELECT DISTINCT + 33 * + - 70, 47 AS col2
----
-2310
47

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT ALL + ( + 94 ) DIV 78 * + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + ( + 94 ) / 78 * + 6 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT 30 DIV - 12 col2
----
-2

skipif mysql # not compatible
query I rowsort label-747
SELECT 30 / - 12 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT 75 * - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-748
SELECT 75 * - COUNT ( * ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-749
SELECT ALL + 16 + + + COUNT( * ) DIV - 18 DIV + COALESCE ( - 4, + 1, - NULLIF ( + 2, + - 26 + - 12 + + CAST( COALESCE ( + 61, + 64, - ( COUNT( * ) ) * 78 * - + 1 * 83 * - + CAST( NULL AS SIGNED ) DIV 4 ) AS SIGNED ) DIV + 29 DIV - 2 ) ) + 41 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + 16 + + + COUNT ( * ) / - 18 / + COALESCE ( - 4, + 1, - NULLIF ( + 2, + - 26 + - 12 + + CAST ( COALESCE ( + 61, + 64, - ( COUNT ( * ) ) * 78 * - + 1 * 83 * - + CAST ( NULL AS INTEGER ) / 4 ) AS INTEGER ) / + 29 / - 2 ) ) + 41 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT + ( + COUNT( * ) ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT + ( + COUNT ( * ) ) + - 97
----
-96

query I rowsort
SELECT DISTINCT - 71 + - - 92 - - 94 * 13 AS col1
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) * 58 + + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) * 58 + + COUNT ( * ) AS col0
----
60

query II rowsort
SELECT DISTINCT - ( 89 ), 74 AS col2
----
-89
74

query II rowsort
SELECT ALL - ( + + 65 ), 39 * - 94 * + + 57 col0
----
-65
-208962

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + CASE + COUNT( * ) WHEN + + 6 * + - 26 THEN COUNT( * ) * + COUNT( * ) + + 13 WHEN - MAX( ALL 88 ) - 39 THEN - 12 END * + ( - 8 ) * + ( - 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + CASE + COUNT ( * ) WHEN + + 6 * + - 26 THEN COUNT ( * ) * + COUNT ( * ) + + 13 WHEN - MAX ( ALL 88 ) - 39 THEN - 12 END * + ( - 8 ) * + ( - 79 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL 30 - - CAST( - 92 AS SIGNED ) - - COUNT( * ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 30 - - CAST ( - 92 AS INTEGER ) - - COUNT ( * ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-757
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT 15 - + 32 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query III rowsort label-759
SELECT 69 * - + 66 AS col0, - 4 AS col2, - 4 DIV + 60
----
-4554
-4
0

skipif mysql # not compatible
query III rowsort label-759
SELECT 69 * - + 66 AS col0, - 4 AS col2, - 4 / + 60
----
-4554
-4
0

query I rowsort
SELECT ALL - 35 * + COALESCE ( + 62, + 65 )
----
-2170

query II rowsort
SELECT + - ( 57 ), - 74 + 38 AS col1
----
-57
-36

query I rowsort
SELECT - 16 * - 40
----
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT - CASE - CAST( 49 AS SIGNED ) WHEN - - 80 THEN COUNT( + 74 ) + - 80 WHEN + + 70 + SUM( - 32 ) THEN NULL WHEN COUNT( * ) * COUNT( * ) + 62 + - CAST( 49 AS SIGNED ) + + 97 * 25 THEN NULL END * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT - CASE - CAST ( 49 AS INTEGER ) WHEN - - 80 THEN COUNT ( + 74 ) + - 80 WHEN + + 70 + SUM ( - 32 ) THEN NULL WHEN COUNT ( * ) * COUNT ( * ) + 62 + - CAST ( 49 AS INTEGER ) + + 97 * 25 THEN NULL END * + 83 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT - 99 DIV + - 26 + + 50, 5 col1
----
53
5

skipif mysql # not compatible
query II rowsort label-764
SELECT - 99 / + - 26 + + 50, 5 col1
----
53
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT DISTINCT 37 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 37 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT + 1 + - + 0 - - + 29 + - + 3 - + + 40 * CASE 31 WHEN - + 7 * COUNT( * ) * - + 21 THEN - ( + 99 ) WHEN + 8 + + 66 THEN NULL ELSE - 50 END * + + 89
----
178027

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + 1 + - + 0 - - + 29 + - + 3 - + + 40 * CASE 31 WHEN - + 7 * COUNT ( * ) * - + 21 THEN - ( + 99 ) WHEN + 8 + + 66 THEN NULL ELSE - 50 END * + + 89
----
178027

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT ALL SUM( - 81 ) * + COUNT( ALL 23 ) AS col2, + COALESCE ( NULLIF ( - ( 79 ), - MAX( + - 87 ) / + MIN( + 32 ) ), + 76 ) + + 3
----
-81
-76

skipif mysql # not compatible
query II rowsort label-767
SELECT ALL SUM ( - 81 ) * + COUNT ( ALL 23 ) AS col2, + COALESCE ( NULLIF ( - ( 79 ), - MAX ( + - 87 ) / + MIN ( + 32 ) ), + 76 ) + + 3
----
-81
-76

query I rowsort
SELECT 59 - - 25 - + 45 + 48 * ( + 49 ) AS col1
----
2391

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COUNT( * ) + + + 17 + + 24 * + NULLIF ( + 61, 37 )
----
1482

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( * ) + + + 17 + + 24 * + NULLIF ( + 61, 37 )
----
1482

query I rowsort
SELECT 69 * 1 AS col0
----
69

query I rowsort
SELECT 75 * + - 33 AS col0
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL MAX( - COALESCE ( + 0, + 66 ) )
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL MAX ( - COALESCE ( + 0, + 66 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT DISTINCT - 57 + - CAST( + 2 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - 57 + - CAST ( + 2 AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT 68 + + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-774
SELECT 68 + + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT DISTINCT - 39 + - ( - 18 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL + SUM( + 25 ) * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + SUM ( + 25 ) * + + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT ALL + 12 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + 12 / 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT DISTINCT - 58 + + + 74 * 13 DIV - + 69 + + COUNT( * ) * + 40 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - 58 + + + 74 * 13 / - + 69 + + COUNT ( * ) * + 40 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 49 - + 14 - - 64 col0
----
1

query I rowsort
SELECT - 75 * - + 94 * - + ( - 74 ) + - 5
----
521695

query I rowsort
SELECT ALL 67 * - 49 - - - NULLIF ( - ( - 7 ), 29 )
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + SUM( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-782
SELECT + SUM ( ALL 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - COALESCE ( COUNT( - 61 ), - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-783
SELECT - COALESCE ( COUNT ( - 61 ), - 98 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL + + CAST( COUNT( - 48 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + + CAST ( COUNT ( - 48 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 55 * + + COUNT( - 32 )
----
55

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 55 * + + COUNT ( - 32 )
----
55

query I rowsort
SELECT ALL + CASE WHEN + 22 IS NULL THEN + 80 * - 50 * 36 ELSE + 32 END AS col0
----
32

query I rowsort
SELECT + 47 - - + ( + - 99 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-788
SELECT ALL + - COALESCE ( - COUNT( * ), + 79 DIV + MAX( - 92 ) + + + CAST( 88 AS SIGNED ) * 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + - COALESCE ( - COUNT ( * ), + 79 / + MAX ( - 92 ) + + + CAST ( 88 AS INTEGER ) * 30 ) AS col1
----
1

query I rowsort
SELECT + 88 * - 40 + - + 22
----
-3542

query I rowsort
SELECT 42 * - - 93 + 26 col0
----
3932

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + 83 * + + 27 + - - 5 * CASE + - 60 WHEN + + 50 THEN NULL WHEN - 78 THEN + - COUNT( * ) ELSE - + 32 - COUNT( * ) END * + - 46 + + + 19 AS col1
----
9850

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + 83 * + + 27 + - - 5 * CASE + - 60 WHEN + + 50 THEN NULL WHEN - 78 THEN + - COUNT ( * ) ELSE - + 32 - COUNT ( * ) END * + - 46 + + + 19 AS col1
----
9850

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT + MIN( DISTINCT + - 18 ) * 39
----
-702

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + MIN ( DISTINCT + - 18 ) * 39
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT - 82 * + NULLIF ( + 11, + ( + CASE - + COUNT( * ) WHEN - CASE + 48 WHEN + 13 THEN NULL WHEN ( + + 40 ) * + - 11 * - COUNT( - 33 ) - - 39 + 37 / 32 THEN COUNT( * ) * - COUNT( * ) - - 9 + + + 98 ELSE 73 END THEN - + 20 * + MAX( ALL + 17 ) * COUNT( * ) + - 90 END ) ) + 68 AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT - 82 * + NULLIF ( + 11, + ( + CASE - + COUNT ( * ) WHEN - CASE + 48 WHEN + 13 THEN NULL WHEN ( + + 40 ) * + - 11 * - COUNT ( - 33 ) - - 39 + 37 / 32 THEN COUNT ( * ) * - COUNT ( * ) - - 9 + + + 98 ELSE 73 END THEN - + 20 * + MAX ( ALL + 17 ) * COUNT ( * ) + - 90 END ) ) + 68 AS col2
----
-834

query I rowsort
SELECT ALL 7 * 53 * - + 56 + - ( - 19 )
----
-20757

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + CASE + 55 WHEN - + 73 + - + 93 THEN ( + ( + 78 ) ) ELSE NULLIF ( COUNT( * ), - 93 ) + + 19 END AS col2
----
20

skipif mysql # not compatible
query I rowsort label-795
SELECT + CASE + 55 WHEN - + 73 + - + 93 THEN ( + ( + 78 ) ) ELSE NULLIF ( COUNT ( * ), - 93 ) + + 19 END AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT ALL COUNT( * ) + - SUM( ALL CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL COUNT ( * ) + - SUM ( ALL CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT + ( - - ( 79 ) ) + + 57 + - 67 * - 6 col1
----
538

query I rowsort
SELECT ALL 43 + + 33
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-799
SELECT + 37 * + - ( 37 ) + + 71 AS col1, MAX( DISTINCT + 94 ) * + + 95 + SUM( DISTINCT + 24 ) DIV + COALESCE ( - 67, - CAST( NULL AS SIGNED ) ) * + + 3 col2
----
-1298
8930

skipif mysql # not compatible
query II rowsort label-799
SELECT + 37 * + - ( 37 ) + + 71 AS col1, MAX ( DISTINCT + 94 ) * + + 95 + SUM ( DISTINCT + 24 ) / + COALESCE ( - 67, - CAST ( NULL AS INTEGER ) ) * + + 3 col2
----
-1298
8930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-800
SELECT DISTINCT 78 / - CAST( NULL AS DECIMAL ) * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT 78 / - CAST ( NULL AS REAL ) * 15 col1
----
NULL

query I rowsort
SELECT + 89 + 60
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT COALESCE ( + 30, + - 15 ) + 53 * + COUNT( * ) DIV COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT COALESCE ( + 30, + - 15 ) + 53 * + COUNT ( * ) / COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT - ( 95 ) AS col1, + ( - MIN( DISTINCT + - 38 ) ) * SUM( + 92 ) + + - 6 AS col2
----
-95
3490

skipif mysql # not compatible
query II rowsort label-803
SELECT - ( 95 ) AS col1, + ( - MIN ( DISTINCT + - 38 ) ) * SUM ( + 92 ) + + - 6 AS col2
----
-95
3490

query I rowsort
SELECT - ( - COALESCE ( - 27, - 80, 69 ) )
----
-27

query I rowsort
SELECT ALL 35 * 6 * - - 11 * 23 AS col0
----
53130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-806
SELECT + COALESCE ( + 94, + COUNT( * ) * + + 21 * COUNT( * ) * 70 * + 68 + + ( - 76 ) + AVG ( + 98 ) ) * CAST( NULL AS DECIMAL ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT + COALESCE ( + 94, + COUNT ( * ) * + + 21 * COUNT ( * ) * 70 * + 68 + + ( - 76 ) + AVG ( + 98 ) ) * CAST ( NULL AS REAL ) + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-807
SELECT + CAST( NULL AS SIGNED ) * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT + CAST ( NULL AS INTEGER ) * 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT - ( 11 ) AS col1, + SUM( 10 ) * - CASE - 30 WHEN 23 - - 92 THEN + 83 * 20 - + 54 END - 10 AS col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-808
SELECT - ( 11 ) AS col1, + SUM ( 10 ) * - CASE - 30 WHEN 23 - - 92 THEN + 83 * 20 - + 54 END - 10 AS col2
----
-11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT - 34 + - CAST( - 53 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-809
SELECT - 34 + - CAST ( - 53 AS INTEGER )
----
19

query II rowsort
SELECT + + 39 * 25, 4 AS col2
----
975
4

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - + COUNT( * ) * 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-811
SELECT - + COUNT ( * ) * 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT DISTINCT + MIN( ALL - + 65 ) AS col2, - 81
----
-65
-81

skipif mysql # not compatible
query II rowsort label-812
SELECT DISTINCT + MIN ( ALL - + 65 ) AS col2, - 81
----
-65
-81

query I rowsort
SELECT DISTINCT 52 * + ( 57 ) + - + 43 AS col2
----
2921

query II rowsort
SELECT + 95 + - 7, + 80 AS col2
----
88
80

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT + COUNT( DISTINCT - + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-815
SELECT + COUNT ( DISTINCT - + 11 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT - 6 DIV 58 + - 51 + NULLIF ( - 96, + ( + + 8 ) ) DIV 64 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-816
SELECT - 6 / 58 + - 51 + NULLIF ( - 96, + ( + + 8 ) ) / 64 AS col1
----
-52

query I rowsort
SELECT + 75 * 9 * - 28 AS col0
----
-18900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-818
SELECT - + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + 97 ) + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT - + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + 97 ) + + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT - - 46 * COUNT( * ) * + 2 * + 34 DIV + COUNT( * ) AS col1
----
3128

skipif mysql # not compatible
query I rowsort label-819
SELECT - - 46 * COUNT ( * ) * + 2 * + 34 / + COUNT ( * ) AS col1
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL - - COUNT( * ) * ( + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - - COUNT ( * ) * ( + 48 ) AS col0
----
48

query I rowsort
SELECT - 25 * - - 38
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + MIN( ( ( + 37 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-822
SELECT + MIN ( ( ( + 37 ) ) )
----
37

query I rowsort
SELECT ALL - 5 * 82 + - 55 col1
----
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + MIN( DISTINCT + ( + 42 ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-824
SELECT + MIN ( DISTINCT + ( + 42 ) ) AS col2
----
42

query I rowsort
SELECT ALL + ( - - 21 ) AS col2
----
21

query I rowsort
SELECT NULLIF ( 35, - + AVG ( - 64 ) ) AS col0
----
35

query I rowsort
SELECT NULLIF ( - 49, - 10 )
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( 55, + - 80 * 65 + + 81 )
----
55

query I rowsort
SELECT - 90 * - 66 * - 11 * - 10 * - ( + 90 ) - 62 * + 20
----
-58807240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-830
SELECT CASE - + CAST( 80 AS DECIMAL ) WHEN - - ( 13 ) THEN - 26 * - + 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT CASE - + CAST ( 80 AS REAL ) WHEN - - ( 13 ) THEN - 26 * - + 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL CASE + + 60 WHEN - 17 / + 96 THEN + 83 * + COUNT( * ) END * + + 63 + - - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL CASE + + 60 WHEN - 17 / + 96 THEN + 83 * + COUNT ( * ) END * + + 63 + - - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL 89 * - + CASE COUNT( * ) WHEN 76 + - 98 THEN - 48 * - - 12 + + 23 + - 34 END / - COALESCE ( - 49, + 12 * + COUNT( * ) * + 11 + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 89 * - + CASE COUNT ( * ) WHEN 76 + - 98 THEN - 48 * - - 12 + + 23 + - 34 END / - COALESCE ( - 49, + 12 * + COUNT ( * ) * + 11 + 73 ) AS col0
----
NULL

query I rowsort
SELECT + 95 * - COALESCE ( + 51, - 86 ) AS col2
----
-4845

query I rowsort
SELECT DISTINCT - 12 * + 16 AS col0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT SUM( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-835
SELECT SUM ( DISTINCT - 72 )
----
-72

query I rowsort
SELECT ALL - 94 * + 96 AS col0
----
-9024

query II rowsort
SELECT 58 + + 43 + + - 78, + ( 11 ) + + - 46 col2
----
23
-35

query I rowsort
SELECT 94 - + + 1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 65 * - COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-839
SELECT 65 * - COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT 84 DIV + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-840
SELECT 84 / + COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT COUNT( 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT COUNT ( 47 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT - 84 + ( - + CAST( NULL AS SIGNED ) ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT - 84 + ( - + CAST ( NULL AS INTEGER ) ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ( + MAX( ALL + + 15 ) ) col1
----
15

skipif mysql # not compatible
query I rowsort label-843
SELECT ( + MAX ( ALL + + 15 ) ) col1
----
15

query II rowsort
SELECT ALL + 72 col2, 43 + + 70 + - 93 col0
----
72
20

query I rowsort
SELECT - 51 + - 5
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-846
SELECT ALL 53 AS col2, CASE - 55 WHEN - CAST( NULL AS DECIMAL ) + - 10 THEN NULL WHEN - + CAST( + 95 AS SIGNED ) * - MIN( DISTINCT - + 45 ) + + NULLIF ( COUNT( * ), + 47 + - - 32 * - ( 33 ) + ( + 34 ) * + 14 ) + + + 68 - - 65 * - 73 * - 6 * + 6 + - NULLIF ( - 72, + + 97 ) THEN + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX( + 38 + + 83 ) * + 70 END + - 3 * 60 ELSE NULL END * COUNT( - 90 + 47 / + 0 )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-846
SELECT ALL 53 AS col2, CASE - 55 WHEN - CAST ( NULL AS REAL ) + - 10 THEN NULL WHEN - + CAST ( + 95 AS INTEGER ) * - MIN ( DISTINCT - + 45 ) + + NULLIF ( COUNT ( * ), + 47 + - - 32 * - ( 33 ) + ( + 34 ) * + 14 ) + + + 68 - - 65 * - 73 * - 6 * + 6 + - NULLIF ( - 72, + + 97 ) THEN + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX ( + 38 + + 83 ) * + 70 END + - 3 * 60 ELSE NULL END * COUNT ( - 90 + 47 / + 0 )
----
53
NULL

query I rowsort
SELECT - + ( - - 11 )
----
-11

query I rowsort
SELECT + ( 87 ) + ( - ( - ( + 69 ) ) ) + + 34
----
190

query I rowsort
SELECT 54 * + + NULLIF ( 43, - 73 ) * + 22 AS col1
----
51084

query I rowsort
SELECT + 43 * + + 58 + + 94
----
2588

query I rowsort
SELECT ALL 13 + - 60 + - - 93 + + 67 * ( - 9 )
----
-557

query I rowsort
SELECT 85 - - + 73 + - 36 * - 86 * - 27 - 75 * 21 col2
----
-85009

query I rowsort
SELECT + + ( - 7 ) col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-854
SELECT ALL CAST( NULL AS DECIMAL ) + + 86 + + 24 + + - 1 * + - MIN( ALL - + 23 ) * - 70 + - - 53 / - 80 * - 68 AS col2, - COALESCE ( 11, 85 + - 18 + + CAST( - + 14 AS SIGNED ) ) AS col1
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-854
SELECT ALL CAST ( NULL AS REAL ) + + 86 + + 24 + + - 1 * + - MIN ( ALL - + 23 ) * - 70 + - - 53 / - 80 * - 68 AS col2, - COALESCE ( 11, 85 + - 18 + + CAST ( - + 14 AS INTEGER ) ) AS col1
----
NULL
-11

query I rowsort
SELECT ALL 70 * + 43 col2
----
3010

query I rowsort
SELECT DISTINCT - 53 + NULLIF ( + - 63, + 40 + + - 76 )
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-857
SELECT ALL - + CASE - 21 WHEN - COUNT( * ) THEN - 74 * - - ( 46 ) + - COUNT( * ) + 86 DIV + 31 ELSE ( - 43 ) * - 42 + 61 * - 66 + 17 END + ( + + 74 ) col1
----
2277

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - + CASE - 21 WHEN - COUNT ( * ) THEN - 74 * - - ( 46 ) + - COUNT ( * ) + 86 / + 31 ELSE ( - 43 ) * - 42 + 61 * - 66 + 17 END + ( + + 74 ) col1
----
2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT DISTINCT - CAST( - 21 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) AS col1
----
21

query I rowsort
SELECT DISTINCT 97 + 32 AS col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT + COUNT( * ) * - 79 + - COUNT( * ) + + 81 * - 95 + - - 59 * + 24 + - 50, - 59 AS col2
----
-6409
-59

skipif mysql # not compatible
query II rowsort label-860
SELECT + COUNT ( * ) * - 79 + - COUNT ( * ) + + 81 * - 95 + - - 59 * + 24 + - 50, - 59 AS col2
----
-6409
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - CASE NULLIF ( - + 58, + COUNT( * ) ) WHEN - 16 * + ( - ( 79 ) ) / - 88 + + 14 * + COUNT( * ) + ( NULLIF ( + - 11, + 44 - ( + - 26 ) + - 54 / - 69 * 71 - - 53 ) ) * + - 75 * - 11 * - + SUM( DISTINCT + + 36 ) THEN + 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - CASE NULLIF ( - + 58, + COUNT ( * ) ) WHEN - 16 * + ( - ( 79 ) ) / - 88 + + 14 * + COUNT ( * ) + ( NULLIF ( + - 11, + 44 - ( + - 26 ) + - 54 / - 69 * 71 - - 53 ) ) * + - 75 * - 11 * - + SUM ( DISTINCT + + 36 ) THEN + 43 END col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 55, 8 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - 88 + + 83 + - MIN( 20 )
----
-25

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - 88 + + 83 + - MIN ( 20 )
----
-25

query I rowsort
SELECT ALL + 25 * 41 AS col1
----
1025

query I rowsort
SELECT 59 + 8
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT DISTINCT + 71 - - 94 + + 75 * + ( - + COUNT( + 55 ) ) AS col1, + COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-866
SELECT DISTINCT + 71 - - 94 + + 75 * + ( - + COUNT ( + 55 ) ) AS col1, + COUNT ( * )
----
90
1

query I rowsort
SELECT 94 + + 68 * + 70
----
4854

query II rowsort
SELECT - 65 AS col0, 85
----
-65
85

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT - 16 AS col2, + COUNT( * ) + 93 AS col1
----
-16
94

skipif mysql # not compatible
query II rowsort label-869
SELECT - 16 AS col2, + COUNT ( * ) + 93 AS col1
----
-16
94

query I rowsort
SELECT 3 + + 43 + - - 69 * - 10
----
-644

query I rowsort
SELECT 74 * 94 col1
----
6956

query II rowsort
SELECT ALL 29, 92 col2
----
29
92

query I rowsort
SELECT 0 * - 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT - + ( - NULLIF ( 27, - - ( - 61 ) * + 37 * + 15 / CAST( + MAX( - - 39 ) AS SIGNED ) + 91 - - 72 * - MIN( DISTINCT - 6 ) * 15 * - 69 + + CAST( 2 AS SIGNED ) * + 67 / 31 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-874
SELECT - + ( - NULLIF ( 27, - - ( - 61 ) * + 37 * + 15 / CAST ( + MAX ( - - 39 ) AS INTEGER ) + 91 - - 72 * - MIN ( DISTINCT - 6 ) * 15 * - 69 + + CAST ( 2 AS INTEGER ) * + 67 / 31 ) ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT DISTINCT 42 AS col0, 77 DIV - + 89
----
42
0

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT 42 AS col0, 77 / - + 89
----
42
0

query I rowsort
SELECT ( 13 ) + + COALESCE ( + 43, + 87 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT - - 19 * + + 0 * ( - COUNT( * ) ) * 99 DIV NULLIF ( - + COALESCE ( + 68, + - AVG ( ALL - 3 ), + 25, 75 ), - COUNT( * ) + MAX( - + 42 ) + - - 89 DIV + + SUM( DISTINCT + + 54 ) * - CAST( + MIN( DISTINCT 34 ) AS DECIMAL ) + + - 93 + - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - - 19 * + + 0 * ( - COUNT ( * ) ) * 99 / NULLIF ( - + COALESCE ( + 68, + - AVG ( ALL - 3 ), + 25, 75 ), - COUNT ( * ) + MAX ( - + 42 ) + - - 89 / + + SUM ( DISTINCT + + 54 ) * - CAST ( + MIN ( DISTINCT 34 ) AS REAL ) + + - 93 + - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT - COUNT( * ) + ( 46 ) + - 7 DIV + 94 * 62 - + 2 * - 9
----
63

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - COUNT ( * ) + ( 46 ) + - 7 / + 94 * 62 - + 2 * - 9
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT + 18 * - 0 DIV + 48 + COALESCE ( + COUNT( * ), 51 - + 27 + COUNT( ALL - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-879
SELECT + 18 * - 0 / + 48 + COALESCE ( + COUNT ( * ), 51 - + 27 + COUNT ( ALL - 10 ) )
----
1

query II rowsort
SELECT - 71, + 16 * 52 AS col1
----
-71
832

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT - COALESCE ( + - 28, + 94 ) DIV + - COALESCE ( + 21, + + 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-881
SELECT - COALESCE ( + - 28, + 94 ) / + - COALESCE ( + 21, + + 78 ) AS col0
----
-1

query I rowsort
SELECT ALL 97 + - 32 * 4
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL 1 + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 1 + COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - 85 - - 90 * - 78 - - COUNT( * ) AS col2
----
-7104

skipif mysql # not compatible
query I rowsort label-884
SELECT - 85 - - 90 * - 78 - - COUNT ( * ) AS col2
----
-7104

query I rowsort
SELECT + 94 + + 98
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL + ( + 39 ) + COALESCE ( + + COUNT( * ), + 83 + COUNT( * ), - + 4 * + 35 ) + + - ( 62 )
----
-22

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + ( + 39 ) + COALESCE ( + + COUNT ( * ), + 83 + COUNT ( * ), - + 4 * + 35 ) + + - ( 62 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT ALL - 49, + 39 * - - COUNT( * ) + - 78 col1
----
-49
-39

skipif mysql # not compatible
query II rowsort label-887
SELECT ALL - 49, + 39 * - - COUNT ( * ) + - 78 col1
----
-49
-39

query I rowsort
SELECT ALL + - 68 * 82 + ( + 16 )
----
-5560

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT MAX( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-889
SELECT MAX ( - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT + - MIN( - 19 ) DIV 41 - - - NULLIF ( 36, - 7 ) + - + 26 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-890
SELECT + - MIN ( - 19 ) / 41 - - - NULLIF ( 36, - 7 ) + - + 26 AS col2
----
-62

query I rowsort
SELECT DISTINCT + + 37 * 60 + 53 AS col1
----
2273

query I rowsort
SELECT - 43 + 9 * ( + + 4 )
----
-7

query I rowsort
SELECT + 19 * + 93 + - 74 AS col1
----
1693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-894
SELECT 52 * + 62 AS col1, - 62 * - NULLIF ( + 11, 47 + - + COUNT( * ) ) + - 37 * - + ( + NULLIF ( - - 74, + 84 ) ) + COUNT( * ) + 65 - ( CAST( NULL AS SIGNED ) ) + - - 89 * - 85 + - + 29
----
3224
NULL

skipif mysql # not compatible
query II rowsort label-894
SELECT 52 * + 62 AS col1, - 62 * - NULLIF ( + 11, 47 + - + COUNT ( * ) ) + - 37 * - + ( + NULLIF ( - - 74, + 84 ) ) + COUNT ( * ) + 65 - ( CAST ( NULL AS INTEGER ) ) + - - 89 * - 85 + - + 29
----
3224
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MIN( ALL - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-895
SELECT MIN ( ALL - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT DISTINCT 25 * NULLIF ( - - 56, - 3 - - + COUNT( * ) / + 82 ) * 74, 6 AS col1
----
103600
6

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT 25 * NULLIF ( - - 56, - 3 - - + COUNT ( * ) / + 82 ) * 74, 6 AS col1
----
103600
6

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT ALL 12 DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL 12 / + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + COALESCE ( 20, 39, + COALESCE ( 17, - 61 + - COUNT( - 87 ) * - NULLIF ( - COUNT( * ), 87 + 62 / - COUNT( * ) / - - CASE 26 WHEN 67 / + + 59 + + - 0 THEN + 30 WHEN + 33 THEN NULL END ) + - COALESCE ( + COUNT( * ), 71 ) ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-898
SELECT + COALESCE ( 20, 39, + COALESCE ( 17, - 61 + - COUNT ( - 87 ) * - NULLIF ( - COUNT ( * ), 87 + 62 / - COUNT ( * ) / - - CASE 26 WHEN 67 / + + 59 + + - 0 THEN + 30 WHEN + 33 THEN NULL END ) + - COALESCE ( + COUNT ( * ), 71 ) ) ) AS col1
----
20

query I rowsort
SELECT 58 * 43 - + 40
----
2454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-900
SELECT ALL 76 DIV - 12 AS col2, - 72 * + - CASE - COUNT( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 DIV - + CAST( + NULLIF ( 1, - NULLIF ( - COUNT( * ), - 7 * + + 31 + + - 33 ) ) AS SIGNED ) + 93 ) WHEN NULLIF ( - 51, 98 * + - ( CAST( - 63 AS SIGNED ) ) ) THEN NULL END
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL 76 / - 12 AS col2, - 72 * + - CASE - COUNT ( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 / - + CAST ( + NULLIF ( 1, - NULLIF ( - COUNT ( * ), - 7 * + + 31 + + - 33 ) ) AS INTEGER ) + 93 ) WHEN NULLIF ( - 51, 98 * + - ( CAST ( - 63 AS INTEGER ) ) ) THEN NULL END
----
-6
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-901
SELECT - ( MAX( CAST( NULL AS DECIMAL ) ) ) - ( - + MIN( + 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT - ( MAX ( CAST ( NULL AS REAL ) ) ) - ( - + MIN ( + 17 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL SUM( ( + - 32 ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL SUM ( ( + - 32 ) ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT - 6 DIV + + 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-903
SELECT - 6 / + + 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT 11 + NULLIF ( - ( - COUNT( * ) ), 50 ) * 12
----
23

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT 11 + NULLIF ( - ( - COUNT ( * ) ), 50 ) * 12
----
23

query I rowsort
SELECT - 82 * 28 * - 12
----
27552

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT - 41 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT - 41 / + 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + - COUNT( * ) + + - 46 + - - 56 + 34 + - MAX( ALL CAST( NULL AS SIGNED ) ) - + - 56 * - COUNT( * ) * - 26 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + - COUNT ( * ) + + - 46 + - - 56 + 34 + - MAX ( ALL CAST ( NULL AS INTEGER ) ) - + - 56 * - COUNT ( * ) * - 26 * + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 67 * + 35 col1, 56
----
2345
56

query I rowsort
SELECT + - 16 + + + ( - + 82 ) col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL COUNT( - - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL COUNT ( - - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - SUM( + 83 ) + + 0 + 43
----
-40

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - SUM ( + 83 ) + + 0 + 43
----
-40

query I rowsort
SELECT - 69 + - ( - + 55 ) * + + 15
----
756

query I rowsort
SELECT - - COALESCE ( 41, - ( - + 48 ), + - 50 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - + 12 + + MAX( DISTINCT - 66 ) * + + COUNT( * ) * - ( - - 89 )
----
5862

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - + 12 + + MAX ( DISTINCT - 66 ) * + + COUNT ( * ) * - ( - - 89 )
----
5862

query I rowsort
SELECT ALL 31 + + ( + 42 ) + - 46 col1
----
27

query I rowsort
SELECT + 18 * - 89 col0
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + MAX( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-917
SELECT + MAX ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT ALL + COUNT( * ) AS col0, - 33 * COUNT( * ) * - 16 AS col2
----
1
528

skipif mysql # not compatible
query II rowsort label-918
SELECT ALL + COUNT ( * ) AS col0, - 33 * COUNT ( * ) * - 16 AS col2
----
1
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL + 71 DIV - MIN( - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + 71 / - MIN ( - 63 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT + CAST( - - ( - COUNT( * ) ) AS SIGNED ) - 79
----
-80

skipif mysql # not compatible
query I rowsort label-920
SELECT + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) - 79
----
-80

query I rowsort
SELECT 62 * + 97 + - 24 col2
----
5990

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT 62 * - 12 + + + COUNT( * ) + - - 29 * + 57 * + COUNT( * ) + - 60 - + - 70 * - - 21 col2
----
2320

skipif mysql # not compatible
query I rowsort label-922
SELECT 62 * - 12 + + + COUNT ( * ) + - - 29 * + 57 * + COUNT ( * ) + - 60 - + - 70 * - - 21 col2
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT + 1 * - CAST( NULL AS SIGNED ) * - 11 * + + 85 * 48 * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT + 1 * - CAST ( NULL AS INTEGER ) * - 11 * + + 85 * 48 * + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL COUNT( * ) * + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL COUNT ( * ) * + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + NULLIF ( + - 10, 62 + + + SUM( 64 ) ) + + + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-925
SELECT + NULLIF ( + - 10, 62 + + + SUM ( 64 ) ) + + + COUNT ( * ) AS col1
----
-9

query II rowsort
SELECT DISTINCT + 55, + 89 col2
----
55
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 74
----
NULL

query I rowsort
SELECT - ( + 68 ) * - - 88 + + 47 - - - 74 + 83 + - 52
----
-5980

query I rowsort
SELECT + ( + 22 ) AS col1
----
22

query I rowsort
SELECT + 41 + - 73 AS col1
----
-32

query I rowsort
SELECT ALL + 49 * + 33 * 8 + + 98 AS col2
----
13034

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT ALL - 88 * - 26 + - + 70 - + + 9 + 20 DIV - 81 AS col2
----
2209

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - 88 * - 26 + - + 70 - + + 9 + 20 / - 81 AS col2
----
2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT + CAST( NULL AS SIGNED ) * 27 + MAX( ALL - 4 ) * - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT + CAST ( NULL AS INTEGER ) * 27 + MAX ( ALL - 4 ) * - - 24
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-934
SELECT - 73 + 83 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT - 73 + 83 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT - NULLIF ( - + CAST( - + 17 AS SIGNED ), + + COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-935
SELECT - NULLIF ( - + CAST ( - + 17 AS INTEGER ), + + COUNT ( * ) ) AS col2
----
-17

query I rowsort
SELECT DISTINCT + - 31 * 11 + - NULLIF ( - + 53, 77 ) * - + 28
----
-1825

query II rowsort
SELECT ALL - + 65 * 47 + - - 78 AS col0, + 34 AS col1
----
-2977
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-938
SELECT ALL + + 66 * 88 * - 53 * - 72 + + 96 + + COALESCE ( + 44, 13 DIV COUNT( * ), COUNT( * ) DIV + 29 - - - 45 ) * 73
----
22166636

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + + 66 * 88 * - 53 * - 72 + + 96 + + COALESCE ( + 44, 13 / COUNT ( * ), COUNT ( * ) / + 29 - - - 45 ) * 73
----
22166636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT + - 79 * - 10 + - 10 * CAST( 94 AS SIGNED )
----
-150

skipif mysql # not compatible
query I rowsort label-939
SELECT + - 79 * - 10 + - 10 * CAST ( 94 AS INTEGER )
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT ALL - 74 DIV + - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - 74 / + - COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL + + CASE + + 51 WHEN - 19 THEN + 73 * - - 10 END * 52 col1, 45 * COUNT( * ) AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL + + CASE + + 51 WHEN - 19 THEN + 73 * - - 10 END * 52 col1, 45 * COUNT ( * ) AS col0
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT ( - + COUNT( * ) ) + 4 * + 93 + - CAST( NULL AS SIGNED ) + - - 98 * 67 / + 81 + + - ( + 46 ) + + 53 * - - CAST( NULL AS SIGNED ) / - - 84 / COALESCE ( + - ( 80 ), + + MIN( DISTINCT + 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT ( - + COUNT ( * ) ) + 4 * + 93 + - CAST ( NULL AS INTEGER ) + - - 98 * 67 / + 81 + + - ( + 46 ) + + 53 * - - CAST ( NULL AS INTEGER ) / - - 84 / COALESCE ( + - ( 80 ), + + MIN ( DISTINCT + 94 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT COALESCE ( + 22, - - MIN( + 78 ) + + + 86, - + 40 * - - SUM( DISTINCT + 4 ) * + + 8 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT COALESCE ( + 22, - - MIN ( + 78 ) + + + 86, - + 40 * - - SUM ( DISTINCT + 4 ) * + + 8 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT - - ( - - 62 ) / - 35 * + 94 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT - - ( - - 62 ) / - 35 * + 94 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 24 + 81 AS col2
----
57

query I rowsort
SELECT DISTINCT + 66 * - 19
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-947
SELECT DISTINCT - - 76 DIV - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT - - 76 / - COUNT ( * )
----
-76

query I rowsort
SELECT ALL + 44 - 49
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT ALL + 33 * + + 50 DIV COUNT( * ) * - 20 AS col2
----
-33000

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 33 * + + 50 / COUNT ( * ) * - 20 AS col2
----
-33000

query I rowsort
SELECT NULLIF ( 4, - 1 * ( + 87 ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT DISTINCT - 81 AS col1, + COUNT( * ) * 54 col2
----
-81
54

skipif mysql # not compatible
query II rowsort label-951
SELECT DISTINCT - 81 AS col1, + COUNT ( * ) * 54 col2
----
-81
54

query I rowsort
SELECT DISTINCT COALESCE ( + + 78, - + 76 + + ( - ( 35 ) ) )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL 29, CASE - 5 WHEN + MAX( - 40 ) * + - 26 - + 31 THEN - 14 WHEN - 40 THEN NULL ELSE 89 END * + 34 AS col1
----
29
3026

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL 29, CASE - 5 WHEN + MAX ( - 40 ) * + - 26 - + 31 THEN - 14 WHEN - 40 THEN NULL ELSE 89 END * + 34 AS col1
----
29
3026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT - 51 AS col0, - 83 + CAST( NULL AS SIGNED ) * - 20 AS col1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-954
SELECT - 51 AS col0, - 83 + CAST ( NULL AS INTEGER ) * - 20 AS col1
----
-51
NULL

query I rowsort
SELECT ALL - + 34 - + NULLIF ( 23, + + 26 * 26 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT - 78 + + 43 + 74 + 39 DIV - - 93 * + + NULLIF ( - 82, - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-956
SELECT - 78 + + 43 + 74 + 39 / - - 93 * + + NULLIF ( - 82, - COUNT ( * ) ) AS col0
----
39

query I rowsort
SELECT ALL + 66 * + + 5 AS col0
----
330

query II rowsort
SELECT ALL ( - - 89 ), - 92 * - + 90 AS col2
----
89
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + MAX( DISTINCT - + 44 ) * + - 19 AS col1
----
836

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + MAX ( DISTINCT - + 44 ) * + - 19 AS col1
----
836

query I rowsort
SELECT ALL + 67 * - 38 * - + 45
----
114570

query I rowsort
SELECT 58 * 90 * - 71 AS col0
----
-370620

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT 3 + + COUNT( * ) AS col1, 63
----
4
63

skipif mysql # not compatible
query II rowsort label-962
SELECT 3 + + COUNT ( * ) AS col1, 63
----
4
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL - NULLIF ( - + CAST( - + ( + 63 ) AS SIGNED ), - + 51 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - NULLIF ( - + CAST ( - + ( + 63 ) AS INTEGER ), - + 51 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-964
SELECT ALL SUM( DISTINCT 43 ) + CASE - - 94 WHEN COUNT( * ) + - + 68 THEN + 9 * - - COUNT( * ) + - 42 WHEN 65 THEN + - 50 * 18 END + - - CASE - - 52 WHEN - - 0 THEN - COUNT( * ) ELSE - 89 END + + 42 / + + 50 AS col2, - 63 AS col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL SUM ( DISTINCT 43 ) + CASE - - 94 WHEN COUNT ( * ) + - + 68 THEN + 9 * - - COUNT ( * ) + - 42 WHEN 65 THEN + - 50 * 18 END + - - CASE - - 52 WHEN - - 0 THEN - COUNT ( * ) ELSE - 89 END + + 42 / + + 50 AS col2, - 63 AS col2
----
NULL
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT 3 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT 3 / + 28
----
0

query I rowsort
SELECT ALL ( - + 64 ) + + ( - + 52 ) * - COALESCE ( + - 69, 67 ) * + + 64 AS col2
----
-229696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT ALL - ( - - CAST( + 35 AS SIGNED ) ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL - ( - - CAST ( + 35 AS INTEGER ) ) col1
----
-35

query I rowsort
SELECT ALL - 4 + 29 AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT 93 + + 49, + COUNT( * ) AS col0
----
142
1

skipif mysql # not compatible
query II rowsort label-969
SELECT 93 + + 49, + COUNT ( * ) AS col0
----
142
1

query I rowsort
SELECT DISTINCT 58 + + 32 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + - CASE - 9 WHEN 26 - - 47 * NULLIF ( + 28, + COUNT( * ) - - + 29 ) * - + CASE + 3 WHEN + - 45 * - 26 THEN + ( - - 31 ) / - COALESCE ( 50, + - COUNT( * ) * - MAX( DISTINCT ( + - 43 ) ) ) * - 10 END THEN + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT + - CASE - 9 WHEN 26 - - 47 * NULLIF ( + 28, + COUNT ( * ) - - + 29 ) * - + CASE + 3 WHEN + - 45 * - 26 THEN + ( - - 31 ) / - COALESCE ( 50, + - COUNT ( * ) * - MAX ( DISTINCT ( + - 43 ) ) ) * - 10 END THEN + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT + 53 * + + 45 - 66 - - - 90 AS col2
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + COUNT( * ) * - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + COUNT ( * ) * - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT ALL - COALESCE ( + + ( - - 57 ), MAX( DISTINCT + 64 ) DIV + 45, - 70 ) + + + 51
----
-6

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - COALESCE ( + + ( - - 57 ), MAX ( DISTINCT + 64 ) / + 45, - 70 ) + + + 51
----
-6

query I rowsort
SELECT ALL + + 57 + - 77 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT - + MIN( - NULLIF ( - 36, - 30 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-976
SELECT - + MIN ( - NULLIF ( - 36, - 30 ) )
----
-36

query I rowsort
SELECT ALL 21 - 14 * - + 45 * + + 62 * - - 8
----
312501

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT COUNT( * ) * + - MAX( DISTINCT - - 28 ) * + - 35 AS col1, NULLIF ( + 24, + - 37 ) * 46 col0
----
980
1104

skipif mysql # not compatible
query II rowsort label-978
SELECT COUNT ( * ) * + - MAX ( DISTINCT - - 28 ) * + - 35 AS col1, NULLIF ( + 24, + - 37 ) * 46 col0
----
980
1104

query II rowsort
SELECT 47 + + 7 AS col1, 26 + + - COALESCE ( + ( - - 98 ), + - 91 )
----
54
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT + 87 - - 55 DIV COUNT( * ) * + 97 + - NULLIF ( COUNT( * ), + MAX( DISTINCT - 10 ) * - - 16 ) col2
----
5421

skipif mysql # not compatible
query I rowsort label-980
SELECT + 87 - - 55 / COUNT ( * ) * + 97 + - NULLIF ( COUNT ( * ), + MAX ( DISTINCT - 10 ) * - - 16 ) col2
----
5421

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL + COALESCE ( + - 36, - + 93 + 40, - 80 ) - + - 61 + + - 26 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + COALESCE ( + - 36, - + 93 + 40, - 80 ) - + - 61 + + - 26 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT - 10 * 6 AS col0, + COUNT( * ) - - + 44 - - - 24 * 2 * - + 98
----
-60
4749

skipif mysql # not compatible
query II rowsort label-982
SELECT - 10 * 6 AS col0, + COUNT ( * ) - - + 44 - - - 24 * 2 * - + 98
----
-60
4749

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-983
SELECT DISTINCT + 68 DIV + 60 + + COUNT( DISTINCT - 41 ), + 25 col2
----
2
25

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + 68 / + 60 + + COUNT ( DISTINCT - 41 ), + 25 col2
----
2
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-984
SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT( * ) THEN - + COUNT( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST( ( - 82 ) AS SIGNED ) ) ELSE NULL END AS col1
----
409920
NULL

skipif mysql # not compatible
query II rowsort label-984
SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT ( * ) THEN - + COUNT ( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST ( ( - 82 ) AS INTEGER ) ) ELSE NULL END AS col1
----
409920
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 76 * + 25 + - SUM( 69 ) - + ( + + 62 ) * + 39 * - 74 AS col2
----
176963

skipif mysql # not compatible
query I rowsort label-985
SELECT - 76 * + 25 + - SUM ( 69 ) - + ( + + 62 ) * + 39 * - 74 AS col2
----
176963

query I rowsort
SELECT DISTINCT + 19 * + 73 * + + 6 AS col0
----
8322

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT ALL 61 * + + COUNT( * ) * + + 3 AS col1, 21
----
183
21

skipif mysql # not compatible
query II rowsort label-987
SELECT ALL 61 * + + COUNT ( * ) * + + 3 AS col1, 21
----
183
21

query II rowsort
SELECT - 89 AS col1, 54
----
-89
54

query I rowsort
SELECT 3 * 92 AS col2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT - MAX( DISTINCT - - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - MAX ( DISTINCT - - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 95 + 54 AS col0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL + ( + 12 ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + ( + 12 ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 36 + ( + 81 ) - + 58
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT COALESCE ( ( + COUNT( * ) ), 37 ) * - 22 + 77, 33 + + ( + 29 ) AS col2
----
55
62

skipif mysql # not compatible
query II rowsort label-994
SELECT COALESCE ( ( + COUNT ( * ) ), 37 ) * - 22 + 77, 33 + + ( + 29 ) AS col2
----
55
62

query I rowsort
SELECT ALL - CASE 59 WHEN - 98 * - 94 THEN NULL ELSE - + 10 - + 92 END AS col0
----
102

query I rowsort
SELECT + 74 * 40 + + 65 + + 66
----
3091

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT 37 * + - 85 + + 72, + MAX( + 63 ) AS col1
----
-3073
63

skipif mysql # not compatible
query II rowsort label-997
SELECT 37 * + - 85 + + 72, + MAX ( + 63 ) AS col1
----
-3073
63

query I rowsort
SELECT ALL - 0 + - + 33 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT 9 * 35 DIV 22 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-999
SELECT 9 * 35 / 22 AS col0
----
14

query I rowsort
SELECT 20 * - 86 * 67
----
-115240

query I rowsort
SELECT ALL + 77 - + - 99 AS col1
----
176

query I rowsort
SELECT + + ( - 63 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1003
SELECT ALL - CAST( NULL AS SIGNED ), - 47 col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL - CAST ( NULL AS INTEGER ), - 47 col1
----
NULL
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL - 8 DIV COALESCE ( 46, + - 12 * 24 + + 90, - 96 + + 4 + - 98 + 92 * - + 19 * 82 ) + - - 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 8 / COALESCE ( 46, + - 12 * 24 + + 90, - 96 + + 4 + - 98 + 92 * - + 19 * 82 ) + - - 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-1005
SELECT + MAX( DISTINCT 36 ) * + COALESCE ( - 64, - - COUNT( * ) ) + - 84 + - ( ( + 58 ) ) - + 0, - ( 64 ) * MAX( 34 ) * + - 72 - - 8 * 79 + 59 col2, - COUNT( * ) * + 29 AS col0
----
-2446
157363
-29

skipif mysql # not compatible
query III rowsort label-1005
SELECT + MAX ( DISTINCT 36 ) * + COALESCE ( - 64, - - COUNT ( * ) ) + - 84 + - ( ( + 58 ) ) - + 0, - ( 64 ) * MAX ( 34 ) * + - 72 - - 8 * 79 + 59 col2, - COUNT ( * ) * + 29 AS col0
----
-2446
157363
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT SUM( - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT SUM ( - - 16 )
----
16

query I rowsort
SELECT ALL 77 * - - 4 AS col2
----
308

query I rowsort
SELECT 69 + + 33 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - 39 * + COUNT( * ) * + 44 * COUNT( * ) AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - 39 * + COUNT ( * ) * + 44 * COUNT ( * ) AS col2
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT CASE - 53 WHEN ( + 15 ) * + 40 * COUNT( * ) THEN NULL WHEN - COALESCE ( 63, - + ( - COUNT( * ) ) * - 4 ) THEN - - 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT CASE - 53 WHEN ( + 15 ) * + 40 * COUNT ( * ) THEN NULL WHEN - COALESCE ( 63, - + ( - COUNT ( * ) ) * - 4 ) THEN - - 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - - 88 * 1 + - MIN( 77 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - - 88 * 1 + - MIN ( 77 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + - CASE - + COUNT( 12 ) WHEN - 67 + - 59 THEN NULL WHEN 78 THEN 45 ELSE NULL END * + + ( + + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - CASE - + COUNT ( 12 ) WHEN - 67 + - 59 THEN NULL WHEN 78 THEN 45 ELSE NULL END * + + ( + + 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - + 84 + - 80 + + 26 + + COUNT( * )
----
-137

skipif mysql # not compatible
query I rowsort label-1013
SELECT - + 84 + - 80 + + 26 + + COUNT ( * )
----
-137

query I rowsort
SELECT - + 26 - - 68 * + 26
----
1742

query I rowsort
SELECT + 25 + + - ( + 39 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT - SUM( ALL + - CAST( - 19 AS SIGNED ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1016
SELECT - SUM ( ALL + - CAST ( - 19 AS INTEGER ) ) AS col1
----
-19

query I rowsort
SELECT ALL COALESCE ( + + 31, - - 3 ) + + 76
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT + CAST( NULL AS SIGNED ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT + CAST ( NULL AS INTEGER ) + - 94
----
NULL

query I rowsort
SELECT DISTINCT 19 + 19 * - 11
----
-190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1020
SELECT ALL 83 + - + ( + NULLIF ( + + 80, - CASE + 82 WHEN - + ( 41 ) + 2 THEN NULL WHEN - 74 + + MIN( DISTINCT + 71 ) THEN NULL WHEN + 76 THEN + 43 + 99 + 31 * - 69 * 36 END + COUNT( 15 ) + CAST( NULL AS DECIMAL ) * - + CASE COALESCE ( 74, 12, 34 / + - 39 ) WHEN - 24 * + 15 + + + COUNT( * ) + 95 - - + 79 + 64 + - SUM( DISTINCT - ( NULLIF ( - 87, + + NULLIF ( - + 40, 87 * 30 ) ) ) ) + 28 * - 78 THEN NULL WHEN 63 * - 16 THEN - 22 / 39 END + 77 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL 83 + - + ( + NULLIF ( + + 80, - CASE + 82 WHEN - + ( 41 ) + 2 THEN NULL WHEN - 74 + + MIN ( DISTINCT + 71 ) THEN NULL WHEN + 76 THEN + 43 + 99 + 31 * - 69 * 36 END + COUNT ( 15 ) + CAST ( NULL AS REAL ) * - + CASE COALESCE ( 74, 12, 34 / + - 39 ) WHEN - 24 * + 15 + + + COUNT ( * ) + 95 - - + 79 + 64 + - SUM ( DISTINCT - ( NULLIF ( - 87, + + NULLIF ( - + 40, 87 * 30 ) ) ) ) + 28 * - 78 THEN NULL WHEN 63 * - 16 THEN - 22 / 39 END + 77 ) ) AS col2
----
3

query I rowsort
SELECT ALL 95 + + 77 AS col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1022
SELECT DISTINCT COUNT( * ) + + COALESCE ( - + 90, 84 ) DIV - 11 * - - COUNT( * ) col0, + CAST( - - 15 AS SIGNED )
----
9
15

skipif mysql # not compatible
query II rowsort label-1022
SELECT DISTINCT COUNT ( * ) + + COALESCE ( - + 90, 84 ) / - 11 * - - COUNT ( * ) col0, + CAST ( - - 15 AS INTEGER )
----
9
15

query I rowsort
SELECT DISTINCT 13 * 29
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL SUM( + 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL SUM ( + 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT ALL 83 * 15 + - ( - - 56 ) * + CAST( 9 AS SIGNED ) + + + 75 + - 36 - - 63 AS col0
----
843

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL 83 * 15 + - ( - - 56 ) * + CAST ( 9 AS INTEGER ) + + + 75 + - 36 - - 63 AS col0
----
843

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1026
SELECT ALL - 89 * + COUNT( * ) + + ( + 64 ) + - + 73 - - 68 * + + 38 * + CAST( NULL AS DECIMAL ) / + 17 * - NULLIF ( 74, - 66 + + MAX( - 85 ) ) + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - 89 * + COUNT ( * ) + + ( + 64 ) + - + 73 - - 68 * + + 38 * + CAST ( NULL AS REAL ) / + 17 * - NULLIF ( 74, - 66 + + MAX ( - 85 ) ) + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + CASE + + COUNT( * ) WHEN 74 * + 24 + - - 58 THEN + + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT + CASE + + COUNT ( * ) WHEN 74 * + 24 + - - 58 THEN + + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT - 12 + COUNT( * ) AS col0, + 95 AS col1
----
-11
95

skipif mysql # not compatible
query II rowsort label-1028
SELECT - 12 + COUNT ( * ) AS col0, + 95 AS col1
----
-11
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + CASE COUNT( * ) WHEN - 65 THEN + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT + CASE COUNT ( * ) WHEN - 65 THEN + 76 END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 2, 61 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + CASE - 61 WHEN - 95 * + 16 * - + COUNT( * ) / 71 + + + 30 + + 2 + + - 34 - - + 23 * + ( + - 67 ) * - 70 + - 50 + + 47 THEN NULL WHEN + MIN( DISTINCT - + 48 ) * COUNT( * ) + + COUNT( * ) THEN NULL ELSE - 90 END col1
----
-90

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + CASE - 61 WHEN - 95 * + 16 * - + COUNT ( * ) / 71 + + + 30 + + 2 + + - 34 - - + 23 * + ( + - 67 ) * - 70 + - 50 + + 47 THEN NULL WHEN + MIN ( DISTINCT - + 48 ) * COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE - 90 END col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT ALL + + 14 * - - COUNT( * ) + + 64 - 47, COUNT( * ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-1032
SELECT ALL + + 14 * - - COUNT ( * ) + + 64 - 47, COUNT ( * ) AS col1
----
31
1

query I rowsort
SELECT ALL + ( - NULLIF ( + + 23, + 65 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + - SUM( DISTINCT - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + - SUM ( DISTINCT - 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + 57 * COUNT( * ) * - + 91 - - + 77
----
-5110

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + 57 * COUNT ( * ) * - + 91 - - + 77
----
-5110

query I rowsort
SELECT + + 31 - 12 * - - 6 * - 70 AS col1
----
5071

query II rowsort
SELECT + 85 AS col2, 21 AS col1
----
85
21

query I rowsort
SELECT + 86 + ( - 16 )
----
70

query I rowsort
SELECT ALL - 46 * - - 7 AS col2
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT - 95 * CAST( NULL AS SIGNED ) * + COUNT( * ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 95 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1041
SELECT + 86 col0, CAST( NULL AS SIGNED ) * + 91
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT + 86 col0, CAST ( NULL AS INTEGER ) * + 91
----
86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT + COUNT( * ) AS col2, + 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-1042
SELECT + COUNT ( * ) AS col2, + 66 AS col1
----
1
66

query II rowsort
SELECT - 19, 86 AS col1
----
-19
86

query I rowsort
SELECT - - 16 - + - 85 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT + COUNT( * ) AS col2, 2 * + + 79 AS col1
----
1
158

skipif mysql # not compatible
query II rowsort label-1045
SELECT + COUNT ( * ) AS col2, 2 * + + 79 AS col1
----
1
158

query II rowsort
SELECT DISTINCT + 27, 80 AS col0
----
27
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( * ) + + 66 + 33 * + - 36 * + MAX( ( + + 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + 66 + 33 * + - 36 * + MAX ( ( + + 26 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT - + 24 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT - + 24 / + 86 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL + 19 DIV - + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + 19 / - + 63 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT ALL - MAX( DISTINCT - + CAST( + 28 AS SIGNED ) ) + + 31 col1, 82 * + 85 * - CAST( NULL AS SIGNED ) + - MAX( - 64 )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT ALL - MAX ( DISTINCT - + CAST ( + 28 AS INTEGER ) ) + + 31 col1, 82 * + 85 * - CAST ( NULL AS INTEGER ) + - MAX ( - 64 )
----
59
NULL

query II rowsort
SELECT - 43 AS col0, + 96
----
-43
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1052
SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST( NULL AS SIGNED ) + 11 AS col2, - 94 DIV - CAST( + - 88 AS SIGNED ) + - + 14 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-1052
SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST ( NULL AS INTEGER ) + 11 AS col2, - 94 / - CAST ( + - 88 AS INTEGER ) + - + 14 AS col2
----
NULL
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1053
SELECT ALL 4 AS col0, - CAST( 46 AS SIGNED )
----
4
-46

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL 4 AS col0, - CAST ( 46 AS INTEGER )
----
4
-46

query I rowsort
SELECT + 84 - + 29 - + 66 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL 8 + - - 54 + + - 84 - - MIN( - - 34 )
----
12

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 8 + - - 54 + + - 84 - - MIN ( - - 34 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1056
SELECT ALL CASE - AVG ( DISTINCT - 2 ) WHEN 25 * - - 63 + - 75 + - 57 * - - NULLIF ( + CAST( - - 13 AS SIGNED ), - 60 ) THEN NULL WHEN + - 24 / - + CASE - ( + 33 ) WHEN + 52 - + CAST( - 13 AS DECIMAL ) * + 71 * + 29 THEN NULL WHEN + 56 + + 52 + 72 + 9 * + + SUM( ALL - + CAST( NULL AS SIGNED ) ) THEN 55 + COUNT( * ) ELSE - NULLIF ( 60, + 14 - 87 ) * 96 + 72 END + - 38 THEN + 19 END + 65 + - 44 + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL CASE - AVG ( DISTINCT - 2 ) WHEN 25 * - - 63 + - 75 + - 57 * - - NULLIF ( + CAST ( - - 13 AS INTEGER ), - 60 ) THEN NULL WHEN + - 24 / - + CASE - ( + 33 ) WHEN + 52 - + CAST ( - 13 AS REAL ) * + 71 * + 29 THEN NULL WHEN + 56 + + 52 + 72 + 9 * + + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) THEN 55 + COUNT ( * ) ELSE - NULLIF ( 60, + 14 - 87 ) * 96 + 72 END + - 38 THEN + 19 END + 65 + - 44 + - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT - CAST( 38 AS SIGNED ) + COUNT( * ) * + COUNT( * ) - + 7 + - 49
----
-93

skipif mysql # not compatible
query I rowsort label-1057
SELECT - CAST ( 38 AS INTEGER ) + COUNT ( * ) * + COUNT ( * ) - + 7 + - 49
----
-93

query I rowsort
SELECT ALL ( - 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT DISTINCT CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT CAST ( - 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT - 54 + - + COUNT( DISTINCT + 41 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 54 + - + COUNT ( DISTINCT + 41 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT - COALESCE ( + + CASE COALESCE ( + NULLIF ( - AVG ( 56 ), + ( - COUNT( * ) ) / COALESCE ( ( - CAST( 52 AS SIGNED ) ), 47 + + + 3 ) ), + CAST( NULL AS SIGNED ) * 95 ) WHEN CAST( NULL AS SIGNED ) THEN + + 95 END, ( + 61 ) ) * + + 96
----
-5856

skipif mysql # not compatible
query I rowsort label-1061
SELECT - COALESCE ( + + CASE COALESCE ( + NULLIF ( - AVG ( 56 ), + ( - COUNT ( * ) ) / COALESCE ( ( - CAST ( 52 AS INTEGER ) ), 47 + + + 3 ) ), + CAST ( NULL AS INTEGER ) * 95 ) WHEN CAST ( NULL AS INTEGER ) THEN + + 95 END, ( + 61 ) ) * + + 96
----
-5856

query I rowsort
SELECT - COALESCE ( 39, + 37, - 54 - - + 87 ) + - 12 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT + 36 DIV - MIN( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT + 36 / - MIN ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + 24 - COUNT( DISTINCT - 93 )
----
23

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 24 - COUNT ( DISTINCT - 93 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT - 78 * + CAST( NULL AS SIGNED ) + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 78 * + CAST ( NULL AS INTEGER ) + - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 46 * + NULLIF ( - 17, - - COUNT( * ) )
----
-782

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 46 * + NULLIF ( - 17, - - COUNT ( * ) )
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT + 13 DIV 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT + 13 / 26 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL 87 * + 5 * + 78 * + CASE - - 70 WHEN 7 THEN + 3 * - CAST( NULL AS SIGNED ) / + 77 * - 99 ELSE NULL END AS col0, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL 87 * + 5 * + 78 * + CASE - - 70 WHEN 7 THEN + 3 * - CAST ( NULL AS INTEGER ) / + 77 * - 99 ELSE NULL END AS col0, + 68
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + - NULLIF ( + 1, COUNT( * ) ) * - + 12 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT + - NULLIF ( + 1, COUNT ( * ) ) * - + 12 + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT + - ( + COUNT( * ) ) DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT + - ( + COUNT ( * ) ) / + - 47
----
0

query I rowsort
SELECT 5 * - 90 + 37
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT - + CASE + - 14 WHEN + CAST( NULL AS SIGNED ) THEN 35 / - MAX( 56 ) - - - 46 * ( - 18 ) * + 0 + 39 * + + 51 WHEN + COUNT( * ) + - 14 * - 35 THEN NULL ELSE NULL END * + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT - + CASE + - 14 WHEN + CAST ( NULL AS INTEGER ) THEN 35 / - MAX ( 56 ) - - - 46 * ( - 18 ) * + 0 + 39 * + + 51 WHEN + COUNT ( * ) + - 14 * - 35 THEN NULL ELSE NULL END * + + 54 AS col2
----
NULL

query II rowsort
SELECT + - 20 + + 71, - 33 * 40 AS col2
----
51
-1320

query I rowsort
SELECT + 79 * + - 77 + - 30 AS col1
----
-6113

query I rowsort
SELECT ALL + - 63 * + - 13 - + - 62 - - 30 * 68 col1
----
2921

query I rowsort
SELECT 52 * - 47 AS col1
----
-2444

query I rowsort
SELECT DISTINCT 98 + + - 5
----
93

query I rowsort
SELECT ALL + 73 * + + ( - 21 ) AS col1
----
-1533

query I rowsort
SELECT 32 + 66 * - 10
----
-628

onlyif mysql # aggregate syntax: 
query II rowsort label-1080
SELECT ALL MAX( + 88 ) AS col0, COUNT( ( - + 74 ) ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL MAX ( + 88 ) AS col0, COUNT ( ( - + 74 ) ) AS col2
----
88
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT DISTINCT - + SUM( - 84 ) + - + 10 + - - 82 + + CAST( NULL AS SIGNED ) * + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - + SUM ( - 84 ) + - + 10 + - - 82 + + CAST ( NULL AS INTEGER ) * + 67 col2
----
NULL

query I rowsort
SELECT + NULLIF ( 88, + 6 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL + 3 + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 70 / + ( + - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + 3 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 70 / + ( + - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT ALL - COUNT( * ) + + 13 * - 29, 60 AS col2
----
-378
60

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL - COUNT ( * ) + + 13 * - 29, 60 AS col2
----
-378
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT ALL 32, - COUNT( * ) * - 8 * - + ( - SUM( DISTINCT + - 91 ) ) * + 59 + 71 + 24 AS col0
----
32
-42857

skipif mysql # not compatible
query II rowsort label-1085
SELECT ALL 32, - COUNT ( * ) * - 8 * - + ( - SUM ( DISTINCT + - 91 ) ) * + 59 + 71 + 24 AS col0
----
32
-42857

query I rowsort
SELECT DISTINCT 37 * - ( + 8 )
----
-296

query I rowsort
SELECT 97 * 65 AS col1
----
6305

query I rowsort
SELECT 3 + + 80
----
83

query I rowsort
SELECT ALL - 49 + 86 AS col1
----
37

query I rowsort
SELECT 87 - 39 + + 24
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL + 77 / CAST( NULL AS SIGNED ) * - - 97 * + - 85 / + 59 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + 77 / CAST ( NULL AS INTEGER ) * - - 97 * + - 85 / + 59 * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1092
SELECT 28 + + 66 - + 35 + - - 15 + - + 73 + + + 2 + + 77 + + + CAST( + 99 AS SIGNED ) * 61 * - 68, + 99 - - 72 AS col2
----
-410572
171

skipif mysql # not compatible
query II rowsort label-1092
SELECT 28 + + 66 - + 35 + - - 15 + - + 73 + + + 2 + + 77 + + + CAST ( + 99 AS INTEGER ) * 61 * - 68, + 99 - - 72 AS col2
----
-410572
171

query I rowsort
SELECT ALL + 5 * + 56 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT 18 + + CASE + + 79 WHEN 80 * - + 59 THEN 97 * - 41 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT 18 + + CASE + + 79 WHEN 80 * - + 59 THEN 97 * - 41 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 22 * + 67 * - 96 AS col1
----
-141504

query II rowsort
SELECT - 20, + 53 * + 87 + + 19 AS col0
----
-20
4630

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + 87 * - + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + 87 * - + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT NULLIF ( 70, - + 83 ) * + COUNT( ALL - + 36 )
----
70

skipif mysql # not compatible
query I rowsort label-1098
SELECT NULLIF ( 70, - + 83 ) * + COUNT ( ALL - + 36 )
----
70

query II rowsort
SELECT 27 AS col1, 83
----
27
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT + 61 DIV - 7 + - - 86 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 61 / - 7 + - - 86 AS col2
----
78

query I rowsort
SELECT ALL - 29 / CASE - 42 WHEN - 73 THEN NULL WHEN 79 THEN + - 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT MAX( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1102
SELECT MAX ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL + 54 + NULLIF ( - + COUNT( * ), 32 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL + 54 + NULLIF ( - + COUNT ( * ), 32 ) AS col2
----
53

query I rowsort
SELECT DISTINCT + 96 * + + ( 85 ) + + 8 - - 80 col2
----
8248

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL + - CASE - 51 WHEN + 25 THEN NULL WHEN - - 21 + - 9 + + 84 * - - ( 13 ) THEN - 55 / + + MAX( ALL + + 70 ) + + SUM( 8 ) + - 84 END / - ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + - CASE - 51 WHEN + 25 THEN NULL WHEN - - 21 + - 9 + + 84 * - - ( 13 ) THEN - 55 / + + MAX ( ALL + + 70 ) + + SUM ( 8 ) + - 84 END / - ( + 58 )
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - - ( - + 58 ) + - 7 + + 55 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT - 31 DIV - 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 31 / - 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT COUNT( * ) * 78 * - 24 AS col1, - 47
----
-1872
-47

skipif mysql # not compatible
query II rowsort label-1108
SELECT COUNT ( * ) * 78 * - 24 AS col1, - 47
----
-1872
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL - CASE 60 WHEN - ( - + COUNT( * ) ) * + 23 THEN - CAST( NULL AS SIGNED ) * 71 WHEN + 18 THEN + 63 WHEN - 5 * + - COUNT( * ) + - 18 THEN - 45 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - CASE 60 WHEN - ( - + COUNT ( * ) ) * + 23 THEN - CAST ( NULL AS INTEGER ) * 71 WHEN + 18 THEN + 63 WHEN - 5 * + - COUNT ( * ) + - 18 THEN - 45 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - COALESCE ( + 23, - MAX( ALL + 96 ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1110
SELECT - COALESCE ( + 23, - MAX ( ALL + 96 ) ) AS col2
----
-23

query II rowsort
SELECT - + 75 * + + 80 + 57 + - 45 + + - ( + 70 ) + - - 11 * - - 80, ( + ( 58 ) ) AS col0
----
-5178
58

query I rowsort
SELECT DISTINCT 32 + 46 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT ALL + 53 + - + 11 * + 80 * - 74 - - - MAX( DISTINCT + 59 ) * - 70 * + COUNT( * ) AS col1, 26
----
69303
26

skipif mysql # not compatible
query II rowsort label-1113
SELECT ALL + 53 + - + 11 * + 80 * - 74 - - - MAX ( DISTINCT + 59 ) * - 70 * + COUNT ( * ) AS col1, 26
----
69303
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT + - CAST( - + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-1114
SELECT + - CAST ( - + 79 AS INTEGER )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT 96 + - CAST( 13 AS SIGNED ) + - CAST( + 93 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT 96 + - CAST ( 13 AS INTEGER ) + - CAST ( + 93 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT + 90 * + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT + 90 * + COUNT ( * ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT CAST( NULL AS SIGNED ) + - ( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT CAST ( NULL AS INTEGER ) + - ( 1 )
----
NULL

query I rowsort
SELECT 32 - + 22 + - - 41 AS col1
----
51

query II rowsort
SELECT ALL + 73 * + 47 AS col0, - 47 + - - 40 AS col0
----
3431
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL + ( + COUNT( * ) ) - + 55
----
-54

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + ( + COUNT ( * ) ) - + 55
----
-54

query I rowsort
SELECT 22 + + 57
----
79

query I rowsort
SELECT ALL 82 * + + 77
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT - 28 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - 28 / 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 47 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT 47 / - 95 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1125
SELECT 18 + - + CAST( NULL AS SIGNED ), 31 + 93 AS col0
----
NULL
124

skipif mysql # not compatible
query II rowsort label-1125
SELECT 18 + - + CAST ( NULL AS INTEGER ), 31 + 93 AS col0
----
NULL
124

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT DISTINCT - NULLIF ( + 30, - - 55 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - NULLIF ( + 30, - - 55 ) / - 78
----
0

query I rowsort
SELECT 66 + + 73 * 28
----
2110

query I rowsort
SELECT + 52 + + + 62 col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + ( + MAX( ALL ( - 55 ) ) ) * - 29 - + 54 + + - 44 + + 64 + - 3 * - MAX( + 60 )
----
1741

skipif mysql # not compatible
query I rowsort label-1129
SELECT + ( + MAX ( ALL ( - 55 ) ) ) * - 29 - + 54 + + - 44 + + 64 + - 3 * - MAX ( + 60 )
----
1741

query I rowsort
SELECT DISTINCT + 67 * + 53 * - 10 AS col2
----
-35510

query I rowsort
SELECT - 2 + - + 52 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - 65 * - SUM( - + 68 ) + + 13 AS col2
----
-4407

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - 65 * - SUM ( - + 68 ) + + 13 AS col2
----
-4407

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT + + 79 * - + ( + 60 ) * - MIN( + + 82 ) + - COALESCE ( + 28, + 78 ) + - 18
----
388634

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + + 79 * - + ( + 60 ) * - MIN ( + + 82 ) + - COALESCE ( + 28, + 78 ) + - 18
----
388634

query I rowsort
SELECT + 8 * - + 73 + - 97 AS col0
----
-681

query I rowsort
SELECT + - 37 + - 30 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT - + 86 / 31 + ( 29 ) + - 39 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT - + 86 / 31 + ( 29 ) + - 39 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 91 + + - 56 AS col0
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1138
SELECT + 4 + + COALESCE ( + 16, + COUNT( * ) DIV 16 + + 53 ) + - 62 AS col2, - 11 AS col0
----
-42
-11

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 4 + + COALESCE ( + 16, + COUNT ( * ) / 16 + + 53 ) + - 62 AS col2, - 11 AS col0
----
-42
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - ( - ( 28 ) ) DIV 4 + - + 57 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - ( - ( 28 ) ) / 4 + - + 57 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + 99 * - - 35 * - 58 - + MAX( DISTINCT + 31 ) AS col0
----
-201001

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + 99 * - - 35 * - 58 - + MAX ( DISTINCT + 31 ) AS col0
----
-201001

query I rowsort
SELECT + + CASE 18 WHEN + 81 THEN + + 37 / + 43 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT ALL - COUNT( * ) * + 75 - - - COUNT( * ) DIV - 78
----
-75

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - COUNT ( * ) * + 75 - - - COUNT ( * ) / - 78
----
-75

query I rowsort
SELECT + 43 * 65 AS col1
----
2795

query I rowsort
SELECT ALL 49 * + 50 col0
----
2450

query I rowsort
SELECT + 19 + + 64 * + - 7 * + - 73 + + 56
----
32779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT ALL NULLIF ( ( - 22 ), 46 + + + COUNT( * ) / CAST( NULLIF ( + MIN( + - 50 ), 4 ) AS SIGNED ) ) * - 87 + + 62
----
1976

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL NULLIF ( ( - 22 ), 46 + + + COUNT ( * ) / CAST ( NULLIF ( + MIN ( + - 50 ), 4 ) AS INTEGER ) ) * - 87 + + 62
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + COUNT( - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-1147
SELECT + COUNT ( - 32 )
----
1

query I rowsort
SELECT DISTINCT ( + 62 ) * + 13 AS col1
----
806

query I rowsort
SELECT + 7 * - 25 AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT + 13 * - 0 * + ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT + 13 * - 0 * + ( - + COUNT ( * ) )
----
0

query II rowsort
SELECT DISTINCT 43 AS col1, 22 AS col2
----
43
22

query I rowsort
SELECT + 83 * - 28 AS col0
----
-2324

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT + 77 + 39 * - 90 + CASE + 84 WHEN - - COUNT( * ) + 1 + + COUNT( * ) THEN NULL WHEN - 46 THEN - - 78 WHEN 43 THEN NULL END, 77 * - ( ( 73 ) ) AS col0
----
NULL
-5621

skipif mysql # not compatible
query II rowsort label-1153
SELECT + 77 + 39 * - 90 + CASE + 84 WHEN - - COUNT ( * ) + 1 + + COUNT ( * ) THEN NULL WHEN - 46 THEN - - 78 WHEN 43 THEN NULL END, 77 * - ( ( 73 ) ) AS col0
----
NULL
-5621

query II rowsort
SELECT DISTINCT 54 AS col2, - 52 AS col1
----
54
-52

query I rowsort
SELECT - ( - 11 ) col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1156
SELECT ALL 63 AS col2, 45 + - CAST( NULL AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL 63 AS col2, 45 + - CAST ( NULL AS INTEGER ) AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - COUNT( * ) + 71 + - 29 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1157
SELECT - COUNT ( * ) + 71 + - 29 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL 11 * + 64 * CAST( - + 7 AS SIGNED )
----
-4928

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 11 * + 64 * CAST ( - + 7 AS INTEGER )
----
-4928

query I rowsort
SELECT + 17 * - 81 col2
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT - 23 + - + 36 + - - 89 * - - CASE - COALESCE ( - COALESCE ( + COUNT( * ), - 41 * 18 ), 22 / - 53 + - 59, 11 + - CAST( 9 AS SIGNED ), - - 19 + + 78 - - 58 / + COUNT( * ) ) WHEN + + 5 * 82 * 31 THEN - COUNT( * ) END * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 23 + - + 36 + - - 89 * - - CASE - COALESCE ( - COALESCE ( + COUNT ( * ), - 41 * 18 ), 22 / - 53 + - 59, 11 + - CAST ( 9 AS INTEGER ), - - 19 + + 78 - - 58 / + COUNT ( * ) ) WHEN + + 5 * 82 * 31 THEN - COUNT ( * ) END * - + 87
----
NULL

query I rowsort
SELECT ALL 29 * - 16
----
-464

query II rowsort
SELECT - ( ( - 74 ) ), - 85 AS col1
----
74
-85

query I rowsort
SELECT DISTINCT 24 + - 56 AS col1
----
-32

query I rowsort
SELECT DISTINCT - 79 + 23 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT - + ( + + 63 ) DIV + 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1165
SELECT - + ( + + 63 ) / + 38 AS col1
----
-1

query I rowsort
SELECT ALL - 46 + - 1 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - ( ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1167
SELECT - ( ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT ALL - - 89 DIV + + 99 * + 4 DIV COUNT( * ) * MIN( - 87 ) + - 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - - 89 / + + 99 * + 4 / COUNT ( * ) * MIN ( - 87 ) + - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT COUNT( * ) DIV 92 - 56 + - 70 col0
----
-126

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT COUNT ( * ) / 92 - 56 + - 70 col0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL CAST( - + 51 AS SIGNED ) / - 61 * 89 * 63 + - 27 * - NULLIF ( - - CASE - + 30 WHEN - 86 + - 85 + 95 + - 60 THEN + COUNT( * ) WHEN - + 26 + + 54 THEN NULL END, + 59 ) * + 32 + - 47 * 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL CAST ( - + 51 AS INTEGER ) / - 61 * 89 * 63 + - 27 * - NULLIF ( - - CASE - + 30 WHEN - 86 + - 85 + 95 + - 60 THEN + COUNT ( * ) WHEN - + 26 + + 54 THEN NULL END, + 59 ) * + 32 + - 47 * 33 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL - 74 DIV 71 + - MAX( 55 ) * + SUM( - + 6 ) * 79 + + + 29
----
26098

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - 74 / 71 + - MAX ( 55 ) * + SUM ( - + 6 ) * 79 + + + 29
----
26098

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT - + 5 * - 91 * + 26 AS col1, NULLIF ( - 75, - 80 - + SUM( + 23 ) * - - COUNT( + - 70 ) ) AS col2
----
11830
-75

skipif mysql # not compatible
query II rowsort label-1172
SELECT - + 5 * - 91 * + 26 AS col1, NULLIF ( - 75, - 80 - + SUM ( + 23 ) * - - COUNT ( + - 70 ) ) AS col2
----
11830
-75

query II rowsort
SELECT DISTINCT - 94 * - - 96 - + + 50, + 23 - 15 AS col0
----
-9074
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT DISTINCT COALESCE ( 43, - 29 ) DIV COUNT( * ) + - + 12 - ( + 65 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT COALESCE ( 43, - 29 ) / COUNT ( * ) + - + 12 - ( + 65 ) AS col1
----
-34

query I rowsort
SELECT ALL - + 1 * - - 87 * + + 89 * - - 98
----
-758814

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + MAX( - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1176
SELECT + MAX ( - 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL + NULLIF ( - SUM( ALL ( - 52 ) ), + 42 ) / - AVG ( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) + - 18 * - ( + SUM( ALL + 41 ) ) + - + 31 + - 45 - + 86 - + COUNT( DISTINCT - - 94 ) * - - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + NULLIF ( - SUM ( ALL ( - 52 ) ), + 42 ) / - AVG ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) + - 18 * - ( + SUM ( ALL + 41 ) ) + - + 31 + - 45 - + 86 - + COUNT ( DISTINCT - - 94 ) * - - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + + ( 90 ) * 22 + - + 46 + ( - 12 ) + - 25 + + ( - + 60 ) * - 59 col2
----
5437

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - ( - + COUNT( * ) ) * - - 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - ( - + COUNT ( * ) ) * - - 22 AS col2
----
22

query I rowsort
SELECT - 19 * + 65
----
-1235

query I rowsort
SELECT - 31 * + 0 AS col2
----
0

query I rowsort
SELECT ALL - 85 * 6 * 45 - - - 91
----
-23041

query II rowsort
SELECT ALL + 77 AS col1, + 1 * + 36 + - 64
----
77
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT - 83 DIV 70
----
-1

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 83 / 70
----
-1

query II rowsort
SELECT ALL + 93 col0, - 34 * - 51 AS col1
----
93
1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT + CASE 24 WHEN 94 + + NULLIF ( 0, + 52 ) THEN + COALESCE ( 34, - 39 * - CAST( - - 64 AS SIGNED ) + - - CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT + CASE 24 WHEN 94 + + NULLIF ( 0, + 52 ) THEN + COALESCE ( 34, - 39 * - CAST ( - - 64 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1188
SELECT + 36 + 94 * 1 + + 35, + ( COUNT( ALL + + 85 ) ) * + COUNT( * ) * - - COUNT( * ) AS col1, 46 AS col2
----
165
1
46

skipif mysql # not compatible
query III rowsort label-1188
SELECT + 36 + 94 * 1 + + 35, + ( COUNT ( ALL + + 85 ) ) * + COUNT ( * ) * - - COUNT ( * ) AS col1, 46 AS col2
----
165
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 55 * - + COUNT( * ) + - COUNT( * ) + MIN( DISTINCT - - 41 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1189
SELECT 55 * - + COUNT ( * ) + - COUNT ( * ) + MIN ( DISTINCT - - 41 ) AS col0
----
-15

query I rowsort
SELECT CASE + - 29 WHEN - 8 THEN NULL WHEN 82 + 90 THEN 28 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT + 59 * - - 54 + + - 27 + + CAST( NULL AS SIGNED ) / 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + 59 * - - 54 + + - 27 + + CAST ( NULL AS INTEGER ) / 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT - 17 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 17 / - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT ALL 15, MAX( DISTINCT - + ( - ( - 69 ) ) ) AS col0
----
15
-69

skipif mysql # not compatible
query II rowsort label-1193
SELECT ALL 15, MAX ( DISTINCT - + ( - ( - 69 ) ) ) AS col0
----
15
-69

query I rowsort
SELECT + 99 * + 31 AS col1
----
3069

query I rowsort
SELECT ALL 64 + + + 95 * + - 27 * - + 60 * - - 45 - 77 AS col2
----
6925487

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL 81 + - + 50 * - SUM( ALL + 21 ) AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL 81 + - + 50 * - SUM ( ALL + 21 ) AS col2
----
1131

query I rowsort
SELECT - ( + 74 ) AS col2
----
-74

query I rowsort
SELECT DISTINCT ( 41 ) + - + 92 * - - 29
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT 96 + + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 96 + + + COUNT ( * )
----
97

query II rowsort
SELECT - 89 AS col1, 91
----
-89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT - 23 + MIN( + 90 )
----
67

skipif mysql # not compatible
query I rowsort label-1201
SELECT - 23 + MIN ( + 90 )
----
67

query I rowsort
SELECT 19 * + + 36 * - ( 33 ) AS col2
----
-22572

query I rowsort
SELECT 22 + - 74
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT - SUM( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-1204
SELECT - SUM ( 2 )
----
-2

query I rowsort
SELECT ALL + 15 - + 32 + - - 11
----
-6

query I rowsort
SELECT ALL 81 * + + 97 - + 54 AS col1
----
7803

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT MIN( - 81 ) + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1207
SELECT MIN ( - 81 ) + COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT + + 11 * - 42
----
-462

query I rowsort
SELECT ALL - ( + ( - 39 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + + NULLIF ( CASE - 80 WHEN - NULLIF ( - ( - 71 ), + - MIN( DISTINCT - 82 ) * + 57 ) THEN + 68 END, + NULLIF ( 80, + - MIN( DISTINCT + 5 ) ) - 24 ) / + - 80 * + - 94 * 26 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT + + NULLIF ( CASE - 80 WHEN - NULLIF ( - ( - 71 ), + - MIN ( DISTINCT - 82 ) * + 57 ) THEN + 68 END, + NULLIF ( 80, + - MIN ( DISTINCT + 5 ) ) - 24 ) / + - 80 * + - 94 * 26 + - 59
----
NULL

query I rowsort
SELECT DISTINCT - ( - 43 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 1 * - - 27 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT 1 * - - 27 / - 68 AS col2
----
0

query II rowsort
SELECT + 19, - 55 col2
----
19
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT COUNT( * ) * + 98 + + 58 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-1214
SELECT COUNT ( * ) * + 98 + + 58 AS col0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1215
SELECT 3 * - 91 AS col1, + 94 + + - COUNT( * ) DIV SUM( DISTINCT + 54 ) * + 19 + - + 80 + - + 90 AS col2
----
-273
-76

skipif mysql # not compatible
query II rowsort label-1215
SELECT 3 * - 91 AS col1, + 94 + + - COUNT ( * ) / SUM ( DISTINCT + 54 ) * + 19 + - + 80 + - + 90 AS col2
----
-273
-76

query I rowsort
SELECT ALL - CASE - 98 WHEN - + ( - 74 ) THEN 85 END * - 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL + NULLIF ( + + CASE + CAST( NULL AS SIGNED ) WHEN - + 3 THEN + - COUNT( * ) * - 16 END, - 37 ) + + 94 + + ( - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + NULLIF ( + + CASE + CAST ( NULL AS INTEGER ) WHEN - + 3 THEN + - COUNT ( * ) * - 16 END, - 37 ) + + 94 + + ( - 42 ) AS col2
----
NULL

query I rowsort
SELECT 18 + - 38 + + 88 * + 85 col0
----
7460

query I rowsort
SELECT DISTINCT + COALESCE ( + 36, 35 + - 43, 63, - 8 * - 21 - + - 4 ) + - - 36 col0
----
72

query I rowsort
SELECT 31 * + - ( 25 ) AS col0
----
-775

query I rowsort
SELECT ALL - COALESCE ( + 44, + + 86, 25 * 22 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL - CASE - 58 WHEN 95 + + + 18 THEN - 64 END + + - 56 * - 92 + NULLIF ( + + 64, - + 95 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - CASE - 58 WHEN 95 + + + 18 THEN - 64 END + + - 56 * - 92 + NULLIF ( + + 64, - + 95 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT 53 + - 95 AS col2, COUNT( * ) AS col1
----
-42
1

skipif mysql # not compatible
query II rowsort label-1223
SELECT 53 + - 95 AS col2, COUNT ( * ) AS col1
----
-42
1

query I rowsort
SELECT DISTINCT 75 + + 12 * 61 * - 32 AS col2
----
-23349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1225
SELECT DISTINCT + - 47 DIV + + CAST( 55 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT + - 47 / + + CAST ( 55 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT 57 * - - NULLIF ( - MIN( DISTINCT 4 ), - + 28 * - 35 ) AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-1226
SELECT 57 * - - NULLIF ( - MIN ( DISTINCT 4 ), - + 28 * - 35 ) AS col2
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT - MIN( + 21 ), 15 AS col1
----
-21
15

skipif mysql # not compatible
query II rowsort label-1227
SELECT - MIN ( + 21 ), 15 AS col1
----
-21
15

query I rowsort
SELECT DISTINCT + - 72 - + 41 * - 69 AS col1
----
2757

query I rowsort
SELECT - COALESCE ( + + 84, 88 + - 96 )
----
-84

query I rowsort
SELECT + 91 + - + 76 * - + 32 AS col0
----
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT - 95 DIV - 11 col2
----
8

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 95 / - 11 col2
----
8

query I rowsort
SELECT + COALESCE ( 95, - 93 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 10 - - - 86
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL MIN( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL MIN ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT COALESCE ( - 90, - 94 * + 23 + + + 91 + - COALESCE ( - + 15, + 90 DIV + 8 * 12 + + COUNT( * ) ) + 29 * + 13 DIV - 14 + - NULLIF ( - 12, COUNT( * ) DIV 63 + - + 23 ) ) * - 18 AS col2
----
1620

skipif mysql # not compatible
query I rowsort label-1236
SELECT COALESCE ( - 90, - 94 * + 23 + + + 91 + - COALESCE ( - + 15, + 90 / + 8 * 12 + + COUNT ( * ) ) + 29 * + 13 / - 14 + - NULLIF ( - 12, COUNT ( * ) / 63 + - + 23 ) ) * - 18 AS col2
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - NULLIF ( + 96, - CASE - + COUNT( * ) WHEN CASE - ( + 46 ) WHEN - 13 THEN + 94 END THEN NULL WHEN - COUNT( * ) + - - 18 THEN - 95 + 46 ELSE NULL END )
----
-96

skipif mysql # not compatible
query I rowsort label-1237
SELECT - NULLIF ( + 96, - CASE - + COUNT ( * ) WHEN CASE - ( + 46 ) WHEN - 13 THEN + 94 END THEN NULL WHEN - COUNT ( * ) + - - 18 THEN - 95 + 46 ELSE NULL END )
----
-96

query I rowsort
SELECT DISTINCT 99 * + - 90 - 92
----
-9002

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT COUNT( * ) * - + 68
----
-68

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT COUNT ( * ) * - + 68
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-1240
SELECT DISTINCT - 90, + 81 DIV 94 AS col2
----
-90
0

skipif mysql # not compatible
query II rowsort label-1240
SELECT DISTINCT - 90, + 81 / 94 AS col2
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT MAX( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1241
SELECT MAX ( - 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT - NULLIF ( + 18, - 86 + + + 42 - 31 * + ( + COUNT( * ) ) - + - 69 * 20 * + 38 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - NULLIF ( + 18, - 86 + + + 42 - 31 * + ( + COUNT ( * ) ) - + - 69 * 20 * + 38 ) AS col2
----
-18

query I rowsort
SELECT ALL - 21 * 19 + - - 0 + + 81 AS col2
----
-318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT - 48 DIV 49 + + 15 + + SUM( + + 17 ) - 1 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1244
SELECT - 48 / 49 + + 15 + + SUM ( + + 17 ) - 1 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT COUNT( * ) + + 35 col1
----
36

skipif mysql # not compatible
query I rowsort label-1245
SELECT COUNT ( * ) + + 35 col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT 65 * - 20 + - + 68 AS col2, 23 + COUNT( * ) + + 87
----
-1368
111

skipif mysql # not compatible
query II rowsort label-1246
SELECT 65 * - 20 + - + 68 AS col2, 23 + COUNT ( * ) + + 87
----
-1368
111

query I rowsort
SELECT 66 * - + ( + + 64 )
----
-4224

query I rowsort
SELECT DISTINCT - 83 + - + 76
----
-159

query I rowsort
SELECT DISTINCT 18 + - 25 + + 35
----
28

query I rowsort
SELECT ALL + 20 * 59 AS col1
----
1180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL - 65 + 41 - - COALESCE ( ( + 85 ), - + 33 ) * + 63 * - + COUNT( - - 15 ) * 60 * 62 * - 66 + NULLIF ( 55, - + ( + CAST( NULL AS SIGNED ) ) + 89 + - 66 ) + - + 3 + + - CAST( - 3 AS SIGNED ) AS col1
----
1314759631

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - 65 + 41 - - COALESCE ( ( + 85 ), - + 33 ) * + 63 * - + COUNT ( - - 15 ) * 60 * 62 * - 66 + NULLIF ( 55, - + ( + CAST ( NULL AS INTEGER ) ) + 89 + - 66 ) + - + 3 + + - CAST ( - 3 AS INTEGER ) AS col1
----
1314759631

query I rowsort
SELECT - 47 + - - 99
----
52

query II rowsort
SELECT ALL + 92 AS col2, + 69 + + 16 * + - 27
----
92
-363

query I rowsort
SELECT ALL + ( 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT NULLIF ( + COUNT( * ), + ( + + 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT NULLIF ( + COUNT ( * ), + ( + + 44 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - 66 - - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 66 - - COUNT ( * ) AS col2
----
-65

query I rowsort
SELECT - - 1 + + 45 - + 45
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT + + CAST( NULL AS SIGNED ) * - 36 - - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT + + CAST ( NULL AS INTEGER ) * - 36 - - - 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT ALL + NULLIF ( + 28, + 58 + MAX( + 95 ) + 45 ) AS col0, 18 AS col2
----
28
18

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL + NULLIF ( + 28, + 58 + MAX ( + 95 ) + 45 ) AS col0, 18 AS col2
----
28
18

query II rowsort
SELECT - 84, + 89 AS col2
----
-84
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT NULLIF ( ( - COUNT( * ) ), - - CAST( - + 87 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1261
SELECT NULLIF ( ( - COUNT ( * ) ), - - CAST ( - + 87 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT ALL + - 69 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + - 69 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT - 46 + - + 11 * 45 - - MIN( 15 ) + - 88 + + + 59 - - 7 * + + COUNT( * ) * - + CASE - 27 WHEN + 31 + - 8 + + + ( + - 76 ) - + COUNT( * ) * 62 * 59 + + 71 THEN NULL WHEN - 24 THEN - 12 * + + 37 END + - + 55 / - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT - 46 + - + 11 * 45 - - MIN ( 15 ) + - 88 + + + 59 - - 7 * + + COUNT ( * ) * - + CASE - 27 WHEN + 31 + - 8 + + + ( + - 76 ) - + COUNT ( * ) * 62 * 59 + + 71 THEN NULL WHEN - 24 THEN - 12 * + + 37 END + - + 55 / - - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT ALL SUM( DISTINCT 26 ) * + CASE 50 WHEN 48 THEN - 83 END AS col0, - SUM( 63 ) - 18 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL SUM ( DISTINCT 26 ) * + CASE 50 WHEN 48 THEN - 83 END AS col0, - SUM ( 63 ) - 18 AS col2
----
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1265
SELECT - - CASE + - 6 WHEN - 48 / - - 70 * + + CAST( NULL AS SIGNED ) THEN + ( + 50 ) END * + 44 - - - 36 AS col0, 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1265
SELECT - - CASE + - 6 WHEN - 48 / - - 70 * + + CAST ( NULL AS INTEGER ) THEN + ( + 50 ) END * + 44 - - - 36 AS col0, 34 AS col2
----
NULL
34

query I rowsort
SELECT - - 57 + - 27
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - - 52 - - COUNT( * ) * + + COUNT( * ) + + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1267
SELECT - - 52 - - COUNT ( * ) * + + COUNT ( * ) + + - COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT - + 82 + - 98 + + + CAST( + - 50 AS SIGNED )
----
-230

skipif mysql # not compatible
query I rowsort label-1268
SELECT - + 82 + - 98 + + + CAST ( + - 50 AS INTEGER )
----
-230

query II rowsort
SELECT ALL 3 AS col1, - 82
----
3
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL - 13 * COUNT( * ) + - 58 + - + CAST( - 75 AS SIGNED ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - 13 * COUNT ( * ) + - 58 + - + CAST ( - 75 AS INTEGER ) col2
----
4

query I rowsort
SELECT - - 8 + - + 10 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COUNT( * ) * 14 + + 23 + - 17 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COUNT ( * ) * 14 + + 23 + - 17 AS col1
----
20

query I rowsort
SELECT - 57 + 53 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL 72 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 72 / + - 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1275
SELECT ALL 69 * + 32 * ( + CASE + 29 WHEN - 13 / 61 * - + MIN( DISTINCT + 30 ) + - CAST( NULL AS DECIMAL ) + 22 THEN 25 * 41 / - 43 - - 68 * 71 / - CAST( NULL AS SIGNED ) ELSE NULL END ) + + + 26 - + 28 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL 69 * + 32 * ( + CASE + 29 WHEN - 13 / 61 * - + MIN ( DISTINCT + 30 ) + - CAST ( NULL AS REAL ) + 22 THEN 25 * 41 / - 43 - - 68 * 71 / - CAST ( NULL AS INTEGER ) ELSE NULL END ) + + + 26 - + 28 * + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + CASE + + 1 WHEN + 6 THEN 35 + - NULLIF ( + - NULLIF ( + - 93, - COUNT( * ) ), + ( - 61 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT + CASE + + 1 WHEN + 6 THEN 35 + - NULLIF ( + - NULLIF ( + - 93, - COUNT ( * ) ), + ( - 61 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 13 + + - 67 - COUNT( * ) - - - 70 - + - COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 13 + + - 67 - COUNT ( * ) - - - 70 - + - COUNT ( * )
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT ( + - COUNT( * ) ) AS col1, 85 * + 61
----
-1
5185

skipif mysql # not compatible
query II rowsort label-1278
SELECT ( + - COUNT ( * ) ) AS col1, 85 * + 61
----
-1
5185

query II rowsort
SELECT - 1 * + 92, 14 * - 51 col0
----
-92
-714

query I rowsort
SELECT + 94 * 55 + - 9 AS col0
----
5161

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + MAX( + - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1281
SELECT + MAX ( + - 20 )
----
-20

query I rowsort
SELECT + NULLIF ( - 85, + - 47 * - + 96 + + 77 - - - 72 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + ( NULLIF ( - + CASE - + MIN( DISTINCT - - 46 ) WHEN - - 45 THEN NULL WHEN - CASE 50 WHEN + 37 THEN + COUNT( * ) / + 9 * - CASE + 69 WHEN + COALESCE ( - 32, 12 ) THEN NULL ELSE 77 END + - - 96 WHEN + 83 - - + 73 * + COUNT( * ) THEN NULL ELSE NULL END * - 6 / - 65 - - 42 - - + 24 * - 43 THEN + 23 * + 76 * + - ( - 26 ) * 8 * - ( + SUM( ALL 37 ) ) END, MAX( + 11 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT + ( NULLIF ( - + CASE - + MIN ( DISTINCT - - 46 ) WHEN - - 45 THEN NULL WHEN - CASE 50 WHEN + 37 THEN + COUNT ( * ) / + 9 * - CASE + 69 WHEN + COALESCE ( - 32, 12 ) THEN NULL ELSE 77 END + - - 96 WHEN + 83 - - + 73 * + COUNT ( * ) THEN NULL ELSE NULL END * - 6 / - 65 - - 42 - - + 24 * - 43 THEN + 23 * + 76 * + - ( - 26 ) * 8 * - ( + SUM ( ALL 37 ) ) END, MAX ( + 11 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL 77 * COALESCE ( + 38, CASE 30 WHEN - - 69 / - 48 / - ( + - NULLIF ( + NULLIF ( + ( - 90 ), - - COALESCE ( - + COUNT( * ), + 83, + - COUNT( * ) * + 25 ) ), - 71 + - + 7 ) ) THEN NULL ELSE + 82 * 76 END * - 25 - + - 98 ) * + 88
----
257488

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL 77 * COALESCE ( + 38, CASE 30 WHEN - - 69 / - 48 / - ( + - NULLIF ( + NULLIF ( + ( - 90 ), - - COALESCE ( - + COUNT ( * ), + 83, + - COUNT ( * ) * + 25 ) ), - 71 + - + 7 ) ) THEN NULL ELSE + 82 * 76 END * - 25 - + - 98 ) * + 88
----
257488

query I rowsort
SELECT ALL 25 * 41 + + 14 AS col2
----
1039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT 12 * COALESCE ( + 17, 15, - CAST( NULL AS SIGNED ) ) AS col0
----
204

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 12 * COALESCE ( + 17, 15, - CAST ( NULL AS INTEGER ) ) AS col0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1287
SELECT + 23 / - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT 28 ) * - 5 + - - COUNT( * ) AS col0, - 39 AS col1
----
NULL
NULL
-39

skipif mysql # not compatible
query III rowsort label-1287
SELECT + 23 / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 28 ) * - 5 + - - COUNT ( * ) AS col0, - 39 AS col1
----
NULL
NULL
-39

query I rowsort
SELECT + 41 * - 12
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT( * ) ) BETWEEN - 84 AND COUNT( * ) THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT ( * ) ) BETWEEN - 84 AND COUNT ( * ) THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + COUNT( * ) + + - 45 - + + 84 * 60 * 20 + - + COUNT( * ) + - 7
----
-100852

skipif mysql # not compatible
query I rowsort label-1290
SELECT + COUNT ( * ) + + - 45 - + + 84 * 60 * 20 + - + COUNT ( * ) + - 7
----
-100852

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - 93 DIV + ( + 45 )
----
-2

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 93 / + ( + 45 )
----
-2

query I rowsort
SELECT + 90 * + 27
----
2430

query I rowsort
SELECT - + 87 * - + 44 + - + 62
----
3766

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT + 17 DIV - - 9
----
1

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 17 / - - 9
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT ALL 86 DIV - 11
----
-7

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL 86 / - 11
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT + - 88 * + 88 - MIN( 20 ) AS col2
----
-7764

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + - 88 * + 88 - MIN ( 20 ) AS col2
----
-7764

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL + MIN( - 92 ) * - 88
----
8096

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + MIN ( - 92 ) * - 88
----
8096

query I rowsort
SELECT DISTINCT + - 75 * - NULLIF ( - - ( - 93 ), - - 2 )
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - - ( + 50 ) * + MIN( 2 ) + - 44 col0
----
56

skipif mysql # not compatible
query I rowsort label-1299
SELECT - - ( + 50 ) * + MIN ( 2 ) + - 44 col0
----
56

query I rowsort
SELECT + 6 * + 31 col1
----
186

query I rowsort
SELECT - 75 + 24 + + 78
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT SUM( + NULLIF ( 47, + 18 + + 35 ) )
----
47

skipif mysql # not compatible
query I rowsort label-1302
SELECT SUM ( + NULLIF ( 47, + 18 + + 35 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT - + COALESCE ( - + COUNT( * ), - - NULLIF ( - 19, - - 49 + - AVG ( - ( - - 49 ) ) ) DIV + + ( 50 ) * + COALESCE ( 11, + ( - 4 ) DIV - 32, 36 * + + 77 * - MIN( - + 44 ) ) + + 11 * - MAX( 62 ) ) + - - CAST( - 33 AS SIGNED ) + + 77 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - + COALESCE ( - + COUNT ( * ), - - NULLIF ( - 19, - - 49 + - AVG ( - ( - - 49 ) ) ) / + + ( 50 ) * + COALESCE ( 11, + ( - 4 ) / - 32, 36 * + + 77 * - MIN ( - + 44 ) ) + + 11 * - MAX ( 62 ) ) + - - CAST ( - 33 AS INTEGER ) + + 77 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT - 33 * + COALESCE ( + 38, + + 20 - - + COUNT( * ) DIV + - 2 + - 29 ) + + 63 AS col0
----
-1191

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 33 * + COALESCE ( + 38, + + 20 - - + COUNT ( * ) / + - 2 + - 29 ) + + 63 AS col0
----
-1191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT ALL - + MAX( DISTINCT 77 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL - + MAX ( DISTINCT 77 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - + MIN( - - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1306
SELECT - + MIN ( - - 45 ) AS col0
----
-45

query II rowsort
SELECT ALL - - 75 * + 14 + 35 + + - 6 + + 48 AS col1, 94
----
1127
94

query I rowsort
SELECT - + ( + + 53 ) * - + 93 col2
----
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - MIN( - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1309
SELECT - MIN ( - 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT - 25 - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-1310
SELECT - 25 - COUNT ( * )
----
-26

query I rowsort
SELECT ALL 65 + - 84 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT COUNT( * ) DIV - + NULLIF ( 98, 75 * 31 ) * - 67 - - ( + NULLIF ( + 7, 86 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) / - + NULLIF ( 98, 75 * 31 ) * - 67 - - ( + NULLIF ( + 7, 86 ) )
----
7

query I rowsort
SELECT ALL - ( + - 1 ) * + 81 * 70 * + + 34 AS col0
----
192780

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT 56 * + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1314
SELECT 56 * + COUNT ( * ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL 18 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL 18 / 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL + 66 - - 69 + - - 79 * + COALESCE ( + 42, + 75 - + + 98 * + + 47 * - COUNT( * ) ) + - 34 * - COALESCE ( 51, - ( + 44 ) ) * + - 30 + - - 35 + 7
----
-48525

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL + 66 - - 69 + - - 79 * + COALESCE ( + 42, + 75 - + + 98 * + + 47 * - COUNT ( * ) ) + - 34 * - COALESCE ( 51, - ( + 44 ) ) * + - 30 + - - 35 + 7
----
-48525

query I rowsort
SELECT 46 + - 92
----
-46

query I rowsort
SELECT 82 * 47 AS col1
----
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT 56 + - CAST( - + 99 AS SIGNED ) + - 79 * - + 5 * - - 79 AS col1
----
31360

skipif mysql # not compatible
query I rowsort label-1319
SELECT 56 + - CAST ( - + 99 AS INTEGER ) + - 79 * - + 5 * - - 79 AS col1
----
31360

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + ( - 82 ) * + 0 + COUNT( * ) - + 91 + 76 * + 52
----
3862

skipif mysql # not compatible
query I rowsort label-1320
SELECT + ( - 82 ) * + 0 + COUNT ( * ) - + 91 + 76 * + 52
----
3862

query I rowsort
SELECT DISTINCT 58 * - 67
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT COUNT( * ) * - COUNT( * ) * + - 45 + + COUNT( ALL 83 )
----
46

skipif mysql # not compatible
query I rowsort label-1322
SELECT COUNT ( * ) * - COUNT ( * ) * + - 45 + + COUNT ( ALL 83 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT 72 * - 53 * - + NULLIF ( - 28, - - ( + + 96 ) - + CAST( NULL AS SIGNED ) + - 76 + - - ( - COALESCE ( 35, + COUNT( + 94 ) ) ) / 67 * - MAX( DISTINCT + 66 ) )
----
-106848

skipif mysql # not compatible
query I rowsort label-1323
SELECT 72 * - 53 * - + NULLIF ( - 28, - - ( + + 96 ) - + CAST ( NULL AS INTEGER ) + - 76 + - - ( - COALESCE ( 35, + COUNT ( + 94 ) ) ) / 67 * - MAX ( DISTINCT + 66 ) )
----
-106848

query I rowsort
SELECT DISTINCT - 76 * 75
----
-5700

query I rowsort
SELECT 97 * + 65
----
6305

query I rowsort
SELECT ALL 57 * - 93 col0
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 87 * MIN( ALL + 2 * + 69 ) AS col1
----
12006

skipif mysql # not compatible
query I rowsort label-1327
SELECT 87 * MIN ( ALL + 2 * + 69 ) AS col1
----
12006

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT NULLIF ( COALESCE ( ( 81 ), 61 + - COUNT( * ), ( - 52 ) ), 10 ) * - ( - 45 ) AS col2
----
3645

skipif mysql # not compatible
query I rowsort label-1328
SELECT NULLIF ( COALESCE ( ( 81 ), 61 + - COUNT ( * ), ( - 52 ) ), 10 ) * - ( - 45 ) AS col2
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - 19 * 77 + COUNT( * ) AS col0
----
-1462

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 19 * 77 + COUNT ( * ) AS col0
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT COUNT ( * ) + 13 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1331
SELECT COALESCE ( - 0, 58 * + COALESCE ( 42, - 31 ) + + 92 * - ( + 22 * CAST( + CAST( - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS SIGNED ) + - 79 ), - 72 ) - 24
----
-24

skipif mysql # not compatible
query I rowsort label-1331
SELECT COALESCE ( - 0, 58 * + COALESCE ( 42, - 31 ) + + 92 * - ( + 22 * CAST ( + CAST ( - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS INTEGER ) AS INTEGER ) + - 79 ), - 72 ) - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT COUNT( * ) + - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT COUNT ( * ) + - 68 AS col0
----
-67

query I rowsort
SELECT ( 52 ) + ( 1 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1334
SELECT ( + 2 ) DIV - COALESCE ( + 9 - 96, 99 DIV - 72, COALESCE ( + 62, - COUNT( * ), + 69 ) * 22 )
----
0

skipif mysql # not compatible
query I rowsort label-1334
SELECT ( + 2 ) / - COALESCE ( + 9 - 96, 99 / - 72, COALESCE ( + 62, - COUNT ( * ), + 69 ) * 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT 2 + COUNT( * ) * 26 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT 2 + COUNT ( * ) * 26 AS col0
----
28

query I rowsort
SELECT 12 + 6
----
18

query I rowsort
SELECT 47 - 76
----
-29

query I rowsort
SELECT DISTINCT 37 * 80
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ( 35 ) + + COUNT( * ) * 12 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1339
SELECT ( 35 ) + + COUNT ( * ) * 12 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT COUNT( * ) + - CASE - 75 WHEN 27 THEN NULLIF ( 96, 16 ) * CAST( + 56 / + COUNT( * ) AS SIGNED ) WHEN 90 * - 95 THEN NULL ELSE - 46 END * 45 col1
----
2071

skipif mysql # not compatible
query I rowsort label-1340
SELECT COUNT ( * ) + - CASE - 75 WHEN 27 THEN NULLIF ( 96, 16 ) * CAST ( + 56 / + COUNT ( * ) AS INTEGER ) WHEN 90 * - 95 THEN NULL ELSE - 46 END * 45 col1
----
2071

query I rowsort
SELECT 66 * - 29
----
-1914

query I rowsort
SELECT ALL - 97 - + 51
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT COUNT( * ) * + 16
----
16

skipif mysql # not compatible
query I rowsort label-1343
SELECT COUNT ( * ) * + 16
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1344
SELECT 47 + + MAX( DISTINCT - 27 ) DIV 96 col2
----
47

skipif mysql # not compatible
query I rowsort label-1344
SELECT 47 + + MAX ( DISTINCT - 27 ) / 96 col2
----
47

query I rowsort
SELECT 56 + - 23
----
33

query I rowsort
SELECT 75 + 96 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT 82 DIV MAX( 14 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-1347
SELECT 82 / MAX ( 14 ) col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL + 61 * + CASE 31 * - ( - 87 ) WHEN + 73 + 81 THEN - MAX( 15 ) WHEN - COUNT( * ) THEN - CASE 96 WHEN - 24 / - 37 + - 83 THEN NULL WHEN 96 * - 71 THEN - CAST( NULL AS SIGNED ) - - 47 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL + 61 * + CASE 31 * - ( - 87 ) WHEN + 73 + 81 THEN - MAX ( 15 ) WHEN - COUNT ( * ) THEN - CASE 96 WHEN - 24 / - 37 + - 83 THEN NULL WHEN 96 * - 71 THEN - CAST ( NULL AS INTEGER ) - - 47 END END AS col2
----
NULL

query I rowsort
SELECT 65 * - 80 AS col1
----
-5200

query I rowsort
SELECT ALL + 35 * + 2 AS col1
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1351
SELECT 72 / + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT 72 / + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL + 62 * - 91
----
-5642

query I rowsort
SELECT DISTINCT - ( 13 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + 44 * + 58 AS col2
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT - - 34 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT - - 34 * COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT - 8 / CASE 7 * CAST( NULLIF ( 37, ( + 32 ) ) * 63 AS SIGNED ) WHEN 62 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 8 / CASE 7 * CAST ( NULLIF ( 37, ( + 32 ) ) * 63 AS INTEGER ) WHEN 62 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT - 19 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - 19 / 61 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 8 + 2 * 56
----
104

query I rowsort
SELECT + - ( 18 ) AS col1
----
-18

query I rowsort
SELECT + 57 * + 39 AS col0
----
2223

query I rowsort
SELECT DISTINCT - 84 + 19 AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT ALL - 26 + + COUNT( * ) DIV 68
----
-26

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - 26 + + COUNT ( * ) / 68
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - COALESCE ( 88, + COUNT( * ), COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - COALESCE ( 88, + COUNT ( * ), COUNT ( * ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT - 62 * - CAST( 11 AS SIGNED ) + 79 * + ( COALESCE ( - COUNT( * ), 38 ) ) AS col2
----
603

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 62 * - CAST ( 11 AS INTEGER ) + 79 * + ( COALESCE ( - COUNT ( * ), 38 ) ) AS col2
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( ALL - 40 )
----
1

query I rowsort
SELECT ALL 54 * 18
----
972

query I rowsort
SELECT ALL + 23 + 21 * 83 col2
----
1766

query I rowsort
SELECT DISTINCT + 1 + - 8
----
-7

query I rowsort
SELECT ALL - 43 + - 99
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT + SUM( ALL + 53 ) DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT + SUM ( ALL + 53 ) / + 79 AS col2
----
0

query I rowsort
SELECT ALL - CASE + 78 WHEN + 75 THEN NULL ELSE 56 END
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT + 73 + - 50 DIV - 73
----
73

skipif mysql # not compatible
query I rowsort label-1372
SELECT + 73 + - 50 / - 73
----
73

query I rowsort
SELECT ( + - 36 ) * 52
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - MAX( ALL 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1374
SELECT - MAX ( ALL 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT CAST( - COUNT( * ) AS SIGNED ) + - 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1375
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 58 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT + MAX( 74 ) * MIN( + 80 DIV - ( 77 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1376
SELECT + MAX ( 74 ) * MIN ( + 80 / - ( 77 ) )
----
-74

query I rowsort
SELECT + 72 * - - 57 AS col2
----
4104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL 42 * - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL 42 * - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + 38, + 82, 68 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + COUNT( * ) * 17 * - 3
----
-51

skipif mysql # not compatible
query I rowsort label-1380
SELECT + COUNT ( * ) * 17 * - 3
----
-51

query I rowsort
SELECT + NULLIF ( 83, ( 1 ) ) - - 66 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT + COUNT( * ) * 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1382
SELECT + COUNT ( * ) * 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COALESCE ( - MIN( 94 ), + 96 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COALESCE ( - MIN ( 94 ), + 96 ) AS col2
----
-94

query I rowsort
SELECT NULLIF ( - + 91, 52 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + COALESCE ( - COUNT( * ), - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-1385
SELECT + COALESCE ( - COUNT ( * ), - 94 )
----
-1

query I rowsort
SELECT + NULLIF ( + 96, 71 ) * 72
----
6912

query I rowsort
SELECT ALL 46 * + 63 AS col1
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT + 12 DIV - 8 - + 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 12 / - 8 - + 26 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT ALL + CASE 22 WHEN + COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + CASE 22 WHEN + COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) - 23 END
----
NULL

query I rowsort
SELECT ALL - 37 * 60 + 16
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - 34 - 6 + - COUNT( * ) * - 73
----
33

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 34 - 6 + - COUNT ( * ) * - 73
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT NULLIF ( - ( 8 ), + MIN( DISTINCT + 42 ) + + 99 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1392
SELECT NULLIF ( - ( 8 ), + MIN ( DISTINCT + 42 ) + + 99 ) AS col0
----
-8

query I rowsort
SELECT - 96 * - 75 + 86 AS col1
----
7286

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + COUNT( * ) * + + 93 + + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1394
SELECT + COUNT ( * ) * + + 93 + + COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + + 16 + - + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1395
SELECT + + 16 + - + COUNT ( * ) AS col2
----
15

query I rowsort
SELECT DISTINCT + - 4 * + 83 + + 23
----
-309

query I rowsort
SELECT - - ( - 30 ) + + 67
----
37

query I rowsort
SELECT - - 35 - - + ( 86 ) AS col2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT - NULLIF ( - 15, 93 ) DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT - NULLIF ( - 15, 93 ) / - 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1400
SELECT ALL + COUNT( * ) * + - CAST( NULL AS DECIMAL ) + + 50 + + 24 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS REAL ) + + 50 + + 24 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1401
SELECT - CAST( + - 28 AS SIGNED ) * + 16 + - 78 DIV 59 AS col2
----
447

skipif mysql # not compatible
query I rowsort label-1401
SELECT - CAST ( + - 28 AS INTEGER ) * + 16 + - 78 / 59 AS col2
----
447

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT - COALESCE ( + 53, 29 + + 20 DIV COALESCE ( + 53 DIV + 33, + CASE AVG ( DISTINCT 44 ) WHEN - 76 THEN - 59 WHEN 27 * 59 THEN NULL ELSE + 8 END + + 11 * - 83 ) ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT - COALESCE ( + 53, 29 + + 20 / COALESCE ( + 53 / + 33, + CASE AVG ( DISTINCT 44 ) WHEN - 76 THEN - 59 WHEN 27 * 59 THEN NULL ELSE + 8 END + + 11 * - 83 ) ) / - 95
----
0

query I rowsort
SELECT DISTINCT + + 19 * 18 + + 74 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT + 79 * COUNT( * ) * - MIN( 92 * 14 ) + COUNT( * ) AS col1
----
-101751

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + 79 * COUNT ( * ) * - MIN ( 92 * 14 ) + COUNT ( * ) AS col1
----
-101751

query I rowsort
SELECT - 65 * 50 AS col0
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL COALESCE ( COUNT( * ), 93 )
----
1

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL COALESCE ( COUNT ( * ), 93 )
----
1

query I rowsort
SELECT - - 97 + 22 AS col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT - - COUNT( * ) * - - 67 DIV 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1408
SELECT - - COUNT ( * ) * - - 67 / 62 AS col2
----
1

query I rowsort
SELECT - ( - - 94 ) AS col2
----
-94

query I rowsort
SELECT DISTINCT + + 39 - - 73 * - ( - 60 - ( 8 ) ) AS col0
----
5003

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + 79 * - COALESCE ( + 95, COUNT( * ) + CASE 92 WHEN 82 + 79 THEN + ( NULLIF ( + 76, COUNT( * ) + 93 * 22 ) ) ELSE + 67 * 90 - 97 END )
----
-7505

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 79 * - COALESCE ( + 95, COUNT ( * ) + CASE 92 WHEN 82 + 79 THEN + ( NULLIF ( + 76, COUNT ( * ) + 93 * 22 ) ) ELSE + 67 * 90 - 97 END )
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - MIN( - CASE - - 75 WHEN + 0 THEN - COALESCE ( + ( 33 ), + 12, 39 + - 18, 71 ) END ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT - MIN ( - CASE - - 75 WHEN + 0 THEN - COALESCE ( + ( 33 ), + 12, 39 + - 18, 71 ) END ) * 50
----
NULL

query I rowsort
SELECT + 48 + + 45
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL ( + + SUM( + + 39 ) )
----
39

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL ( + + SUM ( + + 39 ) )
----
39

query I rowsort
SELECT ALL + 79 * + 58 AS col1
----
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - COUNT( * ) + + 45 - - + ( 73 ) - - 0 col1
----
117

skipif mysql # not compatible
query I rowsort label-1416
SELECT - COUNT ( * ) + + 45 - - + ( 73 ) - - 0 col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 12 + + NULLIF ( + - COUNT( * ), + 33 + - 30 / + 26 ) * 98
----
-110

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 12 + + NULLIF ( + - COUNT ( * ), + 33 + - 30 / + 26 ) * 98
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1418
SELECT + CAST( - 59 AS SIGNED ) * - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1418
SELECT + CAST ( - 59 AS INTEGER ) * - COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT - CASE + 25 WHEN ( - 53 ) THEN NULL WHEN 97 THEN CAST( NULL AS SIGNED ) * 5 END + - 41 * - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - CASE + 25 WHEN ( - 53 ) THEN NULL WHEN 97 THEN CAST ( NULL AS INTEGER ) * 5 END + - 41 * - 6 col1
----
NULL

query II rowsort
SELECT 55 AS col1, - 24 AS col0
----
55
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + 58 + + 58 + + ( COUNT( * ) )
----
117

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 58 + + 58 + + ( COUNT ( * ) )
----
117

query I rowsort
SELECT + ( - + 98 ) + + 4 + 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT 99 DIV 19 * ( 63 ) * 90 AS col2
----
28350

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT 99 / 19 * ( 63 ) * 90 AS col2
----
28350

query I rowsort
SELECT + 11 + + ( 32 ) AS col0
----
43

query I rowsort
SELECT + 22 * + - 40
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 34 * - - NULLIF ( 69, 3 + COALESCE ( - COUNT( * ) + COUNT( + 27 + 38 * + 93 ) * 57, + 32, COUNT( * ) ) / + 8 )
----
2346

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 34 * - - NULLIF ( 69, 3 + COALESCE ( - COUNT ( * ) + COUNT ( + 27 + 38 * + 93 ) * 57, + 32, COUNT ( * ) ) / + 8 )
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1427
SELECT + - 39 + COALESCE ( CASE - 29 WHEN 44 + - 54 * 55 THEN NULL WHEN + 72 DIV - 52 THEN + CASE + MAX( 65 ) WHEN - 23 + SUM( DISTINCT 25 ) THEN 14 + 22 * ( 30 ) WHEN 78 + + 86 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ELSE COUNT( * ) END, + 97 ) + - 31 * MAX( 47 DIV 37 - - 87 )
----
-2766

skipif mysql # not compatible
query I rowsort label-1427
SELECT + - 39 + COALESCE ( CASE - 29 WHEN 44 + - 54 * 55 THEN NULL WHEN + 72 / - 52 THEN + CASE + MAX ( 65 ) WHEN - 23 + SUM ( DISTINCT 25 ) THEN 14 + 22 * ( 30 ) WHEN 78 + + 86 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ELSE COUNT ( * ) END, + 97 ) + - 31 * MAX ( 47 / 37 - - 87 )
----
-2766

query II rowsort
SELECT - 60 AS col2, - 79
----
-60
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + - ( NULLIF ( + + CAST( - 74 AS SIGNED ), 84 ) )
----
74

skipif mysql # not compatible
query I rowsort label-1429
SELECT + - ( NULLIF ( + + CAST ( - 74 AS INTEGER ), 84 ) )
----
74

query I rowsort
SELECT - 12 * + 31 + + + 2 AS col0
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL + - CASE - COUNT( * ) WHEN 73 - + 82 * 91 THEN - COALESCE ( + 6, + CAST( NULL AS SIGNED ) ) * 65 + 82 * 91 WHEN + 40 * + SUM( + 33 ) - 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + - CASE - COUNT ( * ) WHEN 73 - + 82 * 91 THEN - COALESCE ( + 6, + CAST ( NULL AS INTEGER ) ) * 65 + 82 * 91 WHEN + 40 * + SUM ( + 33 ) - 47 THEN NULL END
----
NULL

query I rowsort
SELECT + - 95 * + 35
----
-3325

query I rowsort
SELECT COALESCE ( - 18, - 7 * 42 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL + NULLIF ( + 90, - CAST( NULL AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + NULLIF ( + 90, - CAST ( NULL AS INTEGER ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 74 DIV - + 45 + - ( ( 76 ) ) * COUNT( 75 DIV 35 )
----
-77

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 74 / - + 45 + - ( ( 76 ) ) * COUNT ( 75 / 35 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT + - 87 + - COUNT( * ) * 39 + - CAST( + 84 + ( 53 ) * ( - NULLIF ( 43, 76 * 69 ) * + 33 ) AS SIGNED ) * - 40 col0
----
-3005046

skipif mysql # not compatible
query I rowsort label-1436
SELECT + - 87 + - COUNT ( * ) * 39 + - CAST ( + 84 + ( 53 ) * ( - NULLIF ( 43, 76 * 69 ) * + 33 ) AS INTEGER ) * - 40 col0
----
-3005046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT - 97 * CAST( - CAST( MIN( + 11 ) AS SIGNED ) AS SIGNED ) * + 64
----
68288

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 97 * CAST ( - CAST ( MIN ( + 11 ) AS INTEGER ) AS INTEGER ) * + 64
----
68288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT + - CAST( - - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + - CAST ( - - 89 AS INTEGER )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT CAST( + NULLIF ( 91, AVG ( DISTINCT + 90 ) + 45 ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-1439
SELECT CAST ( + NULLIF ( 91, AVG ( DISTINCT + 90 ) + 45 ) AS INTEGER )
----
91

query II rowsort
SELECT 75, 2 + - 82 + - 21 AS col0
----
75
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT - COALESCE ( + COUNT( * ), - ( + 18 ) * 3 + + CAST( NULL AS SIGNED ), 24 * COUNT( 62 ) ) * + 4 - - 43 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1441
SELECT - COALESCE ( + COUNT ( * ), - ( + 18 ) * 3 + + CAST ( NULL AS INTEGER ), 24 * COUNT ( 62 ) ) * + 4 - - 43 AS col1
----
39

query I rowsort
SELECT - + 63 * + 31 AS col1
----
-1953

query I rowsort
SELECT - 42 + - + 85
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + - 75 + 33 + 31 * 84
----
2563

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + - 75 + 33 + 31 * 84
----
2563

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1445
SELECT ALL CASE COALESCE ( NULLIF ( MAX( DISTINCT NULLIF ( 65, + CAST( NULL AS DECIMAL ) ) ), 12 ), 62, 68 ) WHEN 31 * + 18 THEN 78 / + 2 END / 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL CASE COALESCE ( NULLIF ( MAX ( DISTINCT NULLIF ( 65, + CAST ( NULL AS REAL ) ) ), 12 ), 62, 68 ) WHEN 31 * + 18 THEN 78 / + 2 END / 18 AS col1
----
NULL

query I rowsort
SELECT 37 * - 41 * - + 30 + 88 * - 72
----
39174

query I rowsort
SELECT + 15 * - 16 * + 75 + 38 AS col1
----
-17962

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT + 80 * - 15 * + + SUM( - 8 ) * 70 + + 45 AS col0
----
672045

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + 80 * - 15 * + + SUM ( - 8 ) * 70 + + 45 AS col0
----
672045

query I rowsort
SELECT 60 - + 18 col2
----
42

query I rowsort
SELECT 40 * - - 53 * + - 71
----
-150520

query I rowsort
SELECT 91 + + 88 * + 9 AS col1
----
883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT 65 * - CASE 37 WHEN - 14 - - 64 THEN 43 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT 65 * - CASE 37 WHEN - 14 - - 64 THEN 43 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT CASE - 68 WHEN 75 THEN NULL WHEN - + 49 + 4 * - 2 THEN NULL WHEN 71 THEN 85 / COUNT( * ) END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT CASE - 68 WHEN 75 THEN NULL WHEN - + 49 + 4 * - 2 THEN NULL WHEN 71 THEN 85 / COUNT ( * ) END * - 14
----
NULL

query II rowsort
SELECT DISTINCT - 31 + - 78 AS col0, - 37 + - + 46 AS col0
----
-109
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 71 - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1455
SELECT 71 - + COUNT ( * )
----
70

query I rowsort
SELECT ALL - COALESCE ( 36, - + 41 ) + - 30 * 28
----
-876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT 81 - - - 65 + - - 80 DIV NULLIF ( 15, 92 + 49 ) DIV - COUNT( * ) + 96 DIV 99 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1457
SELECT 81 - - - 65 + - - 80 / NULLIF ( 15, 92 + 49 ) / - COUNT ( * ) + 96 / 99 AS col0
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1458
SELECT 16 * + 26 AS col1, CAST( NULL AS DECIMAL )
----
416
NULL

skipif mysql # not compatible
query II rowsort label-1458
SELECT 16 * + 26 AS col1, CAST ( NULL AS REAL )
----
416
NULL

query I rowsort
SELECT ALL - - 85 + - - 58
----
143

query I rowsort
SELECT ALL + 38 + - 1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT - + 64 DIV - 58 - - + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1461
SELECT - + 64 / - 58 - - + 75 AS col1
----
76

query I rowsort
SELECT DISTINCT - - 42 AS col0
----
42

query I rowsort
SELECT 4 - - ( 55 ) * + 71 * - 44 - - 15
----
-171801

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL - 47 * - - COALESCE ( + - 10, 71 ) + NULLIF ( COUNT( * ), - ( + 62 ) * + 88 ) * 89
----
559

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - 47 * - - COALESCE ( + - 10, 71 ) + NULLIF ( COUNT ( * ), - ( + 62 ) * + 88 ) * 89
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 34 * - - NULLIF ( + 75, - COUNT( * ) + - 78 * + 6 ) + 24 AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-1465
SELECT 34 * - - NULLIF ( + 75, - COUNT ( * ) + - 78 * + 6 ) + 24 AS col0
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT - 89 DIV 17 * 72 * - 22 + 12 + 25 AS col1
----
7957

skipif mysql # not compatible
query I rowsort label-1466
SELECT - 89 / 17 * 72 * - 22 + 12 + 25 AS col1
----
7957

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - COUNT( * ) * ( 42 ) * 74 AS col1
----
-3108

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - COUNT ( * ) * ( 42 ) * 74 AS col1
----
-3108

query I rowsort
SELECT 83 + + 80 - - 66 * + 64
----
4387

query I rowsort
SELECT - 61 + + 6 + + 33
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT 73 - 87 + + 50 + - + CAST( + 75 AS SIGNED ) * 66
----
-4914

skipif mysql # not compatible
query I rowsort label-1470
SELECT 73 - 87 + + 50 + - + CAST ( + 75 AS INTEGER ) * 66
----
-4914

query I rowsort
SELECT ALL 0 * 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT 60 * - MIN( ALL CAST( NULL AS SIGNED ) ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT 60 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT 49 * + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT 49 * + COUNT ( * ) col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT ALL - CAST( - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - CAST ( - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1475
SELECT + CAST( NULL AS SIGNED ) + - 92, 80 + - 2 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1475
SELECT + CAST ( NULL AS INTEGER ) + - 92, 80 + - 2 col2
----
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1476
SELECT ALL - NULLIF ( - COALESCE ( - 63, 17, + ( - COUNT( * ) ) + + COUNT( * ) ), COALESCE ( - 42, ( + ( CAST( + COUNT( * ) AS DECIMAL ) ) ) * + 10 + 30 ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - NULLIF ( - COALESCE ( - 63, 17, + ( - COUNT ( * ) ) + + COUNT ( * ) ), COALESCE ( - 42, ( + ( CAST ( + COUNT ( * ) AS REAL ) ) ) * + 10 + 30 ) ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT NULLIF ( + 93, + 18 ) + + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1477
SELECT NULLIF ( + 93, + 18 ) + + + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT 76 * 85 * + 50
----
323000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1479
SELECT 7 * 57 * - 67 + COUNT( 81 ) DIV 9 AS col0
----
-26733

skipif mysql # not compatible
query I rowsort label-1479
SELECT 7 * 57 * - 67 + COUNT ( 81 ) / 9 AS col0
----
-26733

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT 24 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT 24 / + 55
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1481
SELECT CAST( - 80 AS SIGNED ) + 44 DIV 18 + + - NULLIF ( + 12, 79 * 63 )
----
-90

skipif mysql # not compatible
query I rowsort label-1481
SELECT CAST ( - 80 AS INTEGER ) + 44 / 18 + + - NULLIF ( + 12, 79 * 63 )
----
-90

query I rowsort
SELECT ALL - 16 * 60 AS col0
----
-960

query I rowsort
SELECT ALL 71 + + + 26 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT 30 + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT 30 + COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 89 DIV CAST( 59 AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 89 / CAST ( 59 AS INTEGER ) col0
----
1

query I rowsort
SELECT 81 + + 90
----
171

query I rowsort
SELECT ALL 65 + + - 84 col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL 23 * 15 DIV + + 54
----
6

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 23 * 15 / + + 54
----
6

query I rowsort
SELECT DISTINCT 82 + 10
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + MAX( + + ( - 36 ) ) + 0 * + 78
----
-36

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + MAX ( + + ( - 36 ) ) + 0 * + 78
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT 53, ( + COUNT( * ) ) * - CASE - COUNT( * ) WHEN 0 THEN NULL WHEN 5 THEN + 72 ELSE NULL END * + CASE - 12 WHEN - 68 / 39 - - 11 THEN 23 END AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1491
SELECT DISTINCT 53, ( + COUNT ( * ) ) * - CASE - COUNT ( * ) WHEN 0 THEN NULL WHEN 5 THEN + 72 ELSE NULL END * + CASE - 12 WHEN - 68 / 39 - - 11 THEN 23 END AS col1
----
53
NULL

query I rowsort
SELECT ALL - 44 + - 33
----
-77

query I rowsort
SELECT 71 + 76
----
147

query I rowsort
SELECT CASE + - 79 WHEN + ( + + 76 ) THEN + 99 + + 94 WHEN 62 THEN NULL END * - ( 98 )
----
NULL

query I rowsort
SELECT 16 - 47
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL + 72 DIV + - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + 72 / + - 76 col0
----
0

query I rowsort
SELECT 90 + + 43 * - 16 AS col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL SUM( + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL SUM ( + + 89 )
----
89

query I rowsort
SELECT ALL - ( + 50 ) * - + 27 * - 6
----
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - - 7 * + 1 + + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - - 7 * + 1 + + + COUNT ( * ) AS col0
----
8

query II rowsort
SELECT + 7, 53 col2
----
7
53

query I rowsort
SELECT 18 + + 46
----
64

query I rowsort
SELECT 49 * + 48 AS col2
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT COUNT( * ) col1, - 42 * + 57 * - 36 AS col0
----
1
86184

skipif mysql # not compatible
query II rowsort label-1504
SELECT COUNT ( * ) col1, - 42 * + 57 * - 36 AS col0
----
1
86184

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + + MAX( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-1505
SELECT + + MAX ( - 67 )
----
-67

query I rowsort
SELECT 95 + - - 40 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - - 2 * - ( + - 95 ) + + 21 * - 45 + - 22 * COUNT( * ) AS col1
----
-777

skipif mysql # not compatible
query I rowsort label-1507
SELECT - - 2 * - ( + - 95 ) + + 21 * - 45 + - 22 * COUNT ( * ) AS col1
----
-777

query I rowsort
SELECT - + 35 * + 56 * - - 76 - + 13 * 78
----
-149974

query I rowsort
SELECT + + 30 * 3 AS col1
----
90

query II rowsort
SELECT ALL + 87, 5 AS col2
----
87
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + 91 / - ( COUNT( * ) ) - 97 * CASE + MIN( ALL - 79 ) WHEN 32 THEN NULL WHEN - COUNT( * ) * 88 THEN 3 ELSE NULL END * + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 91 / - ( COUNT ( * ) ) - 97 * CASE + MIN ( ALL - 79 ) WHEN 32 THEN NULL WHEN - COUNT ( * ) * 88 THEN 3 ELSE NULL END * + 14 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1512
SELECT + ( + + COUNT( * ) ) * - COUNT( * ) AS col0, 96 AS col2
----
-1
96

skipif mysql # not compatible
query II rowsort label-1512
SELECT + ( + + COUNT ( * ) ) * - COUNT ( * ) AS col0, 96 AS col2
----
-1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT ALL + - COUNT( ALL - CAST( - 96 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + - COUNT ( ALL - CAST ( - 96 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - COUNT( * ) * + + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT - COUNT ( * ) * + + COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT COUNT( * ) * - ( + COALESCE ( - CAST( NULL AS SIGNED ), - MAX( - 75 ), + 36 ) ) - 84
----
-159

skipif mysql # not compatible
query I rowsort label-1515
SELECT COUNT ( * ) * - ( + COALESCE ( - CAST ( NULL AS INTEGER ), - MAX ( - 75 ), + 36 ) ) - 84
----
-159

query I rowsort
SELECT ALL 84 * 43
----
3612

query I rowsort
SELECT + 89 * - 13 * - 34 AS col2
----
39338

query I rowsort
SELECT + 95 + + 62 * 91 col0
----
5737

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + SUM( ALL + ( - - 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-1519
SELECT + SUM ( ALL + ( - - 48 ) )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1520
SELECT DISTINCT + 7 AS col2, + CASE - 98 WHEN - COUNT( * ) * + 79 THEN NULL ELSE - 55 DIV + COUNT( * ) END
----
7
-55

skipif mysql # not compatible
query II rowsort label-1520
SELECT DISTINCT + 7 AS col2, + CASE - 98 WHEN - COUNT ( * ) * + 79 THEN NULL ELSE - 55 / + COUNT ( * ) END
----
7
-55

query I rowsort
SELECT ALL 48 * + 77
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + SUM( - 51 ) + 10 col1
----
-41

skipif mysql # not compatible
query I rowsort label-1522
SELECT + SUM ( - 51 ) + 10 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT 83 + + 29 + - 14 * - + COUNT( * ) + + 79 * 63 AS col2
----
5103

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 83 + + 29 + - 14 * - + COUNT ( * ) + + 79 * 63 AS col2
----
5103

query I rowsort
SELECT ALL 41 + + + 9 - - 44
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COUNT( * ) * + + NULLIF ( 62, - + ( + 78 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) * + + NULLIF ( 62, - + ( + 78 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - 5 + - + 54 - - COUNT( ALL NULLIF ( + COALESCE ( + - 14, + 36 * - 50 ), + 68 ) ) * 65
----
6

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 5 + - + 54 - - COUNT ( ALL NULLIF ( + COALESCE ( + - 14, + 36 * - 50 ), + 68 ) ) * 65
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - 64 * - 29 * + + COUNT( * ) AS col2
----
1856

skipif mysql # not compatible
query I rowsort label-1527
SELECT - 64 * - 29 * + + COUNT ( * ) AS col2
----
1856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT ALL COUNT( ALL + - ( - 38 ) ) DIV + ( - 46 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL COUNT ( ALL + - ( - 38 ) ) / + ( - 46 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT - 82 + - 44 + - COUNT( * ) * + 59 * 57 DIV + + 37 AS col0
----
-216

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 82 + - 44 + - COUNT ( * ) * + 59 * 57 / + + 37 AS col0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - ( - + CASE + 15 WHEN + + 89 + + 16 THEN + COUNT( * ) ELSE + 37 * 11 - + 51 * 61 END )
----
-2704

skipif mysql # not compatible
query I rowsort label-1530
SELECT - ( - + CASE + 15 WHEN + + 89 + + 16 THEN + COUNT ( * ) ELSE + 37 * 11 - + 51 * 61 END )
----
-2704

query I rowsort
SELECT ALL - NULLIF ( 67, 20 ) - 48 * + - 22
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - ( + SUM( ALL + 23 ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1532
SELECT - ( + SUM ( ALL + 23 ) ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT - CAST( NULL AS SIGNED ) / + CAST( + + CASE + 83 WHEN + COUNT( * ) THEN - MIN( 27 ) ELSE 12 / SUM( ALL 95 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( + + CASE + 83 WHEN + COUNT ( * ) THEN - MIN ( 27 ) ELSE 12 / SUM ( ALL 95 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1534
SELECT ALL 7 AS col0, + 98 DIV + - MAX( + - 81 ) - - ( - 68 )
----
7
-67

skipif mysql # not compatible
query II rowsort label-1534
SELECT ALL 7 AS col0, + 98 / + - MAX ( + - 81 ) - - ( - 68 )
----
7
-67

query I rowsort
SELECT DISTINCT - 69 * - - ( 97 )
----
-6693

query II rowsort
SELECT 63 AS col0, 17 * - - 88
----
63
1496

query I rowsort
SELECT - ( - 69 ) * 12 + - 22 AS col1
----
806

query I rowsort
SELECT + - 30 - + 54 col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT - - 25 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-1539
SELECT - - 25 / 14
----
1

query I rowsort
SELECT + + 56 + ( 80 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - - CASE - COUNT( DISTINCT - + 62 ) WHEN + 88 + - + 16 + - COALESCE ( 19, + 34 + + COUNT( * ) * 60 ) + CASE - 52 WHEN + MIN( 39 ) THEN 77 + + 36 WHEN COUNT( * ) THEN NULL WHEN MIN( ALL 89 ) THEN NULL ELSE - 1 * 76 + 7 END / + 51 THEN + 59 * 35 WHEN - CASE - 60 WHEN 46 THEN 4 END THEN 88 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - CASE - COUNT ( DISTINCT - + 62 ) WHEN + 88 + - + 16 + - COALESCE ( 19, + 34 + + COUNT ( * ) * 60 ) + CASE - 52 WHEN + MIN ( 39 ) THEN 77 + + 36 WHEN COUNT ( * ) THEN NULL WHEN MIN ( ALL 89 ) THEN NULL ELSE - 1 * 76 + 7 END / + 51 THEN + 59 * 35 WHEN - CASE - 60 WHEN 46 THEN 4 END THEN 88 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT 0 AS col1, COUNT( * ) + - 51 + 98 - - - 7 * - 74
----
0
566

skipif mysql # not compatible
query II rowsort label-1542
SELECT 0 AS col1, COUNT ( * ) + - 51 + 98 - - - 7 * - 74
----
0
566

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - - 81 + SUM( ALL - 94 )
----
-13

skipif mysql # not compatible
query I rowsort label-1543
SELECT - - 81 + SUM ( ALL - 94 )
----
-13

query II rowsort
SELECT DISTINCT + 84 AS col0, + 72 AS col1
----
84
72

query II rowsort
SELECT ALL + - 82 AS col0, + ( 5 ) AS col1
----
-82
5

query I rowsort
SELECT ALL + - NULLIF ( - + 47, + + 92 * - - ( + 13 ) )
----
47

query I rowsort
SELECT ALL + + 38 * + + 14 AS col1
----
532

query I rowsort
SELECT - - 79 + 35 * + 37 AS col2
----
1374

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT + ( 80 ) * + 32 AS col0, - ( + MIN( DISTINCT + 31 ) )
----
2560
-31

skipif mysql # not compatible
query II rowsort label-1549
SELECT + ( 80 ) * + 32 AS col0, - ( + MIN ( DISTINCT + 31 ) )
----
2560
-31

query I rowsort
SELECT ( 84 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + SUM( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1551
SELECT + SUM ( - 84 ) AS col1
----
-84

query I rowsort
SELECT ALL + ( + - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - COUNT( * ) + + + MAX( + ( + 33 ) ) + + + 30 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1553
SELECT - COUNT ( * ) + + + MAX ( + ( + 33 ) ) + + + 30 AS col0
----
62

query I rowsort
SELECT + COALESCE ( + 48, - + 18 * 98 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT ALL 36 * + COALESCE ( - 21, + CAST( ( + + 83 ) AS SIGNED ) ) + - 94 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL 36 * + COALESCE ( - 21, + CAST ( ( + + 83 ) AS INTEGER ) ) + - 94 AS col1
----
-850

query I rowsort
SELECT - ( - 57 ) + 8
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT DISTINCT COUNT( * ) * - CAST( 20 AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT COUNT ( * ) * - CAST ( 20 AS INTEGER ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT 81 * + - COUNT( + 45 ) + 17 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1558
SELECT 81 * + - COUNT ( + 45 ) + 17 AS col0
----
-64

query I rowsort
SELECT ALL 70 * + - 42
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT - 76 + 70 + - COUNT( * ) - - - 50 col0
----
-57

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 76 + 70 + - COUNT ( * ) - - - 50 col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT + COUNT( * ) * + ( 37 ) * + + 23 DIV COUNT( * ) * - SUM( ALL - 24 ) * + 70 AS col0
----
1429680

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + COUNT ( * ) * + ( 37 ) * + + 23 / COUNT ( * ) * - SUM ( ALL - 24 ) * + 70 AS col0
----
1429680

query I rowsort
SELECT + 22 + - + 77
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT + + SUM( DISTINCT 41 ) + - 62 * 21
----
-1261

skipif mysql # not compatible
query I rowsort label-1563
SELECT + + SUM ( DISTINCT 41 ) + - 62 * 21
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + + 96 * + - CASE - 90 WHEN COUNT( * ) THEN - 34 ELSE - 69 END + + 71 + + 18
----
6713

skipif mysql # not compatible
query I rowsort label-1564
SELECT + + 96 * + - CASE - 90 WHEN COUNT ( * ) THEN - 34 ELSE - 69 END + + 71 + + 18
----
6713

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT + - 85 + + SUM( - - 53 ) + + COUNT( * ) * 70 AS col2, COUNT( * ) AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-1565
SELECT + - 85 + + SUM ( - - 53 ) + + COUNT ( * ) * 70 AS col2, COUNT ( * ) AS col2
----
38
1

query II rowsort
SELECT + 14 + + + 1 col2, 61
----
15
61

query I rowsort
SELECT 78 + - + 93 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT - - MAX( DISTINCT - 20 ) AS col2, + 20
----
-20
20

skipif mysql # not compatible
query II rowsort label-1568
SELECT - - MAX ( DISTINCT - 20 ) AS col2, + 20
----
-20
20

query I rowsort
SELECT - 27 * 18 AS col0
----
-486

query I rowsort
SELECT - 36 + - - 78 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL + 13 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 13 / - 45
----
0

query I rowsort
SELECT DISTINCT + 97 + + 6
----
103

query II rowsort
SELECT ALL + ( 63 ) + - 79, 64 AS col1
----
-16
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1574
SELECT + 63 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT + 63 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 64 + 96
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT NULLIF ( + - MAX( 27 ), + + 20 ) * 8 + - 57
----
-273

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT NULLIF ( + - MAX ( 27 ), + + 20 ) * 8 + - 57
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + NULLIF ( 30, + 3 + + 95 ) * + COUNT( ALL + - 3 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1577
SELECT + NULLIF ( 30, + 3 + + 95 ) * + COUNT ( ALL + - 3 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT + ( + 2 ) + 19 - 16 * - SUM( ALL + CASE WHEN NOT ( 38 ) >= - 92 * + 92 THEN - 72 END ) * - NULLIF ( + 33 + 0, - 57 / - 70 + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + ( + 2 ) + 19 - 16 * - SUM ( ALL + CASE WHEN NOT ( 38 ) >= - 92 * + 92 THEN - 72 END ) * - NULLIF ( + 33 + 0, - 57 / - 70 + 98 ) AS col0
----
NULL

query I rowsort
SELECT + - 71 * + 81 + 92 * + 59 col0
----
-323

query I rowsort
SELECT ALL - 57 + + - 49 AS col1
----
-106

query I rowsort
SELECT DISTINCT - ( - 62 )
----
62

query I rowsort
SELECT ALL + 85 * + 16 AS col1
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL - 58 + - 98 + - + COUNT( * ), + 28 + + 37 AS col0
----
-157
65

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 58 + - 98 + - + COUNT ( * ), + 28 + + 37 AS col0
----
-157
65

query I rowsort
SELECT DISTINCT + 3 * - 66 AS col0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT 75 - - CAST( 52 AS SIGNED ) * 92 - - 54 - + - 87 * 61
----
10220

skipif mysql # not compatible
query I rowsort label-1585
SELECT 75 - - CAST ( 52 AS INTEGER ) * 92 - - 54 - + - 87 * 61
----
10220

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT COUNT( * ) * - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1586
SELECT COUNT ( * ) * - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + CASE - 48 WHEN + - 8 THEN + 5 WHEN + + 16 THEN NULL END * - COUNT( * ) * + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + CASE - 48 WHEN + - 8 THEN + 5 WHEN + + 16 THEN NULL END * - COUNT ( * ) * + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 31 * - 84 + + COUNT( * )
----
2605

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 31 * - 84 + + COUNT ( * )
----
2605

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL - COALESCE ( + CASE - - MAX( + 39 ) WHEN - - ( - 13 ) THEN 4 ELSE NULL END, 42 ) - 30 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - COALESCE ( + CASE - - MAX ( + 39 ) WHEN - - ( - 13 ) THEN 4 ELSE NULL END, 42 ) - 30 AS col2
----
-72

query II rowsort
SELECT 0 * - 47 * - 36 AS col1, 20 * - - 50 * 94 * + + 2 AS col1
----
0
188000

query I rowsort
SELECT ALL - 86 * 90 col0
----
-7740

query II rowsort
SELECT DISTINCT - 48 AS col2, - 17 * + 62 AS col1
----
-48
-1054

query I rowsort
SELECT 19 - - 18 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT ALL 17 DIV - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 17 / - 65 col1
----
0

query II rowsort
SELECT 20 AS col1, + 23
----
20
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT 55 + - + 81 + + COUNT( * ) * + 15 + - 84 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1596
SELECT 55 + - + 81 + + COUNT ( * ) * + 15 + - 84 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1597
SELECT + COUNT( * ) DIV - 4
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT + COUNT ( * ) / - 4
----
0

query I rowsort
SELECT ALL - - 50 * + 75 AS col0
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT - 54 + + + MAX( - 81 )
----
-135

skipif mysql # not compatible
query I rowsort label-1599
SELECT - 54 + + + MAX ( - 81 )
----
-135

query II rowsort
SELECT + 59 * + + ( + + ( - 56 ) ), 6 AS col2
----
-3304
6

query II rowsort
SELECT - - 4 AS col0, 88 AS col2
----
4
88

query I rowsort
SELECT - 68 + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL COUNT( * ) * + 28 * - 43 + - + COUNT( * ) + - - SUM( - 78 )
----
-1283

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL COUNT ( * ) * + 28 * - 43 + - + COUNT ( * ) + - - SUM ( - 78 )
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - + CASE 88 WHEN + 25 THEN - + 7 WHEN - - 12 + + COUNT( * ) THEN NULL WHEN - 33 THEN NULL ELSE + - 56 END + 12
----
68

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - + CASE 88 WHEN + 25 THEN - + 7 WHEN - - 12 + + COUNT ( * ) THEN NULL WHEN - 33 THEN NULL ELSE + - 56 END + 12
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT DISTINCT 4 col2, + 28 + + ( - + COUNT( * ) )
----
4
27

skipif mysql # not compatible
query II rowsort label-1605
SELECT DISTINCT 4 col2, + 28 + + ( - + COUNT ( * ) )
----
4
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT ALL + SUM( - 13 ) * - 58 + + 54 DIV + - COUNT( * )
----
700

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL + SUM ( - 13 ) * - 58 + + 54 / + - COUNT ( * )
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL + + 46 * - COUNT( * ) * - 24 * + - 84 * - + COUNT( * ) * - 52 AS col2, - 59 * - 5
----
-4822272
295

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL + + 46 * - COUNT ( * ) * - 24 * + - 84 * - + COUNT ( * ) * - 52 AS col2, - 59 * - 5
----
-4822272
295

query I rowsort
SELECT DISTINCT 82 + 33 AS col1
----
115

query I rowsort
SELECT - 1 - - - 46
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL 44 + + + CAST( - + 20 AS SIGNED ) * + - 3 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 44 + + + CAST ( - + 20 AS INTEGER ) * + - 3 AS col0
----
104

query I rowsort
SELECT 52 + + - 81 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1612
SELECT ALL CAST( 91 AS SIGNED ) + + 82 DIV 56 * 57 + + 94 AS col2
----
242

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL CAST ( 91 AS INTEGER ) + + 82 / 56 * 57 + + 94 AS col2
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL - CAST( NULL AS SIGNED ) * - 85 + CASE - NULLIF ( - 88, - 96 ) WHEN 29 THEN 42 - - 2 * + ( + 48 ) END * + ( - 7 * MAX( DISTINCT 49 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - CAST ( NULL AS INTEGER ) * - 85 + CASE - NULLIF ( - 88, - 96 ) WHEN 29 THEN 42 - - 2 * + ( + 48 ) END * + ( - 7 * MAX ( DISTINCT 49 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - ( + + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - ( + + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT COUNT( * ) * + 29 + 50 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT COUNT ( * ) * + 29 + 50 AS col0
----
79

query I rowsort
SELECT ALL 25 * + - 77 AS col1
----
-1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT + ( + 96 ) * - 65 * - 14 * + CAST( COUNT( * ) AS SIGNED ) + - - 37 + - - 20 + + 61 * COUNT( * )
----
87478

skipif mysql # not compatible
query I rowsort label-1617
SELECT + ( + 96 ) * - 65 * - 14 * + CAST ( COUNT ( * ) AS INTEGER ) + - - 37 + - - 20 + + 61 * COUNT ( * )
----
87478

query I rowsort
SELECT ALL 90 * - - 5 - 3 AS col2
----
447

query I rowsort
SELECT DISTINCT 60 * + 21 col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL COUNT( * ) * MAX( ALL + + COALESCE ( + 27, 53 ) )
----
27

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( * ) * MAX ( ALL + + COALESCE ( + 27, 53 ) )
----
27

query II rowsort
SELECT 10 * + 73 AS col0, ( - 3 ) AS col1
----
730
-3

query I rowsort
SELECT ( + 15 ) + 54
----
69

query I rowsort
SELECT 10 * + 54
----
540

query I rowsort
SELECT 19 + + + 97
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1625
SELECT DISTINCT - ( - 79 ) * - - 59 * + + 79 col1, + 55 * 36 + + COALESCE ( + - 72, COUNT( * ) - COALESCE ( + ( CAST( NULL AS SIGNED ) ), 68 ), + 13 + 80 * + 70, + SUM( ALL 73 ) - - 57 ) * COUNT( * )
----
368219
1908

skipif mysql # not compatible
query II rowsort label-1625
SELECT DISTINCT - ( - 79 ) * - - 59 * + + 79 col1, + 55 * 36 + + COALESCE ( + - 72, COUNT ( * ) - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), 68 ), + 13 + 80 * + 70, + SUM ( ALL 73 ) - - 57 ) * COUNT ( * )
----
368219
1908

query I rowsort
SELECT 0 * - 35
----
0

query II rowsort
SELECT 35 * + 24, 33 AS col1
----
840
33

query I rowsort
SELECT ALL - 55 * - 14 AS col2
----
770

query I rowsort
SELECT 6 + 52 + + - 90 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - NULLIF ( SUM( DISTINCT 77 ), - 23 ) * - + 17 + - 62
----
1247

skipif mysql # not compatible
query I rowsort label-1630
SELECT - NULLIF ( SUM ( DISTINCT 77 ), - 23 ) * - + 17 + - 62
----
1247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT - + 63 * + COUNT( * ) - - CAST( - - 37 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-1631
SELECT - + 63 * + COUNT ( * ) - - CAST ( - - 37 AS INTEGER )
----
-26

query I rowsort
SELECT DISTINCT - COALESCE ( - + 71, 94 ) + + 71
----
142

query I rowsort
SELECT ALL - + 23 + + 29
----
6

onlyif mysql # DIV for integer division: 
query III rowsort label-1634
SELECT - 18 + + + 27 + 90 + + 67 AS col2, - 55 + - 37 DIV 67 AS col2, 84
----
166
-55
84

skipif mysql # not compatible
query III rowsort label-1634
SELECT - 18 + + + 27 + 90 + + 67 AS col2, - 55 + - 37 / 67 AS col2, 84
----
166
-55
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - 32 + + + 91 + + CASE - ( + 73 ) WHEN 35 + - - ( - COUNT( * ) ) THEN NULL WHEN 1 THEN + 85 WHEN 34 + 10 THEN NULL END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT - 32 + + + 91 + + CASE - ( + 73 ) WHEN 35 + - - ( - COUNT ( * ) ) THEN NULL WHEN 1 THEN + 85 WHEN 34 + 10 THEN NULL END + + 96
----
NULL

query II rowsort
SELECT - 71 + + 51 AS col2, - 46
----
-20
-46

query I rowsort
SELECT + - 36 - + 37
----
-73

query I rowsort
SELECT - 98 + CASE - 46 WHEN + 92 * + 87 * + 77 THEN + - ( - 50 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT + - 86 + + CAST( + 40 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1639
SELECT + - 86 + + CAST ( + 40 AS INTEGER )
----
-46

query I rowsort
SELECT ALL + 81 + 69
----
150

query I rowsort
SELECT - + 75 * + 46 AS col1
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT + 53 - + + 56 - - CASE - - 53 WHEN + + 82 + - + COUNT( * ) THEN 95 * - 72 + 76 * + 22 WHEN 49 THEN 77 + - 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + 53 - + + 56 - - CASE - - 53 WHEN + + 82 + - + COUNT ( * ) THEN 95 * - 72 + 76 * + 22 WHEN 49 THEN 77 + - 18 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT - - 1 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - - 1 - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + - 39 - + 31 - - 54 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT - - 76 * COALESCE ( - 90, - CASE - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + + ( + - ( 68 ) ) THEN SUM( DISTINCT + 90 ) DIV + 56 WHEN - 84 THEN NULL ELSE - 81 + 85 END ) * 97 + + 98 AS col1
----
-663382

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - - 76 * COALESCE ( - 90, - CASE - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + + ( + - ( 68 ) ) THEN SUM ( DISTINCT + 90 ) / + 56 WHEN - 84 THEN NULL ELSE - 81 + 85 END ) * 97 + + 98 AS col1
----
-663382

query I rowsort
SELECT + 95 + 22
----
117

query I rowsort
SELECT - 7 * - 66 AS col1
----
462

query I rowsort
SELECT + 13 * + 36 * + 52
----
24336

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + SUM( DISTINCT - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1649
SELECT + SUM ( DISTINCT - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT ( COALESCE ( 61, + 69 * 59, + 0 * 16 + CASE 56 WHEN + CAST( 35 AS SIGNED ) THEN + 67 WHEN + 93 THEN NULL END ) )
----
61

skipif mysql # not compatible
query I rowsort label-1650
SELECT ( COALESCE ( 61, + 69 * 59, + 0 * 16 + CASE 56 WHEN + CAST ( 35 AS INTEGER ) THEN + 67 WHEN + 93 THEN NULL END ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 62 * - COUNT( * ) * + CAST( + - COUNT( - - 79 ) AS SIGNED ) * + ( - MAX( DISTINCT - - 11 ) ) + - 9 / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 62 * - COUNT ( * ) * + CAST ( + - COUNT ( - - 79 ) AS INTEGER ) * + ( - MAX ( DISTINCT - - 11 ) ) + - 9 / - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT + 29 DIV + - ( + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 29 / + - ( + 82 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 53 * - 53
----
-2809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT + ( - + CASE + 73 WHEN - COUNT( 60 ) THEN NULL ELSE - - NULLIF ( - MIN( - + CAST( NULL AS SIGNED ) ), - NULLIF ( 77, 13 / - 52 ) ) * + COUNT( + 19 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + ( - + CASE + 73 WHEN - COUNT ( 60 ) THEN NULL ELSE - - NULLIF ( - MIN ( - + CAST ( NULL AS INTEGER ) ), - NULLIF ( 77, 13 / - 52 ) ) * + COUNT ( + 19 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL COUNT( * ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL COUNT ( * ) * + 61
----
61

query I rowsort
SELECT + 11 * + - 34 AS col0
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT 32 * - 56 * - 6 - - COALESCE ( + 72, - - 9 DIV + - 4 + - 62, + 7 )
----
10824

skipif mysql # not compatible
query I rowsort label-1657
SELECT 32 * - 56 * - 6 - - COALESCE ( + 72, - - 9 / + - 4 + - 62, + 7 )
----
10824

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1658
SELECT NULLIF ( ( + MIN( ALL 5 ) ), - - 41 ) AS col1, - 21 DIV - COALESCE ( 36, + + 95 + + 21 * 72 ) - + 9
----
5
-9

skipif mysql # not compatible
query II rowsort label-1658
SELECT NULLIF ( ( + MIN ( ALL 5 ) ), - - 41 ) AS col1, - 21 / - COALESCE ( 36, + + 95 + + 21 * 72 ) - + 9
----
5
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT CASE WHEN NOT CAST( NULL AS SIGNED ) < + 40 THEN + 44 END * - MIN( + 36 ) + + 94 + - ( + ( COUNT( * ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT CASE WHEN NOT CAST ( NULL AS INTEGER ) < + 40 THEN + 44 END * - MIN ( + 36 ) + + 94 + - ( + ( COUNT ( * ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + MIN( DISTINCT - ( + 53 ) ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + MIN ( DISTINCT - ( + 53 ) ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + NULLIF ( - 32, 37 * - MIN( ALL + + 90 ) * - 76 + - + 75 * + 12 * + 63 )
----
-32

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + NULLIF ( - 32, 37 * - MIN ( ALL + + 90 ) * - 76 + - + 75 * + 12 * + 63 )
----
-32

query I rowsort
SELECT DISTINCT - 10 * + 60 * + - 81 * ( + + 81 ) + - ( + 56 ) * + + 19 + - - 72
----
3935608

query II rowsort
SELECT DISTINCT - + 51 * 3 + - 33 AS col2, - 52 AS col0
----
-186
-52

query I rowsort
SELECT ALL 83 * - 55 * + 16 + + + 86 col1
----
-72954

query I rowsort
SELECT - 16 * + 87 AS col1
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT - + SUM( ALL + + 84 ) * - - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT - + SUM ( ALL + + 84 ) * - - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT 65 AS col2, - COUNT( * ) - + 49 * COUNT( * ) AS col1
----
65
-50

skipif mysql # not compatible
query II rowsort label-1667
SELECT 65 AS col2, - COUNT ( * ) - + 49 * COUNT ( * ) AS col1
----
65
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT + - CAST( - 98 AS SIGNED ) * - 41 * + COUNT( + 49 ) * - 64 + 67 * - SUM( DISTINCT - 79 )
----
262445

skipif mysql # not compatible
query I rowsort label-1668
SELECT + - CAST ( - 98 AS INTEGER ) * - 41 * + COUNT ( + 49 ) * - 64 + 67 * - SUM ( DISTINCT - 79 )
----
262445

query I rowsort
SELECT ALL - + 79 + 22 * 44
----
889

query I rowsort
SELECT - + ( + + 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT NULLIF ( 76, - 69 * - - 4 * + - COUNT( * ) * + NULLIF ( - - 19, + 37 * - 36 / - + 79 * MAX( DISTINCT 7 ) + - 69 ) / + 83 - + CASE - SUM( DISTINCT 48 ) WHEN + COUNT( * ) THEN 66 + + 87 ELSE NULL END * NULLIF ( COUNT( * ), - 13 + COALESCE ( 41, + CASE ( 99 ) WHEN 10 THEN - 28 ELSE COUNT( * ) END - - ( + 37 + 36 ) ) ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT NULLIF ( 76, - 69 * - - 4 * + - COUNT ( * ) * + NULLIF ( - - 19, + 37 * - 36 / - + 79 * MAX ( DISTINCT 7 ) + - 69 ) / + 83 - + CASE - SUM ( DISTINCT 48 ) WHEN + COUNT ( * ) THEN 66 + + 87 ELSE NULL END * NULLIF ( COUNT ( * ), - 13 + COALESCE ( 41, + CASE ( 99 ) WHEN 10 THEN - 28 ELSE COUNT ( * ) END - - ( + 37 + 36 ) ) ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT - - ( + COUNT( * ) ) - + 99 + - - 67 + 11 + 11 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - - ( + COUNT ( * ) ) - + 99 + - - 67 + 11 + 11 AS col1
----
-9

query I rowsort
SELECT ALL + + 87 * + 57 AS col1
----
4959

query I rowsort
SELECT DISTINCT + 2 - - ( - + ( 87 ) ) AS col2
----
-85

query I rowsort
SELECT - - 64 * - - 92 AS col2
----
5888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + 58 DIV - SUM( - 25 )
----
2

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + 58 / - SUM ( - 25 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - NULLIF ( + + COUNT( * ), + + MAX( DISTINCT - 43 ) - + 90 * - - ( + COALESCE ( - 24, + + 96 + 77, - - 91 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1677
SELECT - NULLIF ( + + COUNT ( * ), + + MAX ( DISTINCT - 43 ) - + 90 * - - ( + COALESCE ( - 24, + + 96 + 77, - - 91 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL + COUNT( * ) * - 3, 78 AS col1
----
-3
78

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL + COUNT ( * ) * - 3, 78 AS col1
----
-3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - ( - 8 ) * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1679
SELECT - ( - 8 ) * - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT - 36 + 28 AS col1
----
-8

query I rowsort
SELECT ALL ( + 96 ) AS col0
----
96

query I rowsort
SELECT - 53 * 99 AS col0
----
-5247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT 65 * - + CAST( - 96 AS SIGNED ) AS col2
----
6240

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT 65 * - + CAST ( - 96 AS INTEGER ) AS col2
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - 19 DIV - 50 - - - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 19 / - 50 - - - 4 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ALL - 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - 63 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 23 * + + 32 * - 24
----
-17664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT - COUNT( * ) DIV - 93 + - + MIN( + 48 ) * - 5
----
240

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - COUNT ( * ) / - 93 + - + MIN ( + 48 ) * - 5
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL + 91 + - + 23 * + - COUNT( ALL + 79 ) AS col2, - COUNT( * ) - - COUNT( * ) col0
----
114
0

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL + 91 + - + 23 * + - COUNT ( ALL + 79 ) AS col2, - COUNT ( * ) - - COUNT ( * ) col0
----
114
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MAX( DISTINCT - - 71 ) + 56
----
127

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MAX ( DISTINCT - - 71 ) + 56
----
127

query I rowsort
SELECT 9 + + 20
----
29

query I rowsort
SELECT 16 * + 49
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT CASE CASE - - 89 WHEN + - CAST( NULL AS SIGNED ) THEN + 27 + - 57 WHEN - + ( COUNT( - 12 ) ) + 32 / - - COUNT( * ) THEN NULL END WHEN + 62 THEN + 20 ELSE NULL END + AVG ( 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT CASE CASE - - 89 WHEN + - CAST ( NULL AS INTEGER ) THEN + 27 + - 57 WHEN - + ( COUNT ( - 12 ) ) + 32 / - - COUNT ( * ) THEN NULL END WHEN + 62 THEN + 20 ELSE NULL END + AVG ( 86 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT NULLIF ( + 78, + CASE - 85 WHEN + + 92 THEN NULL WHEN - 86 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE - 6 END * + + 95 * CAST( NULL AS SIGNED ) ) + 85 * 11 AS col1
----
1013

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT NULLIF ( + 78, + CASE - 85 WHEN + + 92 THEN NULL WHEN - 86 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE - 6 END * + + 95 * CAST ( NULL AS INTEGER ) ) + 85 * 11 AS col1
----
1013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1694
SELECT COUNT( * ) * + - 17 * 67 DIV - CAST( - 16 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( * ) * + - 17 * 67 / - CAST ( - 16 AS INTEGER )
----
-71

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, 98 * + 73 ) + 87 + + - ( + 39 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1696
SELECT ALL COUNT( DISTINCT + - 95 ) * + 4 * 2 * - 64 / + CAST( NULL AS SIGNED ) AS col1, CAST( - 60 AS SIGNED ) AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL COUNT ( DISTINCT + - 95 ) * + 4 * 2 * - 64 / + CAST ( NULL AS INTEGER ) AS col1, CAST ( - 60 AS INTEGER ) AS col0
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + NULLIF ( 35, COUNT( * ) * - 93 )
----
35

skipif mysql # not compatible
query I rowsort label-1697
SELECT + NULLIF ( 35, COUNT ( * ) * - 93 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + 53 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 53 + + COUNT ( * )
----
54

query I rowsort
SELECT - 23 - - 88 * - 80 AS col1
----
-7063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT - 37 DIV 90 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT - 37 / 90 * - + COUNT ( * )
----
0

query II rowsort
SELECT ALL 6 - + 57 AS col0, + 97 AS col2
----
-51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - 80 + + CASE + - 90 WHEN - NULLIF ( 84, - 15 ) + - 81 THEN - COUNT( + - 88 ) ELSE NULL END * + - 27 * MIN( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 80 + + CASE + - 90 WHEN - NULLIF ( 84, - 15 ) + - 81 THEN - COUNT ( + - 88 ) ELSE NULL END * + - 27 * MIN ( - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT + COUNT( - 21 ) - - - 64 - - MAX( ALL + 55 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + COUNT ( - 21 ) - - - 64 - - MAX ( ALL + 55 ) AS col1
----
-8

query I rowsort
SELECT 50 * + 31 AS col2
----
1550

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT ALL + 64 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + 64 / + 80
----
0

query I rowsort
SELECT - 3 + 39 + + + 9 * + + 6
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT ALL COUNT( * ), 38 col2
----
1
38

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL COUNT ( * ), 38 col2
----
1
38

query II rowsort
SELECT ALL 51, - 36 + 19 + + 53 * 8 col2
----
51
407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT - CASE - 80 WHEN - 16 THEN - 48 WHEN + 21 + - 80 THEN NULL ELSE SUM( - + ( 83 ) ) * - 42 + - CAST( 89 AS SIGNED ) + + 87 * COUNT( * ) END AS col1
----
-3484

skipif mysql # not compatible
query I rowsort label-1709
SELECT - CASE - 80 WHEN - 16 THEN - 48 WHEN + 21 + - 80 THEN NULL ELSE SUM ( - + ( 83 ) ) * - 42 + - CAST ( 89 AS INTEGER ) + + 87 * COUNT ( * ) END AS col1
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 29 * + COUNT( * ) + COALESCE ( - MIN( ALL + 19 ), + + 20 * - MAX( 53 ) )
----
10

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 29 * + COUNT ( * ) + COALESCE ( - MIN ( ALL + 19 ), + + 20 * - MAX ( 53 ) )
----
10

query I rowsort
SELECT - 53 + 29 + 61 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + 12 * + + COUNT( ALL - 2 )
----
12

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + 12 * + + COUNT ( ALL - 2 )
----
12

query I rowsort
SELECT 20 + ( - 84 ) + + - 54
----
-118

query I rowsort
SELECT ( - 81 ) * + - 46 + - + 61 col2
----
3665

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT MIN( DISTINCT - ( + 6 ) ) * - - 58 AS col2
----
-348

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT MIN ( DISTINCT - ( + 6 ) ) * - - 58 AS col2
----
-348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT MIN( + COALESCE ( - ( 85 ), + 72 ) ) * - 2 + + 40 + COUNT( - 18 ) DIV - - 51 * + 95 * - 30 AS col2
----
210

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT MIN ( + COALESCE ( - ( 85 ), + 72 ) ) * - 2 + + 40 + COUNT ( - 18 ) / - - 51 * + 95 * - 30 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT 19 + - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1717
SELECT 19 + - - COUNT ( * )
----
20

query I rowsort
SELECT DISTINCT + 23 + - 81 + - 77
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL - ( + 8 ) + ( - CAST( + 26 AS SIGNED ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - ( + 8 ) + ( - CAST ( + 26 AS INTEGER ) ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), + ( 71 ) ) + 44 + - - 79
----
194

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), + ( 71 ) ) + 44 + - - 79
----
194

query I rowsort
SELECT 9 * + 4 AS col2
----
36

query I rowsort
SELECT DISTINCT - 78 * - 51
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + MAX( + 22 ) * + 31 / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + MAX ( + 22 ) * + 31 / 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT - COUNT( DISTINCT - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - COUNT ( DISTINCT - 24 )
----
-1

query I rowsort
SELECT 51 + + 46 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - COALESCE ( 44, + ( - - 11 ) * - 6, - SUM( DISTINCT + CAST( 25 AS SIGNED ) ) ) + - - 35 * + + 25 * - 24
----
-21044

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COALESCE ( 44, + ( - - 11 ) * - 6, - SUM ( DISTINCT + CAST ( 25 AS INTEGER ) ) ) + - - 35 * + + 25 * - 24
----
-21044

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + - COUNT( * ) + + + SUM( + + 47 )
----
46

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + - COUNT ( * ) + + + SUM ( + + 47 )
----
46

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1728
SELECT CASE CAST( NULL AS DECIMAL ) WHEN + 54 THEN - 15 * + + 28 END AS col0, 23 DIV - - 99 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1728
SELECT CASE CAST ( NULL AS REAL ) WHEN + 54 THEN - 15 * + + 28 END AS col0, 23 / - - 99 col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT + - ( - 69 ) col2, NULLIF ( + 18, + ( + - SUM( + COALESCE ( + 87, 7 ) ) ) / + 37 )
----
69
18

skipif mysql # not compatible
query II rowsort label-1729
SELECT + - ( - 69 ) col2, NULLIF ( + 18, + ( + - SUM ( + COALESCE ( + 87, 7 ) ) ) / + 37 )
----
69
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT - CAST( NULL AS SIGNED ) * - - 47 + MAX( - 83 ) + + + 98 + + 73 * - - ( + CASE CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT + + 87 ) THEN + + 55 + - 92 / + CAST( + 59 * + 10 AS SIGNED ) END ) * CASE - COUNT( - 69 ) WHEN 20 * 81 THEN NULL ELSE - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT - CAST ( NULL AS INTEGER ) * - - 47 + MAX ( - 83 ) + + + 98 + + 73 * - - ( + CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT + + 87 ) THEN + + 55 + - 92 / + CAST ( + 59 * + 10 AS INTEGER ) END ) * CASE - COUNT ( - 69 ) WHEN 20 * 81 THEN NULL ELSE - 59 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1731
SELECT - COUNT( * ) + + NULLIF ( + + MAX( - 65 ), - 19 ), + CASE + + 82 WHEN + 29 + CAST( 3 AS SIGNED ) THEN + 50 END AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT - COUNT ( * ) + + NULLIF ( + + MAX ( - 65 ), - 19 ), + CASE + + 82 WHEN + 29 + CAST ( 3 AS INTEGER ) THEN + 50 END AS col2
----
-66
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1732
SELECT + - SUM( ALL - + 93 ) AS col1, - 75 - + + 92 - + 21 * + 66 DIV + COALESCE ( 11, - 62 ) AS col2
----
93
-293

skipif mysql # not compatible
query II rowsort label-1732
SELECT + - SUM ( ALL - + 93 ) AS col1, - 75 - + + 92 - + 21 * + 66 / + COALESCE ( 11, - 62 ) AS col2
----
93
-293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT DISTINCT - + NULLIF ( + 30, 4 ) - CAST( NULL AS SIGNED ) * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - + NULLIF ( + 30, 4 ) - CAST ( NULL AS INTEGER ) * 92 AS col0
----
NULL

query II rowsort
SELECT - - ( + 86 ) AS col2, 33
----
86
33

query I rowsort
SELECT + 24 * + 77 - - 97
----
1945

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT 44 DIV + 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1736
SELECT 44 / + 17 AS col1
----
2

query I rowsort
SELECT DISTINCT ( - + 85 )
----
-85

query I rowsort
SELECT 52 * + 23 col2
----
1196

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL 48 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 48 / + 48 AS col1
----
1

query I rowsort
SELECT NULLIF ( + 1, - 92 ) * + - 32 * - 67 - 31
----
2113

query I rowsort
SELECT CASE + - 43 WHEN ( - 90 ) THEN 86 * 84 WHEN + 9 + + 19 THEN + 61 WHEN - - 41 THEN NULL ELSE NULL END + + - 55 + - + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL CASE - - 66 WHEN 69 / COUNT( * ) - COUNT( * ) THEN NULL WHEN - - ( - 69 ) * + 60 + + 36 THEN + 62 ELSE NULL END + 42, 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL CASE - - 66 WHEN 69 / COUNT ( * ) - COUNT ( * ) THEN NULL WHEN - - ( - 69 ) * + 60 + + 36 THEN + 62 ELSE NULL END + 42, 24 col1
----
NULL
24

query I rowsort
SELECT + 94 + - COALESCE ( - 32, + 3 ) + 79
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + 70 + - 72 - - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 70 + - 72 - - ( COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT ALL CAST( NULL AS SIGNED ) + + - 78 * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL CAST ( NULL AS INTEGER ) + + - 78 * - + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 47 + - ( - - 82 ) AS col2, + 76 AS col0
----
-35
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT - CASE + 49 WHEN 20 + + 7 * + - 42 THEN - MAX( DISTINCT - ( - + 64 ) ) ELSE NULL END * + 64 * + 16 * - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT - CASE + 49 WHEN 20 + + 7 * + - 42 THEN - MAX ( DISTINCT - ( - + 64 ) ) ELSE NULL END * + 64 * + 16 * - - 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1748
SELECT 88 AS col1, CAST( NULL AS SIGNED ) * - - 66 + + 53
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1748
SELECT 88 AS col1, CAST ( NULL AS INTEGER ) * - - 66 + + 53
----
88
NULL

query I rowsort
SELECT + 23 + - COALESCE ( - 29, + 88 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - COUNT( * ) + 21
----
20

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - COUNT ( * ) + 21
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT ALL 60 * + ( + CAST( NULL AS DECIMAL ) ) / - 79 + + - 37 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL 60 * + ( + CAST ( NULL AS REAL ) ) / - 79 + + - 37 + 97
----
NULL

query II rowsort
SELECT ALL + 15, - 76 AS col1
----
15
-76

query I rowsort
SELECT ALL + NULLIF ( - 61, - AVG ( + 8 ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL + CAST( NULL AS SIGNED ) * + + 47 - - MIN( + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 47 - - MIN ( + 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 81 * + ( CASE + 21 WHEN 2 + + 97 + 75 * 29 * + + ( - + 95 ) THEN + + 75 + 39 * - 15 ELSE CASE 62 WHEN - 39 THEN - 76 ELSE 52 * 91 + + COUNT( * ) END + - 68 * + ( 10 ) END ) AS col1
----
328293

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 81 * + ( CASE + 21 WHEN 2 + + 97 + 75 * 29 * + + ( - + 95 ) THEN + + 75 + 39 * - 15 ELSE CASE 62 WHEN - 39 THEN - 76 ELSE 52 * 91 + + COUNT ( * ) END + - 68 * + ( 10 ) END ) AS col1
----
328293

query I rowsort
SELECT - 82 * + + 5
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT + - 49, + NULLIF ( MAX( DISTINCT - 55 ), 72 * 73 ) AS col2
----
-49
-55

skipif mysql # not compatible
query II rowsort label-1757
SELECT + - 49, + NULLIF ( MAX ( DISTINCT - 55 ), 72 * 73 ) AS col2
----
-49
-55

query II rowsort
SELECT + - 8 col0, 45 + + 82
----
-8
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL + SUM( DISTINCT - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + SUM ( DISTINCT - 29 ) col0
----
-29

query I rowsort
SELECT - + 8 * - + 40
----
320

query II rowsort
SELECT + 2 AS col0, 94 AS col1
----
2
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + 76 * 92 - - COUNT( * )
----
6993

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 76 * 92 - - COUNT ( * )
----
6993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT - + 59 / 5 + + CAST( NULL AS SIGNED ) + 21 + + - COUNT( * ) * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - + 59 / 5 + + CAST ( NULL AS INTEGER ) + 21 + + - COUNT ( * ) * 58 AS col1
----
NULL

query II rowsort
SELECT ALL - + 5 * 0 * - 6 col1, - ( 63 )
----
0
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1765
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 78 * - 93
----
NULL
-7254

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 78 * - 93
----
NULL
-7254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1766
SELECT - CASE + 90 WHEN - + ( + COALESCE ( - 98, + + 44 * + 64 * CAST( NULL AS SIGNED ) ) ) THEN - + 56 + - 62 WHEN - 43 + - 56 THEN + 35 + + 40 DIV CAST( + 59 AS SIGNED ) ELSE + 93 * 96 END * - ( ( + 37 ) )
----
330336

skipif mysql # not compatible
query I rowsort label-1766
SELECT - CASE + 90 WHEN - + ( + COALESCE ( - 98, + + 44 * + 64 * CAST ( NULL AS INTEGER ) ) ) THEN - + 56 + - 62 WHEN - 43 + - 56 THEN + 35 + + 40 / CAST ( + 59 AS INTEGER ) ELSE + 93 * 96 END * - ( ( + 37 ) )
----
330336

query I rowsort
SELECT - 29 * - 57 * + - 50 * + 24 AS col2
----
-1983600

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - ( - 9 ) + + 46 + - SUM( DISTINCT + - 6 )
----
61

skipif mysql # not compatible
query I rowsort label-1768
SELECT - ( - 9 ) + + 46 + - SUM ( DISTINCT + - 6 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + + COUNT( ALL + 65 ) * - CASE 96 WHEN - + 77 * + 92 / + ( 71 ) THEN + 32 + - 82 / ( + 64 ) END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + + COUNT ( ALL + 65 ) * - CASE 96 WHEN - + 77 * + 92 / + ( 71 ) THEN + 32 + - 82 / ( + 64 ) END * 47
----
NULL

query I rowsort
SELECT + - 76 - + 97
----
-173

query I rowsort
SELECT DISTINCT + + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - - COUNT( * ) + + SUM( ALL + + 85 )
----
86

skipif mysql # not compatible
query I rowsort label-1772
SELECT - - COUNT ( * ) + + SUM ( ALL + + 85 )
----
86

query I rowsort
SELECT ALL - 21 + - - 86
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - - ( - 27 ) + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1774
SELECT - - ( - 27 ) + COUNT ( * ) AS col1
----
-26

query II rowsort
SELECT DISTINCT + 10 AS col1, 94 + + - 75 AS col1
----
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL - - COUNT( * ) + - - 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - - COUNT ( * ) + - - 7 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1777
SELECT + 31 + - + CASE + COUNT( * ) WHEN 49 THEN + ( 47 ) WHEN - + 53 * - - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 31 + - + CASE + COUNT ( * ) WHEN 49 THEN + ( 47 ) WHEN - + 53 * - - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 42 * - + 35 AS col0, - 24 * + + 91
----
-1470
-2184

query I rowsort
SELECT ALL ( 79 ) + + 58 + + 50
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + 68 + - 87 + + ( + 48 ) + - COUNT( * ) * ( + + 16 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 68 + - 87 + + ( + 48 ) + - COUNT ( * ) * ( + + 16 ) AS col0
----
13

query I rowsort
SELECT - 95 * - 65 * + 5
----
30875

query I rowsort
SELECT - NULLIF ( 97, + 58 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT 6 * + 75 AS col0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + SUM( DISTINCT + 21 ) + + ( 11 ) + + 16 + + - 27 * + - 3
----
129

skipif mysql # not compatible
query I rowsort label-1784
SELECT + SUM ( DISTINCT + 21 ) + + ( 11 ) + + 16 + + - 27 * + - 3
----
129

query I rowsort
SELECT + 53 + - 70
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT + 17 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 17 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL ( COUNT( * ) ) - 62 col1
----
-61

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL ( COUNT ( * ) ) - 62 col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1788
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 57 * 2
----
114

query I rowsort
SELECT - 63 * + ( 23 ) * - 62
----
89838

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT + SUM( 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1791
SELECT + SUM ( 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL + - MAX( + 46 ), ( + 91 ) AS col1
----
-46
91

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL + - MAX ( + 46 ), ( + 91 ) AS col1
----
-46
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT + + 63 * - - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1793
SELECT + + 63 * - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-63

query I rowsort
SELECT ALL 16 * + 42 + - 40
----
632

onlyif mysql # aggregate syntax: 
query II rowsort label-1795
SELECT DISTINCT + ( + 63 ) col1, 95 + + - COUNT( * )
----
63
94

skipif mysql # not compatible
query II rowsort label-1795
SELECT DISTINCT + ( + 63 ) col1, 95 + + - COUNT ( * )
----
63
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT - 24 * - CASE MAX( + 18 ) WHEN + 17 THEN NULL WHEN + - 10 THEN - 80 ELSE + ( - COALESCE ( + - NULLIF ( - + ( 61 ), + 99 ), - COUNT( * ) ) ) END + + 55 AS col0
----
-1409

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - 24 * - CASE MAX ( + 18 ) WHEN + 17 THEN NULL WHEN + - 10 THEN - 80 ELSE + ( - COALESCE ( + - NULLIF ( - + ( 61 ), + 99 ), - COUNT ( * ) ) ) END + + 55 AS col0
----
-1409

query I rowsort
SELECT DISTINCT + NULLIF ( - 45, 18 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT + COUNT( * ) * SUM( - ( + 85 ) ) AS col0, 57 * 96 DIV 31 + - + 89 * 5 AS col1
----
-85
-269

skipif mysql # not compatible
query II rowsort label-1798
SELECT + COUNT ( * ) * SUM ( - ( + 85 ) ) AS col0, 57 * 96 / 31 + - + 89 * 5 AS col1
----
-85
-269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT - CAST( - + 4 AS SIGNED ) * - + 69 AS col0
----
-276

skipif mysql # not compatible
query I rowsort label-1799
SELECT - CAST ( - + 4 AS INTEGER ) * - + 69 AS col0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + - COUNT( * ) * - + ( - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1800
SELECT + - COUNT ( * ) * - + ( - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + COUNT( * ) * - 95 * + 7 * 76 * + 38
----
-1920520

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + COUNT ( * ) * - 95 * + 7 * 76 * + 38
----
-1920520

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - + 61 * - - COUNT( DISTINCT - 73 )
----
-61

skipif mysql # not compatible
query I rowsort label-1802
SELECT - + 61 * - - COUNT ( DISTINCT - 73 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - COUNT( * ) * - 1 + + 70
----
71

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - COUNT ( * ) * - 1 + + 70
----
71

query I rowsort
SELECT ALL + 92 * + 95 AS col1
----
8740

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 44, + + 84 * - 36 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT ALL - 91 * + 14 + - - 76 + - 54 DIV - 93 * - 7 AS col2
----
-1198

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 91 * + 14 + - - 76 + - 54 / - 93 * - 7 AS col2
----
-1198

query II rowsort
SELECT - 99 * + 16 * + ( 33 ) AS col0, - 49 * + 20
----
-52272
-980

query I rowsort
SELECT 9 * + 72
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT 45 * - COUNT( - 26 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1809
SELECT 45 * - COUNT ( - 26 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT - 91 + 23 AS col1
----
-68

query II rowsort
SELECT 35 * ( + 74 ), 1 col0
----
2590
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT 38 AS col2, + COUNT( - 80 ) * - 96
----
38
-96

skipif mysql # not compatible
query II rowsort label-1812
SELECT 38 AS col2, + COUNT ( - 80 ) * - 96
----
38
-96

query I rowsort
SELECT ALL 88 * + ( - - 52 ) * 65 col1
----
297440

query I rowsort
SELECT 60 * - 3 * + 88 AS col2
----
-15840

query I rowsort
SELECT ALL 52 * - 15
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT SUM( DISTINCT + 57 ) - - 75 * 58 AS col1
----
4407

skipif mysql # not compatible
query I rowsort label-1816
SELECT SUM ( DISTINCT + 57 ) - - 75 * 58 AS col1
----
4407

query I rowsort
SELECT 50 * - 92 AS col0
----
-4600

query I rowsort
SELECT 53 + - - 91
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1819
SELECT - 31 / - - CAST( NULL AS SIGNED ) - CASE - - 42 WHEN + 21 * 94 * + + CAST( NULL AS DECIMAL ) THEN + 1 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 31 / - - CAST ( NULL AS INTEGER ) - CASE - - 42 WHEN + 21 * 94 * + + CAST ( NULL AS REAL ) THEN + 1 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 88 * 57 AS col1
----
5016

query I rowsort
SELECT 17 + + 18 - + - 33 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT + 97 DIV 30
----
3

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 97 / 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT DISTINCT + ( - + NULLIF ( + COUNT( * ), + 85 ) ) + + CAST( NULL AS SIGNED ) / + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + ( - + NULLIF ( + COUNT ( * ), + 85 ) ) + + CAST ( NULL AS INTEGER ) / + - 61
----
NULL

query II rowsort
SELECT DISTINCT 73 + - 52 + - 19 col1, + 67 AS col0
----
2
67

query I rowsort
SELECT ALL 17 + - 16 AS col2
----
1

query I rowsort
SELECT DISTINCT - + ( - + 83 )
----
83

query I rowsort
SELECT ALL - - 37 + - + 71 col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT COUNT( - 35 ) * 5 * 61 DIV + 21 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( - 35 ) * 5 * 61 / + 21 AS col2
----
14

query I rowsort
SELECT ALL + 19 + 36 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT ALL - - CASE + 53 WHEN - - 49 THEN NULL ELSE COUNT( * ) * - 91 DIV 53 * - 77 END
----
77

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - - CASE + 53 WHEN - - 49 THEN NULL ELSE COUNT ( * ) * - 91 / 53 * - 77 END
----
77

query II rowsort
SELECT 12 AS col0, 96 + 31 + - 97 AS col0
----
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - SUM( DISTINCT - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - SUM ( DISTINCT - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT - SUM( DISTINCT - - 73 ) * + 2 * - 53 + + 30 DIV + 43 * - 92 AS col2
----
7738

skipif mysql # not compatible
query I rowsort label-1833
SELECT - SUM ( DISTINCT - - 73 ) * + 2 * - 53 + + 30 / + 43 * - 92 AS col2
----
7738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT 45 - CAST( - ( + + ( 22 ) ) AS SIGNED ) col2
----
67

skipif mysql # not compatible
query I rowsort label-1834
SELECT 45 - CAST ( - ( + + ( 22 ) ) AS INTEGER ) col2
----
67

query I rowsort
SELECT 19 + + 15 + 24 * 93 * 8 * 66 * - 51
----
-60103262

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT COUNT( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0
----
-25
98

skipif mysql # not compatible
query II rowsort label-1836
SELECT COUNT ( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0
----
-25
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT ALL - NULLIF ( 41, - 22 * - + NULLIF ( 8, + - CAST( COUNT( * ) AS SIGNED ) + + + 38 * - 30 + + 55 / 10 ) * 29 + 54 / COUNT( * ) * - NULLIF ( - COUNT( * ), 35 * - 35 + NULLIF ( 1, 23 + + 62 * + COALESCE ( 24 * - 62 - - COUNT( * ), 91 ) ) ) ) - 46 * + 82
----
-3813

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - NULLIF ( 41, - 22 * - + NULLIF ( 8, + - CAST ( COUNT ( * ) AS INTEGER ) + + + 38 * - 30 + + 55 / 10 ) * 29 + 54 / COUNT ( * ) * - NULLIF ( - COUNT ( * ), 35 * - 35 + NULLIF ( 1, 23 + + 62 * + COALESCE ( 24 * - 62 - - COUNT ( * ), 91 ) ) ) ) - 46 * + 82
----
-3813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1838
SELECT - COUNT( * ), + CASE - 48 WHEN + - 34 THEN NULL WHEN 64 THEN + 73 * - - 72 * - 13 + - 9 * + - MAX( - - 83 ) END * + - 52 + - 66 * - AVG ( DISTINCT + CAST( COALESCE ( - 49, + 26 * + 41 ) AS SIGNED ) ) + 69 * - 5 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1838
SELECT - COUNT ( * ), + CASE - 48 WHEN + - 34 THEN NULL WHEN 64 THEN + 73 * - - 72 * - 13 + - 9 * + - MAX ( - - 83 ) END * + - 52 + - 66 * - AVG ( DISTINCT + CAST ( COALESCE ( - 49, + 26 * + 41 ) AS INTEGER ) ) + 69 * - 5 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1839
SELECT ALL COALESCE ( + 92, + 3 * - 1 * - 12 DIV - COUNT( * ) + - ( 34 ) + + - 69, - 33 ) DIV 3 AS col1, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL COALESCE ( + 92, + 3 * - 1 * - 12 / - COUNT ( * ) + - ( 34 ) + + - 69, - 33 ) / 3 AS col1, COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1840
SELECT 35 + COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT + 32 * - - COALESCE ( + 46, 16 ) AS col2
----
1472

query I rowsort
SELECT 44 + + 45 + 94 * - 88 * - + COALESCE ( 54, 60 )
----
446777

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL 36 AS col2, 60 * + COUNT( 49 )
----
36
60

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL 36 AS col2, 60 * + COUNT ( 49 )
----
36
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT CAST( NULL AS SIGNED ) / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT CAST ( NULL AS INTEGER ) / - 63
----
NULL

query I rowsort
SELECT 60 * 78
----
4680

query I rowsort
SELECT DISTINCT + 33 * 88
----
2904

query I rowsort
SELECT 70 * - + 24 col2
----
-1680

query I rowsort
SELECT ALL - 70 * - 8 AS col2
----
560

query I rowsort
SELECT 79 + + 64
----
143

query I rowsort
SELECT 60 * - + 67
----
-4020

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT ALL 59 AS col1, - 94 * COUNT( * ) * + - 44 + + NULLIF ( - 20, + + 39 ) AS col0
----
59
4116

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL 59 AS col1, - 94 * COUNT ( * ) * + - 44 + + NULLIF ( - 20, + + 39 ) AS col0
----
59
4116

query I rowsort
SELECT ALL 59 * - 2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - NULLIF ( + - 46, + - COUNT( * ) / 33 + + - 63 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1853
SELECT - NULLIF ( + - 46, + - COUNT ( * ) / 33 + + - 63 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - - MIN( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1854
SELECT - - MIN ( ALL - 88 )
----
-88

query I rowsort
SELECT ALL + ( - COALESCE ( + 29, ( - 11 ) - ( + 11 ) ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + SUM( DISTINCT + + ( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1856
SELECT + SUM ( DISTINCT + + ( - 74 ) )
----
-74

query II rowsort
SELECT - - 16 AS col1, 85 AS col0
----
16
85

query I rowsort
SELECT + 95 - + 46 AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT COUNT( * ) AS col2, 29 AS col0
----
1
29

skipif mysql # not compatible
query II rowsort label-1859
SELECT COUNT ( * ) AS col2, 29 AS col0
----
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT ALL + - 86 + - CASE + ( - + 83 ) WHEN - 50 * - 95 + 66 THEN NULL WHEN + 30 THEN + 24 * + NULLIF ( + MAX( ALL 20 ), - 63 * ( 90 ) * - 23 + + 8 ) WHEN 77 THEN NULL END - CAST( NULL AS SIGNED ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL + - 86 + - CASE + ( - + 83 ) WHEN - 50 * - 95 + 66 THEN NULL WHEN + 30 THEN + 24 * + NULLIF ( + MAX ( ALL 20 ), - 63 * ( 90 ) * - 23 + + 8 ) WHEN 77 THEN NULL END - CAST ( NULL AS INTEGER ) * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1861
SELECT - COUNT( * ) + + 75 * 74 + - + COUNT( * ) + + - 12 * + 48 * - 11 / 8 * + - CAST( NULL AS DECIMAL ) - + COALESCE ( + - CASE - CAST( - - 0 AS SIGNED ) WHEN - + SUM( - 59 ) * + 63 / MAX( ALL NULLIF ( 10, - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE COUNT( * ) END, NULLIF ( COUNT( * ), MAX( + 67 ) ) + - 64 / + ( 41 * NULLIF ( - SUM( ALL 64 ) * - 41, + 48 ) + 46 ) ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT - COUNT ( * ) + + 75 * 74 + - + COUNT ( * ) + + - 12 * + 48 * - 11 / 8 * + - CAST ( NULL AS REAL ) - + COALESCE ( + - CASE - CAST ( - - 0 AS INTEGER ) WHEN - + SUM ( - 59 ) * + 63 / MAX ( ALL NULLIF ( 10, - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE COUNT ( * ) END, NULLIF ( COUNT ( * ), MAX ( + 67 ) ) + - 64 / + ( 41 * NULLIF ( - SUM ( ALL 64 ) * - 41, + 48 ) + 46 ) ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT + 93 AS col0, - COUNT( * ) AS col1
----
93
-1

skipif mysql # not compatible
query II rowsort label-1862
SELECT + 93 AS col0, - COUNT ( * ) AS col1
----
93
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT + - 96, + SUM( ALL + 45 ) AS col0
----
-96
45

skipif mysql # not compatible
query II rowsort label-1863
SELECT + - 96, + SUM ( ALL + 45 ) AS col0
----
-96
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT DISTINCT + + 45 * - COUNT( - ( CAST( + 22 AS SIGNED ) ) ) + + COALESCE ( + 94, + 80 * 28 * COUNT( * ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + + 45 * - COUNT ( - ( CAST ( + 22 AS INTEGER ) ) ) + + COALESCE ( + 94, + 80 * 28 * COUNT ( * ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - - ( - + MIN( ALL 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - - ( - + MIN ( ALL 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL 31 * - COUNT( * ) - - 98 + - 45 + 18 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 31 * - COUNT ( * ) - - 98 + - 45 + 18 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT + 54 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 54 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 75 * + 90 + - 8 * - - 57 col1
----
-7206

query II rowsort
SELECT ALL - + ( 26 ), + 94 AS col2
----
-26
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + - CASE 35 WHEN + MAX( DISTINCT + + 34 ) THEN - 95 WHEN - 40 THEN + 42 WHEN - 83 + + COUNT( * ) THEN NULL ELSE + 43 END + + + NULLIF ( - - MAX( + ( + 12 ) ), - 46 )
----
-31

skipif mysql # not compatible
query I rowsort label-1870
SELECT + - CASE 35 WHEN + MAX ( DISTINCT + + 34 ) THEN - 95 WHEN - 40 THEN + 42 WHEN - 83 + + COUNT ( * ) THEN NULL ELSE + 43 END + + + NULLIF ( - - MAX ( + ( + 12 ) ), - 46 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT + - ( - 51 ) * + COUNT( ALL - - 74 ) col0, + 3 AS col0
----
51
3

skipif mysql # not compatible
query II rowsort label-1871
SELECT + - ( - 51 ) * + COUNT ( ALL - - 74 ) col0, + 3 AS col0
----
51
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1872
SELECT - CAST( NULL AS DECIMAL ) * - 51 * - 84 * + + CAST( NULL AS DECIMAL ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT - CAST ( NULL AS REAL ) * - 51 * - 84 * + + CAST ( NULL AS REAL ) * + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - - 62 * + SUM( DISTINCT + 78 ) - + 70 AS col1
----
4766

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - - 62 * + SUM ( DISTINCT + 78 ) - + 70 AS col1
----
4766

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT SUM( ( - - 52 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1874
SELECT SUM ( ( - - 52 ) ) AS col2
----
52

query I rowsort
SELECT DISTINCT ( + + ( + 64 ) ) * - ( + - 89 )
----
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + COUNT( * ) * - 83 * + 81 col1
----
-6723

skipif mysql # not compatible
query I rowsort label-1876
SELECT + COUNT ( * ) * - 83 * + 81 col1
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT SUM( + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1877
SELECT SUM ( + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT MAX( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1878
SELECT MAX ( DISTINCT - 48 )
----
-48

query II rowsort
SELECT + 64 * 1, + 79 AS col0
----
64
79

query I rowsort
SELECT - 19 * + 91 - - - 69 + + - ( - 56 )
----
-1742

onlyif mysql # DIV for integer division: 
query II rowsort label-1881
SELECT - ( ( + 88 ) ) DIV - 46 + 4 col1, + 44 + 85 col0
----
5
129

skipif mysql # not compatible
query II rowsort label-1881
SELECT - ( ( + 88 ) ) / - 46 + 4 col1, + 44 + 85 col0
----
5
129

query I rowsort
SELECT + 58 - - - 54 AS col1
----
4

query I rowsort
SELECT + COALESCE ( + 2, - 32 ) * + 86 * + 91
----
15652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT ALL - 11 DIV + COUNT( DISTINCT - ( + 8 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - 11 / + COUNT ( DISTINCT - ( + 8 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1885
SELECT + 52 DIV + COUNT( * ) AS col0, + 96 AS col2
----
52
96

skipif mysql # not compatible
query II rowsort label-1885
SELECT + 52 / + COUNT ( * ) AS col0, + 96 AS col2
----
52
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN( DISTINCT - 14 ) AS col0
----
-76
144

skipif mysql # not compatible
query II rowsort label-1886
SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT ( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN ( DISTINCT - 14 ) AS col0
----
-76
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT - 4 - 52 + + + 52 + + 61 + + 78 * CAST( + - 59 AS SIGNED ) AS col2
----
-4545

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 4 - 52 + + + 52 + + 61 + + 78 * CAST ( + - 59 AS INTEGER ) AS col2
----
-4545

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT ALL 10 * 0 * + ( - 74 ) * + 80 + - 73 + 39 DIV 25
----
-72

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL 10 * 0 * + ( - 74 ) * + 80 + - 73 + 39 / 25
----
-72

query I rowsort
SELECT DISTINCT - - 96 * + COALESCE ( + + 54, ( - ( - - 73 ) ) ) AS col0
----
5184

query I rowsort
SELECT DISTINCT + - 33 + + 74 * 97 + - 2
----
7143

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL - - 71 + SUM( 67 ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - - 71 + SUM ( 67 ) AS col0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT ALL + 45 + + + COUNT( * ) DIV COUNT( * ) + + - 20 DIV - 74 * + - 95 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + 45 + + + COUNT ( * ) / COUNT ( * ) + + - 20 / - 74 * + - 95 AS col0
----
46

query II rowsort
SELECT - 93 + 50 AS col1, 97
----
-43
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + 81 * - 10 - + + 27 - 9 / + 48 THEN NULL WHEN AVG ( DISTINCT - 45 ) / - + ( + 90 ) / - + CAST( NULL AS SIGNED ) + - 94 THEN NULL ELSE - 41 END col2
----
-41

skipif mysql # not compatible
query I rowsort label-1894
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 81 * - 10 - + + 27 - 9 / + 48 THEN NULL WHEN AVG ( DISTINCT - 45 ) / - + ( + 90 ) / - + CAST ( NULL AS INTEGER ) + - 94 THEN NULL ELSE - 41 END col2
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1895
SELECT - CAST( NULL AS DECIMAL ) + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT - CAST ( NULL AS REAL ) + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - + 46 + COALESCE ( + - 96, - + SUM( DISTINCT + - 0 ) ) AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - + 46 + COALESCE ( + - 96, - + SUM ( DISTINCT + - 0 ) ) AS col2
----
-142

query II rowsort
SELECT DISTINCT - + 29 + + 8 AS col0, 9 + + 62 + - 40
----
-21
31

query I rowsort
SELECT - - 99 + + 23 * + 40 * + - 67 AS col0
----
-61541

query I rowsort
SELECT - 95 * 17 * 95 * + + 76 AS col0
----
-11660300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1900
SELECT - 70 DIV + CAST( MIN( ALL + 13 ) AS SIGNED ) + + - 34 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 70 / + CAST ( MIN ( ALL + 13 ) AS INTEGER ) + + - 34 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1901
SELECT - 23 DIV - + 78 AS col2, - 57 + - ( - 37 ) AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-1901
SELECT - 23 / - + 78 AS col2, - 57 + - ( - 37 ) AS col0
----
0
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT + 92 * + - COUNT( * ) AS col2, + CASE ( 14 ) WHEN + 56 + + 0 + 4 THEN - 82 * ( + COUNT( * ) ) + - + 27 + - + 75 ELSE NULL END + + + 52 / COALESCE ( - NULLIF ( - 93, 63 ), 1 ) AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1902
SELECT + 92 * + - COUNT ( * ) AS col2, + CASE ( 14 ) WHEN + 56 + + 0 + 4 THEN - 82 * ( + COUNT ( * ) ) + - + 27 + - + 75 ELSE NULL END + + + 52 / COALESCE ( - NULLIF ( - 93, 63 ), 1 ) AS col1
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL - 52 * + + MAX( CAST( NULL AS SIGNED ) ) / COUNT( * ) - - - 48 + + 53 + - 90 * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 52 * + + MAX ( CAST ( NULL AS INTEGER ) ) / COUNT ( * ) - - - 48 + + 53 + - 90 * 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1904
SELECT ALL + 93, + 37 * - - COALESCE ( - COUNT( 26 ), - NULLIF ( 90, - + CAST( + + COUNT( * ) AS SIGNED ) + - 8 ) * + - ( 61 ) * 9 + + - 11 + + + 13 * - 38, - + COUNT( * ) ) + - 69 * - 45 AS col2
----
93
3068

skipif mysql # not compatible
query II rowsort label-1904
SELECT ALL + 93, + 37 * - - COALESCE ( - COUNT ( 26 ), - NULLIF ( 90, - + CAST ( + + COUNT ( * ) AS INTEGER ) + - 8 ) * + - ( 61 ) * 9 + + - 11 + + + 13 * - 38, - + COUNT ( * ) ) + - 69 * - 45 AS col2
----
93
3068

query I rowsort
SELECT - 42 - - 36 AS col1
----
-6

query I rowsort
SELECT - 1 * + 86 * - 72
----
6192

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL 12 DIV 68 * - - 83 * - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL 12 / 68 * - - 83 * - 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + MAX( DISTINCT 87 ) * + 11 * - 15
----
-14355

skipif mysql # not compatible
query I rowsort label-1908
SELECT + MAX ( DISTINCT 87 ) * + 11 * - 15
----
-14355

query I rowsort
SELECT + 15 * 84 + + - ( 36 ) + + 28
----
1252

query I rowsort
SELECT - 6 + 44
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT - 65 DIV - 11
----
5

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 65 / - 11
----
5

query I rowsort
SELECT + 70 * - 79 AS col1
----
-5530

query II rowsort
SELECT - 82 + 43 * + + 44, 94 AS col2
----
1810
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 88 - + CASE - + 13 WHEN COUNT( DISTINCT + - 99 ) THEN - - 72 / + 84 * + 32 * 69 * - + 82 * - - 99 * - 22 + + 29 WHEN + 60 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 88 - + CASE - + 13 WHEN COUNT ( DISTINCT + - 99 ) THEN - - 72 / + 84 * + 32 * 69 * - + 82 * - - 99 * - 22 + + 29 WHEN + 60 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 52 * 14 + 17
----
-711

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL + 15 AS col2, - COUNT( * ) - + - COUNT( + 89 ) AS col0
----
15
0

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL + 15 AS col2, - COUNT ( * ) - + - COUNT ( + 89 ) AS col0
----
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + MIN( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + MIN ( 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + ( + + COUNT( * ) ) * - + 56 * + + NULLIF ( - 11, + 82 )
----
616

skipif mysql # not compatible
query I rowsort label-1918
SELECT + ( + + COUNT ( * ) ) * - + 56 * + + NULLIF ( - 11, + 82 )
----
616

query I rowsort
SELECT + 28 + - + 0 - + + 7 * - 33
----
259

query I rowsort
SELECT + NULLIF ( 83, + - 21 ) + 94 col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL MIN( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL MIN ( + 19 )
----
19

query I rowsort
SELECT ALL 94 + 32
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT + 54 AS col0, 91 * - 59 * + COUNT( * ) * + + 98
----
54
-526162

skipif mysql # not compatible
query II rowsort label-1923
SELECT + 54 AS col0, 91 * - 59 * + COUNT ( * ) * + + 98
----
54
-526162

query I rowsort
SELECT ( COALESCE ( - 36, + NULLIF ( 67, - 69 ) ) )
----
-36

query II rowsort
SELECT - - 64 + ( + - 57 ) AS col1, + 37 AS col0
----
7
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1926
SELECT - CASE - + COALESCE ( + CAST( - - COUNT( * ) AS DECIMAL ), MAX( - ( + 74 ) ) ) WHEN - + 5 THEN + COUNT( * ) ELSE - + 35 END AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1926
SELECT - CASE - + COALESCE ( + CAST ( - - COUNT ( * ) AS REAL ), MAX ( - ( + 74 ) ) ) WHEN - + 5 THEN + COUNT ( * ) ELSE - + 35 END AS col1
----
35

query I rowsort
SELECT DISTINCT - + 68 * - 79
----
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL - COUNT( * ) + + 74 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - COUNT ( * ) + + 74 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT + 13 * 90 + + - CAST( NULL AS SIGNED ) - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT + 13 * 90 + + - CAST ( NULL AS INTEGER ) - 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1930
SELECT ALL COUNT( - + 87 ) DIV + 14 - + ( - + 40 ) + - 44 * + - 63 + 64 AS col1, MIN( + + 54 ) AS col1
----
2876
54

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL COUNT ( - + 87 ) / + 14 - + ( - + 40 ) + - 44 * + - 63 + 64 AS col1, MIN ( + + 54 ) AS col1
----
2876
54

query I rowsort
SELECT ALL + - 56 + - 68 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + COUNT( * ) * 72 - - 29 * + - 27
----
-711

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + COUNT ( * ) * 72 - - 29 * + - 27
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT - 40 DIV + + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 40 / + + 51 AS col0
----
0

query I rowsort
SELECT 4 * - + ( 50 )
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 93 - + 66 * + + ( + + SUM( 35 ) ) * COUNT( * ) - - 63 + - - 78 - + COALESCE ( 57, - COUNT( * ) ) + + + 97 AS col1
----
-2222

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 93 - + 66 * + + ( + + SUM ( 35 ) ) * COUNT ( * ) - - 63 + - - 78 - + COALESCE ( 57, - COUNT ( * ) ) + + + 97 AS col1
----
-2222

query I rowsort
SELECT - - ( + 61 ) / CASE 33 WHEN + AVG ( ALL 88 ) THEN + 30 ELSE NULL END - - - 86 * + 89 + + + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1937
SELECT 62 AS col2, - 46 DIV + + CAST( - 64 AS SIGNED ) + + NULLIF ( + 83, + 26 * + 27 ) * COALESCE ( 50, + + 7 * + 87 ) * + ( - + 36 ) DIV + COUNT( * )
----
62
-149400

skipif mysql # not compatible
query II rowsort label-1937
SELECT 62 AS col2, - 46 / + + CAST ( - 64 AS INTEGER ) + + NULLIF ( + 83, + 26 * + 27 ) * COALESCE ( 50, + + 7 * + 87 ) * + ( - + 36 ) / + COUNT ( * )
----
62
-149400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL - ( + - CAST( + 26 AS SIGNED ) ) col0
----
26

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - ( + - CAST ( + 26 AS INTEGER ) ) col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT + CAST( - COALESCE ( + 64, - 37 * - 71 + + 70 ) AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1939
SELECT + CAST ( - COALESCE ( + 64, - 37 * - 71 + + 70 ) AS INTEGER ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1940
SELECT ALL - CAST( NULL AS DECIMAL ) * - - NULLIF ( - COUNT( * ), - 72 + - 82 ) * - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - CAST ( NULL AS REAL ) * - - NULLIF ( - COUNT ( * ), - 72 + - 82 ) * - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT - 28 * - COUNT( * ) * 74 AS col2
----
2072

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - 28 * - COUNT ( * ) * 74 AS col2
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT COALESCE ( 33, - COUNT( * ) + COUNT( * ) ) DIV - + COUNT( * ) + + NULLIF ( + CAST( - 13 AS SIGNED ), 74 ) * + 68 + - + COUNT( * )
----
-918

skipif mysql # not compatible
query I rowsort label-1942
SELECT COALESCE ( 33, - COUNT ( * ) + COUNT ( * ) ) / - + COUNT ( * ) + + NULLIF ( + CAST ( - 13 AS INTEGER ), 74 ) * + 68 + - + COUNT ( * )
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT - 2 + + MAX( - 4 )
----
-6

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - 2 + + MAX ( - 4 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL 23 + 52 + - 38 + - 50 * + + SUM( - + 90 )
----
4537

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 23 + 52 + - 38 + - 50 * + + SUM ( - + 90 )
----
4537

query I rowsort
SELECT DISTINCT 58 + 18 * + 46
----
886

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT 53 DIV + + 46
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT 53 / + + 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + 84 + + 14 + COUNT( * ) * - 6 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + 84 + + 14 + COUNT ( * ) * - 6 AS col1
----
92

query I rowsort
SELECT 98 * + - NULLIF ( + - 13, 31 )
----
1274

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL ( + NULLIF ( + 93, - - 89 ) ), COUNT( * ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL ( + NULLIF ( + 93, - - 89 ) ), COUNT ( * ) AS col2
----
93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT - NULLIF ( + 4, - COALESCE ( 0, + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - 40, 70 + + 63 * - MAX( + 29 ) ) * - + 52 + - CAST( + 4 AS SIGNED ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1950
SELECT - NULLIF ( + 4, - COALESCE ( 0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 40, 70 + + 63 * - MAX ( + 29 ) ) * - + 52 + - CAST ( + 4 AS INTEGER ) ) AS col1
----
-4

query I rowsort
SELECT ALL - 18 + - - 12 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT - + CASE + + 32 WHEN 38 THEN NULL WHEN - 50 * + - COUNT( * ) + + + 88 / + 92 / - 60 THEN NULL ELSE + 38 + + 47 END AS col2, 51 AS col0
----
-85
51

skipif mysql # not compatible
query II rowsort label-1952
SELECT - + CASE + + 32 WHEN 38 THEN NULL WHEN - 50 * + - COUNT ( * ) + + + 88 / + 92 / - 60 THEN NULL ELSE + 38 + + 47 END AS col2, 51 AS col0
----
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - MAX( + 70 ) * - - 58
----
-4060

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - MAX ( + 70 ) * - - 58
----
-4060

query II rowsort
SELECT 40 - 0 AS col0, + 34 + - 29
----
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL MAX( ALL 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL MAX ( ALL 79 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT - CAST( NULL AS SIGNED ) - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT - CAST ( NULL AS INTEGER ) - + 89 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 76, + 58 * + 19 ) AS col0
----
-76

query I rowsort
SELECT + COALESCE ( + 91, - 89 * + 62 + - 35 ) * + - 92 col2
----
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + 91 + - + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1959
SELECT + 91 + - + COUNT ( * ) AS col1
----
90

query I rowsort
SELECT + 5 + - 37
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL ( MAX( DISTINCT + - 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL ( MAX ( DISTINCT + - 28 ) )
----
-28

query I rowsort
SELECT - 14 * 96
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1963
SELECT 88 * CAST( NULL AS SIGNED ), - 75 + 6 AS col1
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-1963
SELECT 88 * CAST ( NULL AS INTEGER ), - 75 + 6 AS col1
----
NULL
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( + 20, - 96 ) col0, 19
----
0
19

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT COUNT ( * ) / + NULLIF ( + 20, - 96 ) col0, 19
----
0
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT - 41 + - CAST( - SUM( + 21 ) AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1965
SELECT - 41 + - CAST ( - SUM ( + 21 ) AS INTEGER ) AS col1
----
-20

query I rowsort
SELECT ALL + 87 * - + 46
----
-4002

query I rowsort
SELECT 64 * + - 36 AS col1
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT COUNT( * ) * 71 + + + 86 col1, - 25 * 75 col0
----
157
-1875

skipif mysql # not compatible
query II rowsort label-1968
SELECT COUNT ( * ) * 71 + + + 86 col1, - 25 * 75 col0
----
157
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1969
SELECT - COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) + - 9 + - 77, + 53 * 58 + 35 AS col1
----
-85
3109

skipif mysql # not compatible
query II rowsort label-1969
SELECT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 9 + - 77, + 53 * 58 + 35 AS col1
----
-85
3109

query II rowsort
SELECT + 76 AS col0, 82 AS col1
----
76
82

query I rowsort
SELECT 54 * 97
----
5238

query I rowsort
SELECT ALL - 15 + + 42 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT MIN( DISTINCT - + 0 ) * - ( - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT MIN ( DISTINCT - + 0 ) * - ( - 17 ) AS col2
----
0

query I rowsort
SELECT ALL + 52 + 26 * 19
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT 52 + + MAX( - 0 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 52 + + MAX ( - 0 ) col1
----
52

query I rowsort
SELECT DISTINCT - 79 * + + 13 AS col2
----
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( DISTINCT + + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( DISTINCT + + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + COUNT( * ) * + - 46 * + 19 + COUNT( DISTINCT + 66 )
----
-873

skipif mysql # not compatible
query I rowsort label-1978
SELECT + COUNT ( * ) * + - 46 * + 19 + COUNT ( DISTINCT + 66 )
----
-873

query I rowsort
SELECT 4 - 98
----
-94

query I rowsort
SELECT 14 - 2 AS col1
----
12

query I rowsort
SELECT ALL + 62 * + - 74 * + + 79
----
-362452

query I rowsort
SELECT 88 + - 71 + - 74
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL + + MIN( DISTINCT - 64 ) - + 2 + - NULLIF ( - 30, CASE - MAX( DISTINCT + - NULLIF ( COALESCE ( - 21, + - 81 * 22 ), - - 38 ) ) WHEN - 87 THEN NULL WHEN - 23 THEN + 95 + - 82 END ) + + 82
----
46

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + + MIN ( DISTINCT - 64 ) - + 2 + - NULLIF ( - 30, CASE - MAX ( DISTINCT + - NULLIF ( COALESCE ( - 21, + - 81 * 22 ), - - 38 ) ) WHEN - 87 THEN NULL WHEN - 23 THEN + 95 + - 82 END ) + + 82
----
46

query I rowsort
SELECT 16 * - + ( - 12 ) + - 84 AS col2
----
108

query I rowsort
SELECT DISTINCT + 30 * 84
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL - 67 - + 76 - 64 * + - ( 6 ) * 96 * + MIN( - CAST( NULL AS SIGNED ) ) + - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - 67 - + 76 - 64 * + - ( 6 ) * 96 * + MIN ( - CAST ( NULL AS INTEGER ) ) + - + 72
----
NULL

query I rowsort
SELECT DISTINCT ( - + 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1988
SELECT ALL - MIN( ALL - - 3 ) DIV + 50 + + - 7 * + COUNT( * ), ( ( + + 21 ) ) + + + 1 DIV - 39 AS col2
----
-7
21

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL - MIN ( ALL - - 3 ) / + 50 + + - 7 * + COUNT ( * ), ( ( + + 21 ) ) + + + 1 / - 39 AS col2
----
-7
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL + CASE - - CAST( NULL AS SIGNED ) WHEN - 14 * 22 * - 70 THEN NULL ELSE 63 * - + COUNT( * ) END AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN - 14 * 22 * - 70 THEN NULL ELSE 63 * - + COUNT ( * ) END AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT - - 85, 40 + + - 85 - CAST( + COUNT( + 5 ) AS SIGNED ) + CASE 99 WHEN - 91 + + 7 THEN NULL WHEN - - 88 * 51 + - 81 * 30 THEN - 29 * 26 + 80 ELSE NULL END * + 38 * + CAST( NULL AS SIGNED ) AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1990
SELECT - - 85, 40 + + - 85 - CAST ( + COUNT ( + 5 ) AS INTEGER ) + CASE 99 WHEN - 91 + + 7 THEN NULL WHEN - - 88 * 51 + - 81 * 30 THEN - 29 * 26 + 80 ELSE NULL END * + 38 * + CAST ( NULL AS INTEGER ) AS col1
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT + 31 DIV COALESCE ( 88, 68 ) + + + MAX( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 31 / COALESCE ( 88, 68 ) + + + MAX ( DISTINCT + 56 )
----
56

query I rowsort
SELECT ALL ( + 5 ) AS col0
----
5

query I rowsort
SELECT + ( - + 98 ) + - ( + 8 )
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1994
SELECT - 84 * ( + - ( 75 ) ) + - MIN( - 16 ) + - - CAST( - - COUNT( * ) AS SIGNED ) DIV + - ( 40 ) + + 97
----
6413

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 84 * ( + - ( 75 ) ) + - MIN ( - 16 ) + - - CAST ( - - COUNT ( * ) AS INTEGER ) / + - ( 40 ) + + 97
----
6413

query I rowsort
SELECT DISTINCT + COALESCE ( + 49, + 1, 60 )
----
49

query I rowsort
SELECT ALL 42 * + - 71
----
-2982

query I rowsort
SELECT + - 68 + + 96 + - 53 * 59
----
-3099

query I rowsort
SELECT DISTINCT + - ( - - 79 ) * 36 AS col0
----
-2844

query I rowsort
SELECT - + ( - - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + MIN( + 30 ) * + 83
----
2490

skipif mysql # not compatible
query I rowsort label-2000
SELECT + MIN ( + 30 ) * + 83
----
2490

query I rowsort
SELECT + 65 + - - 68 - - - 37 + 97 * - - 84 AS col1
----
8244

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ( NULLIF ( - MIN( ALL - - 48 ), - 6 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-2002
SELECT ( NULLIF ( - MIN ( ALL - - 48 ), - 6 ) )
----
-48

query II rowsort
SELECT DISTINCT + 95 AS col0, 29 AS col0
----
95
29

query I rowsort
SELECT + ( + 68 ) + - 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL 2 * 76 DIV + 42 + + 1 DIV + + 39 col0
----
3

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 2 * 76 / + 42 + + 1 / + + 39 col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT + COUNT( * ) col2, + 39 col2
----
1
39

skipif mysql # not compatible
query II rowsort label-2006
SELECT + COUNT ( * ) col2, + 39 col2
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL SUM( ALL 50 ) * + + COUNT( * ) + + 44 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL SUM ( ALL 50 ) * + + COUNT ( * ) + + 44 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT + ( 3 ) * - 56 * + + CASE + 64 WHEN + 51 THEN + + CAST( NULL AS SIGNED ) DIV COALESCE ( 80, 50 ) WHEN - + 26 * - 36 * - + 6 + + - ( + CAST( NULL AS SIGNED ) ) - + 83 - + 16 + - - 41 DIV - COUNT( * ) + ( + 63 ) THEN NULL ELSE - COUNT( * ) END
----
168

skipif mysql # not compatible
query I rowsort label-2008
SELECT + ( 3 ) * - 56 * + + CASE + 64 WHEN + 51 THEN + + CAST ( NULL AS INTEGER ) / COALESCE ( 80, 50 ) WHEN - + 26 * - 36 * - + 6 + + - ( + CAST ( NULL AS INTEGER ) ) - + 83 - + 16 + - - 41 / - COUNT ( * ) + ( + 63 ) THEN NULL ELSE - COUNT ( * ) END
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT + ( 2 ), - MIN( ALL + + ( + + 40 ) ) * - SUM( - + 89 ) AS col0
----
2
-3560

skipif mysql # not compatible
query II rowsort label-2009
SELECT + ( 2 ), - MIN ( ALL + + ( + + 40 ) ) * - SUM ( - + 89 ) AS col0
----
2
-3560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT + ( 86 ) DIV - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-2010
SELECT + ( 86 ) / - COUNT ( * )
----
-86

query I rowsort
SELECT ALL 40 * - 73 * + 79
----
-230680

query I rowsort
SELECT - 51 + + ( - - 30 )
----
-21

query I rowsort
SELECT - 10 * - 82 AS col0
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT ALL - 45 * + 57 - + 34 + + 92, - COUNT( * ) AS col2
----
-2507
-1

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL - 45 * + 57 - + 34 + + 92, - COUNT ( * ) AS col2
----
-2507
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT + - 90 * + CAST( + + AVG ( ALL + 66 ) AS SIGNED ) AS col2
----
-5940

skipif mysql # not compatible
query I rowsort label-2015
SELECT + - 90 * + CAST ( + + AVG ( ALL + 66 ) AS INTEGER ) AS col2
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT CASE - 55 WHEN + 24 THEN - 29 WHEN 72 + - 71 * - - 40 + + - 3 * - 11 + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT CASE - 55 WHEN + 24 THEN - 29 WHEN 72 + - 71 * - - 40 + + - 3 * - 11 + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 20 * + + ( - 10 ) - 56 AS col1
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT + - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2018
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

query II rowsort
SELECT + + 23 AS col0, - 68
----
23
-68

query I rowsort
SELECT + 24 * + 93 * + + ( + 82 ) + + 56 - ( - 93 ) - 64 AS col0
----
183109

query I rowsort
SELECT - 2 * + 99
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + COALESCE ( MIN( ALL - 20 ), + + 94 ) - + + COUNT( * ) + + - 97 col2
----
-118

skipif mysql # not compatible
query I rowsort label-2022
SELECT + COALESCE ( MIN ( ALL - 20 ), + + 94 ) - + + COUNT ( * ) + + - 97 col2
----
-118

query II rowsort
SELECT - 20 * + + 86 AS col1, - 86
----
-1720
-86

query I rowsort
SELECT - 60 + - 32 * - 90
----
2820

query II rowsort
SELECT DISTINCT - 51, + 30 AS col0
----
-51
30

query I rowsort
SELECT ALL + 25 * - 34 AS col1
----
-850

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT - + 14 - - 45 + + - COUNT( * ) - + + 4 + - 91 + - 67, - ( - 3 ) col0
----
-132
3

skipif mysql # not compatible
query II rowsort label-2027
SELECT - + 14 - - 45 + + - COUNT ( * ) - + + 4 + - 91 + - 67, - ( - 3 ) col0
----
-132
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT ALL - 45 + 10 * COUNT( * ) DIV - 20 * - 50 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - 45 + 10 * COUNT ( * ) / - 20 * - 50 AS col2
----
-45

query II rowsort
SELECT - - 39 - + 9 * 35 * - + 36, 35 AS col1
----
11379
35

query II rowsort
SELECT 12, - ( + 9 ) col1
----
12
-9

query I rowsort
SELECT - + 64 + - 72 * + 66
----
-4816

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT SUM( ALL - + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT SUM ( ALL - + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - 42 + + MAX( + COALESCE ( - + 54, + - 64 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - 42 + + MAX ( + COALESCE ( - + 54, + - 64 ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - 60 * + - CASE + + COUNT( ALL 86 ) WHEN - + 47 * - 33 THEN NULL WHEN 74 THEN + 24 / - ( 2 ) ELSE NULL END * 20 * - - 69 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT - 60 * + - CASE + + COUNT ( ALL 86 ) WHEN - + 47 * - 33 THEN NULL WHEN 74 THEN + 24 / - ( 2 ) ELSE NULL END * 20 * - - 69 * + 20 AS col1
----
NULL

query II rowsort
SELECT - 18 + + 9 AS col2, + 70 AS col2
----
-9
70

query I rowsort
SELECT + 24 - + 84 * - ( - 26 )
----
-2160

query I rowsort
SELECT DISTINCT 47 + - 82 * 76 AS col0
----
-6185

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL 6 + - MIN( 65 ) * + 7 * + + COALESCE ( + - 30, - - 49 ) + - COUNT( * ) AS col0
----
13655

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL 6 + - MIN ( 65 ) * + 7 * + + COALESCE ( + - 30, - - 49 ) + - COUNT ( * ) AS col0
----
13655

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - 70 + - 96 - 25 * - 35 + - NULLIF ( - MIN( ALL + 93 ), + 45 ) * - COUNT( * )
----
616

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - 70 + - 96 - 25 * - 35 + - NULLIF ( - MIN ( ALL + 93 ), + 45 ) * - COUNT ( * )
----
616

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT - COALESCE ( 96, + - 91 + + + SUM( + 46 ) ) AS col1, 60 AS col1
----
-96
60

skipif mysql # not compatible
query II rowsort label-2040
SELECT - COALESCE ( 96, + - 91 + + + SUM ( + 46 ) ) AS col1, 60 AS col1
----
-96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - COALESCE ( 79, + COUNT( * ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COALESCE ( 79, + COUNT ( * ) ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL + 98 * + COUNT( * ) * - 25 AS col1
----
-2450

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + 98 * + COUNT ( * ) * - 25 AS col1
----
-2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2043
SELECT DISTINCT 5 * + 19, + CAST( + 4 AS SIGNED ) * + COUNT( * ) DIV - - 5 * + - 22 AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT 5 * + 19, + CAST ( + 4 AS INTEGER ) * + COUNT ( * ) / - - 5 * + - 22 AS col0
----
95
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT DISTINCT MIN( DISTINCT + 21 ) DIV 8 - + - 73 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT MIN ( DISTINCT + 21 ) / 8 - + - 73 * - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2045
SELECT 90 * + 98 + + COUNT( * ) + + 86 + 39 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT 90 * + 98 + + COUNT ( * ) + + 86 + 39 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - 81 DIV + 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 81 / + 58 AS col2
----
-1

query I rowsort
SELECT - 8 * - - 87
----
-696

query II rowsort
SELECT - ( - 68 ) + + 75 * + 76 * - 94 AS col2, - 8 AS col2
----
-535732
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT - COUNT( * ) * - 9 + 4 + 78 * MAX( + 84 ) AS col0
----
6565

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - COUNT ( * ) * - 9 + 4 + 78 * MAX ( + 84 ) AS col0
----
6565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT 84 DIV COUNT( + + 94 )
----
84

skipif mysql # not compatible
query I rowsort label-2050
SELECT 84 / COUNT ( + + 94 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2051
SELECT + 53 / + 83 * - NULLIF ( - COUNT( * ), + + 16 ) + + CAST( - 61 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * - NULLIF ( - 22, 70 ) - + 55 + - + 90 AS col2
----
NULL
-123

skipif mysql # not compatible
query II rowsort label-2051
SELECT + 53 / + 83 * - NULLIF ( - COUNT ( * ), + + 16 ) + + CAST ( - 61 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - NULLIF ( - 22, 70 ) - + 55 + - + 90 AS col2
----
NULL
-123

query I rowsort
SELECT - - ( + 21 )
----
21

query II rowsort
SELECT ALL + 54 + - - 41 AS col1, 25
----
95
25

query I rowsort
SELECT DISTINCT - 96 * - - 3 * - - 7
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL + + 29 + - + 99 + - 76 DIV + COUNT( * ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + + 29 + - + 99 + - 76 / + COUNT ( * ) AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - SUM( + NULLIF ( - ( - - 17 ), - NULLIF ( - + 33, + - 53 ) ) ) + + 97
----
114

skipif mysql # not compatible
query I rowsort label-2056
SELECT - SUM ( + NULLIF ( - ( - - 17 ), - NULLIF ( - + 33, + - 53 ) ) ) + + 97
----
114

query I rowsort
SELECT 86 + 61
----
147

query I rowsort
SELECT ALL - + 37 + + - 38 * - 58
----
2167

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + 60 * + COUNT( ALL - - 11 )
----
60

skipif mysql # not compatible
query I rowsort label-2059
SELECT + 60 * + COUNT ( ALL - - 11 )
----
60

query II rowsort
SELECT + 69 + 70 col0, + 67 * - 94
----
139
-6298

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2061
SELECT ALL 61 AS col0, - COUNT( * ) DIV + COUNT( ALL - 65 )
----
61
-1

skipif mysql # not compatible
query II rowsort label-2061
SELECT ALL 61 AS col0, - COUNT ( * ) / + COUNT ( ALL - 65 )
----
61
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT 36 + - COUNT( * ) - - - 62 * - + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT 36 + - COUNT ( * ) - - - 62 * - + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT ALL - 38 + + + 63 + + 9 * + 1 + + - 60 AS col0
----
-26

query I rowsort
SELECT 82 * - + 25
----
-2050

query II rowsort
SELECT ALL 25, - ( - 11 ) - 91 AS col0
----
25
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2066
SELECT 89 + - CAST( NULL AS SIGNED ) / - 17, 64 * COALESCE ( + ( - - 97 ), + 56 ) + 80 AS col1
----
NULL
6288

skipif mysql # not compatible
query II rowsort label-2066
SELECT 89 + - CAST ( NULL AS INTEGER ) / - 17, 64 * COALESCE ( + ( - - 97 ), + 56 ) + 80 AS col1
----
NULL
6288

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2067
SELECT 92 * - 93 * + SUM( + CAST( NULL AS DECIMAL ) ) * - + 6 * AVG ( + 0 ) + + 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT 92 * - 93 * + SUM ( + CAST ( NULL AS REAL ) ) * - + 6 * AVG ( + 0 ) + + 96 col0
----
NULL

query II rowsort
SELECT ALL 82, + 26 AS col2
----
82
26

query I rowsort
SELECT ALL - 39 - - 44
----
5

query I rowsort
SELECT 72 - + + 77
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 8 * - SUM( DISTINCT + + 45 ) * + ( + - NULLIF ( - 48, COUNT( * ) ) ) AS col1
----
-17280

skipif mysql # not compatible
query I rowsort label-2071
SELECT 8 * - SUM ( DISTINCT + + 45 ) * + ( + - NULLIF ( - 48, COUNT ( * ) ) ) AS col1
----
-17280

query II rowsort
SELECT 16, + 88 + + 61 col1
----
16
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT 14 + 80 - + 43 AS col2, COUNT( + 14 ) + - - ( 86 )
----
51
87

skipif mysql # not compatible
query II rowsort label-2073
SELECT 14 + 80 - + 43 AS col2, COUNT ( + 14 ) + - - ( 86 )
----
51
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT - COUNT( * ) - 80
----
-81

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - COUNT ( * ) - 80
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT DISTINCT - 48 DIV 81 DIV 26 AS col1, - 67
----
0
-67

skipif mysql # not compatible
query II rowsort label-2075
SELECT DISTINCT - 48 / 81 / 26 AS col1, - 67
----
0
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT ALL - NULLIF ( 96, COUNT( * ) ) AS col0, 16 AS col2
----
-96
16

skipif mysql # not compatible
query II rowsort label-2076
SELECT ALL - NULLIF ( 96, COUNT ( * ) ) AS col0, 16 AS col2
----
-96
16

query I rowsort
SELECT DISTINCT + 22 - 86 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL - CASE - COALESCE ( - 3, COUNT( * ) + - CASE - 85 WHEN + - 82 * 30 THEN NULL WHEN + + NULLIF ( + 60, - + 20 ) THEN + CASE + 26 WHEN + ( 48 ) * - - 43 THEN + + 3 - - - 33 + - + COUNT( * ) * - 82 END ELSE + 59 * + AVG ( + 16 ) * 10 + + NULLIF ( COUNT( * ) + 56 / 25, 85 ) * + 35 END, - MIN( - 34 ) + COUNT( * ) ) WHEN + 37 THEN 53 / 51 WHEN + ( CASE 74 WHEN + CAST( NULL AS SIGNED ) THEN 90 WHEN - COUNT( * ) THEN NULL END ) * 33 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - CASE - COALESCE ( - 3, COUNT ( * ) + - CASE - 85 WHEN + - 82 * 30 THEN NULL WHEN + + NULLIF ( + 60, - + 20 ) THEN + CASE + 26 WHEN + ( 48 ) * - - 43 THEN + + 3 - - - 33 + - + COUNT ( * ) * - 82 END ELSE + 59 * + AVG ( + 16 ) * 10 + + NULLIF ( COUNT ( * ) + 56 / 25, 85 ) * + 35 END, - MIN ( - 34 ) + COUNT ( * ) ) WHEN + 37 THEN 53 / 51 WHEN + ( CASE 74 WHEN + CAST ( NULL AS INTEGER ) THEN 90 WHEN - COUNT ( * ) THEN NULL END ) * 33 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - 49 * - + NULLIF ( CASE 85 WHEN - - COUNT( * ) THEN NULL WHEN - 98 THEN - + COUNT( * ) * + MAX( + 66 ) ELSE 80 + + - 89 DIV COUNT( * ) END, - - COUNT( * ) - + 18 )
----
-441

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 49 * - + NULLIF ( CASE 85 WHEN - - COUNT ( * ) THEN NULL WHEN - 98 THEN - + COUNT ( * ) * + MAX ( + 66 ) ELSE 80 + + - 89 / COUNT ( * ) END, - - COUNT ( * ) - + 18 )
----
-441

query I rowsort
SELECT 63 * 83 AS col1
----
5229

query I rowsort
SELECT + 75 * 85 AS col0
----
6375

query I rowsort
SELECT ALL - + 65 * 17
----
-1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT COUNT( * ) * 43 + 64 / CAST( NULL AS SIGNED ) * 63 * 79 + + - COUNT( ALL - ( - - 17 ) ) * - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT COUNT ( * ) * 43 + 64 / CAST ( NULL AS INTEGER ) * 63 * 79 + + - COUNT ( ALL - ( - - 17 ) ) * - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT 61, - MAX( - 35 ) AS col1
----
61
35

skipif mysql # not compatible
query II rowsort label-2084
SELECT 61, - MAX ( - 35 ) AS col1
----
61
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT ALL - - 67, 84 * + - COUNT( * ) + - 11 + - ( + 21 ) AS col1
----
67
-116

skipif mysql # not compatible
query II rowsort label-2085
SELECT ALL - - 67, 84 * + - COUNT ( * ) + - 11 + - ( + 21 ) AS col1
----
67
-116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2086
SELECT + CAST( NULL AS DECIMAL ) * - + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT + CAST ( NULL AS REAL ) * - + 49 AS col2
----
NULL

query I rowsort
SELECT ALL - 58 + - 6 AS col2
----
-64

query I rowsort
SELECT DISTINCT - 36 + - 38 * - + NULLIF ( - 24, - 27 ) * - 40 - + 46
----
36398

query II rowsort
SELECT ALL 95 + - 75 * 65 AS col2, 21 + + 32 col1
----
-4780
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + SUM( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2090
SELECT + SUM ( DISTINCT 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL 8 + - 62 - COUNT( * ) * - COUNT( * ) * 52 + - 78 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 8 + - 62 - COUNT ( * ) * - COUNT ( * ) * 52 + - 78 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + + COUNT( - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2092
SELECT + + COUNT ( - 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - 77 * + + COUNT( * ) - - COALESCE ( + 96, - 40 ) + - + CASE + COUNT( * ) WHEN + + 49 + + ( + 41 ) THEN NULL WHEN CASE - 21 WHEN - 3 THEN 75 + 26 * 55 END THEN - COUNT( * ) END - 94 * AVG ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT - 77 * + + COUNT ( * ) - - COALESCE ( + 96, - 40 ) + - + CASE + COUNT ( * ) WHEN + + 49 + + ( + 41 ) THEN NULL WHEN CASE - 21 WHEN - 3 THEN 75 + 26 * 55 END THEN - COUNT ( * ) END - 94 * AVG ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + COALESCE ( - 82, - + ( - COUNT( * ) ) - + 74 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2094
SELECT + COALESCE ( - 82, - + ( - COUNT ( * ) ) - + 74 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - COUNT( * ) + - - 53
----
52

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - COUNT ( * ) + - - 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT MIN( - + 13 ) + 74 * + 21
----
1541

skipif mysql # not compatible
query I rowsort label-2096
SELECT MIN ( - + 13 ) + 74 * + 21
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 14 * + COUNT ( * )
----
14

query I rowsort
SELECT ALL 97 * + 30
----
2910

query I rowsort
SELECT DISTINCT 36 * - 66 col2
----
-2376

query II rowsort
SELECT - 83, 22 AS col2
----
-83
22

query I rowsort
SELECT 73 - 0
----
73

query I rowsort
SELECT ( 74 ) + + + 54 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - MIN( DISTINCT - 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2103
SELECT - MIN ( DISTINCT - 41 ) AS col0
----
41

query II rowsort
SELECT 92 + 7 AS col2, 53 AS col2
----
99
53

query I rowsort
SELECT 63 * - 13
----
-819

query I rowsort
SELECT 98 * + 2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2107
SELECT ( + 69 ) + - 19 DIV + - 46 + MIN( 76 ) * + COUNT( - + CAST( NULL AS SIGNED ) ) - COUNT( * ) - + 77 * + + COUNT( + - 65 ) AS col0, 28 AS col0
----
-9
28

skipif mysql # not compatible
query II rowsort label-2107
SELECT ( + 69 ) + - 19 / + - 46 + MIN ( 76 ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + 77 * + + COUNT ( + - 65 ) AS col0, 28 AS col0
----
-9
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT AVG ( 79 ) + - - CAST( NULL AS SIGNED ) - + 91 - 97 * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT AVG ( 79 ) + - - CAST ( NULL AS INTEGER ) - + 91 - 97 * + - 16
----
NULL

query I rowsort
SELECT ALL - 35 * 85 AS col0
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT MAX( ALL + 92 ) * - 60
----
-5520

skipif mysql # not compatible
query I rowsort label-2110
SELECT MAX ( ALL + 92 ) * - 60
----
-5520

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL 29 DIV - - 88 * + - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 29 / - - 88 * + - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL SUM( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL SUM ( - - 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT - 75 DIV - SUM( - 31 )
----
-2

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 75 / - SUM ( - 31 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - 93 * + SUM( 40 ) AS col1
----
-3720

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 93 * + SUM ( 40 ) AS col1
----
-3720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT + COALESCE ( - ( + 97 ), - 83 + - ( - + COALESCE ( + - CAST( NULL AS SIGNED ), 8 * - 30 ) ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2115
SELECT + COALESCE ( - ( + 97 ), - 83 + - ( - + COALESCE ( + - CAST ( NULL AS INTEGER ), 8 * - 30 ) ) ) AS col2
----
-97

query I rowsort
SELECT NULLIF ( + COALESCE ( - NULLIF ( COALESCE ( 82, - 29 ), - - 96 / - 68 + + 1 / 66 ), - 30 ), + 90 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT CAST( NULL AS SIGNED ) * 95 + + COUNT( * ) + - 3, - COUNT( * ) + + - 14 - + + 39 + - 31 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2117
SELECT CAST ( NULL AS INTEGER ) * 95 + + COUNT ( * ) + - 3, - COUNT ( * ) + + - 14 - + + 39 + - 31 AS col1
----
NULL
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT - 45 DIV COUNT( * ) * + 81 AS col1
----
-3645

skipif mysql # not compatible
query I rowsort label-2118
SELECT - 45 / COUNT ( * ) * + 81 AS col1
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - COUNT( * ) * 95 + + - 10
----
-105

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COUNT ( * ) * 95 + + - 10
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COALESCE ( 48, - - MIN( 1 ) )
----
48

skipif mysql # not compatible
query I rowsort label-2120
SELECT COALESCE ( 48, - - MIN ( 1 ) )
----
48

query I rowsort
SELECT - 12 + 18
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT ALL + 98 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + 98 / + 69
----
1

query I rowsort
SELECT ALL + 99 * 66 + - + 90
----
6444

query I rowsort
SELECT 1 * 58 + - - 93 * - CASE + ( - 3 ) WHEN + + 31 THEN + + 88 END col1
----
NULL

query I rowsort
SELECT - + 34 * 33 + - + 93 * - 76
----
5946

query I rowsort
SELECT + COALESCE ( + - 89, 98 ) AS col0
----
-89

query I rowsort
SELECT - - 52 + - 73 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2128
SELECT ALL + 69 * + 73 * CAST( NULL AS SIGNED ) + - + CAST( - 79 AS SIGNED ) - - - COUNT( * ) * 46 AS col0, 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL + 69 * + 73 * CAST ( NULL AS INTEGER ) + - + CAST ( - 79 AS INTEGER ) - - - COUNT ( * ) * 46 AS col0, 73 AS col1
----
NULL
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT - 15 + + CAST( NULL AS SIGNED ) + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 15 + + CAST ( NULL AS INTEGER ) + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT + + ( + + MAX( DISTINCT + 9 ) ) + - 7 AS col1, - 12
----
2
-12

skipif mysql # not compatible
query II rowsort label-2130
SELECT + + ( + + MAX ( DISTINCT + 9 ) ) + - 7 AS col1, - 12
----
2
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + 98 + ( - CASE - 12 WHEN + 22 THEN + 49 * + COUNT( - 97 ) * - ( + 2 ) + - 76 * - 65 / + + COALESCE ( 81, + 36 * + + 4 * + - 56 + - + ( + 2 ), - + 63 ) WHEN - 86 * - 2 THEN - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 98 + ( - CASE - 12 WHEN + 22 THEN + 49 * + COUNT ( - 97 ) * - ( + 2 ) + - 76 * - 65 / + + COALESCE ( 81, + 36 * + + 4 * + - 56 + - + ( + 2 ), - + 63 ) WHEN - 86 * - 2 THEN - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - 42 * + 51 - + SUM( DISTINCT 73 ) + + 44
----
-2171

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 42 * + 51 - + SUM ( DISTINCT 73 ) + + 44
----
-2171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL - 33 * - NULLIF ( + 10, - CAST( NULL AS SIGNED ) + + 99 ) + + COUNT( ALL + - CAST( 40 AS SIGNED ) ) + + 20 * 72 * + + 30 + + 77
----
43608

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - 33 * - NULLIF ( + 10, - CAST ( NULL AS INTEGER ) + + 99 ) + + COUNT ( ALL + - CAST ( 40 AS INTEGER ) ) + + 20 * 72 * + + 30 + + 77
----
43608

query I rowsort
SELECT DISTINCT + 97 * 47 - ( + 63 ) + CASE 59 WHEN - - ( - 0 ) * - 32 THEN + 81 WHEN - 9 THEN - 21 + + 0 WHEN - + 47 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL ( COALESCE ( + 82, - MIN( ALL 33 ), + 2 ) ) / + CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL ( COALESCE ( + 82, - MIN ( ALL 33 ), + 2 ) ) / + CAST ( NULL AS INTEGER ) + 36
----
NULL

query I rowsort
SELECT + + 25 + + ( + + ( + ( 0 ) ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 47 * 3 * COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 47 * 3 * COUNT ( * )
----
141

query II rowsort
SELECT + ( + 19 ) * - 63 * 99 * + 59 + + - 95 * + NULLIF ( - 88, - + 48 ) + - 29 AS col1, - 3 * 86 AS col1
----
-6983346
-258

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2139
SELECT + ( + - CAST( - 49 AS SIGNED ) ) DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT + ( + - CAST ( - 49 AS INTEGER ) ) / + 66 AS col0
----
0

query I rowsort
SELECT ALL 88 * - - 19 AS col0
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT + 93 + + - 22 AS col1
----
71

query I rowsort
SELECT ALL 75 + 70 AS col2
----
145

query I rowsort
SELECT + 16 - + 36 + 58 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT ALL NULLIF ( - CASE + CAST( NULL AS SIGNED ) WHEN - + 5 THEN - 79 * - 51 ELSE NULL END, - + 32 ) * + 45 + - + 90 - + 91 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL NULLIF ( - CASE + CAST ( NULL AS INTEGER ) WHEN - + 5 THEN - 79 * - 51 ELSE NULL END, - + 32 ) * + 45 + - + 90 - + 91 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL 39 + - 33 + CASE ( + 4 ) WHEN 13 * + 8 THEN + 28 / COUNT( * ) END + - 82 + - 50 * + + MIN( + + 94 ) + - - COUNT( * ) * - + COUNT( * ), + 21 * + + ( - 85 ) AS col0
----
NULL
-1785

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL 39 + - 33 + CASE ( + 4 ) WHEN 13 * + 8 THEN + 28 / COUNT ( * ) END + - 82 + - 50 * + + MIN ( + + 94 ) + - - COUNT ( * ) * - + COUNT ( * ), + 21 * + + ( - 85 ) AS col0
----
NULL
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT + + CASE + - 43 WHEN - + COUNT( * ) THEN NULL ELSE + 40 END AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + + CASE + - 43 WHEN - + COUNT ( * ) THEN NULL ELSE + 40 END AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT - + 30 * + - CASE - 30 WHEN 12 * + - ( + + 77 ) + + 86 + - 56 + - - ( - CAST( - 50 AS SIGNED ) ) + + ( + 28 ) * + + 9 * + MIN( DISTINCT 94 ) * - + 52 + 78 THEN - 37 WHEN + 11 - 30 THEN NULL ELSE 57 * + ( 52 ) + + 12 * 68 - 67 END
----
111390

skipif mysql # not compatible
query I rowsort label-2148
SELECT - + 30 * + - CASE - 30 WHEN 12 * + - ( + + 77 ) + + 86 + - 56 + - - ( - CAST ( - 50 AS INTEGER ) ) + + ( + 28 ) * + + 9 * + MIN ( DISTINCT 94 ) * - + 52 + 78 THEN - 37 WHEN + 11 - 30 THEN NULL ELSE 57 * + ( 52 ) + + 12 * 68 - 67 END
----
111390

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT DISTINCT - 58 DIV + + 69 + - 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - 58 / + + 69 + - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL + 15 DIV COUNT( * ) + ( + 42 )
----
57

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + 15 / COUNT ( * ) + ( + 42 )
----
57

query I rowsort
SELECT + 13 * - - 57
----
741

query II rowsort
SELECT + 72 col0, - 79 * - 82
----
72
6478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT - CAST( - 44 AS SIGNED ) * - 68
----
-2992

skipif mysql # not compatible
query I rowsort label-2153
SELECT - CAST ( - 44 AS INTEGER ) * - 68
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL - - 97 * + ( + + 23 ) - CAST( + CAST( 46 AS SIGNED ) AS SIGNED ) col1
----
2185

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - - 97 * + ( + + 23 ) - CAST ( + CAST ( 46 AS INTEGER ) AS INTEGER ) col1
----
2185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2155
SELECT - - 4 * + 5 + - + 53 - - + CAST( NULL AS SIGNED ) * + + 61 * - 63 * + ( - 80 ), ( + 88 ) + - COUNT( + 86 ) AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2155
SELECT - - 4 * + 5 + - + 53 - - + CAST ( NULL AS INTEGER ) * + + 61 * - 63 * + ( - 80 ), ( + 88 ) + - COUNT ( + 86 ) AS col1
----
NULL
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL 18 * + 4 - - CASE - - 71 WHEN + 82 THEN - + CASE 8 WHEN - 9 THEN + - 96 - COALESCE ( - ( + - 81 ), 42 + + 34 ) + 44 * 22 ELSE + 36 END END - - 35 - CAST( + + ( + + 5 ) AS SIGNED ) + + 69 * + - ( - CAST( NULL AS SIGNED ) ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 18 * + 4 - - CASE - - 71 WHEN + 82 THEN - + CASE 8 WHEN - 9 THEN + - 96 - COALESCE ( - ( + - 81 ), 42 + + 34 ) + 44 * 22 ELSE + 36 END END - - 35 - CAST ( + + ( + + 5 ) AS INTEGER ) + + 69 * + - ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT - 10 * + 12 * - - 39 - 38
----
-4718

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - - MIN( + 52 ) * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-2158
SELECT - - MIN ( + 52 ) * + COUNT ( * )
----
52

query I rowsort
SELECT + ( + + 18 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT ALL + - NULLIF ( - 26, - - 55 - CASE - - 5 WHEN + - MAX( 5 ) * + - 11 THEN COALESCE ( + 95, - 41 / - 77 - + COUNT( 36 ) * - 20 + 32 + + - 26 + + - 61 * 49 * - COALESCE ( + 30, ( - 81 ) ) + + + 77 * - + 14 ) WHEN - 87 * - ( - MAX( - 5 ) * CASE - 36 * 87 WHEN 27 + - 81 * 37 THEN 74 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 10, + 69 ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL END * - ( COUNT( ALL COALESCE ( 80, 43 * - 55 ) ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + - NULLIF ( - 26, - - 55 - CASE - - 5 WHEN + - MAX ( 5 ) * + - 11 THEN COALESCE ( + 95, - 41 / - 77 - + COUNT ( 36 ) * - 20 + 32 + + - 26 + + - 61 * 49 * - COALESCE ( + 30, ( - 81 ) ) + + + 77 * - + 14 ) WHEN - 87 * - ( - MAX ( - 5 ) * CASE - 36 * 87 WHEN 27 + - 81 * 37 THEN 74 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 10, + 69 ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL END * - ( COUNT ( ALL COALESCE ( 80, 43 * - 55 ) ) ) )
----
26

query II rowsort
SELECT - 15 * - + 38 * 24, + 96 AS col1
----
13680
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT - 85 * - 45 + + ( - SUM( + 54 ) ) + + + NULLIF ( - 68, - SUM( ALL + + 7 ) + + COUNT( * ) ), + 52 AS col0
----
3703
52

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 85 * - 45 + + ( - SUM ( + 54 ) ) + + + NULLIF ( - 68, - SUM ( ALL + + 7 ) + + COUNT ( * ) ), + 52 AS col0
----
3703
52

onlyif mysql # aggregate syntax: 
query III rowsort label-2163
SELECT + COUNT( * ) AS col0, 46 * - + ( - + COUNT( * ) ) AS col2, ( - + 19 ) AS col0
----
1
46
-19

skipif mysql # not compatible
query III rowsort label-2163
SELECT + COUNT ( * ) AS col0, 46 * - + ( - + COUNT ( * ) ) AS col2, ( - + 19 ) AS col0
----
1
46
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT MAX( DISTINCT - 90 ) * - CAST( + 4 AS SIGNED ) * 19 + 91 + - 9 + - + 30 + + + ( - COUNT( DISTINCT 64 ) ) * - 99 + 43 AS col2
----
7034

skipif mysql # not compatible
query I rowsort label-2164
SELECT MAX ( DISTINCT - 90 ) * - CAST ( + 4 AS INTEGER ) * 19 + 91 + - 9 + - + 30 + + + ( - COUNT ( DISTINCT 64 ) ) * - 99 + 43 AS col2
----
7034

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - CASE ( - + COUNT( - - 40 ) ) WHEN - 27 + + 93 + + 8 + - - 31 * 81 * + 26 * 17 + 97 * 94 * + 75 THEN NULL ELSE - + ( - 67 ) END
----
-67

skipif mysql # not compatible
query I rowsort label-2165
SELECT - CASE ( - + COUNT ( - - 40 ) ) WHEN - 27 + + 93 + + 8 + - - 31 * 81 * + 26 * 17 + 97 * 94 * + 75 THEN NULL ELSE - + ( - 67 ) END
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + 35 * - MAX( DISTINCT + 84 )
----
-2940

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 35 * - MAX ( DISTINCT + 84 )
----
-2940

query I rowsort
SELECT DISTINCT + 62 * + - 88
----
-5456

query II rowsort
SELECT ALL ( - 39 ), 98 * 2 * + + 63 col0
----
-39
12348

query I rowsort
SELECT DISTINCT + 53 * - ( - + 82 )
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + ( - 46 ) * + SUM( ALL 56 ) + - + 70 + + 7 + + 65 * - 97 + 34 + + + 25 * - 22 col1
----
-9460

skipif mysql # not compatible
query I rowsort label-2170
SELECT + ( - 46 ) * + SUM ( ALL 56 ) + - + 70 + + 7 + + 65 * - 97 + 34 + + + 25 * - 22 col1
----
-9460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT 7 - - 3 - + 7 + 25 + 80 * 97 + + + CAST( NULL AS SIGNED ) * + 57 * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT 7 - - 3 - + 7 + 25 + 80 * 97 + + + CAST ( NULL AS INTEGER ) * + 57 * 80 AS col2
----
NULL

query II rowsort
SELECT - 35, + 47 AS col0
----
-35
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT 26 + - 26 AS col0, + 17 DIV + 30
----
0
0

skipif mysql # not compatible
query II rowsort label-2173
SELECT 26 + - 26 AS col0, + 17 / + 30
----
0
0

query I rowsort
SELECT DISTINCT ( + - 71 ) * - - 35 * + 49 * + + 96
----
-11689440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL CAST( NULL AS SIGNED ) * - 42 * + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL CAST ( NULL AS INTEGER ) * - 42 * + 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT 13 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT 13 / - 79 AS col0
----
0

query I rowsort
SELECT ALL - 0 + + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL + NULLIF ( + 13, - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + + 2 ) ) + CASE 84 WHEN - 38 THEN NULL WHEN - 66 THEN - 24 + + CASE 30 WHEN + - 62 * - - 63 + - CAST( NULL AS SIGNED ) - + + 17 THEN + - 35 + + + COUNT( * ) * + 93 END ELSE NULL END + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + NULLIF ( + 13, - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + 2 ) ) + CASE 84 WHEN - 38 THEN NULL WHEN - 66 THEN - 24 + + CASE 30 WHEN + - 62 * - - 63 + - CAST ( NULL AS INTEGER ) - + + 17 THEN + - 35 + + + COUNT ( * ) * + 93 END ELSE NULL END + + 80
----
NULL

query I rowsort
SELECT ALL 80 + + - 19 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT - - 38, + MAX( ALL + 86 ) AS col2
----
38
86

skipif mysql # not compatible
query II rowsort label-2180
SELECT - - 38, + MAX ( ALL + 86 ) AS col2
----
38
86

query I rowsort
SELECT ALL - ( - - 60 ) * 23 AS col2
----
-1380

query I rowsort
SELECT - ( - 42 ) + + 66
----
108

query I rowsort
SELECT 15 * - 29 + + + 33 col1
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT - CAST( + 10 AS SIGNED ) * + NULLIF ( - COALESCE ( + + CASE - 11 WHEN + 20 * - 32 / - + 41 + + COUNT( * ) - + 48 - 35 THEN - 42 WHEN + 48 THEN COALESCE ( - 14, 15 * MAX( - 55 ) * 63 ) END, MAX( ALL - 76 ) + - - COUNT( * ), - + 73 ), + COALESCE ( + 85, + 83 / - 45 + 18 * + 77 ) - NULLIF ( 11, 59 ) ) + 88 + - 39
----
-701

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( + 10 AS INTEGER ) * + NULLIF ( - COALESCE ( + + CASE - 11 WHEN + 20 * - 32 / - + 41 + + COUNT ( * ) - + 48 - 35 THEN - 42 WHEN + 48 THEN COALESCE ( - 14, 15 * MAX ( - 55 ) * 63 ) END, MAX ( ALL - 76 ) + - - COUNT ( * ), - + 73 ), + COALESCE ( + 85, + 83 / - 45 + 18 * + 77 ) - NULLIF ( 11, 59 ) ) + 88 + - 39
----
-701

query II rowsort
SELECT + 83 AS col2, + 25
----
83
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT - + 97 DIV - 62 + + + 80
----
81

skipif mysql # not compatible
query I rowsort label-2186
SELECT - + 97 / - 62 + + + 80
----
81

query I rowsort
SELECT + 62 * 19 * 96 - 11 - 81
----
112996

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - MIN( DISTINCT 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - MIN ( DISTINCT 23 ) AS col0
----
-23

query I rowsort
SELECT + 11 + - 27 * - + 85 AS col0
----
2306

query II rowsort
SELECT DISTINCT - 15 AS col1, + 86 AS col2
----
-15
86

query I rowsort
SELECT 17 + - 96 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT COUNT( * ) * + 44 + - COALESCE ( + 99, - 87 ) + + 36 + - ( 91 ) DIV - 14 - + 44 col2
----
-57

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT COUNT ( * ) * + 44 + - COALESCE ( + 99, - 87 ) + + 36 + - ( 91 ) / - 14 - + 44 col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT COUNT( ( - NULLIF ( + 14, - 64 + CAST( 86 AS SIGNED ) ) ) ) * + + ( - - 7 ) + - - 29 * + 8 * COUNT( * ) + COUNT( * ) AS col0
----
240

skipif mysql # not compatible
query I rowsort label-2193
SELECT COUNT ( ( - NULLIF ( + 14, - 64 + CAST ( 86 AS INTEGER ) ) ) ) * + + ( - - 7 ) + - - 29 * + 8 * COUNT ( * ) + COUNT ( * ) AS col0
----
240

query II rowsort
SELECT DISTINCT - - 86 col2, - 6 + + 88 AS col1
----
86
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT COUNT( DISTINCT - 7 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT COUNT ( DISTINCT - 7 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 56 + MAX( - 86 )
----
-30

skipif mysql # not compatible
query I rowsort label-2196
SELECT 56 + MAX ( - 86 )
----
-30

query I rowsort
SELECT DISTINCT 48 - - - 58 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT 88 * + CASE - 57 WHEN - NULLIF ( + - AVG ( - 23 ), COUNT( * ) * + 58 ) THEN + 59 WHEN + 65 * 1 THEN NULL ELSE NULL END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT 88 * + CASE - 57 WHEN - NULLIF ( + - AVG ( - 23 ), COUNT ( * ) * + 58 ) THEN + 59 WHEN + 65 * 1 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 91 * - + ( 18 ) * + - 47 AS col0
----
76986

query I rowsort
SELECT ( 49 ) * + 3
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT ALL + COUNT( * ) * - 36 AS col0, - COUNT( * ) AS col1
----
-36
-1

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL + COUNT ( * ) * - 36 AS col0, - COUNT ( * ) AS col1
----
-36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 4 + + COUNT( * ) * - + 30
----
-26

skipif mysql # not compatible
query I rowsort label-2202
SELECT 4 + + COUNT ( * ) * - + 30
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT DISTINCT + ( 87 ) + + 93 col1, COUNT( * ) + 27 AS col2
----
180
28

skipif mysql # not compatible
query II rowsort label-2203
SELECT DISTINCT + ( 87 ) + + 93 col1, COUNT ( * ) + 27 AS col2
----
180
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2204
SELECT 16 * + - 45, 78 + - 15 + - CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 46 ) * + 40 / + 48 + - - CASE 16 WHEN + + 56 * + - 91 * + ( 76 ) THEN + COUNT( * ) ELSE NULL END / - 88 + - 80 AS col0
----
-720
NULL

skipif mysql # not compatible
query II rowsort label-2204
SELECT 16 * + - 45, 78 + - 15 + - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 46 ) * + 40 / + 48 + - - CASE 16 WHEN + + 56 * + - 91 * + ( 76 ) THEN + COUNT ( * ) ELSE NULL END / - 88 + - 80 AS col0
----
-720
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL + 4 * - COUNT( * ) * - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL + 4 * - COUNT ( * ) * - COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2206
SELECT ALL + CAST( NULL AS DECIMAL ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + CAST ( NULL AS REAL ) + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( DISTINCT 85 ) + - - 84
----
83

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( DISTINCT 85 ) + - - 84
----
83

query I rowsort
SELECT 42 * - 5 AS col0
----
-210

query I rowsort
SELECT 83 + - 70 + 2
----
15

query I rowsort
SELECT ALL - - 14 + - 84
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT ALL - - 39 * 40 DIV - + 52
----
-30

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - - 39 * 40 / - + 52
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - 51 + - + COUNT( * ) + + 61 - + 37 * + + 78 + - 65 + - 46
----
-2988

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 51 + - + COUNT ( * ) + + 61 - + 37 * + + 78 + - 65 + - 46
----
-2988

query I rowsort
SELECT DISTINCT - 26 * + + 28 * + 59 + + 86
----
-42866

query I rowsort
SELECT ALL COALESCE ( 84, 68 * - 62 ) - + 54
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT - - ( - SUM( DISTINCT - - 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - - ( - SUM ( DISTINCT - - 3 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT - 17 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT - 17 / - - 87 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT - COUNT( * ) DIV + + CASE + + 81 WHEN + 71 THEN NULL ELSE 95 * + 95 + - SUM( - 92 ) * 33 END
----
0

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) / + + CASE + + 81 WHEN + 71 THEN NULL ELSE 95 * + 95 + - SUM ( - 92 ) * 33 END
----
0

query I rowsort
SELECT 81 * + + 57 - 97 AS col0
----
4520

query I rowsort
SELECT ( - 13 ) - 30 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + COUNT( ALL + - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-2220
SELECT + COUNT ( ALL + - 60 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT ALL CAST( NULL AS SIGNED ) * - 57 * 59 / + 73 + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 * 59 / + 73 + 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT + 59 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT + 59 / - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT 86 * - COUNT( * ) + ( + COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT 86 * - COUNT ( * ) + ( + COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT MAX( DISTINCT + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2224
SELECT MAX ( DISTINCT + 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT COUNT( * ) AS col2, - 14 AS col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-2225
SELECT COUNT ( * ) AS col2, - 14 AS col2
----
1
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT - 29 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 29 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( * ) * - COUNT( * ) * 46 + - 98
----
-144

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( * ) * - COUNT ( * ) * 46 + - 98
----
-144

query II rowsort
SELECT ALL + 68 AS col1, - ( 41 ) AS col0
----
68
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT ALL ( - 85 ) + - NULLIF ( + 64, + CAST( + + ( + + 67 ) AS SIGNED ) ) * + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL ( - 85 ) + - NULLIF ( + 64, + CAST ( + + ( + + 67 ) AS INTEGER ) ) * + + COUNT ( * )
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT + 17 + 76 DIV - 45
----
16

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 17 + 76 / - 45
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT - 98 * + CAST( NULL AS SIGNED ) - NULLIF ( 81, + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - 98 * + CAST ( NULL AS INTEGER ) - NULLIF ( 81, + 23 )
----
NULL

query II rowsort
SELECT DISTINCT 37, + ( 10 ) AS col0
----
37
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL - 45 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - 45 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2234
SELECT ALL 43 AS col1, + COUNT( * ) * + 66 DIV - 68 * + + COUNT( * ) + - 10
----
43
-10

skipif mysql # not compatible
query II rowsort label-2234
SELECT ALL 43 AS col1, + COUNT ( * ) * + 66 / - 68 * + + COUNT ( * ) + - 10
----
43
-10

query II rowsort
SELECT - 96, 8 + 80 AS col0
----
-96
88

query I rowsort
SELECT DISTINCT 10 - - - 52
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - 39 + - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2237
SELECT - 39 + - COUNT ( * ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT ALL - SUM( 87 ) - + + 49 DIV 50
----
-87

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - SUM ( 87 ) - + + 49 / 50
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - NULLIF ( - 71, MAX( + 26 ) + - 25 )
----
71

skipif mysql # not compatible
query I rowsort label-2239
SELECT - NULLIF ( - 71, MAX ( + 26 ) + - 25 )
----
71

query I rowsort
SELECT - ( - 54 ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - - COUNT( * ) + + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - COUNT ( * ) + + 66 AS col2
----
67

query II rowsort
SELECT DISTINCT 1 AS col2, + NULLIF ( - 87, + - 50 ) AS col1
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT - SUM( ALL COALESCE ( + 92, + 76 ) ) * + 83 * - 45 AS col0
----
343620

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - SUM ( ALL COALESCE ( + 92, + 76 ) ) * + 83 * - 45 AS col0
----
343620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT - + COALESCE ( CAST( NULL AS SIGNED ), 47 + - + CAST( 59 AS SIGNED ) ) * + - 88 AS col2
----
-1056

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - + COALESCE ( CAST ( NULL AS INTEGER ), 47 + - + CAST ( 59 AS INTEGER ) ) * + - 88 AS col2
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT - COALESCE ( + COUNT( * ), - 94, + 69 * COUNT( ( 6 ) ) + - ( - - COUNT( + 37 ) ) ) * - + 47 + 5 + COUNT( * ) DIV COALESCE ( 79, + 17 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2245
SELECT - COALESCE ( + COUNT ( * ), - 94, + 69 * COUNT ( ( 6 ) ) + - ( - - COUNT ( + 37 ) ) ) * - + 47 + 5 + COUNT ( * ) / COALESCE ( 79, + 17 ) AS col2
----
52

query II rowsort
SELECT - 20 + + - 27 * + + 81 col0, + ( - 64 )
----
-2207
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MIN( 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2247
SELECT MIN ( 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - - NULLIF ( + - 14, - 75 + - COUNT( ALL - 67 ) - - COUNT( * ) * 31 )
----
-14

skipif mysql # not compatible
query I rowsort label-2248
SELECT - - NULLIF ( + - 14, - 75 + - COUNT ( ALL - 67 ) - - COUNT ( * ) * 31 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT - - MAX( - + 50 ) DIV ( - 91 ) * 71
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - MAX ( - + 50 ) / ( - 91 ) * 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - - MAX( ALL + 5 ) * + 83 * - - 72 AS col1
----
29880

skipif mysql # not compatible
query I rowsort label-2250
SELECT - - MAX ( ALL + 5 ) * + 83 * - - 72 AS col1
----
29880

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - + 1 * - 6 * - - 50 - + COUNT( * ) AS col1
----
299

skipif mysql # not compatible
query I rowsort label-2251
SELECT - + 1 * - 6 * - - 50 - + COUNT ( * ) AS col1
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL - ( - 94 ) DIV - 5 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - ( - 94 ) / - 5 AS col2
----
-18

query I rowsort
SELECT - 9 + - 13 AS col0
----
-22

query I rowsort
SELECT ALL ( - - 49 ) * - NULLIF ( + + 70, - 94 - + 61 ) * - 46 AS col1
----
157780

query I rowsort
SELECT - 22 * - 16
----
352

query I rowsort
SELECT ALL + 87 * 81 + 76 + - 25
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT NULLIF ( - - 0, 70 ) * - 41 + + MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT NULLIF ( - - 0, 70 ) * - 41 + + MAX ( 71 )
----
71

query I rowsort
SELECT ALL + 60 * + + 14 + 28 AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - 70 * + + 94 + - COUNT( * ) col0
----
-6581

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 70 * + + 94 + - COUNT ( * ) col0
----
-6581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT - 47 * + CAST( NULL AS SIGNED ) / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 47 * + CAST ( NULL AS INTEGER ) / - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT + COUNT( + 55 ), - ( + 3 ) + + - 79 * 83 col1
----
1
-6560

skipif mysql # not compatible
query II rowsort label-2261
SELECT + COUNT ( + 55 ), - ( + 3 ) + + - 79 * 83 col1
----
1
-6560

query I rowsort
SELECT + 17 * 80 AS col1
----
1360

query I rowsort
SELECT + 23 + + + 1 AS col1
----
24

query I rowsort
SELECT + NULLIF ( 23, + 47 - - - 55 * + 68 * + 81 * 50 + - 18 * - 82 ) col0
----
23

query I rowsort
SELECT CASE 14 WHEN 15 THEN NULL WHEN + + 69 THEN 45 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT - 72 * - - MIN( ALL - 52 ) - + CASE + 54 WHEN + - 97 THEN - + 19 ELSE NULL END + - 19 + + 27 * - 88 + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - 72 * - - MIN ( ALL - 52 ) - + CASE + 54 WHEN + - 97 THEN - + 19 ELSE NULL END + - 19 + + 27 * - 88 + - 32 AS col0
----
NULL

query II rowsort
SELECT ALL 98 * - 43 AS col0, + 28
----
-4214
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT MIN( 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2268
SELECT MIN ( 60 ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + 50 + - COUNT( * ) + - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 50 + - COUNT ( * ) + - - COUNT ( * )
----
50

query I rowsort
SELECT + 63 * - 27 * - + 35
----
59535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT + - COUNT( - 16 ) DIV - + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT + - COUNT ( - 16 ) / - + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2273
SELECT ALL + - 72 * + + 98 AS col1, + ( + - COUNT( * ) ) * + 56
----
-7056
-56

skipif mysql # not compatible
query II rowsort label-2273
SELECT ALL + - 72 * + + 98 AS col1, + ( + - COUNT ( * ) ) * + 56
----
-7056
-56

query I rowsort
SELECT - + ( - 75 ) + 44 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT 69 DIV + 33 + + 18 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT 69 / + 33 + + 18 AS col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-2276
SELECT DISTINCT 78 DIV - 72 col1, + 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-2276
SELECT DISTINCT 78 / - 72 col1, + 10 AS col0
----
-1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + MAX( ALL + 33 ) * - - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2277
SELECT + MAX ( ALL + 33 ) * - - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - CASE - 87 WHEN 12 THEN 24 WHEN - COUNT( * ) THEN 18 ELSE NULL END + + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - CASE - 87 WHEN 12 THEN 24 WHEN - COUNT ( * ) THEN 18 ELSE NULL END + + + 18 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 + + + ( + 42 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ( - + ( + NULLIF ( 99, + + ( + + COUNT( * ) ) ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-2280
SELECT ( - + ( + NULLIF ( 99, + + ( + + COUNT ( * ) ) ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL - COUNT( * ) + 20 - - 33 col1
----
52

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - COUNT ( * ) + 20 - - 33 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - 35 + + + 6 + - COUNT( - 58 ) * - 1
----
-28

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - 35 + + + 6 + - COUNT ( - 58 ) * - 1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2283
SELECT + COUNT( * ) * + - 3 DIV - 81 * - - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED ) - - ( + - 96 ) * + 61 * - 50 - - 91 + + 27
----
292918

skipif mysql # not compatible
query I rowsort label-2283
SELECT + COUNT ( * ) * + - 3 / - 81 * - - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) - - ( + - 96 ) * + 61 * - 50 - - 91 + + 27
----
292918

query I rowsort
SELECT ALL - 17 + 62 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 7 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT 7 / 74
----
0

query I rowsort
SELECT ALL + 45 * - + 17
----
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT + 72 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT + 72 / - 53
----
-1

query I rowsort
SELECT DISTINCT - 0 - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL + ( - COUNT( * ) ) * + + 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + ( - COUNT ( * ) ) * + + 75 AS col2
----
-75

query I rowsort
SELECT 32 + 33
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT MAX( ALL - + 86 ) * + 87 + + + NULLIF ( - COUNT( * ), 24 ) AS col0
----
-7483

skipif mysql # not compatible
query I rowsort label-2291
SELECT MAX ( ALL - + 86 ) * + 87 + + + NULLIF ( - COUNT ( * ), 24 ) AS col0
----
-7483

query I rowsort
SELECT - 52 + 87 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 61 * - - MIN( 56 ) AS col0
----
3416

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 61 * - - MIN ( 56 ) AS col0
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL COUNT( * ) * - - 32
----
32

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL COUNT ( * ) * - - 32
----
32

query I rowsort
SELECT ALL - 47 * - 6
----
282

query I rowsort
SELECT + 88 + - + 25 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL CASE - NULLIF ( - - MAX( ALL + CASE 22 WHEN + 75 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 57 END ), 29 ) WHEN + 19 THEN + 59 END * 51 * + + CASE + - 21 WHEN - 31 THEN 94 / + - 93 END * - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL CASE - NULLIF ( - - MAX ( ALL + CASE 22 WHEN + 75 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 57 END ), 29 ) WHEN + 19 THEN + 59 END * 51 * + + CASE + - 21 WHEN - 31 THEN 94 / + - 93 END * - - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2298
SELECT - 27 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 27 * CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 84 * - 22 * + + 26 AS col0, - 59 * - 2
----
-48048
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT ALL - ( 14 ) + - 74 + SUM( DISTINCT 98 ) AS col1, + 92 AS col0
----
10
92

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL - ( 14 ) + - 74 + SUM ( DISTINCT 98 ) AS col1, + 92 AS col0
----
10
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT COUNT( * ) + 18 + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-2301
SELECT COUNT ( * ) + 18 + - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT - 76 AS col1, 99 - + - 4 - MIN( + - 14 )
----
-76
117

skipif mysql # not compatible
query II rowsort label-2302
SELECT - 76 AS col1, 99 - + - 4 - MIN ( + - 14 )
----
-76
117

query I rowsort
SELECT DISTINCT - 53 + - + 25 AS col0
----
-78

query I rowsort
SELECT DISTINCT 42 * - ( + 15 ) AS col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL + 84 + + MAX( ALL 3 ) + - + 99 * + 74 * 54 * + - COALESCE ( - 82, - 26, 58 ) col1
----
-32439441

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + 84 + + MAX ( ALL 3 ) + - + 99 * + 74 * 54 * + - COALESCE ( - 82, - 26, 58 ) col1
----
-32439441

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL + COUNT( * ) + - - 12 * - 51 + 40 - + 70 + - 77 + + 80
----
-638

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + COUNT ( * ) + - - 12 * - 51 + 40 - + 70 + - 77 + + 80
----
-638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - - CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2307
SELECT - - CAST ( - 83 AS INTEGER ) AS col0
----
-83

query I rowsort
SELECT ALL + 4 + - 49 col1
----
-45

query I rowsort
SELECT 32 + + 70
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT - 27 / - CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 71 THEN 10 / - 36 + + - COUNT( * ) - + + 73 * + COUNT( * ) - COALESCE ( - COUNT( - + ( + + 40 ) ), + 61 + - - 51, + CASE CAST( NULL AS SIGNED ) WHEN + 22 THEN + 20 * 55 + + COUNT( * ) / 18 * + - 7 + + 44 * - + 65 WHEN + 8 - - 13 * + 37 THEN 3 + - 28 END, - 50 ) ELSE NULL END + - SUM( + 11 ) / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 27 / - CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 71 THEN 10 / - 36 + + - COUNT ( * ) - + + 73 * + COUNT ( * ) - COALESCE ( - COUNT ( - + ( + + 40 ) ), + 61 + - - 51, + CASE CAST ( NULL AS INTEGER ) WHEN + 22 THEN + 20 * 55 + + COUNT ( * ) / 18 * + - 7 + + 44 * - + 65 WHEN + 8 - - 13 * + 37 THEN 3 + - 28 END, - 50 ) ELSE NULL END + - SUM ( + 11 ) / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 96 + - 71 AS col0
----
25

query I rowsort
SELECT 88 + + 18 + 43
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT + 58 AS col0, COUNT( * ) - + 72 + - - 79 * - - COUNT( * ) + - 55
----
58
-47

skipif mysql # not compatible
query II rowsort label-2313
SELECT + 58 AS col0, COUNT ( * ) - + 72 + - - 79 * - - COUNT ( * ) + - 55
----
58
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT COUNT( * ) AS col0, + ( 88 ) + - 62 + + COUNT( * ) AS col1
----
1
27

skipif mysql # not compatible
query II rowsort label-2314
SELECT COUNT ( * ) AS col0, + ( 88 ) + - 62 + + COUNT ( * ) AS col1
----
1
27

query I rowsort
SELECT 33 - - - 66 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 86 / + - 82 / + ( - COUNT( * ) ) + + + 32 / - 27 + + CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + - 79 * - 61 WHEN 64 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT 86 / + - 82 / + ( - COUNT ( * ) ) + + + 32 / - 27 + + CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 79 * - 61 WHEN 64 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL + CAST( + - 19 AS SIGNED ) * + 46 + - - 69
----
-805

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + CAST ( + - 19 AS INTEGER ) * + 46 + - - 69
----
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT ( 71 ) + + + CAST( + COALESCE ( - 73, - COUNT( * ), - COUNT( * ) ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2318
SELECT ( 71 ) + + + CAST ( + COALESCE ( - 73, - COUNT ( * ), - COUNT ( * ) ) AS INTEGER ) col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT ALL COUNT( * ) * + + 38 AS col0, - COUNT( * ) - + 15
----
38
-16

skipif mysql # not compatible
query II rowsort label-2319
SELECT ALL COUNT ( * ) * + + 38 AS col0, - COUNT ( * ) - + 15
----
38
-16

query I rowsort
SELECT DISTINCT 58 - 94 + - + 21 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT COALESCE ( + 53, + + COUNT( * ) * - COUNT( + 35 ) - COUNT( * ) * + 98 ) - + CAST( + COUNT( * ) AS SIGNED ) + + - 69 + + 46 DIV - + 76 * - 29 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT COALESCE ( + 53, + + COUNT ( * ) * - COUNT ( + 35 ) - COUNT ( * ) * + 98 ) - + CAST ( + COUNT ( * ) AS INTEGER ) + + - 69 + + 46 / - + 76 * - 29 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL - MIN( DISTINCT + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - MIN ( DISTINCT + 55 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - NULLIF ( + 36, COALESCE ( + 76, - - 38 * + 15 + 36 + + CAST( - 88 AS SIGNED ) * - 27 ) ) * 65 * 86 + ( + 37 )
----
-201203

skipif mysql # not compatible
query I rowsort label-2323
SELECT - NULLIF ( + 36, COALESCE ( + 76, - - 38 * + 15 + 36 + + CAST ( - 88 AS INTEGER ) * - 27 ) ) * 65 * 86 + ( + 37 )
----
-201203

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT MAX( + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2324
SELECT MAX ( + 71 ) AS col2
----
71

query II rowsort
SELECT ALL - 87, - 2 * 51 AS col0
----
-87
-102

query I rowsort
SELECT 51 * + + 89 * - 43 AS col2
----
-195177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT ALL - CAST( NULL AS DECIMAL ) / + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - CAST ( NULL AS REAL ) / + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - MIN( DISTINCT - 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - MIN ( DISTINCT - 38 ) AS col0
----
38

query II rowsort
SELECT ALL - 32 AS col1, + 65 AS col2
----
-32
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT DISTINCT - - 38 + + + 52, + 40 * - + 32 * + - COUNT( * ) AS col1
----
90
1280

skipif mysql # not compatible
query II rowsort label-2330
SELECT DISTINCT - - 38 + + + 52, + 40 * - + 32 * + - COUNT ( * ) AS col1
----
90
1280

query I rowsort
SELECT - ( - + 43 ) * ( + 90 ) + - 1 AS col1
----
3869

query I rowsort
SELECT 22 * + 17 AS col1
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - - ( 75 ), - 11 ) + - COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - - ( 75 ), - 11 ) + - COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - CASE - + 16 WHEN - 98 THEN NULL WHEN 21 THEN NULL ELSE - + CASE - MIN( + 65 ) WHEN - - 30 + - 26 THEN + COUNT( * ) - - + 47 * - - 74 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - CASE - + 16 WHEN - 98 THEN NULL WHEN 21 THEN NULL ELSE - + CASE - MIN ( + 65 ) WHEN - - 30 + - 26 THEN + COUNT ( * ) - - + 47 * - - 74 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT - COUNT( DISTINCT + 28 ) AS col0, - 16
----
-1
-16

skipif mysql # not compatible
query II rowsort label-2335
SELECT - COUNT ( DISTINCT + 28 ) AS col0, - 16
----
-1
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2336
SELECT 1 - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT 1 - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - + 96 + 97 + + 19 * + COUNT( * ) - + + 56 * + 74 AS col2
----
-4124

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - + 96 + 97 + + 19 * + COUNT ( * ) - + + 56 * + 74 AS col2
----
-4124

query II rowsort
SELECT - 4 AS col0, 22 col1
----
-4
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL + 13 + - 78 + + CAST( NULL AS SIGNED ) * - ( - 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 13 + - 78 + + CAST ( NULL AS INTEGER ) * - ( - 34 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2340
SELECT DISTINCT 49 AS col2, + 23 + + COUNT( ALL + CAST( + 2 AS SIGNED ) )
----
49
24

skipif mysql # not compatible
query II rowsort label-2340
SELECT DISTINCT 49 AS col2, + 23 + + COUNT ( ALL + CAST ( + 2 AS INTEGER ) )
----
49
24

query I rowsort
SELECT ALL 14 + + 71 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL 19 + - 66 + ( COUNT( * ) ) * + 82 * + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 19 + - 66 + ( COUNT ( * ) ) * + 82 * + COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2343
SELECT 14, ( - ( 88 ) ) - + NULLIF ( - 23, - 21 * + - 16 * + 81 - - 43 + + 53 * COUNT( * ) ) DIV - 62 AS col0
----
14
-88

skipif mysql # not compatible
query II rowsort label-2343
SELECT 14, ( - ( 88 ) ) - + NULLIF ( - 23, - 21 * + - 16 * + 81 - - 43 + + 53 * COUNT ( * ) ) / - 62 AS col0
----
14
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT ALL + 14 AS col0, 24 + + COUNT( * ) - COUNT( + 58 ) * - 57
----
14
82

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL + 14 AS col0, 24 + + COUNT ( * ) - COUNT ( + 58 ) * - 57
----
14
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + - 52 + + 89 + + - COUNT( + 74 ) + + 65 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2345
SELECT + - 52 + + 89 + + - COUNT ( + 74 ) + + 65 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT + 2 - + + ( - 61 ) * - 91 - - + CAST( NULL AS SIGNED ) * - COALESCE ( - CASE + CAST( NULL AS SIGNED ) WHEN - + 30 THEN ( + + 68 ) / - 1 WHEN - 87 THEN NULL WHEN - + 83 THEN NULL END, + 21, CASE - - 0 WHEN + - 48 THEN 18 WHEN 32 THEN NULL WHEN + + 24 + - + 99 THEN - 6 / ( - AVG ( ALL - - 82 ) ) / - 53 END ) + - + AVG ( DISTINCT + 74 ) / NULLIF ( + - COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 2 ), + 29 + + COUNT( * ) ) * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 2 - + + ( - 61 ) * - 91 - - + CAST ( NULL AS INTEGER ) * - COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN - + 30 THEN ( + + 68 ) / - 1 WHEN - 87 THEN NULL WHEN - + 83 THEN NULL END, + 21, CASE - - 0 WHEN + - 48 THEN 18 WHEN 32 THEN NULL WHEN + + 24 + - + 99 THEN - 6 / ( - AVG ( ALL - - 82 ) ) / - 53 END ) + - + AVG ( DISTINCT + 74 ) / NULLIF ( + - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 2 ), + 29 + + COUNT ( * ) ) * - 75 AS col1
----
NULL

query I rowsort
SELECT + + 78 + + 54
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL - CAST( 44 AS SIGNED ) + - - 59
----
15

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - CAST ( 44 AS INTEGER ) + - - 59
----
15

query I rowsort
SELECT ALL 85 + + 78 + + 58 + ( + 25 ) AS col1
----
246

query I rowsort
SELECT ALL + 17 - - 92 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + COUNT( ALL 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + COUNT ( ALL 80 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + CASE - 50 WHEN CAST( NULL AS SIGNED ) + + 13 THEN - COUNT( * ) + - ( - + 25 ) * - 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT + CASE - 50 WHEN CAST ( NULL AS INTEGER ) + + 13 THEN - COUNT ( * ) + - ( - + 25 ) * - 5 ELSE NULL END
----
NULL

query I rowsort
SELECT + 46 * - - 69 AS col2
----
3174

query I rowsort
SELECT + 58 * - 80 * + - 43
----
199520

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ( + - MAX( ALL - 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2355
SELECT ( + - MAX ( ALL - 88 ) ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT - 82 DIV - + 34 - 13 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 82 / - + 34 - 13 AS col1
----
-11

query I rowsort
SELECT - 16 * - 85 * - + 22 col0
----
-29920

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + 28 - - + 34 * - 68 * - SUM( + ( - 5 ) ) - - 18 - + - 20 * CASE COUNT( * ) WHEN 47 THEN - 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 28 - - + 34 * - 68 * - SUM ( + ( - 5 ) ) - - 18 - + - 20 * CASE COUNT ( * ) WHEN 47 THEN - 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT CASE + COUNT( * ) WHEN - ( - 65 ) THEN 85 * - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT CASE + COUNT ( * ) WHEN - ( - 65 ) THEN 85 * - 89 END AS col0
----
NULL

query II rowsort
SELECT + ( 60 ) AS col2, 3 + - 13 AS col2
----
60
-10

query I rowsort
SELECT + 57 * - - 46
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - CASE + 36 WHEN + 49 + + + 26 * + 86 * 50 + - 71 + - - MIN( DISTINCT 52 ) THEN + 4 + + COUNT( * ) WHEN - 7 THEN + - 99 * - - 62 - 88 END - - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - CASE + 36 WHEN + 49 + + + 26 * + 86 * 50 + - 71 + - - MIN ( DISTINCT 52 ) THEN + 4 + + COUNT ( * ) WHEN - 7 THEN + - 99 * - - 62 - 88 END - - 82 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) * + 22 + + 90
----
68

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) * + 22 + + 90
----
68

query I rowsort
SELECT ALL - 78 * + 57 + + 44
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + COUNT( DISTINCT 99 )
----
1

skipif mysql # not compatible
query I rowsort label-2365
SELECT + COUNT ( DISTINCT 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT 56 * - CASE - 37 WHEN 20 THEN - + COUNT( * ) ELSE NULL END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT 56 * - CASE - 37 WHEN 20 THEN - + COUNT ( * ) ELSE NULL END + + 23
----
NULL

query I rowsort
SELECT + + 99 * + + 11 + 35 AS col0
----
1124

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT - 26 DIV + 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 26 / + 20 AS col2
----
-1

query I rowsort
SELECT ALL - + 10 + + 14 AS col0
----
4

query I rowsort
SELECT - 73 * - - 11 * 65 AS col0
----
-52195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2371
SELECT ALL - + SUM( 62 ) * - CASE - 96 WHEN 18 + - COUNT( * ) / 85 THEN + - 93 * - CAST( NULL AS DECIMAL ) * - 76 ELSE NULL END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - + SUM ( 62 ) * - CASE - 96 WHEN 18 + - COUNT ( * ) / 85 THEN + - 93 * - CAST ( NULL AS REAL ) * - 76 ELSE NULL END * 16
----
NULL

query I rowsort
SELECT - 17 * - 86
----
1462

query I rowsort
SELECT - 86 + 46
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL - + COUNT( * ) - + 90 - + 83
----
-174

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - + COUNT ( * ) - + 90 - + 83
----
-174

query I rowsort
SELECT - + 37 * - 85 AS col1
----
3145

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT - + 32 * - 94 * + CASE + - 80 WHEN - - 57 + - + COUNT( * ) THEN - 22 WHEN COUNT( * ) THEN 56 / + 11 END, COUNT( * ) * - COUNT( * ) * + 0 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2376
SELECT - + 32 * - 94 * + CASE + - 80 WHEN - - 57 + - + COUNT ( * ) THEN - 22 WHEN COUNT ( * ) THEN 56 / + 11 END, COUNT ( * ) * - COUNT ( * ) * + 0 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT - - MAX( ALL 67 ) * - 77 AS col0, 42
----
-5159
42

skipif mysql # not compatible
query II rowsort label-2377
SELECT - - MAX ( ALL 67 ) * - 77 AS col0, 42
----
-5159
42

query I rowsort
SELECT - ( + 24 ) + + + 7 AS col0
----
-17

query I rowsort
SELECT ALL - - 89 * + ( + + 64 ) AS col2
----
5696

query I rowsort
SELECT ALL ( - + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT - 88 - + - 81 * ( - ( + - MIN( 68 ) ) ) col0
----
5420

skipif mysql # not compatible
query I rowsort label-2381
SELECT - 88 - + - 81 * ( - ( + - MIN ( 68 ) ) ) col0
----
5420

query I rowsort
SELECT DISTINCT - 41 * + 71 * + + 34 AS col0
----
-98974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL CAST( CAST( - 46 AS SIGNED ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL CAST ( CAST ( - 46 AS INTEGER ) AS INTEGER )
----
-46

query I rowsort
SELECT + 40 * + 30
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL 46 * - ( + + 31 ) * - 53 * + COUNT( * ) + 6
----
75584

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL 46 * - ( + + 31 ) * - 53 * + COUNT ( * ) + 6
----
75584

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - 52 + + COUNT( + 74 ) + - COUNT( DISTINCT 29 ) + + 82
----
30

skipif mysql # not compatible
query I rowsort label-2386
SELECT - 52 + + COUNT ( + 74 ) + - COUNT ( DISTINCT 29 ) + + 82
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT + MAX( - + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2387
SELECT + MAX ( - + 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + COALESCE ( - COUNT( * ), + 5 + - 3, - + 51, - - COUNT( * ) ) - + COUNT( * ) + - NULLIF ( 78, + 33 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2388
SELECT + COALESCE ( - COUNT ( * ), + 5 + - 3, - + 51, - - COUNT ( * ) ) - + COUNT ( * ) + - NULLIF ( 78, + 33 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - 23 * COUNT( * ) * + 32 AS col1
----
-736

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - 23 * COUNT ( * ) * + 32 AS col1
----
-736

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT DISTINCT + MIN( + + ( + 60 ) ), + 94 AS col1
----
60
94

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT + MIN ( + + ( + 60 ) ), + 94 AS col1
----
60
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 86 * + - NULLIF ( + CAST( 3 AS SIGNED ), + + 67 * + 25 + + - 13 ) * 63 - - 40 DIV + 71
----
-16254

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 86 * + - NULLIF ( + CAST ( 3 AS INTEGER ), + + 67 * + 25 + + - 13 ) * 63 - - 40 / + 71
----
-16254

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2392
SELECT CAST( NULL AS SIGNED ), 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2392
SELECT CAST ( NULL AS INTEGER ), 1 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT SUM( + 28 ) * - - 52 + + SUM( 18 ) - - 70 AS col2, 56 * 19 col1
----
1544
1064

skipif mysql # not compatible
query II rowsort label-2393
SELECT SUM ( + 28 ) * - - 52 + + SUM ( 18 ) - - 70 AS col2, 56 * 19 col1
----
1544
1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT + 21 DIV 67 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 21 / 67 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT + + 54 + + - CASE + - ( + 18 ) WHEN - 11 THEN NULL WHEN + 5 * - 51 + + 11 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + + 54 + + - CASE + - ( + 18 ) WHEN - 11 THEN NULL WHEN + 5 * - 51 + + 11 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * - 56 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2396
SELECT + CAST( + - SUM( DISTINCT - 19 ) AS SIGNED ) * + 27, 12 DIV - - 4 AS col1, - COUNT( * ) AS col2
----
513
3
-1

skipif mysql # not compatible
query III rowsort label-2396
SELECT + CAST ( + - SUM ( DISTINCT - 19 ) AS INTEGER ) * + 27, 12 / - - 4 AS col1, - COUNT ( * ) AS col2
----
513
3
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2397
SELECT 26, COUNT( * ) DIV 83 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-2397
SELECT 26, COUNT ( * ) / 83 AS col0
----
26
0

query I rowsort
SELECT ALL 47 * - 87 AS col2
----
-4089

query II rowsort
SELECT ALL - 41 col0, 90 AS col0
----
-41
90

query II rowsort
SELECT + + 84, 50 * - 35 AS col0
----
84
-1750

query I rowsort
SELECT ALL 91 + 74 + - + 57 * + 39 * + 34
----
-75417

query I rowsort
SELECT ALL + 97 * 89
----
8633

query I rowsort
SELECT - 66 + - 73 + - 24 * - 79
----
1757

query I rowsort
SELECT DISTINCT NULLIF ( + + 57, + 47 ) - + 19
----
38

query I rowsort
SELECT 41 * - 62 AS col1
----
-2542

query I rowsort
SELECT - 80 + - + 22 AS col1
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT ALL - 72 - + 58 + 93 * + 40 + COUNT( * ) DIV 65 * 69 - + 71 AS col2
----
3519

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - 72 - + 58 + 93 * + 40 + COUNT ( * ) / 65 * 69 - + 71 AS col2
----
3519

query I rowsort
SELECT - 32 + + - 43 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT - COUNT( * ) - - + 60 DIV 99 * + 24
----
-1

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( * ) - - + 60 / 99 * + 24
----
-1

query I rowsort
SELECT - 7 * + 55 AS col1
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL - 81 DIV - - 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - 81 / - - 42 AS col2
----
-1

query I rowsort
SELECT - + 22 * NULLIF ( - + 78, + - AVG ( DISTINCT - 20 ) ) - + 22 - + 2
----
1692

query I rowsort
SELECT ALL 20 - - - 41
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2414
SELECT - - COUNT( * ) AS col1, 99
----
1
99

skipif mysql # not compatible
query II rowsort label-2414
SELECT - - COUNT ( * ) AS col1, 99
----
1
99

query I rowsort
SELECT ALL + ( 51 ) * + 0
----
0

query I rowsort
SELECT 32 + + 90 * 70
----
6332

query I rowsort
SELECT DISTINCT + 9 * NULLIF ( - + 83, - 70 ) * - 72
----
53784

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT ALL + 0 * - + 19 DIV - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + 0 * - + 19 / - 6 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 52 * + 25 * COUNT( * ) * - + 30
----
-39000

skipif mysql # not compatible
query I rowsort label-2419
SELECT 52 * + 25 * COUNT ( * ) * - + 30
----
-39000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT 61 * CAST( 97 AS SIGNED )
----
5917

skipif mysql # not compatible
query I rowsort label-2420
SELECT 61 * CAST ( 97 AS INTEGER )
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - 28 + + + COUNT( + 24 ) - + MIN( - 57 )
----
30

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - 28 + + + COUNT ( + 24 ) - + MIN ( - 57 )
----
30

query I rowsort
SELECT 67 + - - 93 AS col0
----
160

query II rowsort
SELECT 51 * + 46 AS col2, 68 AS col1
----
2346
68

query I rowsort
SELECT ALL + ( + 61 ) + - + 12 + - 37 * + - 16 + 42
----
683

query I rowsort
SELECT DISTINCT - 10 + - 89 + + - 77
----
-176

query I rowsort
SELECT 41 * 97 * - + 19 * - 74 AS col1
----
5591662

query I rowsort
SELECT 76 * - - 65
----
4940

query I rowsort
SELECT ALL - 92 + + 99 + + 40
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2429
SELECT COUNT( * ) - - - CAST( - 22 AS SIGNED ) DIV - 5 AS col0, 35 * + + 91 * + COALESCE ( + 61, - 16 ) + - - 96
----
-3
194381

skipif mysql # not compatible
query II rowsort label-2429
SELECT COUNT ( * ) - - - CAST ( - 22 AS INTEGER ) / - 5 AS col0, 35 * + + 91 * + COALESCE ( + 61, - 16 ) + - - 96
----
-3
194381

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + 61 * - - COUNT( * ) + + 70 * 67 * CASE COUNT( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 61 * - - COUNT ( * ) + + 70 * 67 * CASE COUNT ( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 76 - - - 25
----
-101

query II rowsort
SELECT - 55 - + 72 col2, 38
----
-127
38

query I rowsort
SELECT ALL 24 - + 70 + + - 71 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - SUM( - + 26 ) * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-2434
SELECT - SUM ( - + 26 ) * - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + COALESCE ( 63, + COUNT( * ), - + 20 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2435
SELECT + COALESCE ( 63, + COUNT ( * ), - + 20 ) AS col2
----
63

query I rowsort
SELECT ALL 52 * - 50
----
-2600

query I rowsort
SELECT - 21 + - 53 + 35 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2438
SELECT COUNT( * ) DIV - 64 col2, 68 * 89 + - + ( MIN( DISTINCT + 45 ) ) - - 62 + + 37 DIV - 49 + - 63 AS col0
----
0
6006

skipif mysql # not compatible
query II rowsort label-2438
SELECT COUNT ( * ) / - 64 col2, 68 * 89 + - + ( MIN ( DISTINCT + 45 ) ) - - 62 + + 37 / - 49 + - 63 AS col0
----
0
6006

query I rowsort
SELECT DISTINCT 65 * + + 99
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT NULLIF ( + - 87, + ( 76 ) + 52 / - + 37 * + 96 - - 91 + + COUNT( + - 72 ) ) + + MIN( ALL - + 43 )
----
-130

skipif mysql # not compatible
query I rowsort label-2440
SELECT NULLIF ( + - 87, + ( 76 ) + 52 / - + 37 * + 96 - - 91 + + COUNT ( + - 72 ) ) + + MIN ( ALL - + 43 )
----
-130

query I rowsort
SELECT ALL - 35 * - CASE + 46 WHEN 89 * + 50 THEN 86 ELSE + - 40 - 57 END AS col0
----
-3395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT + 44 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 44 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 47, - 99 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT MAX( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-2444
SELECT MAX ( DISTINCT - 63 )
----
-63

query I rowsort
SELECT 45 + + 25
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - MAX( + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2446
SELECT - MAX ( + 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL ( - COUNT( * ) ) + + 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL ( - COUNT ( * ) ) + + 2 AS col2
----
1

query I rowsort
SELECT NULLIF ( + 26, 75 ) + + - CASE + ( - + 46 ) WHEN - - 34 THEN NULL ELSE 31 END
----
-5

query I rowsort
SELECT 42 + - + 48 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 23 + 49 AS col0
----
26

query II rowsort
SELECT ALL + 69 * + - 30 * - 22 AS col1, 4 * - + 23 AS col1
----
45540
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2452
SELECT CAST( + 55 AS SIGNED ) DIV - + MAX( 10 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2452
SELECT CAST ( + 55 AS INTEGER ) / - + MAX ( 10 ) AS col0
----
-5

query I rowsort
SELECT ALL ( 9 ) + + + 39
----
48

query I rowsort
SELECT DISTINCT + 51 * 71 AS col2
----
3621

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2455
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 61 + + 15 * 81 * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT CAST ( NULL AS REAL ) + 61 + + 15 * 81 * - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT ALL 81 + + COUNT( * ) + - - 42 col1, + 36
----
124
36

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL 81 + + COUNT ( * ) + - - 42 col1, + 36
----
124
36

query I rowsort
SELECT ALL + 61 + 72 + + 79
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2458
SELECT CAST( NULL AS SIGNED ) * - + 96 * - COUNT( * ), COUNT( - 0 ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2458
SELECT CAST ( NULL AS INTEGER ) * - + 96 * - COUNT ( * ), COUNT ( - 0 ) col2
----
NULL
1

query I rowsort
SELECT + 39 + - + 39 + - 38 * - + 66 AS col0
----
2508

query I rowsort
SELECT ALL + ( 13 ) col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT 61 * + - COUNT( * ) - - 99 AS col1, COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-2461
SELECT 61 * + - COUNT ( * ) - - 99 AS col1, COUNT ( * )
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL 66 * COUNT( * ) * - 31 * - 47 - 67 + - COUNT( * ) AS col0
----
96094

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL 66 * COUNT ( * ) * - 31 * - 47 - 67 + - COUNT ( * ) AS col0
----
96094

query II rowsort
SELECT + 28 AS col1, + 30
----
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + - MAX( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + - MAX ( + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + COALESCE ( ( - + ( + 22 ) ), + COUNT( * ), 3 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + COALESCE ( ( - + ( + 22 ) ), + COUNT ( * ), 3 ) AS col2
----
-22

query II rowsort
SELECT + 78 AS col2, - 94 AS col0
----
78
-94

query I rowsort
SELECT ALL + + 86 col0
----
86

query I rowsort
SELECT - 65 * + + 97 AS col1
----
-6305

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2469
SELECT + 95 DIV + 7 + COALESCE ( 9, - 34, - NULLIF ( 82, - - CAST( - 17 AS SIGNED ) + - 66 + 85 DIV - 31 + + 39 ) * 91 ) + - 10
----
12

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 95 / + 7 + COALESCE ( 9, - 34, - NULLIF ( 82, - - CAST ( - 17 AS INTEGER ) + - 66 + 85 / - 31 + + 39 ) * 91 ) + - 10
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 87 * + CAST( + + ( + 79 ) AS SIGNED ) + + - 69 - + 30 - 55
----
6719

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 87 * + CAST ( + + ( + 79 ) AS INTEGER ) + + - 69 - + 30 - 55
----
6719

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT DISTINCT + 47 * 20 * - 61 AS col0, + COUNT( * ) AS col2
----
-57340
1

skipif mysql # not compatible
query II rowsort label-2471
SELECT DISTINCT + 47 * 20 * - 61 AS col0, + COUNT ( * ) AS col2
----
-57340
1

query II rowsort
SELECT DISTINCT + + 18 AS col1, 29
----
18
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - + 25 * - COUNT( * ) DIV + 90 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT - + 25 * - COUNT ( * ) / + 90 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + + COUNT( * ) * + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2474
SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 97 * - 25 * 32
----
-77600

query I rowsort
SELECT DISTINCT + 86 * + 62 AS col0
----
5332

query I rowsort
SELECT DISTINCT + + ( 46 )
----
46

query I rowsort
SELECT ALL + ( - - 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT DISTINCT + + COALESCE ( 3, + 81 ) AS col0, + COUNT( * ) - - 87
----
3
88

skipif mysql # not compatible
query II rowsort label-2479
SELECT DISTINCT + + COALESCE ( 3, + 81 ) AS col0, + COUNT ( * ) - - 87
----
3
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT COUNT( * ) AS col0, + 59
----
1
59

skipif mysql # not compatible
query II rowsort label-2480
SELECT COUNT ( * ) AS col0, + 59
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + 66 * - 44 + - - 76 * + MAX( ALL 57 )
----
1428

skipif mysql # not compatible
query I rowsort label-2481
SELECT + 66 * - 44 + - - 76 * + MAX ( ALL 57 )
----
1428

query I rowsort
SELECT ALL NULLIF ( + 64, 92 / - 68 + - - 76 ) + - - 62 + 93 AS col1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT ALL 23 + - 68 * - 69 * - - CAST( - 89 AS SIGNED ) AS col2
----
-417565

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL 23 + - 68 * - 69 * - - CAST ( - 89 AS INTEGER ) AS col2
----
-417565

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + 88 - 55 * + + COUNT( * ) + + COUNT( DISTINCT + + 55 )
----
34

skipif mysql # not compatible
query I rowsort label-2484
SELECT + 88 - 55 * + + COUNT ( * ) + + COUNT ( DISTINCT + + 55 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT - MIN( ALL + + 53 ) + 38 + - + 77 * + 78
----
-6021

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - MIN ( ALL + + 53 ) + 38 + - + 77 * + 78
----
-6021

query II rowsort
SELECT ALL 19, 51 - - 16 AS col1
----
19
67

query I rowsort
SELECT - COALESCE ( + 12, + 85 ) col0
----
-12

query I rowsort
SELECT ALL 87 + + + 73
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT ( - COUNT( * ) ) + - ( - 50 ) + - 21 * - + 59 * + 56 * + 50 AS col0
----
3469249

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT ( - COUNT ( * ) ) + - ( - 50 ) + - 21 * - + 59 * + 56 * + 50 AS col0
----
3469249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2490
SELECT + CASE - 39 WHEN + 23 THEN NULL WHEN - 71 / - + AVG ( + ( + CAST( - + 73 AS DECIMAL ) ) ) - - 49 * + 95 THEN CASE + - 65 WHEN - 92 THEN 15 END END + + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT + CASE - 39 WHEN + 23 THEN NULL WHEN - 71 / - + AVG ( + ( + CAST ( - + 73 AS REAL ) ) ) - - 49 * + 95 THEN CASE + - 65 WHEN - 92 THEN 15 END END + + - 20
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 70 * - 52 AS col1
----
-3559

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2492
SELECT ALL 33 + - + CAST( NULL AS DECIMAL ) * - 92 * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 33 + - + CAST ( NULL AS REAL ) * - 92 * + 17 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 22, 17 ) * ( + 18 ) + + 76 AS col2
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2494
SELECT DISTINCT COUNT( * ), - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2494
SELECT DISTINCT COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2495
SELECT - ( + ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT - ( + ( + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + 29 - - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + 29 - - COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT - CAST( ( + 9 ) AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2497
SELECT - CAST ( ( + 9 ) AS INTEGER ) AS col1
----
-9

query I rowsort
SELECT ALL + NULLIF ( + 80, - - 3 ) * + 83
----
6640

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL + - 84 AS col1, ( - 67 ) * + COUNT( ALL - - 47 ) + - COUNT( * ) + - + 9 * 74 AS col0
----
-84
-734

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL + - 84 AS col1, ( - 67 ) * + COUNT ( ALL - - 47 ) + - COUNT ( * ) + - + 9 * 74 AS col0
----
-84
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + + SUM( - 22 ) * COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-2500
SELECT + + SUM ( - 22 ) * COUNT ( * )
----
-22

query I rowsort
SELECT - + 65 * + - 25 AS col0
----
1625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 31 AS col0
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2503
SELECT CAST( + - 15 AS SIGNED ) DIV - + 7 - - 13
----
15

skipif mysql # not compatible
query I rowsort label-2503
SELECT CAST ( + - 15 AS INTEGER ) / - + 7 - - 13
----
15

query I rowsort
SELECT - 46 / - CASE - 84 WHEN - 77 THEN + 46 WHEN + - 27 THEN NULL END / - + 84 * - + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL + MAX( DISTINCT CAST( - 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + MAX ( DISTINCT CAST ( - 91 AS INTEGER ) )
----
-91

query II rowsort
SELECT ALL + 26, ( + 4 ) AS col0
----
26
4

query I rowsort
SELECT DISTINCT + CASE - 2 WHEN - 92 * + 57 THEN NULL WHEN - 0 THEN + 71 + 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT - 17 * CAST( + COUNT( * ) AS SIGNED ) + + 22 + ( - - COALESCE ( + NULLIF ( + 96, COUNT( * ) ), 16 * - 22 ) ) DIV NULLIF ( COUNT( * ), - + MIN( + - 22 ) ) col2
----
101

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 17 * CAST ( + COUNT ( * ) AS INTEGER ) + + 22 + ( - - COALESCE ( + NULLIF ( + 96, COUNT ( * ) ), 16 * - 22 ) ) / NULLIF ( COUNT ( * ), - + MIN ( + - 22 ) ) col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT ALL + 75 AS col2, CASE COUNT( DISTINCT 10 ) WHEN + + 12 THEN NULL WHEN 93 * + 90 * - + COUNT( * ) * - - 63 + - 57 + + 94 THEN - + 96 * 95 + 64 + - 12 END
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL + 75 AS col2, CASE COUNT ( DISTINCT 10 ) WHEN + + 12 THEN NULL WHEN 93 * + 90 * - + COUNT ( * ) * - - 63 + - 57 + + 94 THEN - + 96 * 95 + 64 + - 12 END
----
75
NULL

query II rowsort
SELECT DISTINCT + + 65, + 78 + + 42 AS col2
----
65
120

query I rowsort
SELECT - - 38 - + 68 - + + 4 * 13 * + 9 AS col2
----
-498

query I rowsort
SELECT + + ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - + COUNT( DISTINCT + 71 ) - - ( COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2513
SELECT - + COUNT ( DISTINCT + 71 ) - - ( COUNT ( * ) ) col0
----
0

query I rowsort
SELECT - - COALESCE ( 3, - 27 ) * - + 10
----
-30

query I rowsort
SELECT ALL - 38 * - 66 * + ( 47 ) + - 40 + + + 23
----
117859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) - + - 17 + 16 / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + - 17 + 16 / + 43
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2517
SELECT - - ( + 87 ) * + ( - 68 ) + - 59 + - + 58 + - 63 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - - ( + 87 ) * + ( - 68 ) + - 59 + - + 58 + - 63 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL ( + 30 ) * + 90 + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL ( + 30 ) * + 90 + 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL - 69 * 53 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 69 * 53 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT NULLIF ( - - 10, - 94 / + CAST( NULL AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2520
SELECT NULLIF ( - - 10, - 94 / + CAST ( NULL AS INTEGER ) ) AS col2
----
10

query I rowsort
SELECT COALESCE ( 6, - - 7 * - - 77, - 99 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT CAST( - - 68 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT CAST ( - - 68 AS INTEGER ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT DISTINCT CASE - 0 WHEN - 47 + - + MAX( - 97 ) * - SUM( 31 ) * + 49 + + CASE 70 WHEN - COALESCE ( - 72, - 92, 37 / 62 * 94, - - 41 ) THEN + 62 WHEN - + 19 THEN NULL ELSE NULL END THEN + 71 WHEN - CAST( NULL AS SIGNED ) * + COUNT( * ) * + 92 * 27 THEN + COALESCE ( - 20, 37 * 41 / + 89 ) END * - 35 + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT CASE - 0 WHEN - 47 + - + MAX ( - 97 ) * - SUM ( 31 ) * + 49 + + CASE 70 WHEN - COALESCE ( - 72, - 92, 37 / 62 * 94, - - 41 ) THEN + 62 WHEN - + 19 THEN NULL ELSE NULL END THEN + 71 WHEN - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 92 * 27 THEN + COALESCE ( - 20, 37 * 41 / + 89 ) END * - 35 + + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - COUNT( * ) + 55 + - 14 + - MAX( ALL + + CASE ( + + 77 ) WHEN + 81 THEN + + 94 END ) * - 20 * + COUNT( ALL - 61 ) * - COUNT( * ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT - COUNT ( * ) + 55 + - 14 + - MAX ( ALL + + CASE ( + + 77 ) WHEN + 81 THEN + + 94 END ) * - 20 * + COUNT ( ALL - 61 ) * - COUNT ( * ) + 60
----
NULL

query I rowsort
SELECT 51 * 22 AS col1
----
1122

onlyif mysql # DIV for integer division: 
query II rowsort label-2526
SELECT ALL 34 DIV + 71 AS col1, 77 AS col0
----
0
77

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL 34 / + 71 AS col1, 77 AS col0
----
0
77

query I rowsort
SELECT 57 + - - ( - ( - 82 ) ) + - 91 * + 63 AS col1
----
-5594

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT 76 + + ( + 78 ) * - + COUNT( * ) + + MIN( ALL + + 27 ) + + 7 col2, 37
----
32
37

skipif mysql # not compatible
query II rowsort label-2528
SELECT 76 + + ( + 78 ) * - + COUNT ( * ) + + MIN ( ALL + + 27 ) + + 7 col2, 37
----
32
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - 34 DIV + 19 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - 34 / + 19 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL CASE + 72 WHEN - 91 * + 66 - - - CAST( - + COUNT( * ) AS SIGNED ) THEN - - ( + + 14 ) WHEN 21 THEN - 51 + - 88 * - 47 ELSE - ( - MIN( ALL - 45 ) ) * - 90 + COUNT( * ) + - 76 + + + 82 * + 81 - - COUNT( * ) * - - 40 END * + 37
----
394309

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL CASE + 72 WHEN - 91 * + 66 - - - CAST ( - + COUNT ( * ) AS INTEGER ) THEN - - ( + + 14 ) WHEN 21 THEN - 51 + - 88 * - 47 ELSE - ( - MIN ( ALL - 45 ) ) * - 90 + COUNT ( * ) + - 76 + + + 82 * + 81 - - COUNT ( * ) * - - 40 END * + 37
----
394309

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ( + 28 ) + + - SUM( 81 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2531
SELECT ( + 28 ) + + - SUM ( 81 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ( COUNT( * ) ) + - 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2532
SELECT ( COUNT ( * ) ) + - 18 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT DISTINCT 91 * + - 94, MAX( + - 8 ) * - + 95 - + + 82 col1
----
-8554
678

skipif mysql # not compatible
query II rowsort label-2533
SELECT DISTINCT 91 * + - 94, MAX ( + - 8 ) * - + 95 - + + 82 col1
----
-8554
678

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT COUNT( + + 87 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2534
SELECT COUNT ( + + 87 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + 80 * - 75 + MIN( + 9 )
----
-5991

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + 80 * - 75 + MIN ( + 9 )
----
-5991

query II rowsort
SELECT + 8 + - 77 AS col1, + 69
----
-69
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2537
SELECT - 47 * + + COUNT( * ) DIV + 77, - 79 * - - 58 AS col0
----
0
-4582

skipif mysql # not compatible
query II rowsort label-2537
SELECT - 47 * + + COUNT ( * ) / + 77, - 79 * - - 58 AS col0
----
0
-4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT 61 + 45 - - CAST( NULL AS SIGNED ) + - - 54 * + COUNT( * ) / 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT 61 + 45 - - CAST ( NULL AS INTEGER ) + - - 54 * + COUNT ( * ) / 63 col1
----
NULL

query I rowsort
SELECT + ( 44 ) * + 33
----
1452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT 8 DIV 61 + - SUM( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-2540
SELECT 8 / 61 + - SUM ( DISTINCT - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT - MIN( DISTINCT - + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - MIN ( DISTINCT - + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL - - CAST( + + 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - - CAST ( + + 57 AS INTEGER )
----
57

query I rowsort
SELECT 0 * 79
----
0

query I rowsort
SELECT ALL 71 + 12 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - COUNT( * ) + - 16 + - + 37 - + 96 * - 99 * 84 AS col2
----
798282

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - COUNT ( * ) + - 16 + - + 37 - + 96 * - 99 * 84 AS col2
----
798282

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT - COUNT( * ) * - + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - COUNT ( * ) * - + 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 93 DIV 45 + + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2547
SELECT 93 / 45 + + 95 AS col1
----
97

query I rowsort
SELECT ALL + 12 + + 75 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - CASE - - 21 WHEN + 58 * + 53 THEN - 14 + + 85 * MIN( 44 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - CASE - - 21 WHEN + 58 * + 53 THEN - 14 + + 85 * MIN ( 44 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT DISTINCT COUNT( * ) + - 92 * + 73 + + 97 DIV - 84 AS col1
----
-6716

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT COUNT ( * ) + - 92 * + 73 + + 97 / - 84 AS col1
----
-6716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2551
SELECT ALL 71 + 18 - NULLIF ( 81, - - COUNT( - 67 ) ) * 37 + + 82 AS col0, - 86 + - + SUM( DISTINCT - + 50 ) * 79 / - - CAST( NULL AS SIGNED )
----
-2826
NULL

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL 71 + 18 - NULLIF ( 81, - - COUNT ( - 67 ) ) * 37 + + 82 AS col0, - 86 + - + SUM ( DISTINCT - + 50 ) * 79 / - - CAST ( NULL AS INTEGER )
----
-2826
NULL

query II rowsort
SELECT + 7 AS col1, 28 AS col0
----
7
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT DISTINCT - 64 + - COALESCE ( - 0, + + 53 * - + 73 + - MIN( 18 ) * + 99 ) DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - 64 + - COALESCE ( - 0, + + 53 * - + 73 + - MIN ( 18 ) * + 99 ) / - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + 10 + + + SUM( DISTINCT 26 ) * - 75 * 61 AS col1
----
-118940

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 10 + + + SUM ( DISTINCT 26 ) * - 75 * 61 AS col1
----
-118940

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL - SUM( + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - SUM ( + 27 )
----
-27

query II rowsort
SELECT ALL - 6, 14 AS col0
----
-6
14

query I rowsort
SELECT 77 + 79 AS col0
----
156

query I rowsort
SELECT DISTINCT - 65 - - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - 47 - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - 47 - COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT ALL 83, + 36 * - 74 + - COUNT( * ) * + 57 AS col1
----
83
-2721

skipif mysql # not compatible
query II rowsort label-2560
SELECT ALL 83, + 36 * - 74 + - COUNT ( * ) * + 57 AS col1
----
83
-2721

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT - 20 * 25 DIV 35
----
-14

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 20 * 25 / 35
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 86 * + + 27 * - + CASE 32 WHEN - - 26 + - COALESCE ( 8, + 24, - NULLIF ( + + 84, + COUNT( * ) * - 61 ) ) THEN COUNT( * ) + - 30 WHEN + SUM( ALL + 62 ) THEN + + SUM( - - 66 ) WHEN + 50 * - + 72 - 19 / 90 THEN NULL END * + + 63 - + - 98 * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT 86 * + + 27 * - + CASE 32 WHEN - - 26 + - COALESCE ( 8, + 24, - NULLIF ( + + 84, + COUNT ( * ) * - 61 ) ) THEN COUNT ( * ) + - 30 WHEN + SUM ( ALL + 62 ) THEN + + SUM ( - - 66 ) WHEN + 50 * - + 72 - 19 / 90 THEN NULL END * + + 63 - + - 98 * 72 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT 5 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT 5 / - 92
----
0

query I rowsort
SELECT 76 * 45 col1
----
3420

query II rowsort
SELECT ALL 58, - 98 AS col1
----
58
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - ( + + COUNT( * ) ) - - ( + 35 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2566
SELECT - ( + + COUNT ( * ) ) - - ( + 35 ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT + 59 DIV - 22 - 83 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + 59 / - 22 - 83 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - - 38 + + - COUNT( * ) * - 33 - + + 31 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - - 38 + + - COUNT ( * ) * - 33 - + + 31 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL - 57 + + 96 / + CASE + + COUNT( * ) WHEN + 12 THEN + 16 + + - 59 + - 64 - CAST( 6 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - 57 + + 96 / + CASE + + COUNT ( * ) WHEN + 12 THEN + 16 + + - 59 + - 64 - CAST ( 6 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + MAX( DISTINCT + 13 ) DIV - 75 * COUNT( * ) * 13
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + MAX ( DISTINCT + 13 ) / - 75 * COUNT ( * ) * 13
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT 2 * - CAST( NULL AS DECIMAL ) + + 42 + + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT 2 * - CAST ( NULL AS REAL ) + + 42 + + + 68 AS col2
----
NULL

query II rowsort
SELECT 5 AS col2, - 44
----
5
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT COUNT( * ) AS col2, 54 AS col0
----
1
54

skipif mysql # not compatible
query II rowsort label-2573
SELECT COUNT ( * ) AS col2, 54 AS col0
----
1
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT ALL - - 0 * - - 63 + NULLIF ( - 81, - CAST( NULL AS SIGNED ) )
----
-81

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - - 0 * - - 63 + NULLIF ( - 81, - CAST ( NULL AS INTEGER ) )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT + 27 AS col2, - MIN( DISTINCT + 99 ) + 57
----
27
-42

skipif mysql # not compatible
query II rowsort label-2575
SELECT + 27 AS col2, - MIN ( DISTINCT + 99 ) + 57
----
27
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT NULLIF ( COUNT( * ), + - COALESCE ( 12, - MIN( 77 ) + + 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2576
SELECT NULLIF ( COUNT ( * ), + - COALESCE ( 12, - MIN ( 77 ) + + 22 ) )
----
1

query I rowsort
SELECT 37 * 50
----
1850

query II rowsort
SELECT + 88 AS col2, + 10
----
88
10

query I rowsort
SELECT DISTINCT - - 47 * + 67 + - + 12 + + 44 * + 1
----
3181

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL - MAX( ALL - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - MAX ( ALL - 12 ) AS col1
----
12

query II rowsort
SELECT 85 AS col1, 44
----
85
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT - 29 * - COUNT( * ) + - 0 + CAST( + NULLIF ( - ( - COUNT( * ) ), + 58 ) AS SIGNED ) + 24 + 28 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 29 * - COUNT ( * ) + - 0 + CAST ( + NULLIF ( - ( - COUNT ( * ) ), + 58 ) AS INTEGER ) + 24 + 28 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT + 24 * + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT + 24 * + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT - 91 * + COUNT( * ) + - 49 + + + SUM( ALL - 25 ) DIV - - 4
----
-146

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 91 * + COUNT ( * ) + - 49 + + + SUM ( ALL - 25 ) / - - 4
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( * ) * - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) * - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT SUM( DISTINCT - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2586
SELECT SUM ( DISTINCT - 35 ) AS col0
----
-35

query II rowsort
SELECT DISTINCT 58 * + 25 AS col0, - 79
----
1450
-79

query I rowsort
SELECT + NULLIF ( + 76, - 15 / + 54 - + 81 ) * - + 71 + - - 43
----
-5353

query I rowsort
SELECT - ( + 98 ) * - 60 AS col1
----
5880

query I rowsort
SELECT DISTINCT + NULLIF ( 69, - + 47 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT ALL MIN( DISTINCT 38 ) col0, ( - + 45 ) AS col2
----
38
-45

skipif mysql # not compatible
query II rowsort label-2591
SELECT ALL MIN ( DISTINCT 38 ) col0, ( - + 45 ) AS col2
----
38
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - COUNT( * ) * + 11
----
-11

skipif mysql # not compatible
query I rowsort label-2592
SELECT - COUNT ( * ) * + 11
----
-11

query I rowsort
SELECT + 57 + 52 - + ( + 10 ) - 63
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2594
SELECT - 21 + - 35, 2 * + + 81 / - + 49 * + + CAST( NULL AS SIGNED ) * + CASE - 85 WHEN - 79 * - + 53 * + ( + COUNT( * ) ) THEN NULL ELSE - 98 + + - COUNT( * ) * - 66 * - NULLIF ( - 92, + + 61 * + 24 / 40 * 95 + + - 99 + + 24 + 99 ) END + + 36 + + 80 + - 75 * + COUNT( * ) AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2594
SELECT - 21 + - 35, 2 * + + 81 / - + 49 * + + CAST ( NULL AS INTEGER ) * + CASE - 85 WHEN - 79 * - + 53 * + ( + COUNT ( * ) ) THEN NULL ELSE - 98 + + - COUNT ( * ) * - 66 * - NULLIF ( - 92, + + 61 * + 24 / 40 * 95 + + - 99 + + 24 + 99 ) END + + 36 + + 80 + - 75 * + COUNT ( * ) AS col1
----
-56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2595
SELECT - 15 * - 21, NULLIF ( - + CAST( - + SUM( 3 ) AS SIGNED ), + 18 ) * + 68 AS col0
----
315
204

skipif mysql # not compatible
query II rowsort label-2595
SELECT - 15 * - 21, NULLIF ( - + CAST ( - + SUM ( 3 ) AS INTEGER ), + 18 ) * + 68 AS col0
----
315
204

query I rowsort
SELECT DISTINCT + + 15 * - ( + 92 )
----
-1380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2597
SELECT ALL - 72 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - 72 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 67 + + 84 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - 61 + - - ( + NULLIF ( - CASE - 9 WHEN + + COUNT( * ) THEN + 71 ELSE NULL END, SUM( ALL + + 46 ) + + + 3 ) ) + - + 26 - 6 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - 61 + - - ( + NULLIF ( - CASE - 9 WHEN + + COUNT ( * ) THEN + 71 ELSE NULL END, SUM ( ALL + + 46 ) + + + 3 ) ) + - + 26 - 6 + + 73
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + ( + ( + 80 ) )
----
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL - 6 + - 88 * + + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - 6 + - 88 * + + COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT - 92 + + 86 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2603
SELECT DISTINCT + + 23 + 11 DIV + 31 * MAX( ALL + - 43 ) AS col1, 85 AS col2
----
23
85

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT + + 23 + 11 / + 31 * MAX ( ALL + - 43 ) AS col1, 85 AS col2
----
23
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 19 + + + SUM( DISTINCT ( 28 ) ) * 57
----
1615

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 19 + + + SUM ( DISTINCT ( 28 ) ) * 57
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + - 59 * - + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2605
SELECT + - 59 * - + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL + + ( + 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT - ( - 61 ) / CAST( NULL AS SIGNED ) * + 54 + + 8 + - ( + 4 ) * - 39 + + + 31 * - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT - ( - 61 ) / CAST ( NULL AS INTEGER ) * + 54 + + 8 + - ( + 4 ) * - 39 + + + 31 * - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT CASE - 34 WHEN - - 44 * - - ( 77 ) + + 23 THEN + 31 WHEN - COUNT( * ) * - + MAX( DISTINCT - ( + 10 ) ) + - 73 THEN - NULLIF ( 41, - + 64 ) / + 34 * + + CASE - 56 WHEN + + 36 THEN 35 WHEN + 19 THEN NULL ELSE - 58 - - + 31 END + - 3 - - - ( + 50 ) + 72 / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT CASE - 34 WHEN - - 44 * - - ( 77 ) + + 23 THEN + 31 WHEN - COUNT ( * ) * - + MAX ( DISTINCT - ( + 10 ) ) + - 73 THEN - NULLIF ( 41, - + 64 ) / + 34 * + + CASE - 56 WHEN + + 36 THEN 35 WHEN + 19 THEN NULL ELSE - 58 - - + 31 END + - 3 - - - ( + 50 ) + 72 / COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT ALL - 53 DIV + COUNT( * ) - COUNT( * ) * - 0
----
-53

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - 53 / + COUNT ( * ) - COUNT ( * ) * - 0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT - 95 * + 42 - + NULLIF ( - + 6, + COALESCE ( + 67, - 86 - - CAST( + - 31 AS SIGNED ) ) - + AVG ( ALL - 26 ) * + COUNT( * ) + - - 21 + + - 62 * - + MAX( DISTINCT - + ( + - 95 ) ) + 75 ) * - 88 col0
----
-4518

skipif mysql # not compatible
query I rowsort label-2610
SELECT - 95 * + 42 - + NULLIF ( - + 6, + COALESCE ( + 67, - 86 - - CAST ( + - 31 AS INTEGER ) ) - + AVG ( ALL - 26 ) * + COUNT ( * ) + - - 21 + + - 62 * - + MAX ( DISTINCT - + ( + - 95 ) ) + 75 ) * - 88 col0
----
-4518

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ( - ( - COUNT( ALL + - 79 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2611
SELECT ( - ( - COUNT ( ALL + - 79 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + COALESCE ( + 42, - + COUNT( * ) ) + - - SUM( + ( + 97 ) )
----
139

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COALESCE ( + 42, - + COUNT ( * ) ) + - - SUM ( + ( + 97 ) )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - COUNT( * ) * + COUNT( ALL - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-2613
SELECT - COUNT ( * ) * + COUNT ( ALL - 98 )
----
-1

query I rowsort
SELECT + COALESCE ( - + 45, - 35 ) * + 27 col2
----
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT ( ( - + 7 ) ), - CASE 74 WHEN + ( + COUNT( * ) ) THEN - MIN( ALL + + 90 ) END AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-2615
SELECT ( ( - + 7 ) ), - CASE 74 WHEN + ( + COUNT ( * ) ) THEN - MIN ( ALL + + 90 ) END AS col1
----
-7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT + COUNT( * ) AS col2, - 42 + - 56
----
1
-98

skipif mysql # not compatible
query II rowsort label-2616
SELECT + COUNT ( * ) AS col2, - 42 + - 56
----
1
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT ALL + 21 AS col1, COUNT( * ) * - 46
----
21
-46

skipif mysql # not compatible
query II rowsort label-2617
SELECT ALL + 21 AS col1, COUNT ( * ) * - 46
----
21
-46

query I rowsort
SELECT - CASE 67 WHEN - 92 THEN - 15 WHEN - 7 THEN 8 END * - 21 * + 38 + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + 63 + - ( + COUNT( * ) ) + 8 * + 6
----
110

skipif mysql # not compatible
query I rowsort label-2619
SELECT + 63 + - ( + COUNT ( * ) ) + 8 * + 6
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT + COALESCE ( + - CAST( NULL AS SIGNED ), + 49 + 98 ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-2620
SELECT + COALESCE ( + - CAST ( NULL AS INTEGER ), + 49 + 98 ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT COUNT( ALL - + 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2621
SELECT COUNT ( ALL - + 28 ) AS col2
----
1

query I rowsort
SELECT ALL + 70 * + - 62 + + 49
----
-4291

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT MIN( 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-2623
SELECT MIN ( 22 ) col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT ALL 16 * + - 72 / - 15 + 40 * - 0 + - CASE + 17 WHEN 14 THEN NULL WHEN 17 THEN + - CASE - - CAST( NULL AS SIGNED ) WHEN + 22 + + - 48 THEN 79 / - + 19 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL 16 * + - 72 / - 15 + 40 * - 0 + - CASE + 17 WHEN 14 THEN NULL WHEN 17 THEN + - CASE - - CAST ( NULL AS INTEGER ) WHEN + 22 + + - 48 THEN 79 / - + 19 END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 0 + + 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT ALL + 62 AS col2, + COUNT( * )
----
62
1

skipif mysql # not compatible
query II rowsort label-2626
SELECT ALL + 62 AS col2, + COUNT ( * )
----
62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL NULLIF ( - + 90, - 17 + COUNT( * ) + - - 54 * - CAST( CAST( + - 55 AS SIGNED ) AS SIGNED ) * + - 3 ) + + 94
----
4

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL NULLIF ( - + 90, - 17 + COUNT ( * ) + - - 54 * - CAST ( CAST ( + - 55 AS INTEGER ) AS INTEGER ) * + - 3 ) + + 94
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2628
SELECT ALL 44 AS col1, + CAST( - - 65 AS SIGNED ) AS col0
----
44
65

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 44 AS col1, + CAST ( - - 65 AS INTEGER ) AS col0
----
44
65

query I rowsort
SELECT DISTINCT 42 + + 79
----
121

query I rowsort
SELECT ALL + 49 + + 65
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL - CASE - 11 WHEN + + 21 + + + 74 / 98 + + COUNT( + + 14 ) + + - 2 THEN NULL ELSE + - 12 END + 39 + 65 - - 71 + + MIN( - + 92 ) * - + CAST( NULL AS SIGNED ) * - + MAX( 90 ) - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - CASE - 11 WHEN + + 21 + + + 74 / 98 + + COUNT ( + + 14 ) + + - 2 THEN NULL ELSE + - 12 END + 39 + 65 - - 71 + + MIN ( - + 92 ) * - + CAST ( NULL AS INTEGER ) * - + MAX ( 90 ) - - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - SUM( - - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-2632
SELECT - SUM ( - - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT + - COUNT( * ) * + + COUNT( * ) DIV - 45 - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2633
SELECT + - COUNT ( * ) * + + COUNT ( * ) / - 45 - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT + - 95 * + 64
----
-6080

query I rowsort
SELECT ALL - 33 - + ( + 63 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - 40, 54 * - COUNT( * ) AS col0
----
-40
-54

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 40, 54 * - COUNT ( * ) AS col0
----
-40
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - + MAX( + + 64 ) - - 48
----
-16

skipif mysql # not compatible
query I rowsort label-2637
SELECT - + MAX ( + + 64 ) - - 48
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT 84 * + 23 + + 25 * + 24 + - - COUNT( * ) + - MAX( ALL + 59 )
----
2474

skipif mysql # not compatible
query I rowsort label-2638
SELECT 84 * + 23 + + 25 * + 24 + - - COUNT ( * ) + - MAX ( ALL + 59 )
----
2474

query I rowsort
SELECT ALL - 73 - + + 68
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT 88 DIV + - 75 + - 26 * 44 * 95
----
-108681

skipif mysql # not compatible
query I rowsort label-2640
SELECT 88 / + - 75 + - 26 * 44 * 95
----
-108681

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 51 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT 51 / + 87 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT 86 * COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2642
SELECT 86 * COUNT ( * ) AS col2
----
86

query I rowsort
SELECT 60 + - + 89 + + - 88
----
-117

query I rowsort
SELECT 86 * + + 64
----
5504

query I rowsort
SELECT ALL - COALESCE ( - 81, 23 )
----
81

query I rowsort
SELECT + 44 * - - COALESCE ( - 48, 97 * - 14, + 34 ) * + 46 - + + ( - - 90 ) + + 46
----
-97196

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT NULLIF ( + 83, - COUNT( * ) ) * 66
----
5478

skipif mysql # not compatible
query I rowsort label-2647
SELECT NULLIF ( + 83, - COUNT ( * ) ) * 66
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 89 * - + ( + 37 ) + 26 * + + COUNT( * )
----
-3267

skipif mysql # not compatible
query I rowsort label-2648
SELECT 89 * - + ( + 37 ) + 26 * + + COUNT ( * )
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT COUNT( DISTINCT - - 82 ) + + MAX( 68 ) + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2649
SELECT COUNT ( DISTINCT - - 82 ) + + MAX ( 68 ) + - COUNT ( * )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT NULLIF ( COUNT( * ), + COUNT( * ) + + 40 * - CAST( + - 23 AS SIGNED ) * 94 * 92 ) * 53 * COUNT( * ) * - - 74 AS col1
----
3922

skipif mysql # not compatible
query I rowsort label-2650
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) + + 40 * - CAST ( + - 23 AS INTEGER ) * 94 * 92 ) * 53 * COUNT ( * ) * - - 74 AS col1
----
3922

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT 4 + - 77 * NULLIF ( - 34, + 10 ) DIV + 55
----
51

skipif mysql # not compatible
query I rowsort label-2651
SELECT 4 + - 77 * NULLIF ( - 34, + 10 ) / + 55
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2652
SELECT ALL - COUNT( * ) AS col1, - 45 * - CAST( 99 AS SIGNED ) AS col2
----
-1
4455

skipif mysql # not compatible
query II rowsort label-2652
SELECT ALL - COUNT ( * ) AS col1, - 45 * - CAST ( 99 AS INTEGER ) AS col2
----
-1
4455

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT ALL 68 DIV + 34 * + 1 col1
----
2

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL 68 / + 34 * + 1 col1
----
2

query I rowsort
SELECT DISTINCT 12 + - + 58 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + 91 + - + 24 DIV 33 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2655
SELECT + 91 + - + 24 / 33 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - SUM( 7 ) + - 67 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - SUM ( 7 ) + - 67 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL + 20 * 69 DIV + COUNT( * )
----
1380

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 20 * 69 / + COUNT ( * )
----
1380

query I rowsort
SELECT ALL - 45 + - 42 AS col0
----
-87

query I rowsort
SELECT DISTINCT 53 * + - 12 AS col1
----
-636

query I rowsort
SELECT 30 + + - ( - - 45 ) + + 53
----
38

query I rowsort
SELECT 74 - - 64 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 26 * - - 14
----
-364

query I rowsort
SELECT ALL + 63 - - 38 * + 17
----
709

query I rowsort
SELECT ( - 53 ) * 97 AS col0
----
-5141

query I rowsort
SELECT - ( + - ( + 4 ) ) * + - ( 64 )
----
-256

query II rowsort
SELECT ALL 7, - 82 * 68 col2
----
7
-5576

query I rowsort
SELECT - 81 * - 22 * + - 34 AS col2
----
-60588

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT 33 * 9 - - COUNT( * )
----
298

skipif mysql # not compatible
query I rowsort label-2669
SELECT 33 * 9 - - COUNT ( * )
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT - SUM( DISTINCT + 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - SUM ( DISTINCT + 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + COUNT( * ) + - - 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2671
SELECT + COUNT ( * ) + - - 79 AS col1
----
80

query II rowsort
SELECT DISTINCT - 2 * + + 34, 15 col2
----
-68
15

onlyif mysql # aggregate syntax: 
query III rowsort label-2673
SELECT + SUM( ALL + 30 ) col0, - 53 AS col2, + COUNT( * )
----
30
-53
1

skipif mysql # not compatible
query III rowsort label-2673
SELECT + SUM ( ALL + 30 ) col0, - 53 AS col2, + COUNT ( * )
----
30
-53
1

query I rowsort
SELECT 79 * + - 40
----
-3160

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT ALL - MIN( + + 67 ) * - 59, 59 + - - 73 col1
----
3953
132

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - MIN ( + + 67 ) * - 59, 59 + - - 73 col1
----
3953
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + SUM( ALL - 49 ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-2676
SELECT + SUM ( ALL - 49 ) col0
----
-49

query I rowsort
SELECT 69 * - 93 AS col1
----
-6417

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT 5 * 43 AS col1, + 73 - COUNT( * ) + - 46
----
215
26

skipif mysql # not compatible
query II rowsort label-2678
SELECT 5 * 43 AS col1, + 73 - COUNT ( * ) + - 46
----
215
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - COALESCE ( + - 95, - ( + 18 ) + - COALESCE ( COUNT( * ), 86 + + 94 * - 17 ) DIV + 56 )
----
95

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - COALESCE ( + - 95, - ( + 18 ) + - COALESCE ( COUNT ( * ), 86 + + 94 * - 17 ) / + 56 )
----
95

query I rowsort
SELECT ALL + 12 + - 14
----
-2

query II rowsort
SELECT 95 * - + 93, ( NULLIF ( - 77, - 29 ) ) AS col0
----
-8835
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT 12 * + COUNT( * ) + + 78 col1
----
90

skipif mysql # not compatible
query I rowsort label-2682
SELECT 12 * + COUNT ( * ) + + 78 col1
----
90

query I rowsort
SELECT DISTINCT - 40 + 52 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2684
SELECT ALL - CAST( 63 AS SIGNED ), 36 * + - COUNT( * ) * + + 47 AS col2, - CASE - - 13 WHEN + 29 * + ( - - 31 ) + + - ( + 36 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN - 24 * 75 - - 68 - + - 23 * 16 THEN 50 ELSE NULL END + - 7 AS col1
----
-63
-1692
NULL

skipif mysql # not compatible
query III rowsort label-2684
SELECT ALL - CAST ( 63 AS INTEGER ), 36 * + - COUNT ( * ) * + + 47 AS col2, - CASE - - 13 WHEN + 29 * + ( - - 31 ) + + - ( + 36 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 24 * 75 - - 68 - + - 23 * 16 THEN 50 ELSE NULL END + - 7 AS col1
----
-63
-1692
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2685
SELECT ALL + COUNT( * ) + - CAST( NULL AS DECIMAL ) * + - COUNT( * ) + - COALESCE ( 90, AVG ( DISTINCT + 21 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS REAL ) * + - COUNT ( * ) + - COALESCE ( 90, AVG ( DISTINCT + 21 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL CASE 97 WHEN 90 + - - 67 THEN + 77 * 58 + + + 64 * - - 43 * - 23 ELSE + + 47 * - 5 END + - - 87
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - NULLIF ( + MAX( DISTINCT 65 ), 67 ) + - 46
----
-111

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - NULLIF ( + MAX ( DISTINCT 65 ), 67 ) + - 46
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT 20 + COUNT( * ), + 17 AS col0
----
21
17

skipif mysql # not compatible
query II rowsort label-2688
SELECT 20 + COUNT ( * ), + 17 AS col0
----
21
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - 16 - + 2 / + - 69 / + + CASE - 86 WHEN - - 97 THEN - - 35 WHEN + + 99 * 20 + - - 77 + + 77 THEN + ( + - COUNT( * ) ) * - - 46 - + + 10 * + 47 + + 4 WHEN - 91 + 74 * + - 35 THEN NULL ELSE NULL END + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 16 - + 2 / + - 69 / + + CASE - 86 WHEN - - 97 THEN - - 35 WHEN + + 99 * 20 + - - 77 + + 77 THEN + ( + - COUNT ( * ) ) * - - 46 - + + 10 * + 47 + + 4 WHEN - 91 + 74 * + - 35 THEN NULL ELSE NULL END + - 33
----
NULL

query I rowsort
SELECT DISTINCT + 67 - + 10 * + 72
----
-653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2691
SELECT + 2 * + + CAST( NULL AS SIGNED ) / 33 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2691
SELECT + 2 * + + CAST ( NULL AS INTEGER ) / 33 AS col2, COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL 71 * + 86, - 48 AS col0
----
6106
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT ALL - - 69 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - - 69 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + 46 - 85 + + - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 46 - 85 + + - COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT + 22 * - 29 AS col0
----
-638

query I rowsort
SELECT - 99 * - 32 AS col2
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT + COALESCE ( + 27, 43 + + 35 ) AS col0, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-2697
SELECT + COALESCE ( + 27, 43 + + 35 ) AS col0, COUNT ( * )
----
27
1

query I rowsort
SELECT NULLIF ( - 17, + 42 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT DISTINCT + 56, - ( - - 28 ) + + COUNT( * ) * + NULLIF ( + 2, + - 20 + + 96 - 97 ) AS col2
----
56
-26

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT + 56, - ( - - 28 ) + + COUNT ( * ) * + NULLIF ( + 2, + - 20 + + 96 - 97 ) AS col2
----
56
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL + 5 * - CASE + - 24 WHEN + + 18 THEN 60 END + + + 41 + + SUM( ALL - 68 ), - 53 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL + 5 * - CASE + - 24 WHEN + + 18 THEN 60 END + + + 41 + + SUM ( ALL - 68 ), - 53 AS col0
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT 26 * + + 5 + + COUNT( * ) AS col1, COUNT( * ) + 78
----
131
79

skipif mysql # not compatible
query II rowsort label-2701
SELECT 26 * + + 5 + + COUNT ( * ) AS col1, COUNT ( * ) + 78
----
131
79

query I rowsort
SELECT ALL 86 * - - 23
----
1978

query I rowsort
SELECT ALL 73 * + 58 + + - 49 AS col2
----
4185

query I rowsort
SELECT DISTINCT - 35 * + 93 * 21 AS col1
----
-68355

query I rowsort
SELECT ALL - 89 * - 76 - + 62 + - 22
----
6680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT 90 DIV SUM( - 81 ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-2706
SELECT 90 / SUM ( - 81 ) + - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL COUNT( * ) * - COALESCE ( - 37, SUM( + ( - + 65 ) ) ) * + + 28 + 49 + - 84 AS col0
----
1001

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL COUNT ( * ) * - COALESCE ( - 37, SUM ( + ( - + 65 ) ) ) * + + 28 + 49 + - 84 AS col0
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COUNT( * ) + - + COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( * ) + - + COUNT ( * ) col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT + CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + CAST ( + 9 AS INTEGER )
----
9

query I rowsort
SELECT + 87 * - 95
----
-8265

query I rowsort
SELECT - - CASE - 32 WHEN - 7 THEN + 54 ELSE - + 16 * - + 13 + - 72 + - 14 + 47 END * ( - 59 ) AS col0
----
-9971

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - + 66 * + 38 + + - 51 + - COUNT( * ) * - + ( COUNT( * ) ) * - + 38
----
-2597

skipif mysql # not compatible
query I rowsort label-2712
SELECT - + 66 * + 38 + + - 51 + - COUNT ( * ) * - + ( COUNT ( * ) ) * - + 38
----
-2597

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT + + 89 DIV + ( - + 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + + 89 / + ( - + 59 ) AS col1
----
-1

query I rowsort
SELECT ALL + 37 * ( 33 ) AS col0
----
1221

query I rowsort
SELECT - + 32 * 14 AS col1
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL + - 22 DIV + 12
----
-1

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + - 22 / + 12
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT DISTINCT + COALESCE ( ( COUNT( * ) ), - 16 ) * 46 + - CAST( NULL AS SIGNED ) + + + 90 + 65 * - COUNT( - + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + COALESCE ( ( COUNT ( * ) ), - 16 ) * 46 + - CAST ( NULL AS INTEGER ) + + + 90 + 65 * - COUNT ( - + 85 ) AS col1
----
NULL

query I rowsort
SELECT - 45 - + 65
----
-110

query I rowsort
SELECT ALL + + 47 * + ( 75 )
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2720
SELECT - CAST( 39 AS SIGNED ) * + CASE + 54 WHEN ( COUNT( * ) ) THEN + 98 + - 76 + + - 16 * + 96 + 32 WHEN + 58 THEN - CAST( NULL AS SIGNED ) DIV COUNT( * ) ELSE - CASE - + 81 WHEN + CAST( NULL AS SIGNED ) THEN 14 ELSE - 5 END * + - 39 * 53 + - + 20 + + - ( 62 ) - - 56 * - 7 END AS col1
----
421551

skipif mysql # not compatible
query I rowsort label-2720
SELECT - CAST ( 39 AS INTEGER ) * + CASE + 54 WHEN ( COUNT ( * ) ) THEN + 98 + - 76 + + - 16 * + 96 + 32 WHEN + 58 THEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) ELSE - CASE - + 81 WHEN + CAST ( NULL AS INTEGER ) THEN 14 ELSE - 5 END * + - 39 * 53 + - + 20 + + - ( 62 ) - - 56 * - 7 END AS col1
----
421551

query I rowsort
SELECT - 63 + + 75 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT - 3 * + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 3 * + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - + COUNT( * ) * 36
----
-36

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - + COUNT ( * ) * 36
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2724
SELECT - + 80 + + 76 + + COUNT( * ) AS col2, + 55 DIV - 16
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2724
SELECT - + 80 + + 76 + + COUNT ( * ) AS col2, + 55 / - 16
----
-3
-3

query I rowsort
SELECT ALL + 11 + 21 * 9 * 1 AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT - - 5 + + MAX( + CASE + 52 WHEN CAST( - - 62 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * + 90 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT - - 5 + + MAX ( + CASE + 52 WHEN CAST ( - - 62 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * + 90 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2727
SELECT DISTINCT + - 5 + + + 31 + CAST( NULL AS DECIMAL ) + 30 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + - 5 + + + 31 + CAST ( NULL AS REAL ) + 30 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL 4, + 95 * - + 31 * + - COUNT( * ) AS col0
----
4
2945

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL 4, + 95 * - + 31 * + - COUNT ( * ) AS col0
----
4
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - - SUM( - + 34 ) + + 39 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2729
SELECT - - SUM ( - + 34 ) + + 39 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT + 2 + + COUNT( * ) AS col1, + 94 AS col2
----
3
94

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT + 2 + + COUNT ( * ) AS col1, + 94 AS col2
----
3
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT + 23 + COUNT( * ) - + + CAST( - - 80 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 23 + COUNT ( * ) - + + CAST ( - - 80 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - SUM( ALL + 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2732
SELECT - SUM ( ALL + 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL COUNT( * ) + + 60 + 49
----
110

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL COUNT ( * ) + + 60 + 49
----
110

query I rowsort
SELECT + 75 + 48 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL 81 + - 45 + + 11 * + MAX( ( - ( 26 ) ) ) * + + 94 * - - 5
----
-134384

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL 81 + - 45 + + 11 * + MAX ( ( - ( 26 ) ) ) * + + 94 * - - 5
----
-134384

query I rowsort
SELECT DISTINCT + 67 * - 33
----
-2211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT - CAST( NULL AS SIGNED ) / - 73 / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT - CAST ( NULL AS INTEGER ) / - 73 / - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT CAST( - - 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2738
SELECT CAST ( - - 14 AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - 73 + + + ( - - 4 ) WHEN + 2 THEN NULL END, COALESCE ( 30, - 17 ) + + + MIN( - + 35 ) - - - 73 + - CASE 23 WHEN - 71 THEN COUNT( * ) END DIV + 15 - - 84, - COUNT( * ) * + 77 + + MAX( DISTINCT + 52 ) )
----
-225

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - 73 + + + ( - - 4 ) WHEN + 2 THEN NULL END, COALESCE ( 30, - 17 ) + + + MIN ( - + 35 ) - - - 73 + - CASE 23 WHEN - 71 THEN COUNT ( * ) END / + 15 - - 84, - COUNT ( * ) * + 77 + + MAX ( DISTINCT + 52 ) )
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT CAST( - + 49 AS SIGNED ) col1, 88 AS col1
----
-49
88

skipif mysql # not compatible
query II rowsort label-2740
SELECT CAST ( - + 49 AS INTEGER ) col1, 88 AS col1
----
-49
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT CAST( - - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( - - 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT( * ) + - - NULLIF ( - + 95, + COUNT( * ) * + 40 ) - COUNT( * ) AS col2
----
1726
-159

skipif mysql # not compatible
query II rowsort label-2742
SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT ( * ) + - - NULLIF ( - + 95, + COUNT ( * ) * + 40 ) - COUNT ( * ) AS col2
----
1726
-159

query I rowsort
SELECT ALL + 41 * + + 95
----
3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT - + COUNT( * ) * + CAST( 5 AS SIGNED ) + + - 1 + + 20 - + 77 * - ( - 93 ) * + 95
----
-680281

skipif mysql # not compatible
query I rowsort label-2744
SELECT - + COUNT ( * ) * + CAST ( 5 AS INTEGER ) + + - 1 + + 20 - + 77 * - ( - 93 ) * + 95
----
-680281

query I rowsort
SELECT ALL + - 37 col1
----
-37

query I rowsort
SELECT DISTINCT + 8 * - 34
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL - CAST( + - MIN( 21 ) AS SIGNED ) * - - 89 * + 61
----
114009

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - CAST ( + - MIN ( 21 ) AS INTEGER ) * - - 89 * + 61
----
114009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + - NULLIF ( + - 32, - - 9 * + CAST( NULL AS SIGNED ) ) + + 25 + COUNT( - CAST( 48 AS SIGNED ) ) + - - 7 + + SUM( DISTINCT + 81 ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + - NULLIF ( + - 32, - - 9 * + CAST ( NULL AS INTEGER ) ) + + 25 + COUNT ( - CAST ( 48 AS INTEGER ) ) + - - 7 + + SUM ( DISTINCT + 81 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT + + 4 * CASE - 11 WHEN - COUNT( * ) THEN + + NULLIF ( - 56, + 53 * 56 + - 81 ) WHEN - + COUNT( * ) * + SUM( DISTINCT + 87 ) / + - 17 THEN NULL END + - - SUM( + 14 ) AS col1, - 11 + ( 98 ) * 44
----
NULL
4301

skipif mysql # not compatible
query II rowsort label-2749
SELECT + + 4 * CASE - 11 WHEN - COUNT ( * ) THEN + + NULLIF ( - 56, + 53 * 56 + - 81 ) WHEN - + COUNT ( * ) * + SUM ( DISTINCT + 87 ) / + - 17 THEN NULL END + - - SUM ( + 14 ) AS col1, - 11 + ( 98 ) * 44
----
NULL
4301

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ( COUNT( * ) ) + + COUNT( DISTINCT - 56 )
----
2

skipif mysql # not compatible
query I rowsort label-2750
SELECT ( COUNT ( * ) ) + + COUNT ( DISTINCT - 56 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT ALL + 65 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 65 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT 77 * + COUNT( * ) * + 77 * ( + 92 )
----
545468

skipif mysql # not compatible
query I rowsort label-2752
SELECT 77 * + COUNT ( * ) * + 77 * ( + 92 )
----
545468

query I rowsort
SELECT ALL 93 + 46 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT 56 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-2754
SELECT 56 / + + 50
----
1

query I rowsort
SELECT 95 * + 50 AS col0
----
4750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2756
SELECT CASE - 17 WHEN 62 * - + 21 - - + 23 THEN NULL ELSE + 27 + - 96 * - 88 + + + CAST( NULL AS DECIMAL ) END * - 16 * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT CASE - 17 WHEN 62 * - + 21 - - + 23 THEN NULL ELSE + 27 + - 96 * - 88 + + + CAST ( NULL AS REAL ) END * - 16 * + - 70
----
NULL

query I rowsort
SELECT 5 * - 51 AS col2
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - 25 + - 52 * + 41 * NULLIF ( - - COUNT( * ), + + 23 / + - 3 - + + 26 * + + 16 ) AS col1
----
-2157

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - 25 + - 52 * + 41 * NULLIF ( - - COUNT ( * ), + + 23 / + - 3 - + + 26 * + + 16 ) AS col1
----
-2157

query I rowsort
SELECT 85 - + - 6 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2760
SELECT 12 col1, + COUNT( 35 ) + - CAST( NULL AS SIGNED ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2760
SELECT 12 col1, + COUNT ( 35 ) + - CAST ( NULL AS INTEGER ) AS col1
----
12
NULL

query I rowsort
SELECT 95 - 28 AS col0
----
67

query I rowsort
SELECT DISTINCT + 80 * + - 0 * + 28
----
0

query I rowsort
SELECT ALL - 26 - 11 AS col2
----
-37

query I rowsort
SELECT ALL ( - 71 ) - 53 * 59 AS col2
----
-3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2765
SELECT COUNT( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST( NULL AS SIGNED ) AS col0
----
-4030
NULL

skipif mysql # not compatible
query II rowsort label-2765
SELECT COUNT ( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST ( NULL AS INTEGER ) AS col0
----
-4030
NULL

query II rowsort
SELECT ALL 77 AS col1, + 91
----
77
91

query I rowsort
SELECT 94 + - 14
----
80

query I rowsort
SELECT 30 - - 64 - - 60 AS col2
----
154

query I rowsort
SELECT 4 + + 0 col0
----
4

query I rowsort
SELECT 10 * 37 col2
----
370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2771
SELECT NULLIF ( 88, + - CASE - + 36 WHEN - - CAST( 71 AS DECIMAL ) + - 72 THEN NULL ELSE - NULLIF ( + - 66, + 6 ) END + + 22 * - 89 * + - CASE + + 91 WHEN ( + - 91 ) * - 84 + - 90 THEN NULL ELSE - 57 END ) * + 55 + + 42 * 41 DIV + + 93 + + SUM( - ( + 23 ) ) * - 66
----
6376

skipif mysql # not compatible
query I rowsort label-2771
SELECT NULLIF ( 88, + - CASE - + 36 WHEN - - CAST ( 71 AS REAL ) + - 72 THEN NULL ELSE - NULLIF ( + - 66, + 6 ) END + + 22 * - 89 * + - CASE + + 91 WHEN ( + - 91 ) * - 84 + - 90 THEN NULL ELSE - 57 END ) * + 55 + + 42 * 41 / + + 93 + + SUM ( - ( + 23 ) ) * - 66
----
6376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2772
SELECT ALL - COUNT( DISTINCT + - CAST( - 62 AS DECIMAL ) ) AS col0, + SUM( - 67 ) AS col1
----
-1
-67

skipif mysql # not compatible
query II rowsort label-2772
SELECT ALL - COUNT ( DISTINCT + - CAST ( - 62 AS REAL ) ) AS col0, + SUM ( - 67 ) AS col1
----
-1
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT 27 / - ( + 4 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT 27 / - ( + 4 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 75 ) * - + 56 col0
----
-4200

query I rowsort
SELECT ALL 8 * - - 51
----
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT - AVG ( DISTINCT - + 12 ) / 26 * - + CAST( NULL AS SIGNED ) * + - 33 - 92 + + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT - AVG ( DISTINCT - + 12 ) / 26 * - + CAST ( NULL AS INTEGER ) * + - 33 - 92 + + 66 col1
----
NULL

query I rowsort
SELECT ALL - ( + + NULLIF ( + 83, - - 21 ) ) * - 96
----
7968

query I rowsort
SELECT + 44 * + 95 AS col2
----
4180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2779
SELECT 45 AS col1, CAST( 23 AS SIGNED ) col2
----
45
23

skipif mysql # not compatible
query II rowsort label-2779
SELECT 45 AS col1, CAST ( 23 AS INTEGER ) col2
----
45
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + ( 32 ) + + COUNT( * ) AS col2, 94 * ( + 6 )
----
33
564

skipif mysql # not compatible
query II rowsort label-2780
SELECT + ( 32 ) + + COUNT ( * ) AS col2, 94 * ( + 6 )
----
33
564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2781
SELECT + NULLIF ( - 91, 92 / - 16 * ( - 42 ) + + 39 + - MAX( DISTINCT - + 23 ) + + 90 ) AS col1, 74 + - - ( - CASE CASE - 24 WHEN SUM( DISTINCT - 30 ) THEN - - 17 * - COALESCE ( 33, + 55 ) + ( + + 52 ) ELSE NULL END WHEN - 44 * - 62 THEN - - 34 * 64 * 19 * - + CAST( + + 97 AS SIGNED ) / - - 48 + + AVG ( - 93 ) + - - 83 + - + 36 WHEN + 43 THEN - 84 - 51 END ) + - 23 col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2781
SELECT + NULLIF ( - 91, 92 / - 16 * ( - 42 ) + + 39 + - MAX ( DISTINCT - + 23 ) + + 90 ) AS col1, 74 + - - ( - CASE CASE - 24 WHEN SUM ( DISTINCT - 30 ) THEN - - 17 * - COALESCE ( 33, + 55 ) + ( + + 52 ) ELSE NULL END WHEN - 44 * - 62 THEN - - 34 * 64 * 19 * - + CAST ( + + 97 AS INTEGER ) / - - 48 + + AVG ( - 93 ) + - - 83 + - + 36 WHEN + 43 THEN - 84 - 51 END ) + - 23 col0
----
-91
NULL

query I rowsort
SELECT DISTINCT 97 + - 3 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - COUNT( * ) / + CASE + 9 WHEN - COUNT( - 96 ) + ( + 89 ) THEN 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT - COUNT ( * ) / + CASE + 9 WHEN - COUNT ( - 96 ) + ( + 89 ) THEN 26 END
----
NULL

query I rowsort
SELECT ALL + 85 + 49 * 10
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + MIN( 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2785
SELECT + MIN ( 69 ) AS col2
----
69

query I rowsort
SELECT ALL 81 + - 49
----
32

query I rowsort
SELECT DISTINCT 56 + + 10 + - 4 + + 6
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT + 43 - COUNT( * ) + + 24 * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 43 - COUNT ( * ) + + 24 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - 50 AS col2, - COUNT( * ) + 29 AS col1
----
-50
28

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 50 AS col2, - COUNT ( * ) + 29 AS col1
----
-50
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2790
SELECT ALL COUNT( * ) + + - NULLIF ( 86, - COALESCE ( CAST( CAST( 41 AS DECIMAL ) AS DECIMAL ), 92 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL COUNT ( * ) + + - NULLIF ( 86, - COALESCE ( CAST ( CAST ( 41 AS REAL ) AS REAL ), 92 ) ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2791
SELECT - 6, COALESCE ( 34, + + COALESCE ( + 8, 49 * 20 * 82 + + 50 + - 79 * - ( + 8 ) * - CAST( NULL AS SIGNED ), + + 69 ) DIV 68 + + NULLIF ( - - ( + 52 ), + 99 ) + + - 15 * + 89, - 39 ) AS col0
----
-6
34

skipif mysql # not compatible
query II rowsort label-2791
SELECT - 6, COALESCE ( 34, + + COALESCE ( + 8, 49 * 20 * 82 + + 50 + - 79 * - ( + 8 ) * - CAST ( NULL AS INTEGER ), + + 69 ) / 68 + + NULLIF ( - - ( + 52 ), + 99 ) + + - 15 * + 89, - 39 ) AS col0
----
-6
34

query I rowsort
SELECT ( - 96 ) + + 18 + - 57 * + 81
----
-4695

query I rowsort
SELECT ALL 69 - - 44 * + - 37
----
-1559

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 14 + - SUM( - 63 ) - + + MAX( - - 62 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-2794
SELECT 14 + - SUM ( - 63 ) - + + MAX ( - - 62 ) col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT 20 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT 20 / + 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT ALL 72 AS col1, COUNT( * ) * + 40
----
72
40

skipif mysql # not compatible
query II rowsort label-2796
SELECT ALL 72 AS col1, COUNT ( * ) * + 40
----
72
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - COUNT( - ( - 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2797
SELECT - COUNT ( - ( - 34 ) )
----
-1

query I rowsort
SELECT 30 + + 28 + + 81
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT COUNT( * ) DIV + 80 * - - 71
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( * ) / + 80 * - - 71
----
0

query I rowsort
SELECT 49 + - 77 * 80 AS col2
----
-6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2801
SELECT DISTINCT COALESCE ( - COALESCE ( ( - 76 ), - 70, + 84 - - - 34 ), + - 42 / - 41 + - CAST( - 95 AS SIGNED ) ) * - 67 + CASE 31 WHEN MIN( ALL - 20 ) THEN - + 62 WHEN COALESCE ( - 34, - 20 * + + 95, - 9 ) * + 43 + - 6 THEN + - 39 + COALESCE ( + - 19, - COUNT( ALL - 74 ) + + CAST( NULL AS DECIMAL ) ) * + MIN( ALL - 66 ) * + - 68 END - - COALESCE ( 44, + + 12, - + 20 * + - COALESCE ( - - 77, + COUNT( * ) ), - - 98 * - - 25 ) + - + 19 + - CAST( NULL AS SIGNED ) * ( - NULLIF ( + 12, 36 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT COALESCE ( - COALESCE ( ( - 76 ), - 70, + 84 - - - 34 ), + - 42 / - 41 + - CAST ( - 95 AS INTEGER ) ) * - 67 + CASE 31 WHEN MIN ( ALL - 20 ) THEN - + 62 WHEN COALESCE ( - 34, - 20 * + + 95, - 9 ) * + 43 + - 6 THEN + - 39 + COALESCE ( + - 19, - COUNT ( ALL - 74 ) + + CAST ( NULL AS REAL ) ) * + MIN ( ALL - 66 ) * + - 68 END - - COALESCE ( 44, + + 12, - + 20 * + - COALESCE ( - - 77, + COUNT ( * ) ), - - 98 * - - 25 ) + - + 19 + - CAST ( NULL AS INTEGER ) * ( - NULLIF ( + 12, 36 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2802
SELECT ALL + COUNT( * ) * 38 AS col0, - COUNT( DISTINCT 63 ) DIV + - ( NULLIF ( + - 81, - - 59 ) ) AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + COUNT ( * ) * 38 AS col0, - COUNT ( DISTINCT 63 ) / + - ( NULLIF ( + - 81, - - 59 ) ) AS col0
----
38
0

query I rowsort
SELECT 45 * + + 33 * - 49 col0
----
-72765

query II rowsort
SELECT 41, - 46 col0
----
41
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN - - 17 THEN 59 + - 94 + - + CASE + - COUNT( * ) WHEN + 36 THEN - + CAST( + 62 AS SIGNED ) * 4 + - ( + 21 ) * + 77 * - 15 + - 57 ELSE + 14 END + MAX( + 25 ) * - 28 / + 13 + + COUNT( ALL - + 49 ) * + - 39 * 99 * + - 75 * - 99 WHEN 49 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN - - 17 THEN 59 + - 94 + - + CASE + - COUNT ( * ) WHEN + 36 THEN - + CAST ( + 62 AS INTEGER ) * 4 + - ( + 21 ) * + 77 * - 15 + - 57 ELSE + 14 END + MAX ( + 25 ) * - 28 / + 13 + + COUNT ( ALL - + 49 ) * + - 39 * 99 * + - 75 * - 99 WHEN 49 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 85, 37 ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-2807
SELECT + 26 AS col1, + 1 DIV 79 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-2807
SELECT + 26 AS col1, + 1 / 79 AS col0
----
26
0

query I rowsort
SELECT + 11 * - 68 * + + 55 + - 28 + - 68 AS col1
----
-41236

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - COUNT( * ) * - 15 * 29 + 99 + - 44
----
491

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * - 15 * 29 + 99 + - 44
----
491

query II rowsort
SELECT ALL + 48 AS col0, - 99 col2
----
48
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT DISTINCT + COUNT( * ), + 69 + - - 82 * 69 AS col2
----
1
5727

skipif mysql # not compatible
query II rowsort label-2811
SELECT DISTINCT + COUNT ( * ), + 69 + - - 82 * 69 AS col2
----
1
5727

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - + CASE 70 WHEN - 81 * + + COUNT( * ) THEN 5 ELSE NULL END + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT - + CASE 70 WHEN - 81 * + + COUNT ( * ) THEN 5 ELSE NULL END + + 74 col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2813
SELECT - 96 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT - 96 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL + MIN( ALL + 24 ) * 88 * + - COUNT( * ) + 89 * 10 * ( - 73 ) * - 83 AS col0, 30 AS col2
----
5390398
30

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL + MIN ( ALL + 24 ) * 88 * + - COUNT ( * ) + 89 * 10 * ( - 73 ) * - 83 AS col0, 30 AS col2
----
5390398
30

query II rowsort
SELECT DISTINCT + 89 col1, 80 + - 99 + 88
----
89
69

query I rowsort
SELECT + 41 + 61 * + 89 AS col2
----
5470

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL 35 * COUNT( * ) * + 65 - + 14 AS col0
----
2261

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL 35 * COUNT ( * ) * + 65 - + 14 AS col0
----
2261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - CAST( NULL AS SIGNED ) * - + 11 AS col0, - 56 + + - 77
----
NULL
-133

skipif mysql # not compatible
query II rowsort label-2818
SELECT - CAST ( NULL AS INTEGER ) * - + 11 AS col0, - 56 + + - 77
----
NULL
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT MIN( DISTINCT + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2819
SELECT MIN ( DISTINCT + 60 ) AS col1
----
60

query II rowsort
SELECT DISTINCT ( 14 ), 94 AS col2
----
14
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + COUNT( * ) - 77 + 35 * - ( - 22 ) - + 75 * - 42 * + 36
----
114094

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + COUNT ( * ) - 77 + 35 * - ( - 22 ) - + 75 * - 42 * + 36
----
114094

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( DISTINCT - + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( DISTINCT - + 45 )
----
1

query I rowsort
SELECT + 16 * + + 9 * + + CASE + - ( + 20 ) WHEN AVG ( DISTINCT - - 67 ) + 87 * 95 * + 87 * 20 + - 67 - + 16 + - 52 THEN + 52 + + - 52 END
----
NULL

query I rowsort
SELECT + 28 + 31 - 10 * + 19 * - + ( - 37 ) AS col1
----
-6971

query II rowsort
SELECT - ( 20 ) AS col1, ( 21 ) col1
----
-20
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2826
SELECT + 80 * - + 66, CAST( - - MAX( DISTINCT - 33 ) AS SIGNED ) col1
----
-5280
-33

skipif mysql # not compatible
query II rowsort label-2826
SELECT + 80 * - + 66, CAST ( - - MAX ( DISTINCT - 33 ) AS INTEGER ) col1
----
-5280
-33

query I rowsort
SELECT + 98 - 56
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2828
SELECT - 4 DIV - 30 * + COUNT( * ) AS col1, 99 * - + NULLIF ( + 34, - COUNT( * ) ) AS col2
----
0
-3366

skipif mysql # not compatible
query II rowsort label-2828
SELECT - 4 / - 30 * + COUNT ( * ) AS col1, 99 * - + NULLIF ( + 34, - COUNT ( * ) ) AS col2
----
0
-3366

query I rowsort
SELECT + 74 - + 82
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL CASE + - 95 WHEN + + ( - ( 77 ) ) THEN + NULLIF ( - + ( 40 ), + - NULLIF ( + + 66, - AVG ( DISTINCT + 25 ) * + COUNT( * ) - 12 ) / - - 89 * + 4 * - ( + - 29 ) - + - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL CASE + - 95 WHEN + + ( - ( 77 ) ) THEN + NULLIF ( - + ( 40 ), + - NULLIF ( + + 66, - AVG ( DISTINCT + 25 ) * + COUNT ( * ) - 12 ) / - - 89 * + 4 * - ( + - 29 ) - + - COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT - 46 * - MAX( DISTINCT - 38 ), 89 AS col2
----
-1748
89

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - 46 * - MAX ( DISTINCT - 38 ), 89 AS col2
----
-1748
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + 10 + COUNT( - 57 )
----
11

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 10 + COUNT ( - 57 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + + 4 + - 6 + MAX( DISTINCT + 4 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2833
SELECT + + 4 + - 6 + MAX ( DISTINCT + 4 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT - 87 - + 19 DIV - COUNT( ALL 47 ) + - 6 + - 75
----
-149

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 87 - + 19 / - COUNT ( ALL 47 ) + - 6 + - 75
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL 0 DIV + 15 DIV + - 8 + + - 78 + + 23
----
-55

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL 0 / + 15 / + - 8 + + - 78 + + 23
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + - NULLIF ( - 51, - 19 ) * 61 + + - COUNT( * ) * + 58 AS col2
----
3053

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + - NULLIF ( - 51, - 19 ) * 61 + + - COUNT ( * ) * + 58 AS col2
----
3053

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - 14 DIV - ( + 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 14 / - ( + 34 ) AS col0
----
0

query I rowsort
SELECT + 53 + + 69
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2839
SELECT ALL ( - + CAST( NULL AS DECIMAL ) ) / - 30 + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL ( - + CAST ( NULL AS REAL ) ) / - 30 + - 32 AS col1
----
NULL

query I rowsort
SELECT ALL - 55 / - - CASE 58 WHEN - 72 THEN - 83 + + 33 ELSE NULL END + 30
----
NULL

query I rowsort
SELECT + 42 + - 42
----
0

query I rowsort
SELECT DISTINCT ( 43 ) * - 81 - + + 15 AS col2
----
-3498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT - ( - 69 ) + CAST( 86 AS SIGNED ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-2843
SELECT - ( - 69 ) + CAST ( 86 AS INTEGER ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT - 69 * - COUNT( * ) AS col2, NULLIF ( 21, + + AVG ( ( - + 41 ) ) / + COUNT( * ) * - - 45 ) * + - COUNT( * )
----
69
-21

skipif mysql # not compatible
query II rowsort label-2844
SELECT - 69 * - COUNT ( * ) AS col2, NULLIF ( 21, + + AVG ( ( - + 41 ) ) / + COUNT ( * ) * - - 45 ) * + - COUNT ( * )
----
69
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + COUNT( * ) * + 93 * 72 + + + ( + - CASE + + 41 WHEN + - ( + + NULLIF ( - + 60, - 4 ) ) * - 10 + + - 42 * + 96 + + NULLIF ( + 31, CAST( NULL AS SIGNED ) ) + + 52 + 45 + - - 11 * + 47 THEN NULL ELSE 71 + + 43 + - + 36 + 97 * COUNT( * ) END ) + - - 25 * + COUNT( * ) + + 14 + 29 AS col1
----
6589

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( * ) * + 93 * 72 + + + ( + - CASE + + 41 WHEN + - ( + + NULLIF ( - + 60, - 4 ) ) * - 10 + + - 42 * + 96 + + NULLIF ( + 31, CAST ( NULL AS INTEGER ) ) + + 52 + 45 + - - 11 * + 47 THEN NULL ELSE 71 + + 43 + - + 36 + 97 * COUNT ( * ) END ) + - - 25 * + COUNT ( * ) + + 14 + 29 AS col1
----
6589

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT NULLIF ( - + 35, + NULLIF ( - 87, - 54 + + COUNT( * ) * - + 44 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2846
SELECT NULLIF ( - + 35, + NULLIF ( - 87, - 54 + + COUNT ( * ) * - + 44 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT NULLIF ( COUNT( ALL ( NULLIF ( + 24, + 62 ) ) ), + - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-2847
SELECT NULLIF ( COUNT ( ALL ( NULLIF ( + 24, + 62 ) ) ), + - 69 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT + 17 DIV COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2848
SELECT + 17 / COUNT ( * ) AS col2
----
17

query I rowsort
SELECT - ( - - 29 ) + + - 81 AS col0
----
-110

query I rowsort
SELECT + 34 - - + 55
----
89

query I rowsort
SELECT + 93 * - + 11 AS col2
----
-1023

query I rowsort
SELECT 67 * ( + 85 ) + 87
----
5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT - 81 DIV 56 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 81 / 56 * COUNT ( * )
----
-1

query I rowsort
SELECT - 98 + + 32
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT SUM( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-2855
SELECT SUM ( ALL - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + 42 * + - COUNT( * ) + + + CASE - 98 WHEN + COUNT( * ) THEN NULL WHEN + 11 THEN - 39 + - 65 END + - - ( - 61 ) * 84 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + 42 * + - COUNT ( * ) + + + CASE - 98 WHEN + COUNT ( * ) THEN NULL WHEN + 11 THEN - 39 + - 65 END + - - ( - 61 ) * 84 * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 74 + 1 * - - 35 * + + 36 + + - COUNT( * ) AS col0
----
1333

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 74 + 1 * - - 35 * + + 36 + + - COUNT ( * ) AS col0
----
1333

query I rowsort
SELECT 49 * 45 AS col2
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT 55 + MAX( DISTINCT 50 ) + 61 DIV - 42 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2859
SELECT 55 + MAX ( DISTINCT 50 ) + 61 / - 42 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT COUNT( ALL - 57 ) + + 61 * 41
----
2502

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT COUNT ( ALL - 57 ) + + 61 * 41
----
2502

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT COUNT( * ) + - COUNT( * ) * - 22 + + 34 + + 45 + + 70
----
172

skipif mysql # not compatible
query I rowsort label-2861
SELECT COUNT ( * ) + - COUNT ( * ) * - 22 + + 34 + + 45 + + 70
----
172

query I rowsort
SELECT ALL - ( - - 44 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT ALL + ( - 17 ) + + 48 DIV + 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + ( - 17 ) + + 48 / + 5 AS col1
----
-8

query I rowsort
SELECT 21 * + - 18 col0
----
-378

query I rowsort
SELECT ALL - 87 + 31 * + 65 AS col2
----
1928

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - - NULLIF ( - - NULLIF ( - 86, + ( + 79 ) / - - 99 ), - - COUNT( * ) - - + 72 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - - NULLIF ( - - NULLIF ( - 86, + ( + 79 ) / - - 99 ), - - COUNT ( * ) - - + 72 ) AS col0
----
-86

query II rowsort
SELECT + 94 AS col1, 90 * - 69
----
94
-6210

query II rowsort
SELECT ALL - - 43 col1, 67 - + - 53 AS col0
----
43
120

query II rowsort
SELECT ALL 48 + + - 28 * 0 AS col0, 30 AS col0
----
48
30

query I rowsort
SELECT - 87 * - 7 + 88 + - - 34
----
731

query I rowsort
SELECT 46 - + + 4
----
42

query II rowsort
SELECT ALL - + 70, - 16 + ( ( - ( + 53 ) ) ) - + 38 AS col0
----
-70
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT 35 * + NULLIF ( - + CAST( NULL AS SIGNED ), + - ( - + 17 ) ) + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT 35 * + NULLIF ( - + CAST ( NULL AS INTEGER ), + - ( - + 17 ) ) + 11
----
NULL

query I rowsort
SELECT + 54 * + 39 AS col0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL + - CASE - 32 WHEN 43 THEN NULL WHEN + - NULLIF ( + MIN( + 92 ), + + 22 * + 8 ) THEN + 21 * + + 76 ELSE - 25 * + 8 + + 80 + 3 END * 41 + - 57 * - 49 * + COUNT( * ) * + - 50 * + 76 AS col0
----
-10608603

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + - CASE - 32 WHEN 43 THEN NULL WHEN + - NULLIF ( + MIN ( + 92 ), + + 22 * + 8 ) THEN + 21 * + + 76 ELSE - 25 * + 8 + + 80 + 3 END * 41 + - 57 * - 49 * + COUNT ( * ) * + - 50 * + 76 AS col0
----
-10608603

query I rowsort
SELECT 69 * + + 21
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT + 10 * 24 - + COUNT( * ) + + 82 - + 62 AS col0
----
259

skipif mysql # not compatible
query I rowsort label-2877
SELECT + 10 * 24 - + COUNT ( * ) + + 82 - + 62 AS col0
----
259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL - CAST( COALESCE ( 32, + + 99 ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - CAST ( COALESCE ( 32, + + 99 ) AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + MAX( - 94 ) * - 63 + + 27 AS col1
----
5949

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + MAX ( - 94 ) * - 63 + + 27 AS col1
----
5949

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT ALL - MAX( - 62 ) AS col2, 89 + - 53
----
62
36

skipif mysql # not compatible
query II rowsort label-2880
SELECT ALL - MAX ( - 62 ) AS col2, 89 + - 53
----
62
36

query I rowsort
SELECT 14 * - 30 * + + 30 * + 27
----
-340200

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL 47 * NULLIF ( SUM( DISTINCT + ( - 12 ) ), + + 47 * + 16 )
----
-564

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL 47 * NULLIF ( SUM ( DISTINCT + ( - 12 ) ), + + 47 * + 16 )
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - COUNT( * ) * + 80 - 85
----
-165

skipif mysql # not compatible
query I rowsort label-2883
SELECT - COUNT ( * ) * + 80 - 85
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - COUNT( + 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - COUNT ( + 81 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2885
SELECT DISTINCT + 63 * - CAST( COUNT( * ) AS SIGNED ) * + - 35 AS col0, NULLIF ( - 87, - - 19 ) * + 91 + - COUNT( * ) * MAX( ALL + - CAST( + 23 AS SIGNED ) ) * + SUM( ALL - - 81 )
----
2205
-6054

skipif mysql # not compatible
query II rowsort label-2885
SELECT DISTINCT + 63 * - CAST ( COUNT ( * ) AS INTEGER ) * + - 35 AS col0, NULLIF ( - 87, - - 19 ) * + 91 + - COUNT ( * ) * MAX ( ALL + - CAST ( + 23 AS INTEGER ) ) * + SUM ( ALL - - 81 )
----
2205
-6054

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT 49 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT 49 / 91 AS col2
----
0

query II rowsort
SELECT ALL + 73 + + 74 AS col1, + ( + 12 ) AS col2
----
147
12

query I rowsort
SELECT 29 + + + 46
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT 45 * 55 * + 17 * + MIN( ALL + 11 ) col1
----
462825

skipif mysql # not compatible
query I rowsort label-2889
SELECT 45 * 55 * + 17 * + MIN ( ALL + 11 ) col1
----
462825

query I rowsort
SELECT ALL - 2 + + 89 + 27 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL - CAST( - + 76 AS SIGNED ) * + 67 + - + 84 - + - 50 - - ( + COALESCE ( + + 39, - 1, - + ( 83 ) ) )
----
5097

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - CAST ( - + 76 AS INTEGER ) * + 67 + - + 84 - + - 50 - - ( + COALESCE ( + + 39, - 1, - + ( 83 ) ) )
----
5097

query I rowsort
SELECT 36 + + + 4
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + + 36, - - 1 * + 28 + + 51 + + COUNT( * ) ) * 55
----
1980

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + NULLIF ( + + 36, - - 1 * + 28 + + 51 + + COUNT ( * ) ) * 55
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT + - 91 - - NULLIF ( CAST( NULL AS SIGNED ), 96 ) * + - 76 + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + - 91 - - NULLIF ( CAST ( NULL AS INTEGER ), 96 ) * + - 76 + - 55 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 0, 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + COUNT( - 46 ) - - 76
----
77

skipif mysql # not compatible
query I rowsort label-2896
SELECT + COUNT ( - 46 ) - - 76
----
77

query I rowsort
SELECT ( - + 52 ) * - + 74 AS col1
----
3848

query I rowsort
SELECT 5 - + 99 - 35
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - - COUNT( 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - - COUNT ( 95 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL - CASE - - 81 WHEN - COUNT( * ) * + - 16 * - 57 * + 51 + - + 63 / + MIN( - + 9 ) * - 65 / + COUNT( * ) - + + 21 + - 91 THEN NULL WHEN + ( - + 91 ) THEN - 55 + - + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL - CASE - - 81 WHEN - COUNT ( * ) * + - 16 * - 57 * + 51 + - + 63 / + MIN ( - + 9 ) * - 65 / + COUNT ( * ) - + + 21 + - 91 THEN NULL WHEN + ( - + 91 ) THEN - 55 + - + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT - 51 + + 60
----
9

query I rowsort
SELECT ALL + + 49 * + - 14 - - - 89
----
-775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT COALESCE ( + CAST( NULL AS SIGNED ), 55 * 5 * + ( 84 ) ) * - 53 * - 89 * + + 19 + - 96 + + COUNT( * )
----
2070291205

skipif mysql # not compatible
query I rowsort label-2903
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), 55 * 5 * + ( 84 ) ) * - 53 * - 89 * + + 19 + - 96 + + COUNT ( * )
----
2070291205

query I rowsort
SELECT 61 * + 83 + 54
----
5117

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT 4 DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT 4 / + 28 AS col2
----
0

query I rowsort
SELECT 49 * - NULLIF ( - 22, - + 34 - + - 23 ) AS col2
----
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL 63 DIV - + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 63 / - + 52 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 32 + + 30 * + 79
----
2338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT + 15 + + COUNT( * ) * - + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2909
SELECT + 15 + + COUNT ( * ) * - + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
14
NULL

query II rowsort
SELECT 21, 96 AS col0
----
21
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT - CASE + 42 WHEN - 54 THEN + 81 DIV + 34 + - CASE - COALESCE ( - 1, + 43 ) WHEN - COALESCE ( + - 39, + SUM( ALL 53 ) ) THEN - 17 ELSE + + 56 END + + 40 - CAST( NULL AS SIGNED ) DIV 86 ELSE - 40 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2911
SELECT - CASE + 42 WHEN - 54 THEN + 81 / + 34 + - CASE - COALESCE ( - 1, + 43 ) WHEN - COALESCE ( + - 39, + SUM ( ALL 53 ) ) THEN - 17 ELSE + + 56 END + + 40 - CAST ( NULL AS INTEGER ) / 86 ELSE - 40 END AS col1
----
40

query I rowsort
SELECT ALL + 42 + - + 69 col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - MIN( 74 ) + + COALESCE ( - CAST( NULL AS SIGNED ) + 67, 1 * - ( + 84 ) + 25, 93 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-2913
SELECT - MIN ( 74 ) + + COALESCE ( - CAST ( NULL AS INTEGER ) + 67, 1 * - ( + 84 ) + 25, 93 ) AS col1
----
-133

query I rowsort
SELECT ALL NULLIF ( - 27, 51 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL + 15 * COUNT( + 54 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + 15 * COUNT ( + 54 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT ALL - 42 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - 42 / + 70
----
0

query I rowsort
SELECT - 55 * + 42 AS col0
----
-2310

query I rowsort
SELECT DISTINCT ( 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL MAX( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL MAX ( + 18 ) AS col2
----
18

query I rowsort
SELECT - 7 + - 20 * - ( - 73 ) AS col0
----
-1467

query I rowsort
SELECT - 19 * - 9 AS col2
----
171

query I rowsort
SELECT + 60 + 60
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT ( CASE CAST( NULL AS SIGNED ) WHEN 68 THEN NULL WHEN 72 THEN 82 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT ( CASE CAST ( NULL AS INTEGER ) WHEN 68 THEN NULL WHEN 72 THEN 82 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT CASE - 65 WHEN 44 THEN COUNT( + 69 ) WHEN 51 / - 5 THEN 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT CASE - 65 WHEN 44 THEN COUNT ( + 69 ) WHEN 51 / - 5 THEN 43 ELSE NULL END
----
NULL

query I rowsort
SELECT - 65 * + 58 AS col2
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + 73 DIV 14 - - 3
----
8

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 73 / 14 - - 3
----
8

query I rowsort
SELECT ( - ( - 85 ) ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT ALL + CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( - 60 AS INTEGER )
----
-60

query I rowsort
SELECT + 87 * 99
----
8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT ALL + 76 * + COALESCE ( - 7, 27 + 87 DIV 67 ) + + COUNT( * ) * - 29
----
-561

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + 76 * + COALESCE ( - 7, 27 + 87 / 67 ) + + COUNT ( * ) * - 29
----
-561

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT - COALESCE ( + 9, 46 ) * 7 - + 87 DIV - 54 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2931
SELECT - COALESCE ( + 9, 46 ) * 7 - + 87 / - 54 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL + CASE 24 WHEN - 1 - 10 THEN - CAST( - 65 AS SIGNED ) * MAX( DISTINCT - 30 ) ELSE 54 END AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + CASE 24 WHEN - 1 - 10 THEN - CAST ( - 65 AS INTEGER ) * MAX ( DISTINCT - 30 ) ELSE 54 END AS col1
----
54

query I rowsort
SELECT DISTINCT - 15 * - 76 + 68
----
1208

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT + COUNT( * ) * - 40 + CASE + 84 WHEN - 91 THEN 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + COUNT ( * ) * - 40 + CASE + 84 WHEN - 91 THEN 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT + NULLIF ( + COUNT( * ), + 8 + 95 * - 51 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2935
SELECT + NULLIF ( + COUNT ( * ), + 8 + 95 * - 51 ) col0
----
1

query I rowsort
SELECT ALL + ( 18 ) * 25 + 21
----
471

query I rowsort
SELECT ALL - 99 * 67 + - 44 * - 40 col2
----
-4873

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL COUNT( * ) * 96 + 0 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL COUNT ( * ) * 96 + 0 AS col1
----
96

query I rowsort
SELECT 18 * + 37 + 50 AS col1
----
716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT + 4 * + NULLIF ( ( 43 ) * - COUNT( * ), - 24 * CAST( NULL AS SIGNED ) ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-2940
SELECT + 4 * + NULLIF ( ( 43 ) * - COUNT ( * ), - 24 * CAST ( NULL AS INTEGER ) ) AS col1
----
-172

query I rowsort
SELECT + 21 + 15
----
36

query I rowsort
SELECT + 90 * 57 - 69 * + 87
----
-873

query I rowsort
SELECT ALL 40 * + 41 + 34 AS col1
----
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT + CASE 70 WHEN AVG ( DISTINCT 0 ) - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 64 END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2944
SELECT + CASE 70 WHEN AVG ( DISTINCT 0 ) - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 64 END AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT + 85 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT + 85 / + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT COUNT( * ) * 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT COUNT ( * ) * 55 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL + ( CASE 34 WHEN COALESCE ( COUNT( * ), + COUNT( * ), - 97 ) * 4 THEN NULL ELSE ( ( + 47 ) ) END ) * + ( - 28 - 30 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + ( CASE 34 WHEN COALESCE ( COUNT ( * ), + COUNT ( * ), - 97 ) * 4 THEN NULL ELSE ( ( + 47 ) ) END ) * + ( - 28 - 30 ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( 17, 81 * + 67 )
----
17

query I rowsort
SELECT - ( + 16 ) AS col0
----
-16

query I rowsort
SELECT - 40 * NULLIF ( 1, - 38 )
----
-40

query I rowsort
SELECT ALL 10 * 31 AS col1
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + 84 + + ( COUNT( * ) + 72 * + COUNT( * ) ) * - 56 AS col0
----
-4004

skipif mysql # not compatible
query I rowsort label-2952
SELECT + 84 + + ( COUNT ( * ) + 72 * + COUNT ( * ) ) * - 56 AS col0
----
-4004

query I rowsort
SELECT DISTINCT COALESCE ( 94, 3 ) AS col0
----
94

query I rowsort
SELECT + - 53 * + 56
----
-2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT - - COALESCE ( CASE - 26 WHEN - 90 + 17 DIV - 7 THEN - 65 ELSE 70 * - COUNT( * ) - COUNT( * ) * - 3 END, + ( + 5 ), 9 DIV COUNT( ALL - 64 ), 21 + 20 ) * + 50
----
-3350

skipif mysql # not compatible
query I rowsort label-2955
SELECT - - COALESCE ( CASE - 26 WHEN - 90 + 17 / - 7 THEN - 65 ELSE 70 * - COUNT ( * ) - COUNT ( * ) * - 3 END, + ( + 5 ), 9 / COUNT ( ALL - 64 ), 21 + 20 ) * + 50
----
-3350

query I rowsort
SELECT + + 78 - 33 * 88 col1
----
-2826

query I rowsort
SELECT - - 4 + 93 * + 65 AS col1
----
6049

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT - COUNT( * ) * + ( + SUM( - 58 ) * - 46 )
----
-2668

skipif mysql # not compatible
query I rowsort label-2958
SELECT - COUNT ( * ) * + ( + SUM ( - 58 ) * - 46 )
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - + COUNT( * ) + 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2959
SELECT - + COUNT ( * ) + 82 AS col2
----
81

query I rowsort
SELECT DISTINCT - 65 * 51
----
-3315

query I rowsort
SELECT - - 54 * 86 AS col0
----
4644

query I rowsort
SELECT + 0 + 66 * + 21 col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - MAX( DISTINCT - 78 ) - + 15 * 91
----
-1287

skipif mysql # not compatible
query I rowsort label-2963
SELECT - MAX ( DISTINCT - 78 ) - + 15 * 91
----
-1287

query I rowsort
SELECT ALL - + 82 * + 36 AS col2
----
-2952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT + COUNT( * ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) / 72
----
0

query I rowsort
SELECT - 13 + 42 AS col2
----
29

query I rowsort
SELECT - + 46 * + ( + 51 - - 81 )
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT + + 69 + + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + + 69 + + COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL + + 85 DIV + 30 + 60 * - NULLIF ( 24 + + 94, + 29 * - ( + 49 ) ) AS col0
----
-7078

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + + 85 / + 30 + 60 * - NULLIF ( 24 + + 94, + 29 * - ( + 49 ) ) AS col0
----
-7078

query I rowsort
SELECT - 58 + 73 + 41
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + MAX( ALL 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + MAX ( ALL 68 ) AS col0
----
68

query I rowsort
SELECT DISTINCT 63 + 38 col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT 41 DIV - 24 + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2973
SELECT 41 / - 24 + + 9 AS col2
----
8

query I rowsort
SELECT ALL - ( + COALESCE ( - 16, + 72, 99 ) )
----
16

query I rowsort
SELECT 29 + 84
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 68 + - - 27 DIV + 14 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2976
SELECT 68 + - - 27 / + 14 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL 4 * - 9 * - MAX( 23 ) AS col0
----
828

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 4 * - 9 * - MAX ( 23 ) AS col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - MAX( DISTINCT - 88 ) * + 5 AS col0
----
440

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - MAX ( DISTINCT - 88 ) * + 5 AS col0
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT 58 * - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2979
SELECT 58 * - COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - ( + ( NULLIF ( CASE - ( 36 ) WHEN + 74 / 8 THEN NULL WHEN + 13 THEN - 87 END, - COUNT( * ) * + COUNT( * ) + 65 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - ( + ( NULLIF ( CASE - ( 36 ) WHEN + 74 / 8 THEN NULL WHEN + 13 THEN - 87 END, - COUNT ( * ) * + COUNT ( * ) + 65 ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT - 24 - - 69 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - 24 - - 69 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 83 * 99 AS col0
----
8217

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2983
SELECT + 26 * + + 64 + CAST( NULL AS DECIMAL ) * - COUNT( * ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 26 * + + 64 + CAST ( NULL AS REAL ) * - COUNT ( * ) + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL - - CAST( CASE CAST( NULL AS SIGNED ) WHEN + 6 THEN + 19 * + 32 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - - CAST ( CASE CAST ( NULL AS INTEGER ) WHEN + 6 THEN + 19 * + 32 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 20 * - 96 + 90 col1
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - COUNT( DISTINCT - + 83 ) * - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2986
SELECT - COUNT ( DISTINCT - + 83 ) * - 27 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT COUNT( * ) + - 2 * 95 AS col0
----
-189

skipif mysql # not compatible
query I rowsort label-2987
SELECT COUNT ( * ) + - 2 * 95 AS col0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL + 88 DIV 44 col0
----
2

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL + 88 / 44 col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT CAST( - 18 AS SIGNED ) + 6
----
-12

skipif mysql # not compatible
query I rowsort label-2989
SELECT CAST ( - 18 AS INTEGER ) + 6
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - 95 * 21 + + MAX( NULLIF ( ( 68 ), - 60 ) )
----
-1927

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 95 * 21 + + MAX ( NULLIF ( ( 68 ), - 60 ) )
----
-1927

query I rowsort
SELECT + 65 + - 95
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT CAST( - - 94 AS SIGNED ) + - 66 * 29
----
-1820

skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( - - 94 AS INTEGER ) + - 66 * 29
----
-1820

query I rowsort
SELECT ALL 87 * 75
----
6525

query I rowsort
SELECT + 31 * + 31 + + 92 AS col1
----
1053

query I rowsort
SELECT DISTINCT 10 * ( 23 )
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL 14 + CAST( + ( - 69 ) AS SIGNED ) * - NULLIF ( - 73, MIN( ALL - 49 ) ) AS col1
----
-5023

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 14 + CAST ( + ( - 69 ) AS INTEGER ) * - NULLIF ( - 73, MIN ( ALL - 49 ) ) AS col1
----
-5023

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL COUNT( * ) + CASE 51 WHEN 2 THEN NULL WHEN - 62 - 31 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL COUNT ( * ) + CASE 51 WHEN 2 THEN NULL WHEN - 62 - 31 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 98 * + - 89 AS col2
----
8722

query I rowsort
SELECT + 81 + - - 24 + - 74
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - 11 + 72 + - COALESCE ( + 62, + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - 11 + 72 + - COALESCE ( + 62, + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ( + - 4 )
----
-4

query I rowsort
SELECT DISTINCT ( - - 76 ) + + COALESCE ( + ( + 48 ), + 17, 56 ) * - 53
----
-2468

query I rowsort
SELECT ALL - ( + 68 ) * + + 54 + - 55
----
-3727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT COALESCE ( + 86, - SUM( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) ) + 90 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-3004
SELECT COALESCE ( + 86, - SUM ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) ) + 90 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT SUM( + 26 ) + 6
----
32

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT SUM ( + 26 ) + 6
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL ( - MAX( - 56 ) ) + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL ( - MAX ( - 56 ) ) + COUNT ( * ) AS col1
----
57

query II rowsort
SELECT DISTINCT 49 col2, 43 AS col1
----
49
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT 42 DIV + NULLIF ( + - 34, 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-3008
SELECT 42 / + NULLIF ( + - 34, 21 )
----
-1

query I rowsort
SELECT ALL + 18 + + 7
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL NULLIF ( - ( SUM( ALL - ( + NULLIF ( + 51, CAST( NULL AS SIGNED ) - 35 ) ) ) ), 2 ) * - 77 AS col2
----
-3927

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL NULLIF ( - ( SUM ( ALL - ( + NULLIF ( + 51, CAST ( NULL AS INTEGER ) - 35 ) ) ) ), 2 ) * - 77 AS col2
----
-3927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT 55 DIV - COALESCE ( - 90, ( + 24 ), 8 * 76 + AVG ( DISTINCT 44 ) * AVG ( ALL - NULLIF ( - 89, - 98 ) ) ) - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3012
SELECT 55 / - COALESCE ( - 90, ( + 24 ), 8 * 76 + AVG ( DISTINCT 44 ) * AVG ( ALL - NULLIF ( - 89, - 98 ) ) ) - 41 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT DISTINCT + ( - COUNT( - + CAST( - 96 AS SIGNED ) ) ) * 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + ( - COUNT ( - + CAST ( - 96 AS INTEGER ) ) ) * 5 AS col0
----
-5

query I rowsort
SELECT ( + 56 ) + - + COALESCE ( 79, ( + 71 ) * - 18 ) * - CASE + 60 WHEN + 84 THEN - 4 * 51 END
----
NULL

query I rowsort
SELECT ( NULLIF ( + + 16, + 57 ) ) * + 34 AS col0
----
544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT + CASE WHEN NOT - NULLIF ( + 31, CAST( NULL AS SIGNED ) ) IS NOT NULL THEN 90 / - 44 END * - 28 + 24 * 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT + CASE WHEN NOT - NULLIF ( + 31, CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN 90 / - 44 END * - 28 + 24 * 41 AS col0
----
NULL

query I rowsort
SELECT ALL - 55 - + 39 - - 18 * - 5
----
-184

query I rowsort
SELECT DISTINCT ( 66 ) * 15 AS col0
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT 92 - + MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT 92 - + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT ALL + 83 DIV - 15
----
-5

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + 83 / - 15
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT DISTINCT - COALESCE ( - 45, - - 2 + 4, - CAST( - 60 AS SIGNED ) * + 58 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - COALESCE ( - 45, - - 2 + 4, - CAST ( - 60 AS INTEGER ) * + 58 ) AS col0
----
45

query II rowsort
SELECT DISTINCT - 15 AS col2, + 48 col0
----
-15
48

query I rowsort
SELECT 93 * + 21 AS col2
----
1953

query II rowsort
SELECT + 42 AS col1, + 56 col0
----
42
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL + - 32 * - - COALESCE ( + 13, 64, + CAST( NULL AS SIGNED ) + + 56 * + 70 ) AS col1
----
-416

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - 32 * - - COALESCE ( + 13, 64, + CAST ( NULL AS INTEGER ) + + 56 * + 70 ) AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + CASE + MAX( - 88 ) WHEN + 79 THEN 6 ELSE NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT + CASE + MAX ( - 88 ) WHEN + 79 THEN 6 ELSE NULL END * 13
----
NULL

query I rowsort
SELECT ALL + - 15 * + 45 * - - 50 + + 62
----
-33688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT - - CASE - + ( NULLIF ( - CAST( + 1 AS SIGNED ), - 78 + + ( + MAX( ALL 21 ) ) / - NULLIF ( ( CAST( COUNT( * ) AS SIGNED ) ), 97 ) ) ) WHEN 45 * 39 THEN + MIN( DISTINCT 56 ) + 28 END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - - CASE - + ( NULLIF ( - CAST ( + 1 AS INTEGER ), - 78 + + ( + MAX ( ALL 21 ) ) / - NULLIF ( ( CAST ( COUNT ( * ) AS INTEGER ) ), 97 ) ) ) WHEN 45 * 39 THEN + MIN ( DISTINCT 56 ) + 28 END + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL + COUNT( * ) * + - 39 * + + 72 AS col0
----
-2808

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + COUNT ( * ) * + - 39 * + + 72 AS col0
----
-2808

query I rowsort
SELECT DISTINCT + 9 + 72 + CASE + NULLIF ( 4, - 79 ) WHEN 73 THEN NULL ELSE ( 34 ) END + 44
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT ALL + - CAST( NULL AS SIGNED ) * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + - CAST ( NULL AS INTEGER ) * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL 55 + - COUNT( * ) + + 72 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 55 + - COUNT ( * ) + + 72 AS col2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT DISTINCT + 7 AS col2, - COALESCE ( COUNT( * ), + 57 )
----
7
-1

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT + 7 AS col2, - COALESCE ( COUNT ( * ), + 57 )
----
7
-1

query I rowsort
SELECT ALL - + 27 + 49 * - 94 * + 26 AS col2
----
-119783

query I rowsort
SELECT + 68 + + 8 + - 53 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT 84 + COUNT( * ) + + + 8 DIV - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3036
SELECT 84 + COUNT ( * ) + + + 8 / - COUNT ( * )
----
77

query I rowsort
SELECT + 52 * + 60
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + 95 + + - COALESCE ( - COUNT( * ), + 23 )
----
96

skipif mysql # not compatible
query I rowsort label-3038
SELECT + 95 + + - COALESCE ( - COUNT ( * ), + 23 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - - ( SUM( DISTINCT + ( 8 ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3039
SELECT - - ( SUM ( DISTINCT + ( 8 ) ) ) AS col0
----
8

query I rowsort
SELECT 61 - 79
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL + 71 DIV + 70 col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + 71 / + 70 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT ALL + + NULLIF ( + CAST( NULL AS SIGNED ), - ( 87 ) * 41 ) / + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + + NULLIF ( + CAST ( NULL AS INTEGER ), - ( 87 ) * 41 ) / + 64 AS col1
----
NULL

query I rowsort
SELECT ALL 62 * + - 79
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + 31 + + + 77 + - SUM( DISTINCT 10 ) * CASE WHEN ( 69 + CASE + 38 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( + 73, + 22 ) THEN 29 ELSE NULL END ) < NULL THEN 52 * 59 WHEN NULL NOT BETWEEN - ( 96 ) * - 4 - - 71 AND ( 2 * NULLIF ( + 48, 94 ) ) THEN - 38 ELSE 83 END AS col0
----
-722

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 31 + + + 77 + - SUM ( DISTINCT 10 ) * CASE WHEN ( 69 + CASE + 38 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( + 73, + 22 ) THEN 29 ELSE NULL END ) < NULL THEN 52 * 59 WHEN NULL NOT BETWEEN - ( 96 ) * - 4 - - 71 AND ( 2 * NULLIF ( + 48, 94 ) ) THEN - 38 ELSE 83 END AS col0
----
-722

query I rowsort
SELECT ALL 1 + 37 AS col1
----
38

query I rowsort
SELECT DISTINCT - 22 * - 31
----
682

query I rowsort
SELECT ALL 23 - - 98 * - 72
----
-7033

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + COALESCE ( 82, - ( - - 93 ) ) * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3048
SELECT + COALESCE ( 82, - ( - - 93 ) ) * COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + 99 + - MIN( ALL + + 25 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 99 + - MIN ( ALL + + 25 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + COUNT( * ) - - 83 * + + 97 * - SUM( ( 52 ) ) AS col1
----
-418651

skipif mysql # not compatible
query I rowsort label-3050
SELECT + COUNT ( * ) - - 83 * + + 97 * - SUM ( ( 52 ) ) AS col1
----
-418651

query I rowsort
SELECT + 75 + 20 * - 57 AS col1
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + 81 - - 43 + SUM( ALL 97 ) + 94 * + 97
----
9339

skipif mysql # not compatible
query I rowsort label-3052
SELECT + 81 - - 43 + SUM ( ALL 97 ) + 94 * + 97
----
9339

query I rowsort
SELECT - CASE + 90 WHEN - 85 THEN - 75 * - 5 END + - 0 AS col0
----
NULL

query I rowsort
SELECT + 45 + + 18 AS col1
----
63

query I rowsort
SELECT + 15 * - 71 * 18 + 38 + + ( 3 )
----
-19129

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + COALESCE ( + COUNT( * ), + 17 * - 97 + - 42 ) * + 81
----
81

skipif mysql # not compatible
query I rowsort label-3056
SELECT + COALESCE ( + COUNT ( * ), + 17 * - 97 + - 42 ) * + 81
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 15 DIV + - ( 58 ) + - 37 + ( 65 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3057
SELECT 15 / + - ( 58 ) + - 37 + ( 65 ) AS col0
----
28

query I rowsort
SELECT DISTINCT + 79 * 36
----
2844

query I rowsort
SELECT + ( - 31 ) col0
----
-31

query I rowsort
SELECT 41 * 53 - + 85 * 16 + 85 AS col1
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + NULLIF ( + 54, - + 42 ) * 69 + - COUNT( * ) + 70 col0
----
3795

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + NULLIF ( + 54, - + 42 ) * 69 + - COUNT ( * ) + 70 col0
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + + COUNT( - 75 ) * + ( + 10 ) + 91
----
101

skipif mysql # not compatible
query I rowsort label-3062
SELECT + + COUNT ( - 75 ) * + ( + 10 ) + 91
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT ALL + 60 * - 48 + + CAST( NULL AS SIGNED ) * 13 / 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + 60 * - 48 + + CAST ( NULL AS INTEGER ) * 13 / 80 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL COUNT( * ) * - 48 - + - 44
----
-4

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL COUNT ( * ) * - 48 - + - 44
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - 86 + CASE - 39 WHEN COALESCE ( - 85, - 17 + + 11, + 67 + + SUM( 99 ) ) THEN 96 - - 29 END + 65 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 86 + CASE - 39 WHEN COALESCE ( - 85, - 17 + + 11, + 67 + + SUM ( 99 ) ) THEN 96 - - 29 END + 65 * 59
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 34, - - 76 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL 75 * + NULLIF ( + COUNT( * ), - 57 ) - - 20 + 7
----
102

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL 75 * + NULLIF ( + COUNT ( * ), - 57 ) - - 20 + 7
----
102

query I rowsort
SELECT ALL - - 84 * + - 8 * - 79 + + + 13 + - 56 AS col0
----
53045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3069
SELECT - - 30 * - + 35 + + - 17 * 46 DIV CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-3069
SELECT - - 30 * - + 35 + + - 17 * 46 / CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - - 25 + - SUM( ALL - 16 ) * + + 59
----
969

skipif mysql # not compatible
query I rowsort label-3070
SELECT - - 25 + - SUM ( ALL - 16 ) * + + 59
----
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3071
SELECT + CAST( + + 22 AS SIGNED ) AS col2, MAX( DISTINCT 85 )
----
22
85

skipif mysql # not compatible
query II rowsort label-3071
SELECT + CAST ( + + 22 AS INTEGER ) AS col2, MAX ( DISTINCT 85 )
----
22
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( * ) * + 25 - - - 62 + 32 col0
----
-55

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( * ) * + 25 - - - 62 + 32 col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + 86 * 34 - 3 + - - COALESCE ( CAST( NULL AS SIGNED ), 88 - - 50 * + ( + 76 - 80 ) )
----
2809

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 86 * 34 - 3 + - - COALESCE ( CAST ( NULL AS INTEGER ), 88 - - 50 * + ( + 76 - 80 ) )
----
2809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT + 49 + + 17 DIV + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3074
SELECT + 49 + + 17 / + - COUNT ( * )
----
32

query I rowsort
SELECT - 89 * + 74 * 71 AS col0
----
-467606

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT + - 62 * MIN( 55 )
----
-3410

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + - 62 * MIN ( 55 )
----
-3410

query I rowsort
SELECT DISTINCT + 42 + - + 66
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3078
SELECT ALL - 84 + COUNT( * ) / - 55 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - 84 + COUNT ( * ) / - 55 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - + 98 * + 87 AS col2
----
-8526

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - MIN( DISTINCT + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3080
SELECT - MIN ( DISTINCT + 61 )
----
-61

query II rowsort
SELECT - 94, 90 AS col2
----
-94
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + COALESCE ( + COUNT( * ), - - 63 ) + ( - 31 )
----
-30

skipif mysql # not compatible
query I rowsort label-3082
SELECT + COALESCE ( + COUNT ( * ), - - 63 ) + ( - 31 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL CAST( - + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL CAST ( - + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( * ) * - - CASE - 80 WHEN - MIN( + 26 ) THEN NULL WHEN 47 * - 11 THEN NULL WHEN - COUNT( DISTINCT 11 ) THEN NULL ELSE 51 + 69 END * 59
----
-7080

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COUNT ( * ) * - - CASE - 80 WHEN - MIN ( + 26 ) THEN NULL WHEN 47 * - 11 THEN NULL WHEN - COUNT ( DISTINCT 11 ) THEN NULL ELSE 51 + 69 END * 59
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + COUNT( ALL 42 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT + COUNT ( ALL 42 ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL 87 - - 16
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT DISTINCT 46 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 46 / 38 AS col2
----
1

query I rowsort
SELECT - 52 * + 24 AS col1
----
-1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT - 69 DIV - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 69 / - COUNT ( * ) AS col0
----
69

query I rowsort
SELECT ALL 81 * + + 63 * - 63 col0
----
-321489

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3091
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + + ( CASE + ( 79 ) WHEN 25 + 17 THEN 19 * + 66 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - CAST ( NULL AS REAL ) / + + ( CASE + ( 79 ) WHEN 25 + 17 THEN 19 * + 66 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT - 1 DIV - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - 1 / - 61 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT 74 * 86 DIV 82 * - - CAST( + 72 AS SIGNED ) * - 56 AS col1
----
-310464

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT 74 * 86 / 82 * - - CAST ( + 72 AS INTEGER ) * - 56 AS col1
----
-310464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT CAST( - 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT CAST ( - 43 AS INTEGER ) AS col1
----
-43

query I rowsort
SELECT ALL 45 * + NULLIF ( + 22, + ( - 97 ) )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + ( - - COUNT( ALL + 76 ) ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3096
SELECT + ( - - COUNT ( ALL + 76 ) ) * - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT + MIN( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3097
SELECT + MIN ( - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT COALESCE ( + + CASE - 1 WHEN - COUNT( * ) THEN - 72 + - ( + COUNT( * ) ) ELSE 82 END, + MAX( 53 ) ) DIV 68 + MAX( + COALESCE ( 93, 42 * COALESCE ( - 32, ( 64 ) + - 33 ) ) + 40 )
----
132

skipif mysql # not compatible
query I rowsort label-3098
SELECT COALESCE ( + + CASE - 1 WHEN - COUNT ( * ) THEN - 72 + - ( + COUNT ( * ) ) ELSE 82 END, + MAX ( 53 ) ) / 68 + MAX ( + COALESCE ( 93, 42 * COALESCE ( - 32, ( 64 ) + - 33 ) ) + 40 )
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3099
SELECT + CAST( NULL AS DECIMAL ) AS col1, + 69 * + SUM( - 26 )
----
NULL
-1794

skipif mysql # not compatible
query II rowsort label-3099
SELECT + CAST ( NULL AS REAL ) AS col1, + 69 * + SUM ( - 26 )
----
NULL
-1794

query I rowsort
SELECT + ( - 31 ) * + 21 * NULLIF ( 57, - 6 * + 64 + + 1 ) AS col0
----
-37107

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - 35 * - COUNT( * ) + - 24 * 31
----
-709

skipif mysql # not compatible
query I rowsort label-3101
SELECT - 35 * - COUNT ( * ) + - 24 * 31
----
-709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL + 98 DIV 88 + COUNT( * ) + 63 * + 50
----
3152

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 98 / 88 + COUNT ( * ) + 63 * + 50
----
3152

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT - 15 DIV - 7 + 43 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - 15 / - 7 + 43 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT + + 93 * - 36 * + 6 * + CAST( 39 AS SIGNED ) - - 57 - ( - 94 )
----
-783281

skipif mysql # not compatible
query I rowsort label-3104
SELECT + + 93 * - 36 * + 6 * + CAST ( 39 AS INTEGER ) - - 57 - ( - 94 )
----
-783281

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + NULLIF ( + 58, - 47 + - + COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-3105
SELECT + NULLIF ( + 58, - 47 + - + COUNT ( * ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT CASE ( - + 32 ) WHEN + + 78 THEN CAST( + ( - COUNT( * ) ) AS SIGNED ) - 99 WHEN - NULLIF ( 25, - 47 + + 10 ) THEN NULL END / + 91 + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT CASE ( - + 32 ) WHEN + + 78 THEN CAST ( + ( - COUNT ( * ) ) AS INTEGER ) - 99 WHEN - NULLIF ( 25, - 47 + + 10 ) THEN NULL END / + 91 + 15 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT + ( CAST( - - COUNT( * ) AS SIGNED ) ) * - - 67 + + 32
----
99

skipif mysql # not compatible
query I rowsort label-3107
SELECT + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) * - - 67 + + 32
----
99

query I rowsort
SELECT - 7 * - 40
----
280

query I rowsort
SELECT ALL - - 73 * ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ( + - SUM( - + 21 ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-3110
SELECT ( + - SUM ( - + 21 ) ) col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT CAST( + 86 AS SIGNED ) * MIN( + - CAST( NULL AS SIGNED ) ) / 91 * 20 - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT CAST ( + 86 AS INTEGER ) * MIN ( + - CAST ( NULL AS INTEGER ) ) / 91 * 20 - - 61
----
NULL

query I rowsort
SELECT DISTINCT - 88 * - 59 col0
----
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + NULLIF ( + + COUNT( * ), + + 13 ) - - 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + NULLIF ( + + COUNT ( * ), + + 13 ) - - 72 col2
----
73

query I rowsort
SELECT ALL - COALESCE ( + 60, + 28, 1 * + + 13 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT - COUNT( * ) AS col1, + 44 AS col0
----
-1
44

skipif mysql # not compatible
query II rowsort label-3115
SELECT - COUNT ( * ) AS col1, + 44 AS col0
----
-1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - COUNT( * ) - MAX( - - 25 ) * ( + CASE + 23 WHEN + MAX( ALL + 91 ) THEN 18 END ) * 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - COUNT ( * ) - MAX ( - - 25 ) * ( + CASE + 23 WHEN + MAX ( ALL + 91 ) THEN 18 END ) * 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT - CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3117
SELECT - CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT - + 6 - - + CAST( NULL AS SIGNED ) / + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - + 6 - - + CAST ( NULL AS INTEGER ) / + 92 AS col2
----
NULL

query I rowsort
SELECT 83 * + 52 - ( + ( + 97 ) ) AS col2
----
4219

query I rowsort
SELECT - 66 + + - 78 + - 43 * + 92 AS col2
----
-4100

query II rowsort
SELECT ALL 91 AS col0, 9 AS col0
----
91
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT 32 + ( + 70 ) DIV - 91 + + SUM( 22 ) + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3122
SELECT 32 + ( + 70 ) / - 91 + + SUM ( 22 ) + COUNT ( * )
----
55

query I rowsort
SELECT 39 * + - 19 * - 46 * - 76 AS col1
----
-2590536

query II rowsort
SELECT ALL 49, 11 AS col0
----
49
11

query I rowsort
SELECT 48 + + - 71
----
-23

query II rowsort
SELECT ALL 51 col2, + ( - 55 )
----
51
-55

query I rowsort
SELECT ALL - 96 * - 19 * 72
----
131328

query I rowsort
SELECT 58 + - - 24 AS col1
----
82

query I rowsort
SELECT ALL - COALESCE ( 68, + - 54 ) * + 73
----
-4964

query II rowsort
SELECT DISTINCT 57 AS col1, + 56 AS col2
----
57
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT - 15 * - ( + + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - 15 * - ( + + COUNT ( * ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT DISTINCT 12, 68 + + CAST( NULL AS SIGNED ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3132
SELECT DISTINCT 12, 68 + + CAST ( NULL AS INTEGER ) AS col1
----
12
NULL

query I rowsort
SELECT 77 + - - 29
----
106

query I rowsort
SELECT ALL - 97 * - - 30 col0
----
-2910

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 48 + - CASE 74 WHEN + + COUNT( * ) + + - 63 THEN - + ( - 80 ) ELSE + 15 * - COUNT( * ) END
----
63

skipif mysql # not compatible
query I rowsort label-3135
SELECT 48 + - CASE 74 WHEN + + COUNT ( * ) + + - 63 THEN - + ( - 80 ) ELSE + 15 * - COUNT ( * ) END
----
63

query II rowsort
SELECT - 16 AS col0, 87 - 93 AS col0
----
-16
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT 54 * + COUNT( * ) * 8
----
432

skipif mysql # not compatible
query I rowsort label-3137
SELECT 54 * + COUNT ( * ) * 8
----
432

query I rowsort
SELECT DISTINCT - 70 + - + 91 AS col1
----
-161

query I rowsort
SELECT 67 * - 1 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3140
SELECT - 27 AS col1, + 68 + - 10 DIV + 34 - + + CAST( - - COUNT( * ) AS SIGNED )
----
-27
67

skipif mysql # not compatible
query II rowsort label-3140
SELECT - 27 AS col1, + 68 + - 10 / + 34 - + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-27
67

query I rowsort
SELECT ALL 91 + - - 68 * - 46 AS col1
----
-3037

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT ALL - 61 DIV + + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - 61 / + + 42 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT 99 DIV - ( + ( 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3143
SELECT 99 / - ( + ( 80 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 53 + 44 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - + 33 + + CASE - 36 WHEN - 50 / - - COUNT( - 81 ) THEN 80 * - COUNT( * ) ELSE NULL END * ( - 89 + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - + 33 + + CASE - 36 WHEN - 50 / - - COUNT ( - 81 ) THEN 80 * - COUNT ( * ) ELSE NULL END * ( - 89 + - 1 )
----
NULL

query I rowsort
SELECT + 12 * 77 col0
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 82 * COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 82 * COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - 21 + + COUNT( * ) AS col0, 91 AS col0
----
-20
91

skipif mysql # not compatible
query II rowsort label-3148
SELECT - 21 + + COUNT ( * ) AS col0, 91 AS col0
----
-20
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3149
SELECT - + CAST( + 88 AS SIGNED ) * + 81 - 56 AS col1, + MAX( ALL - + 18 ) DIV - 40
----
-7184
0

skipif mysql # not compatible
query II rowsort label-3149
SELECT - + CAST ( + 88 AS INTEGER ) * + 81 - 56 AS col1, + MAX ( ALL - + 18 ) / - 40
----
-7184
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3150
SELECT MAX( CAST( NULL AS DECIMAL ) ) + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT MAX ( CAST ( NULL AS REAL ) ) + - 73 AS col1
----
NULL

query I rowsort
SELECT 49 + - 76
----
-27

query II rowsort
SELECT DISTINCT - 8 col1, 73
----
-8
73

query I rowsort
SELECT - + 52 * - ( - 6 ) + - 11 + - 3
----
-326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT + CAST( - - 91 AS SIGNED ) * - 48 + - 28
----
-4396

skipif mysql # not compatible
query I rowsort label-3154
SELECT + CAST ( - - 91 AS INTEGER ) * - 48 + - 28
----
-4396

query I rowsort
SELECT 48 * 27 + - 73 + + 55 * ( + - 8 ) + 70
----
853

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - MIN( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MIN ( - 79 )
----
79

query I rowsort
SELECT ALL - 4 * - 39 * 0
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 35, - - ( - 56 ) + + 20 + - - 56 ) - 19
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + ( - 11 ) DIV + - 49
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + ( - 11 ) / + - 49
----
0

query I rowsort
SELECT + - 51 * - CASE - + 84 WHEN + + 79 THEN - + 14 END * + 15 + - 9 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - MAX( 79 ) * COALESCE ( - + 85, 38 ) - + 45 * - 19 AS col2
----
7570

skipif mysql # not compatible
query I rowsort label-3161
SELECT - MAX ( 79 ) * COALESCE ( - + 85, 38 ) - + 45 * - 19 AS col2
----
7570

query I rowsort
SELECT - 37 * - 13 + 72 * - - ( 70 ) * + - 86 col2
----
-432959

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT + 73 DIV 65 col2
----
1

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 73 / 65 col2
----
1

query I rowsort
SELECT - - COALESCE ( - 18, + 22 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT 78 + - COALESCE ( 56, 78 + + + CAST( + 88 AS SIGNED ), + 11 + + 13 ) * - CASE ( + ( - 29 ) ) WHEN CASE 64 WHEN 35 THEN 4 + + COUNT( * ) WHEN + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + ( 68 ) + SUM( 87 ) THEN + 11 WHEN MAX( ALL 88 ) THEN - ( - 34 ) + 61 END * 33 THEN 89 WHEN - 4 - - 59 THEN COUNT( * ) / 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT 78 + - COALESCE ( 56, 78 + + + CAST ( + 88 AS INTEGER ), + 11 + + 13 ) * - CASE ( + ( - 29 ) ) WHEN CASE 64 WHEN 35 THEN 4 + + COUNT ( * ) WHEN + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + ( 68 ) + SUM ( 87 ) THEN + 11 WHEN MAX ( ALL 88 ) THEN - ( - 34 ) + 61 END * 33 THEN 89 WHEN - 4 - - 59 THEN COUNT ( * ) / 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT COUNT( * ) * CASE + MIN( DISTINCT + 76 ) WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + 8 + + 24 ELSE NULL END * COALESCE ( - 2, + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT COUNT ( * ) * CASE + MIN ( DISTINCT + 76 ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + 8 + + 24 ELSE NULL END * COALESCE ( - 2, + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT 10 * COUNT( * ) * + - 55 col1
----
-550

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT 10 * COUNT ( * ) * + - 55 col1
----
-550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT DISTINCT 69 + - 82 * - CASE - 45 WHEN - - 57 DIV + 12 THEN NULL WHEN - 49 * + 85 THEN NULL ELSE - 83 DIV - COUNT( * ) + + ( - 88 ) END + + 50
----
-291

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT 69 + - 82 * - CASE - 45 WHEN - - 57 / + 12 THEN NULL WHEN - 49 * + 85 THEN NULL ELSE - 83 / - COUNT ( * ) + + ( - 88 ) END + + 50
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 77 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3169
SELECT 77 / - 43 AS col2
----
-1

query II rowsort
SELECT ALL 4 + - 32 AS col0, 31 + - 2 AS col1
----
-28
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ALL 22 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 22 / + 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3172
SELECT DISTINCT - 84 + - + CAST( NULL AS SIGNED ) AS col2, - ( + 47 ) - + COUNT( * ) + - 20 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-3172
SELECT DISTINCT - 84 + - + CAST ( NULL AS INTEGER ) AS col2, - ( + 47 ) - + COUNT ( * ) + - 20 AS col2
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT + COUNT( * ) + - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + COUNT ( * ) + - + 95 AS col0
----
-94

query I rowsort
SELECT ALL - 66 + + + 49 * + 15 AS col0
----
669

query I rowsort
SELECT DISTINCT 21 + - 44 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL SUM( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL SUM ( + 63 )
----
63

query I rowsort
SELECT DISTINCT + 21 + - 0 * - 35 * + - 84 * + 13 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT COUNT( * ) + - 48 + - - NULLIF ( - 13, CASE ( - CAST( - 81 AS SIGNED ) ) WHEN ( 69 ) * 68 THEN + 27 * - 0 + - ( + NULLIF ( 81, - 16 + 40 ) ) ELSE 5 END ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT COUNT ( * ) + - 48 + - - NULLIF ( - 13, CASE ( - CAST ( - 81 AS INTEGER ) ) WHEN ( 69 ) * 68 THEN + 27 * - 0 + - ( + NULLIF ( 81, - 16 + 40 ) ) ELSE 5 END ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT - CASE - - 17 WHEN + 35 THEN + 61 WHEN - - 92 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) / - ( - 95 ) + + ( 41 + 13 ) THEN NULL ELSE NULL END + COUNT( + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT - CASE - - 17 WHEN + 35 THEN + 61 WHEN - - 92 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - ( - 95 ) + + ( 41 + 13 ) THEN NULL ELSE NULL END + COUNT ( + 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - + ( - COALESCE ( - MIN( DISTINCT + 98 ), 32 * + 35 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - + ( - COALESCE ( - MIN ( DISTINCT + 98 ), 32 * + 35 ) )
----
-98

query I rowsort
SELECT - 80 * + 72 + - 56 - + 89 AS col0
----
-5905

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT - - COUNT( * ) * 48 - - - 36 + + 98 + + - ( 41 )
----
69

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - - COUNT ( * ) * 48 - - - 36 + + 98 + + - ( 41 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT 63 DIV - + COUNT( * ) + 62 DIV - - 43 + 1 * + - 54 + - + 62 DIV + 15
----
-120

skipif mysql # not compatible
query I rowsort label-3183
SELECT 63 / - + COUNT ( * ) + 62 / - - 43 + 1 * + - 54 + - + 62 / + 15
----
-120

query I rowsort
SELECT ALL - + 55 * 90 - + - 93 * + + 67
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL + CASE - ( + COUNT( ALL 13 ) ) WHEN - 36 - + - 8 + - + 67 * - 7 THEN 35 * + 10 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + CASE - ( + COUNT ( ALL 13 ) ) WHEN - 36 - + - 8 + - + 67 * - 7 THEN 35 * + 10 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT + 10 / - 90 - - - CAST( - MAX( ALL - 1 ) AS SIGNED ) + + - NULLIF ( + - ( CASE + CASE + SUM( DISTINCT 87 ) WHEN - 17 / 29 THEN + 47 WHEN - 3 THEN NULL ELSE NULL END WHEN 73 THEN 15 * COUNT( * ) ELSE NULL END ), - 28 ) * - 90 * + 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 10 / - 90 - - - CAST ( - MAX ( ALL - 1 ) AS INTEGER ) + + - NULLIF ( + - ( CASE + CASE + SUM ( DISTINCT 87 ) WHEN - 17 / 29 THEN + 47 WHEN - 3 THEN NULL ELSE NULL END WHEN 73 THEN 15 * COUNT ( * ) ELSE NULL END ), - 28 ) * - 90 * + 40 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT + 55 DIV + 45 + + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + 55 / + 45 + + 41 AS col2
----
42

query I rowsort
SELECT ALL - 90 * + 96 + + 8 - + 26 AS col2
----
-8658

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + ( + 74 ) * - - SUM( 93 )
----
6882

skipif mysql # not compatible
query I rowsort label-3189
SELECT + ( + 74 ) * - - SUM ( 93 )
----
6882

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - 26 * - 25 * + - 48 AS col0, - COUNT( * ) * 30 AS col2
----
-31200
-30

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 26 * - 25 * + - 48 AS col0, - COUNT ( * ) * 30 AS col2
----
-31200
-30

query I rowsort
SELECT + 96 * - + 35
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT 27 )
----
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT 27 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT + COALESCE ( - 40, - 6 DIV 59 DIV - COUNT( * ) * 70 - + 77, - 61 * + 8, - COUNT( * ) * + COUNT( * ) - - 84 ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT + COALESCE ( - 40, - 6 / 59 / - COUNT ( * ) * 70 - + 77, - 61 * + 8, - COUNT ( * ) * + COUNT ( * ) - - 84 ) / 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT 83 * 38 + - COUNT( * ) + - - 16 + + MAX( DISTINCT - 29 ) + + 33 + + 29 * 95 * 95 * MAX( DISTINCT ( + 39 ) + - 56 ) col1
----
-4446152

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT 83 * 38 + - COUNT ( * ) + - - 16 + + MAX ( DISTINCT - 29 ) + + 33 + + 29 * 95 * 95 * MAX ( DISTINCT ( + 39 ) + - 56 ) col1
----
-4446152

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - + ( - MAX( - 78 ) ) * 63 + 88 + + 63 * + - 26
----
-6464

skipif mysql # not compatible
query I rowsort label-3195
SELECT - + ( - MAX ( - 78 ) ) * 63 + 88 + + 63 * + - 26
----
-6464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3196
SELECT + + 86 * NULLIF ( - + 57, - + COUNT( * ) ) - - CASE - 2 WHEN - + 0 THEN CAST( NULL AS DECIMAL ) WHEN - ( - CAST( NULL AS DECIMAL ) ) THEN NULL ELSE NULL END + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + 86 * NULLIF ( - + 57, - + COUNT ( * ) ) - - CASE - 2 WHEN - + 0 THEN CAST ( NULL AS REAL ) WHEN - ( - CAST ( NULL AS REAL ) ) THEN NULL ELSE NULL END + 81 AS col1
----
NULL

query II rowsort
SELECT ALL + - ( + 67 ), + 42 AS col0
----
-67
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL 28 + - COUNT( * ) * - + 88
----
116

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 28 + - COUNT ( * ) * - + 88
----
116

query I rowsort
SELECT - COALESCE ( + 62, - 39, + 37 ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT - COALESCE ( + 35, + 50 * - 9, - CAST( 5 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-3200
SELECT - COALESCE ( + 35, + 50 * - 9, - CAST ( 5 AS INTEGER ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + MAX( ALL + 74 ) + 79
----
153

skipif mysql # not compatible
query I rowsort label-3201
SELECT + MAX ( ALL + 74 ) + 79
----
153

query II rowsort
SELECT 61 AS col0, 35
----
61
35

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3203
SELECT + 63 + + 31 * 15 AS col0, - 39 + + + CAST( NULL AS DECIMAL )
----
528
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT + 63 + + 31 * 15 AS col0, - 39 + + + CAST ( NULL AS REAL )
----
528
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3204
SELECT - COALESCE ( + - 93, - CAST( 76 AS SIGNED ) ) AS col1, + COALESCE ( + COUNT( * ), - 51 DIV + CAST( 22 AS SIGNED ) * - 15 + - ( + 55 - + ( 22 ) ) )
----
93
1

skipif mysql # not compatible
query II rowsort label-3204
SELECT - COALESCE ( + - 93, - CAST ( 76 AS INTEGER ) ) AS col1, + COALESCE ( + COUNT ( * ), - 51 / + CAST ( 22 AS INTEGER ) * - 15 + - ( + 55 - + ( 22 ) ) )
----
93
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT - 45 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 45 / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT + ( CAST( + COALESCE ( AVG ( - + 61 ), 14 ) AS SIGNED ) ) + + - 11
----
-72

skipif mysql # not compatible
query I rowsort label-3206
SELECT + ( CAST ( + COALESCE ( AVG ( - + 61 ), 14 ) AS INTEGER ) ) + + - 11
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL MIN( ALL - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL MIN ( ALL - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT 80 + + 61 + - + 19 * - 67 * - MIN( ALL 84 ) AS col1
----
-106791

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 80 + + 61 + - + 19 * - 67 * - MIN ( ALL 84 ) AS col1
----
-106791

query I rowsort
SELECT - 85 + + 53
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL CASE - 37 WHEN - 58 THEN 90 - + 98 - + - 13 + + - 56 ELSE + 61 * CASE - COUNT( - 13 ) WHEN 61 + 40 * - 3 THEN - COUNT( * ) + - 73 / - 62 WHEN - ( COALESCE ( 26, 68 ) ) + - MAX( 0 ) THEN - 68 ELSE NULL END - + NULLIF ( 63, 8 ) * 68 END / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CASE - 37 WHEN - 58 THEN 90 - + 98 - + - 13 + + - 56 ELSE + 61 * CASE - COUNT ( - 13 ) WHEN 61 + 40 * - 3 THEN - COUNT ( * ) + - 73 / - 62 WHEN - ( COALESCE ( 26, 68 ) ) + - MAX ( 0 ) THEN - 68 ELSE NULL END - + NULLIF ( 63, 8 ) * 68 END / + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3211
SELECT + CAST( + 42 AS SIGNED ) DIV - + 38 AS col1, NULLIF ( - - 57, + SUM( 84 ) ) col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-3211
SELECT + CAST ( + 42 AS INTEGER ) / - + 38 AS col1, NULLIF ( - - 57, + SUM ( 84 ) ) col1
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + - 72 * SUM( + - 34 ) * + 23 * 55 AS col1
----
3096720

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - 72 * SUM ( + - 34 ) * + 23 * 55 AS col1
----
3096720

query II rowsort
SELECT - - ( + ( - 53 ) ) + - 44 AS col2, - 35
----
-97
-35

query II rowsort
SELECT ALL - 3 - + 57 * - - 44, + 60 AS col1
----
-2511
60

query I rowsort
SELECT COALESCE ( - - 23, 35 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3216
SELECT ALL ( + MAX( ALL - - 97 ) ) AS col1, - 69 + + - 99
----
97
-168

skipif mysql # not compatible
query II rowsort label-3216
SELECT ALL ( + MAX ( ALL - - 97 ) ) AS col1, - 69 + + - 99
----
97
-168

query II rowsort
SELECT ALL + - 70, 97 * + 45 col0
----
-70
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT + 9 * - CASE + CASE - 67 WHEN - 29 * + COUNT( * ) * + + 8 * - 39 THEN + ( - 43 ) * - 47 WHEN COUNT( * ) * - CAST( NULL AS SIGNED ) THEN NULL END WHEN 58 * - NULLIF ( - 39 * 32, CAST( 10 AS SIGNED ) ) + - 47 THEN 54 ELSE 86 END AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + 9 * - CASE + CASE - 67 WHEN - 29 * + COUNT ( * ) * + + 8 * - 39 THEN + ( - 43 ) * - 47 WHEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN NULL END WHEN 58 * - NULLIF ( - 39 * 32, CAST ( 10 AS INTEGER ) ) + - 47 THEN 54 ELSE 86 END AS col2
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT - 41 DIV + 33 + 13 col1
----
12

skipif mysql # not compatible
query I rowsort label-3219
SELECT - 41 / + 33 + 13 col1
----
12

query I rowsort
SELECT - - 70 + 15 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + NULLIF ( 77, - - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-3221
SELECT + NULLIF ( 77, - - COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3222
SELECT + 16 * + ( - 18 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-3222
SELECT + 16 * + ( - 18 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-288
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3223
SELECT - + 13 * - 66 * COUNT( * ) + + + 50 DIV - MAX( - CAST( + + 68 AS SIGNED ) )
----
858

skipif mysql # not compatible
query I rowsort label-3223
SELECT - + 13 * - 66 * COUNT ( * ) + + + 50 / - MAX ( - CAST ( + + 68 AS INTEGER ) )
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL SUM( DISTINCT - 43 ) * + 37 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL SUM ( DISTINCT - 43 ) * + 37 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 65 * 75 + 65 + - 97 + 14
----
-4893

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - ( + + 85 ) + + - COUNT( * ) + ( + ( + 92 ) ) * - MAX( DISTINCT + + 51 ) col1
----
-4778

skipif mysql # not compatible
query I rowsort label-3226
SELECT - ( + + 85 ) + + - COUNT ( * ) + ( + ( + 92 ) ) * - MAX ( DISTINCT + + 51 ) col1
----
-4778

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL 64 * - - 6 + + 34 + + 60 + + MIN( + 42 ) * + + 67 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL 64 * - - 6 + + 34 + + 60 + + MIN ( + 42 ) * + + 67 AS col1
----
3292

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT DISTINCT + 56 * COUNT( * ), - 30 col1
----
56
-30

skipif mysql # not compatible
query II rowsort label-3228
SELECT DISTINCT + 56 * COUNT ( * ), - 30 col1
----
56
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + COUNT( * ) + MAX( - + 45 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3229
SELECT + COUNT ( * ) + MAX ( - + 45 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT - 87 DIV + 91 * 96
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT - 87 / + 91 * 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - MAX( ALL + + 53 ) * + ( + ( SUM( + ( - + 73 ) ) ) ) + 25 AS col2
----
3894

skipif mysql # not compatible
query I rowsort label-3231
SELECT - MAX ( ALL + + 53 ) * + ( + ( SUM ( + ( - + 73 ) ) ) ) + 25 AS col2
----
3894

query II rowsort
SELECT ALL ( - + 26 ) AS col2, 98 AS col2
----
-26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - COALESCE ( - + 6, + COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3233
SELECT - COALESCE ( - + 6, + COUNT ( * ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT 88 * + ( - + NULLIF ( MIN( DISTINCT - 65 ), 58 + 28 / + 74 ) ) + 42 col2
----
5762

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 88 * + ( - + NULLIF ( MIN ( DISTINCT - 65 ), 58 + 28 / + 74 ) ) + 42 col2
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - ( + + CASE - 99 WHEN - 69 THEN - - SUM( ALL - 48 ) ELSE NULL END ) - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT - ( + + CASE - 99 WHEN - 69 THEN - - SUM ( ALL - 48 ) ELSE NULL END ) - + 15
----
NULL

query II rowsort
SELECT + 3 * + + 20 AS col0, + 63 + + 94 AS col1
----
60
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - CASE + + 47 WHEN - + 16 + 77 + - - 23 THEN NULL WHEN - 73 * - ( 4 ) * - + 5 + COUNT( * ) THEN - COUNT( * ) + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT - CASE + + 47 WHEN - + 16 + 77 + - - 23 THEN NULL WHEN - 73 * - ( 4 ) * - + 5 + COUNT ( * ) THEN - COUNT ( * ) + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT NULLIF ( + + 0, + 83 + + + 17 / 53 ) - + COUNT( * ) + + + 41 + + 50 * + 61
----
3090

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT NULLIF ( + + 0, + 83 + + + 17 / 53 ) - + COUNT ( * ) + + + 41 + + 50 * + 61
----
3090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT ALL ( - COUNT( * ) ) - + 91 - - 51 DIV COUNT( * ) * 19 * - 75 * + + 67
----
-4869317

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL ( - COUNT ( * ) ) - + 91 - - 51 / COUNT ( * ) * 19 * - 75 * + + 67
----
-4869317

query I rowsort
SELECT 85 * - + ( - + 97 ) AS col2
----
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT 88 - CAST( - 42 AS SIGNED ) + + - 17 * + 71 AS col2
----
-1077

skipif mysql # not compatible
query I rowsort label-3241
SELECT 88 - CAST ( - 42 AS INTEGER ) + + - 17 * + 71 AS col2
----
-1077

query I rowsort
SELECT + 24 + + - 86 AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL - CAST( - - 56 AS SIGNED ) * 62
----
-3472

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - CAST ( - - 56 AS INTEGER ) * 62
----
-3472

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT 13 + - 88 AS col0, 5 * - COUNT( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT( * ) AS col0
----
-75
-6

skipif mysql # not compatible
query II rowsort label-3244
SELECT 13 + - 88 AS col0, 5 * - COUNT ( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT ( * ) AS col0
----
-75
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3245
SELECT + NULLIF ( + CAST( + 57 AS SIGNED ), + 41 ) + - 69 - 10 DIV + 85 + 22 * 97
----
2122

skipif mysql # not compatible
query I rowsort label-3245
SELECT + NULLIF ( + CAST ( + 57 AS INTEGER ), + 41 ) + - 69 - 10 / + 85 + 22 * 97
----
2122

query I rowsort
SELECT - 17 * 65
----
-1105

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + 17 * - - 55 + + 15 + - 74 DIV 6 col0
----
938

skipif mysql # not compatible
query I rowsort label-3247
SELECT + 17 * - - 55 + + 15 + - 74 / 6 col0
----
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3248
SELECT ALL ( - - 19 ) + - + COUNT( DISTINCT - 93 ), - NULLIF ( - CAST( NULL AS DECIMAL ), + CAST( + 51 AS SIGNED ) ) * CASE + 88 WHEN 74 THEN 32 END * + 84 AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL ( - - 19 ) + - + COUNT ( DISTINCT - 93 ), - NULLIF ( - CAST ( NULL AS REAL ), + CAST ( + 51 AS INTEGER ) ) * CASE + 88 WHEN 74 THEN 32 END * + 84 AS col0
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT COUNT( * ) * + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) * + - 33
----
-33

query I rowsort
SELECT ALL + 53 + + - 24 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - MAX( DISTINCT + - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - MAX ( DISTINCT + - 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT ALL - 73 + + - 19, - 92 * CASE - 40 WHEN + COUNT( * ) THEN NULL ELSE 84 END * ( + NULLIF ( + 99, 93 + + 60 / + COUNT( ALL 27 ) ) ) - SUM( 15 ) AS col0
----
-92
-765087

skipif mysql # not compatible
query II rowsort label-3252
SELECT ALL - 73 + + - 19, - 92 * CASE - 40 WHEN + COUNT ( * ) THEN NULL ELSE 84 END * ( + NULLIF ( + 99, 93 + + 60 / + COUNT ( ALL 27 ) ) ) - SUM ( 15 ) AS col0
----
-92
-765087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT CAST( NULL AS SIGNED ) - - 35 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( NULL AS INTEGER ) - - 35 + 13
----
NULL

query I rowsort
SELECT 83 * + 79
----
6557

query II rowsort
SELECT 24, 93 + - - 91 AS col2
----
24
184

query II rowsort
SELECT ALL - 22 AS col0, - ( - + 17 ) AS col2
----
-22
17

query I rowsort
SELECT DISTINCT + 51 + - 26 + + 20
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT 3 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT 3 / + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL - COUNT( * ) + + 24 + + 61 + + 70 * 31 + CAST( + - 35 AS SIGNED ) + + 66 * - 27
----
437

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - COUNT ( * ) + + 24 + + 61 + + 70 * 31 + CAST ( + - 35 AS INTEGER ) + + 66 * - 27
----
437

query I rowsort
SELECT 73 * + 59 AS col1
----
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT 4 + + CASE 39 WHEN - ( - - 40 ) - + ( - 86 ) * - - ( + COALESCE ( 58, COUNT( * ), COUNT( * ) ) ) + 25 THEN NULL WHEN - NULLIF ( - 64, 39 ) + 70 THEN NULL ELSE + COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT 4 + + CASE 39 WHEN - ( - - 40 ) - + ( - 86 ) * - - ( + COALESCE ( 58, COUNT ( * ), COUNT ( * ) ) ) + 25 THEN NULL WHEN - NULLIF ( - 64, 39 ) + 70 THEN NULL ELSE + COUNT ( * ) END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - CASE 74 WHEN + 52 * COUNT( * ) - - 51 THEN NULL ELSE - 47 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - CASE 74 WHEN + 52 * COUNT ( * ) - - 51 THEN NULL ELSE - 47 END AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT 92 - - CASE - + 15 WHEN + CASE - - 19 WHEN + - 40 THEN + AVG ( DISTINCT + 9 ) - + - 26 + - 97 WHEN + NULLIF ( + CASE WHEN NOT - 18 BETWEEN 8 + 64 AND ( NULL ) THEN 97 * + COUNT( DISTINCT 68 ) ELSE - 34 END, + 94 ) * + 83 + - 79 THEN NULL WHEN 8 - + 43 THEN NULL END * - 19 THEN CAST( + COUNT( * ) AS SIGNED ) WHEN + 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT 92 - - CASE - + 15 WHEN + CASE - - 19 WHEN + - 40 THEN + AVG ( DISTINCT + 9 ) - + - 26 + - 97 WHEN + NULLIF ( + CASE WHEN NOT - 18 BETWEEN 8 + 64 AND ( NULL ) THEN 97 * + COUNT ( DISTINCT 68 ) ELSE - 34 END, + 94 ) * + 83 + - 79 THEN NULL WHEN 8 - + 43 THEN NULL END * - 19 THEN CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 6 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL - 34 - + - 61 + - 31 + - - 12 * + + COUNT( * ) + - CASE - - 18 WHEN 82 * + COUNT( * ) * - - 44 / - 97 THEN + 93 WHEN ( 59 ) THEN - 74 ELSE + CASE - 41 WHEN + COUNT( * ) THEN 66 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - 34 - + - 61 + - 31 + - - 12 * + + COUNT ( * ) + - CASE - - 18 WHEN 82 * + COUNT ( * ) * - - 44 / - 97 THEN + 93 WHEN ( 59 ) THEN - 74 ELSE + CASE - 41 WHEN + COUNT ( * ) THEN 66 END END
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 21
----
-1302

query I rowsort
SELECT DISTINCT 80 * + + 90 AS col1
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - COALESCE ( + - 2, + + 52 * - SUM( + 76 ) * - - 37 ) * - 29 * - 35 + + - 94 + + 75 - 93 * + ( 26 )
----
-407

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COALESCE ( + - 2, + + 52 * - SUM ( + 76 ) * - - 37 ) * - 29 * - 35 + + - 94 + + 75 - 93 * + ( 26 )
----
-407

query I rowsort
SELECT 82 + - CASE 80 WHEN + 15 THEN + 51 + - + 56 WHEN - 39 + + 28 + - 8 / ( + 3 ) * 4 THEN NULL END / 2
----
NULL

query III rowsort
SELECT ALL 75 AS col0, - 7 + + + 37 AS col2, - + 71 AS col0
----
75
30
-71

query I rowsort
SELECT 92 + + 65
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT COUNT( * ) - - + 92 * 35 DIV - + COALESCE ( - + 53, + 48, - AVG ( + 77 ) * - 79 + CASE - 44 WHEN NULLIF ( - COUNT( DISTINCT 19 ), - 81 * COUNT( * ) ) * - ( 25 * + 65 ) THEN ( 45 ) * - 79 END + + 53 * 91 ) + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) - - + 92 * 35 / - + COALESCE ( - + 53, + 48, - AVG ( + 77 ) * - 79 + CASE - 44 WHEN NULLIF ( - COUNT ( DISTINCT 19 ), - 81 * COUNT ( * ) ) * - ( 25 * + 65 ) THEN ( 45 ) * - 79 END + + 53 * 91 ) + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT 44 * 65 * - 62 + + - 68
----
-177388

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 8 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 8 / - + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT COUNT( * ) + - 64 + - - 25
----
-38

skipif mysql # not compatible
query I rowsort label-3274
SELECT COUNT ( * ) + - 64 + - - 25
----
-38

query I rowsort
SELECT 80 * 96 AS col1
----
7680

query II rowsort
SELECT 8 col1, 83
----
8
83

query I rowsort
SELECT DISTINCT 23 + 31
----
54

query II rowsort
SELECT - - 28 AS col1, 58 + + + 75
----
28
133

query I rowsort
SELECT ALL 32 * + 26
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL ( COUNT( * ) ) * - + 83 * - 11 + - - 30 + - 91
----
852

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL ( COUNT ( * ) ) * - + 83 * - 11 + - - 30 + - 91
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) * - 25 + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) * - 25 + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT ALL - - COUNT( * ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - - COUNT ( * ) / - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT 27 DIV + + 24 + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT 27 / + + 24 + 2 AS col2
----
3

query I rowsort
SELECT 22 * - 43 - 32 AS col1
----
-978

query I rowsort
SELECT DISTINCT + 83 * + + 73 + - 29 * 16
----
5595

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT ALL 58 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL 58 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT MIN( DISTINCT - - 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3287
SELECT MIN ( DISTINCT - - 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT COUNT( DISTINCT + + 54 ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3288
SELECT COUNT ( DISTINCT + + 54 ) + - 38 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + SUM( - ( + 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3289
SELECT + SUM ( - ( + 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - COALESCE ( - 50, + 62, - + 1 - - + 52, + COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - COALESCE ( - 50, + 62, - + 1 - - + 52, + COUNT ( * ) ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3291
SELECT COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) * - + 57 DIV + ( - NULLIF ( + 75, NULLIF ( - - 91, - 70 ) * + + 98 ) ) * 91, COALESCE ( 29, 29 ) - 43 ) * - 55 + 95
----
40

skipif mysql # not compatible
query I rowsort label-3291
SELECT COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - + 57 / + ( - NULLIF ( + 75, NULLIF ( - - 91, - 70 ) * + + 98 ) ) * 91, COALESCE ( 29, 29 ) - 43 ) * - 55 + 95
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT MIN( ALL + 95 ), + 66 * - 25 * COUNT( * ) col2
----
95
-1650

skipif mysql # not compatible
query II rowsort label-3292
SELECT MIN ( ALL + 95 ), + 66 * - 25 * COUNT ( * ) col2
----
95
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + 99 / + + 50 + - 11 * + CASE - 86 WHEN + COUNT( * ) THEN + 22 WHEN 3 THEN NULL ELSE NULL END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + 99 / + + 50 + - 11 * + CASE - 86 WHEN + COUNT ( * ) THEN + 22 WHEN 3 THEN NULL ELSE NULL END * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL 39 - - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 39 - - - COUNT ( * )
----
38

query I rowsort
SELECT ALL - 2 - - 47
----
45

query I rowsort
SELECT 8 * - 53 AS col0
----
-424

query I rowsort
SELECT DISTINCT 33 * 45 * 75 AS col0
----
111375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3298
SELECT 88, - 96 * - COALESCE ( + + 60, - - 55 * + COUNT( * ) * - 31 + - CAST( NULL AS SIGNED ), + 66 ) AS col2
----
88
5760

skipif mysql # not compatible
query II rowsort label-3298
SELECT 88, - 96 * - COALESCE ( + + 60, - - 55 * + COUNT ( * ) * - 31 + - CAST ( NULL AS INTEGER ), + 66 ) AS col2
----
88
5760

query I rowsort
SELECT 39 * - + ( - 55 ) + + 20 AS col0
----
2165

query I rowsort
SELECT 98 * + - 10
----
-980

query II rowsort
SELECT 96 AS col0, 70 AS col0
----
96
70

query II rowsort
SELECT - 56 + - 33 + 99 * - 56 - 42 * + 80 AS col2, 75
----
-8993
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL COUNT( * ) AS col2, - ( + 32 ) col2
----
1
-32

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL COUNT ( * ) AS col2, - ( + 32 ) col2
----
1
-32

query II rowsort
SELECT ALL 32 AS col0, 43 AS col1
----
32
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL CASE + 18 WHEN + - NULLIF ( + - CASE - - MIN( + - 95 ) WHEN - - 62 THEN NULL ELSE - 33 * - CAST( NULL AS SIGNED ) + NULLIF ( - 98, ( - AVG ( - 92 ) ) * + CAST( NULL AS SIGNED ) ) END, + CAST( + ( + SUM( 69 ) ) AS SIGNED ) + + MIN( - 75 ) ) + 34 THEN 13 * - 51 + 9 WHEN - 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL CASE + 18 WHEN + - NULLIF ( + - CASE - - MIN ( + - 95 ) WHEN - - 62 THEN NULL ELSE - 33 * - CAST ( NULL AS INTEGER ) + NULLIF ( - 98, ( - AVG ( - 92 ) ) * + CAST ( NULL AS INTEGER ) ) END, + CAST ( + ( + SUM ( 69 ) ) AS INTEGER ) + + MIN ( - 75 ) ) + 34 THEN 13 * - 51 + 9 WHEN - 10 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL CASE + 73 WHEN - 98 + + + ( MAX( DISTINCT - 26 ) ) - 35 + + - COUNT( * ) * 68 THEN NULL WHEN + 34 THEN 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL CASE + 73 WHEN - 98 + + + ( MAX ( DISTINCT - 26 ) ) - 35 + + - COUNT ( * ) * 68 THEN NULL WHEN + 34 THEN 0 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3307
SELECT ALL - CAST( NULL AS SIGNED ) / + - 87, CASE - 94 WHEN 34 THEN 19 END * 65 * - + 63
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3307
SELECT ALL - CAST ( NULL AS INTEGER ) / + - 87, CASE - 94 WHEN 34 THEN 19 END * 65 * - + 63
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3308
SELECT - 63 - - COALESCE ( - 12, 30 ) + + 21 * - - 41 AS col1, - 49 * - CAST( + ( CAST( NULLIF ( + 53, - 63 ) AS SIGNED ) ) AS SIGNED ) AS col2
----
786
2597

skipif mysql # not compatible
query II rowsort label-3308
SELECT - 63 - - COALESCE ( - 12, 30 ) + + 21 * - - 41 AS col1, - 49 * - CAST ( + ( CAST ( NULLIF ( + 53, - 63 ) AS INTEGER ) ) AS INTEGER ) AS col2
----
786
2597

query I rowsort
SELECT - - 94 * - 80
----
-7520

query I rowsort
SELECT ALL + 89 * + + 18
----
1602

query I rowsort
SELECT - 90 * 32 - 95
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - + COUNT( * ) + - ( 67 ) + + 79 + + + 75 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - + COUNT ( * ) + - ( 67 ) + + 79 + + + 75 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + COUNT( * ) + + 71 * - 79 AS col2
----
-5608

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + COUNT ( * ) + + 71 * - 79 AS col2
----
-5608

query I rowsort
SELECT - - 33 - + 7
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT ALL 38 AS col1, MIN( + - 89 ) col2
----
38
-89

skipif mysql # not compatible
query II rowsort label-3315
SELECT ALL 38 AS col1, MIN ( + - 89 ) col2
----
38
-89

query I rowsort
SELECT - + 59 - + - 77 + + 23
----
41

query II rowsort
SELECT ALL 99 AS col2, 2 - + + 28 + + COALESCE ( + 61, - 95, - 56, + 0 ) AS col2
----
99
35

query I rowsort
SELECT ALL - 37 + + + 74 + - + 71 * - + 91 * - - 34 AS col2
----
219711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3319
SELECT - 61, - CAST( NULL AS SIGNED ) + + COALESCE ( + 0, - + SUM( + 83 ) * 73 * COUNT( * ) ) * - NULLIF ( + 82, 37 * 54 ) AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3319
SELECT - 61, - CAST ( NULL AS INTEGER ) + + COALESCE ( + 0, - + SUM ( + 83 ) * 73 * COUNT ( * ) ) * - NULLIF ( + 82, 37 * 54 ) AS col0
----
-61
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT( * ) + + 34 col1
----
72
-31

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT ( * ) + + 34 col1
----
72
-31

query I rowsort
SELECT DISTINCT - - 0 + + - 62 + - 8
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT - 93 + - 15 - - + 46 DIV 21
----
-106

skipif mysql # not compatible
query I rowsort label-3322
SELECT - 93 + - 15 - - + 46 / 21
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3323
SELECT DISTINCT - AVG ( ALL - 18 ) * COALESCE ( - - 11, 56 / + 92 * + MAX( 59 ) * 79 / - 10 ) + CASE + 49 WHEN CASE WHEN NOT 10 >= NULL THEN NULL ELSE 60 - + CAST( NULL AS SIGNED ) END THEN - MAX( CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS DECIMAL ) END - 64 * SUM( DISTINCT + 13 + - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - AVG ( ALL - 18 ) * COALESCE ( - - 11, 56 / + 92 * + MAX ( 59 ) * 79 / - 10 ) + CASE + 49 WHEN CASE WHEN NOT 10 >= NULL THEN NULL ELSE 60 - + CAST ( NULL AS INTEGER ) END THEN - MAX ( CAST ( NULL AS REAL ) ) / + CAST ( NULL AS REAL ) END - 64 * SUM ( DISTINCT + 13 + - 81 ) AS col2
----
NULL

query I rowsort
SELECT ALL + + ( - 24 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - COUNT( * ) * + + 55
----
-55

skipif mysql # not compatible
query I rowsort label-3325
SELECT - COUNT ( * ) * + + 55
----
-55

query II rowsort
SELECT ALL 52 * - 6 * + 15 AS col1, 3 * + - 66 col1
----
-4680
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT 33 * - - 17 * - - MAX( + 82 ) - - - 69
----
45933

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT 33 * - - 17 * - - MAX ( + 82 ) - - - 69
----
45933

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + CASE 55 WHEN + 72 * - 20 THEN NULL WHEN SUM( 62 ) * - - 11 - 92 THEN 22 WHEN + 81 * + 86 + NULLIF ( + 19, - COUNT( * ) ) + 19 THEN + 99 * 73 + + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT + CASE 55 WHEN + 72 * - 20 THEN NULL WHEN SUM ( 62 ) * - - 11 - 92 THEN 22 WHEN + 81 * + 86 + NULLIF ( + 19, - COUNT ( * ) ) + 19 THEN + 99 * 73 + + 61 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 98 * - 9 AS col1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL 16 * + NULLIF ( COUNT( * ), + 32 * - 52 * + + 56 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 16 * + NULLIF ( COUNT ( * ), + 32 * - 52 * + + 56 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT CASE + MIN( ALL - - ( 45 ) ) WHEN 56 THEN NULL ELSE 32 + - - ( + 84 ) + + 97 END AS col1
----
213

skipif mysql # not compatible
query I rowsort label-3331
SELECT CASE + MIN ( ALL - - ( 45 ) ) WHEN 56 THEN NULL ELSE 32 + - - ( + 84 ) + + 97 END AS col1
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3332
SELECT CASE + + 1 WHEN - 66 THEN - - COALESCE ( + 75, NULLIF ( - CAST( + + CASE - ( CAST( NULL AS SIGNED ) ) WHEN - 72 + + + 75 THEN 93 END AS DECIMAL ), - ( COUNT( * ) ) ) + 66 ) + 27 WHEN - 26 THEN 12 * + AVG ( ALL CASE 93 WHEN - 96 * 58 + 84 * - 18 THEN NULL WHEN - 51 THEN - 43 END ) + + 95 / 8 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT CASE + + 1 WHEN - 66 THEN - - COALESCE ( + 75, NULLIF ( - CAST ( + + CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - 72 + + + 75 THEN 93 END AS REAL ), - ( COUNT ( * ) ) ) + 66 ) + 27 WHEN - 26 THEN 12 * + AVG ( ALL CASE 93 WHEN - 96 * 58 + 84 * - 18 THEN NULL WHEN - 51 THEN - 43 END ) + + 95 / 8 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3333
SELECT ALL SUM( ALL - 48 ) DIV 30, - 22 * - CAST( NULL AS SIGNED ) + + 27 + - 87 * + - COUNT( * ) + + + 29 * - + 70 * + 46 DIV 28 * - AVG ( 17 * 88 ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL SUM ( ALL - 48 ) / 30, - 22 * - CAST ( NULL AS INTEGER ) + + 27 + - 87 * + - COUNT ( * ) + + + 29 * - + 70 * + 46 / 28 * - AVG ( 17 * 88 ) col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT CASE - 43 WHEN - 96 + + 28 + NULLIF ( + COUNT( * ), + - 44 / + 83 * - SUM( + 71 ) + CAST( NULL AS SIGNED ) ) + + 64 * COUNT( * ) THEN - COALESCE ( + 64, + 14, - ( 68 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT CASE - 43 WHEN - 96 + + 28 + NULLIF ( + COUNT ( * ), + - 44 / + 83 * - SUM ( + 71 ) + CAST ( NULL AS INTEGER ) ) + + 64 * COUNT ( * ) THEN - COALESCE ( + 64, + 14, - ( 68 ) ) END AS col2
----
NULL

query I rowsort
SELECT 71 * + COALESCE ( - 34, + 49, ( + 48 ) ) - + + 90 + 34 * + 85 - 35 + + 77
----
428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3336
SELECT ALL ( - - 67 ) * 90 / - 99 + + + CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL ( - - 67 ) * 90 / - 99 + + + CAST ( NULL AS REAL ) + + 60
----
NULL

query I rowsort
SELECT + 44 - - 76 + - 66 * 41
----
-2586

query I rowsort
SELECT + 20 - - + 67 + 23
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL - MIN( ALL 39 ) * 42 col0
----
-1638

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - MIN ( ALL 39 ) * 42 col0
----
-1638

query I rowsort
SELECT ALL + COALESCE ( - ( - + 32 ), - 0 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT + CAST( + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3341
SELECT + CAST ( + 40 AS INTEGER )
----
40

query I rowsort
SELECT ALL - 37 * 30 + + 11 AS col0
----
-1099

query I rowsort
SELECT - 8 * + 32
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL + - 50 * + + COUNT( ALL + 54 ) + - - 29 + 40
----
19

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + - 50 * + + COUNT ( ALL + 54 ) + - - 29 + 40
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + + 3 + COALESCE ( - MIN( DISTINCT - 38 ), - + 64 * + COUNT( DISTINCT - + 30 ) - ( 39 ) + + 76 * 69 )
----
41

skipif mysql # not compatible
query I rowsort label-3345
SELECT + + 3 + COALESCE ( - MIN ( DISTINCT - 38 ), - + 64 * + COUNT ( DISTINCT - + 30 ) - ( 39 ) + + 76 * 69 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT - - 98 - CAST( 96 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3346
SELECT - - 98 - CAST ( 96 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT ALL - 92 * - 65 * 50 AS col0
----
299000

query I rowsort
SELECT + 56 * + - 49 AS col0
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + - COUNT( * ) + + SUM( DISTINCT + + 29 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3349
SELECT + - COUNT ( * ) + + SUM ( DISTINCT + + 29 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT - + 23 - + COALESCE ( - + 55, + 58, - 22 ) AS col1, 6 + + COALESCE ( - NULLIF ( 39, ( - 84 ) * - 15 * + 25 + 90 / + ( + 75 ) - 47 ), NULLIF ( 66, - 38 ) + - 52 * + ( + COUNT( * ) * 80 ) ) - + 44 * 50 AS col1
----
32
-2233

skipif mysql # not compatible
query II rowsort label-3350
SELECT - + 23 - + COALESCE ( - + 55, + 58, - 22 ) AS col1, 6 + + COALESCE ( - NULLIF ( 39, ( - 84 ) * - 15 * + 25 + 90 / + ( + 75 ) - 47 ), NULLIF ( 66, - 38 ) + - 52 * + ( + COUNT ( * ) * 80 ) ) - + 44 * 50 AS col1
----
32
-2233

query I rowsort
SELECT ALL - ( 53 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT - SUM( 25 ) + - + 11
----
-36

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - SUM ( 25 ) + - + 11
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3353
SELECT ALL - - 40 + - + 59 + COALESCE ( - 91, + - MIN( - ( 95 ) ) + ( 56 ) + + - 39 + 21 + - - CASE COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * 95 THEN + 89 + + 98 WHEN CAST( 15 AS DECIMAL ) THEN NULL END * 29 ) * 97 AS col0
----
-8846

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - - 40 + - + 59 + COALESCE ( - 91, + - MIN ( - ( 95 ) ) + ( 56 ) + + - 39 + 21 + - - CASE COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * 95 THEN + 89 + + 98 WHEN CAST ( 15 AS REAL ) THEN NULL END * 29 ) * 97 AS col0
----
-8846

query I rowsort
SELECT - 10 + + + 62 * - 63 AS col1
----
-3916

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT - CASE - 38 WHEN + + 57 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - - 26 END AS col0, 71
----
-26
71

skipif mysql # not compatible
query II rowsort label-3355
SELECT - CASE - 38 WHEN + + 57 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - - 26 END AS col0, 71
----
-26
71

query I rowsort
SELECT - ( - + 26 ) + - 97
----
-71

query I rowsort
SELECT ALL - - 48 + - 32 + - - 75 * + 45
----
3391

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT CASE + 60 WHEN SUM( DISTINCT + 6 ) THEN NULL WHEN 70 * 32 * - 43 * + - 88 + + 10 + - + 76 THEN 60 - - 57 + - 31 * 9 * 3 WHEN 5 * - 83 THEN - 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT CASE + 60 WHEN SUM ( DISTINCT + 6 ) THEN NULL WHEN 70 * 32 * - 43 * + - 88 + + 10 + - + 76 THEN 60 - - 57 + - 31 * 9 * 3 WHEN 5 * - 83 THEN - 44 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT + - CAST( + CAST( + COALESCE ( + 72, + + 71 * 78 + COUNT( * ) - + 65 * - + 10 + - + COUNT( * ) + + 4 * + 74 + + ( - SUM( DISTINCT 18 ) ) ) AS SIGNED ) AS SIGNED ) + + 60
----
-12

skipif mysql # not compatible
query I rowsort label-3359
SELECT + - CAST ( + CAST ( + COALESCE ( + 72, + + 71 * 78 + COUNT ( * ) - + 65 * - + 10 + - + COUNT ( * ) + + 4 * + 74 + + ( - SUM ( DISTINCT 18 ) ) ) AS INTEGER ) AS INTEGER ) + + 60
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + - 35 * COUNT( * ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + - 35 * COUNT ( * ) col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT - + COUNT( * ) + - ( - 40 ), - 69 AS col0
----
39
-69

skipif mysql # not compatible
query II rowsort label-3361
SELECT - + COUNT ( * ) + - ( - 40 ), - 69 AS col0
----
39
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3362
SELECT - - 47 + COUNT( * ) * 59 - + - 54 * 80 col2, 55 + 52 * 14
----
4426
783

skipif mysql # not compatible
query II rowsort label-3362
SELECT - - 47 + COUNT ( * ) * 59 - + - 54 * 80 col2, 55 + 52 * 14
----
4426
783

query I rowsort
SELECT ALL - 41 * + ( + 62 ) AS col1
----
-2542

query I rowsort
SELECT DISTINCT + 83 * + + 2
----
166

query I rowsort
SELECT ALL - + 22 * + 29 col0
----
-638

query I rowsort
SELECT - 22 + - - 29 AS col2
----
7

query I rowsort
SELECT DISTINCT + ( + 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + COUNT( ALL - + 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( ALL - + 7 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3369
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - 99 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 99 AS col0
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - COUNT( DISTINCT 60 ) * - - 64
----
-64

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( DISTINCT 60 ) * - - 64
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT - 3 * + 69 - ( - CAST( - 62 AS SIGNED ) ) AS col2
----
-269

skipif mysql # not compatible
query I rowsort label-3371
SELECT - 3 * + 69 - ( - CAST ( - 62 AS INTEGER ) ) AS col2
----
-269

query II rowsort
SELECT ALL + 57 AS col1, 78 AS col0
----
57
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 76 DIV + 67 + - + 60 col0
----
-59

skipif mysql # not compatible
query I rowsort label-3373
SELECT 76 / + 67 + - + 60 col0
----
-59

query II rowsort
SELECT 64 AS col0, + 28 + 92 + 75 AS col1
----
64
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + COUNT( ALL + 14 ) * + - 70 + SUM( + 32 ) * - + 89 AS col2
----
-2918

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + COUNT ( ALL + 14 ) * + - 70 + SUM ( + 32 ) * - + 89 AS col2
----
-2918

query I rowsort
SELECT 2 * - + 69
----
-138

query II rowsort
SELECT - 40 * ( - + 60 ) + + 91 AS col2, + 81 AS col1
----
2491
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT - COALESCE ( MIN( - + 55 ), - 84, - + 33 * + - ( + 23 ) ) col2
----
55

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - COALESCE ( MIN ( - + 55 ), - 84, - + 33 * + - ( + 23 ) ) col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT ALL 38 + - - 98 + - 88 AS col2, COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-3379
SELECT ALL 38 + - - 98 + - 88 AS col2, COUNT ( * ) AS col0
----
48
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT 76 * + 55 * CAST( - 97 AS SIGNED ) + + NULLIF ( - - 47, - + CAST( NULL AS SIGNED ) + + + 42 * - - 60 ) + + - 56 * - 15
----
-404573

skipif mysql # not compatible
query I rowsort label-3380
SELECT 76 * + 55 * CAST ( - 97 AS INTEGER ) + + NULLIF ( - - 47, - + CAST ( NULL AS INTEGER ) + + + 42 * - - 60 ) + + - 56 * - 15
----
-404573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3381
SELECT DISTINCT - 88 AS col0, ( - NULLIF ( - + 53, CASE + 95 WHEN + - ( - 92 ) THEN 43 WHEN + 61 THEN - + 98 + + COUNT( * ) + - CAST( NULL AS SIGNED ) END / 32 ) )
----
-88
53

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT - 88 AS col0, ( - NULLIF ( - + 53, CASE + 95 WHEN + - ( - 92 ) THEN 43 WHEN + 61 THEN - + 98 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) END / 32 ) )
----
-88
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - COUNT( * ) + 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - COUNT ( * ) + 30 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT ( + + COUNT( * ) ) + - 8 * + 37
----
-295

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT ( + + COUNT ( * ) ) + - 8 * + 37
----
-295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT COUNT( * ) + + - 9 * 61 DIV 18 * - 41 + - 6 * - - COALESCE ( - + 30, MAX( + 94 ), + COUNT( * ) * + 8 + 44 + + 43 ) * + COUNT( * )
----
1411

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT COUNT ( * ) + + - 9 * 61 / 18 * - 41 + - 6 * - - COALESCE ( - + 30, MAX ( + 94 ), + COUNT ( * ) * + 8 + 44 + + 43 ) * + COUNT ( * )
----
1411

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT ALL - 88 AS col2, 6 + - MAX( + - 92 ) AS col0
----
-88
98

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL - 88 AS col2, 6 + - MAX ( + - 92 ) AS col0
----
-88
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT 52 * - 49 + - 86 + + + 16 * + + 62 - - + 84
----
-1558

query I rowsort
SELECT - 68 * + - 2 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL 11 + - + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 11 + - + COUNT ( * ) AS col1
----
10

query I rowsort
SELECT 57 * + - 2 AS col2
----
-114

query I rowsort
SELECT ALL + 81 * + 40
----
3240

query I rowsort
SELECT DISTINCT + 70 + - - 43 * - 10 * - 19 * ( - ( + 99 ) ) * 75
----
-60662180

query I rowsort
SELECT ALL ( - 92 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT + 48 * + 14
----
672

query I rowsort
SELECT + NULLIF ( - 70, 41 ) col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL + CAST( NULL AS SIGNED ) - + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT NULLIF ( + - COUNT( * ), ( - + 26 ) ) - + - 68 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3397
SELECT NULLIF ( + - COUNT ( * ), ( - + 26 ) ) - + - 68 AS col0
----
67

query I rowsort
SELECT + 61 - - + 9 + + 72 col0
----
142

query II rowsort
SELECT ALL + 70, - 23 AS col2
----
70
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3400
SELECT - ( + CAST( + 15 AS SIGNED ) ) * + 47 - COALESCE ( - - 38, + 95 DIV - 64 + + + 11 ) AS col2
----
-743

skipif mysql # not compatible
query I rowsort label-3400
SELECT - ( + CAST ( + 15 AS INTEGER ) ) * + 47 - COALESCE ( - - 38, + 95 / - 64 + + + 11 ) AS col2
----
-743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 3 + - ( + CAST( + 79 AS SIGNED ) ) + 95 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3401
SELECT 3 + - ( + CAST ( + 79 AS INTEGER ) ) + 95 AS col1
----
19

query II rowsort
SELECT - 46, 93 - - 45 AS col1
----
-46
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL MIN( DISTINCT + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL MIN ( DISTINCT + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT - NULLIF ( + + CAST( NULL AS SIGNED ), - 43 ) - - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT - NULLIF ( + + CAST ( NULL AS INTEGER ), - 43 ) - - + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT CAST( - 39 AS SIGNED ) * + CAST( - SUM( + 16 ) AS SIGNED ) + - 4
----
620

skipif mysql # not compatible
query I rowsort label-3405
SELECT CAST ( - 39 AS INTEGER ) * + CAST ( - SUM ( + 16 ) AS INTEGER ) + - 4
----
620

query I rowsort
SELECT 18 + - 72 AS col1
----
-54

query I rowsort
SELECT DISTINCT + 71 * + 2 AS col2
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT - 62 * - + CAST( - 77 AS SIGNED ) AS col1
----
-4774

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - 62 * - + CAST ( - 77 AS INTEGER ) AS col1
----
-4774

onlyif mysql # DIV for integer division: 
query II rowsort label-3409
SELECT 2 DIV - - 47, + 60 AS col1
----
0
60

skipif mysql # not compatible
query II rowsort label-3409
SELECT 2 / - - 47, + 60 AS col1
----
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT 37 * + 42 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT 37 * + 42 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + 90 * - MAX( DISTINCT - - 33 )
----
-2970

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + 90 * - MAX ( DISTINCT - - 33 )
----
-2970

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT ALL - 17 + 27 * COUNT( * ) + + 90, - 12 col0
----
100
-12

skipif mysql # not compatible
query II rowsort label-3412
SELECT ALL - 17 + 27 * COUNT ( * ) + + 90, - 12 col0
----
100
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL - 45 + CASE - 79 WHEN + - 88 THEN + + CAST( + 99 AS SIGNED ) * 68 + - 29 * + - 19 - - 77 END / + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - 45 + CASE - 79 WHEN + - 88 THEN + + CAST ( + 99 AS INTEGER ) * 68 + - 29 * + - 19 - - 77 END / + 37 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + - 87 ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT 50 + + + 61 - - 51 DIV - CASE + 22 WHEN + 78 THEN NULL WHEN + 59 THEN 19 ELSE 15 END + + + 59 + - 4 * 27 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 50 + + + 61 - - 51 / - CASE + 22 WHEN + 78 THEN NULL WHEN + 59 THEN 19 ELSE 15 END + + + 59 + - 4 * 27 AS col0
----
59

query I rowsort
SELECT 7 - CASE + 3 WHEN 62 - + - 18 THEN ( 91 ) * 78 + - + 61 * 64 WHEN - - 18 THEN NULL WHEN - 41 + + 98 THEN + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 78 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT - 23 * - - COUNT( * ) + 75
----
52

skipif mysql # not compatible
query I rowsort label-3418
SELECT - 23 * - - COUNT ( * ) + 75
----
52

query I rowsort
SELECT DISTINCT + 59 * 5 AS col1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - COUNT( * ) + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - COUNT ( * ) + - 47
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL - NULLIF ( + + NULLIF ( - - 73, - ( - 17 ) ), + COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - NULLIF ( + + NULLIF ( - - 73, - ( - 17 ) ), + COUNT ( * ) )
----
-73

query I rowsort
SELECT ALL - 10 * 70
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT ALL - - 56 - 26 * - COALESCE ( CAST( 31 AS SIGNED ), SUM( 54 ) DIV - 48, 41, 13 ) AS col0
----
862

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - - 56 - 26 * - COALESCE ( CAST ( 31 AS INTEGER ), SUM ( 54 ) / - 48, 41, 13 ) AS col0
----
862

query I rowsort
SELECT - 32 + + - 82 * 0 AS col0
----
-32

query I rowsort
SELECT 49 * 2 AS col2
----
98

query I rowsort
SELECT 51 + + 45 + + 75 * - + 22 col2
----
-1554

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3427
SELECT - CAST( NULL AS DECIMAL ) - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT - CAST ( NULL AS REAL ) - 0
----
NULL

query I rowsort
SELECT 41 - + + 60
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( * ) * + COALESCE ( - 0, + 75, + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT COUNT ( * ) * + COALESCE ( - 0, + 75, + 91 )
----
0

query I rowsort
SELECT + 81 * 95
----
7695

query I rowsort
SELECT ALL NULLIF ( - 69, - 30 / - - 72 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT COUNT( * ) + - 33 * - 26 - + 39 col1
----
820

skipif mysql # not compatible
query I rowsort label-3432
SELECT COUNT ( * ) + - 33 * - 26 - + 39 col1
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL + 33 * - + COUNT( * ) * - 45
----
1485

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 33 * - + COUNT ( * ) * - 45
----
1485

query I rowsort
SELECT 51 * - 89 * - 16 AS col1
----
72624

query I rowsort
SELECT 83 + - 32 col2
----
51

query I rowsort
SELECT - 81 * + 89
----
-7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT DISTINCT ( + 5 ) + 94 * + SUM( 32 ) / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT ( + 5 ) + 94 * + SUM ( 32 ) / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 0, + - 78 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL 33 * + - NULLIF ( + COUNT( * ), + ( + NULLIF ( - 38, - + 48 ) ) * - COUNT( * ) + - 91 + + + SUM( - 67 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 33 * + - NULLIF ( + COUNT ( * ), + ( + NULLIF ( - 38, - + 48 ) ) * - COUNT ( * ) + - 91 + + + SUM ( - 67 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT 92 + - CASE + 61 WHEN 48 * + + NULLIF ( - 39, - 66 * - 76 + + 11 ) THEN - 10 WHEN + MAX( DISTINCT - + 87 ) THEN - 69 + 39 ELSE NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT 92 + - CASE + 61 WHEN 48 * + + NULLIF ( - 39, - 66 * - 76 + + 11 ) THEN - 10 WHEN + MAX ( DISTINCT - + 87 ) THEN - 69 + 39 ELSE NULL END - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 21 + 63 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL - 54 * - CAST( NULL AS SIGNED ) + + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - 54 * - CAST ( NULL AS INTEGER ) + + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT CASE - COUNT( * ) WHEN + + CASE WHEN - 93 IN ( + 47 * - - 14 / + 2 ) OR 94 NOT BETWEEN 1 * - + COUNT( * ) + - 42 + + 35 * + 39 - - 60 AND 3 THEN 60 + 20 END THEN NULL WHEN - 4 - - NULLIF ( COALESCE ( 31, - 0 ), NULLIF ( + 3, + 68 + 26 ) ) THEN NULL ELSE 96 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3443
SELECT CASE - COUNT ( * ) WHEN + + CASE WHEN - 93 IN ( + 47 * - - 14 / + 2 ) OR 94 NOT BETWEEN 1 * - + COUNT ( * ) + - 42 + + 35 * + 39 - - 60 AND 3 THEN 60 + 20 END THEN NULL WHEN - 4 - - NULLIF ( COALESCE ( 31, - 0 ), NULLIF ( + 3, + 68 + 26 ) ) THEN NULL ELSE 96 END AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL + SUM( ALL - - 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + SUM ( ALL - - 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3445
SELECT + 85 + - CAST( + CASE - + 41 WHEN - COUNT( * ) * 70 THEN NULL ELSE 96 END AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 85 + - CAST ( + CASE - + 41 WHEN - COUNT ( * ) * 70 THEN NULL ELSE 96 END AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + 57 * + - 89 + + ( + CASE - ( + + 19 ) WHEN - COALESCE ( + - 58, - + COALESCE ( COUNT( * ), 31 ), - 87 ) + + MIN( DISTINCT 61 ) * + 6 + 96 THEN 55 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT + 57 * + - 89 + + ( + CASE - ( + + 19 ) WHEN - COALESCE ( + - 58, - + COALESCE ( COUNT ( * ), 31 ), - 87 ) + + MIN ( DISTINCT 61 ) * + 6 + 96 THEN 55 END ) col0
----
NULL

query I rowsort
SELECT - 50 * - 47
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL - NULLIF ( 88, 16 ) * - ( - - 23 ) * + 36 + + + 95 * 40 * - - ( - - 23 ) + 44 + - - CASE - + 16 WHEN + 8 / + ( - MIN( + CASE 92 WHEN - 48 THEN + 44 WHEN 59 THEN NULL WHEN - 69 THEN NULL ELSE NULL END ) ) + + 42 / + 53 THEN NULL ELSE 56 * 59 END * - 90 * 18 col0
----
-5192172

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - NULLIF ( 88, 16 ) * - ( - - 23 ) * + 36 + + + 95 * 40 * - - ( - - 23 ) + 44 + - - CASE - + 16 WHEN + 8 / + ( - MIN ( + CASE 92 WHEN - 48 THEN + 44 WHEN 59 THEN NULL WHEN - 69 THEN NULL ELSE NULL END ) ) + + 42 / + 53 THEN NULL ELSE 56 * 59 END * - 90 * 18 col0
----
-5192172

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT CASE + 38 WHEN - 28 THEN NULL ELSE + 35 - + - 79 END AS col0, - 92 * - 83 * + COUNT( * )
----
114
7636

skipif mysql # not compatible
query II rowsort label-3449
SELECT CASE + 38 WHEN - 28 THEN NULL ELSE + 35 - + - 79 END AS col0, - 92 * - 83 * + COUNT ( * )
----
114
7636

query I rowsort
SELECT + ( - CASE WHEN ( - NULLIF ( - 39, + 18 ) <= NULL ) THEN NULL WHEN + 43 NOT BETWEEN NULL AND NULL THEN 77 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - ( - + 45 ) + SUM( + 72 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-3451
SELECT - ( - + 45 ) + SUM ( + 72 ) AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT - 94 * ( - CAST( NULL AS SIGNED ) ) + - MIN( - 15 ) + + 6 + - 38 / - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT - 94 * ( - CAST ( NULL AS INTEGER ) ) + - MIN ( - 15 ) + + 6 + - 38 / - 30 AS col1
----
NULL

query I rowsort
SELECT - 14 * + 89 AS col1
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL COUNT( * ) * - 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL COUNT ( * ) * - 57 AS col2
----
-57

query I rowsort
SELECT DISTINCT + - ( 58 ) col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT - 63 + + - MAX( ALL + 89 ) AS col0, 41
----
-152
41

skipif mysql # not compatible
query II rowsort label-3456
SELECT - 63 + + - MAX ( ALL + 89 ) AS col0, 41
----
-152
41

query I rowsort
SELECT ALL - 34 * + + 44 - + 48 + + 25
----
-1519

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT DISTINCT + + COUNT( * ), + 7 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT + + COUNT ( * ), + 7 AS col2
----
1
7

query II rowsort
SELECT + 51 AS col1, - 67 + + 23
----
51
-44

query I rowsort
SELECT DISTINCT + + ( - 56 )
----
-56

query II rowsort
SELECT ALL + 76 AS col0, 90
----
76
90

query I rowsort
SELECT - + 98 * 3 AS col1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + 37 * + MIN( - 76 ) + 98 AS col2
----
-2714

skipif mysql # not compatible
query I rowsort label-3463
SELECT + 37 * + MIN ( - 76 ) + 98 AS col2
----
-2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL + 41 * CAST( NULL AS SIGNED ) * - 36 - - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + 41 * CAST ( NULL AS INTEGER ) * - 36 - - 55 AS col2
----
NULL

query I rowsort
SELECT - - 65 * - 25 AS col0
----
-1625

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT - CASE COUNT( * ) WHEN + - 43 + MAX( 54 ) / + MAX( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1
----
NULL
180

skipif mysql # not compatible
query II rowsort label-3466
SELECT - CASE COUNT ( * ) WHEN + - 43 + MAX ( 54 ) / + MAX ( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1
----
NULL
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT DISTINCT - 26 DIV - + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - 26 / - + 88 AS col1
----
0

query II rowsort
SELECT + 58, + 13 AS col0
----
58
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3469
SELECT ALL - + ( - 34 ) * + 13, 73 + - CAST( NULL AS SIGNED ) AS col2
----
442
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT ALL - + ( - 34 ) * + 13, 73 + - CAST ( NULL AS INTEGER ) AS col2
----
442
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT - CAST( + 69 AS SIGNED ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - CAST ( + 69 AS INTEGER ) col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT NULLIF ( 95, - - 46 + + + 27 + - ( 78 ) / - COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-3471
SELECT NULLIF ( 95, - - 46 + + + 27 + - ( 78 ) / - COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - COUNT( + 28 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - COUNT ( + 28 ) AS col2
----
-1

query I rowsort
SELECT - 59 - 93
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - NULLIF ( - 65, + COUNT( * ) * + - COUNT( * ) / + 4 + - + MAX( DISTINCT - 37 ) + - + 49 + + 48 + 38 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3474
SELECT - NULLIF ( - 65, + COUNT ( * ) * + - COUNT ( * ) / + 4 + - + MAX ( DISTINCT - 37 ) + - + 49 + + 48 + 38 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT + 81 + - 39 DIV - 80
----
81

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 81 + - 39 / - 80
----
81

query I rowsort
SELECT DISTINCT 87 + 68
----
155

query II rowsort
SELECT ALL 91 AS col2, 31 * 31
----
91
961

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + AVG ( DISTINCT + + 9 ) + 94 * + 19 * - 89 - 34 * + + 42 + + SUM( ALL + + 21 ) * - CASE 79 WHEN - 52 THEN - + 38 + COUNT( * ) + - ( - - SUM( + 59 ) ) WHEN 14 + - 0 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + AVG ( DISTINCT + + 9 ) + 94 * + 19 * - 89 - 34 * + + 42 + + SUM ( ALL + + 21 ) * - CASE 79 WHEN - 52 THEN - + 38 + COUNT ( * ) + - ( - - SUM ( + 59 ) ) WHEN 14 + - 0 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + 45 DIV - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 45 / - COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + 44 + - 27 + - 90 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + 21 * + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3481
SELECT + 21 * + COUNT ( * ) AS col2
----
21

query I rowsort
SELECT + 80 - 49
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL MAX( + - 54 ) + 98 col0
----
44

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL MAX ( + - 54 ) + 98 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT DISTINCT 8 AS col2, + MAX( + + 13 ) AS col0
----
8
13

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT 8 AS col2, + MAX ( + + 13 ) AS col0
----
8
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT 42 AS col2, - 82 * - COALESCE ( CASE + 33 WHEN + 94 - - 4 / + 61 * - 8 * - 40 + - + AVG ( ALL - + 20 ) THEN - - 72 WHEN - ( + SUM( DISTINCT 15 ) ) - ( 80 ) THEN NULL ELSE NULL END, + 9 ) + 89 AS col1
----
42
827

skipif mysql # not compatible
query II rowsort label-3485
SELECT 42 AS col2, - 82 * - COALESCE ( CASE + 33 WHEN + 94 - - 4 / + 61 * - 8 * - 40 + - + AVG ( ALL - + 20 ) THEN - - 72 WHEN - ( + SUM ( DISTINCT 15 ) ) - ( 80 ) THEN NULL ELSE NULL END, + 9 ) + 89 AS col1
----
42
827

query II rowsort
SELECT 80, + 24 col1
----
80
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL 80 * + + COUNT( + 84 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 80 * + + COUNT ( + 84 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT + 85 * 84 DIV + + COUNT( * ) AS col0
----
7140

skipif mysql # not compatible
query I rowsort label-3488
SELECT + 85 * 84 / + + COUNT ( * ) AS col0
----
7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - CAST( + 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CAST ( + 44 AS INTEGER ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT + CASE - ( + 93 ) WHEN + 69 * - - AVG ( + CAST( + 27 AS SIGNED ) ) THEN + 3 + + 17 + + 19 WHEN 3 * - 7 / 83 * - COUNT( * ) * + 38 THEN - - AVG ( 15 ) + + 28 ELSE - 6 * - 50 + 68 END AS col2
----
368

skipif mysql # not compatible
query I rowsort label-3490
SELECT + CASE - ( + 93 ) WHEN + 69 * - - AVG ( + CAST ( + 27 AS INTEGER ) ) THEN + 3 + + 17 + + 19 WHEN 3 * - 7 / 83 * - COUNT ( * ) * + 38 THEN - - AVG ( 15 ) + + 28 ELSE - 6 * - 50 + 68 END AS col2
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( + 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( + 48 AS INTEGER ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3492
SELECT ALL + 94 DIV COUNT( * ) - - + CAST( 31 AS SIGNED ) * 81 * + 57 * - - 21 * - + MIN( ( + - 33 ) )
----
99187105

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + 94 / COUNT ( * ) - - + CAST ( 31 AS INTEGER ) * 81 * + 57 * - - 21 * - + MIN ( ( + - 33 ) )
----
99187105

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 32 * + MAX( DISTINCT - + 95 ) AS col0
----
-3040

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 32 * + MAX ( DISTINCT - + 95 ) AS col0
----
-3040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT CAST( 55 AS SIGNED ) col0
----
55

skipif mysql # not compatible
query I rowsort label-3494
SELECT CAST ( 55 AS INTEGER ) col0
----
55

query I rowsort
SELECT + 55 * - + 45
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3496
SELECT CAST( - 52 AS SIGNED ), 28 * + 77 * - 86 col0
----
-52
-185416

skipif mysql # not compatible
query II rowsort label-3496
SELECT CAST ( - 52 AS INTEGER ), 28 * + 77 * - 86 col0
----
-52
-185416

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT 79 * 65 DIV 65 DIV 16 * + 29
----
116

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT 79 * 65 / 65 / 16 * + 29
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + CASE - - 24 WHEN - - 75 + - 87 THEN - NULLIF ( + - 26, + AVG ( - + 60 ) ) WHEN - 12 / - CASE + 5 WHEN + MIN( DISTINCT - - 65 ) THEN - 26 WHEN + - 30 THEN + 61 ELSE NULL END THEN - 23 ELSE - CASE ( + 26 ) WHEN 21 THEN NULL WHEN + ( + 42 ) THEN NULL ELSE - NULLIF ( 56, 25 ) END END
----
56

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + CASE - - 24 WHEN - - 75 + - 87 THEN - NULLIF ( + - 26, + AVG ( - + 60 ) ) WHEN - 12 / - CASE + 5 WHEN + MIN ( DISTINCT - - 65 ) THEN - 26 WHEN + - 30 THEN + 61 ELSE NULL END THEN - 23 ELSE - CASE ( + 26 ) WHEN 21 THEN NULL WHEN + ( + 42 ) THEN NULL ELSE - NULLIF ( 56, 25 ) END END
----
56

query I rowsort
SELECT + ( + - 62 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL + 49 DIV + 55 + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + 49 / + 55 + 41 AS col0
----
41

query I rowsort
SELECT + 93 * 56 + - 91 AS col2
----
5117

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT ALL + 22 col2, + 57 DIV - 55
----
22
-1

skipif mysql # not compatible
query II rowsort label-3502
SELECT ALL + 22 col2, + 57 / - 55
----
22
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3503
SELECT + 50 - - CAST( + AVG ( - 38 ) AS SIGNED ) DIV + 46 * - 33 DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 50 - - CAST ( + AVG ( - 38 ) AS INTEGER ) / + 46 * - 33 / COUNT ( * ) AS col1
----
50

query I rowsort
SELECT DISTINCT + 55 * + 20
----
1100

query I rowsort
SELECT + 18 * 65 + - 86 AS col2
----
1084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT ALL + 17 DIV COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + 17 / COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3507
SELECT DISTINCT + 79 * MAX( ALL - CAST( NULL AS DECIMAL ) ) + 86 * 14 * + - 6 - 45, COUNT( * ) * + + ( + COUNT( * ) ) * 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3507
SELECT DISTINCT + 79 * MAX ( ALL - CAST ( NULL AS REAL ) ) + 86 * 14 * + - 6 - 45, COUNT ( * ) * + + ( + COUNT ( * ) ) * 92 AS col0
----
NULL
92

query I rowsort
SELECT + + 42 + 1
----
43

query II rowsort
SELECT + 13 - - 68 AS col1, - 91 * - 42 + + + 45
----
81
3867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT + CAST( NULL AS SIGNED ) - + NULLIF ( - 94, - - 39 * + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT + CAST ( NULL AS INTEGER ) - + NULLIF ( - 94, - - 39 * + + 68 )
----
NULL

query I rowsort
SELECT ALL - 81 + 36 AS col0
----
-45

query I rowsort
SELECT ALL + 30 + 43 * + 18
----
804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3514
SELECT ALL - 58 DIV 58 col2, - COALESCE ( - + 46, COUNT( * ), 91 DIV + - CAST( NULL AS SIGNED ) )
----
-1
46

skipif mysql # not compatible
query II rowsort label-3514
SELECT ALL - 58 / 58 col2, - COALESCE ( - + 46, COUNT ( * ), 91 / + - CAST ( NULL AS INTEGER ) )
----
-1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT COUNT( * ) + COUNT( * ) - 79 + SUM( - - 64 )
----
-13

skipif mysql # not compatible
query I rowsort label-3515
SELECT COUNT ( * ) + COUNT ( * ) - 79 + SUM ( - - 64 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT + COUNT( * ) * MAX( - - 71 ) / CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + COUNT ( * ) * MAX ( - - 71 ) / CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3517
SELECT 17 + + CAST( MAX( + 79 ) AS SIGNED ) DIV 8
----
26

skipif mysql # not compatible
query I rowsort label-3517
SELECT 17 + + CAST ( MAX ( + 79 ) AS INTEGER ) / 8
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT 67 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT 67 / + 80 AS col1
----
0

query I rowsort
SELECT 52 + + - 57 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL 20 - - - COUNT( * ) * - 15 col2
----
35

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 20 - - - COUNT ( * ) * - 15 col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ( + - ( 77 ) ) * 53 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ( + - ( 77 ) ) * 53 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 83 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + 33 * 82 * - 84 * + CASE - + ( + COUNT( 69 ) ) WHEN - - 11 * - COUNT( * ) * + COUNT( + CASE 92 WHEN + - 2 + + - 46 / 90 THEN - - 73 END ) * + 57 * 75 THEN 59 + + 12 / NULLIF ( - 78 * + 86, - 96 ) END / 61 + + 55 + - ( + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 33 * 82 * - 84 * + CASE - + ( + COUNT ( 69 ) ) WHEN - - 11 * - COUNT ( * ) * + COUNT ( + CASE 92 WHEN + - 2 + + - 46 / 90 THEN - - 73 END ) * + 57 * 75 THEN 59 + + 12 / NULLIF ( - 78 * + 86, - 96 ) END / 61 + + 55 + - ( + 45 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 20 * + 11
----
-220

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT COALESCE ( + 34, - - 11 ) * 2 * - - 19 * - 86 * - COUNT( * ) AS col1, + 32
----
111112
32

skipif mysql # not compatible
query II rowsort label-3525
SELECT COALESCE ( + 34, - - 11 ) * 2 * - - 19 * - 86 * - COUNT ( * ) AS col1, + 32
----
111112
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT - 12 * + + COUNT( * ) AS col0, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-3526
SELECT - 12 * + + COUNT ( * ) AS col0, COUNT ( * )
----
-12
1

query I rowsort
SELECT ALL 78 + - 57 + + + 89 + - 7
----
103

query I rowsort
SELECT + 65 * + 1 + - 23 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3529
SELECT ALL - 26 * - + 49 * - COUNT( * ) + - + ( + CASE CAST( 47 AS DECIMAL ) WHEN + COALESCE ( 82, 36 + - 64 ) + - 4 THEN NULL WHEN 87 THEN NULL WHEN - 32 THEN - 92 * 4 * + 64 + + NULLIF ( + ( + 24 ) + 91, 53 ) ELSE NULL END ) + - 15 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 26 * - + 49 * - COUNT ( * ) + - + ( + CASE CAST ( 47 AS REAL ) WHEN + COALESCE ( 82, 36 + - 64 ) + - 4 THEN NULL WHEN 87 THEN NULL WHEN - 32 THEN - 92 * 4 * + 64 + + NULLIF ( + ( + 24 ) + 91, 53 ) ELSE NULL END ) + - 15 * 11 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 + ( - 52 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL - 77 + + - 62 / - 25 * - CAST( NULL AS SIGNED ) + - - 1 + COUNT( * ) * 75 + 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - 77 + + - 62 / - 25 * - CAST ( NULL AS INTEGER ) + - - 1 + COUNT ( * ) * 75 + 28 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT COUNT( * ) * + 95 + - + 91 - CAST( + SUM( DISTINCT - - 71 ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-3532
SELECT COUNT ( * ) * + 95 + - + 91 - CAST ( + SUM ( DISTINCT - - 71 ) AS INTEGER )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT - 11 + - CAST( + 29 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 11 + - CAST ( + 29 AS INTEGER )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT COALESCE ( - 47, + - 59 * + + CASE - 77 WHEN 24 THEN + 95 DIV - ( + 42 ) + + ( - 58 ) END )
----
-47

skipif mysql # not compatible
query I rowsort label-3534
SELECT COALESCE ( - 47, + - 59 * + + CASE - 77 WHEN 24 THEN + 95 / - ( + 42 ) + + ( - 58 ) END )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT DISTINCT - 83 + - + 75 - + 85 + 16 * + - ( CASE + 64 WHEN - COUNT( ALL + 31 ) THEN + - 56 * - 44 DIV 1 ELSE + - 92 END )
----
1229

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - 83 + - + 75 - + 85 + 16 * + - ( CASE + 64 WHEN - COUNT ( ALL + 31 ) THEN + - 56 * - 44 / 1 ELSE + - 92 END )
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL - SUM( + 67 ) * + 65
----
-4355

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - SUM ( + 67 ) * + 65
----
-4355

query I rowsort
SELECT ALL NULLIF ( + 33, - 84 ) * - 1 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT 69 * - - COUNT( * ) * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT 69 * - - COUNT ( * ) * - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3539
SELECT ALL COUNT( * ) * - - 84 * + - MAX( 12 ) * - MIN( DISTINCT - + CAST( 15 AS SIGNED ) ) * - 31 AS col2, - CAST( - 89 AS SIGNED )
----
468720
89

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL COUNT ( * ) * - - 84 * + - MAX ( 12 ) * - MIN ( DISTINCT - + CAST ( 15 AS INTEGER ) ) * - 31 AS col2, - CAST ( - 89 AS INTEGER )
----
468720
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT ALL CAST( CAST( + 53 AS SIGNED ) AS SIGNED ) - 68
----
-15

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL CAST ( CAST ( + 53 AS INTEGER ) AS INTEGER ) - 68
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT - COUNT( * ), 19 * + 63 AS col1
----
-1
1197

skipif mysql # not compatible
query II rowsort label-3541
SELECT - COUNT ( * ), 19 * + 63 AS col1
----
-1
1197

query I rowsort
SELECT 56 * + 99 AS col2
----
5544

query II rowsort
SELECT 62 + + 55 + 27 * - 10 AS col2, + 66
----
-153
66

query II rowsort
SELECT DISTINCT 63 AS col0, + 65 col2
----
63
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT 62 - - ( + - 49 ) + + 35 DIV - + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT 62 - - ( + - 49 ) + + 35 / - + COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT 55 - - 6
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3547
SELECT 36 * + - CASE 91 WHEN 82 THEN NULL ELSE + - COALESCE ( + - CAST( - 97 AS SIGNED ), - 18, + 18 + - ( - 9 ) DIV + - 46 ) END AS col1
----
3492

skipif mysql # not compatible
query I rowsort label-3547
SELECT 36 * + - CASE 91 WHEN 82 THEN NULL ELSE + - COALESCE ( + - CAST ( - 97 AS INTEGER ), - 18, + 18 + - ( - 9 ) / + - 46 ) END AS col1
----
3492

query I rowsort
SELECT 71 * - - 35 AS col0
----
2485

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL + 92 * 65 DIV 46
----
130

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + 92 * 65 / 46
----
130

query II rowsort
SELECT 43, 38 AS col2
----
43
38

query I rowsort
SELECT - 66 * 17
----
-1122

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT ALL 22 * - 68 + 85 AS col0, + COUNT( * )
----
-1411
1

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL 22 * - 68 + 85 AS col0, + COUNT ( * )
----
-1411
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT - COUNT( 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - COUNT ( 85 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT CAST( 8 AS SIGNED ) * 46 DIV - 89
----
-4

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT CAST ( 8 AS INTEGER ) * 46 / - 89
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT + ( - 65 ) DIV - 27
----
2

skipif mysql # not compatible
query I rowsort label-3555
SELECT + ( - 65 ) / - 27
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3556
SELECT ALL 42 * COALESCE ( - - 60, + 84, - + 77 * 53 + - 1 * CAST( ( 67 ) AS SIGNED ) ) + 18 + - + COUNT( * ) * - 54 AS col1, 54 + + - 14 AS col2
----
2592
40

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL 42 * COALESCE ( - - 60, + 84, - + 77 * 53 + - 1 * CAST ( ( 67 ) AS INTEGER ) ) + 18 + - + COUNT ( * ) * - 54 AS col1, 54 + + - 14 AS col2
----
2592
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + 46 * + 54 + SUM( DISTINCT + + COALESCE ( - 57, + 94 ) ) AS col2
----
2427

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 46 * + 54 + SUM ( DISTINCT + + COALESCE ( - 57, + 94 ) ) AS col2
----
2427

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT ALL 51 * COUNT( * ) * 19 AS col0, 86 + + 85 AS col2
----
969
171

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL 51 * COUNT ( * ) * 19 AS col0, 86 + + 85 AS col2
----
969
171

query II rowsort
SELECT ALL + 23 AS col0, + 61
----
23
61

query II rowsort
SELECT + 10, + 21 col2
----
10
21

query I rowsort
SELECT + 39 + - 42 * - - 32 * - 80 * 96 AS col2
----
10321959

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + + 59 + ( - 36 ) * 41 + - COUNT( * ) AS col1
----
-1418

skipif mysql # not compatible
query I rowsort label-3562
SELECT + + 59 + ( - 36 ) * 41 + - COUNT ( * ) AS col1
----
-1418

query I rowsort
SELECT ALL + + 38 * - 75 * - ( + 78 )
----
222300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT + - CASE - - 89 WHEN + 16 * - 66 + 60 THEN 90 WHEN + 85 - + - COALESCE ( + 87, - 53 ) * + - 54 * + 30 * 27 - - 40 * - ( + 70 ) * + 68 * 40 / COUNT( * ) THEN NULL WHEN + COUNT( * ) + - CAST( 49 AS SIGNED ) THEN NULL ELSE NULL END + - 42 * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT + - CASE - - 89 WHEN + 16 * - 66 + 60 THEN 90 WHEN + 85 - + - COALESCE ( + 87, - 53 ) * + - 54 * + 30 * 27 - - 40 * - ( + 70 ) * + 68 * 40 / COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + - CAST ( 49 AS INTEGER ) THEN NULL ELSE NULL END + - 42 * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT MAX( + 40 ) AS col1, 33 + + + NULLIF ( - 69, + COUNT( * ) * 25 + + + 67 + - 85 ) + - 62 * + - 89
----
40
5482

skipif mysql # not compatible
query II rowsort label-3565
SELECT MAX ( + 40 ) AS col1, 33 + + + NULLIF ( - 69, + COUNT ( * ) * 25 + + + 67 + - 85 ) + - 62 * + - 89
----
40
5482

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - CASE - - 61 WHEN + + NULLIF ( 97, + 17 * + 40 * + 78 ) THEN - 4 ELSE NULL END * - - ( - + 38 ) + + MAX( 44 ) * + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT - CASE - - 61 WHEN + + NULLIF ( 97, + 17 * + 40 * + 78 ) THEN - 4 ELSE NULL END * - - ( - + 38 ) + + MAX ( 44 ) * + + 88
----
NULL

query I rowsort
SELECT - 93 * - + 80
----
7440

query I rowsort
SELECT + 57 + - 87 - - 18 * + 78
----
1374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3569
SELECT MIN( + 9 ) AS col2, CAST( NULL AS SIGNED ) col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3569
SELECT MIN ( + 9 ) AS col2, CAST ( NULL AS INTEGER ) col1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + 45 + MIN( DISTINCT - + 80 )
----
-35

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 45 + MIN ( DISTINCT - + 80 )
----
-35

query I rowsort
SELECT + 63 * + + 41 AS col2
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( * ) + - NULLIF ( 60, + + COUNT( * ) + + + 53 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( * ) + - NULLIF ( 60, + + COUNT ( * ) + + + 53 ) AS col0
----
-61

query I rowsort
SELECT ALL 9 * + - 81 AS col0
----
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT + 15 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-3574
SELECT + 15 / + 3
----
5

query I rowsort
SELECT ALL 21 * + + 67 * - 1 * + 83 AS col2
----
-116781

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + SUM( DISTINCT 78 ) + + CASE - 0 WHEN + + 26 * - - COUNT( * ) - + 42 THEN 55 WHEN + 75 * + COUNT( * ) + 4 THEN ( - - 54 ) ELSE + 66 END AS col2
----
144

skipif mysql # not compatible
query I rowsort label-3576
SELECT + SUM ( DISTINCT 78 ) + + CASE - 0 WHEN + + 26 * - - COUNT ( * ) - + 42 THEN 55 WHEN + 75 * + COUNT ( * ) + 4 THEN ( - - 54 ) ELSE + 66 END AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL MAX( + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL MAX ( + 51 ) AS col1
----
51

query I rowsort
SELECT ALL ( + 46 ) * - - 63 AS col0
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT + 79 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 79 / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT - 85 DIV - + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 85 / - + 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - ( 13 ) * COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-3581
SELECT - ( 13 ) * COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT + SUM( ALL + - 32 ) + + 79 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3582
SELECT + SUM ( ALL + - 32 ) + + 79 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT - ( - + 26 ) AS col2, - CAST( + + 25 AS SIGNED ) * + 33 + - 54
----
26
-879

skipif mysql # not compatible
query II rowsort label-3583
SELECT - ( - + 26 ) AS col2, - CAST ( + + 25 AS INTEGER ) * + 33 + - 54
----
26
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 49 + + 10 + - ( + COUNT( * ) ) + + 98 * 26 AS col2
----
2606

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 49 + + 10 + - ( + COUNT ( * ) ) + + 98 * 26 AS col2
----
2606

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - 3 + + + COUNT( * ) * + CASE + 35 WHEN 9 / - - 14 THEN - 77 * 51 WHEN + + 35 + - ( - COUNT( * ) ) THEN NULL ELSE NULL END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 3 + + + COUNT ( * ) * + CASE + 35 WHEN 9 / - - 14 THEN - 77 * 51 WHEN + + 35 + - ( - COUNT ( * ) ) THEN NULL ELSE NULL END * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT MIN( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT MIN ( DISTINCT + 33 )
----
33

query I rowsort
SELECT ALL + + 7 * + 68 col1
----
476

query I rowsort
SELECT - 30 + 39 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT ALL + 88 DIV COALESCE ( + MAX( + 40 ), + MIN( DISTINCT 0 ) ) + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + 88 / COALESCE ( + MAX ( + 40 ), + MIN ( DISTINCT 0 ) ) + COUNT ( * ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT - - 38 * 91 DIV + 96 + 72 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3590
SELECT - - 38 * 91 / + 96 + 72 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT 40 / ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 40 / ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 76 AS col2
----
NULL

query I rowsort
SELECT - + ( + - 72 ) + - - 56 AS col0
----
128

query I rowsort
SELECT - 32 * - 77
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3594
SELECT - NULLIF ( + 10, - CAST( NULL AS SIGNED ) + + + 4 ) * 84 * COUNT( * ) * 0, - 34 DIV 96 * + - 80
----
0
0

skipif mysql # not compatible
query II rowsort label-3594
SELECT - NULLIF ( + 10, - CAST ( NULL AS INTEGER ) + + + 4 ) * 84 * COUNT ( * ) * 0, - 34 / 96 * + - 80
----
0
0

query I rowsort
SELECT ALL 90 * 38 * + + 17 AS col0
----
58140

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - + 22 * + CASE ( - 57 ) WHEN + ( + 36 ) THEN NULL WHEN + - 57 THEN - + 88 + - CASE ( 87 ) WHEN 89 THEN + ( + - CASE + - 14 WHEN + 95 THEN - - COUNT( + 8 ) ELSE + COUNT( * ) END ) ELSE 79 END ELSE 26 * ( ( - 0 ) ) END AS col0
----
3674

skipif mysql # not compatible
query I rowsort label-3596
SELECT - + 22 * + CASE ( - 57 ) WHEN + ( + 36 ) THEN NULL WHEN + - 57 THEN - + 88 + - CASE ( 87 ) WHEN 89 THEN + ( + - CASE + - 14 WHEN + 95 THEN - - COUNT ( + 8 ) ELSE + COUNT ( * ) END ) ELSE 79 END ELSE 26 * ( ( - 0 ) ) END AS col0
----
3674

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + SUM( ALL 12 ) * + 78
----
936

skipif mysql # not compatible
query I rowsort label-3597
SELECT + SUM ( ALL 12 ) * + 78
----
936

query I rowsort
SELECT NULLIF ( - - 53, 98 * 23 + - 97 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT SUM( ALL - 66 ) * + COUNT( * ) + ( 80 )
----
14

skipif mysql # not compatible
query I rowsort label-3599
SELECT SUM ( ALL - 66 ) * + COUNT ( * ) + ( 80 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT NULLIF ( 59, - - 6 * - + MAX( DISTINCT - 88 ) )
----
59

skipif mysql # not compatible
query I rowsort label-3600
SELECT NULLIF ( 59, - - 6 * - + MAX ( DISTINCT - 88 ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3601
SELECT COALESCE ( + 13, - 27 * + 10 + - - 77 + - 80 * + + MIN( - - 59 ) + - 83 + - + 88 DIV - + 6 * - 77 DIV + COALESCE ( + 29, + 52, - 74 * - - 90 ) * - 70 + + - 15 * - - 39 * CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3601
SELECT COALESCE ( + 13, - 27 * + 10 + - - 77 + - 80 * + + MIN ( - - 59 ) + - 83 + - + 88 / - + 6 * - 77 / + COALESCE ( + 29, + 52, - 74 * - - 90 ) * - 70 + + - 15 * - - 39 * CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + ( 74 ) + + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3602
SELECT + ( 74 ) + + - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT DISTINCT + COUNT( ALL + ( - 48 ) ) AS col1, COUNT( + 99 )
----
1
1

skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT + COUNT ( ALL + ( - 48 ) ) AS col1, COUNT ( + 99 )
----
1
1

query I rowsort
SELECT DISTINCT - ( 57 ) * + 49
----
-2793

query II rowsort
SELECT - COALESCE ( - - 46, 18, - 89 * - 86 ), - 9 + - 8 AS col2
----
-46
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT SUM( DISTINCT + - 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3606
SELECT SUM ( DISTINCT + - 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT - MAX( ALL - 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3607
SELECT - MAX ( ALL - 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT SUM( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3608
SELECT SUM ( DISTINCT + 83 ) AS col1
----
83

query I rowsort
SELECT - 55 - - 23
----
-32

query I rowsort
SELECT + 73 * - ( + 30 )
----
-2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT - CAST( + 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-3611
SELECT - CAST ( + 51 AS INTEGER )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT 2 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT 61 + + + MIN( - 3 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 61 + + + MIN ( - 3 ) AS col0
----
58

query I rowsort
SELECT + 5 - 75 * 62 AS col2
----
-4645

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT 47 AS col2, - COUNT( * ) AS col1
----
47
-1

skipif mysql # not compatible
query II rowsort label-3615
SELECT 47 AS col2, - COUNT ( * ) AS col1
----
47
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT 70 * 52 - + 5 + 29 * COUNT( * ) - + + 25 * - 42 + - 71 AS col0
----
4643

skipif mysql # not compatible
query I rowsort label-3616
SELECT 70 * 52 - + 5 + 29 * COUNT ( * ) - + + 25 * - 42 + - 71 AS col0
----
4643

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3617
SELECT 92 DIV + 50 - + - CAST( + 72 AS SIGNED ) - + + 14, + ( - 50 ) col0
----
59
-50

skipif mysql # not compatible
query II rowsort label-3617
SELECT 92 / + 50 - + - CAST ( + 72 AS INTEGER ) - + + 14, + ( - 50 ) col0
----
59
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3618
SELECT 28 AS col0, CASE - ( 98 ) WHEN - 79 / - CASE + CAST( NULL AS SIGNED ) WHEN + - ( + ( 18 ) ) * 60 THEN - NULLIF ( - 50, - - 9 ) ELSE + - 6 END THEN NULL ELSE 44 END col1, + 87
----
28
44
87

skipif mysql # not compatible
query III rowsort label-3618
SELECT 28 AS col0, CASE - ( 98 ) WHEN - 79 / - CASE + CAST ( NULL AS INTEGER ) WHEN + - ( + ( 18 ) ) * 60 THEN - NULLIF ( - 50, - - 9 ) ELSE + - 6 END THEN NULL ELSE 44 END col1, + 87
----
28
44
87

query I rowsort
SELECT + 21 * - 36 col2
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + - MIN( DISTINCT + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-3620
SELECT + - MIN ( DISTINCT + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - 88 * - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3621
SELECT - 88 * - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ALL - + 70 * 3 + - + 68, - COUNT( + 46 ) col1
----
-278
-1

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL - + 70 * 3 + - + 68, - COUNT ( + 46 ) col1
----
-278
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - 77 * COUNT( * ) + - 10 + + 66
----
-21

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 77 * COUNT ( * ) + - 10 + + 66
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT 35 AS col2, + COUNT( * ) * + 17 AS col0
----
35
17

skipif mysql # not compatible
query II rowsort label-3624
SELECT 35 AS col2, + COUNT ( * ) * + 17 AS col0
----
35
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3625
SELECT 40 DIV + NULLIF ( - ( CAST( - MIN( ALL + + 98 ) AS SIGNED ) ), 54 ) + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3625
SELECT 40 / + NULLIF ( - ( CAST ( - MIN ( ALL + + 98 ) AS INTEGER ) ), 54 ) + + 77 AS col1
----
77

query II rowsort
SELECT + 40 AS col2, 95 AS col1
----
40
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT 36 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT 36 / 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT 40 + + 51 DIV + 80 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3628
SELECT 40 + + 51 / + 80 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT 46 + CASE SUM( + 23 ) WHEN - ( 51 ) * + ( - NULLIF ( + + ( 56 ), - + 71 - + SUM( - 98 ) + 53 * - - 12 / 45 + 8 ) ) + - 67 THEN 69 ELSE NULL END + + 49 * + ( 62 ) + CASE ( 83 ) WHEN 47 THEN 0 * 89 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT 46 + CASE SUM ( + 23 ) WHEN - ( 51 ) * + ( - NULLIF ( + + ( 56 ), - + 71 - + SUM ( - 98 ) + 53 * - - 12 / 45 + 8 ) ) + - 67 THEN 69 ELSE NULL END + + 49 * + ( 62 ) + CASE ( 83 ) WHEN 47 THEN 0 * 89 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 55 + 64 AS col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT 62 DIV + ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT 62 / + ( + 74 )
----
0

query II rowsort
SELECT 7, 73 + - - 94 AS col1
----
7
167

query I rowsort
SELECT 74 + + 57 * - 81 * - 20
----
92414

query I rowsort
SELECT 45 + - 8
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL + 33 * - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + 33 * - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT 52 DIV + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3636
SELECT 52 / + + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 55 + + 93 col1
----
148

query I rowsort
SELECT 90 + + 23 AS col2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT 97 * + CAST( - 40 AS SIGNED )
----
-3880

skipif mysql # not compatible
query I rowsort label-3639
SELECT 97 * + CAST ( - 40 AS INTEGER )
----
-3880

query I rowsort
SELECT ALL 20 + 50 - - 15 col0
----
85

query I rowsort
SELECT DISTINCT + 15 + ( + 19 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT ALL - 10 + + 8 + - NULLIF ( + COALESCE ( 41, 37 DIV 45 * 67 DIV - 9 ), + + 5 )
----
-43

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - 10 + + 8 + - NULLIF ( + COALESCE ( 41, 37 / 45 * 67 / - 9 ), + + 5 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - COUNT( ALL 64 ), - 68 + ( - + 56 ) AS col0
----
-1
-124

skipif mysql # not compatible
query II rowsort label-3643
SELECT - COUNT ( ALL 64 ), - 68 + ( - + 56 ) AS col0
----
-1
-124

query I rowsort
SELECT 26 + 19
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT MAX( + - 37 ) + - + 40
----
-77

skipif mysql # not compatible
query I rowsort label-3645
SELECT MAX ( + - 37 ) + - + 40
----
-77

query II rowsort
SELECT ALL 6 AS col1, - CASE + - 74 WHEN - 93 THEN + - 33 WHEN - - 16 - - 19 * + 77 THEN NULL END * + 99 AS col0
----
6
NULL

query II rowsort
SELECT - 17, - 22 + - + 74 * - + ( - + 46 ) AS col2
----
-17
-3426

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + 1 + COUNT( ALL - 88 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 1 + COUNT ( ALL - 88 ) AS col0
----
2

query I rowsort
SELECT 65 * 66 + - 70
----
4220

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL COALESCE ( - 69, - + 43 ) * + - 9 + - 98 DIV + 69
----
620

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COALESCE ( - 69, - + 43 ) * + - 9 + - 98 / + 69
----
620

query I rowsort
SELECT 95 + 21 col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3652
SELECT ALL - MAX( ALL + ( - - 90 ) ) - 83 + 48 * COUNT( * ) + - + 68 AS col0, CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
-193
NULL

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - MAX ( ALL + ( - - 90 ) ) - 83 + 48 * COUNT ( * ) + - + 68 AS col0, CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
-193
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - 14 * COUNT( DISTINCT + COALESCE ( + 62, + + 8, 88 ) ) - + + COUNT( DISTINCT - 20 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - 14 * COUNT ( DISTINCT + COALESCE ( + 62, + + 8, 88 ) ) - + + COUNT ( DISTINCT - 20 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT COALESCE ( 99, + - SUM( ( - 89 ) ) ) DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-3654
SELECT COALESCE ( 99, + - SUM ( ( - 89 ) ) ) / 56
----
1

query I rowsort
SELECT 88 * + 60 AS col0
----
5280

query II rowsort
SELECT + - 75 AS col2, - 19
----
-75
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( * ) * - - 94 * + + COUNT( * ) - + - 93
----
187

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( * ) * - - 94 * + + COUNT ( * ) - + - 93
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - ( SUM( 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - ( SUM ( 7 ) )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT COUNT( * ) AS col1, - 76 * COUNT( * )
----
1
-76

skipif mysql # not compatible
query II rowsort label-3659
SELECT COUNT ( * ) AS col1, - 76 * COUNT ( * )
----
1
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3660
SELECT + 51 DIV ( - - 60 ) - + - COUNT( * ) * + ( 75 ) * - COUNT( * ) + + 9 * - + 67 col2, + COUNT( * ) col2
----
-678
1

skipif mysql # not compatible
query II rowsort label-3660
SELECT + 51 / ( - - 60 ) - + - COUNT ( * ) * + ( 75 ) * - COUNT ( * ) + + 9 * - + 67 col2, + COUNT ( * ) col2
----
-678
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MAX( + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MAX ( + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT COUNT( 23 )
----
1

skipif mysql # not compatible
query I rowsort label-3662
SELECT COUNT ( 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT COUNT( * ) * - + 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( * ) * - + 36 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT ALL - 64 * - - MAX( + 73 ) AS col0, + 60
----
-4672
60

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL - 64 * - - MAX ( + 73 ) AS col0, + 60
----
-4672
60

query II rowsort
SELECT ALL + 9 + + 11 col2, - 27 AS col2
----
20
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT COUNT( DISTINCT + 7 ) AS col2, 16 + 91 - - - 48
----
1
59

skipif mysql # not compatible
query II rowsort label-3666
SELECT COUNT ( DISTINCT + 7 ) AS col2, 16 + 91 - - - 48
----
1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT ALL - COUNT( - 26 ) AS col1, 53 + 42
----
-1
95

skipif mysql # not compatible
query II rowsort label-3667
SELECT ALL - COUNT ( - 26 ) AS col1, 53 + 42
----
-1
95

query I rowsort
SELECT 65 * - ( + 57 )
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - MAX( - 0 ) * + + 98 - + 1
----
-1

skipif mysql # not compatible
query I rowsort label-3669
SELECT - MAX ( - 0 ) * + + 98 - + 1
----
-1

query I rowsort
SELECT ALL 92 * - 77 * + ( - + 33 ) AS col0
----
233772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT 90 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 90 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL - 74 + 59 + + COUNT( DISTINCT 86 ) + + + SUM( - + 12 )
----
-26

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - 74 + 59 + + COUNT ( DISTINCT 86 ) + + + SUM ( - + 12 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL 91 + - CASE 40 WHEN ( - 72 ) THEN + 67 ELSE - SUM( DISTINCT - 72 ) END
----
19

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 91 + - CASE 40 WHEN ( - 72 ) THEN + 67 ELSE - SUM ( DISTINCT - 72 ) END
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + 29 + + ( - COUNT( * ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + 29 + + ( - COUNT ( * ) ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - 74 + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 74 + COUNT ( * ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3676
SELECT - + 33 * - 64 AS col1, - 65 / + CAST( NULL AS SIGNED ) + - + 3
----
2112
NULL

skipif mysql # not compatible
query II rowsort label-3676
SELECT - + 33 * - 64 AS col1, - 65 / + CAST ( NULL AS INTEGER ) + - + 3
----
2112
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 96 * - COUNT( * ) - - 4 + + 39 - - + NULLIF ( + 32, + COALESCE ( + 65, + + 37, - COUNT( * ), + COUNT( * ) ) ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 96 * - COUNT ( * ) - - 4 + + 39 - - + NULLIF ( + 32, + COALESCE ( + 65, + + 37, - COUNT ( * ), + COUNT ( * ) ) ) AS col1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL + 22 DIV - 78 + + + 21
----
21

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 22 / - 78 + + + 21
----
21

query I rowsort
SELECT - - 59 + + 70
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - - 72 AS col1
----
NULL

query II rowsort
SELECT - 54 + - 22 AS col2, 10 AS col2
----
-76
10

query I rowsort
SELECT - + 43 + + 30 + - 60 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT ALL + - 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + - 29 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 39 * - - 50 * + 76
----
148200

query I rowsort
SELECT - 79 * - - 60
----
-4740

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT 74 DIV + 42 + - + 26 - - 88 col1
----
63

skipif mysql # not compatible
query I rowsort label-3686
SELECT 74 / + 42 + - + 26 - - 88 col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL + CAST( - AVG ( DISTINCT - + 20 ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + CAST ( - AVG ( DISTINCT - + 20 ) AS INTEGER ) AS col0
----
20

query I rowsort
SELECT DISTINCT + 58 * 22 + - 35 + - + 90
----
1151

query I rowsort
SELECT + COALESCE ( 36, + 47 )
----
36

query I rowsort
SELECT ALL + 26 * + 97 + + 65 AS col1
----
2587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3691
SELECT + ( COUNT( * ) ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT + ( COUNT ( * ) ) / 45 AS col0
----
0

query I rowsort
SELECT DISTINCT 92 * 51 col1
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL COUNT( * ) * + 24 * 51 + - - 93 col1
----
1317

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL COUNT ( * ) * + 24 * 51 + - - 93 col1
----
1317

query I rowsort
SELECT + 38 * - 35
----
-1330

query I rowsort
SELECT ALL 49 * 89 + - 59
----
4302

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - 66
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT ALL + COUNT( * ) * + COUNT( * ) * - COUNT( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0
----
-1
-195884

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0
----
-1
-195884

query I rowsort
SELECT + ( - + 39 ) * + 25 + 56
----
-919

query II rowsort
SELECT DISTINCT + 29, + COALESCE ( - 97, + 72 - - + 5, + 13 * 87 ) AS col0
----
29
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT COALESCE ( - 22, - ( SUM( ALL 71 ) ) DIV - 60 ) * - 55 * + - 79 + 76
----
-95514

skipif mysql # not compatible
query I rowsort label-3700
SELECT COALESCE ( - 22, - ( SUM ( ALL 71 ) ) / - 60 ) * - 55 * + - 79 + 76
----
-95514

query II rowsort
SELECT ALL + 41 AS col2, - 13 AS col1
----
41
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COUNT( * ) * 21 * - SUM( + - 42 ) AS col0
----
882

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL COUNT ( * ) * 21 * - SUM ( + - 42 ) AS col0
----
882

query I rowsort
SELECT + COALESCE ( - 0, + 6 )
----
0

query I rowsort
SELECT ALL ( + + 2 ) AS col0
----
2

query I rowsort
SELECT DISTINCT 39 * 20
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3706
SELECT - CASE + 64 WHEN + NULLIF ( 69, + CAST( NULL AS SIGNED ) ) - 64 THEN SUM( - 22 ) WHEN - 82 THEN NULL ELSE NULL END * - + 21 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CASE + 64 WHEN + NULLIF ( 69, + CAST ( NULL AS INTEGER ) ) - 64 THEN SUM ( - 22 ) WHEN - 82 THEN NULL ELSE NULL END * - + 21 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + 40 * + - 21 + + - COUNT( * )
----
-841

skipif mysql # not compatible
query I rowsort label-3707
SELECT + 40 * + - 21 + + - COUNT ( * )
----
-841

query I rowsort
SELECT - 10 * + - 78 + - - 65 col0
----
845

query I rowsort
SELECT + - 70 + + ( - 59 ) * 76 AS col2
----
-4554

query I rowsort
SELECT - - 64 - 53
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT - NULLIF ( + - 16, - 49 * + - 40 + 83 * - 41 ) DIV + COALESCE ( - 54, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT - NULLIF ( + - 16, - 49 * + - 40 + 83 * - 41 ) / + COALESCE ( - 54, COUNT ( * ) )
----
0

query I rowsort
SELECT - + 89 - ( + - 21 )
----
-68

query I rowsort
SELECT ALL + 25 * 31
----
775

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - - 20 * + 5 + 62 + - - CASE - ( ( 58 ) ) WHEN + 84 THEN - 54 WHEN 27 + + 49 + + MAX( - 69 ) * MAX( 65 ) THEN - COUNT( * ) ELSE NULL END AS col0, + 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3714
SELECT - - 20 * + 5 + 62 + - - CASE - ( ( 58 ) ) WHEN + 84 THEN - 54 WHEN 27 + + 49 + + MAX ( - 69 ) * MAX ( 65 ) THEN - COUNT ( * ) ELSE NULL END AS col0, + 93 AS col1
----
NULL
93

query I rowsort
SELECT ALL + 14 + + 62 AS col1
----
76

query I rowsort
SELECT - + ( 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL 39 DIV + COUNT( * ) + + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL 39 / + COUNT ( * ) + + + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT COUNT( * ) DIV + + 87 + - + 20 + + 9 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3718
SELECT COUNT ( * ) / + + 87 + - + 20 + + 9 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT ALL SUM( - 43 ) DIV + COUNT( * ) + + COUNT( ALL 23 ) + - COALESCE ( - + MAX( ALL - 61 ), + + 39 ) * + SUM( - 60 ) * 87 AS col0
----
318378

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL SUM ( - 43 ) / + COUNT ( * ) + + COUNT ( ALL 23 ) + - COALESCE ( - + MAX ( ALL - 61 ), + + 39 ) * + SUM ( - 60 ) * 87 AS col0
----
318378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3720
SELECT ALL 3 DIV COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL 3 / COUNT ( * ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT ALL 76 DIV + 40 + 85 * - 37 AS col2
----
-3144

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 76 / + 40 + 85 * - 37 AS col2
----
-3144

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL CASE + - 5 WHEN - 86 THEN NULL WHEN + - 5 + - - 54 - - - 28 * COUNT( * ) THEN - 24 ELSE NULL END / - - 99 + + + 28 + 25 + + 24 * - 45 * - - COUNT( * ) AS col0, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL CASE + - 5 WHEN - 86 THEN NULL WHEN + - 5 + - - 54 - - - 28 * COUNT ( * ) THEN - 24 ELSE NULL END / - - 99 + + + 28 + 25 + + 24 * - 45 * - - COUNT ( * ) AS col0, 78
----
NULL
78

query I rowsort
SELECT 96 * - - 62
----
5952

query II rowsort
SELECT DISTINCT 2 * + 29, 19 AS col2
----
58
19

query I rowsort
SELECT 9 * - 71 AS col0
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT MAX( + ( - - 94 ) ) - - - 96
----
-2

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT MAX ( + ( - - 94 ) ) - - - 96
----
-2

query I rowsort
SELECT 86 * - 16
----
-1376

query I rowsort
SELECT ALL + 20 * 32 * - 82 AS col2
----
-52480

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + 69 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + 69 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - + COUNT( * ) * COUNT( * ) - + 42 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3730
SELECT - + COUNT ( * ) * COUNT ( * ) - + 42 AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT + NULLIF ( - 18, + CAST( NULL AS SIGNED ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + NULLIF ( - 18, + CAST ( NULL AS INTEGER ) ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-3732
SELECT COALESCE ( 95, - 68, - 7 ), - 27 DIV - - 48 AS col1
----
95
0

skipif mysql # not compatible
query II rowsort label-3732
SELECT COALESCE ( 95, - 68, - 7 ), - 27 / - - 48 AS col1
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT COUNT( 42 ) * - + 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3733
SELECT COUNT ( 42 ) * - + 55 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - - 87 * - COUNT( * ) * - 77 + COUNT( * ) + - COUNT( + + 83 )
----
6699

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - 87 * - COUNT ( * ) * - 77 + COUNT ( * ) + - COUNT ( + + 83 )
----
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT - ( - MAX( DISTINCT + - ( 43 ) ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3735
SELECT - ( - MAX ( DISTINCT + - ( 43 ) ) ) AS col0
----
-43

query I rowsort
SELECT + ( ( - - 23 ) ) - - 83
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT - 85 + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - 85 + - COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT 39 * - 54
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + - 49 + - + 92 * ( + + NULLIF ( + MAX( DISTINCT - 27 ), - 42 * - 33 * - + ( 32 ) * 17 - - 60 * + + 64 * + 22 ) ) + - + COUNT( * ) * + 92 * + COUNT( * ) * - 28 - 58 + + 29 AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + - 49 + - + 92 * ( + + NULLIF ( + MAX ( DISTINCT - 27 ), - 42 * - 33 * - + ( 32 ) * 17 - - 60 * + + 64 * + 22 ) ) + - + COUNT ( * ) * + 92 * + COUNT ( * ) * - 28 - 58 + + 29 AS col1
----
4982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3740
SELECT DISTINCT - - 86 + COUNT( - 48 ) * + 13 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT - - 86 + COUNT ( - 48 ) * + 13 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - 60 + 58 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT DISTINCT SUM( DISTINCT 23 ) col0, - 43 AS col2
----
23
-43

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT SUM ( DISTINCT 23 ) col0, - 43 AS col2
----
23
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL + 77 + + CAST( NULL AS SIGNED ) * + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + 77 + + CAST ( NULL AS INTEGER ) * + + 58
----
NULL

query I rowsort
SELECT ( 84 ) - 36 AS col0
----
48

query I rowsort
SELECT 81 * - 9 AS col2
----
-729

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - 5 DIV CAST( 8 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - 5 / CAST ( 8 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + 33 * 62
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT 74 - - + COUNT( * ) * - 99
----
-25

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 74 - - + COUNT ( * ) * - 99
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL - NULLIF ( - + MIN( 20 ), + + MAX( DISTINCT + 71 ) * COUNT( * ) + - ( + COUNT( * ) ) + MIN( DISTINCT - - 78 ) * - + 91 ) * COUNT( * ) * + + 10 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - NULLIF ( - + MIN ( 20 ), + + MAX ( DISTINCT + 71 ) * COUNT ( * ) + - ( + COUNT ( * ) ) + MIN ( DISTINCT - - 78 ) * - + 91 ) * COUNT ( * ) * + + 10 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT 80 - + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3750
SELECT 80 - + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT DISTINCT - 33 * + - 98 AS col1
----
3234

query II rowsort
SELECT ALL - 61 AS col0, 80 + - ( NULLIF ( + + 10, - 34 ) ) * 70
----
-61
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 69, - MIN( ALL - + 60 ), - - 68 ), 55 + 9 )
----
-69

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - NULLIF ( + + COALESCE ( + 69, - MIN ( ALL - + 60 ), - - 68 ), 55 + 9 )
----
-69

query I rowsort
SELECT ALL - 15 * - 16
----
240

query I rowsort
SELECT 70 + + 12 * - 30
----
-290

query I rowsort
SELECT 6 * - 76 * 36
----
-16416

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT COUNT( * ) - - COUNT( * ) * - 84
----
-83

skipif mysql # not compatible
query I rowsort label-3757
SELECT COUNT ( * ) - - COUNT ( * ) * - 84
----
-83

query I rowsort
SELECT ALL - ( - COALESCE ( - 43, - 37 * - 16 + + 36 ) ) AS col0
----
-43

query I rowsort
SELECT 52 * + + 7 + + 9 col1
----
373

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3760
SELECT 16 * + - 29 * - 64 - + COUNT( * ) / - - COUNT( * ) * - CAST( NULL AS DECIMAL ) - + 98 * - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT 16 * + - 29 * - 64 - + COUNT ( * ) / - - COUNT ( * ) * - CAST ( NULL AS REAL ) - + 98 * - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 96 * + COUNT( * ) * + 73 AS col1
----
7008

skipif mysql # not compatible
query I rowsort label-3761
SELECT 96 * + COUNT ( * ) * + 73 AS col1
----
7008

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT 99 + - - 65 DIV + + 50 col1
----
100

skipif mysql # not compatible
query I rowsort label-3762
SELECT 99 + - - 65 / + + 50 col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - NULLIF ( - + ( + COUNT( * ) ), + ( - COALESCE ( + - 2, + 62, - 6 ) ) * 74 )
----
1

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - NULLIF ( - + ( + COUNT ( * ) ), + ( - COALESCE ( + - 2, + 62, - 6 ) ) * 74 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL - 99 DIV - - 33
----
-3

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - 99 / - - 33
----
-3

query I rowsort
SELECT 70 * + + 3 - - ( - 52 ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + + COUNT( + - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3766
SELECT + + COUNT ( + - 63 ) AS col0
----
1

query I rowsort
SELECT + - ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3768
SELECT DISTINCT - 36 AS col1, SUM( ALL - 25 ) + - 79 AS col1
----
-36
-104

skipif mysql # not compatible
query II rowsort label-3768
SELECT DISTINCT - 36 AS col1, SUM ( ALL - 25 ) + - 79 AS col1
----
-36
-104

query I rowsort
SELECT + 36 * - + 3 * - 57 * + 54
----
332424

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + 6 + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 6 + - COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL 84 + - + 73 * + COALESCE ( + + CASE - 72 WHEN - - ( 85 ) THEN - + 51 END, - 90 + CASE - 75 WHEN - - 4 + - 90 * COUNT( * ) * - - 2 * - ( 48 ) THEN NULL WHEN - 78 / + + 87 THEN NULL ELSE + - 47 END, + 95 ) * 0 * + 87 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 84 + - + 73 * + COALESCE ( + + CASE - 72 WHEN - - ( 85 ) THEN - + 51 END, - 90 + CASE - 75 WHEN - - 4 + - 90 * COUNT ( * ) * - - 2 * - ( 48 ) THEN NULL WHEN - 78 / + + 87 THEN NULL ELSE + - 47 END, + 95 ) * 0 * + 87 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 57 ) + 56 + - + 85 AS col2
----
28

query I rowsort
SELECT ALL + 7 + - 14
----
-7

query I rowsort
SELECT + ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT 98 + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3775
SELECT 98 + - COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( + 46 AS SIGNED ) - - 34 - 19
----
61

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( + 46 AS INTEGER ) - - 34 - 19
----
61

query I rowsort
SELECT 91 + 70 AS col0
----
161

query II rowsort
SELECT 8 col2, + 92 AS col2
----
8
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - SUM( 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3779
SELECT - SUM ( 41 ) AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3780
SELECT CAST( + 14 AS SIGNED ) + 82 * + 18, - 86 AS col2
----
1490
-86

skipif mysql # not compatible
query II rowsort label-3780
SELECT CAST ( + 14 AS INTEGER ) + 82 * + 18, - 86 AS col2
----
1490
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT COUNT( ALL 23 ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-3781
SELECT COUNT ( ALL 23 ) * + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 92 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 92 * COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT - 80 + CASE + 90 WHEN + + 41 THEN + 0 + - + 1 / 90 - - + COUNT( + + ( + 18 ) ) - - CAST( - 70 AS SIGNED ) * + - 92 * + + CAST( NULL AS SIGNED ) ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 80 + CASE + 90 WHEN + + 41 THEN + 0 + - + 1 / 90 - - + COUNT ( + + ( + 18 ) ) - - CAST ( - 70 AS INTEGER ) * + - 92 * + + CAST ( NULL AS INTEGER ) ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 70, 51 AS col2
----
70
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + MIN( DISTINCT + 30 ) * + 16
----
480

skipif mysql # not compatible
query I rowsort label-3785
SELECT + MIN ( DISTINCT + 30 ) * + 16
----
480

query I rowsort
SELECT - 56 + - 4 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ALL 56, - 18 + - COUNT( * ) AS col1
----
56
-19

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL 56, - 18 + - COUNT ( * ) AS col1
----
56
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3788
SELECT DISTINCT 55 * - 5 / - CAST( NULL AS SIGNED ) - + 90 AS col0, CAST( NULL AS SIGNED ) / - COUNT( * ) + 84 / - - 32 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT 55 * - 5 / - CAST ( NULL AS INTEGER ) - + 90 AS col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 84 / - - 32 AS col1
----
NULL
NULL

query I rowsort
SELECT 47 * COALESCE ( + 99, + 40 ) + - 29
----
4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + 57 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + 57 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - 63 ) * 95 + - 67 * + 75 AS col0
----
-11010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT - 23 DIV 85 * - + ( 41 ) * + 45 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 23 / 85 * - + ( 41 ) * + 45 + - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT DISTINCT + 28 AS col1, + COUNT( * ) AS col2
----
28
1

skipif mysql # not compatible
query II rowsort label-3793
SELECT DISTINCT + 28 AS col1, + COUNT ( * ) AS col2
----
28
1

query I rowsort
SELECT ALL - 84 * + 52 AS col0
----
-4368

query I rowsort
SELECT ALL - 54 * + 61 * - 57
----
187758

query I rowsort
SELECT - 49 * 89 AS col2
----
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - + CASE - CASE + 23 WHEN 21 THEN - - 50 END WHEN - - MIN( + 57 ) + + 3 * 60 THEN - 23 WHEN - ( - + 62 ) THEN NULL WHEN - SUM( - 60 ) + + 94 * - COUNT( * ) THEN + 70 ELSE NULL END * - 69 - - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT - + CASE - CASE + 23 WHEN 21 THEN - - 50 END WHEN - - MIN ( + 57 ) + + 3 * 60 THEN - 23 WHEN - ( - + 62 ) THEN NULL WHEN - SUM ( - 60 ) + + 94 * - COUNT ( * ) THEN + 70 ELSE NULL END * - 69 - - - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT - 7 - 86 + - - 78 DIV 93
----
-93

skipif mysql # not compatible
query I rowsort label-3798
SELECT - 7 - 86 + - - 78 / 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT ALL + 20, MIN( 31 ) AS col2
----
20
31

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL + 20, MIN ( 31 ) AS col2
----
20
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3800
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT 10 AS col0, - 23 * - + 39 * - 15
----
10
-13455

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT + + SUM( 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + + SUM ( 54 ) AS col0
----
54

query I rowsort
SELECT + CASE - 89 WHEN 30 - + 43 + + 57 THEN - 40 * - AVG ( 44 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 12, 80 + - 10 + - 16 col1
----
12
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 58 * + 67 - 60 + - COUNT( * ) + + 24 AS col1
----
3849

skipif mysql # not compatible
query I rowsort label-3805
SELECT 58 * + 67 - 60 + - COUNT ( * ) + + 24 AS col1
----
3849

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT - - COUNT( * ) AS col0, 34 * - 17
----
1
-578

skipif mysql # not compatible
query II rowsort label-3806
SELECT - - COUNT ( * ) AS col0, 34 * - 17
----
1
-578

query I rowsort
SELECT DISTINCT - 36 + - 20 * ( + 61 )
----
-1256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3808
SELECT - + 72 * + 41 - - 17 + - 39 DIV - - 18 - + + 86 * - 87 AS col0, + 11 + + COALESCE ( COUNT( * ), + + 34, + CAST( NULL AS SIGNED ) ) + - 20 * 93 * + 84
----
4545
-156228

skipif mysql # not compatible
query II rowsort label-3808
SELECT - + 72 * + 41 - - 17 + - 39 / - - 18 - + + 86 * - 87 AS col0, + 11 + + COALESCE ( COUNT ( * ), + + 34, + CAST ( NULL AS INTEGER ) ) + - 20 * 93 * + 84
----
4545
-156228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3809
SELECT - 11 AS col2, 70 * + COUNT( * ) DIV + - 93 * - 40 * - 45 + + 40 AS col2
----
-11
40

skipif mysql # not compatible
query II rowsort label-3809
SELECT - 11 AS col2, 70 * + COUNT ( * ) / + - 93 * - 40 * - 45 + + 40 AS col2
----
-11
40

query I rowsort
SELECT + - 0 + - + 18 + 60
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT + 27 * + + COUNT( * ), CASE 33 WHEN + 56 THEN ( + - 35 ) * COUNT( * ) ELSE NULL END AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT + 27 * + + COUNT ( * ), CASE 33 WHEN + 56 THEN ( + - 35 ) * COUNT ( * ) ELSE NULL END AS col1
----
27
NULL

query I rowsort
SELECT DISTINCT - 42 * - 41 col0
----
1722

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT ALL ( COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL ( COUNT ( * ) ), COUNT ( * )
----
1
1

query II rowsort
SELECT DISTINCT ( + 52 ), + 8 AS col2
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - COALESCE ( + + COUNT( * ), - COUNT( * ) + + 68 * - - 2 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3815
SELECT - COALESCE ( + + COUNT ( * ), - COUNT ( * ) + + 68 * - - 2 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - 68 - + 1 + ( COUNT( * ) ) + - 32 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 68 - + 1 + ( COUNT ( * ) ) + - 32 AS col1
----
-100

query II rowsort
SELECT + 32 * 39, + 82 AS col1
----
1248
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3818
SELECT + COALESCE ( - COUNT( * ), + + 78 + + 6 + 94 - + 82, + + 14 DIV + 54 + 71 DIV 68 * + 3 - - ( + + ( - + 53 ) ) ) + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-3818
SELECT + COALESCE ( - COUNT ( * ), + + 78 + + 6 + 94 - + 82, + + 14 / + 54 + 71 / 68 * + 3 - - ( + + ( - + 53 ) ) ) + - 67
----
-68

query I rowsort
SELECT DISTINCT 85 * - + 23 AS col2
----
-1955

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3820
SELECT + ( + + COALESCE ( + CASE - SUM( DISTINCT - 18 ) WHEN - COUNT( * ) + + - 26 THEN COUNT( * ) * + - 57 END, 15, - + SUM( 71 ) ) ) * + 30 DIV 84 DIV - - 86 AS col1, - 91 * + - 37 * + COUNT( * ) * 19 * - COALESCE ( 71, - - 60 )
----
0
-4542083

skipif mysql # not compatible
query II rowsort label-3820
SELECT + ( + + COALESCE ( + CASE - SUM ( DISTINCT - 18 ) WHEN - COUNT ( * ) + + - 26 THEN COUNT ( * ) * + - 57 END, 15, - + SUM ( 71 ) ) ) * + 30 / 84 / - - 86 AS col1, - 91 * + - 37 * + COUNT ( * ) * 19 * - COALESCE ( 71, - - 60 )
----
0
-4542083

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL SUM( ( + + 16 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL SUM ( ( + + 16 ) ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT + 14 - - + 69 + - 31 - + + COUNT( * ) + + 11 - - COUNT( * ) DIV 54 * + 7 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 14 - - + 69 + - 31 - + + COUNT ( * ) + + 11 - - COUNT ( * ) / 54 * + 7 AS col0
----
62

query I rowsort
SELECT ALL 20 * + 15
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT 32 DIV - 70 + + + 88 * + CASE + + ( + 89 ) WHEN 82 THEN NULL WHEN - 69 THEN + NULLIF ( + CASE - AVG ( DISTINCT - + 85 ) WHEN COUNT( * ) THEN NULL WHEN 35 * - 84 + - 68 + CAST( 31 AS DECIMAL ) - - + COUNT( * ) DIV + 0 + AVG ( ALL + 9 ) * + CASE 8 WHEN + COUNT( * ) * + 15 DIV + + COUNT( 13 ) * - 7 + - 2 * COUNT( * ) THEN NULL WHEN - CASE - COUNT( * ) WHEN MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 29 THEN + 60 WHEN - 9 DIV + 99 + 78 * - ( - 28 * - 1 - 72 ) THEN NULL ELSE NULL END THEN - COUNT( * ) * CASE NULLIF ( 13, ( 59 ) ) WHEN NULLIF ( 42, + 4 + - 51 ) * 22 + - COUNT( * ) THEN NULL WHEN ( + 32 ) + SUM( - 25 ) THEN + 15 * 36 ELSE NULL END END + 69 THEN 39 ELSE 43 * COUNT( * ) END, - 51 + 31 ) * - CASE + CAST( NULL AS SIGNED ) WHEN 15 + COUNT( * ) THEN 93 ELSE NULL END ELSE + COUNT( * ) * + 59 + - ( 87 ) END DIV - 28 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT 32 / - 70 + + + 88 * + CASE + + ( + 89 ) WHEN 82 THEN NULL WHEN - 69 THEN + NULLIF ( + CASE - AVG ( DISTINCT - + 85 ) WHEN COUNT ( * ) THEN NULL WHEN 35 * - 84 + - 68 + CAST ( 31 AS REAL ) - - + COUNT ( * ) / + 0 + AVG ( ALL + 9 ) * + CASE 8 WHEN + COUNT ( * ) * + 15 / + + COUNT ( 13 ) * - 7 + - 2 * COUNT ( * ) THEN NULL WHEN - CASE - COUNT ( * ) WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 29 THEN + 60 WHEN - 9 / + 99 + 78 * - ( - 28 * - 1 - 72 ) THEN NULL ELSE NULL END THEN - COUNT ( * ) * CASE NULLIF ( 13, ( 59 ) ) WHEN NULLIF ( 42, + 4 + - 51 ) * 22 + - COUNT ( * ) THEN NULL WHEN ( + 32 ) + SUM ( - 25 ) THEN + 15 * 36 ELSE NULL END END + 69 THEN 39 ELSE 43 * COUNT ( * ) END, - 51 + 31 ) * - CASE + CAST ( NULL AS INTEGER ) WHEN 15 + COUNT ( * ) THEN 93 ELSE NULL END ELSE + COUNT ( * ) * + 59 + - ( 87 ) END / - 28 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL + 42 DIV + - 49 + - 84 + + 85 * - 4
----
-424

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 42 / + - 49 + - 84 + + 85 * - 4
----
-424

query II rowsort
SELECT - ( + 10 ) * - 32 + + 36 * - 88, 86 * + 22 AS col2
----
-2848
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 64 / + + COALESCE ( + - 41, 45 * + 71, + ( + + 29 ) ) / + CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 64 / + + COALESCE ( + - 41, 45 * + 71, + ( + + 29 ) ) / + CAST ( NULL AS INTEGER ) + + 64
----
NULL

query I rowsort
SELECT - CASE - + 58 WHEN + 43 THEN NULL ELSE + 50 END AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + 77 + - MIN( ALL - COALESCE ( - 31, + 15 ) ) + - 22 + - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 77 + - MIN ( ALL - COALESCE ( - 31, + 15 ) ) + - 22 + - COUNT ( * ) AS col1
----
23

query I rowsort
SELECT - 46 * 65 - + + 87 + 73
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - MAX( 65 ) - - + 42 + - 3 - - + 46 * - + 77 * - 69
----
244372

skipif mysql # not compatible
query I rowsort label-3831
SELECT - MAX ( 65 ) - - + 42 + - 3 - - + 46 * - + 77 * - 69
----
244372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT 79 DIV + 31 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT 79 / + 31 * - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3833
SELECT + CAST( NULL AS DECIMAL ) + 49 + - + 38 AS col0, - 37 AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-3833
SELECT + CAST ( NULL AS REAL ) + 49 + - + 38 AS col0, - 37 AS col2
----
NULL
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + MIN( - 21 ) * + 58 * 49 + 66
----
-59616

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + MIN ( - 21 ) * + 58 * 49 + 66
----
-59616

query I rowsort
SELECT - - 62 * + 78 AS col0
----
4836

query I rowsort
SELECT DISTINCT - 10 * + + ( - 98 ) + 34 * + + 83 + 12 + 35 AS col2
----
3849

query I rowsort
SELECT DISTINCT - 3 * + ( + 77 ) + + 5 * 15 + + 26 AS col0
----
-130

query I rowsort
SELECT ALL + 67 * - 18 + 62 col2
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + 48 * ( + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + 48 * ( + COUNT ( * ) )
----
48

query I rowsort
SELECT - - 10 + + + 45 AS col2
----
55

query I rowsort
SELECT - ( + ( - 31 ) ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT CASE + + 16 WHEN ( - 92 ) - - 52 THEN + - 44 * - 11 - - - CAST( + + 91 AS SIGNED ) * + COUNT( * ) / + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT( * ) * - + 3 + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT CASE + + 16 WHEN ( - 92 ) - - 52 THEN + - 44 * - 11 - - - CAST ( + + 91 AS INTEGER ) * + COUNT ( * ) / + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT ( * ) * - + 3 + 1 ELSE NULL END
----
NULL

query I rowsort
SELECT 83 * + 32 * + 46 + 29 + + 74
----
122279

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT ALL + 83 DIV 58 * + 81
----
81

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + 83 / 58 * + 81
----
81

query I rowsort
SELECT ALL - 29 - + 59 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT - 41 AS col0, COUNT( * ) - + CASE + + 10 WHEN - 25 * - 42 + - + COALESCE ( + MIN( - 3 ), - 61, 44 + + + 55 ) THEN NULL WHEN + + 25 THEN 97 / 54 - 12 + COUNT( ALL - 68 ) - + + 85 END + + 42 * 45 * + 97
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-3846
SELECT - 41 AS col0, COUNT ( * ) - + CASE + + 10 WHEN - 25 * - 42 + - + COALESCE ( + MIN ( - 3 ), - 61, 44 + + + 55 ) THEN NULL WHEN + + 25 THEN 97 / 54 - 12 + COUNT ( ALL - 68 ) - + + 85 END + + 42 * 45 * + 97
----
-41
NULL

query I rowsort
SELECT 71 + 11 * + 33 + 6 * + 4 + + 59 AS col0
----
517

query I rowsort
SELECT ALL + 56 * + 72 AS col1
----
4032

query I rowsort
SELECT DISTINCT - 66 * 88
----
-5808

query I rowsort
SELECT 6 + - 63 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT 26 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT 26 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT - 39 + + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - 39 + + + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT ALL 61 + - 75 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3854
SELECT - 73 AS col0, - COALESCE ( + COUNT( * ), CASE - 2 WHEN MAX( DISTINCT - - 12 ) * - CAST( NULL AS SIGNED ) / + - 93 THEN - + 84 END, + + 19 * - COUNT( * ), 52 )
----
-73
-1

skipif mysql # not compatible
query II rowsort label-3854
SELECT - 73 AS col0, - COALESCE ( + COUNT ( * ), CASE - 2 WHEN MAX ( DISTINCT - - 12 ) * - CAST ( NULL AS INTEGER ) / + - 93 THEN - + 84 END, + + 19 * - COUNT ( * ), 52 )
----
-73
-1

query II rowsort
SELECT 76 AS col2, 16 AS col2
----
76
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL 5 + + CASE COUNT( * ) WHEN - + 82 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL 5 + + CASE COUNT ( * ) WHEN - + 82 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3857
SELECT 51 DIV - + MIN( DISTINCT - + 46 ) + + 95 + + 69 + - MAX( 67 ) + + ( - MIN( - 60 ) ) DIV 6 + + + NULLIF ( - 62, - 48 ) DIV + + 84 + - 3 col2, 18 * + ( 94 )
----
105
1692

skipif mysql # not compatible
query II rowsort label-3857
SELECT 51 / - + MIN ( DISTINCT - + 46 ) + + 95 + + 69 + - MAX ( 67 ) + + ( - MIN ( - 60 ) ) / 6 + + + NULLIF ( - 62, - 48 ) / + + 84 + - 3 col2, 18 * + ( 94 )
----
105
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3858
SELECT + CASE + ( - 69 ) WHEN - COUNT( * ) THEN - - ( COUNT( * ) ) END, 58 DIV - 81 * + CASE - COUNT( * ) WHEN 74 THEN NULL WHEN + + 37 THEN NULL ELSE - 48 DIV + 63 + - 36 END - + 67 AS col1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-3858
SELECT + CASE + ( - 69 ) WHEN - COUNT ( * ) THEN - - ( COUNT ( * ) ) END, 58 / - 81 * + CASE - COUNT ( * ) WHEN 74 THEN NULL WHEN + + 37 THEN NULL ELSE - 48 / + 63 + - 36 END - + 67 AS col1
----
NULL
-67

query I rowsort
SELECT ALL - 71 + - + 74
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT 2, 9 + - 74 + 51 * + COALESCE ( COUNT( * ), + + 94 ) * + 12 + + + 93 AS col1
----
2
640

skipif mysql # not compatible
query II rowsort label-3860
SELECT 2, 9 + - 74 + 51 * + COALESCE ( COUNT ( * ), + + 94 ) * + 12 + + + 93 AS col1
----
2
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) * - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - 2 + + SUM( - 91 ) + + 41 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - 2 + + SUM ( - 91 ) + + 41 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-3863
SELECT + 66 AS col0, + 5 * - 90 DIV 87 + - 16 + - 47 * ( - ( + + 46 ) )
----
66
2141

skipif mysql # not compatible
query II rowsort label-3863
SELECT + 66 AS col0, + 5 * - 90 / 87 + - 16 + - 47 * ( - ( + + 46 ) )
----
66
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL - - CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - - CAST ( + + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT - ( - 28 ) + - ( COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - ( - 28 ) + - ( COUNT ( * ) )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT + 67 AS col0, COALESCE ( - COUNT( DISTINCT 85 ), - 63 )
----
67
-1

skipif mysql # not compatible
query II rowsort label-3866
SELECT + 67 AS col0, COALESCE ( - COUNT ( DISTINCT 85 ), - 63 )
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL 8 - - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL 8 - - COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT 55 * 70 - COUNT( DISTINCT - + 60 )
----
3849

skipif mysql # not compatible
query I rowsort label-3868
SELECT 55 * 70 - COUNT ( DISTINCT - + 60 )
----
3849

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT SUM( ALL - - ( 13 ) ) * + 17 * - 6
----
-1326

skipif mysql # not compatible
query I rowsort label-3869
SELECT SUM ( ALL - - ( 13 ) ) * + 17 * - 6
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + + ( - SUM( + + 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3870
SELECT + + ( - SUM ( + + 91 ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3871
SELECT + ( - 34 ) - - 65 * + + CAST( NULL AS SIGNED ) * - - ( 71 ) AS col2, NULLIF ( 89, - 42 / MIN( DISTINCT + - 75 ) * - + 93 + + - 6 + + 42 ) + - - COUNT( * ) AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3871
SELECT + ( - 34 ) - - 65 * + + CAST ( NULL AS INTEGER ) * - - ( 71 ) AS col2, NULLIF ( 89, - 42 / MIN ( DISTINCT + - 75 ) * - + 93 + + - 6 + + 42 ) + - - COUNT ( * ) AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT + COUNT( * ), 78 AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-3872
SELECT + COUNT ( * ), 78 AS col2
----
1
78

query II rowsort
SELECT DISTINCT - 83 col1, + 8 * - NULLIF ( + 34, + 70 + + 32 * + - 96 ) * + 88 AS col2
----
-83
-23936

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - + NULLIF ( + 50, + 52 ) * + + 94 * - + COUNT( * ) AS col1
----
4700

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - + NULLIF ( + 50, + 52 ) * + + 94 * - + COUNT ( * ) AS col1
----
4700

query I rowsort
SELECT 42 * 38
----
1596

query I rowsort
SELECT - 41 * - 72 AS col0
----
2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL + ( + 86 ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + ( + 86 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - + 87
----
-3915

query I rowsort
SELECT ( - - 43 ) * - 74
----
-3182

query II rowsort
SELECT 0 * - 83 AS col1, - 23
----
0
-23

query I rowsort
SELECT ALL + 88 * + 78
----
6864

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT 16 + - - 0 - + COUNT( ALL + 32 ), 80 + - + 25 AS col2
----
15
55

skipif mysql # not compatible
query II rowsort label-3882
SELECT 16 + - - 0 - + COUNT ( ALL + 32 ), 80 + - + 25 AS col2
----
15
55

query I rowsort
SELECT ALL + 52 + + 38 AS col1
----
90

query I rowsort
SELECT ALL 3 + + ( 32 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT DISTINCT 62 + 22 + + + 57 * COUNT( * ) * + CASE + MAX( 56 ) WHEN + COUNT( * ) * 24 + - + 38 - + 51 * ( + 32 ) * - + AVG ( 69 ) + + 12 + - 54 + COUNT( * ) / 65 THEN NULL WHEN CAST( NULL AS SIGNED ) - 97 + - 89 + - 11 + + - 60 * + - 27 / + + 79 / - 35 THEN + 16 * - ( NULLIF ( - 33, - 15 / COUNT( * ) ) ) END * + NULLIF ( 22 * + COUNT( * ), - 89 / - 22 ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 62 + 22 + + + 57 * COUNT ( * ) * + CASE + MAX ( 56 ) WHEN + COUNT ( * ) * 24 + - + 38 - + 51 * ( + 32 ) * - + AVG ( 69 ) + + 12 + - 54 + COUNT ( * ) / 65 THEN NULL WHEN CAST ( NULL AS INTEGER ) - 97 + - 89 + - 11 + + - 60 * + - 27 / + + 79 / - 35 THEN + 16 * - ( NULLIF ( - 33, - 15 / COUNT ( * ) ) ) END * + NULLIF ( 22 * + COUNT ( * ), - 89 / - 22 ) * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT DISTINCT SUM( - + 90 ) AS col1, 83 AS col2
----
-90
83

skipif mysql # not compatible
query II rowsort label-3886
SELECT DISTINCT SUM ( - + 90 ) AS col1, 83 AS col2
----
-90
83

query I rowsort
SELECT 15 * + 33
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT 95 - MIN( - + 39 ) * ( + - 50 )
----
-1855

skipif mysql # not compatible
query I rowsort label-3888
SELECT 95 - MIN ( - + 39 ) * ( + - 50 )
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL - COUNT( * ) + 73 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - COUNT ( * ) + 73 + COUNT ( * )
----
73

query I rowsort
SELECT 5 + - 15 + - 81 * 3 * 66 AS col2
----
-16048

query I rowsort
SELECT 40 * + - 18
----
-720

query I rowsort
SELECT 15 + + 55 col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL - + 63 + 22 + + + 12 + COUNT( * ) * + + 47 DIV 58 col0
----
-29

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - + 63 + 22 + + + 12 + COUNT ( * ) * + + 47 / 58 col0
----
-29

query II rowsort
SELECT - 82 * + COALESCE ( 36, + 19 ) AS col2, 30
----
-2952
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL + COUNT( * ) * - - 79 * - 20 AS col0
----
-1580

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + COUNT ( * ) * - - 79 * - 20 AS col0
----
-1580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3896
SELECT ALL COUNT( * ) DIV + + 67 - COUNT( * ) * - + 76 AS col1, 44 AS col0
----
76
44

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL COUNT ( * ) / + + 67 - COUNT ( * ) * - + 76 AS col1, 44 AS col0
----
76
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT + - ( + - COUNT( * ) ) DIV - 2 + - - ( + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3897
SELECT + - ( + - COUNT ( * ) ) / - 2 + - - ( + 66 )
----
66

query I rowsort
SELECT + 62 * + + 79 AS col0
----
4898

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT DISTINCT - ( + 58 ), 7 * COALESCE ( + COUNT( ALL + 68 ), + + 15 ) col2
----
-58
7

skipif mysql # not compatible
query II rowsort label-3899
SELECT DISTINCT - ( + 58 ), 7 * COALESCE ( + COUNT ( ALL + 68 ), + + 15 ) col2
----
-58
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT DISTINCT COUNT( * ) * 92 * + 28 * + 25 col0, 72
----
64400
72

skipif mysql # not compatible
query II rowsort label-3900
SELECT DISTINCT COUNT ( * ) * 92 * + 28 * + 25 col0, 72
----
64400
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT MAX( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3901
SELECT MAX ( DISTINCT - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( ALL + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( ALL + 87 ) AS col1
----
1

query I rowsort
SELECT + ( + 34 ) + + 61
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL 15 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 15 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + COUNT( * ) + + COALESCE ( 34, 13, + 98 * - ( + 39 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3905
SELECT + COUNT ( * ) + + COALESCE ( 34, 13, + 98 * - ( + 39 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL 27 + MAX( - - 91 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 27 + MAX ( - - 91 ) AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL COUNT( * ) + ( 95 ) * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL COUNT ( * ) + ( 95 ) * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT 62 + - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3909
SELECT ALL + ( - COUNT( * ) ) + - 42 AS col1, - COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) / - 21 * 90
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL + ( - COUNT ( * ) ) + - 42 AS col1, - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) / - 21 * 90
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL 97 + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 97 + - COUNT ( * ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3911
SELECT - 67 + + ( + 98 ) DIV + - 57 + 61, + 0 AS col1
----
-7
0

skipif mysql # not compatible
query II rowsort label-3911
SELECT - 67 + + ( + 98 ) / + - 57 + 61, + 0 AS col1
----
-7
0

query I rowsort
SELECT DISTINCT 90 * + 60
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL COALESCE ( 28, 58 ) + + 62 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL COALESCE ( 28, 58 ) + + 62 - + - COUNT ( * )
----
91

query I rowsort
SELECT + 55 + + 35 AS col0
----
90

query I rowsort
SELECT + 31 + - 87 AS col0
----
-56

query I rowsort
SELECT - 37 + + 88
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - COUNT( * ) + + - ( - ( - 44 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( * ) + + - ( - ( - 44 ) ) AS col1
----
-45

query II rowsort
SELECT - 27, 6 * + 7 col0
----
-27
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT - - CAST( 97 AS SIGNED ) + + + 13 + + COUNT( * ) * - COUNT( 70 )
----
109

skipif mysql # not compatible
query I rowsort label-3919
SELECT - - CAST ( 97 AS INTEGER ) + + + 13 + + COUNT ( * ) * - COUNT ( 70 )
----
109

query I rowsort
SELECT ALL + 69 - - 15
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT - CASE - 68 WHEN - COUNT( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3921
SELECT - CASE - 68 WHEN - COUNT ( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - + 99 + 96 + - 27 * - MAX( DISTINCT 11 ) * + 43 + + 27
----
12795

skipif mysql # not compatible
query I rowsort label-3922
SELECT - + 99 + 96 + - 27 * - MAX ( DISTINCT 11 ) * + 43 + + 27
----
12795

query I rowsort
SELECT - 16 * - 82 - 56 AS col2
----
1256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT - CAST( + 23 AS SIGNED ) * 44
----
-1012

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - CAST ( + 23 AS INTEGER ) * 44
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT - - ( COUNT( * ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT - - ( COUNT ( * ) ) - + COUNT ( * )
----
0

query I rowsort
SELECT - + 50 * - - ( + ( + + 53 ) )
----
-2650

query I rowsort
SELECT DISTINCT - 86 * - 96
----
8256

query I rowsort
SELECT ALL + 28 * 51 AS col0
----
1428

query I rowsort
SELECT - 82 * + 18 * - + 92 col0
----
135792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT DISTINCT + COUNT( * ) * CASE - + 19 WHEN 6 THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col2, 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3930
SELECT DISTINCT + COUNT ( * ) * CASE - + 19 WHEN 6 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, 91 col0
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL + 92 AS col2, - 4 + MAX( 62 ) + - NULLIF ( - 69, - COUNT( * ) + + + 37 + - 16 ) + COUNT( * )
----
92
128

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL + 92 AS col2, - 4 + MAX ( 62 ) + - NULLIF ( - 69, - COUNT ( * ) + + + 37 + - 16 ) + COUNT ( * )
----
92
128

query I rowsort
SELECT - 0 * + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT ALL + 84 * + - 69 + - 76 * - - COUNT( * ) * - + ( - + MAX( DISTINCT - COALESCE ( - + 23, + 84, + + 93 ) ) ), 37 AS col0
----
-7544
37

skipif mysql # not compatible
query II rowsort label-3933
SELECT ALL + 84 * + - 69 + - 76 * - - COUNT ( * ) * - + ( - + MAX ( DISTINCT - COALESCE ( - + 23, + 84, + + 93 ) ) ), 37 AS col0
----
-7544
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - COUNT( * ) * - 15
----
15

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - COUNT ( * ) * - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + + SUM( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + + SUM ( DISTINCT + 13 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT 39 * + 5 * + 77 + ( + 44 ) DIV - 71
----
15015

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT 39 * + 5 * + 77 + ( + 44 ) / - 71
----
15015

query I rowsort
SELECT + + ( - 2 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3938
SELECT ALL - 3 * + 69 + CASE - + COUNT( * ) WHEN 61 THEN NULL WHEN + - 75 THEN - 39 * - 20 ELSE NULL END + - CASE + 68 WHEN 55 * + + 16 THEN NULL ELSE - 32 END + + + ( - CASE + 34 WHEN - COUNT( * ) THEN - + MAX( ALL - CAST( NULL AS SIGNED ) ) WHEN + 39 / - 37 THEN NULL ELSE NULL END ) * - 62 + - 64 * - SUM( 82 ) + 74 - - 78 + + - CAST( 2 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - 3 * + 69 + CASE - + COUNT ( * ) WHEN 61 THEN NULL WHEN + - 75 THEN - 39 * - 20 ELSE NULL END + - CASE + 68 WHEN 55 * + + 16 THEN NULL ELSE - 32 END + + + ( - CASE + 34 WHEN - COUNT ( * ) THEN - + MAX ( ALL - CAST ( NULL AS INTEGER ) ) WHEN + 39 / - 37 THEN NULL ELSE NULL END ) * - 62 + - 64 * - SUM ( 82 ) + 74 - - 78 + + - CAST ( 2 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL 88 * + - 57 + + + 59 + - COUNT( * )
----
-4958

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL 88 * + - 57 + + + 59 + - COUNT ( * )
----
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - 45 * 74 / + CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - 45 * 74 / + CAST ( NULL AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT - ( + 78 ) - - 83 AS col1
----
5

query I rowsort
SELECT ALL 60 * + 25 + + - 98 AS col1
----
1402

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT NULLIF ( - - 11, COUNT( * ) * 0 )
----
11

skipif mysql # not compatible
query I rowsort label-3943
SELECT NULLIF ( - - 11, COUNT ( * ) * 0 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT 4 * - + 11 * + 60 + COUNT( * ) * + + ( 1 ) * - COUNT( * ) * 76 + - - 58 + + 32 AS col0
----
-2626

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT 4 * - + 11 * + 60 + COUNT ( * ) * + + ( 1 ) * - COUNT ( * ) * 76 + - - 58 + + 32 AS col0
----
-2626

query I rowsort
SELECT ALL 56 * NULLIF ( 48, + 21 - - + 18 / + COALESCE ( - - 50, + 60 ) ) AS col1
----
2688

query I rowsort
SELECT + ( + + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - 3 * - - COUNT( * ) + - 79
----
-82

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 3 * - - COUNT ( * ) + - 79
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT + 20 * ( + 74 ) DIV 95 DIV - - 38 * - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT + 20 * ( + 74 ) / 95 / - - 38 * - 2 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3949
SELECT ALL 15 AS col1, 46 * + + COALESCE ( + 15, + + 68 DIV 50 + + - 22, + 15 DIV - - 4 + - 70 )
----
15
690

skipif mysql # not compatible
query II rowsort label-3949
SELECT ALL 15 AS col1, 46 * + + COALESCE ( + 15, + + 68 / 50 + + - 22, + 15 / - - 4 + - 70 )
----
15
690

query II rowsort
SELECT ALL 17 AS col1, + 44 + 30
----
17
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT CASE SUM( - 85 ) WHEN - - COALESCE ( 77, - COALESCE ( 3, - 91 * - 66 + - 19 ) * 80 + - 36 / 10 + + 76 + + 15 * + 73 + COUNT( * ) * - COUNT( + + 51 ) ) + + + 61 - 36 THEN 78 ELSE 65 END - - 44 * 64 AS col1
----
2881

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT CASE SUM ( - 85 ) WHEN - - COALESCE ( 77, - COALESCE ( 3, - 91 * - 66 + - 19 ) * 80 + - 36 / 10 + + 76 + + 15 * + 73 + COUNT ( * ) * - COUNT ( + + 51 ) ) + + + 61 - 36 THEN 78 ELSE 65 END - - 44 * 64 AS col1
----
2881

query I rowsort
SELECT + 84 * + 95 * + 12
----
95760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3953
SELECT + COUNT( * ) DIV 96 * + - 25 * 15 AS col0, - 4 AS col0
----
0
-4

skipif mysql # not compatible
query II rowsort label-3953
SELECT + COUNT ( * ) / 96 * + - 25 * 15 AS col0, - 4 AS col0
----
0
-4

query II rowsort
SELECT ALL 26 AS col2, 65 * + 14 * + - 4
----
26
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT - 92 * - CAST( - 77 AS SIGNED ) AS col0
----
-7084

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - 92 * - CAST ( - 77 AS INTEGER ) AS col0
----
-7084

query I rowsort
SELECT + - 34 * 26 AS col0
----
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT + MAX( - ( 84 ) ) * - 93 AS col1, ( - 39 )
----
7812
-39

skipif mysql # not compatible
query II rowsort label-3957
SELECT + MAX ( - ( 84 ) ) * - 93 AS col1, ( - 39 )
----
7812
-39

query I rowsort
SELECT + NULLIF ( 80, - 3 ) + - 79 + + - ( + ( - 27 ) ) * + 33 + + 76
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + + MAX( ALL - 14 ) * 93 AS col1
----
-1302

skipif mysql # not compatible
query I rowsort label-3959
SELECT + + MAX ( ALL - 14 ) * 93 AS col1
----
-1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL CAST( + 52 AS SIGNED ) * 20
----
1040

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL CAST ( + 52 AS INTEGER ) * 20
----
1040

query I rowsort
SELECT + 44 + - + 19
----
25

query I rowsort
SELECT DISTINCT - 32 * + 33 * - 53
----
55968

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + SUM( + 33 ) + - 18 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3963
SELECT + SUM ( + 33 ) + - 18 AS col0
----
15

query II rowsort
SELECT ALL 80 col0, + 91
----
80
91

query II rowsort
SELECT - ( - 53 ) AS col1, + 31
----
53
31

query II rowsort
SELECT DISTINCT 13 AS col2, - 67 AS col0
----
13
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + 32 * + - 74 + - + 21 + 96 / + CAST( NULL AS SIGNED ) / - 93 * - + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 32 * + - 74 + - + 21 + 96 / + CAST ( NULL AS INTEGER ) / - 93 * - + 8 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT DISTINCT + - 99 + + - 42 AS col1, 9 + + 21 DIV - 66 AS col1
----
-141
9

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT + - 99 + + - 42 AS col1, 9 + + 21 / - 66 AS col1
----
-141
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - 47 + + COUNT( 48 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - 47 + + COUNT ( 48 ) AS col2
----
-46

query I rowsort
SELECT - 60 + + ( - - 63 )
----
3

query I rowsort
SELECT - 34 + - 72 * + 22
----
-1618

query I rowsort
SELECT ALL + + 49 + - + 46 + + + ( - 49 ) AS col0
----
-46

query II rowsort
SELECT 44 AS col1, - 97 AS col2
----
44
-97

query I rowsort
SELECT ALL + - 24 * - 6 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + CASE 79 WHEN + + 60 + + COUNT( - - 83 ) * 34 THEN NULL WHEN - - 80 THEN NULL WHEN 22 THEN NULLIF ( - 54, + COUNT( * ) * - + 39 + - COUNT( DISTINCT + 37 ) ) END / 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT + CASE 79 WHEN + + 60 + + COUNT ( - - 83 ) * 34 THEN NULL WHEN - - 80 THEN NULL WHEN 22 THEN NULLIF ( - 54, + COUNT ( * ) * - + 39 + - COUNT ( DISTINCT + 37 ) ) END / 39 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT ( - COUNT( * ) ) * - + 87 * + - 46 - - ( + COALESCE ( + CAST( - ( + + 61 ) AS SIGNED ), - + 45, - 45 ) ) + 76 + + 54 + - COUNT( * ) + + - 95
----
-4029

skipif mysql # not compatible
query I rowsort label-3976
SELECT ( - COUNT ( * ) ) * - + 87 * + - 46 - - ( + COALESCE ( + CAST ( - ( + + 61 ) AS INTEGER ), - + 45, - 45 ) ) + 76 + + 54 + - COUNT ( * ) + + - 95
----
-4029

query II rowsort
SELECT ALL 86 + + - ( 17 ) AS col1, 81 col2
----
69
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + 93 + + 5 + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 93 + + 5 + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT 9 + - - 33 AS col2
----
42

query I rowsort
SELECT 15 * + 2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3981
SELECT ALL - CAST( 74 AS SIGNED ) AS col2, 57 AS col0
----
-74
57

skipif mysql # not compatible
query II rowsort label-3981
SELECT ALL - CAST ( 74 AS INTEGER ) AS col2, 57 AS col0
----
-74
57

query I rowsort
SELECT ALL - 39 + 38 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT - CASE 44 WHEN - + CAST( NULL AS SIGNED ) THEN ( - + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - CASE 44 WHEN - + CAST ( NULL AS INTEGER ) THEN ( - + 65 ) END
----
NULL

query I rowsort
SELECT 15 + + + 93 AS col2
----
108

query I rowsort
SELECT 18 * + 17 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT 95 * COUNT( * ) + 31 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-3986
SELECT 95 * COUNT ( * ) + 31 AS col0
----
126

query I rowsort
SELECT DISTINCT - 58 - 0 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3988
SELECT ALL + COALESCE ( + COUNT( * ), + 3 + + 99 + - + 71 * - 93 * - MAX( CAST( NULL AS SIGNED ) ) ) * + MIN( DISTINCT - - 15 ) AS col1, 84
----
15
84

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL + COALESCE ( + COUNT ( * ), + 3 + + 99 + - + 71 * - 93 * - MAX ( CAST ( NULL AS INTEGER ) ) ) * + MIN ( DISTINCT - - 15 ) AS col1, 84
----
15
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT SUM( + + 15 ) + + 75
----
90

skipif mysql # not compatible
query I rowsort label-3989
SELECT SUM ( + + 15 ) + + 75
----
90

query I rowsort
SELECT DISTINCT + 86 * + 92 AS col1
----
7912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT 63 * + COUNT( * ) - + + MAX( - 6 ) DIV + + 31
----
63

skipif mysql # not compatible
query I rowsort label-3991
SELECT 63 * + COUNT ( * ) - + + MAX ( - 6 ) / + + 31
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ALL + COUNT( * ) DIV 30 + 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + COUNT ( * ) / 30 + 88 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT ALL + ( + SUM( ALL 63 ) ) DIV + ( + 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + ( + SUM ( ALL 63 ) ) / + ( + 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT 32 * - - 41 col0, SUM( DISTINCT 80 )
----
1312
80

skipif mysql # not compatible
query II rowsort label-3994
SELECT 32 * - - 41 col0, SUM ( DISTINCT 80 )
----
1312
80

query I rowsort
SELECT ALL 8 + - + 87
----
-79

query II rowsort
SELECT 62 + - - ( - 22 ), + ( + 15 ) AS col0
----
40
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT ALL + 67 DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + 67 / - 85 AS col0
----
0

query I rowsort
SELECT DISTINCT + 9 + - + ( + ( - 49 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT + COALESCE ( + 41, - + 56, - 32 * + 86 * ( - + 83 ) DIV COUNT( * ) + - + 6 )
----
41

skipif mysql # not compatible
query I rowsort label-3999
SELECT + COALESCE ( + 41, - + 56, - 32 * + 86 * ( - + 83 ) / COUNT ( * ) + - + 6 )
----
41

query I rowsort
SELECT 55 * - 25 AS col1
----
-1375

query II rowsort
SELECT ALL + 26 + - 26 col0, - 12 AS col0
----
0
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT - - 37 DIV + + 10 + + COUNT( * ) DIV - - 75 + + ( - + 5 ) * - + 75 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-4002
SELECT - - 37 / + + 10 + + COUNT ( * ) / - - 75 + + ( - + 5 ) * - + 75 AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - 35 + - 32 - ( COUNT( - NULLIF ( + + 46, - 24 + - - 18 ) ) ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - 35 + - 32 - ( COUNT ( - NULLIF ( + + 46, - 24 + - - 18 ) ) ) col2
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4004
SELECT CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT CAST ( NULL AS REAL ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT MAX( DISTINCT - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4005
SELECT MAX ( DISTINCT - - 29 )
----
29

query II rowsort
SELECT + 38, 86 AS col0
----
38
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL ( - 31 ) - - + 69 * + MIN( ALL - 16 ) AS col0
----
-1135

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL ( - 31 ) - - + 69 * + MIN ( ALL - 16 ) AS col0
----
-1135

query I rowsort
SELECT 34 * 22
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - MAX( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - MAX ( + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + ( + COUNT( * ) ) * 9 * 93 + - 27 + + ( COUNT( * ) )
----
811

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + ( + COUNT ( * ) ) * 9 * 93 + - 27 + + ( COUNT ( * ) )
----
811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT 18 + 47 * ( - - 24 ) + 34 + - 42 - COALESCE ( + 75, - CAST( NULL AS SIGNED ), + 22 ) + + 95 * CASE CASE 93 WHEN 67 * - COUNT( * ) / + 67 * + + CAST( + - 40 AS SIGNED ) + + 88 - - + COUNT( * ) * - 48 - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN - 39 / - 8 END WHEN + - 51 * 14 THEN + - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT 18 + 47 * ( - - 24 ) + 34 + - 42 - COALESCE ( + 75, - CAST ( NULL AS INTEGER ), + 22 ) + + 95 * CASE CASE 93 WHEN 67 * - COUNT ( * ) / + 67 * + + CAST ( + - 40 AS INTEGER ) + + 88 - - + COUNT ( * ) * - 48 - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - 39 / - 8 END WHEN + - 51 * 14 THEN + - 18 END
----
NULL

query I rowsort
SELECT 24 * 72 * - ( - 65 ) col2
----
112320

query II rowsort
SELECT ALL - 69 AS col0, 4 AS col2
----
-69
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT 43 DIV - - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT 43 / - - 80 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL - 36 DIV - 93 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - 36 / - 93 * - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT 50 * + ( - COUNT( * ) ) * - - 66 AS col0
----
-3300

skipif mysql # not compatible
query I rowsort label-4016
SELECT 50 * + ( - COUNT ( * ) ) * - - 66 AS col0
----
-3300

query I rowsort
SELECT 53 - + 57
----
-4

query II rowsort
SELECT ( + 68 ) * + - 79, 39 - - 7 col0
----
-5372
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL COUNT ( ALL 24 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT 3 AS col1, 42 * COUNT( * ) * - - ( 96 )
----
3
4032

skipif mysql # not compatible
query II rowsort label-4020
SELECT 3 AS col1, 42 * COUNT ( * ) * - - ( 96 )
----
3
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT 33 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT 33 / 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT - 30, COUNT( * ) + 24 AS col1
----
-30
25

skipif mysql # not compatible
query II rowsort label-4022
SELECT - 30, COUNT ( * ) + 24 AS col1
----
-30
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4023
SELECT ALL ( COUNT( + CAST( + 62 AS DECIMAL ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL ( COUNT ( + CAST ( + 62 AS REAL ) ) ) col0
----
1

query II rowsort
SELECT ( - 94 ) * + 2, 72 AS col0
----
-188
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL - CAST( - ( - - 98 ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - CAST ( - ( - - 98 ) AS INTEGER )
----
98

query II rowsort
SELECT + 20 AS col1, 99 * - + 73 + - + 49 col1
----
20
-7276

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - COUNT( * ) + - 15 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - COUNT ( * ) + - 15 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT + 70, ( + + SUM( - + 87 ) ) AS col0
----
70
-87

skipif mysql # not compatible
query II rowsort label-4028
SELECT + 70, ( + + SUM ( - + 87 ) ) AS col0
----
70
-87

query II rowsort
SELECT + 3, 54 col2
----
3
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT DISTINCT - 49 * 58 / + ( + COALESCE ( 75, - COUNT( * ) * + 90 / + + 85 * + - 12 / COUNT( * ) * - NULLIF ( - + CAST( NULL AS SIGNED ), + 99 ), - - 50 ) ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - 49 * 58 / + ( + COALESCE ( 75, - COUNT ( * ) * + 90 / + + 85 * + - 12 / COUNT ( * ) * - NULLIF ( - + CAST ( NULL AS INTEGER ), + 99 ), - - 50 ) ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 6 + + 43 * + - 41 * 31 AS col0
----
-54647

query I rowsort
SELECT + - 10 * + + 54 AS col0
----
-540

query I rowsort
SELECT - - 99 + - 94 + ( + 56 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - + COUNT( ALL + + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4034
SELECT - + COUNT ( ALL + + 44 ) AS col2
----
-1

query II rowsort
SELECT - - 50 + 28 + + 69 AS col1, 88 + - + 26 AS col0
----
147
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + MAX( ALL 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + MAX ( ALL 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT + + COUNT( 63 ) + CAST( NULL AS SIGNED ) * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT + + COUNT ( 63 ) + CAST ( NULL AS INTEGER ) * + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT - - 80 AS col1, SUM( + ( - 98 ) )
----
80
-98

skipif mysql # not compatible
query II rowsort label-4038
SELECT - - 80 AS col1, SUM ( + ( - 98 ) )
----
80
-98

query II rowsort
SELECT 5, 58 AS col0
----
5
58

query I rowsort
SELECT + 92 + - - 24 * 88 col1
----
2204

query I rowsort
SELECT ALL 86 * + - 61
----
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - COUNT( * ) * 86 + + - 87 * 61 AS col0
----
-5393

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COUNT ( * ) * 86 + + - 87 * 61 AS col0
----
-5393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4043
SELECT ALL + 22 * 29 / + 68 - + NULLIF ( + + CAST( NULL AS SIGNED ), - ( + 70 ) * + 8 + + 58 + 90 + 15 ) / - 69 AS col1, 99 AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-4043
SELECT ALL + 22 * 29 / + 68 - + NULLIF ( + + CAST ( NULL AS INTEGER ), - ( + 70 ) * + 8 + + 58 + 90 + 15 ) / - 69 AS col1, 99 AS col0
----
NULL
99

query II rowsort
SELECT ( - - 93 ), 84 AS col1
----
93
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + COUNT( * ) + - - 54
----
55

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( * ) + - - 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 45 * NULLIF ( + 62, + 55 * - - COUNT( * ) + 12 )
----
2790

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 45 * NULLIF ( + 62, + 55 * - - COUNT ( * ) + 12 )
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL 50 * - - MIN( DISTINCT + 83 ) AS col2
----
4150

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 50 * - - MIN ( DISTINCT + 83 ) AS col2
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COUNT( * ) * + 98 * + 67 AS col0
----
6566

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( * ) * + 98 * + 67 AS col0
----
6566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL CAST( NULL AS SIGNED ) * - ( - - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - - 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT CASE - 46 WHEN - - 63 * - - ( + 15 ) + - 96 THEN NULL WHEN + 84 + + + 30 + 4 THEN - MIN( DISTINCT - 30 ) + 85 ELSE NULL END AS col1, ( - - 57 ) col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4050
SELECT CASE - 46 WHEN - - 63 * - - ( + 15 ) + - 96 THEN NULL WHEN + 84 + + + 30 + 4 THEN - MIN ( DISTINCT - 30 ) + 85 ELSE NULL END AS col1, ( - - 57 ) col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT 12 * + COUNT( * ) + + COUNT( * ) + + + 28
----
41

skipif mysql # not compatible
query I rowsort label-4051
SELECT 12 * + COUNT ( * ) + + COUNT ( * ) + + + 28
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT CASE - 22 WHEN + NULLIF ( COUNT( DISTINCT - + 98 ), - COUNT( * ) ) THEN + COUNT( DISTINCT 14 ) * + 52 + - 99 + + 76 * - ( - - COUNT( * ) ) WHEN + 25 THEN - 40 END * - 75 * - 32 * + - COUNT( * ) + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT CASE - 22 WHEN + NULLIF ( COUNT ( DISTINCT - + 98 ), - COUNT ( * ) ) THEN + COUNT ( DISTINCT 14 ) * + 52 + - 99 + + 76 * - ( - - COUNT ( * ) ) WHEN + 25 THEN - 40 END * - 75 * - 32 * + - COUNT ( * ) + - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 85 * + 54 AS col1
----
4590

query I rowsort
SELECT ALL 91 * + 22
----
2002

query I rowsort
SELECT + 61 + 62 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT CASE + 99 WHEN 49 THEN NULL WHEN + 52 + + + CASE - COUNT( * ) WHEN COUNT( * ) * - 36 THEN COUNT( + 4 ) WHEN 88 / 50 THEN NULL ELSE NULL END THEN - 99 - + 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT CASE + 99 WHEN 49 THEN NULL WHEN + 52 + + + CASE - COUNT ( * ) WHEN COUNT ( * ) * - 36 THEN COUNT ( + 4 ) WHEN 88 / 50 THEN NULL ELSE NULL END THEN - 99 - + 83 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT 13 * 62 + COUNT( * ) - - - 35, + 51 col2
----
772
51

skipif mysql # not compatible
query II rowsort label-4057
SELECT 13 * 62 + COUNT ( * ) - - - 35, + 51 col2
----
772
51

query I rowsort
SELECT + 49 * 8 * - 3
----
-1176

query I rowsort
SELECT - 55 * 38 * - 16 AS col0
----
33440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4060
SELECT MAX( 80 ) AS col1, + 86 DIV + 86
----
80
1

skipif mysql # not compatible
query II rowsort label-4060
SELECT MAX ( 80 ) AS col1, + 86 / + 86
----
80
1

query I rowsort
SELECT ALL - 41 * ( 87 ) AS col2
----
-3567

query I rowsort
SELECT + 19 + 69
----
88

query I rowsort
SELECT - 80 * + + 85 + + 46
----
-6754

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - COUNT( * ) * - + MIN( - NULLIF ( + 70, + - 53 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - COUNT ( * ) * - + MIN ( - NULLIF ( + 70, + - 53 ) )
----
-70

query I rowsort
SELECT DISTINCT NULLIF ( 20, - 12 ) AS col1
----
20

query II rowsort
SELECT - - 14 + - 19 col2, - 21 * + + ( - 33 ) * + 7 * ( 47 )
----
-5
227997

query I rowsort
SELECT - + ( 64 ) + - - 58 col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + ( + + COUNT( * ) ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-4068
SELECT + ( + + COUNT ( * ) ) * 41
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT - COUNT( * ) DIV + - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - COUNT ( * ) / + - 29 AS col2
----
0

query I rowsort
SELECT - 26 * - - 45
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - MIN( ( + - 79 ) ) + - 80 + 42 col0
----
41

skipif mysql # not compatible
query I rowsort label-4071
SELECT - MIN ( ( + - 79 ) ) + - 80 + 42 col0
----
41

query I rowsort
SELECT DISTINCT - - 79 + - 62 - ( NULLIF ( + 41, + 86 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT ( + COUNT( ALL + 29 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT ( + COUNT ( ALL + 29 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT - + MAX( + 18 ) * - 12 * + + 29, SUM( ALL - 15 ) AS col0
----
6264
-15

skipif mysql # not compatible
query II rowsort label-4074
SELECT - + MAX ( + 18 ) * - 12 * + + 29, SUM ( ALL - 15 ) AS col0
----
6264
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4075
SELECT DISTINCT - - 4 * + - SUM( DISTINCT - 88 ) / - 2 + - 36 + + 78 - CAST( NULL AS DECIMAL ) * + 24 + + 33 - - 27 / + COUNT( * ) * - 61 * - 50 * + 9 + + + 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - - 4 * + - SUM ( DISTINCT - 88 ) / - 2 + - 36 + + 78 - CAST ( NULL AS REAL ) * + 24 + + 33 - - 27 / + COUNT ( * ) * - 61 * - 50 * + 9 + + + 19 col0
----
NULL

query I rowsort
SELECT ALL + 44 * + 85 * - 89 AS col2
----
-332860

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 29 * COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 29 * COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT - 69 * ( 84 ) DIV 24 + - 57
----
-298

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 69 * ( 84 ) / 24 + - 57
----
-298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL CAST( + + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL CAST ( + + 20 AS INTEGER ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4080
SELECT ALL CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + + 3 + + - MIN( ( 39 ) ) + - + COUNT( * ) AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-4080
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + + 3 + + - MIN ( ( 39 ) ) + - + COUNT ( * ) AS col1
----
NULL
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT + 21 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT + 21 / - 90
----
0

query I rowsort
SELECT - 33 * + 2 * - - 61 AS col2
----
-4026

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT - 68 * MAX( ALL - 7 ) col0, + COUNT( * ) * - 71 * - 25 + - 57
----
476
1718

skipif mysql # not compatible
query II rowsort label-4083
SELECT - 68 * MAX ( ALL - 7 ) col0, + COUNT ( * ) * - 71 * - 25 + - 57
----
476
1718

query I rowsort
SELECT ALL CASE + 98 WHEN - 27 + 45 * 83 THEN + 48 + + - 74 + 55 END / 47 AS col2
----
NULL

query I rowsort
SELECT ALL 97 * 32 AS col1
----
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT + CASE 21 WHEN 37 THEN - + COUNT( * ) + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT + CASE 21 WHEN 37 THEN - + COUNT ( * ) + - - COUNT ( * ) END
----
NULL

query II rowsort
SELECT DISTINCT + 85 AS col0, - 18
----
85
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT - 49 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT - 49 / + 75 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT + SUM( - NULLIF ( 32, + 50 * + + 17 ) ) DIV - 25 col0
----
1

skipif mysql # not compatible
query I rowsort label-4089
SELECT + SUM ( - NULLIF ( 32, + 50 * + + 17 ) ) / - 25 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT CAST( + - 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4090
SELECT CAST ( + - 48 AS INTEGER ) AS col2
----
-48

query I rowsort
SELECT ALL 37 * - - 44 AS col2
----
1628

query I rowsort
SELECT + NULLIF ( + + 86, - 98 ) AS col2
----
86

query II rowsort
SELECT 66, + 44 AS col1
----
66
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4094
SELECT ALL 1 + - + ( - + 76 ) + + CAST( NULL AS SIGNED ) * - + 92 / - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS DECIMAL ) + - + COUNT( * ) - - 64 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 1 + - + ( - + 76 ) + + CAST ( NULL AS INTEGER ) * - + 92 / - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS REAL ) + - + COUNT ( * ) - - 64 + - 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT ALL ( 19 ) + + + 47 DIV - SUM( DISTINCT - ( + - 58 ) ) * + + 3
----
19

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL ( 19 ) + + + 47 / - SUM ( DISTINCT - ( + - 58 ) ) * + + 3
----
19

query I rowsort
SELECT + - NULLIF ( 92, - NULLIF ( + 15, - 65 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4097
SELECT ALL - 24 + - - ( - + 5 ), SUM( DISTINCT + ( - CASE 27 WHEN 40 * - 15 * + 38 THEN NULL WHEN - 49 THEN NULL ELSE + - 87 * + CAST( NULL AS SIGNED ) + - 79 + + 45 END ) ) AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - 24 + - - ( - + 5 ), SUM ( DISTINCT + ( - CASE 27 WHEN 40 * - 15 * + 38 THEN NULL WHEN - 49 THEN NULL ELSE + - 87 * + CAST ( NULL AS INTEGER ) + - 79 + + 45 END ) ) AS col0
----
-29
NULL

query I rowsort
SELECT - 44 * 17 + - 13 AS col0
----
-761

query I rowsort
SELECT ALL NULLIF ( + 59, - 82 ) + + 99
----
158

query I rowsort
SELECT ALL - + ( - 74 ) col2
----
74

query I rowsort
SELECT 48 - - + ( 76 ) * 7 AS col1
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL COUNT( * ) DIV + 86 * - 13 + - 8 * - ( - 44 ) AS col1
----
-352

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( * ) / + 86 * - 13 + - 8 * - ( - 44 ) AS col1
----
-352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4103
SELECT - CAST( NULL AS DECIMAL ) / 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT - CAST ( NULL AS REAL ) / 36 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - 28 * + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 28 * + COUNT ( * )
----
-28

query I rowsort
SELECT 17 - + 84 col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT CASE + - COALESCE ( + 29, + 54 ) WHEN - + 48 THEN 4 WHEN + + CAST( - + MIN( ( 43 ) ) AS SIGNED ) THEN - + 35 + + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT CASE + - COALESCE ( + 29, + 54 ) WHEN - + 48 THEN 4 WHEN + + CAST ( - + MIN ( ( 43 ) ) AS INTEGER ) THEN - + 35 + + + 95 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL 30 - - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL 30 - - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 53, - 52 * - 51 col0
----
53
2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - CAST( - ( 7 ) AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4109
SELECT - CAST ( - ( 7 ) AS INTEGER ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL + 48 DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + 48 / 34 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT CAST( NULL AS SIGNED ) + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT CAST ( NULL AS INTEGER ) + - 56 AS col2
----
NULL

query I rowsort
SELECT 44 - + + 3
----
41

query I rowsort
SELECT 18 + 55 * 44 * + 14
----
33898

query II rowsort
SELECT 19 AS col2, 88 AS col0
----
19
88

query I rowsort
SELECT ALL - 49 * - + 61
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT 43 + - 63 + - 37 + - + MIN( - + 95 )
----
38

skipif mysql # not compatible
query I rowsort label-4116
SELECT 43 + - 63 + - 37 + - + MIN ( - + 95 )
----
38

query I rowsort
SELECT + 1 * - - 37 + + 81
----
118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4118
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - CAST( + - 74 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - CAST ( + - 74 AS REAL )
----
NULL

query II rowsort
SELECT + 55 AS col1, ( 64 )
----
55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + 41 * + - MIN( DISTINCT - - 68 ) AS col1
----
-2788

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + 41 * + - MIN ( DISTINCT - - 68 ) AS col1
----
-2788

query I rowsort
SELECT ALL - 86 + + 47
----
-39

query II rowsort
SELECT DISTINCT + 32 + - - 57 - - 21 - CASE - 45 WHEN + 37 THEN NULL WHEN - 40 + + 76 / ( + 85 ) * + - 16 THEN + + NULLIF ( + 82, - 96 ) + 94 + - + 19 * - 4 + + 23 WHEN + 70 THEN NULL ELSE - 38 END + - 30 AS col0, 58
----
118
58

query I rowsort
SELECT ALL - ( + 28 ) + + 39 * + + 86 AS col2
----
3326

query II rowsort
SELECT ALL - 39 AS col1, 1 AS col1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4125
SELECT COUNT( * ) * + + 4 + 29 + - 55 DIV - 36 + + - CAST( 64 AS SIGNED ) + - 68
----
-98

skipif mysql # not compatible
query I rowsort label-4125
SELECT COUNT ( * ) * + + 4 + 29 + - 55 / - 36 + + - CAST ( 64 AS INTEGER ) + - 68
----
-98

query I rowsort
SELECT ALL - 9 + 89 AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT + + 0 / + 63 * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + + 0 / + 63 * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4128
SELECT - CAST( NULL AS DECIMAL ) * 8 + - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT - CAST ( NULL AS REAL ) * 8 + - ( - 91 )
----
NULL

query I rowsort
SELECT + 8 + + 94
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4130
SELECT ALL - NULLIF ( + 28, + CAST( NULL AS SIGNED ) ) - - 50 - + 80 DIV + COUNT( * ) + + MIN( + + 36 ) * NULLIF ( + 95, + ( - 49 ) ) + 33 AS col1
----
3395

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - NULLIF ( + 28, + CAST ( NULL AS INTEGER ) ) - - 50 - + 80 / + COUNT ( * ) + + MIN ( + + 36 ) * NULLIF ( + 95, + ( - 49 ) ) + 33 AS col1
----
3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL - + CASE - CAST( NULL AS SIGNED ) WHEN + 34 + + 36 THEN 48 / - 50 / - 4 / CASE - 78 WHEN 65 THEN NULL WHEN - + COALESCE ( - 54, + + 97 ) / 22 + - + 50 THEN 24 + CAST( NULL AS SIGNED ) END + SUM( DISTINCT - 38 ) * - CASE - 13 WHEN ( + - 34 ) * + + 98 + - 32 * + 65 * - 53 THEN NULLIF ( - ( 94 ), - 28 * + - 85 - 90 ) * + 58 + - + 19 WHEN + + MIN( ALL 70 ) + + 36 THEN NULL END * - 43 WHEN + 32 * SUM( DISTINCT - 20 ) THEN 66 WHEN 74 * - 99 THEN 53 * - 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - + CASE - CAST ( NULL AS INTEGER ) WHEN + 34 + + 36 THEN 48 / - 50 / - 4 / CASE - 78 WHEN 65 THEN NULL WHEN - + COALESCE ( - 54, + + 97 ) / 22 + - + 50 THEN 24 + CAST ( NULL AS INTEGER ) END + SUM ( DISTINCT - 38 ) * - CASE - 13 WHEN ( + - 34 ) * + + 98 + - 32 * + 65 * - 53 THEN NULLIF ( - ( 94 ), - 28 * + - 85 - 90 ) * + 58 + - + 19 WHEN + + MIN ( ALL 70 ) + + 36 THEN NULL END * - 43 WHEN + 32 * SUM ( DISTINCT - 20 ) THEN 66 WHEN 74 * - 99 THEN 53 * - 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + 35 * + + 57 * COUNT( - + 95 ) + + ( - + MIN( + 17 ) )
----
1978

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 35 * + + 57 * COUNT ( - + 95 ) + + ( - + MIN ( + 17 ) )
----
1978

query II rowsort
SELECT ALL + 88 AS col1, COALESCE ( 65, 4 * + + 19, 68 ) AS col2
----
88
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL COUNT( * ) - 85
----
-84

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL COUNT ( * ) - 85
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4135
SELECT ALL 57 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL 57 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
57
NULL

query I rowsort
SELECT - ( - 93 ) + 66
----
159

query I rowsort
SELECT 24 + + 17 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT CASE - - 65 WHEN - 1 / + + CASE 83 WHEN + 80 THEN - MIN( ( - 0 ) ) ELSE 90 - CASE + ( 97 ) WHEN ( + COUNT( * ) ) * - 7 * - 10 + - - 99 THEN 6 WHEN + 40 + - + 71 THEN NULL END * - 98 END THEN + - 5 WHEN + 58 THEN NULL END / - + 55 - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT CASE - - 65 WHEN - 1 / + + CASE 83 WHEN + 80 THEN - MIN ( ( - 0 ) ) ELSE 90 - CASE + ( 97 ) WHEN ( + COUNT ( * ) ) * - 7 * - 10 + - - 99 THEN 6 WHEN + 40 + - + 71 THEN NULL END * - 98 END THEN + - 5 WHEN + 58 THEN NULL END / - + 55 - - 34
----
NULL

query I rowsort
SELECT - 99 * - + 78
----
7722

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT COALESCE ( + + 36, + - 24, - 55 + + COUNT( * ) + 39 + - COUNT( * ) ) * 92
----
3312

skipif mysql # not compatible
query I rowsort label-4140
SELECT COALESCE ( + + 36, + - 24, - 55 + + COUNT ( * ) + 39 + - COUNT ( * ) ) * 92
----
3312

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT ALL ( + 55 ) * COUNT( - 26 ) - + 87 AS col1, 27 * 24 - 75 AS col1
----
-32
573

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL ( + 55 ) * COUNT ( - 26 ) - + 87 AS col1, 27 * 24 - 75 AS col1
----
-32
573

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT + 35 * NULLIF ( - COUNT( * ), - 78 + - 98 + - - 78 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + 35 * NULLIF ( - COUNT ( * ), - 78 + - 98 + - - 78 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4143
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1, - ( + - 69 ) * + - ( ( - - COUNT( * ) ) ) + - 1 * - - 69 * COUNT( + 41 )
----
NULL
-138

skipif mysql # not compatible
query II rowsort label-4143
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1, - ( + - 69 ) * + - ( ( - - COUNT ( * ) ) ) + - 1 * - - 69 * COUNT ( + 41 )
----
NULL
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT ALL + 17 + - 65 AS col1, COALESCE ( 17, + CASE 55 WHEN + - 7 THEN NULL WHEN - + 47 THEN 54 * COUNT( * ) END * + 62 * - SUM( + - 56 ) ) + COUNT( * ) AS col0
----
-48
18

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL + 17 + - 65 AS col1, COALESCE ( 17, + CASE 55 WHEN + - 7 THEN NULL WHEN - + 47 THEN 54 * COUNT ( * ) END * + 62 * - SUM ( + - 56 ) ) + COUNT ( * ) AS col0
----
-48
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL ( + ( + 89 ) ) * + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL ( + ( + 89 ) ) * + - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( * ) * - 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( * ) * - 62 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT CAST( NULL AS SIGNED ) / 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT CAST ( NULL AS INTEGER ) / 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT 63 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT 63 / 47
----
1

query I rowsort
SELECT 72 * + - 5 AS col2
----
-360

query I rowsort
SELECT ALL + 54 + 3 + - 27
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + CASE 1 WHEN - 56 THEN 96 WHEN - - 26 + 85 - COUNT( * ) * - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT + CASE 1 WHEN - 56 THEN 96 WHEN - - 26 + 85 - COUNT ( * ) * - 94 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT - 4 * - 49 DIV COUNT( * ) + + 29 AS col1
----
225

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 4 * - 49 / COUNT ( * ) + + 29 AS col1
----
225

query I rowsort
SELECT NULLIF ( - 29, + + 37 * + 92 / + 75 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL 9 * + CASE - 41 WHEN + 49 THEN - SUM( ALL - + 81 ) WHEN 14 * - COUNT( * ) * 85 + NULLIF ( + - 16, COUNT( * ) ) * - 24 THEN NULL ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 9 * + CASE - 41 WHEN + 49 THEN - SUM ( ALL - + 81 ) WHEN 14 * - COUNT ( * ) * 85 + NULLIF ( + - 16, COUNT ( * ) ) * - 24 THEN NULL ELSE NULL END + + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT 77 * + 43 * + - 61 + CAST( 17 AS SIGNED ) * 35
----
-201376

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT 77 * + 43 * + - 61 + CAST ( 17 AS INTEGER ) * 35
----
-201376

query I rowsort
SELECT DISTINCT + 28 * - 31 * - - 48 col1
----
-41664

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT - ( + 40 ) * + MIN( + 58 ) col1
----
-2320

skipif mysql # not compatible
query I rowsort label-4157
SELECT - ( + 40 ) * + MIN ( + 58 ) col1
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + COUNT( * ) * + - 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + COUNT ( * ) * + - 79 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL - 60 * 14 DIV 12 * - - 14 * - - 13 - 36 AS col2
----
-12776

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - 60 * 14 / 12 * - - 14 * - - 13 - 36 AS col2
----
-12776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT + - CASE CAST( + + 49 AS SIGNED ) WHEN 89 * + + 91 + 6 THEN + COUNT( * ) - 95 * - + CAST( + 12 AS SIGNED ) / 23 WHEN 85 THEN NULL END * - 82 / - NULLIF ( 99, 65 / + + 33 - 71 * - 26 * + - 61 / 6 ) * + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT + - CASE CAST ( + + 49 AS INTEGER ) WHEN 89 * + + 91 + 6 THEN + COUNT ( * ) - 95 * - + CAST ( + 12 AS INTEGER ) / 23 WHEN 85 THEN NULL END * - 82 / - NULLIF ( 99, 65 / + + 33 - 71 * - 26 * + - 61 / 6 ) * + - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + - COUNT( * ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + - COUNT ( * ) * + 15
----
-15

query I rowsort
SELECT DISTINCT + - ( 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL - - 31 * + 15 + 55 DIV 5 * 99
----
1554

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - - 31 * + 15 + 55 / 5 * 99
----
1554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT - - CAST( NULL AS SIGNED ) - + + 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - - CAST ( NULL AS INTEGER ) - + + 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - - 81 * + + 85 + - ( + COUNT( * ) ) + - 64 AS col2
----
6820

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - 81 * + + 85 + - ( + COUNT ( * ) ) + - 64 AS col2
----
6820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + - 76 * - + CAST( - 55 AS SIGNED ) AS col2
----
-4180

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - 76 * - + CAST ( - 55 AS INTEGER ) AS col2
----
-4180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL CAST( 73 AS SIGNED ) + 12 + + 3 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( 73 AS INTEGER ) + 12 + + 3 AS col0
----
88

query I rowsort
SELECT DISTINCT + ( - 59 ) * 61 AS col0
----
-3599

query I rowsort
SELECT - 33 + + 20
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + COALESCE ( - - 53, + COUNT( * ) ) * + - 19
----
-1007

skipif mysql # not compatible
query I rowsort label-4170
SELECT + COALESCE ( - - 53, + COUNT ( * ) ) * + - 19
----
-1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4171
SELECT - ( CAST( + 70 AS SIGNED ) ), COUNT( * ) AS col0
----
-70
1

skipif mysql # not compatible
query II rowsort label-4171
SELECT - ( CAST ( + 70 AS INTEGER ) ), COUNT ( * ) AS col0
----
-70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL COUNT( * ) + + 1 * NULLIF ( 29, + 87 + - - MAX( + 36 ) + 63 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL COUNT ( * ) + + 1 * NULLIF ( 29, + 87 + - - MAX ( + 36 ) + 63 ) AS col2
----
30

query I rowsort
SELECT + 26 + + 94 + - - 10 * 47 AS col1
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - ( - + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4174
SELECT - ( - + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT + CAST( NULL AS SIGNED ) - 25 + + 42 + + - 21, - 61 col1
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4175
SELECT + CAST ( NULL AS INTEGER ) - 25 + + 42 + + - 21, - 61 col1
----
NULL
-61

query II rowsort
SELECT ALL 49, 95 AS col2
----
49
95

query I rowsort
SELECT + 79 + + 79
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT 49 * + NULLIF ( 58, 65 ) * - 99 * - COUNT( 68 ) AS col2
----
281358

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT 49 * + NULLIF ( 58, 65 ) * - 99 * - COUNT ( 68 ) AS col2
----
281358

query I rowsort
SELECT + 55 + - 32 AS col1
----
23

query I rowsort
SELECT + 72 + + 33 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL 78 * ( + 3 ) * COUNT( * )
----
234

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL 78 * ( + 3 ) * COUNT ( * )
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL + 23 + + CASE - 99 WHEN + 5 * - 93 * 70 + - CASE CASE - 82 WHEN - 86 THEN NULL WHEN + SUM( 87 ) * + + MIN( ALL 29 ) * + 14 + + NULLIF ( + + 59, + + 34 ) THEN - COALESCE ( - - CAST( - 17 AS SIGNED ), + 55 ) END WHEN ( 38 ) THEN 86 WHEN - 59 + + - 12 + + 26 THEN 75 WHEN 11 + - - 99 THEN + 0 ELSE - 44 END THEN - SUM( + ( - - 41 ) ) WHEN - ( + + 13 ) * + COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + 23 + + CASE - 99 WHEN + 5 * - 93 * 70 + - CASE CASE - 82 WHEN - 86 THEN NULL WHEN + SUM ( 87 ) * + + MIN ( ALL 29 ) * + 14 + + NULLIF ( + + 59, + + 34 ) THEN - COALESCE ( - - CAST ( - 17 AS INTEGER ), + 55 ) END WHEN ( 38 ) THEN 86 WHEN - 59 + + - 12 + + 26 THEN 75 WHEN 11 + - - 99 THEN + 0 ELSE - 44 END THEN - SUM ( + ( - - 41 ) ) WHEN - ( + + 13 ) * + COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 36 * + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 36 * + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + - COUNT( 16 ) * - - ( 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4184
SELECT + - COUNT ( 16 ) * - - ( 33 )
----
-33

query I rowsort
SELECT + NULLIF ( 69, - 29 ) AS col2
----
69

query II rowsort
SELECT - 56, + 82 AS col1
----
-56
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4187
SELECT DISTINCT - 63 DIV 52 - 47 DIV + + NULLIF ( 98, + 32 ), 6 + - 43 AS col0
----
-1
-37

skipif mysql # not compatible
query II rowsort label-4187
SELECT DISTINCT - 63 / 52 - 47 / + + NULLIF ( 98, + 32 ), 6 + - 43 AS col0
----
-1
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT ALL - - 83 DIV 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - - 83 / 61 AS col0
----
1

query I rowsort
SELECT ALL + + ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + + COUNT( - + 91 ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-4190
SELECT + + COUNT ( - + 91 ) * + 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4191
SELECT 85 AS col1, + COUNT( * ) DIV + 13
----
85
0

skipif mysql # not compatible
query II rowsort label-4191
SELECT 85 AS col1, + COUNT ( * ) / + 13
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + COALESCE ( - + COUNT( * ), + + COUNT( * ) - + 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) - + 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT DISTINCT + COUNT( * ), 66 * - - 75 AS col2
----
1
4950

skipif mysql # not compatible
query II rowsort label-4193
SELECT DISTINCT + COUNT ( * ), 66 * - - 75 AS col2
----
1
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT - 93 + - 36 DIV - + 32
----
-92

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 93 + - 36 / - + 32
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT 88 * + ( - COUNT( * ) ) - - 34 + + 79 * - 90
----
-7164

skipif mysql # not compatible
query I rowsort label-4195
SELECT 88 * + ( - COUNT ( * ) ) - - 34 + + 79 * - 90
----
-7164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4196
SELECT DISTINCT + 82, CAST( + 87 AS SIGNED ) AS col1
----
82
87

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + 82, CAST ( + 87 AS INTEGER ) AS col1
----
82
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL + - NULLIF ( + - NULLIF ( 33, COALESCE ( - 25, COUNT( * ) + CASE - 39 WHEN - - 82 THEN NULL ELSE - 74 * - 92 + - + 90 - + 15 * 4 * 21 * - COUNT( + 98 ) END + 57, - ( + 47 ) * 18 * + 85 ) - - CAST( - 6 AS SIGNED ) / 38 ), 53 * 17 )
----
33

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - NULLIF ( + - NULLIF ( 33, COALESCE ( - 25, COUNT ( * ) + CASE - 39 WHEN - - 82 THEN NULL ELSE - 74 * - 92 + - + 90 - + 15 * 4 * 21 * - COUNT ( + 98 ) END + 57, - ( + 47 ) * 18 * + 85 ) - - CAST ( - 6 AS INTEGER ) / 38 ), 53 * 17 )
----
33

query I rowsort
SELECT - 7 + 19 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT - + NULLIF ( - 37, 68 ) * + CAST( 68 AS SIGNED ) AS col1
----
2516

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - + NULLIF ( - 37, 68 ) * + CAST ( 68 AS INTEGER ) AS col1
----
2516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL + 68 * - 62 + 49 + 11 + + + CAST( NULL AS SIGNED ) + - ( - 47 ) - + 66 + + 79 * 4 * + MIN( DISTINCT + 48 ) * - AVG ( + ( + - ( + - 14 ) ) ) + + - SUM( DISTINCT + 24 ) * + 71 + - 53 * + 35 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 68 * - 62 + 49 + 11 + + + CAST ( NULL AS INTEGER ) + - ( - 47 ) - + 66 + + 79 * 4 * + MIN ( DISTINCT + 48 ) * - AVG ( + ( + - ( + - 14 ) ) ) + + - SUM ( DISTINCT + 24 ) * + 71 + - 53 * + 35 * - 52
----
NULL

query I rowsort
SELECT - 77 * + 71 + + - 69 AS col0
----
-5536

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 33 DIV + + 67 DIV - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 33 / + + 67 / - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - 39 + + 74 * - 27 + - COUNT( * ) - 96 + - COUNT( * ) + 11
----
-2124

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 39 + + 74 * - 27 + - COUNT ( * ) - 96 + - COUNT ( * ) + 11
----
-2124

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT ALL - 60 * - 89 + - - 89 * - 4, + 36 + - COUNT( * ) AS col2
----
4984
35

skipif mysql # not compatible
query II rowsort label-4204
SELECT ALL - 60 * - 89 + - - 89 * - 4, + 36 + - COUNT ( * ) AS col2
----
4984
35

query I rowsort
SELECT - 50 * - COALESCE ( 24, - - 38 ) * + 49
----
58800

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + COALESCE ( - 28, + 28 + ( - 46 ), - 62 ) + + 93 * - + 71 * + COUNT( * )
----
-6631

skipif mysql # not compatible
query I rowsort label-4206
SELECT + COALESCE ( - 28, + 28 + ( - 46 ), - 62 ) + + 93 * - + 71 * + COUNT ( * )
----
-6631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT 71 * 10 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT 71 * 10 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT 43 DIV 97 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT 43 / 97 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4209
SELECT 79 + 64 AS col2, + 11 * 14 DIV 87
----
143
1

skipif mysql # not compatible
query II rowsort label-4209
SELECT 79 + 64 AS col2, + 11 * 14 / 87
----
143
1

query I rowsort
SELECT ALL 14 * - 32 AS col2
----
-448

query I rowsort
SELECT DISTINCT 32 + + - 29 * 90 col0
----
-2578

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT ALL 67 - + - 39 + 84 * + 72 AS col1, 17 * + 80 * + + ( + MIN( 83 ) )
----
6154
112880

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL 67 - + - 39 + 84 * + 72 AS col1, 17 * + 80 * + + ( + MIN ( 83 ) )
----
6154
112880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 28 * - - CAST( NULL AS SIGNED ) * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 28 * - - CAST ( NULL AS INTEGER ) * - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT ALL 31 - + - COUNT( * ) * - COUNT( * ) - + 58 AS col2, 26
----
-28
26

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL 31 - + - COUNT ( * ) * - COUNT ( * ) - + 58 AS col2, 26
----
-28
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT 68 - CAST( - 51 AS SIGNED )
----
119

skipif mysql # not compatible
query I rowsort label-4215
SELECT 68 - CAST ( - 51 AS INTEGER )
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT 3 * 21 / CAST( NULL AS SIGNED ) * - + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT 3 * 21 / CAST ( NULL AS INTEGER ) * - + 74 AS col0
----
NULL

query II rowsort
SELECT ALL - - ( 16 ) AS col1, - 40
----
16
-40

query I rowsort
SELECT 61 * + - 61 AS col2
----
-3721

query I rowsort
SELECT DISTINCT - 39 * 98
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + + COALESCE ( + - COUNT( ALL + 74 ), - COUNT( * ) + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4220
SELECT + + COALESCE ( + - COUNT ( ALL + 74 ), - COUNT ( * ) + 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + COUNT( * ) * - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + COUNT ( * ) * - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - + MAX( ALL - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + MAX ( ALL - - 90 )
----
-90

query I rowsort
SELECT 40 * + 42 + + 5 - 57 * + 82 * - - 17 AS col1
----
-77773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT - CASE 29 WHEN + - CASE + 87 WHEN - 86 * + - ( - + COALESCE ( - 16, + + 69, - + COUNT( ALL 55 ) ) ) * 27 THEN + + AVG ( DISTINCT + 13 ) / 63 + + 34 WHEN + CASE + 59 WHEN + COUNT( * ) * 92 + - - 7 THEN + 57 ELSE + - CAST( + - 80 AS SIGNED ) * - 19 END THEN NULL END / + - 84 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + + NULLIF ( - ( + - ( - + 18 ) ), + + 10 ) * NULLIF ( - ( + 38 ), - + 66 ) THEN + 89 ELSE NULL END * - - 65 * - ( - 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - CASE 29 WHEN + - CASE + 87 WHEN - 86 * + - ( - + COALESCE ( - 16, + + 69, - + COUNT ( ALL 55 ) ) ) * 27 THEN + + AVG ( DISTINCT + 13 ) / 63 + + 34 WHEN + CASE + 59 WHEN + COUNT ( * ) * 92 + - - 7 THEN + 57 ELSE + - CAST ( + - 80 AS INTEGER ) * - 19 END THEN NULL END / + - 84 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + + NULLIF ( - ( + - ( - + 18 ) ), + + 10 ) * NULLIF ( - ( + 38 ), - + 66 ) THEN + 89 ELSE NULL END * - - 65 * - ( - 93 ) AS col1
----
NULL

query I rowsort
SELECT 9 * - + 21 + + + 12 AS col2
----
-177

query I rowsort
SELECT + ( - - ( - 48 ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4227
SELECT DISTINCT MAX( - + 30 ) + + 45 * + CAST( NULL AS DECIMAL ) * - 89 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT MAX ( - + 30 ) + + 45 * + CAST ( NULL AS REAL ) * - 89 + - 81
----
NULL

query I rowsort
SELECT ( + + 81 ) - + 0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT 34 - + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4229
SELECT 34 - + COUNT ( * ) AS col2
----
33

query I rowsort
SELECT DISTINCT - 13 * + - 81
----
1053

query II rowsort
SELECT ALL 36, 76 AS col0
----
36
76

query I rowsort
SELECT ALL - 86 - + + 96 + + 22
----
-160

query I rowsort
SELECT 59 * + + 82 AS col1
----
4838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4234
SELECT DISTINCT COUNT( * ) * 26 DIV + - 90 * - NULLIF ( + + COUNT( * ), - 32 ), 30 * + 86 AS col0
----
0
2580

skipif mysql # not compatible
query II rowsort label-4234
SELECT DISTINCT COUNT ( * ) * 26 / + - 90 * - NULLIF ( + + COUNT ( * ), - 32 ), 30 * + 86 AS col0
----
0
2580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT 72 * 87 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT 72 * 87 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 - 89 col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT COALESCE ( + + 44, 15 * - + CAST( NULL AS SIGNED ) ) * + 49, 55 * + 7 AS col1
----
2156
385

skipif mysql # not compatible
query II rowsort label-4237
SELECT COALESCE ( + + 44, 15 * - + CAST ( NULL AS INTEGER ) ) * + 49, 55 * + 7 AS col1
----
2156
385

query I rowsort
SELECT 52 + + 22
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT 58 + 45 + 95 * - SUM( DISTINCT + + 83 )
----
-7782

skipif mysql # not compatible
query I rowsort label-4239
SELECT 58 + 45 + 95 * - SUM ( DISTINCT + + 83 )
----
-7782

query I rowsort
SELECT 62 * - - 29
----
1798

query I rowsort
SELECT 97 * + 23 AS col0
----
2231

query I rowsort
SELECT 68 + 32 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT COUNT( * ) DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT COUNT ( * ) / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT 78 + - COUNT( * ) * + + COUNT( * ) - - COUNT( * ) * + 57 + 50 * - 30 AS col2
----
-1366

skipif mysql # not compatible
query I rowsort label-4244
SELECT 78 + - COUNT ( * ) * + + COUNT ( * ) - - COUNT ( * ) * + 57 + 50 * - 30 AS col2
----
-1366

query I rowsort
SELECT ALL + + 99 * + 3
----
297

query II rowsort
SELECT 75 + + 70 + + 65 AS col0, 9 AS col1
----
210
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT 55 DIV + SUM( DISTINCT - 67 ) + + 79 * - - 68 col0
----
5372

skipif mysql # not compatible
query I rowsort label-4247
SELECT 55 / + SUM ( DISTINCT - 67 ) + + 79 * - - 68 col0
----
5372

query I rowsort
SELECT + 62 + + 73 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT - 66 * + - 10 * - - CAST( NULL AS SIGNED ) AS col2, + 89 + MAX( + 51 ) col1
----
NULL
140

skipif mysql # not compatible
query II rowsort label-4249
SELECT - 66 * + - 10 * - - CAST ( NULL AS INTEGER ) AS col2, + 89 + MAX ( + 51 ) col1
----
NULL
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - COUNT( * ) * + 30 * - 22 + - + 61 + 82 * + 85 * + 11 + - + 28 + + 41 AS col0
----
77282

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - COUNT ( * ) * + 30 * - 22 + - + 61 + 82 * + 85 * + 11 + - + 28 + + 41 AS col0
----
77282

query II rowsort
SELECT DISTINCT - 52 col0, - 21
----
-52
-21

query I rowsort
SELECT ALL 61 * - 36 + + COALESCE ( - 67, 2 ) + + ( - 5 ) col2
----
-2268

query I rowsort
SELECT - 11 + - 76 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - MIN( - + CASE - 95 WHEN + 40 + + - 91 + - + 69 + + 73 * 42 THEN - 75 + - 56 * 44 * + 9 WHEN + 74 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT - MIN ( - + CASE - 95 WHEN + 40 + + - 91 + - + 69 + + 73 * 42 THEN - 75 + - 56 * 44 * + 9 WHEN + 74 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - + COUNT( * ) * - + 61 + + + 34
----
95

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - + COUNT ( * ) * - + 61 + + + 34
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - CASE - 67 WHEN - + 47 THEN - COUNT( * ) * + NULLIF ( 70, - - 89 ) * 89 + - 84 + - 45 ELSE NULL END * - + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT - CASE - 67 WHEN - + 47 THEN - COUNT ( * ) * + NULLIF ( 70, - - 89 ) * 89 + - 84 + - 45 ELSE NULL END * - + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - 69 * COUNT( * ) + - + 65 + + 69 * 3 + 19 col1
----
92

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 69 * COUNT ( * ) + - + 65 + + 69 * 3 + 19 col1
----
92

query I rowsort
SELECT + COALESCE ( + - 63, - 95 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT + 3 + + 59 / - 97 - CAST( NULL AS SIGNED ) + - - 86 + - COUNT( * ) + 84 * - 86 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 3 + + 59 / - 97 - CAST ( NULL AS INTEGER ) + - - 86 + - COUNT ( * ) + 84 * - 86 * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT + MIN( ALL - 29 ) AS col1, - 75
----
-29
-75

skipif mysql # not compatible
query II rowsort label-4260
SELECT + MIN ( ALL - 29 ) AS col1, - 75
----
-29
-75

query II rowsort
SELECT ALL + 98 AS col2, 82
----
98
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4262
SELECT 93 AS col0, COUNT( * ) * + ( - + 56 ) + - 97 * - CAST( NULL AS SIGNED ) / - 3 * 62
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4262
SELECT 93 AS col0, COUNT ( * ) * + ( - + 56 ) + - 97 * - CAST ( NULL AS INTEGER ) / - 3 * 62
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL MIN( ( + ( - 88 ) ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL MIN ( ( + ( - 88 ) ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL 55 - - COUNT( - 47 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 55 - - COUNT ( - 47 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + COUNT( * ) * + 48 * 5
----
240

skipif mysql # not compatible
query I rowsort label-4265
SELECT + COUNT ( * ) * + 48 * 5
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT - NULLIF ( COUNT( * ), + - CAST( NULL AS SIGNED ) * + COUNT( * ) * - - 53 * + - 62 ) * + 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4266
SELECT - NULLIF ( COUNT ( * ), + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - - 53 * + - 62 ) * + 32 AS col1
----
-32

query I rowsort
SELECT DISTINCT 49 * + 41 AS col2
----
2009

query I rowsort
SELECT - 19 + + 5 * + 98 AS col2
----
471

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + NULLIF ( - - 70, + + 23 ) * + SUM( + 13 ) AS col0
----
910

skipif mysql # not compatible
query I rowsort label-4269
SELECT + NULLIF ( - - 70, + + 23 ) * + SUM ( + 13 ) AS col0
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT - 13 AS col2, - MAX( 13 ) - - CAST( NULL AS SIGNED )
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4270
SELECT - 13 AS col2, - MAX ( 13 ) - - CAST ( NULL AS INTEGER )
----
-13
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL COALESCE ( - 49, - 65 DIV - + ( + 96 ) * 17 * + 41 - 26 - - - 20 - - COALESCE ( - + 33, + 43 ), - 24 * CASE - 21 WHEN - 48 + 1 * 45 - - + 67 * - + 10 THEN - 84 ELSE + 68 END * - 37 * - + 79 + + 86 + 37 - - - 66 )
----
-49

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL COALESCE ( - 49, - 65 / - + ( + 96 ) * 17 * + 41 - 26 - - - 20 - - COALESCE ( - + 33, + 43 ), - 24 * CASE - 21 WHEN - 48 + 1 * 45 - - + 67 * - + 10 THEN - 84 ELSE + 68 END * - 37 * - + 79 + + 86 + 37 - - - 66 )
----
-49

query I rowsort
SELECT - ( 27 ) * + - 87
----
2349

query I rowsort
SELECT ALL 48 * + - 74 col2
----
-3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4274
SELECT ALL + - 64 DIV + 93 * 88 + ( + + MAX( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT( * ) ELSE + CAST( - 26 AS SIGNED ) DIV COUNT( * ) * + COUNT( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1
----
-1537
17

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL + - 64 / + 93 * 88 + ( + + MAX ( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT ( * ) ELSE + CAST ( - 26 AS INTEGER ) / COUNT ( * ) * + COUNT ( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1
----
-1537
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - 64 + - NULLIF ( - 1, - - 95 / ( 32 ) + - + 37 * MAX( DISTINCT - - 91 ) ) + COUNT( * ) * + 99 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 64 + - NULLIF ( - 1, - - 95 / ( 32 ) + - + 37 * MAX ( DISTINCT - - 91 ) ) + COUNT ( * ) * + 99 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4276
SELECT 29, + 11 - CAST( NULL AS SIGNED ) AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4276
SELECT 29, + 11 - CAST ( NULL AS INTEGER ) AS col0
----
29
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT - COUNT( * ) AS col2, + 84 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-4277
SELECT - COUNT ( * ) AS col2, + 84 AS col0
----
-1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - + 42 + - ( + + COALESCE ( + - ( - ( - 26 ) ), - COALESCE ( - 92, + COUNT( * ) - COUNT( * ) ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4278
SELECT - + 42 + - ( + + COALESCE ( + - ( - ( - 26 ) ), - COALESCE ( - 92, + COUNT ( * ) - COUNT ( * ) ) ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - 84 * - - 64 * - 40 * + MAX( - - 48 ) - + COUNT( * ) AS col1
----
10321919

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 84 * - - 64 * - 40 * + MAX ( - - 48 ) - + COUNT ( * ) AS col1
----
10321919

query I rowsort
SELECT - CASE + - 6 WHEN 63 + 15 THEN NULL WHEN ( - 64 ) THEN NULL ELSE - 66 END AS col2
----
66

query II rowsort
SELECT 73, - 73 AS col1
----
73
-73

query I rowsort
SELECT ALL + 62 + 20 * COALESCE ( 40, + - 45 ) AS col1
----
862

query I rowsort
SELECT - - 98 - + - 91
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT - CAST( - 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4284
SELECT - CAST ( - 95 AS INTEGER ) AS col1
----
95

query I rowsort
SELECT - 46 * + 9 + - + 84 col2
----
-498

query I rowsort
SELECT - + 23 - + - 78 AS col0
----
55

query I rowsort
SELECT ALL + 18 + - 67 + 24
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) - - - 8 - - ( 27 ) * + - ( + - 41 ) - - - 53 + - - 60 / - - 19 * 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) - - - 8 - - ( 27 ) * + - ( + - 41 ) - - - 53 + - - 60 / - - 19 * 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - - COUNT( * ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4289
SELECT - - COUNT ( * ) * 54 AS col1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4290
SELECT ALL + 27 / - - ( 40 ) + 80 + + ( + ( ( - CAST( NULL AS DECIMAL ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 27 / - - ( 40 ) + 80 + + ( + ( ( - CAST ( NULL AS REAL ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT ( COALESCE ( - 40, COUNT( * ) DIV - 51, - COUNT( * ), 24 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4291
SELECT ( COALESCE ( - 40, COUNT ( * ) / - 51, - COUNT ( * ), 24 ) )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL - 77 DIV - + 60 + ( + + CASE - 59 WHEN + + 63 THEN NULL ELSE 50 END ) * + 97 col1
----
4851

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - 77 / - + 60 + ( + + CASE - 59 WHEN + + 63 THEN NULL ELSE 50 END ) * + 97 col1
----
4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT + COUNT( - 81 ) * - 70 * + 23 + - + 10 DIV ( + - 67 ) + COALESCE ( - 39, - + 57 ) AS col0
----
-1649

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( - 81 ) * - 70 * + 23 + - + 10 / ( + - 67 ) + COALESCE ( - 39, - + 57 ) AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT DISTINCT + - 3 * - + 46 + - CAST( + - ( - COUNT( * ) ) AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + - 3 * - + 46 + - CAST ( + - ( - COUNT ( * ) ) AS INTEGER )
----
137

query II rowsort
SELECT ALL + + 92 AS col0, + 25
----
92
25

query II rowsort
SELECT 96 AS col2, 26 AS col0
----
96
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT + - 16 * + COALESCE ( + CAST( NULL AS SIGNED ), - + 55 * 6 + 63, + MAX( - ( + + 48 ) ) ) * + 6
----
25632

skipif mysql # not compatible
query I rowsort label-4297
SELECT + - 16 * + COALESCE ( + CAST ( NULL AS INTEGER ), - + 55 * 6 + 63, + MAX ( - ( + + 48 ) ) ) * + 6
----
25632

query II rowsort
SELECT + 39 AS col0, 2 + + 43 * - 45 col1
----
39
-1933

query I rowsort
SELECT - 62 + - + 58 + - 86
----
-206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + CAST( + 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + CAST ( + 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - NULLIF ( 97, + 32 ) * - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4301
SELECT - NULLIF ( 97, + 32 ) * - COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4302
SELECT + CAST( NULL AS DECIMAL ) * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT + CAST ( NULL AS REAL ) * - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - NULLIF ( + COUNT( * ), 27 * - SUM( + 72 ) + + 3 + 47 * + 73 * 34 * - ( + 39 ) ) - + 25 * 26
----
-651

skipif mysql # not compatible
query I rowsort label-4303
SELECT - NULLIF ( + COUNT ( * ), 27 * - SUM ( + 72 ) + + 3 + 47 * + 73 * 34 * - ( + 39 ) ) - + 25 * 26
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + COUNT( * ) - - - 34 * + - 5 col0
----
171

skipif mysql # not compatible
query I rowsort label-4304
SELECT + COUNT ( * ) - - - 34 * + - 5 col0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT MIN( + 62 ) AS col0, + 61
----
62
61

skipif mysql # not compatible
query II rowsort label-4305
SELECT MIN ( + 62 ) AS col0, + 61
----
62
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT + 78 DIV + - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 78 / + - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT DISTINCT + 6 * - + 9 * + 35 AS col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT 37 DIV + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT 37 / + COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT + 42 DIV - - 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 42 / - - 34 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT DISTINCT 7 + + 29 DIV 35 * + 1
----
7

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT 7 + + 29 / 35 * + 1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT + 36 - + 51 * 10 + - - SUM( ALL + 23 ) + + CAST( NULL AS SIGNED ) * - 85 + - 63 * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT + 36 - + 51 * 10 + - - SUM ( ALL + 23 ) + + CAST ( NULL AS INTEGER ) * - 85 + - 63 * - 7 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4312
SELECT + + 2 + - 84 + - + 91 + + MAX( CAST( + 6 AS SIGNED ) ) DIV - 43 AS col0, + 73 + 11
----
-173
84

skipif mysql # not compatible
query II rowsort label-4312
SELECT + + 2 + - 84 + - + 91 + + MAX ( CAST ( + 6 AS INTEGER ) ) / - 43 AS col0, + 73 + 11
----
-173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + COALESCE ( + 69, + - COUNT( * ) ) + + COUNT( 37 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + COALESCE ( + 69, + - COUNT ( * ) ) + + COUNT ( 37 ) AS col2
----
70

query I rowsort
SELECT + - 27 + - 72
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COALESCE ( + - 29, 27 * - 45 + - 4, 93 * + COUNT( * ) * - 33 ) + + 5 * - 39
----
-224

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COALESCE ( + - 29, 27 * - 45 + - 4, 93 * + COUNT ( * ) * - 33 ) + + 5 * - 39
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT DISTINCT + 88 * COUNT( * ), 38 AS col0
----
88
38

skipif mysql # not compatible
query II rowsort label-4316
SELECT DISTINCT + 88 * COUNT ( * ), 38 AS col0
----
88
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + 66 + - CASE - 41 WHEN + + MIN( + 14 ) + + + 43 * + 54 THEN 85 END - - - 21 * 87 + 14 + + 27 * - 11 / - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + 66 + - CASE - 41 WHEN + + MIN ( + 14 ) + + + 43 * + 54 THEN 85 END - - - 21 * 87 + 14 + + 27 * - 11 / - 48 AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 70, - 21 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT ALL 31 + + 86 DIV - 15 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 31 + + 86 / - 15 AS col2
----
26

query II rowsort
SELECT DISTINCT + 39 + 49 AS col1, 0 + + + 47 * 1 * - 89
----
88
-4183

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT + 15 DIV 96 + + + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 15 / 96 + + + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + + 0 * + MIN( ALL - 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT + + 0 * + MIN ( ALL - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT ( - 96 ) DIV + - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4323
SELECT ( - 96 ) / + - COUNT ( * ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4324
SELECT SUM( + 88 ) + + 56, CAST( ( - 89 ) AS SIGNED ) AS col0
----
144
-89

skipif mysql # not compatible
query II rowsort label-4324
SELECT SUM ( + 88 ) + + 56, CAST ( ( - 89 ) AS INTEGER ) AS col0
----
144
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT - 12 DIV 38 * - 33 + - MAX( ALL + 21 ) + + 15 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - 12 / 38 * - 33 + - MAX ( ALL + 21 ) + + 15 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT - NULLIF ( + 72, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - NULLIF ( + 72, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) )
----
-72

query II rowsort
SELECT + 31 AS col1, 14 col2
----
31
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT + 82 * NULLIF ( + 23, + ( - - 82 ) * + + ( - CASE 51 WHEN + - COUNT( * ) * - 37 * + ( - COUNT( * ) ) * + CASE + + COUNT( - - 85 ) WHEN - + 55 / + + COALESCE ( 69, COALESCE ( - 54, + COUNT( DISTINCT + 28 ) - 12 * - - CAST( NULL AS SIGNED ) + - ( - SUM( + 30 ) ) + - 85, - COALESCE ( + 82, + MIN( + + 5 ) * - - 74 * + 88 ) ) ) * + ( + 56 ) + 29 + - COUNT( * ) + - 63 THEN NULL WHEN 25 / 97 * - + 86 THEN 44 WHEN + 77 * 86 THEN NULL END + - CASE + 41 WHEN + ( + 26 ) * 86 THEN NULL ELSE 68 END + + CASE + 83 + 82 * + 18 WHEN - COUNT( * ) THEN NULL WHEN 74 THEN + 89 / 84 WHEN 20 + + 72 * + CASE 63 WHEN COUNT( * ) THEN 3 ELSE COUNT( * ) END THEN NULL END / + 27 - - 61 / 23 THEN 76 + 44 * - 0 END ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + 82 * NULLIF ( + 23, + ( - - 82 ) * + + ( - CASE 51 WHEN + - COUNT ( * ) * - 37 * + ( - COUNT ( * ) ) * + CASE + + COUNT ( - - 85 ) WHEN - + 55 / + + COALESCE ( 69, COALESCE ( - 54, + COUNT ( DISTINCT + 28 ) - 12 * - - CAST ( NULL AS INTEGER ) + - ( - SUM ( + 30 ) ) + - 85, - COALESCE ( + 82, + MIN ( + + 5 ) * - - 74 * + 88 ) ) ) * + ( + 56 ) + 29 + - COUNT ( * ) + - 63 THEN NULL WHEN 25 / 97 * - + 86 THEN 44 WHEN + 77 * 86 THEN NULL END + - CASE + 41 WHEN + ( + 26 ) * 86 THEN NULL ELSE 68 END + + CASE + 83 + 82 * + 18 WHEN - COUNT ( * ) THEN NULL WHEN 74 THEN + 89 / 84 WHEN 20 + + 72 * + CASE 63 WHEN COUNT ( * ) THEN 3 ELSE COUNT ( * ) END THEN NULL END / + 27 - - 61 / 23 THEN 76 + 44 * - 0 END ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4329
SELECT ALL - CAST( NULL AS SIGNED ), + 18 + - - 31 + + - 8 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL - CAST ( NULL AS INTEGER ), + 18 + - - 31 + + - 8 AS col2
----
NULL
41

query I rowsort
SELECT - 35 * 99 - - 97
----
-3368

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 78 + + + 56 * 15 + + MIN( ALL - 39 )
----
879

skipif mysql # not compatible
query I rowsort label-4331
SELECT 78 + + + 56 * 15 + + MIN ( ALL - 39 )
----
879

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT 94 + 13 DIV + - ( - + 36 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4332
SELECT 94 + 13 / + - ( - + 36 ) col0
----
94

query I rowsort
SELECT DISTINCT 96 * + 12 AS col1
----
1152

query I rowsort
SELECT - 78 * + 66 + - 66 col0
----
-5214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4335
SELECT ALL 58, SUM( ALL + 45 ) DIV - - 9 AS col0
----
58
5

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL 58, SUM ( ALL + 45 ) / - - 9 AS col0
----
58
5

query I rowsort
SELECT 77 * - 52
----
-4004

query I rowsort
SELECT 13 + - - 18
----
31

query I rowsort
SELECT DISTINCT 60 + - + 56
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - COUNT( * ) AS col1, + 9 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - COUNT ( * ) AS col1, + 9 AS col2
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) + 78
----
79

query I rowsort
SELECT - 5 * - ( - + 11 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT COALESCE ( + 99, - + 80 * + AVG ( 84 ) DIV - 0 + - - 43 + - - 5 + + 77, 38 * - 76 + 55 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4342
SELECT COALESCE ( + 99, - + 80 * + AVG ( 84 ) / - 0 + - - 43 + - - 5 + + 77, 38 * - 76 + 55 ) AS col1
----
99

query I rowsort
SELECT 53 * 58
----
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + - ( - 41 ) * - CAST( + - 71 AS SIGNED ) col0
----
2911

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + - ( - 41 ) * - CAST ( + - 71 AS INTEGER ) col0
----
2911

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4345
SELECT ALL - - 38 + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, - 5 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-4345
SELECT ALL - - 38 + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, - 5 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ( - + COUNT( * ) ) * + + 4 + 16 * + 57 AS col1
----
908

skipif mysql # not compatible
query I rowsort label-4346
SELECT ( - + COUNT ( * ) ) * + + 4 + 16 * + 57 AS col1
----
908

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT - 79 DIV 14 + - 27 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 79 / 14 + - 27 AS col0
----
-32

query I rowsort
SELECT ALL - 21 + 21 + - 20 - - 68 * - + 86 + + 62
----
-5806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL - NULLIF ( - 42, - CASE + 7 WHEN + + COUNT( * ) / + CAST( NULL AS SIGNED ) - + 51 - + 18 + + 0 THEN NULL ELSE - 28 END / 42 + - CAST( NULL AS SIGNED ) - - 84 + COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - NULLIF ( - 42, - CASE + 7 WHEN + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) - + 51 - + 18 + + 0 THEN NULL ELSE - 28 END / 42 + - CAST ( NULL AS INTEGER ) - - 84 + COUNT ( * ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT DISTINCT - 81, COUNT( * ) col0
----
-81
1

skipif mysql # not compatible
query II rowsort label-4350
SELECT DISTINCT - 81, COUNT ( * ) col0
----
-81
1

query I rowsort
SELECT 99 * - 23 AS col2
----
-2277

query II rowsort
SELECT - + 45, - 17 * + 5 AS col1
----
-45
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT 47 - - 36 - - - MIN( - ( - - 17 ) ) + 67 DIV + 4 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4353
SELECT 47 - - 36 - - - MIN ( - ( - - 17 ) ) + 67 / + 4 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + MIN( DISTINCT + 41 ) * + - 96
----
-3936

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + MIN ( DISTINCT + 41 ) * + - 96
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - 83 * SUM( + 96 ) * COUNT( * )
----
-7968

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 83 * SUM ( + 96 ) * COUNT ( * )
----
-7968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT 5 DIV - 38 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4356
SELECT 5 / - 38 - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 78 * + 11
----
858

query I rowsort
SELECT 81 - + 23 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT ALL 73 + - - 5 AS col2, + 63 - - COUNT( + 99 )
----
78
64

skipif mysql # not compatible
query II rowsort label-4359
SELECT ALL 73 + - - 5 AS col2, + 63 - - COUNT ( + 99 )
----
78
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT DISTINCT 31 + - + CAST( NULL AS SIGNED ) * 7 + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT 31 + - + CAST ( NULL AS INTEGER ) * 7 + 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4361
SELECT ALL - COUNT( * ) + + COALESCE ( - 88, + CASE 45 WHEN 4 THEN NULL WHEN - - 83 THEN - CAST( NULL AS SIGNED ) - + 92 ELSE - ( - 82 ) * + - ( - 48 ) * + - 99 + - COALESCE ( + 62, - + COUNT( * ) ) - - + ( + 11 ) * - 17 + - - 2 + + 1 * + 46 * + 91 END, - COUNT( * ) DIV + 39 )
----
-89

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - COUNT ( * ) + + COALESCE ( - 88, + CASE 45 WHEN 4 THEN NULL WHEN - - 83 THEN - CAST ( NULL AS INTEGER ) - + 92 ELSE - ( - 82 ) * + - ( - 48 ) * + - 99 + - COALESCE ( + 62, - + COUNT ( * ) ) - - + ( + 11 ) * - 17 + - - 2 + + 1 * + 46 * + 91 END, - COUNT ( * ) / + 39 )
----
-89

query I rowsort
SELECT DISTINCT + 79 + ( + - ( + 85 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL + 6 * + 54 * - COUNT( * )
----
-324

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + 6 * + 54 * - COUNT ( * )
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - SUM( DISTINCT - + ( 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - SUM ( DISTINCT - + ( 69 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - 34 + - - COUNT( DISTINCT + 77 ) + - 90 + + - 33 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - 34 + - - COUNT ( DISTINCT + 77 ) + - 90 + + - 33 AS col2
----
-156

query I rowsort
SELECT 93 - - 35 col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT - COUNT( * ) + - ( CASE 24 WHEN 74 THEN + 48 * + - 8 WHEN - 38 THEN - ( + ( - CASE + 6 WHEN 59 THEN - COUNT( + 40 ) WHEN - - 7 + - + ( 59 ) THEN + 66 WHEN - 3 THEN NULL ELSE + - 50 * + - 26 / + COUNT( * ) END ) ) WHEN + - 93 THEN - 68 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - COUNT ( * ) + - ( CASE 24 WHEN 74 THEN + 48 * + - 8 WHEN - 38 THEN - ( + ( - CASE + 6 WHEN 59 THEN - COUNT ( + 40 ) WHEN - - 7 + - + ( 59 ) THEN + 66 WHEN - 3 THEN NULL ELSE + - 50 * + - 26 / + COUNT ( * ) END ) ) WHEN + - 93 THEN - 68 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL SUM( + ( + 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL SUM ( + ( + 15 ) )
----
15

query I rowsort
SELECT DISTINCT 51 * + - 24 AS col1
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + 50 * + SUM( ALL 45 ) AS col2
----
2250

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + 50 * + SUM ( ALL 45 ) AS col2
----
2250

query II rowsort
SELECT 44 - - + 62, - 89 AS col0
----
106
-89

query I rowsort
SELECT - 79 * - 32 - + - 31
----
2559

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT - MAX( DISTINCT 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4373
SELECT - MAX ( DISTINCT 26 )
----
-26

query I rowsort
SELECT + 66 + - NULLIF ( 79, - 46 )
----
-13

query I rowsort
SELECT - 6 + + COALESCE ( + + 31, - ( ( + 26 ) ) ) + - 40
----
-15

query I rowsort
SELECT - - 34 + + + 78 - + 95 AS col0
----
17

query I rowsort
SELECT + + 18 * - 1 * 29 + + 85
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + - NULLIF ( 72, - 60 / - 91 + - 43 * + + COUNT( ALL - 48 ) ) * 75
----
-5400

skipif mysql # not compatible
query I rowsort label-4378
SELECT + - NULLIF ( 72, - 60 / - 91 + - 43 * + + COUNT ( ALL - 48 ) ) * 75
----
-5400

query I rowsort
SELECT + 69 + + + CASE + - 6 WHEN + 30 - - 89 THEN NULL WHEN + 85 THEN NULL ELSE + - 68 END AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4380
SELECT - 8 DIV - 7, 1 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4380
SELECT - 8 / - 7, 1 AS col0
----
1
1

query I rowsort
SELECT + ( - 43 ) * 77
----
-3311

query I rowsort
SELECT + 9 + - COALESCE ( + + ( + 13 ), + 26 ) - - ( + ( - + 41 ) )
----
-45

query I rowsort
SELECT - 21 * - 18 AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + COALESCE ( 27, + + 75, + 31 * - COUNT( * ) - + 83 * - 34 ) + 21
----
48

skipif mysql # not compatible
query I rowsort label-4384
SELECT + COALESCE ( 27, + + 75, + 31 * - COUNT ( * ) - + 83 * - 34 ) + 21
----
48

query I rowsort
SELECT ALL 85 * 4 * + 48
----
16320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4386
SELECT CAST( NULL AS DECIMAL ) * + 34 + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT CAST ( NULL AS REAL ) * + 34 + - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL ( + 71 ) * + COUNT( * ) * COALESCE ( + 61, - 90 ) + + 37 AS col1
----
4368

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL ( + 71 ) * + COUNT ( * ) * COALESCE ( + 61, - 90 ) + + 37 AS col1
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT + CASE WHEN NOT 3 NOT BETWEEN - 16 * 52 / COUNT( * ) + - + COUNT( * ) + + - 29 + + 24 / - 5 AND NULL THEN 47 WHEN NOT CASE COUNT( * ) WHEN NULLIF ( + 25, + 89 ) * + + 77 + + 34 + + 68 THEN - CAST( 59 AS SIGNED ) END + 7 - + 99 * - 40 NOT BETWEEN 54 + - 76 + + MAX( 51 ) * + 57 * + - COUNT( * ) AND NULL THEN - - 70 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT + CASE WHEN NOT 3 NOT BETWEEN - 16 * 52 / COUNT ( * ) + - + COUNT ( * ) + + - 29 + + 24 / - 5 AND NULL THEN 47 WHEN NOT CASE COUNT ( * ) WHEN NULLIF ( + 25, + 89 ) * + + 77 + + 34 + + 68 THEN - CAST ( 59 AS INTEGER ) END + 7 - + 99 * - 40 NOT BETWEEN 54 + - 76 + + MAX ( 51 ) * + 57 * + - COUNT ( * ) AND NULL THEN - - 70 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 37 * + 30 + - + 41 AS col2
----
1069

query I rowsort
SELECT CASE + ( - 38 ) WHEN 97 + + + 32 * 64 THEN - 9 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT CASE + - COUNT( + 24 ) WHEN - + 53 + MAX( COALESCE ( - 59, CAST( 44 AS SIGNED ) ) ) THEN - AVG ( 26 ) * COALESCE ( 29, - 98, + + 74 ) WHEN + - 56 * - 25 THEN - - 28 * + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT CASE + - COUNT ( + 24 ) WHEN - + 53 + MAX ( COALESCE ( - 59, CAST ( 44 AS INTEGER ) ) ) THEN - AVG ( 26 ) * COALESCE ( 29, - 98, + + 74 ) WHEN + - 56 * - 25 THEN - - 28 * + 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT 82 * 15 + - COUNT( * ) AS col0
----
1229

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT 82 * 15 + - COUNT ( * ) AS col0
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + CASE SUM( ( - 94 ) ) WHEN 86 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT + CASE SUM ( ( - 94 ) ) WHEN 86 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - 45 * - - COALESCE ( - 7, + COUNT( * ) + + 82 ) + + 47 * - + 97 col0
----
-4244

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 45 * - - COALESCE ( - 7, + COUNT ( * ) + + 82 ) + + 47 * - + 97 col0
----
-4244

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4395
SELECT ALL - 10 * + CAST( 43 AS SIGNED ) + + + 68 DIV - + 30 AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - 10 * + CAST ( 43 AS INTEGER ) + + + 68 / - + 30 AS col2
----
-432

query II rowsort
SELECT + 8, + 29 AS col0
----
8
29

query I rowsort
SELECT 66 * + + 30 + 74 AS col2
----
2054

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4398
SELECT ALL + 11 * - 2 - - ( + - CAST( NULL AS DECIMAL ) ) * + 39 * - COUNT( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 11 * - 2 - - ( + - CAST ( NULL AS REAL ) ) * + 39 * - COUNT ( + 14 )
----
NULL

query I rowsort
SELECT - 10 + - 95 - + 68 + 30 * - 15 * - 89 + 41 + + + 79 * + - 29 AS col1
----
37627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4400
SELECT ALL - + 83 * + + 13 * + 11 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - + 83 * + + 13 * + 11 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT + 51 * COUNT( * ) * - - 1
----
51

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + 51 * COUNT ( * ) * - - 1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT MAX( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-4402
SELECT MAX ( - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - - ( 68 ) + + + COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4403
SELECT - - ( 68 ) + + + COUNT ( * ) col1
----
69

query I rowsort
SELECT - - 88 * + ( 70 ) AS col2
----
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4405
SELECT ALL + - CASE WHEN NOT MAX( DISTINCT 18 ) IS NOT NULL THEN + 37 - 82 + 21 * + - 66 + 89 * 53 WHEN NOT CAST( NULL AS SIGNED ) * COALESCE ( + 55, + CAST( NULL AS SIGNED ) + + - CAST( + COUNT( * ) AS SIGNED ) * COALESCE ( 0, + 7 ), + - COUNT( * ) ) / 41 NOT IN ( 39 * - 11 * - CAST( ( - 49 ) AS SIGNED ), - 40 / 33 * - CAST( + COALESCE ( 59, - - ( - 83 ) * 47 ) AS DECIMAL ), - - 96 * - 17 + 73 ) THEN NULL END * + + 20 + - CAST( NULL AS SIGNED ) * + - 39 + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + - CASE WHEN NOT MAX ( DISTINCT 18 ) IS NOT NULL THEN + 37 - 82 + 21 * + - 66 + 89 * 53 WHEN NOT CAST ( NULL AS INTEGER ) * COALESCE ( + 55, + CAST ( NULL AS INTEGER ) + + - CAST ( + COUNT ( * ) AS INTEGER ) * COALESCE ( 0, + 7 ), + - COUNT ( * ) ) / 41 NOT IN ( 39 * - 11 * - CAST ( ( - 49 ) AS INTEGER ), - 40 / 33 * - CAST ( + COALESCE ( 59, - - ( - 83 ) * 47 ) AS REAL ), - - 96 * - 17 + 73 ) THEN NULL END * + + 20 + - CAST ( NULL AS INTEGER ) * + - 39 + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT - - 62, - COALESCE ( + - 95, + 14, 40 + + COUNT( * ) ) * - 33 col2
----
62
-3135

skipif mysql # not compatible
query II rowsort label-4406
SELECT - - 62, - COALESCE ( + - 95, + 14, 40 + + COUNT ( * ) ) * - 33 col2
----
62
-3135

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT DISTINCT + 33 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + 33 / - 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT - 97 + - - 36 - + CAST( NULL AS SIGNED ) * - + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 97 + - - 36 - + CAST ( NULL AS INTEGER ) * - + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - 42 + - - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 42 + - - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT - 98 - + 13
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 33 + MIN( DISTINCT - 39 )
----
-6

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 33 + MIN ( DISTINCT - 39 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT ALL + 93 DIV + 94 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + 93 / + 94 + - - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT + 61 DIV 86 DIV - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 61 / 86 / - - 23 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT 79 DIV COUNT( * ) - 16
----
63

skipif mysql # not compatible
query I rowsort label-4414
SELECT 79 / COUNT ( * ) - 16
----
63

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4415
SELECT CAST( NULL AS DECIMAL ), 90 DIV - 91 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4415
SELECT CAST ( NULL AS REAL ), 90 / - 91 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT + CASE 50 WHEN NULLIF ( - - 2, - - 76 ) / - + 57 THEN 73 - + - 11 - - 74 + CASE - - 4 WHEN 40 * + 48 THEN NULL WHEN - MIN( DISTINCT + 57 ) THEN NULL WHEN - MAX( - 87 ) THEN 94 ELSE - 81 END * + - 9 - + 5 * 83 * - 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT + CASE 50 WHEN NULLIF ( - - 2, - - 76 ) / - + 57 THEN 73 - + - 11 - - 74 + CASE - - 4 WHEN 40 * + 48 THEN NULL WHEN - MIN ( DISTINCT + 57 ) THEN NULL WHEN - MAX ( - 87 ) THEN 94 ELSE - 81 END * + - 9 - + 5 * 83 * - 90 END AS col0
----
NULL

query I rowsort
SELECT + 7 * 79
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT COALESCE ( - + 54, + 60 ) * ( + + COUNT( * ) ) * - 94 - - + COUNT( * ) + + + 93 * + + COUNT( * ) + - COUNT( * ) + 5 * - 27
----
5034

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT COALESCE ( - + 54, + 60 ) * ( + + COUNT ( * ) ) * - 94 - - + COUNT ( * ) + + + 93 * + + COUNT ( * ) + - COUNT ( * ) + 5 * - 27
----
5034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT ALL - 6 / 21 * + - 5 - - 9 - + 38 * - - 61 + COUNT( * ) + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 6 / 21 * + - 5 - - 9 - + 38 * - - 61 + COUNT ( * ) + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT COUNT( DISTINCT + 50 ) * 6 * + 92 * 27 + - 13 + + + 60 * + - 27 * - 67 + - 30 AS col2
----
123401

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( DISTINCT + 50 ) * 6 * + 92 * 27 + - 13 + + + 60 * + - 27 * - 67 + - 30 AS col2
----
123401

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + + NULLIF ( - - COUNT( * ), ( + + 19 ) ) + ( + + 58 )
----
59

skipif mysql # not compatible
query I rowsort label-4421
SELECT + + NULLIF ( - - COUNT ( * ), ( + + 19 ) ) + ( + + 58 )
----
59

query I rowsort
SELECT ALL - + CASE - 54 WHEN - - 20 * - + ( - 16 ) * + 54 THEN NULL WHEN - 18 THEN + ( + - 67 ) * + 10 + - + 89 + + NULLIF ( + 25, + 57 * 51 + + + ( + ( 85 ) ) + - + 99 + - 0 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT CAST( NULL AS SIGNED ) / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( NULL AS INTEGER ) / 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - COUNT( * ) AS col1, + 86
----
-1
86

skipif mysql # not compatible
query II rowsort label-4424
SELECT - COUNT ( * ) AS col1, + 86
----
-1
86

query I rowsort
SELECT + 74 + - - 26 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + 48 * + + COUNT( * ) + 24 - - 84 * + 35 * - 53
----
-155748

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 48 * + + COUNT ( * ) + 24 - - 84 * + 35 * - 53
----
-155748

query II rowsort
SELECT + 96 AS col0, + 73 + + - 99
----
96
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT ALL + 10, + SUM( 61 ) AS col2
----
10
61

skipif mysql # not compatible
query II rowsort label-4428
SELECT ALL + 10, + SUM ( 61 ) AS col2
----
10
61

query I rowsort
SELECT 92 * 12 + + 22 - 47 + + 86 col2
----
1165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4430
SELECT ALL - 97 AS col2, CAST( - + MIN( - - CAST( + 67 AS DECIMAL ) ) AS SIGNED ) col1
----
-97
-67

skipif mysql # not compatible
query II rowsort label-4430
SELECT ALL - 97 AS col2, CAST ( - + MIN ( - - CAST ( + 67 AS REAL ) ) AS INTEGER ) col1
----
-97
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT + 29 DIV + - 43 + - + COUNT( * ) * + CAST( + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + 29 / + - 43 + - + COUNT ( * ) * + CAST ( + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT - COALESCE ( - + 0, - 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL MAX( DISTINCT - 86 ) + - + ( - MAX( DISTINCT + + 80 ) ) + - 18 * - 11 + - 47 + + 88 * + - 52
----
-4431

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL MAX ( DISTINCT - 86 ) + - + ( - MAX ( DISTINCT + + 80 ) ) + - 18 * - 11 + - 47 + + 88 * + - 52
----
-4431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT MAX( - 0 ) + 52 - COALESCE ( - 4, 47 ) DIV + + 43 + + + 94
----
146

skipif mysql # not compatible
query I rowsort label-4434
SELECT MAX ( - 0 ) + 52 - COALESCE ( - 4, 47 ) / + + 43 + + + 94
----
146

query I rowsort
SELECT 22 + + 19
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4436
SELECT - 53 AS col1, COUNT( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST( NULL AS SIGNED ) END ) + + 29 + + + 19 * + 12 AS col1
----
-53
257

skipif mysql # not compatible
query II rowsort label-4436
SELECT - 53 AS col1, COUNT ( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST ( NULL AS INTEGER ) END ) + + 29 + + + 19 * + 12 AS col1
----
-53
257

query II rowsort
SELECT - 4 AS col1, 50 * + ( - ( 16 ) )
----
-4
-800

query I rowsort
SELECT ALL 80 + - + 34 - - + 48 * + 11 col1
----
574

query I rowsort
SELECT ALL 56 + + 22
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4440
SELECT ALL - 47 + + COUNT( * ) AS col0, COUNT( * ) - 23 - + 33 * - 47 + - CASE - CAST( NULL AS SIGNED ) WHEN + 2 THEN + + 17 ELSE NULL END
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL - 47 + + COUNT ( * ) AS col0, COUNT ( * ) - 23 - + 33 * - 47 + - CASE - CAST ( NULL AS INTEGER ) WHEN + 2 THEN + + 17 ELSE NULL END
----
-46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4441
SELECT DISTINCT + ( - 45 ) * - + ( - + 58 ) * - ( CASE - 62 WHEN + + 48 + CAST( + - 60 AS SIGNED ) + + 3 THEN + 96 * + + ( + COALESCE ( CASE 28 WHEN + + 61 THEN 8 + + 89 END, 0 ) ) * + 62 WHEN + MAX( + 97 ) * + 2 * - COUNT( DISTINCT + 35 ) + + 14 THEN NULL WHEN - 34 * - + CASE + 44 WHEN + 50 + + 67 + + 12 * + 66 THEN + 93 END + + 59 THEN - CASE + 21 WHEN - 33 THEN - 4 WHEN 42 THEN NULL ELSE NULL END ELSE - + 72 * - 82 + 86 + + - 13 - - CASE CAST( NULL AS DECIMAL ) WHEN - 24 THEN NULL WHEN + 41 * - COUNT( * ) THEN + 87 ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + ( - 45 ) * - + ( - + 58 ) * - ( CASE - 62 WHEN + + 48 + CAST ( + - 60 AS INTEGER ) + + 3 THEN + 96 * + + ( + COALESCE ( CASE 28 WHEN + + 61 THEN 8 + + 89 END, 0 ) ) * + 62 WHEN + MAX ( + 97 ) * + 2 * - COUNT ( DISTINCT + 35 ) + + 14 THEN NULL WHEN - 34 * - + CASE + 44 WHEN + 50 + + 67 + + 12 * + 66 THEN + 93 END + + 59 THEN - CASE + 21 WHEN - 33 THEN - 4 WHEN 42 THEN NULL ELSE NULL END ELSE - + 72 * - 82 + 86 + + - 13 - - CASE CAST ( NULL AS REAL ) WHEN - 24 THEN NULL WHEN + 41 * - COUNT ( * ) THEN + 87 ELSE NULL END END )
----
NULL

query I rowsort
SELECT 6 + - + 66 + - 98 AS col1
----
-158

query I rowsort
SELECT DISTINCT + 2 + ( - 11 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT ALL - 47 + + - COUNT( * ) + + 45 - + 81 DIV 84 * + + 28
----
-3

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - 47 + + - COUNT ( * ) + + 45 - + 81 / 84 * + + 28
----
-3

query I rowsort
SELECT 96 * - + 39
----
-3744

query I rowsort
SELECT ALL + ( + ( - 78 ) ) * - - 22
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 3 + COUNT( * ) - + - 62
----
66

skipif mysql # not compatible
query I rowsort label-4447
SELECT 3 + COUNT ( * ) - + - 62
----
66

query II rowsort
SELECT DISTINCT + 30 * + + 90 AS col2, 48 AS col0
----
2700
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - MIN( ALL + 31 ) * 62
----
-1922

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - MIN ( ALL + 31 ) * 62
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL ( - 63 ) - + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL ( - 63 ) - + COUNT ( * ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4451
SELECT - 86 DIV + + COUNT( * ) + + 90 + - + 61 * 12 * 43 AS col2
----
-31472

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 86 / + + COUNT ( * ) + + 90 + - + 61 * 12 * 43 AS col2
----
-31472

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT 41 DIV 56 * + ( - + 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT 41 / 56 * + ( - + 94 ) AS col0
----
0

query I rowsort
SELECT 12 * ( + 78 ) AS col0
----
936

query I rowsort
SELECT + 5 + - + 59 * 8
----
-467

query I rowsort
SELECT ( - + 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT COUNT( * ) * - 49, + 75 AS col0
----
-49
75

skipif mysql # not compatible
query II rowsort label-4456
SELECT COUNT ( * ) * - 49, + 75 AS col0
----
-49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - 10 * + + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 10 * + + COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT + - ( + 51 )
----
-51

query I rowsort
SELECT ALL - CASE - + 8 WHEN - + ( 27 ) * - 62 THEN NULL WHEN + 66 THEN + ( + 74 ) ELSE NULL END + + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT 87 + + + MIN( 1 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT 87 + + + MIN ( 1 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - MIN( DISTINCT - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4461
SELECT - MIN ( DISTINCT - 30 ) AS col2
----
30

query I rowsort
SELECT ( 71 ) + 31 * 78
----
2489

query I rowsort
SELECT - 88 * - 64
----
5632

query I rowsort
SELECT ALL 32 + - 21
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT - 15 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 15 / 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - MIN( ALL + 78 ) + 62 * - SUM( ALL + 21 )
----
-1380

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - MIN ( ALL + 78 ) + 62 * - SUM ( ALL + 21 )
----
-1380

query II rowsort
SELECT 86, + 99 + - - 34 + 87 AS col0
----
86
220

onlyif mysql # DIV for integer division: 
query II rowsort label-4468
SELECT ALL 74 DIV 21 DIV 42 AS col1, - 60 * - 22 * 14 AS col0
----
0
18480

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL 74 / 21 / 42 AS col1, - 60 * - 22 * 14 AS col0
----
0
18480

query I rowsort
SELECT ALL 33 + 16 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT MAX( - - ( + - 58 ) ) - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT MAX ( - - ( + - 58 ) ) - - COUNT ( * )
----
-57

query I rowsort
SELECT 77 * + 65
----
5005

query I rowsort
SELECT 13 + 77 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 16 * + + MAX( ALL 69 ) * 57 - + 32 * - 11
----
63280

skipif mysql # not compatible
query I rowsort label-4473
SELECT 16 * + + MAX ( ALL 69 ) * 57 - + 32 * - 11
----
63280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT ALL NULLIF ( + 67, - 1 ) - 2 AS col0, + 96 DIV COUNT( * ) + - 66
----
65
30

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL NULLIF ( + 67, - 1 ) - 2 AS col0, + 96 / COUNT ( * ) + - 66
----
65
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - COUNT( - - 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4475
SELECT - COUNT ( - - 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT COUNT( 50 ) - - - 63 + 99 * + 68
----
6670

skipif mysql # not compatible
query I rowsort label-4476
SELECT COUNT ( 50 ) - - - 63 + 99 * + 68
----
6670

query II rowsort
SELECT ALL 51 AS col2, - 89 AS col1
----
51
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4478
SELECT ALL - 60, + 16 * CASE - + 16 WHEN + - CAST( + - 81 AS DECIMAL ) * 19 THEN NULL ELSE - - SUM( DISTINCT + + 90 ) * CAST( NULL AS SIGNED ) * - 75 + - 38 + SUM( 5 ) * - 18 + 64 / + 48 END AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL - 60, + 16 * CASE - + 16 WHEN + - CAST ( + - 81 AS REAL ) * 19 THEN NULL ELSE - - SUM ( DISTINCT + + 90 ) * CAST ( NULL AS INTEGER ) * - 75 + - 38 + SUM ( 5 ) * - 18 + 64 / + 48 END AS col1
----
-60
NULL

query I rowsort
SELECT ALL - 44 * 66 AS col2
----
-2904

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT - 82 DIV 23 - 2 AS col2, 60 + 87
----
-5
147

skipif mysql # not compatible
query II rowsort label-4480
SELECT - 82 / 23 - 2 AS col2, 60 + 87
----
-5
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT CASE + 54 WHEN - COUNT( * ) THEN + + 81 * ( 92 ) END, 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4481
SELECT CASE + 54 WHEN - COUNT ( * ) THEN + + 81 * ( 92 ) END, 66 AS col1
----
NULL
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT - 83 - - + 13 + - + 21 - - 21 DIV 95
----
-91

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 83 - - + 13 + - + 21 - - 21 / 95
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL - CAST( + COUNT( ALL - + 30 ) AS SIGNED ) * + MAX( ALL - - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - CAST ( + COUNT ( ALL - + 30 ) AS INTEGER ) * + MAX ( ALL - - 41 )
----
-41

query I rowsort
SELECT - 95 * 19 AS col2
----
-1805

query I rowsort
SELECT - 1 * - + 99
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT 50, - 95 + - 6 + + 71 * - 19 + - 35 + + 42 + - 21 * COUNT( * ) col1
----
50
-1464

skipif mysql # not compatible
query II rowsort label-4486
SELECT 50, - 95 + - 6 + + 71 * - 19 + - 35 + + 42 + - 21 * COUNT ( * ) col1
----
50
-1464

query I rowsort
SELECT + - COALESCE ( - 6, 23, + 88, 6 )
----
6

query I rowsort
SELECT ALL - 62 * + 15
----
-930

query II rowsort
SELECT - - ( - 69 ) * + 21 + + 41 col2, - 66 * - - 13 AS col1
----
-1408
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT - + 34 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT - + 34 * - COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT - - 12 * - + 13 + - + 76 AS col0
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + 19 * - 11 * 49 * + 18 + - COUNT( * ) * + - 43
----
-184295

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 19 * - 11 * 49 * + 18 + - COUNT ( * ) * + - 43
----
-184295

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT - 72 + ( - 17 ), - 3 DIV COUNT( * ) col2
----
-89
-3

skipif mysql # not compatible
query II rowsort label-4493
SELECT - 72 + ( - 17 ), - 3 / COUNT ( * ) col2
----
-89
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4494
SELECT - AVG ( - - CASE - - 3 WHEN - + 17 THEN - 27 * - - CAST( 50 AS DECIMAL ) END ) * - COUNT( * ) - - 18 / - - 89 + 71 + + 51 / - COUNT( * ), 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-4494
SELECT - AVG ( - - CASE - - 3 WHEN - + 17 THEN - 27 * - - CAST ( 50 AS REAL ) END ) * - COUNT ( * ) - - 18 / - - 89 + 71 + + 51 / - COUNT ( * ), 54 AS col2
----
NULL
54

query I rowsort
SELECT ALL - + 80 + + 10
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT + - CAST( 72 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + - CAST ( 72 AS INTEGER ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT ALL - 63 + - - 47 DIV - 83 * - 58 * - - COUNT( * ) * + + 57 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - 63 + - - 47 / - 83 * - 58 * - - COUNT ( * ) * + + 57 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + + 99 + - SUM( ALL - ( - 82 ) ) + + NULLIF ( COUNT( * ), 11 + 27 )
----
18

skipif mysql # not compatible
query I rowsort label-4498
SELECT + + 99 + - SUM ( ALL - ( - 82 ) ) + + NULLIF ( COUNT ( * ), 11 + 27 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT + + COUNT( * ) - - 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + + COUNT ( * ) - - 46 AS col2
----
47

query I rowsort
SELECT DISTINCT 68 - 87 AS col2
----
-19

query I rowsort
SELECT + 97 + + 86 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + 14 * COALESCE ( + 76, - 31 ) * - 36 * - + COUNT( * ) AS col0
----
38304

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 14 * COALESCE ( + 76, - 31 ) * - 36 * - + COUNT ( * ) AS col0
----
38304

query I rowsort
SELECT + 73 + 22
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT + CAST( - SUM( ALL - ( - 6 ) ) AS SIGNED ) + - 75 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4504
SELECT + CAST ( - SUM ( ALL - ( - 6 ) ) AS INTEGER ) + - 75 AS col1
----
-81

query II rowsort
SELECT - ( - + 44 ) AS col1, + 11
----
44
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + 61 + + ( - - COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 61 + + ( - - COUNT ( * ) ) AS col2
----
62

query I rowsort
SELECT ALL 67 - + + 82 * - + 50 * + 4
----
16467

query I rowsort
SELECT + 79 * + 2 AS col2
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT + 37 + 32 * - - CAST( + 7 AS SIGNED )
----
261

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 37 + 32 * - - CAST ( + 7 AS INTEGER )
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL COUNT( - 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( - 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT COUNT( * ) * 8 * - ( - 30 ) * - COALESCE ( - - 97, - 83 )
----
-23280

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT COUNT ( * ) * 8 * - ( - 30 ) * - COALESCE ( - - 97, - 83 )
----
-23280

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT ALL 19 DIV + 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 19 / + 74 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4513
SELECT + 31 DIV - 9, 37 - - 8 * 38 * - - COUNT( * ) AS col1
----
-3
341

skipif mysql # not compatible
query II rowsort label-4513
SELECT + 31 / - 9, 37 - - 8 * 38 * - - COUNT ( * ) AS col1
----
-3
341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL + 12 * COUNT( * ) DIV ( + COUNT( ALL 11 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + 12 * COUNT ( * ) / ( + COUNT ( ALL 11 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + 48 * - 1 * + + SUM( - 47 ) AS col1
----
2256

skipif mysql # not compatible
query I rowsort label-4515
SELECT + 48 * - 1 * + + SUM ( - 47 ) AS col1
----
2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT MAX( DISTINCT 23 ) * + - COUNT( * ) + - COUNT( - + CAST( NULL AS SIGNED ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT MAX ( DISTINCT 23 ) * + - COUNT ( * ) + - COUNT ( - + CAST ( NULL AS INTEGER ) )
----
-23

query I rowsort
SELECT DISTINCT 48 * + + 91 * ( + + 59 )
----
257712

query I rowsort
SELECT ALL NULLIF ( 22, - - 56 + - 53 / + + 97 + + - 13 * + COALESCE ( + 57, 92 ) ) + - 59 AS col0
----
-37

query I rowsort
SELECT + + 55 + 56
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + MAX( + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4520
SELECT + MAX ( + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT DISTINCT - MAX( - 85 ) DIV - 52 + COALESCE ( COUNT( DISTINCT + + 89 ), 84 ) * + 19
----
18

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - MAX ( - 85 ) / - 52 + COALESCE ( COUNT ( DISTINCT + + 89 ), 84 ) * + 19
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL 19 DIV + 44 + 68 - + 12 * + 43 + - - 63
----
-385

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 19 / + 44 + 68 - + 12 * + 43 + - - 63
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + COUNT( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-4523
SELECT + COUNT ( + 80 )
----
1

query I rowsort
SELECT DISTINCT - 17 * 81 * + 78 col1
----
-107406

query I rowsort
SELECT ALL + 67 * + 70
----
4690

query I rowsort
SELECT DISTINCT + + 15 * ( 52 )
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL + COUNT( * ) * + - 10 + + - 69 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + COUNT ( * ) * + - 10 + + - 69 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4528
SELECT NULLIF ( + - MIN( DISTINCT 18 ), CAST( - 95 AS SIGNED ) ), 3 + 37 AS col1
----
-18
40

skipif mysql # not compatible
query II rowsort label-4528
SELECT NULLIF ( + - MIN ( DISTINCT 18 ), CAST ( - 95 AS INTEGER ) ), 3 + 37 AS col1
----
-18
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT COALESCE ( 89, + 7, MAX( ALL + 25 ) * + 32 )
----
89

skipif mysql # not compatible
query I rowsort label-4529
SELECT COALESCE ( 89, + 7, MAX ( ALL + 25 ) * + 32 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT - ( + + COUNT( * ) ) DIV - + MAX( DISTINCT - + 4 ) * + 61 - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4530
SELECT - ( + + COUNT ( * ) ) / - + MAX ( DISTINCT - + 4 ) * + 61 - 52 AS col1
----
-52

query I rowsort
SELECT + 15 * + 38
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 43 DIV + 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 43 / + 48 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT COUNT( * ) AS col2, + 68 AS col2
----
1
68

skipif mysql # not compatible
query II rowsort label-4533
SELECT COUNT ( * ) AS col2, + 68 AS col2
----
1
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT ALL 81 AS col0, COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-4534
SELECT ALL 81 AS col0, COUNT ( * )
----
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT DISTINCT CAST( + CAST( + 57 AS SIGNED ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT CAST ( + CAST ( + 57 AS INTEGER ) AS INTEGER )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4536
SELECT - 55 * COUNT( 82 ) AS col1, - CAST( NULL AS SIGNED )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT - 55 * COUNT ( 82 ) AS col1, - CAST ( NULL AS INTEGER )
----
-55
NULL

query I rowsort
SELECT 12 * - 64 * + + ( + + 93 ) AS col1
----
-71424

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + 78
----
-77

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + 78
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT COUNT( * ) - - 98 * + MIN( - - 88 ) DIV - 2 AS col0
----
-4311

skipif mysql # not compatible
query I rowsort label-4539
SELECT COUNT ( * ) - - 98 * + MIN ( - - 88 ) / - 2 AS col0
----
-4311

query II rowsort
SELECT - 58 AS col2, 56 * + - 50 + - 17 AS col2
----
-58
-2817

query I rowsort
SELECT DISTINCT - 99 + - 51
----
-150

query I rowsort
SELECT 40 + - 20
----
20

query I rowsort
SELECT ALL - ( 47 ) + - 88 * 61 * 44
----
-236239

query I rowsort
SELECT ALL ( 39 ) + 34 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL 53 + - 13 * + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL 53 + - 13 * + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ( + 10 ) - + 83 AS col1
----
-73

query I rowsort
SELECT ALL 0 * - 49 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4548
SELECT ALL 17 + + CAST( - 12 + 11 * + 82 AS SIGNED ) DIV 22 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 17 + + CAST ( - 12 + 11 * + 82 AS INTEGER ) / 22 AS col1
----
57

query I rowsort
SELECT ALL 93 * 87 AS col2
----
8091

query I rowsort
SELECT 62 * + 30
----
1860

query I rowsort
SELECT ALL 57 * 66
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT 16 - COUNT( * ) * ( 63 )
----
-47

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 16 - COUNT ( * ) * ( 63 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - COUNT( DISTINCT 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - COUNT ( DISTINCT 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT 97 - + 23 * - MAX( DISTINCT - 13 + + 42 )
----
764

skipif mysql # not compatible
query I rowsort label-4554
SELECT 97 - + 23 * - MAX ( DISTINCT - 13 + + 42 )
----
764

query I rowsort
SELECT 0 * 17
----
0

query I rowsort
SELECT + 53 * 72 + - 79 AS col0
----
3737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4557
SELECT 81 + COALESCE ( - 58 + 21 DIV + 36, 37 + + CAST( - 2 AS SIGNED ), - COUNT( * ) * + COUNT( * ), - 17 ) DIV 83
----
81

skipif mysql # not compatible
query I rowsort label-4557
SELECT 81 + COALESCE ( - 58 + 21 / + 36, 37 + + CAST ( - 2 AS INTEGER ), - COUNT ( * ) * + COUNT ( * ), - 17 ) / 83
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 87 + - CASE + 33 + + COUNT( * ) WHEN 37 THEN NULL WHEN + ( + 37 ) THEN 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 87 + - CASE + 33 + + COUNT ( * ) WHEN 37 THEN NULL WHEN + ( + 37 ) THEN 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ( + 59 ) * + COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( + 59 ) * + COUNT ( * ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4560
SELECT 26 * + COUNT ( * )
----
26

query I rowsort
SELECT ( 29 ) + + 66
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT 32 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT 32 / + 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT 9 DIV + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 9 / + 49 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT 16 + CASE 23 WHEN + 87 + 23 THEN - 39 + 67 * + NULLIF ( - COUNT( * ), ( 42 ) ) WHEN - ( + ( + NULLIF ( ( + COALESCE ( - ( COUNT( * ) ), COUNT( 66 ) * + 14 + 6 ) ), ( + 54 ) ) ) ) THEN - 56 + 51 * 75 ELSE NULL END * AVG ( DISTINCT - 55 * 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT 16 + CASE 23 WHEN + 87 + 23 THEN - 39 + 67 * + NULLIF ( - COUNT ( * ), ( 42 ) ) WHEN - ( + ( + NULLIF ( ( + COALESCE ( - ( COUNT ( * ) ), COUNT ( 66 ) * + 14 + 6 ) ), ( + 54 ) ) ) ) THEN - 56 + 51 * 75 ELSE NULL END * AVG ( DISTINCT - 55 * 7 )
----
NULL

query I rowsort
SELECT 25 + 11 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT + NULLIF ( + 55, MIN( DISTINCT + 52 ) ) * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + NULLIF ( + 55, MIN ( DISTINCT + 52 ) ) * + COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT + 12 + 20 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - ( 4 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - ( 4 ) AS col2
----
-3

query I rowsort
SELECT CASE + 65 WHEN + 47 THEN + 31 * 20 END + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + ( 99 ) + 86 * + COUNT( * ) AS col0
----
185

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + ( 99 ) + 86 * + COUNT ( * ) AS col0
----
185

query I rowsort
SELECT 31 * + 19
----
589

query I rowsort
SELECT DISTINCT + 67 + + 81 * - 75
----
-6008

query I rowsort
SELECT DISTINCT - ( 44 ) + 11 * - 28
----
-352

query I rowsort
SELECT ALL + 22 * 53
----
1166

query I rowsort
SELECT ALL + ( 45 ) + 85 col0
----
130

query I rowsort
SELECT ALL - 95 + + ( 3 - - 13 * + 74 ) AS col0
----
870

query I rowsort
SELECT ALL 53 + + 36 * - 89 col0
----
-3151

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT ALL 80 + - 76 DIV ( 99 DIV - 76 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 80 + - 76 / ( 99 / - 76 ) AS col2
----
156

query I rowsort
SELECT ALL + 83 * - NULLIF ( + 55, - 3 )
----
-4565

query I rowsort
SELECT + 59 * - 29 AS col2
----
-1711

query I rowsort
SELECT + 63 + + 75
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4582
SELECT DISTINCT + + 15 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + + 15 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 + 77 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT ALL - 33 + - COUNT( * ) DIV - ( - 52 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - 33 + - COUNT ( * ) / - ( - 52 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT - CAST( NULL AS SIGNED ) + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - CAST ( NULL AS INTEGER ) + + 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + 89 * 41
----
3649

query I rowsort
SELECT ALL - 98 * - 58 - 89
----
5595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL SUM( ALL 45 ) DIV + 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL SUM ( ALL 45 ) / + 9 AS col2
----
5

query I rowsort
SELECT DISTINCT - ( + ( + NULLIF ( ( 90 ), 50 ) ) ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL + 6 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 6 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT + 88 + - 55 DIV - 66
----
88

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 88 + - 55 / - 66
----
88

query I rowsort
SELECT DISTINCT + 57 * 61
----
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 46 * COUNT( 43 ) + + 55 * MIN( DISTINCT + 20 + - NULLIF ( + 78, - 67 + 86 ) ) AS col1
----
-3144

skipif mysql # not compatible
query I rowsort label-4595
SELECT 46 * COUNT ( 43 ) + + 55 * MIN ( DISTINCT + 20 + - NULLIF ( + 78, - 67 + 86 ) ) AS col1
----
-3144

query I rowsort
SELECT DISTINCT - ( 86 ) * - 11
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT - COUNT( + 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT - COUNT ( + 0 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 9 * 15
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT COUNT ( * ) * - 7
----
-7

query I rowsort
SELECT ( - 98 ) * 33 AS col1
----
-3234

query I rowsort
SELECT ALL + 25 + - 58 + - 7 AS col2
----
-40

query I rowsort
SELECT ALL 96 + - 88 * 27
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT ( + 74 ) + + 22 * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT ( + 74 ) + + 22 * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 78 * + MIN( - 59 )
----
-4602

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 78 * + MIN ( - 59 )
----
-4602

query I rowsort
SELECT - CASE WHEN NOT 57 = - 7 * + 70 THEN 40 WHEN NOT ( 30 * 52 ) IS NULL THEN NULL END * - 10 AS col0
----
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL CAST( 21 AS SIGNED ) + 26 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CAST ( 21 AS INTEGER ) + 26 AS col0
----
47

query I rowsort
SELECT - CASE 45 WHEN 46 THEN NULL ELSE 80 + 13 END
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 26 * 66 * 70 - CASE - 74 WHEN 33 THEN 50 + + MAX( 84 - - 77 ) ELSE + 98 + 26 END
----
119996

skipif mysql # not compatible
query I rowsort label-4608
SELECT 26 * 66 * 70 - CASE - 74 WHEN 33 THEN 50 + + MAX ( 84 - - 77 ) ELSE + 98 + 26 END
----
119996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT - 81 + + 34 DIV - COUNT( ALL 82 + 3 ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - 81 + + 34 / - COUNT ( ALL 82 + 3 ) AS col1
----
-115

query I rowsort
SELECT DISTINCT 89 * - 23 * 54 AS col2
----
-110538

query I rowsort
SELECT ALL - 63 + 34 * 1 AS col2
----
-29

query I rowsort
SELECT - 18 - + - 32 col0
----
14

query I rowsort
SELECT + 89 + 46 + - 13
----
122

query I rowsort
SELECT + ( 80 ) col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT - + MIN( DISTINCT + 82 ) DIV - COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-4615
SELECT - + MIN ( DISTINCT + 82 ) / - COUNT ( * ) col1
----
82

query I rowsort
SELECT ALL - + 50 - + + 60
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT - COUNT( * ) * - 44 + - CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT - COUNT ( * ) * - 44 + - CAST ( NULL AS INTEGER ) / 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - COUNT( * ) + + + 57 + + 54 * 83 AS col0
----
4538

skipif mysql # not compatible
query I rowsort label-4618
SELECT - COUNT ( * ) + + + 57 + + 54 * 83 AS col0
----
4538

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + MIN( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + MIN ( ALL 96 )
----
96

query I rowsort
SELECT - + NULLIF ( + + 9, + 62 * + 42 )
----
-9

query I rowsort
SELECT - 27 + + - ( 74 ) + + 63
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL - ( - + NULLIF ( + 50, NULLIF ( ( 87 ), 39 ) / 89 ) ) - - SUM( ALL - 56 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - ( - + NULLIF ( + 50, NULLIF ( ( 87 ), 39 ) / 89 ) ) - - SUM ( ALL - 56 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - COALESCE ( COUNT( * ), + 73, - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - COALESCE ( COUNT ( * ), + 73, - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT ALL CAST( ( 96 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL CAST ( ( 96 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT + COALESCE ( - 68, - CAST( + 14 AS SIGNED ) + - 3 * + CASE - COUNT( DISTINCT 75 ) WHEN 30 THEN NULL WHEN + ( - COUNT( * ) ) * - 46 + + COUNT( * ) THEN NULL ELSE + 80 END, + 57 - - 38 * ( 52 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4625
SELECT + COALESCE ( - 68, - CAST ( + 14 AS INTEGER ) + - 3 * + CASE - COUNT ( DISTINCT 75 ) WHEN 30 THEN NULL WHEN + ( - COUNT ( * ) ) * - 46 + + COUNT ( * ) THEN NULL ELSE + 80 END, + 57 - - 38 * ( 52 ) ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT + - COUNT( ALL - ( - 99 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + - COUNT ( ALL - ( - 99 ) ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT + + CAST( + + 11 AS SIGNED ) + 1 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4627
SELECT + + CAST ( + + 11 AS INTEGER ) + 1 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 16 * + + COUNT( 52 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 16 * + + COUNT ( 52 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - COUNT( * ) * - 16 + - 35 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - COUNT ( * ) * - 16 + - 35 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - - 39 - - ( 7 ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4630
SELECT - - 39 - - ( 7 ) + - COUNT ( * ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + COALESCE ( 12, NULLIF ( + ( - 91 ), - COUNT( * ) - 80 ), - 84 + - COALESCE ( - ( + 54 ) + - 74 * 72, + 95 * + CASE 7 * CAST( + 66 AS SIGNED ) WHEN - COALESCE ( + 92, + MIN( DISTINCT 10 ) ) THEN + 41 WHEN + ( ( CASE - 81 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 46 - ( + 5 ) / ( + 68 ) END ) ) + - COUNT( * ) THEN NULL END ) )
----
12

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + COALESCE ( 12, NULLIF ( + ( - 91 ), - COUNT ( * ) - 80 ), - 84 + - COALESCE ( - ( + 54 ) + - 74 * 72, + 95 * + CASE 7 * CAST ( + 66 AS INTEGER ) WHEN - COALESCE ( + 92, + MIN ( DISTINCT 10 ) ) THEN + 41 WHEN + ( ( CASE - 81 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 46 - ( + 5 ) / ( + 68 ) END ) ) + - COUNT ( * ) THEN NULL END ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + - COUNT( - 7 ) * CASE 95 WHEN 80 - - 38 THEN 7 WHEN 78 * + 89 THEN NULL ELSE 30 END - - NULLIF ( + 31, ( 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4632
SELECT + - COUNT ( - 7 ) * CASE 95 WHEN 80 - - 38 THEN 7 WHEN 78 * + 89 THEN NULL ELSE 30 END - - NULLIF ( + 31, ( 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - - 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4633
SELECT - - 89 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL + + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + MAX( + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + MAX ( + - 89 ) AS col1
----
-89

query I rowsort
SELECT ( + + 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT CASE + MAX( ALL - 65 ) WHEN 28 * + 24 - MIN( ALL 61 ) * 61 THEN + 42 * - 68 WHEN 50 + - MIN( + 78 ) THEN CAST( CAST( - 50 AS DECIMAL ) AS SIGNED ) ELSE CAST( - ( + 23 ) AS SIGNED ) END AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4637
SELECT CASE + MAX ( ALL - 65 ) WHEN 28 * + 24 - MIN ( ALL 61 ) * 61 THEN + 42 * - 68 WHEN 50 + - MIN ( + 78 ) THEN CAST ( CAST ( - 50 AS REAL ) AS INTEGER ) ELSE CAST ( - ( + 23 ) AS INTEGER ) END AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT + ( MAX( ALL - 15 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + ( MAX ( ALL - 15 ) ) AS col2
----
-15

query I rowsort
SELECT ALL - 48 * + 22 + + 68 * - 8 col2
----
-1600

query I rowsort
SELECT + 32 - - - 44
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT + CASE + - 56 WHEN 8 THEN NULL WHEN 3 + - 82 THEN - 60 WHEN + 51 * + AVG ( DISTINCT 83 ) THEN CAST( NULL AS SIGNED ) * CAST( - 62 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT + CASE + - 56 WHEN 8 THEN NULL WHEN 3 + - 82 THEN - 60 WHEN + 51 * + AVG ( DISTINCT 83 ) THEN CAST ( NULL AS INTEGER ) * CAST ( - 62 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - 3 + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 3 + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + CASE + 90 WHEN - + 15 * 43 + 68 THEN NULL ELSE 29 END col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL - 31 * 64 + 96 + COUNT( * )
----
-1887

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - 31 * 64 + 96 + COUNT ( * )
----
-1887

query I rowsort
SELECT NULLIF ( - - 30, + + 97 ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT + 85 DIV + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 85 / + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT + 96 + - 3 + + - NULLIF ( - 5, + CASE - 38 WHEN NULLIF ( 49, 58 * 25 ) THEN 61 ELSE NULL END )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT CASE WHEN NULL IS NULL THEN COUNT( * ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-4648
SELECT CASE WHEN NULL IS NULL THEN COUNT ( * ) END col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 72 + + + NULLIF ( - - 92, + ( 7 ) - COUNT( * ) ) + - 98 * 80
----
-7676

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 72 + + + NULLIF ( - - 92, + ( 7 ) - COUNT ( * ) ) + - 98 * 80
----
-7676

query I rowsort
SELECT ALL 84 * + 5 AS col0
----
420

query I rowsort
SELECT 31 * + 91 + 52
----
2873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) ) * - 67 + + 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) ) * - 67 + + 54 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT + COALESCE ( - NULLIF ( + CAST( NULL AS SIGNED ), - 59 ), - ( 31 ), 80 ) + 17
----
-14

skipif mysql # not compatible
query I rowsort label-4654
SELECT + COALESCE ( - NULLIF ( + CAST ( NULL AS INTEGER ), - 59 ), - ( 31 ), 80 ) + 17
----
-14

query I rowsort
SELECT ALL 48 * 92
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + COUNT( * ) + - COALESCE ( + 33, 20 )
----
-32

skipif mysql # not compatible
query I rowsort label-4656
SELECT + COUNT ( * ) + - COALESCE ( + 33, 20 )
----
-32

query I rowsort
SELECT - NULLIF ( + 51, 99 )
----
-51

query I rowsort
SELECT ALL 1 - - + NULLIF ( 51, 20 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT + 6 * - - CAST( - 27 AS SIGNED ) * 60
----
-9720

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 6 * - - CAST ( - 27 AS INTEGER ) * 60
----
-9720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL 15 - + + CAST( + 14 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL 15 - + + CAST ( + 14 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT - + COUNT( * ) col2, + 13 AS col0
----
-1
13

skipif mysql # not compatible
query II rowsort label-4661
SELECT - + COUNT ( * ) col2, + 13 AS col0
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - CASE - 25 WHEN + 49 - 56 THEN 61 WHEN - 80 * - 31 THEN - COALESCE ( COUNT( * ), + 12, 73 * + 80 ) + AVG ( + 17 + - 98 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - CASE - 25 WHEN + 49 - 56 THEN 61 WHEN - 80 * - 31 THEN - COALESCE ( COUNT ( * ), + 12, 73 * + 80 ) + AVG ( + 17 + - 98 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( 57, 64 + + 64 ) * + 92 AS col0
----
-5244

query I rowsort
SELECT ALL - 0 * - 36 * - + 60 * - 28 + 51 * - 71 col0
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + COUNT( * ) - - 7 + 91 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + COUNT ( * ) - - 7 + 91 AS col0
----
99

query I rowsort
SELECT ALL - 51 - + + ( - + 18 ) - 62
----
-95

query I rowsort
SELECT - 34 * ( 32 )
----
-1088

query I rowsort
SELECT ALL 4 * + 15 AS col0
----
60

query I rowsort
SELECT DISTINCT - NULLIF ( - - 39, + + ( 5 ) + 28 )
----
-39

query I rowsort
SELECT - 57 + - - 86
----
29

query I rowsort
SELECT DISTINCT COALESCE ( - 27, - 19 * 51 + 55 * 47 ) AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT + COUNT( * ) DIV - NULLIF ( - 10, - COALESCE ( 37, + COUNT( * ) ) ) * ( 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( * ) / - NULLIF ( - 10, - COALESCE ( 37, + COUNT ( * ) ) ) * ( 67 ) AS col0
----
0

query I rowsort
SELECT - + ( - 58 ) * + - 36 + + 44 AS col1
----
-2044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - COUNT( 86 ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - COUNT ( 86 ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + CASE 12 WHEN 85 + 87 THEN - 21 END + + 2 AS col2
----
NULL

query I rowsort
SELECT - - 93 + 56
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT ALL + - 30 DIV - - COUNT( DISTINCT + 71 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + - 30 / - - COUNT ( DISTINCT + 71 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT - - 17 * - 20 + + 40 DIV 60
----
-340

skipif mysql # not compatible
query I rowsort label-4678
SELECT - - 17 * - 20 + + 40 / 60
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL 14 DIV + 23 + - COUNT( * ) + 52 * 47
----
2443

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 14 / + 23 + - COUNT ( * ) + 52 * 47
----
2443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT + 96 DIV + - COUNT( * ) + ( CASE 17 WHEN NULLIF ( - 81, - ( + 13 ) ) THEN NULL WHEN + 81 * 3 THEN 86 + CASE 47 WHEN - CAST( NULL AS SIGNED ) THEN 94 WHEN 34 + CAST( + NULLIF ( 78, 71 ) + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN NULL END ELSE 50 END ) - 67 * 76 AS col1
----
-5138

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 96 / + - COUNT ( * ) + ( CASE 17 WHEN NULLIF ( - 81, - ( + 13 ) ) THEN NULL WHEN + 81 * 3 THEN 86 + CASE 47 WHEN - CAST ( NULL AS INTEGER ) THEN 94 WHEN 34 + CAST ( + NULLIF ( 78, 71 ) + CAST ( NULL AS INTEGER ) AS REAL ) THEN NULL END ELSE 50 END ) - 67 * 76 AS col1
----
-5138

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ALL + - 84 DIV - 77 + - 44 + - 74 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - 84 / - 77 + - 44 + - 74 AS col2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4682
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, 95
----
NULL
95

query I rowsort
SELECT ALL + 98 + + 86
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT - COALESCE ( - 16, 75 ) + + MIN( 84 )
----
100

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - COALESCE ( - 16, 75 ) + + MIN ( 84 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 6 * COUNT( + 28 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4685
SELECT 6 * COUNT ( + 28 ) AS col0
----
6

query I rowsort
SELECT ALL - 26 + - - 67 + + ( - 40 ) * 67
----
-2639

query I rowsort
SELECT ALL - ( + 35 ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT - CAST( + - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - CAST ( + - 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 31 * + MIN( DISTINCT ( - 29 ) )
----
-899

skipif mysql # not compatible
query I rowsort label-4689
SELECT 31 * + MIN ( DISTINCT ( - 29 ) )
----
-899

query I rowsort
SELECT ALL - COALESCE ( 82, 69 ) + + + ( - 27 )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT DISTINCT - ( 27 ) col1, 60 + + 76 + 72 * 92 * + COUNT( * )
----
-27
6760

skipif mysql # not compatible
query II rowsort label-4691
SELECT DISTINCT - ( 27 ) col1, 60 + + 76 + 72 * 92 * + COUNT ( * )
----
-27
6760

query I rowsort
SELECT ALL 37 - - 78
----
115

query I rowsort
SELECT 56 * + 26 AS col2
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL - MIN( ALL - 82 ) AS col0, 35
----
82
35

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL - MIN ( ALL - 82 ) AS col0, 35
----
82
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL - CAST( + - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - CAST ( + - 87 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL 1 - + + COALESCE ( 49, 61 ) * + CASE 7 * 99 + CASE 93 - 89 / + COUNT( * ) WHEN - 78 THEN NULL ELSE MIN( 51 ) END WHEN MAX( ALL + 19 ) * 57 THEN NULLIF ( + 46, + 51 ) WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL 1 - + + COALESCE ( 49, 61 ) * + CASE 7 * 99 + CASE 93 - 89 / + COUNT ( * ) WHEN - 78 THEN NULL ELSE MIN ( 51 ) END WHEN MAX ( ALL + 19 ) * 57 THEN NULLIF ( + 46, + 51 ) WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT 46 * + COUNT( * ), + 69 AS col0
----
46
69

skipif mysql # not compatible
query II rowsort label-4697
SELECT 46 * + COUNT ( * ), + 69 AS col0
----
46
69

query I rowsort
SELECT ALL 53 * 19
----
1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT MIN( + 81 ) - CAST( - COUNT( * ) AS SIGNED ) * + 35
----
116

skipif mysql # not compatible
query I rowsort label-4699
SELECT MIN ( + 81 ) - CAST ( - COUNT ( * ) AS INTEGER ) * + 35
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL + + 66 * 17 - - 99 * + + CAST( 97 AS SIGNED )
----
10725

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + + 66 * 17 - - 99 * + + CAST ( 97 AS INTEGER )
----
10725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT DISTINCT + 2 * - CAST( + 16 AS SIGNED ) * + 97
----
-3104

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 2 * - CAST ( + 16 AS INTEGER ) * + 97
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL 75 * MAX( DISTINCT + 89 ) * - - 46 - 35 * - 34 col0
----
308240

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 75 * MAX ( DISTINCT + 89 ) * - - 46 - 35 * - 34 col0
----
308240

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT 45 + - + 13 + + CASE + - 48 WHEN - COUNT( DISTINCT 66 ) + 3 THEN NULL ELSE 46 * + COUNT( * ) + 19 END AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4703
SELECT 45 + - + 13 + + CASE + - 48 WHEN - COUNT ( DISTINCT 66 ) + 3 THEN NULL ELSE 46 * + COUNT ( * ) + 19 END AS col2
----
97

query I rowsort
SELECT 89 - + 10
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + NULLIF ( - COUNT( * ), + + SUM( ALL + COALESCE ( - 34, 2 + 38 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4705
SELECT + NULLIF ( - COUNT ( * ), + + SUM ( ALL + COALESCE ( - 34, 2 + 38 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT NULLIF ( - + COUNT( DISTINCT - 93 ), + + 20 * - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4706
SELECT NULLIF ( - + COUNT ( DISTINCT - 93 ), + + 20 * - 73 )
----
-1

query I rowsort
SELECT - - CASE + - ( 48 ) WHEN + - 48 / - NULLIF ( + 7, 5 * 25 ) + + 47 THEN 99 + - 36 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 28 + - 50 - 55 + - - 24 + + 85 * - 68 AS col2
----
-5833

query I rowsort
SELECT DISTINCT 77 + 45 AS col1
----
122

query I rowsort
SELECT DISTINCT + 95 + - 1 + + 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT - - 66 + + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - 66 + + COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + COALESCE ( MAX( - 43 ), + + 52 * - 84 + + 91 )
----
-43

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + COALESCE ( MAX ( - 43 ), + + 52 * - 84 + + 91 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT DISTINCT CAST( NULL AS SIGNED ) + + AVG ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + AVG ( - 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4714
SELECT DISTINCT + 76 + - + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT 41 DIV - ( ( - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT 41 / - ( ( - 67 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL COALESCE ( - 54, 43, + ( - - ( + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) ) + + 47
----
-7

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COALESCE ( - 54, 43, + ( - - ( + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) ) + + 47
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - MAX( ALL - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - MAX ( ALL - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT 22 - - 43 / + 11 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT 22 - - 43 / + 11 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT ( - CAST( NULL AS SIGNED ) ) * + 4 AS col1, - 1 col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4719
SELECT ( - CAST ( NULL AS INTEGER ) ) * + 4 AS col1, - 1 col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT ALL + ( - + 15 ) DIV - MIN( DISTINCT + - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + ( - + 15 ) / - MIN ( DISTINCT + - 37 )
----
0

query I rowsort
SELECT DISTINCT + 49 * - - 78
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL - 95 - 87 + + NULLIF ( + + 89, + + 62 * - ( + 34 ) + 93 * + 83 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - 95 - 87 + + NULLIF ( + + 89, + + 62 * - ( + 34 ) + 93 * + 83 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL + 40 * CAST( + COUNT( * ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + 40 * CAST ( + COUNT ( * ) AS INTEGER )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4724
SELECT ALL CAST( NULL AS SIGNED ) / - - ( 7 ) AS col0, - 94
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-4724
SELECT ALL CAST ( NULL AS INTEGER ) / - - ( 7 ) AS col0, - 94
----
NULL
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4725
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 70 * 91
----
NULL
-6370

skipif mysql # not compatible
query II rowsort label-4725
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 70 * 91
----
NULL
-6370

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT ALL - 1, - CASE + - 27 WHEN 66 - 10 + 55 * COUNT( * ) THEN + 36 + 68 * + COUNT( * ) WHEN 64 THEN - 51 WHEN COUNT( * ) THEN - 69 END + 61 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4726
SELECT ALL - 1, - CASE + - 27 WHEN 66 - 10 + 55 * COUNT ( * ) THEN + 36 + 68 * + COUNT ( * ) WHEN 64 THEN - 51 WHEN COUNT ( * ) THEN - 69 END + 61 AS col2
----
-1
NULL

query I rowsort
SELECT 40 + + + ( 87 )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + ( + COUNT( DISTINCT - - 73 ) ) * + 77 DIV + 79 - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-4728
SELECT + ( + COUNT ( DISTINCT - - 73 ) ) * + 77 / + 79 - + 96
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT - 77 * - 51 * 21, + MAX( + 74 ) AS col1
----
82467
74

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT - 77 * - 51 * 21, + MAX ( + 74 ) AS col1
----
82467
74

query I rowsort
SELECT 56 + 83 AS col0
----
139

query I rowsort
SELECT DISTINCT - COALESCE ( 49, - 41 * - 93 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT + 87 * - + NULLIF ( 71, + COUNT( * ) )
----
-6177

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + 87 * - + NULLIF ( 71, + COUNT ( * ) )
----
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT DISTINCT - NULLIF ( 22, COUNT( * ) ), + 57 AS col1
----
-22
57

skipif mysql # not compatible
query II rowsort label-4733
SELECT DISTINCT - NULLIF ( 22, COUNT ( * ) ), + 57 AS col1
----
-22
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT + 78 * - MIN( - 59 )
----
4602

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT + 78 * - MIN ( - 59 )
----
4602

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + 15 * - COUNT( * ) + + 8
----
-7

skipif mysql # not compatible
query I rowsort label-4735
SELECT + 15 * - COUNT ( * ) + + 8
----
-7

query I rowsort
SELECT + ( - CASE - ( + 27 ) WHEN + + 81 THEN + 83 + + 64 WHEN 93 THEN NULL WHEN - 77 THEN NULL END ) * - ( 8 - 35 )
----
NULL

query I rowsort
SELECT 81 + + 34 AS col1
----
115

query I rowsort
SELECT DISTINCT CASE - ( - 65 ) WHEN - 5 THEN - + 81 + + 93 ELSE - 96 * + 29 END
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + NULLIF ( + - COUNT( * ), + 51 / + + 98 * - + 66 ) + ( 24 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4739
SELECT + NULLIF ( + - COUNT ( * ), + 51 / + + 98 * - + 66 ) + ( 24 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT + 56 DIV + ( + - ( - 51 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 56 / + ( + - ( - 51 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT COUNT( * ) + - + 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4741
SELECT COUNT ( * ) + - + 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL + COALESCE ( 42, - 26 * + - COUNT( * ) + - - 66 + + 53 + - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + COALESCE ( 42, - 26 * + - COUNT ( * ) + - - 66 + + 53 + - COUNT ( * ) )
----
42

query II rowsort
SELECT DISTINCT + + 89 * ( 64 ), - 92 col2
----
5696
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL - + 26 + - 60 - + - 37 * - + MIN( ALL - ( - 94 ) ) * + 38 AS col2
----
-132250

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - + 26 + - 60 - + - 37 * - + MIN ( ALL - ( - 94 ) ) * + 38 AS col2
----
-132250

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT + 20, - 73 * 22 + COUNT( * ) AS col0
----
20
-1605

skipif mysql # not compatible
query II rowsort label-4745
SELECT + 20, - 73 * 22 + COUNT ( * ) AS col0
----
20
-1605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL 22 + + - 86 - - - 2 / - CAST( NULL AS SIGNED ) / 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL 22 + + - 86 - - - 2 / - CAST ( NULL AS INTEGER ) / 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT - MIN( + 77 ) + - 78 + - + NULLIF ( - 89, - 59 * - 74 ) - - 83 * CAST( + 97 AS SIGNED )
----
7985

skipif mysql # not compatible
query I rowsort label-4747
SELECT - MIN ( + 77 ) + - 78 + - + NULLIF ( - 89, - 59 * - 74 ) - - 83 * CAST ( + 97 AS INTEGER )
----
7985

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + - COUNT( * ) + 39 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + - COUNT ( * ) + 39 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT + 40 + + CAST( - 30 AS SIGNED ) + 30
----
40

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + 40 + + CAST ( - 30 AS INTEGER ) + 30
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT + - 97 * - 95 * - COUNT( * )
----
-9215

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + - 97 * - 95 * - COUNT ( * )
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT 29 * + 81 * + SUM( + 91 )
----
213759

skipif mysql # not compatible
query I rowsort label-4751
SELECT 29 * + 81 * + SUM ( + 91 )
----
213759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT DISTINCT - CAST( 9 AS SIGNED ) * - 75 AS col2
----
675

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - CAST ( 9 AS INTEGER ) * - 75 AS col2
----
675

query II rowsort
SELECT DISTINCT - 32 AS col0, ( 4 )
----
-32
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT DISTINCT + 78 AS col0, + COUNT( * ) - - - 30 + - + 57 col2
----
78
-86

skipif mysql # not compatible
query II rowsort label-4754
SELECT DISTINCT + 78 AS col0, + COUNT ( * ) - - - 30 + - + 57 col2
----
78
-86

query I rowsort
SELECT + - 10 + 48 + + 88 + 36 col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT COUNT( * ) + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT COUNT ( * ) + - 14
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT + CAST( 35 AS SIGNED ) + + + NULLIF ( + 55, - 63 * CASE 89 WHEN + 29 - - 86 THEN 58 ELSE - NULLIF ( - 80, + ( 35 ) * COUNT( * ) ) * 62 END + 31 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4757
SELECT + CAST ( 35 AS INTEGER ) + + + NULLIF ( + 55, - 63 * CASE 89 WHEN + 29 - - 86 THEN 58 ELSE - NULLIF ( - 80, + ( 35 ) * COUNT ( * ) ) * 62 END + 31 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + - ( 97 ) * + + 75 * CASE + COUNT( 32 ) WHEN 1 + + 55 THEN + 43 WHEN - 44 * 97 THEN NULL WHEN + 87 THEN SUM( - 8 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT + - ( 97 ) * + + 75 * CASE + COUNT ( 32 ) WHEN 1 + + 55 THEN + 43 WHEN - 44 * 97 THEN NULL WHEN + 87 THEN SUM ( - 8 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT DISTINCT 33 AS col0, COALESCE ( - - 23, 28 * 23, - 73 ) + MIN( 37 )
----
33
60

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT 33 AS col0, COALESCE ( - - 23, 28 * 23, - 73 ) + MIN ( 37 )
----
33
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL CASE - + 42 WHEN + + CAST( - 86 AS SIGNED ) * + 9 + - + 85 THEN + 52 WHEN + ( + 28 ) - COUNT( * ) * COALESCE ( ( 40 ) + 99, 59 / 36, - CAST( 26 AS SIGNED ) ) THEN - CAST( + COUNT( * ) AS SIGNED ) * - 63 END + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL CASE - + 42 WHEN + + CAST ( - 86 AS INTEGER ) * + 9 + - + 85 THEN + 52 WHEN + ( + 28 ) - COUNT ( * ) * COALESCE ( ( 40 ) + 99, 59 / 36, - CAST ( 26 AS INTEGER ) ) THEN - CAST ( + COUNT ( * ) AS INTEGER ) * - 63 END + 96 AS col1
----
NULL

query I rowsort
SELECT + 97 + - 25
----
72

query I rowsort
SELECT - COALESCE ( + CASE + - 4 WHEN 57 THEN + 87 ELSE NULL END, - - 12 - - 55, 68 + + 99 * + 14 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 73 + + COUNT( * ) + 63 * 34 AS col0
----
2216

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 73 + + COUNT ( * ) + 63 * 34 AS col0
----
2216

query I rowsort
SELECT ALL 79 - ( - 5 )
----
84

query II rowsort
SELECT DISTINCT + 2 AS col1, - 19 + 80
----
2
61

query I rowsort
SELECT DISTINCT + 39 * ( 52 ) - + 84 AS col0
----
1944

query I rowsort
SELECT + NULLIF ( 31, + 10 ) * 65 + - 23 AS col0
----
1992

query II rowsort
SELECT ALL + 5 AS col0, 62 * + - 61
----
5
-3782

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT + COUNT( * ), + 24 * - - 42 * - 41 col0
----
1
-41328

skipif mysql # not compatible
query II rowsort label-4769
SELECT + COUNT ( * ), + 24 * - - 42 * - 41 col0
----
1
-41328

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT - MAX( ALL - - 98 ) + - + 39 * - 17 AS col1, 22
----
565
22

skipif mysql # not compatible
query II rowsort label-4770
SELECT - MAX ( ALL - - 98 ) + - + 39 * - 17 AS col1, 22
----
565
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + CASE + COUNT( * ) WHEN 91 * - 60 THEN - 40 * + 27 DIV + 67 - 74 * + CASE + COUNT( * ) + MAX( - 18 + + 37 ) WHEN + 3 THEN NULL WHEN MAX( DISTINCT 34 ) * 85 THEN NULL WHEN - 16 * + 32 THEN - COUNT( * ) ELSE NULL END WHEN 23 - + 1 THEN - 80 DIV + 43 ELSE 77 END * 70 AS col2
----
5390

skipif mysql # not compatible
query I rowsort label-4771
SELECT + CASE + COUNT ( * ) WHEN 91 * - 60 THEN - 40 * + 27 / + 67 - 74 * + CASE + COUNT ( * ) + MAX ( - 18 + + 37 ) WHEN + 3 THEN NULL WHEN MAX ( DISTINCT 34 ) * 85 THEN NULL WHEN - 16 * + 32 THEN - COUNT ( * ) ELSE NULL END WHEN 23 - + 1 THEN - 80 / + 43 ELSE 77 END * 70 AS col2
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + COALESCE ( - - 85, - 42 * - 81, - 9 ) * SUM( + 77 ) + + 82 + - 90
----
6537

skipif mysql # not compatible
query I rowsort label-4772
SELECT + COALESCE ( - - 85, - 42 * - 81, - 9 ) * SUM ( + 77 ) + + 82 + - 90
----
6537

query II rowsort
SELECT + 48 AS col0, + 33
----
48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT CASE + COUNT( * ) WHEN - 62 THEN NULL WHEN + - 51 THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT CASE + COUNT ( * ) WHEN - 62 THEN NULL WHEN + - 51 THEN + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT ALL + COUNT( * ) AS col2, + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-4775
SELECT ALL + COUNT ( * ) AS col2, + 22
----
1
22

query I rowsort
SELECT ALL - 1 * - 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - 53 DIV + + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 53 / + + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT 77 DIV - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT 77 / - COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT + 21 * + + 58
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + - 63 - SUM( ALL 89 )
----
-152

skipif mysql # not compatible
query I rowsort label-4780
SELECT + - 63 - SUM ( ALL 89 )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + MAX( + - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4781
SELECT + MAX ( + - 21 ) AS col1
----
-21

query I rowsort
SELECT DISTINCT + + ( - 52 ) * 66
----
-3432

query I rowsort
SELECT + + 88 * 36
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT ( 54 ) AS col1, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-4784
SELECT ( 54 ) AS col1, COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4785
SELECT DISTINCT + + 88, - 9 + - - CAST( NULL AS SIGNED ) * - 64 + + 14 / + CASE - COALESCE ( 45, 2 + - 90, + CAST( NULL AS SIGNED ) * COUNT( * ) ) WHEN 98 THEN + 24 WHEN - ( 72 ) THEN - 48 END + COUNT( * ) AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT DISTINCT + + 88, - 9 + - - CAST ( NULL AS INTEGER ) * - 64 + + 14 / + CASE - COALESCE ( 45, 2 + - 90, + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) WHEN 98 THEN + 24 WHEN - ( 72 ) THEN - 48 END + COUNT ( * ) AS col1
----
88
NULL

query I rowsort
SELECT ALL + - 16 * + - NULLIF ( + 6, - - 73 * - 49 ) + 84 AS col1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT - ( - 59 ) * - 18 * + + 34 * + 81 + CAST( NULL AS SIGNED ) - 27 / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT - ( - 59 ) * - 18 * + + 34 * + 81 + CAST ( NULL AS INTEGER ) - 27 / - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + NULLIF ( COALESCE ( - 40, + 83 * - 18, 11 - + 0 * - 90, - COUNT( * ) ), - COALESCE ( ( + COALESCE ( 86, 54 * 92 ) ), 48 - 32 ) ) * - 47 AS col2
----
1880

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + NULLIF ( COALESCE ( - 40, + 83 * - 18, 11 - + 0 * - 90, - COUNT ( * ) ), - COALESCE ( ( + COALESCE ( 86, 54 * 92 ) ), 48 - 32 ) ) * - 47 AS col2
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - SUM( - 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4789
SELECT - SUM ( - 5 ) AS col2
----
5

query I rowsort
SELECT - - 81 - - - 22 + + 15 * + + 91
----
1424

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT - 17 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - 17 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + + COUNT( * ) - - 48
----
49

skipif mysql # not compatible
query I rowsort label-4792
SELECT + + COUNT ( * ) - - 48
----
49

query I rowsort
SELECT ALL + 26 - 19 * - + 93 * - ( 7 )
----
-12343

query II rowsort
SELECT - + 0 AS col0, 79 col1
----
0
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT - MAX( DISTINCT - 27 ) AS col1, - NULLIF ( ( - 73 ), - 22 * - 17 + - 42 ) * 30
----
27
2190

skipif mysql # not compatible
query II rowsort label-4795
SELECT - MAX ( DISTINCT - 27 ) AS col1, - NULLIF ( ( - 73 ), - 22 * - 17 + - 42 ) * 30
----
27
2190

query I rowsort
SELECT - 32 + - + 36 AS col0
----
-68

query I rowsort
SELECT ALL - 76 * - 93
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + 4 * + - MIN( - 69 ) col0
----
276

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + 4 * + - MIN ( - 69 ) col0
----
276

query I rowsort
SELECT + 84 - 22 * 37
----
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL MAX( ALL + 77 ) * CAST( NULL AS SIGNED ) / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL MAX ( ALL + 77 ) * CAST ( NULL AS INTEGER ) / + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT 41 DIV + 71 * + 47 * - ( + + 65 ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-4801
SELECT 41 / + 71 * + 47 * - ( + + 65 ) + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4802
SELECT ALL 7 * CAST( - - 8 AS SIGNED ) DIV + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL 7 * CAST ( - - 8 AS INTEGER ) / + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4803
SELECT ALL - 47 / - COUNT( * ) * - COUNT( * ) + - COUNT( * ) - - 66 * - CASE + CAST( 11 AS DECIMAL ) WHEN 97 * 97 THEN - CASE - ( 31 ) WHEN + 34 + + 97 THEN NULL WHEN + 81 * 44 + 49 * - 68 THEN NULL ELSE - CAST( - 2 AS SIGNED ) * + 40 - 25 END * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 47 / - COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) - - 66 * - CASE + CAST ( 11 AS REAL ) WHEN 97 * 97 THEN - CASE - ( 31 ) WHEN + 34 + + 97 THEN NULL WHEN + 81 * 44 + 49 * - 68 THEN NULL ELSE - CAST ( - 2 AS INTEGER ) * + 40 - 25 END * + 62 END
----
NULL

query II rowsort
SELECT + 30 - - - 20 + - 84, - 15 col1
----
-74
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL 36 * - 6 * + ( - NULLIF ( - CASE - SUM( DISTINCT - - 13 ) WHEN - 94 THEN NULL WHEN + 37 THEN NULL WHEN + 89 THEN CAST( + 35 AS SIGNED ) / 93 ELSE NULL END, 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL 36 * - 6 * + ( - NULLIF ( - CASE - SUM ( DISTINCT - - 13 ) WHEN - 94 THEN NULL WHEN + 37 THEN NULL WHEN + 89 THEN CAST ( + 35 AS INTEGER ) / 93 ELSE NULL END, 16 ) )
----
NULL

query I rowsort
SELECT + 7 * + 4 * + - 50 * - 19 + - 81
----
26519

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT + 6 - + 28 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 6 - + 28 - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 59 * 39
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT + NULLIF ( 35, 61 * + COUNT( * ) ) + - ( - - CASE + 71 WHEN 46 THEN 18 ELSE - COUNT( * ) + + 99 END ) - 60 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4809
SELECT + NULLIF ( 35, 61 * + COUNT ( * ) ) + - ( - - CASE + 71 WHEN 46 THEN 18 ELSE - COUNT ( * ) + + 99 END ) - 60 AS col1
----
-123

query I rowsort
SELECT - 80 * + CASE WHEN 38 <= NULL THEN 97 ELSE - - 79 END + 76 * ( + 76 * 74 - 19 ) AS col1
----
419660

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + MAX( NULLIF ( + - 28, + 19 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4811
SELECT + MAX ( NULLIF ( + - 28, + 19 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - + COUNT( * ) * + 20 + 0 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - + COUNT ( * ) * + 20 + 0 AS col0
----
-20

query I rowsort
SELECT ALL 25 * - 54 + 14 * + 80
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL - 40 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 40 / + - 94
----
0

query I rowsort
SELECT DISTINCT - 44 * + - 51 * 31 + 87 AS col0
----
69651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL - 71 + CAST( - 96 AS SIGNED )
----
-167

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - 71 + CAST ( - 96 AS INTEGER )
----
-167

query I rowsort
SELECT DISTINCT - + 21 * 16
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT 43 * COUNT( * ) - + - CASE 49 WHEN 44 * + 86 THEN - 53 WHEN + COUNT( * ) + 8 THEN COALESCE ( 34, 10, 72 ) - + COALESCE ( + CASE + 67 WHEN CASE 16 WHEN 17 THEN NULL WHEN MAX( 82 ) + 41 THEN 78 END + - COALESCE ( CASE 81 WHEN MAX( 32 ) * 2 + COUNT( * ) THEN + 30 END, COUNT( * ) * + MAX( + ( 88 ) / - 19 ) ) THEN - 40 ELSE + 79 / - 91 END + 43 * 80, - 75 - 34 * + 6 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT 43 * COUNT ( * ) - + - CASE 49 WHEN 44 * + 86 THEN - 53 WHEN + COUNT ( * ) + 8 THEN COALESCE ( 34, 10, 72 ) - + COALESCE ( + CASE + 67 WHEN CASE 16 WHEN 17 THEN NULL WHEN MAX ( 82 ) + 41 THEN 78 END + - COALESCE ( CASE 81 WHEN MAX ( 32 ) * 2 + COUNT ( * ) THEN + 30 END, COUNT ( * ) * + MAX ( + ( 88 ) / - 19 ) ) THEN - 40 ELSE + 79 / - 91 END + 43 * 80, - 75 - 34 * + 6 ) END AS col0
----
NULL

query I rowsort
SELECT - 45 * ( - 36 ) AS col2
----
1620

query I rowsort
SELECT 90 + 27 - + 18 * 17
----
-189

query I rowsort
SELECT DISTINCT + ( + - ( + 87 ) ) * 17 * + 52 AS col1
----
-76908

query I rowsort
SELECT ALL - NULLIF ( 83, - - 79 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT ALL - - 17 - - 34 + + + 47 DIV + 10
----
55

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - - 17 - - 34 + + + 47 / + 10
----
55

query I rowsort
SELECT 13 * - + 9 AS col1
----
-117

query I rowsort
SELECT - NULLIF ( + 40, 82 ) AS col1
----
-40

query II rowsort
SELECT ALL 61 AS col0, - 46
----
61
-46

query I rowsort
SELECT 50 * 64
----
3200

query I rowsort
SELECT 66 + + 4
----
70

query II rowsort
SELECT 37, 77 AS col2
----
37
77

query II rowsort
SELECT ALL 25, - 94 AS col2
----
25
-94

query I rowsort
SELECT 40 * - 59 * - 35
----
82600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT 76 + CAST( + - 71 AS SIGNED ) DIV COUNT( * ) * - 70
----
5046

skipif mysql # not compatible
query I rowsort label-4832
SELECT 76 + CAST ( + - 71 AS INTEGER ) / COUNT ( * ) * - 70
----
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT ALL - 36 DIV + 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - 36 / + 19 AS col1
----
-1

query I rowsort
SELECT 56 + - + 49 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT DISTINCT 85, MIN( + 17 ) col0
----
85
17

skipif mysql # not compatible
query II rowsort label-4835
SELECT DISTINCT 85, MIN ( + 17 ) col0
----
85
17

query I rowsort
SELECT DISTINCT + 91 + + 30 AS col2
----
121

query I rowsort
SELECT DISTINCT - 19 * + 30
----
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT 85 DIV 29 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT 85 / 29 / - 60 AS col2
----
0

query I rowsort
SELECT 65 * - 81 AS col0
----
-5265

query I rowsort
SELECT ALL - COALESCE ( + 80, - - 59 - + 3 + - + 24 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT - 28 + + 7 + - - 55 DIV 16
----
-18

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - 28 + + 7 + - - 55 / 16
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 88 + - - 35 * - + COUNT( 69 ) * + - COALESCE ( + 29, NULLIF ( + COUNT( * ), - 2 ), 39 ) AS col1
----
1103

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 88 + - - 35 * - + COUNT ( 69 ) * + - COALESCE ( + 29, NULLIF ( + COUNT ( * ), - 2 ), 39 ) AS col1
----
1103

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT + 60 AS col2, + 94 * COUNT( ALL - - 33 )
----
60
94

skipif mysql # not compatible
query II rowsort label-4843
SELECT + 60 AS col2, + 94 * COUNT ( ALL - - 33 )
----
60
94

query II rowsort
SELECT + + 12, 92 * - 87 AS col0
----
12
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( DISTINCT 5 ) * ( - ( - + 9 ) ) - 41 + - + COUNT( * ) * - 13 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( DISTINCT 5 ) * ( - ( - + 9 ) ) - 41 + - + COUNT ( * ) * - 13 AS col2
----
-19

query I rowsort
SELECT ALL + ( + + 18 ) + 70 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) / - 27 * + 48 * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / - 27 * + 48 * - - 80
----
NULL

query I rowsort
SELECT DISTINCT - 33 + - 42 col1
----
-75

query I rowsort
SELECT DISTINCT + 53 + - 5
----
48

query II rowsort
SELECT 33, 97 * - + ( - 8 ) AS col2
----
33
776

query II rowsort
SELECT + + 81 AS col0, 1
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - CASE + 50 WHEN - COUNT( * ) THEN COUNT( - 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - CASE + 50 WHEN - COUNT ( * ) THEN COUNT ( - 74 ) END
----
NULL

query I rowsort
SELECT 15 + + - 77 AS col2
----
-62

query I rowsort
SELECT 58 * - 67
----
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT COUNT( * ) * ( + COUNT( * ) ), 30 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-4855
SELECT COUNT ( * ) * ( + COUNT ( * ) ), 30 AS col1
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT SUM( - - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4856
SELECT SUM ( - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + SUM( ALL + 55 ) - - 80 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + SUM ( ALL + 55 ) - - 80 AS col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT + COALESCE ( + 63, + - 33 + - COUNT( * ) + + SUM( DISTINCT - 55 ) ) AS col0, 93 - + 70
----
63
23

skipif mysql # not compatible
query II rowsort label-4858
SELECT + COALESCE ( + 63, + - 33 + - COUNT ( * ) + + SUM ( DISTINCT - 55 ) ) AS col0, 93 - + 70
----
63
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT ALL - 25, + CASE ( 82 ) WHEN + SUM( ALL + 37 ) * - COUNT( * ) * - 80 THEN - 54 + 43 END AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL - 25, + CASE ( 82 ) WHEN + SUM ( ALL + 37 ) * - COUNT ( * ) * - 80 THEN - 54 + 43 END AS col2
----
-25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT CAST( 44 AS SIGNED ) - + 73 + - 63 - - - 91 * - 22 * MAX( + + 99 )
----
198106

skipif mysql # not compatible
query I rowsort label-4860
SELECT CAST ( 44 AS INTEGER ) - + 73 + - 63 - - - 91 * - 22 * MAX ( + + 99 )
----
198106

query II rowsort
SELECT ALL 18 AS col1, + 15 + - 82 AS col2
----
18
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + 2 * + - COUNT( * ) * 5 + - 40 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + 2 * + - COUNT ( * ) * 5 + - 40 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-4863
SELECT DISTINCT ( + ( 73 ) ) DIV 85 * - + 35 col0, 99
----
0
99

skipif mysql # not compatible
query II rowsort label-4863
SELECT DISTINCT ( + ( 73 ) ) / 85 * - + 35 col0, 99
----
0
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4864
SELECT 69 - - + 32 + + - 28 * 50 DIV + - 45 + - CAST( 98 AS SIGNED ) + - 32 * + - 95 AS col1
----
3074

skipif mysql # not compatible
query I rowsort label-4864
SELECT 69 - - + 32 + + - 28 * 50 / + - 45 + - CAST ( 98 AS INTEGER ) + - 32 * + - 95 AS col1
----
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT 79 - - + 9 * - - SUM( DISTINCT + - 60 )
----
-461

skipif mysql # not compatible
query I rowsort label-4865
SELECT 79 - - + 9 * - - SUM ( DISTINCT + - 60 )
----
-461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT 50 * - + SUM( ALL + - ( + 5 ) ) DIV - COUNT( * ) AS col1
----
-250

skipif mysql # not compatible
query I rowsort label-4866
SELECT 50 * - + SUM ( ALL + - ( + 5 ) ) / - COUNT ( * ) AS col1
----
-250

query II rowsort
SELECT 85 * + + 62 AS col2, 92 * + 53
----
5270
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - MIN( 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4868
SELECT - MIN ( 17 )
----
-17

query II rowsort
SELECT ALL + 77 + 4 AS col0, 10
----
81
10

query I rowsort
SELECT ALL 66 + 40
----
106

query I rowsort
SELECT 75 * 87
----
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT ALL - 5 + + COUNT( * ) col0, + 30 * - - COALESCE ( - - 34, + 55 )
----
-4
1020

skipif mysql # not compatible
query II rowsort label-4872
SELECT ALL - 5 + + COUNT ( * ) col0, + 30 * - - COALESCE ( - - 34, + 55 )
----
-4
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT CASE + - 91 WHEN 11 + - 79 THEN - + 95 + - 86 WHEN + ( + + 26 ) THEN - 51 + + 13 DIV 45 ELSE CASE ( + 71 ) WHEN 32 DIV - ( - COUNT( * ) ) THEN NULL WHEN - 3 * + COUNT( * ) THEN + 96 ELSE + 60 * COUNT( 23 ) END * 70 END + - 79 AS col1
----
4121

skipif mysql # not compatible
query I rowsort label-4873
SELECT CASE + - 91 WHEN 11 + - 79 THEN - + 95 + - 86 WHEN + ( + + 26 ) THEN - 51 + + 13 / 45 ELSE CASE ( + 71 ) WHEN 32 / - ( - COUNT ( * ) ) THEN NULL WHEN - 3 * + COUNT ( * ) THEN + 96 ELSE + 60 * COUNT ( 23 ) END * 70 END + - 79 AS col1
----
4121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT 1 * - 92, + CAST( NULL AS SIGNED ) + - + 77 AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4874
SELECT 1 * - 92, + CAST ( NULL AS INTEGER ) + - + 77 AS col0
----
-92
NULL

query I rowsort
SELECT NULLIF ( 16, - - 5 )
----
16

query I rowsort
SELECT COALESCE ( - 79, - 87 ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT + + ( - + 25 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + + ( - + 25 ) / + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL 0 * ( + + 21 ) + - + CAST( - COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 0 * ( + + 21 ) + - + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
1

query I rowsort
SELECT ALL + NULLIF ( - 59, - + 88 ) * - 51
----
3009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT - 47 + + COALESCE ( - 7, + 52, + + ( 29 ) DIV 91 DIV 2 ) + SUM( DISTINCT 3 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 47 + + COALESCE ( - 7, + 52, + + ( 29 ) / 91 / 2 ) + SUM ( DISTINCT 3 ) AS col0
----
-51

query I rowsort
SELECT - + 18 * + - 42 * 87 AS col0
----
65772

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT + + 88 * 89 * - COUNT( 19 )
----
-7832

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + + 88 * 89 * - COUNT ( 19 )
----
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL - 35 * - + 20 - - + 32 + + COUNT( DISTINCT 11 ) AS col1
----
733

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL - 35 * - + 20 - - + 32 + + COUNT ( DISTINCT 11 ) AS col1
----
733

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT - - NULLIF ( 23, + ( - 87 ) DIV + ( 90 ) ) - 0 + - COALESCE ( - 67, + 58 DIV + 96 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-4884
SELECT - - NULLIF ( 23, + ( - 87 ) / + ( 90 ) ) - 0 + - COALESCE ( - 67, + 58 / + 96 ) col1
----
90

query I rowsort
SELECT ALL - 38 * ( + 14 ) AS col1
----
-532

query I rowsort
SELECT - - 28 * - 85 - + + 10 * - 15 + 5 + 30
----
-2195

query I rowsort
SELECT - - 58 * - ( + 58 )
----
-3364

query II rowsort
SELECT ( + 40 ) * 34 + - 54 AS col2, + 70
----
1306
70

query I rowsort
SELECT ALL + + 35 * - 11 - + 96
----
-481

query I rowsort
SELECT + + 19 + + COALESCE ( 4, 9 * - 79 * - ( + + 34 ) * + + 11 ) - - - 3
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT - 49 + + 32 AS col0, 7 / + COUNT( * ) + + 60 + - 39 + - + ( CASE - + 14 WHEN + 87 + 51 THEN - 33 * 97 ELSE NULL END ) * 17 AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4891
SELECT - 49 + + 32 AS col0, 7 / + COUNT ( * ) + + 60 + - 39 + - + ( CASE - + 14 WHEN + 87 + 51 THEN - 33 * 97 ELSE NULL END ) * 17 AS col1
----
-17
NULL

query I rowsort
SELECT + 41 * 94 + + + 99
----
3953

query I rowsort
SELECT + 76 + 75 col0
----
151

query I rowsort
SELECT ALL + 73 * 50 * 98 col2
----
357700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + 46 WHEN NOT CAST( - 92 AS SIGNED ) + + COALESCE ( - 43, + ( 67 ) ) > ( 26 / 8 ) THEN NULL ELSE - 4 END AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4895
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + 46 WHEN NOT CAST ( - 92 AS INTEGER ) + + COALESCE ( - 43, + ( 67 ) ) > ( 26 / 8 ) THEN NULL ELSE - 4 END AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL + 62 * + 19 - COUNT( + - 1 )
----
1177

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + 62 * + 19 - COUNT ( + - 1 )
----
1177

query I rowsort
SELECT - - 56 + + - 8
----
48

query I rowsort
SELECT DISTINCT 26 * 15 * + 75 col0
----
29250

query I rowsort
SELECT DISTINCT 3 + + 4 + + - ( - 60 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT + ( MIN( DISTINCT + 4 ) ) DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT + ( MIN ( DISTINCT + 4 ) ) / + - 47
----
0

query I rowsort
SELECT ALL 55 + + - 27
----
28

query I rowsort
SELECT + 61 + - 7 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + ( + COUNT( * ) ) + + 7 + - 86
----
-78

skipif mysql # not compatible
query I rowsort label-4903
SELECT + ( + COUNT ( * ) ) + + 7 + - 86
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT COUNT( * ) + 84 * - 2 + - + ( + 32 ) * - COUNT( * ) + - 55 AS col1
----
-190

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT COUNT ( * ) + 84 * - 2 + - + ( + 32 ) * - COUNT ( * ) + - 55 AS col1
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT - ( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT - ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL 19 + - 93 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 19 + - 93 + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + CASE + 71 WHEN - NULLIF ( - 76, - + 84 ) THEN NULL ELSE 80 + + 75 + - 54 + + COUNT( * ) END - + 23
----
79

skipif mysql # not compatible
query I rowsort label-4907
SELECT + CASE + 71 WHEN - NULLIF ( - 76, - + 84 ) THEN NULL ELSE 80 + + 75 + - 54 + + COUNT ( * ) END - + 23
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - COALESCE ( - 37, - - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4908
SELECT - COALESCE ( - 37, - - COUNT ( * ) )
----
37

query I rowsort
SELECT - 83 + 32
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL MIN( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL MIN ( + 24 ) AS col1
----
24

query I rowsort
SELECT DISTINCT 6 * - 66 AS col1
----
-396

query I rowsort
SELECT ALL + 83 * + 32
----
2656

query I rowsort
SELECT + 47 + - - 40
----
87

query I rowsort
SELECT ALL 53 - + - 1 col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT + COALESCE ( - 43, - 10 * - SUM( DISTINCT 5 ), - 33, - 82 DIV + COUNT( * ) + COUNT( * ) * - - 74 )
----
-43

skipif mysql # not compatible
query I rowsort label-4915
SELECT + COALESCE ( - 43, - 10 * - SUM ( DISTINCT 5 ), - 33, - 82 / + COUNT ( * ) + COUNT ( * ) * - - 74 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL - + ( + 43 ) DIV 30 + - + 81 - + 61 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - + ( + 43 ) / 30 + - + 81 - + 61 AS col1
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT CAST( + + 22 AS SIGNED ) col0
----
22

skipif mysql # not compatible
query I rowsort label-4917
SELECT CAST ( + + 22 AS INTEGER ) col0
----
22

query I rowsort
SELECT + + 28 * 30 + - - 29 AS col2
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - MAX( ALL 12 ) + + + 47 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4919
SELECT - MAX ( ALL 12 ) + + + 47 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT - 20 DIV 25 - + 38 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 20 / 25 - + 38 / 81 AS col0
----
0

query I rowsort
SELECT - 90 * - 19 AS col1
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT ALL + 57 DIV - - 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 57 / - - 35 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT - - COUNT( * ) DIV - + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT - - COUNT ( * ) / - + 5 AS col2
----
0

query I rowsort
SELECT - + ( + 27 ) * + + 99
----
-2673

query I rowsort
SELECT ALL + 7 * 49 AS col0
----
343

query I rowsort
SELECT + NULLIF ( - ( + + 96 ), - ( 18 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT - 22 DIV + - COUNT( * ) - + 21 + + 80 + + - CAST( + - 75 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-4927
SELECT - 22 / + - COUNT ( * ) - + 21 + + 80 + + - CAST ( + - 75 AS INTEGER )
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT + CAST( + 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4928
SELECT + CAST ( + 2 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT + 89 * - 8 + 8
----
-704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4930
SELECT ALL COALESCE ( 21, COALESCE ( - 22, 98 ), + 17 * - COUNT( ALL - CAST( NULL AS DECIMAL ) ) + + 97 ) * - + 11 + - 66 col1
----
-297

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL COALESCE ( 21, COALESCE ( - 22, 98 ), + 17 * - COUNT ( ALL - CAST ( NULL AS REAL ) ) + + 97 ) * - + 11 + - 66 col1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + NULLIF ( + 96, ( - 71 ) * CASE - 88 WHEN + ( - MIN( + 13 ) ) + + 5 THEN NULL ELSE + - COUNT( + 24 ) END ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + NULLIF ( + 96, ( - 71 ) * CASE - 88 WHEN + ( - MIN ( + 13 ) ) + + 5 THEN NULL ELSE + - COUNT ( + 24 ) END ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CASE WHEN ( NOT - - 32 NOT BETWEEN NULL AND - 52 * 35 + + - CAST( NULL AS SIGNED ) - - 24 + - 79 * 70 + COUNT( * ) * 82 ) THEN NULL WHEN NULLIF ( + 70, 48 * 49 ) * + 97 IN ( + 5 ) THEN + COUNT( * ) ELSE NULL END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CASE WHEN ( NOT - - 32 NOT BETWEEN NULL AND - 52 * 35 + + - CAST ( NULL AS INTEGER ) - - 24 + - 79 * 70 + COUNT ( * ) * 82 ) THEN NULL WHEN NULLIF ( + 70, 48 * 49 ) * + 97 IN ( + 5 ) THEN + COUNT ( * ) ELSE NULL END * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - ( - - 34 ) + - 17 + - - 86 * + - 26 + + 60 + + CASE + 42 WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( - COUNT( * ), 55 * - 61 ) * - 63 END AS col0
----
-2164

skipif mysql # not compatible
query I rowsort label-4933
SELECT - ( - - 34 ) + - 17 + - - 86 * + - 26 + + 60 + + CASE + 42 WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( - COUNT ( * ), 55 * - 61 ) * - 63 END AS col0
----
-2164

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL CO