sqllogictest
Artifact Content
Not logged in

Artifact 9392187cb4e62a3eb978988f1771a05309ecef98:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( NULLIF ( - + 42, + 19 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL - 40 * - + 80 + + 32 + - + 20 + 47 * - + COUNT( * ) + ( 2 ) AS col0
----
3167

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - 40 * - + 80 + + 32 + - + 20 + 47 * - + COUNT ( * ) + ( 2 ) AS col0
----
3167

onlyif mysql # aggregate syntax: 
query II rowsort label-2
SELECT COUNT( * ) AS col2, + 39 * - + 79 * - - MIN( - 5 ) * + 3 + + ( 45 ) + + - SUM( ALL 32 ) AS col0
----
1
46228

skipif mysql # not compatible
query II rowsort label-2
SELECT COUNT ( * ) AS col2, + 39 * - + 79 * - - MIN ( - 5 ) * + 3 + + ( 45 ) + + - SUM ( ALL 32 ) AS col0
----
1
46228

query I rowsort
SELECT DISTINCT 25 * - 66
----
-1650

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT - 83 + - COUNT( * ) + + 19 AS col2, 11 + - 59 * + 49 * - 8 + - 49 AS col1
----
-65
23090

skipif mysql # not compatible
query II rowsort label-4
SELECT - 83 + - COUNT ( * ) + + 19 AS col2, 11 + - 59 * + 49 * - 8 + - 49 AS col1
----
-65
23090

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5
SELECT - CASE + - 1 WHEN CAST( NULL AS SIGNED ) THEN - 64 ELSE - + 18 + + ( 90 ) DIV - 14 + - 60 END AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5
SELECT - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN - 64 ELSE - + 18 + + ( 90 ) / - 14 + - 60 END AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL + + 59 + CAST( NULL AS SIGNED ) - + 73 / + + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL + + 59 + CAST ( NULL AS INTEGER ) - + 73 / + + 14 col2
----
NULL

query II rowsort
SELECT - 75, ( 44 ) AS col0
----
-75
44

query II rowsort
SELECT + 3 col2, - 83
----
3
-83

query I rowsort
SELECT - 92 * + 61
----
-5612

query I rowsort
SELECT DISTINCT 32 * - 98 col2
----
-3136

query II rowsort
SELECT - 6 - 63 + - 20 AS col0, + 84 - 15 AS col2
----
-89
69

query I rowsort
SELECT + 20 + 69 + + + 6 * 50 * + 83 AS col1
----
24989

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-13
SELECT ALL + CAST( NULL AS DECIMAL ) - 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + CAST ( NULL AS REAL ) - 61 col0
----
NULL

query II rowsort
SELECT DISTINCT - 9 AS col1, + 7
----
-9
7

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT DISTINCT 77 DIV - 55 + + 8 + + 56
----
63

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT 77 / - 55 + + 8 + + 56
----
63

query I rowsort
SELECT - 65 * + 76 * + + 25 + + - 33 AS col1
----
-123533

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT 34 DIV 64 * + 85 * 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT 34 / 64 * + 85 * 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT ALL - + 39 col0, + ( 51 ) * COUNT( + 11 )
----
-39
51

skipif mysql # not compatible
query II rowsort label-18
SELECT ALL - + 39 col0, + ( 51 ) * COUNT ( + 11 )
----
-39
51

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT CASE - - 67 WHEN + COUNT( * ) THEN + 73 WHEN + 15 THEN NULL ELSE - + COUNT( * ) * + 16 END - 58 - + + 47
----
-121

skipif mysql # not compatible
query I rowsort label-19
SELECT CASE - - 67 WHEN + COUNT ( * ) THEN + 73 WHEN + 15 THEN NULL ELSE - + COUNT ( * ) * + 16 END - 58 - + + 47
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT ALL 61 * + + NULLIF ( + + 60, + + 93 + + CAST( NULL AS SIGNED ) ) AS col1
----
3660

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL 61 * + + NULLIF ( + + 60, + + 93 + + CAST ( NULL AS INTEGER ) ) AS col1
----
3660

query I rowsort
SELECT + 31 * + - 54 AS col2
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT COUNT( * ) * 30 + - ( + 32 )
----
-2

skipif mysql # not compatible
query I rowsort label-22
SELECT COUNT ( * ) * 30 + - ( + 32 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - 5 * + MIN( + - 77 ) + COUNT( * ) col2
----
386

skipif mysql # not compatible
query I rowsort label-23
SELECT - 5 * + MIN ( + - 77 ) + COUNT ( * ) col2
----
386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-24
SELECT + COUNT( * ) / 28 + + + 44 + + - SUM( ALL + 52 ) / 67 * + 13 + + COUNT( * ) - ( + + CASE + ( + 77 ) WHEN + - CAST( NULL AS SIGNED ) * + + COUNT( * ) THEN + 89 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT + COUNT ( * ) / 28 + + + 44 + + - SUM ( ALL + 52 ) / 67 * + 13 + + COUNT ( * ) - ( + + CASE + ( + 77 ) WHEN + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) THEN + 89 END )
----
NULL

query I rowsort
SELECT DISTINCT 23 * - 58 AS col2
----
-1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT ALL 39 + + 44 + - COUNT( * ) DIV 20 * - 66 * - + 43
----
83

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL 39 + + 44 + - COUNT ( * ) / 20 * - 66 * - + 43
----
83

query I rowsort
SELECT ALL 15 + + - 26 AS col0
----
-11

query I rowsort
SELECT DISTINCT 74 + 17 * + 19 * - 54 AS col1
----
-17368

query I rowsort
SELECT DISTINCT 33 * - 15 * + 46
----
-22770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT CAST( NULL AS SIGNED ) * - + SUM( + + 41 ) + - 38 - + 33 * + 25 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT CAST ( NULL AS INTEGER ) * - + SUM ( + + 41 ) + - 38 - + 33 * + 25 / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 9 + - NULLIF ( - 19, 2 + - 26 + - 62 ) + - 31 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + NULLIF ( 24, + COUNT( * ) * 54 ) * 90 * 16 * COUNT( * ) + + + 21 AS col1
----
34581

skipif mysql # not compatible
query I rowsort label-32
SELECT + NULLIF ( 24, + COUNT ( * ) * 54 ) * 90 * 16 * COUNT ( * ) + + + 21 AS col1
----
34581

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL + 63 * + MIN( 81 ) * 43 col1
----
219429

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL + 63 * + MIN ( 81 ) * 43 col1
----
219429

query II rowsort
SELECT 48 + 13 col2, 89
----
61
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-37
SELECT ALL - CAST( - 21 AS SIGNED ) - + COALESCE ( 10, + 17 * + COUNT( * ) * + - 79 + MIN( ALL 99 ) ) AS col0, - 65 * + + 33 * + 5 + + COUNT( - 74 ) + + 71 * + 74
----
11
-5470

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL - CAST ( - 21 AS INTEGER ) - + COALESCE ( 10, + 17 * + COUNT ( * ) * + - 79 + MIN ( ALL 99 ) ) AS col0, - 65 * + + 33 * + 5 + + COUNT ( - 74 ) + + 71 * + 74
----
11
-5470

onlyif mysql # aggregate syntax: 
query II rowsort label-38
SELECT SUM( ALL 72 ) + + 69 * + + 0 AS col0, ( 3 )
----
72
3

skipif mysql # not compatible
query II rowsort label-38
SELECT SUM ( ALL 72 ) + + 69 * + + 0 AS col0, ( 3 )
----
72
3

query I rowsort
SELECT 28 + ( - COALESCE ( - 49, + 77 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + ( 47 ) * COUNT( * ) * - NULLIF ( + 45, ( 96 ) - - 99 ) + - 80
----
-2195

skipif mysql # not compatible
query I rowsort label-40
SELECT + ( 47 ) * COUNT ( * ) * - NULLIF ( + 45, ( 96 ) - - 99 ) + - 80
----
-2195

query I rowsort
SELECT 16 * - 75 AS col1
----
-1200

query I rowsort
SELECT + 4 + + - 30 + 55
----
29

query II rowsort
SELECT - ( 78 ) AS col0, 62 * 21
----
-78
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT 65 + + ( + + 98 ) + + COUNT( * ) * + 0
----
163

skipif mysql # not compatible
query I rowsort label-44
SELECT 65 + + ( + + 98 ) + + COUNT ( * ) * + 0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL NULLIF ( - CASE 97 WHEN SUM( DISTINCT - 15 ) THEN - - 52 END, + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL NULLIF ( - CASE 97 WHEN SUM ( DISTINCT - 15 ) THEN - - 52 END, + 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT ( COALESCE ( ( + COUNT( * ) ), + 2, + 84 ) ) * + 89, - 3 col1
----
89
-3

skipif mysql # not compatible
query II rowsort label-46
SELECT ( COALESCE ( ( + COUNT ( * ) ), + 2, + 84 ) ) * + 89, - 3 col1
----
89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-47
SELECT DISTINCT CAST( 7 AS SIGNED ) * - - 57 * - 15 AS col0, 23 AS col0
----
-5985
23

skipif mysql # not compatible
query II rowsort label-47
SELECT DISTINCT CAST ( 7 AS INTEGER ) * - - 57 * - 15 AS col0, 23 AS col0
----
-5985
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-48
SELECT 42 + COUNT( * ) + 1 + COUNT( * ) DIV 22
----
44

skipif mysql # not compatible
query I rowsort label-48
SELECT 42 + COUNT ( * ) + 1 + COUNT ( * ) / 22
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT - ( - 64 ) + + 0 - - 85 DIV - 21 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-49
SELECT - ( - 64 ) + + 0 - - 85 / - 21 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL + - 51 * + MIN( DISTINCT - 9 )
----
459

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + - 51 * + MIN ( DISTINCT - 9 )
----
459

query I rowsort
SELECT - 62 * 37
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT - - MAX( ( - - 53 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT - - MAX ( ( - - 53 ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL - + 47 + + MAX( + - 10 )
----
-57

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - + 47 + + MAX ( + - 10 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL ( + - COUNT( * ) ) + ( + - 42 ) - - COUNT( * ) + COUNT( ALL - 0 )
----
-41

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL ( + - COUNT ( * ) ) + ( + - 42 ) - - COUNT ( * ) + COUNT ( ALL - 0 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT COUNT( * ) + - 23 * - - COUNT( * ) DIV + 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT COUNT ( * ) + - 23 * - - COUNT ( * ) / + 43 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL 68 DIV - + 6
----
-11

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL 68 / - + 6
----
-11

query I rowsort
SELECT 23 + + 66
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-58
SELECT ALL 86 + - - 18 * + - CAST( NULL AS SIGNED ), 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-58
SELECT ALL 86 + - - 18 * + - CAST ( NULL AS INTEGER ), 2 AS col0
----
NULL
2

query I rowsort
SELECT DISTINCT 21 + + 27 AS col1
----
48

query I rowsort
SELECT 7 - 75
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT 42 * CAST( 57 AS SIGNED )
----
2394

skipif mysql # not compatible
query I rowsort label-61
SELECT 42 * CAST ( 57 AS INTEGER )
----
2394

query I rowsort
SELECT ALL 55 + 53 - + 27 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT SUM( + + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-63
SELECT SUM ( + + 84 )
----
84

query I rowsort
SELECT DISTINCT 85 + - 58 * - 33
----
1999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT CAST( NULL AS SIGNED ) * CASE - 7 WHEN - 2 THEN + ( 63 ) ELSE NULL END * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT CAST ( NULL AS INTEGER ) * CASE - 7 WHEN - 2 THEN + ( 63 ) ELSE NULL END * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT ALL - 77 AS col1, + 91 * COUNT( + 99 )
----
-77
91

skipif mysql # not compatible
query II rowsort label-66
SELECT ALL - 77 AS col1, + 91 * COUNT ( + 99 )
----
-77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - 39 * + COUNT( * ) * + 56 + + - 59 col0
----
-2243

skipif mysql # not compatible
query I rowsort label-67
SELECT - 39 * + COUNT ( * ) * + 56 + + - 59 col0
----
-2243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT CAST( NULL AS SIGNED ) * 92 * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT CAST ( NULL AS INTEGER ) * 92 * + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - MAX( ALL - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-69
SELECT - MAX ( ALL - 2 ) AS col0
----
2

query I rowsort
SELECT ALL + 59 * - 45 + - 61
----
-2716

query I rowsort
SELECT - + 21 * + 63
----
-1323

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-72
SELECT ALL CAST( - 22 AS SIGNED ) DIV ( - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL CAST ( - 22 AS INTEGER ) / ( - 62 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - 11 DIV 50 + 26 col2
----
26

skipif mysql # not compatible
query I rowsort label-73
SELECT - 11 / 50 + 26 col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-74
SELECT ALL - 67 AS col2, + CAST( + 69 AS SIGNED ) AS col0, - ( + + COUNT( * ) )
----
-67
69
-1

skipif mysql # not compatible
query III rowsort label-74
SELECT ALL - 67 AS col2, + CAST ( + 69 AS INTEGER ) AS col0, - ( + + COUNT ( * ) )
----
-67
69
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-75
SELECT - + COUNT( * ) DIV + + COALESCE ( + COUNT( * ), ( - 91 ) ) AS col2, 2 AS col1
----
-1
2

skipif mysql # not compatible
query II rowsort label-75
SELECT - + COUNT ( * ) / + + COALESCE ( + COUNT ( * ), ( - 91 ) ) AS col2, 2 AS col1
----
-1
2

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

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

query I rowsort
SELECT ALL - NULLIF ( 86, - 97 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + COUNT( * ) + + 26 * - SUM( DISTINCT - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + COUNT ( * ) + + 26 * - SUM ( DISTINCT - 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT ALL - MAX( DISTINCT - - 41 ) + 94 DIV - - ( 62 ) + - + 88 + + 8
----
-120

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - MAX ( DISTINCT - - 41 ) + 94 / - - ( 62 ) + - + 88 + + 8
----
-120

query I rowsort
SELECT - - 94 - CASE - 92 WHEN + 1 THEN - 84 + - 90 * - - 44 - - 14 - + - 38 / + 13 + 0 WHEN + 21 + - - 16 THEN NULL ELSE NULL END + - 12 * - - 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-81
SELECT ALL - - COUNT( * ) DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - COUNT ( * ) / - 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT DISTINCT 83 + + 14 DIV 21 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT 83 + + 14 / 21 AS col0
----
83

query I rowsort
SELECT ALL - + 45 + - 63 AS col0
----
-108

query I rowsort
SELECT ALL 84 + - 1 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT - 54 - - CASE - 28 WHEN + + 63 + + 94 THEN + 21 + + - 32 + + + 65 * + - 30 - SUM( + 61 ) WHEN + 98 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT - 54 - - CASE - 28 WHEN + + 63 + + 94 THEN + 21 + + - 32 + + + 65 * + - 30 - SUM ( + 61 ) WHEN + 98 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - + COUNT( + + 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-86
SELECT - + COUNT ( + + 37 ) AS col0
----
-1

query I rowsort
SELECT - + 36 * - 46
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT 80 DIV 24 * + COUNT( * ) - 75
----
-72

skipif mysql # not compatible
query I rowsort label-88
SELECT 80 / 24 * + COUNT ( * ) - 75
----
-72

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

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT + COUNT( * ), 24 + + 14 AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-90
SELECT + COUNT ( * ), 24 + + 14 AS col1
----
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL + COUNT( * ) * + 85 + - 77 - - 63
----
71

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL + COUNT ( * ) * + 85 + - 77 - - 63
----
71

query I rowsort
SELECT - 68 * - 53
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - 73 * + NULLIF ( + 48, - + COUNT( * ) ) + - 27 - 6 - - 14 * + 70 + - + 26 AS col1
----
-2583

skipif mysql # not compatible
query I rowsort label-93
SELECT - 73 * + NULLIF ( + 48, - + COUNT ( * ) ) + - 27 - 6 - - 14 * + 70 + - + 26 AS col1
----
-2583

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT DISTINCT - MIN( - 70 ) * MAX( DISTINCT 29 ) AS col2, + 96
----
2030
96

skipif mysql # not compatible
query II rowsort label-94
SELECT DISTINCT - MIN ( - 70 ) * MAX ( DISTINCT 29 ) AS col2, + 96
----
2030
96

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL 23 * 17 + + + 20 + - - ( + 34 ) * ( + + MIN( ALL 8 ) )
----
683

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL 23 * 17 + + + 20 + - - ( + 34 ) * ( + + MIN ( ALL 8 ) )
----
683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-96
SELECT DISTINCT + 90 col2, - CAST( NULL AS SIGNED ) * - + ( + + 75 ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT DISTINCT + 90 col2, - CAST ( NULL AS INTEGER ) * - + ( + + 75 ) AS col2
----
90
NULL

query III rowsort
SELECT ALL + 3, 38 AS col1, + 92 AS col0
----
3
38
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-98
SELECT DISTINCT - CAST( + 89 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + - 7 / - - COUNT( * ) - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT - CAST ( + 89 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 7 / - - COUNT ( * ) - - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT 8 * - 40 * - 80 * CAST( NULL AS SIGNED ) + + + ( + + 60 ) * 11 * + - COALESCE ( + + 18, + - COUNT( 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT 8 * - 40 * - 80 * CAST ( NULL AS INTEGER ) + + + ( + + 60 ) * 11 * + - COALESCE ( + + 18, + - COUNT ( 6 ) )
----
NULL

query I rowsort
SELECT COALESCE ( 43, + - 1 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT - 37 DIV + - 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT - 37 / + - 73 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-103
SELECT + 54 + - 97 AS col2, + ( - 9 ) * - + 70 * + COUNT( * ) * - 69 AS col1
----
-43
-43470

skipif mysql # not compatible
query II rowsort label-103
SELECT + 54 + - 97 AS col2, + ( - 9 ) * - + 70 * + COUNT ( * ) * - 69 AS col1
----
-43
-43470

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

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

query I rowsort
SELECT ALL 25 * 28
----
700

query I rowsort
SELECT + NULLIF ( + 74, - 34 ) + + 27 AS col2
----
101

query I rowsort
SELECT 50 * + 55 + + - 15 * - 0 AS col2
----
2750

query II rowsort
SELECT DISTINCT 88 AS col1, 39 * + + 7 col2
----
88
273

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT - - MIN( DISTINCT + 81 ) AS col0, - 36
----
81
-36

skipif mysql # not compatible
query II rowsort label-109
SELECT - - MIN ( DISTINCT + 81 ) AS col0, - 36
----
81
-36

query I rowsort
SELECT + + 84 + - 65 + 62 * + + 28 - + CASE - COALESCE ( + + 82, 64 ) WHEN 19 THEN + 97 ELSE NULL END col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-111
SELECT - - 12 AS col1, COUNT ( * ) * 65 AS col2
----
12
65

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT + - 9 + + + 96 * 22 DIV + 45 col0
----
37

skipif mysql # not compatible
query I rowsort label-112
SELECT + - 9 + + + 96 * 22 / + 45 col0
----
37

query I rowsort
SELECT ALL - 3 + - 25
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL - 54 + - MAX( DISTINCT - - 24 ) + + 76 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - 54 + - MAX ( DISTINCT - - 24 ) + + 76 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 2 + 95 + 6 * - 26 * + + ( + ( - 90 ) ) + - + 23
----
14114

query I rowsort
SELECT ALL ( 52 ) + 0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-117
SELECT - 84 AS col2, 95 * 22 + + 74 - - NULLIF ( - 19, - COUNT( * ) ) DIV + - 60 + + 49
----
-84
2213

skipif mysql # not compatible
query II rowsort label-117
SELECT - 84 AS col2, 95 * 22 + + 74 - - NULLIF ( - 19, - COUNT ( * ) ) / + - 60 + + 49
----
-84
2213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT - COUNT( * ) + COALESCE ( - COUNT( * ), - 17 * - - 30, - + CASE 4 WHEN + 45 + - + 64 + + + 93 - + NULLIF ( - + 44, - + 99 ) / - + 31 * - 54 THEN + SUM( DISTINCT - 53 ) WHEN + 28 * 12 - - ( + - 86 ) THEN NULL ELSE 63 END + - CAST( NULL AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT - COUNT ( * ) + COALESCE ( - COUNT ( * ), - 17 * - - 30, - + CASE 4 WHEN + 45 + - + 64 + + + 93 - + NULLIF ( - + 44, - + 99 ) / - + 31 * - 54 THEN + SUM ( DISTINCT - 53 ) WHEN + 28 * 12 - - ( + - 86 ) THEN NULL ELSE 63 END + - CAST ( NULL AS INTEGER ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL - - ( + CASE + - COUNT( * ) WHEN - + 62 THEN - - 32 WHEN COALESCE ( + 49, + 87 * COUNT( * ) ) * + - COUNT( ALL - 65 ) * 0 THEN NULL ELSE NULL END ) + ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - - ( + CASE + - COUNT ( * ) WHEN - + 62 THEN - - 32 WHEN COALESCE ( + 49, + 87 * COUNT ( * ) ) * + - COUNT ( ALL - 65 ) * 0 THEN NULL ELSE NULL END ) + ( + 1 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-120
SELECT - + 82 + - CAST( NULL AS DECIMAL ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT - + 82 + - CAST ( NULL AS REAL ) + + 46 AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL - 48 + + 8 DIV 5 + ( - + 55 ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - 48 + + 8 / 5 + ( - + 55 ) AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT ( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT + 68 + + COUNT( 13 ) col1, 16 + + + COUNT( ALL - - 60 ) + + 6
----
69
23

skipif mysql # not compatible
query II rowsort label-125
SELECT + 68 + + COUNT ( 13 ) col1, 16 + + + COUNT ( ALL - - 60 ) + + 6
----
69
23

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT + ( + - 15 ) - + 5 DIV 54 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT + ( + - 15 ) - + 5 / 54 AS col1
----
-15

query I rowsort
SELECT ALL ( + + 98 ) AS col0
----
98

query I rowsort
SELECT - 44 + - - 59
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-129
SELECT - 3 DIV - 36 AS col2, - ( CAST( NULL AS SIGNED ) ) + 74 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-129
SELECT - 3 / - 36 AS col2, - ( CAST ( NULL AS INTEGER ) ) + 74 AS col2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT ALL - 19 DIV - 11 - - + 45 + - 92 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - 19 / - 11 - - + 45 + - 92 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - 21 * - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-131
SELECT - 21 * - COUNT ( * ) AS col1
----
21

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-134
SELECT - SUM( DISTINCT + ( + 68 ) ) / + 93 * + CAST( NULL AS SIGNED ) + + 75 + + + 62 AS col2, + 19 col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-134
SELECT - SUM ( DISTINCT + ( + 68 ) ) / + 93 * + CAST ( NULL AS INTEGER ) + + 75 + + + 62 AS col2, + 19 col1
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - 67 + - 15 + + - MIN( + - 46 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-135
SELECT - 67 + - 15 + + - MIN ( + - 46 ) AS col1
----
-36

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

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

query I rowsort
SELECT + ( + 48 ) + 94 + + + 84 AS col2
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL - COUNT( * ) * 62 AS col0, + 79 AS col1
----
-62
79

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL - COUNT ( * ) * 62 AS col0, + 79 AS col1
----
-62
79

query I rowsort
SELECT ALL - ( - + 95 ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-140
SELECT DISTINCT - CAST( - 41 AS SIGNED ), 76 - - 79 + + + COALESCE ( - 81, - - 94 + 34 - - 33 ) AS col0
----
41
74

skipif mysql # not compatible
query II rowsort label-140
SELECT DISTINCT - CAST ( - 41 AS INTEGER ), 76 - - 79 + + + COALESCE ( - 81, - - 94 + 34 - - 33 ) AS col0
----
41
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-141
SELECT ALL - MIN( ALL - 13 ), + CAST( + 2 AS SIGNED ) col2
----
13
2

skipif mysql # not compatible
query II rowsort label-141
SELECT ALL - MIN ( ALL - 13 ), + CAST ( + 2 AS INTEGER ) col2
----
13
2

query I rowsort
SELECT DISTINCT + 65 + + 18 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT ALL - COUNT( * ) + + 53 AS col1, 69 * - - 57
----
52
3933

skipif mysql # not compatible
query II rowsort label-143
SELECT ALL - COUNT ( * ) + + 53 AS col1, 69 * - - 57
----
52
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-144
SELECT + ( 46 ) DIV - 9 + - COUNT( + CAST( NULL AS SIGNED ) ) + + + 73 - - 67 + + ( + 78 ) * - + 63
----
-4779

skipif mysql # not compatible
query I rowsort label-144
SELECT + ( 46 ) / - 9 + - COUNT ( + CAST ( NULL AS INTEGER ) ) + + + 73 - - 67 + + ( + 78 ) * - + 63
----
-4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT CAST( NULL AS SIGNED ) / - 3 * - COUNT( - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT CAST ( NULL AS INTEGER ) / - 3 * - COUNT ( - 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT 27 * - COUNT( * ) * - 67 AS col0
----
1809

skipif mysql # not compatible
query I rowsort label-146
SELECT 27 * - COUNT ( * ) * - 67 AS col0
----
1809

query I rowsort
SELECT DISTINCT 98 * 91 * + 74
----
659932

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT ALL + 41 * + 37 + - + 27 + + 10 + - 6 * + 55 * 13, COUNT( * ) AS col2
----
-2790
1

skipif mysql # not compatible
query II rowsort label-148
SELECT ALL + 41 * + 37 + - + 27 + + 10 + - 6 * + 55 * 13, COUNT ( * ) AS col2
----
-2790
1

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

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL CAST ( NULL AS REAL ) + + + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT 19 DIV + + COUNT( * ) + - + 43 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-150
SELECT 19 / + + COUNT ( * ) + - + 43 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + MIN( + - 42 ) + + - 7 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + MIN ( + - 42 ) + + - 7 AS col2
----
-49

query I rowsort
SELECT DISTINCT + 50 + 62 + + - COALESCE ( + - 83, - 15 )
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-153
SELECT ALL + 91 + NULLIF ( + 11, + - CAST( NULL AS SIGNED ) ) * + + 27 AS col2, - 72
----
388
-72

skipif mysql # not compatible
query II rowsort label-153
SELECT ALL + 91 + NULLIF ( + 11, + - CAST ( NULL AS INTEGER ) ) * + + 27 AS col2, - 72
----
388
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - COUNT( - - 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-154
SELECT - COUNT ( - - 14 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 47 * - 64 AS col1
----
-3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT CAST( - 6 AS SIGNED ) * + 91 AS col0
----
-546

skipif mysql # not compatible
query I rowsort label-156
SELECT CAST ( - 6 AS INTEGER ) * + 91 AS col0
----
-546

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-157
SELECT ALL COUNT( * ) - 2 + 6 + - NULLIF ( + 83, + ( - - ( ( - 14 ) ) ) + - COUNT( * ) ) / - 92 * - ( - COUNT( * ) ) * - ( + 94 ) - + + CAST( NULL AS DECIMAL ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL COUNT ( * ) - 2 + 6 + - NULLIF ( + 83, + ( - - ( ( - 14 ) ) ) + - COUNT ( * ) ) / - 92 * - ( - COUNT ( * ) ) * - ( + 94 ) - + + CAST ( NULL AS REAL ) + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT - 89 - - 8 - - - SUM( 70 ) + + COUNT( * ) * COUNT( * ) * - COUNT( * ) DIV - - 78 * - 32 * - 69
----
-151

skipif mysql # not compatible
query I rowsort label-158
SELECT - 89 - - 8 - - - SUM ( 70 ) + + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) / - - 78 * - 32 * - 69
----
-151

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT DISTINCT 51 AS col0, + MIN( ALL - ( 59 ) ) * 33 col2
----
51
-1947

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT 51 AS col0, + MIN ( ALL - ( 59 ) ) * 33 col2
----
51
-1947

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL COUNT( * ) * 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL COUNT ( * ) * 2 AS col0
----
2

query II rowsort
SELECT DISTINCT 9 col1, + 5
----
9
5

query I rowsort
SELECT 42 - + - 95
----
137

query II rowsort
SELECT 6, + 14 AS col2
----
6
14

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT + 90 DIV - 47 + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-165
SELECT + 90 / - 47 + - 59
----
-60

query I rowsort
SELECT 32 * 40 AS col0
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT - 27 * + + 91 + + + COALESCE ( - 75, - 58 + - + 99 ) + + ( + 88 ) DIV - - 27
----
-2529

skipif mysql # not compatible
query I rowsort label-167
SELECT - 27 * + + 91 + + + COALESCE ( - 75, - 58 + - + 99 ) + + ( + 88 ) / - - 27
----
-2529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT 48 * CAST( + 99 AS SIGNED ) AS col1
----
4752

skipif mysql # not compatible
query I rowsort label-168
SELECT 48 * CAST ( + 99 AS INTEGER ) AS col1
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT - MIN( - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - MIN ( - 73 ) AS col1
----
73

query II rowsort
SELECT 73 * 10 * 98 - 57 AS col1, 97 - + + 71
----
71483
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-171
SELECT ALL - COALESCE ( CASE 99 WHEN + 42 THEN NULL WHEN - - 17 THEN - 72 DIV - ( + 91 ) * - MIN( + 63 ) END, + 62 * + + COUNT( * ) + - 86 ), 75 + + 80 AS col2
----
24
155

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL - COALESCE ( CASE 99 WHEN + 42 THEN NULL WHEN - - 17 THEN - 72 / - ( + 91 ) * - MIN ( + 63 ) END, + 62 * + + COUNT ( * ) + - 86 ), 75 + + 80 AS col2
----
24
155

query I rowsort
SELECT DISTINCT - 28 + + 76 AS col0
----
48

query I rowsort
SELECT ALL - 36 + 39 AS col0
----
3

query I rowsort
SELECT 31 * + 43 + - ( + 65 )
----
1268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-175
SELECT + 97 * - 6 + - COUNT( * ) * 36 * + 59 * CAST( NULL AS DECIMAL ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-175
SELECT + 97 * - 6 + - COUNT ( * ) * 36 * + 59 * CAST ( NULL AS REAL ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + + NULLIF ( + - ( 27 ), + + ( - 26 ) + ( - + NULLIF ( + 6, + 15 ) ) - - + 25 )
----
-27

query I rowsort
SELECT DISTINCT - ( + ( - 57 ) ) AS col2
----
57

query I rowsort
SELECT ALL + 76 + 68 + - 23 AS col1
----
121

query I rowsort
SELECT ALL - - 13 + - 55
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-180
SELECT ALL - + 5 + + + 8 + + 77 + - 8 DIV 14 + + - 80, - 8 - - - MIN( DISTINCT + 46 ) AS col0
----
0
-54

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL - + 5 + + + 8 + + 77 + - 8 / 14 + + - 80, - 8 - - - MIN ( DISTINCT + 46 ) AS col0
----
0
-54

query II rowsort
SELECT - 96, 35 * + 69 * - 66 AS col2
----
-96
-159390

query II rowsort
SELECT DISTINCT - 62, 80 * + - 72 col2
----
-62
-5760

query I rowsort
SELECT ALL - 21 + + - 51 col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT + + 53 * - 55 * ( + + ( CAST( - - 12 AS SIGNED ) ) ) + 44 * + 2 * - 80 AS col1
----
-42020

skipif mysql # not compatible
query I rowsort label-184
SELECT + + 53 * - 55 * ( + + ( CAST ( - - 12 AS INTEGER ) ) ) + 44 * + 2 * - 80 AS col1
----
-42020

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

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

query I rowsort
SELECT DISTINCT + - ( ( 18 ) ) + + + 92 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 20 + - COUNT( * ) + - 81
----
-102

skipif mysql # not compatible
query I rowsort label-187
SELECT - 20 + - COUNT ( * ) + - 81
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT COUNT( * ) * + - 45 * - ( 80 )
----
3600

skipif mysql # not compatible
query I rowsort label-188
SELECT COUNT ( * ) * + - 45 * - ( 80 )
----
3600

query I rowsort
SELECT 3 + - 94 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL NULLIF ( 2, + 33 ) * + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL NULLIF ( 2, + 33 ) * + COUNT ( * ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL + + COALESCE ( + + 64, + - 10 DIV - ( - + 61 ) * - 90, + 22 ) - + - 29
----
93

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + + COALESCE ( + + 64, + - 10 / - ( - + 61 ) * - 90, + 22 ) - + - 29
----
93

query I rowsort
SELECT + 96 * - 65 * - 31 * - - 69 AS col2
----
13347360

query I rowsort
SELECT DISTINCT 35 * - 62 AS col1
----
-2170

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-195
SELECT 32 DIV - 36 AS col1, ( + NULLIF ( + 84, + 17 ) )
----
0
84

skipif mysql # not compatible
query II rowsort label-195
SELECT 32 / - 36 AS col1, ( + NULLIF ( + 84, + 17 ) )
----
0
84

query I rowsort
SELECT ALL - 12 * 67 AS col1
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT COUNT( * ) + 98 * + 18 - - 22 - + + 94 + + - 32 * 33 * 86
----
-89123

skipif mysql # not compatible
query I rowsort label-197
SELECT COUNT ( * ) + 98 * + 18 - - 22 - + + 94 + + - 32 * 33 * 86
----
-89123

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

skipif mysql # not compatible
query I rowsort label-198
SELECT - MIN ( DISTINCT ( 67 ) )
----
-67

query II rowsort
SELECT 51 + - 99 AS col1, + 48 * - + 68
----
-48
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-200
SELECT - SUM( - 37 ), - 34 + - COUNT( DISTINCT + - 87 ) * + 5 * + 90 * + 3 * - 49 + + 93 * - CAST( NULL AS SIGNED ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-200
SELECT - SUM ( - 37 ), - 34 + - COUNT ( DISTINCT + - 87 ) * + 5 * + 90 * + 3 * - 49 + + 93 * - CAST ( NULL AS INTEGER ) AS col1
----
37
NULL

query I rowsort
SELECT + 55 + 63 * 85
----
5410

query I rowsort
SELECT + 31 + + + 38 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL - 22 * - 73 + + COUNT( * ) AS col1
----
1607

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - 22 * - 73 + + COUNT ( * ) AS col1
----
1607

query I rowsort
SELECT + COALESCE ( + + 76, - 46, - + 22 * - - 47 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL 29 * - + 13 * - - 60 + CAST( NULL AS SIGNED ) * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL 29 * - + 13 * - - 60 + CAST ( NULL AS INTEGER ) * + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 65 + 3 col2
----
-3507

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT + 47 DIV + 52 * 78 * + 75 + - 11 * 32
----
-352

skipif mysql # not compatible
query I rowsort label-207
SELECT + 47 / + 52 * 78 * + 75 + - 11 * 32
----
-352

onlyif mysql # aggregate syntax: 
query II rowsort label-208
SELECT DISTINCT + 49 * CASE ( ( - 89 ) ) WHEN - - 55 THEN NULL WHEN - COUNT( * ) THEN - ( 25 ) ELSE NULL END AS col2, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-208
SELECT DISTINCT + 49 * CASE ( ( - 89 ) ) WHEN - - 55 THEN NULL WHEN - COUNT ( * ) THEN - ( 25 ) ELSE NULL END AS col2, 33
----
NULL
33

onlyif mysql # DIV for integer division: 
query II rowsort label-209
SELECT + + 10 DIV + 96, + 16 AS col0
----
0
16

skipif mysql # not compatible
query II rowsort label-209
SELECT + + 10 / + 96, + 16 AS col0
----
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL - - COUNT( * ) * 12 + 11 - - + 33 * ( + COUNT( * ) ) col1
----
56

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - - COUNT ( * ) * 12 + 11 - - + 33 * ( + COUNT ( * ) ) col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-211
SELECT ALL - + ( 24 ) DIV COUNT( * ) DIV - + COALESCE ( + 76, + - MAX( - - 82 ), ( - NULLIF ( + - CASE WHEN NOT - ( - COALESCE ( + + COUNT( * ), - COALESCE ( - 92, + - 94 ) ) ) IS NOT NULL THEN + CASE - COUNT( * ) WHEN 43 * - 70 THEN NULL ELSE + COUNT( * ) END ELSE NULL END, - - 90 DIV - 60 - - ( + - 13 ) - + 42 * + NULLIF ( 2, - 32 ) + + + 77 + - 36 * - - 50 + - + 66 * + + COALESCE ( - 41, - 39, NULLIF ( - 93, - 31 ) ) * + 79 * 5 + + 83 DIV + MIN( 83 ) ) ) * ( + 8 ) )
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - + ( 24 ) / COUNT ( * ) / - + COALESCE ( + 76, + - MAX ( - - 82 ), ( - NULLIF ( + - CASE WHEN NOT - ( - COALESCE ( + + COUNT ( * ), - COALESCE ( - 92, + - 94 ) ) ) IS NOT NULL THEN + CASE - COUNT ( * ) WHEN 43 * - 70 THEN NULL ELSE + COUNT ( * ) END ELSE NULL END, - - 90 / - 60 - - ( + - 13 ) - + 42 * + NULLIF ( 2, - 32 ) + + + 77 + - 36 * - - 50 + - + 66 * + + COALESCE ( - 41, - 39, NULLIF ( - 93, - 31 ) ) * + 79 * 5 + + 83 / + MIN ( 83 ) ) ) * ( + 8 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT - 77 DIV 44 - + - 10 * - + 17 - + 3
----
-174

skipif mysql # not compatible
query I rowsort label-212
SELECT - 77 / 44 - + - 10 * - + 17 - + 3
----
-174

query I rowsort
SELECT DISTINCT - 33 * + 75 * 85 + 5 + 99 AS col1
----
-210271

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

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

query I rowsort
SELECT + NULLIF ( + + 3, - + 78 * 75 + + - 93 + - 77 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT DISTINCT + COALESCE ( 92, + MAX( ALL - 43 ) * 29 * - 73 * 95 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT + COALESCE ( 92, + MAX ( ALL - 43 ) * 29 * - 73 * 95 ) AS col1
----
92

query I rowsort
SELECT - + 3 * - + 47 AS col2
----
141

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

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

query I rowsort
SELECT - NULLIF ( + 50, + - 77 ) AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-220
SELECT ALL - 28 - - COUNT( * ) DIV 85 * + 29
----
-28

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - 28 - - COUNT ( * ) / 85 * + 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT DISTINCT + MAX( ALL 73 ) * - - ( + - 78 )
----
-5694

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + MAX ( ALL 73 ) * - - ( + - 78 )
----
-5694

query I rowsort
SELECT ALL + - 98 - ( + ( + 65 ) ) AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT + 37 * - - SUM( 7 ) * + 17
----
4403

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 37 * - - SUM ( 7 ) * + 17
----
4403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-224
SELECT - 44 + COUNT( ALL + + 77 ) + 29 DIV + + 63 * - - 59 - 45 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-224
SELECT - 44 + COUNT ( ALL + + 77 ) + 29 / + + 63 * - - 59 - 45 AS col0
----
-88

query II rowsort
SELECT 17 AS col0, 70 AS col0
----
17
70

query I rowsort
SELECT + 26 * 62 AS col0
----
1612

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

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

query I rowsort
SELECT ALL - 81 * 59 AS col2
----
-4779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-229
SELECT - 55 * - 9 DIV COUNT( * ) col0
----
495

skipif mysql # not compatible
query I rowsort label-229
SELECT - 55 * - 9 / COUNT ( * ) col0
----
495

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-230
SELECT - 14 + 19 DIV + CAST( CASE - - 71 WHEN ( 29 ) - - 40 + 99 + + + 55 * + + 73 * 86 THEN NULL WHEN + 57 THEN NULL ELSE 76 END AS SIGNED ) + 99 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-230
SELECT - 14 + 19 / + CAST ( CASE - - 71 WHEN ( 29 ) - - 40 + 99 + + + 55 * + + 73 * 86 THEN NULL WHEN + 57 THEN NULL ELSE 76 END AS INTEGER ) + 99 AS col0
----
85

query I rowsort
SELECT ALL CASE - + 81 WHEN - 26 THEN 74 * + 16 ELSE - 81 END AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT - ( + ( + 23 ) ) DIV + 92 * 10 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - ( + ( + 23 ) ) / + 92 * 10 * - 55
----
0

query I rowsort
SELECT DISTINCT 43 + ( + 73 ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL 2 * - NULLIF ( COUNT( DISTINCT - - 96 ), - + 2 + + 80 ) * COUNT( * ) + 48 + + 95 * - 66 AS col1
----
-6224

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL 2 * - NULLIF ( COUNT ( DISTINCT - - 96 ), - + 2 + + 80 ) * COUNT ( * ) + 48 + + 95 * - 66 AS col1
----
-6224

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

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

query I rowsort
SELECT ALL - 82 + 41 + + 58
----
17

query I rowsort
SELECT ALL + ( 28 ) + 48
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - CASE 6 WHEN + 20 + + 41 - - - 89 THEN - 22 / - COUNT( * ) - 29 + + ( 14 ) * + 45 / 74 END - 32 * - 14 + - COUNT( * ) + 93 - + + 70 + - MAX( ALL - 16 ) / 52 * - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT - CASE 6 WHEN + 20 + + 41 - - - 89 THEN - 22 / - COUNT ( * ) - 29 + + ( 14 ) * + 45 / 74 END - 32 * - 14 + - COUNT ( * ) + 93 - + + 70 + - MAX ( ALL - 16 ) / 52 * - - 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT CAST( 39 AS SIGNED ) col0
----
39

skipif mysql # not compatible
query I rowsort label-240
SELECT CAST ( 39 AS INTEGER ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT + 80 DIV SUM( DISTINCT + 39 * + 87 ) + 92
----
92

skipif mysql # not compatible
query I rowsort label-241
SELECT + 80 / SUM ( DISTINCT + 39 * + 87 ) + 92
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT ALL - 97 DIV COUNT( * ) - 75 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - 97 / COUNT ( * ) - 75 AS col0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + ( MIN( - 39 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-243
SELECT + ( MIN ( - 39 ) ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT COUNT( * ) DIV - 83 - + ( - ( ( + 46 ) ) + COUNT( * ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT COUNT ( * ) / - 83 - + ( - ( ( + 46 ) ) + COUNT ( * ) ) AS col1
----
45

query I rowsort
SELECT + 70 * - 66
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + MIN( ALL - ( + 61 ) ) * 32 + - 81 * - 79 AS col0
----
4447

skipif mysql # not compatible
query I rowsort label-246
SELECT + MIN ( ALL - ( + 61 ) ) * 32 + - 81 * - 79 AS col0
----
4447

query I rowsort
SELECT ALL 46 * 84 AS col1
----
3864

query I rowsort
SELECT + 52 + 38 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT - 58 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT - 58 / 71
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT ALL - 85 DIV 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - 85 / 8 AS col2
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-254
SELECT - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 22 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 22 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-255
SELECT - CAST( COALESCE ( CASE COUNT( * ) WHEN 58 THEN NULL WHEN + ( + 76 ) THEN 40 WHEN 91 THEN - 91 * + COUNT( * ) ELSE NULL END, - 85 ) AS SIGNED ) * - 14 + - 27 DIV 53 AS col2
----
-1190

skipif mysql # not compatible
query I rowsort label-255
SELECT - CAST ( COALESCE ( CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + ( + 76 ) THEN 40 WHEN 91 THEN - 91 * + COUNT ( * ) ELSE NULL END, - 85 ) AS INTEGER ) * - 14 + - 27 / 53 AS col2
----
-1190

query I rowsort
SELECT DISTINCT ( 86 )
----
86

query I rowsort
SELECT + 68 * + NULLIF ( - 83 * - 77, 23 )
----
434588

query I rowsort
SELECT - 74 + - 74
----
-148

query I rowsort
SELECT + 45 * + 49 col2
----
2205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-260
SELECT - CASE CASE CAST( COUNT( * ) AS SIGNED ) WHEN 79 + 59 THEN NULL ELSE 39 * + 24 END WHEN + 98 / - 87 THEN ( + 25 ) ELSE NULL END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT - CASE CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 79 + 59 THEN NULL ELSE 39 * + 24 END WHEN + 98 / - 87 THEN ( + 25 ) ELSE NULL END + 62
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 6, 82 + + 27, - 68 * 18 + - 24 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT + 61 * + 71 + COUNT( + 43 + 97 )
----
4332

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + 61 * + 71 + COUNT ( + 43 + 97 )
----
4332

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL - CASE - 17 WHEN + MIN( ALL + 38 ) THEN - 38 WHEN COALESCE ( - 90, 62 * 71, 14 ) THEN 45 + 78 END * COUNT( * ) + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - CASE - 17 WHEN + MIN ( ALL + 38 ) THEN - 38 WHEN COALESCE ( - 90, 62 * 71, 14 ) THEN 45 + 78 END * COUNT ( * ) + 63 col2
----
NULL

query I rowsort
SELECT ALL - 95 + 3
----
-92

query I rowsort
SELECT DISTINCT + 41 + 41 AS col2
----
82

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

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

query I rowsort
SELECT 48 * 73 col2
----
3504

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT 38 + - MIN( + 72 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT 38 + - MIN ( + 72 ) AS col1
----
-34

query I rowsort
SELECT ALL + 23 + 90
----
113

query I rowsort
SELECT DISTINCT + 14 + + 48 * 23 AS col1
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT DISTINCT + COUNT( * ) + ( - 78 + + 62 )
----
-15

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT + COUNT ( * ) + ( - 78 + + 62 )
----
-15

query I rowsort
SELECT DISTINCT - 78 + + ( 84 - + 58 * - 81 )
----
4704

query I rowsort
SELECT 86 * ( - 74 ) AS col1
----
-6364

query I rowsort
SELECT 57 * 96 col0
----
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT ALL - 51 DIV 26
----
-1

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - 51 / 26
----
-1

query I rowsort
SELECT ALL + 96 + - 5
----
91

query I rowsort
SELECT 66 - 1 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 73 + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-278
SELECT 73 + COUNT ( * ) col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT 76 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT 76 / 97 AS col0
----
0

query I rowsort
SELECT ALL - 24 * 54 AS col2
----
-1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT ALL - COUNT( ( - 67 ) ) DIV 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - COUNT ( ( - 67 ) ) / 16 AS col0
----
0

query I rowsort
SELECT ALL ( 31 ) * 75
----
2325

query I rowsort
SELECT ALL - 8 * - 8
----
64

query I rowsort
SELECT + 50 * 85 AS col1
----
4250

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

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

query I rowsort
SELECT ALL + + 94 - NULLIF ( 80, COALESCE ( 20, COALESCE ( 2, - 23 / 87 ) * 56 ) ) AS col0
----
14

query I rowsort
SELECT ALL - + 31 * + 40
----
-1240

query I rowsort
SELECT - 73 + + 41
----
-32

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

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

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL - - SUM ( - ( - 37 ) )
----
37

query I rowsort
SELECT - 30 * 67
----
-2010

query I rowsort
SELECT - 0 * 56 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - - MAX ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL 97 * COALESCE ( 9 * + COUNT( * ) + + 22, - 80 ) AS col0
----
3007

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 97 * COALESCE ( 9 * + COUNT ( * ) + + 22, - 80 ) AS col0
----
3007

query I rowsort
SELECT + 66 * 36
----
2376

query I rowsort
SELECT ALL + 32 * 67 AS col2
----
2144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-297
SELECT CASE 26 WHEN - 43 THEN NULL WHEN 1 + CAST( NULL AS DECIMAL ) THEN - ( + 34 ) * - 74 ELSE + 41 END
----
41

skipif mysql # not compatible
query I rowsort label-297
SELECT CASE 26 WHEN - 43 THEN NULL WHEN 1 + CAST ( NULL AS REAL ) THEN - ( + 34 ) * - 74 ELSE + 41 END
----
41

query I rowsort
SELECT + 33 * + 75
----
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT CAST( MAX( + ( 61 ) ) AS SIGNED ) * 62 AS col2
----
3782

skipif mysql # not compatible
query I rowsort label-299
SELECT CAST ( MAX ( + ( 61 ) ) AS INTEGER ) * 62 AS col2
----
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT COUNT( 32 ) + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT COUNT ( 32 ) + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL COUNT( * ) * 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL COUNT ( * ) * 8 AS col0
----
8

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

skipif mysql # not compatible
query I rowsort label-302
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 51, 18 ) + ( ( 68 ) ) * 73
----
5015

query I rowsort
SELECT ALL 97 + - + 82 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT DISTINCT + 36 DIV + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT + 36 / + 41 AS col2
----
0

query I rowsort
SELECT DISTINCT - 82 + 20
----
-62

query I rowsort
SELECT ALL + 27 + - 17 AS col2
----
10

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

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

query I rowsort
SELECT 76 - + NULLIF ( + 61, 14 )
----
15

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

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

query I rowsort
SELECT 66 + + 77
----
143

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

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

query I rowsort
SELECT ALL 83 - + - 36 * - 40 AS col1
----
-1357

query I rowsort
SELECT 92 * + 7 AS col1
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL + - CASE - ( COALESCE ( COUNT( * ), 15 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) ), - 80 ) ) WHEN 58 THEN NULL WHEN + 33 THEN + 69 + - 55 ELSE 60 END - 23
----
-83

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + - CASE - ( COALESCE ( COUNT ( * ), 15 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 80 ) ) WHEN 58 THEN NULL WHEN + 33 THEN + 69 + - 55 ELSE 60 END - 23
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + 48 + - MAX( - 52 )
----
100

skipif mysql # not compatible
query I rowsort label-316
SELECT + 48 + - MAX ( - 52 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT - 57 * + CAST( NULL AS SIGNED ) * NULLIF ( SUM( - 97 ) * ( 58 ), 75 / - 10 + - 19 / + ( - CAST( - 33 AS SIGNED ) * 5 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT - 57 * + CAST ( NULL AS INTEGER ) * NULLIF ( SUM ( - 97 ) * ( 58 ), 75 / - 10 + - 19 / + ( - CAST ( - 33 AS INTEGER ) * 5 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL - MAX( DISTINCT 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - MAX ( DISTINCT 68 ) AS col2
----
-68

query I rowsort
SELECT 65 - - - 68
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT DISTINCT + ( + 22 ) * ( + ( + COALESCE ( - 67, 55 * - COUNT( * ) ) ) * ( 88 ) )
----
-129712

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT + ( + 22 ) * ( + ( + COALESCE ( - 67, 55 * - COUNT ( * ) ) ) * ( 88 ) )
----
-129712

query I rowsort
SELECT + ( + ( + 37 ) )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT + - 24 DIV + 86 * + 21 col1
----
0

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + - 24 / + 86 * + 21 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL + + ( 21 ) * COUNT( * ) + MAX( ( 39 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + + ( 21 ) * COUNT ( * ) + MAX ( ( 39 ) ) AS col0
----
60

query I rowsort
SELECT DISTINCT + 50 * - + 56 AS col1
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL - + COUNT( * ) * + 75 * 52 + 96 col2
----
-3804

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - + COUNT ( * ) * + 75 * 52 + 96 col2
----
-3804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT - 3 * - CAST( + COUNT( * ) AS SIGNED ) + 77 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-327
SELECT - 3 * - CAST ( + COUNT ( * ) AS INTEGER ) + 77 AS col2
----
80

query I rowsort
SELECT - ( - 14 ) - + 77
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ALL + - COUNT( * ) * + 9 + 41 * + 1
----
32

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL + - COUNT ( * ) * + 9 + 41 * + 1
----
32

query I rowsort
SELECT - 91 * - - 52 * - 9 + 48 AS col2
----
42636

query I rowsort
SELECT + ( + 88 ) * 39
----
3432

query I rowsort
SELECT ALL - - 19 * + + 15 * + 27 + - COALESCE ( 83, 87 + 94 ) AS col1
----
7612

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-334
SELECT DISTINCT + 3 col0, 59 + - CASE AVG ( - 3 ) WHEN - 35 THEN 15 / 23 - COUNT( * ) * + 87 ELSE - 60 END + - CAST( NULL AS SIGNED ) * 50 AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + 3 col0, 59 + - CASE AVG ( - 3 ) WHEN - 35 THEN 15 / 23 - COUNT ( * ) * + 87 ELSE - 60 END + - CAST ( NULL AS INTEGER ) * 50 AS col1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT - NULLIF ( + COALESCE ( + - 29, 86, + COUNT( * ) ), 16 ) + + 72
----
101

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - NULLIF ( + COALESCE ( + - 29, 86, + COUNT ( * ) ), 16 ) + + 72
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT COALESCE ( - 54, 41 ) * - COUNT( * ) + + 23
----
77

skipif mysql # not compatible
query I rowsort label-336
SELECT COALESCE ( - 54, 41 ) * - COUNT ( * ) + + 23
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL + CAST( 81 AS SIGNED ) + 51 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + CAST ( 81 AS INTEGER ) + 51 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT - COALESCE ( - 67, + + 39 + ( 0 ) * + 81, + COUNT( * ), COUNT( * ) ) + + 43
----
110

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - COALESCE ( - 67, + + 39 + ( 0 ) * + 81, + COUNT ( * ), COUNT ( * ) ) + + 43
----
110

query I rowsort
SELECT ALL 79 + + - 81
----
-2

query II rowsort
SELECT ALL + 2 AS col2, - 82 * + - 38 AS col0
----
2
3116

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL 50 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 50 / + 42 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT - 55 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT - 55 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - MAX( + - 45 ) * - + MIN( - 1 )
----
45

skipif mysql # not compatible
query I rowsort label-343
SELECT - MAX ( + - 45 ) * - + MIN ( - 1 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-344
SELECT 76 col2, CAST( NULL AS SIGNED ) * + ( - 89 ) AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-344
SELECT 76 col2, CAST ( NULL AS INTEGER ) * + ( - 89 ) AS col0
----
76
NULL

query I rowsort
SELECT + 31 * + 32 + - 3
----
989

query I rowsort
SELECT ALL 19 * CASE + 18 WHEN + 43 * + 87 + 27 THEN NULL ELSE 69 - 80 END
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + 31 * + COUNT( 24 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-347
SELECT + 31 * + COUNT ( 24 ) AS col2
----
31

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

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

query I rowsort
SELECT DISTINCT + 51 * 90 AS col2
----
4590

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL 39, MIN( - + 13 ) + - 47 AS col0
----
39
-60

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL 39, MIN ( - + 13 ) + - 47 AS col0
----
39
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT - - 11 * - COUNT( * ) - - - 72 * - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-352
SELECT - - 11 * - COUNT ( * ) - - - 72 * - COUNT ( * ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT ALL - 6 DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - 6 / 42 AS col2
----
0

query I rowsort
SELECT + 85 * ( CASE - 0 WHEN 58 * - 8 + - 59 THEN + 64 - 82 * - 20 WHEN - 23 THEN NULL END )
----
NULL

query I rowsort
SELECT - + 36 * - 51
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT + + COUNT( * ) + + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-356
SELECT + + COUNT ( * ) + + 46 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT + - CASE + - SUM( + + 59 ) WHEN - 0 THEN 19 * 91 WHEN + 27 * - 26 THEN - 6 END - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT + - CASE + - SUM ( + + 59 ) WHEN - 0 THEN 19 * 91 WHEN + 27 * - 26 THEN - 6 END - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT + + 50 + + CAST( 46 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-358
SELECT + + 50 + + CAST ( 46 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL + + COUNT( ALL NULLIF ( - - 56, 36 ) ) * 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + + COUNT ( ALL NULLIF ( - - 56, 36 ) ) * 15 AS col2
----
15

query I rowsort
SELECT ALL + 65 + - 73 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT DISTINCT 0 * - COUNT( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT 0 * - COUNT ( 78 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT ALL + + 60 DIV 79 + - COUNT( * ) - 18 * + 60
----
-1081

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + + 60 / 79 + - COUNT ( * ) - 18 * + 60
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) * - 54 - - - 32 + 25 * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) * - 54 - - - 32 + 25 * + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT + 88 * 62
----
5456

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT - 55 DIV 42 + + 73 + 50 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-365
SELECT - 55 / 42 + + 73 + 50 AS col1
----
122

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), - 53, NULLIF ( 37, 65 / 80 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-367
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), - 53, NULLIF ( 37, 65 / 80 ) )
----
-53

query I rowsort
SELECT - + ( + - 43 ) + - 10
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ( - CASE - 62 WHEN COUNT( * ) THEN NULL WHEN NULLIF ( 22, - ( + 87 ) ) THEN NULL ELSE - MIN( ALL 97 ) * 81 END ) AS col2
----
7857

skipif mysql # not compatible
query I rowsort label-369
SELECT ( - CASE - 62 WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( 22, - ( + 87 ) ) THEN NULL ELSE - MIN ( ALL 97 ) * 81 END ) AS col2
----
7857

query II rowsort
SELECT + 23 AS col2, - ( - + ( + 33 ) ) * 17 AS col1
----
23
561

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

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

query I rowsort
SELECT - + 49 * - + 24 AS col0
----
1176

query I rowsort
SELECT - + ( - 44 ) + - 76 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT DISTINCT + - 46 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT + - 46 / 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-375
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, + 90 - 45 + - ( - 36 ) * - SUM( ALL - CASE 96 WHEN + 28 * 84 + - 71 * + 27 THEN + 62 * - NULLIF ( - 72, 46 ) END / - 91 + 31 * - 97 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL + CAST ( NULL AS REAL ) AS col2, + 90 - 45 + - ( - 36 ) * - SUM ( ALL - CASE 96 WHEN + 28 * 84 + - 71 * + 27 THEN + 62 * - NULLIF ( - 72, 46 ) END / - 91 + 31 * - 97 ) AS col1
----
NULL
NULL

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

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

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

query I rowsort
SELECT ALL 22 * - 23 * + 63 + 28
----
-31850

query I rowsort
SELECT - COALESCE ( - 85, 49 + - + 4, 27 + + ( - 31 ) ) * - 5 AS col1
----
-425

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-380
SELECT DISTINCT + 55 DIV + 87, + CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-380
SELECT DISTINCT + 55 / + 87, + CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

query I rowsort
SELECT COALESCE ( + - 8, + 13 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT ALL - 37 * 21 AS col0, COUNT( * ) - + 35 * + 1 AS col0
----
-777
-34

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL - 37 * 21 AS col0, COUNT ( * ) - + 35 * + 1 AS col0
----
-777
-34

query I rowsort
SELECT NULLIF ( - + 43, + 95 ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-384
SELECT - 62 DIV - - 28, - 1 AS col0
----
-2
-1

skipif mysql # not compatible
query II rowsort label-384
SELECT - 62 / - - 28, - 1 AS col0
----
-2
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT - 73 * + - CAST( + - CASE 80 WHEN 6 THEN NULL WHEN + 31 THEN 55 * COUNT( * ) + 73 * 54 ELSE 66 + - 35 END AS SIGNED )
----
-2263

skipif mysql # not compatible
query I rowsort label-385
SELECT - 73 * + - CAST ( + - CASE 80 WHEN 6 THEN NULL WHEN + 31 THEN 55 * COUNT ( * ) + 73 * 54 ELSE 66 + - 35 END AS INTEGER )
----
-2263

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT COALESCE ( - - COALESCE ( 27, 48 ), + COALESCE ( 84, ( + COUNT( + NULLIF ( + 24, - 80 ) ) ) ) + + 22 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-386
SELECT COALESCE ( - - COALESCE ( 27, 48 ), + COALESCE ( 84, ( + COUNT ( + NULLIF ( + 24, - 80 ) ) ) ) + + 22 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL 65 * - 52 * 76 - - COUNT( * )
----
-256879

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL 65 * - 52 * 76 - - COUNT ( * )
----
-256879

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT - COUNT( * ) - + + ( - + 59 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-388
SELECT - COUNT ( * ) - + + ( - + 59 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT CASE + 87 WHEN - 6 / - CAST( 49 AS SIGNED ) + + NULLIF ( 32, + 25 * - 85 ) + + 9 / 73 THEN NULL WHEN 22 THEN NULL WHEN ( 40 ) * 73 + - 58 THEN 31 - 76 WHEN SUM( 57 ) THEN 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT CASE + 87 WHEN - 6 / - CAST ( 49 AS INTEGER ) + + NULLIF ( 32, + 25 * - 85 ) + + 9 / 73 THEN NULL WHEN 22 THEN NULL WHEN ( 40 ) * 73 + - 58 THEN 31 - 76 WHEN SUM ( 57 ) THEN 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL 2 * - + ( + 43 ) - + 3 + - ( - MIN( 42 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL 2 * - + ( + 43 ) - + 3 + - ( - MIN ( 42 ) ) AS col1
----
-47

query I rowsort
SELECT - ( + 69 ) * - 63 + ( - 90 ) * - 18 AS col0
----
5967

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL + 37 * - COUNT( * ) - + - 24
----
-13

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + 37 * - COUNT ( * ) - + - 24
----
-13

query I rowsort
SELECT - ( ( + 89 ) ) * 90
----
-8010

query II rowsort
SELECT + 48 - + 48, - 96 + + 67 * - 18 AS col0
----
0
-1302

query II rowsort
SELECT ALL - 76 * 0 col1, 64 AS col0
----
0
64

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

skipif mysql # not compatible
query I rowsort label-396
SELECT + - 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 96 + 66
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT - 27 + COUNT( * ) - ( COUNT( * ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - 27 + COUNT ( * ) - ( COUNT ( * ) ) AS col2
----
-27

query I rowsort
SELECT + - ( - 98 ) + - 32 + + + ( - 38 )
----
28

query I rowsort
SELECT ALL - 16 * 1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT + NULLIF ( ( + 45 ), 27 * + 10 + 30 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-401
SELECT + NULLIF ( ( + 45 ), 27 * + 10 + 30 ) / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT + COUNT( DISTINCT - 6 ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + COUNT ( DISTINCT - 6 ) + 63
----
64

query I rowsort
SELECT DISTINCT ( 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT ALL 89 + CASE - 46 WHEN - - CAST( NULL AS SIGNED ) THEN 73 / - 41 END + + SUM( DISTINCT + 53 - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 89 + CASE - 46 WHEN - - CAST ( NULL AS INTEGER ) THEN 73 / - 41 END + + SUM ( DISTINCT + 53 - 70 )
----
NULL

query I rowsort
SELECT DISTINCT - 33 + - - 75 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - NULLIF ( 26, + - COUNT( DISTINCT - - ( - 44 ) ) * 70 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-406
SELECT - NULLIF ( 26, + - COUNT ( DISTINCT - - ( - 44 ) ) * 70 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT MIN( ALL - - 95 ) * + 49 + - - 71 - + 39 AS col0
----
4687

skipif mysql # not compatible
query I rowsort label-407
SELECT MIN ( ALL - - 95 ) * + 49 + - - 71 - + 39 AS col0
----
4687

query I rowsort
SELECT ALL + 58 + - - 41 + + - 56 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - MIN( + - 51 ) - - + ( 94 )
----
145

skipif mysql # not compatible
query I rowsort label-409
SELECT - MIN ( + - 51 ) - - + ( 94 )
----
145

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

query I rowsort
SELECT ALL ( - 53 ) + - - 71 * + 24 AS col1
----
1651

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL - ( COUNT( * ) ) - + - 29 * + ( + 23 )
----
666

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL - ( COUNT ( * ) ) - + - 29 * + ( + 23 )
----
666

query I rowsort
SELECT 12 * 79 - + - 56 * 84 * 4
----
19764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT + CAST( - + MIN( ALL - COALESCE ( 12, - NULLIF ( 26, 44 ) - 83 ) ) AS SIGNED ) / COUNT( * ) - CASE 73 WHEN - COUNT( * ) + + 35 THEN NULL WHEN - 37 * - 98 THEN 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT + CAST ( - + MIN ( ALL - COALESCE ( 12, - NULLIF ( 26, 44 ) - 83 ) ) AS INTEGER ) / COUNT ( * ) - CASE 73 WHEN - COUNT ( * ) + + 35 THEN NULL WHEN - 37 * - 98 THEN 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT 68 * - + 1 * COUNT( * ) + + NULLIF ( 81, - 95 + 74 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-415
SELECT 68 * - + 1 * COUNT ( * ) + + NULLIF ( 81, - 95 + 74 ) AS col0
----
13

query I rowsort
SELECT 77 + - - 33
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ALL 68 - 5 DIV + 92 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL 68 - 5 / + 92 AS col1
----
68

query II rowsort
SELECT + 2 AS col2, 85
----
2
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-419
SELECT ALL - COUNT( * ) DIV + 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - COUNT ( * ) / + 4 AS col0
----
0

query I rowsort
SELECT 76 + - 34 AS col0
----
42

query II rowsort
SELECT + 23 * + 44 + - 22, - 56 AS col1
----
990
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL - ( - SUM( + 44 ) ) col1, + 74
----
44
74

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL - ( - SUM ( + 44 ) ) col1, + 74
----
44
74

query I rowsort
SELECT 92 * + 75 AS col1
----
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL - 6 * + COUNT( + 4 ) * 26 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - 6 * + COUNT ( + 4 ) * 26 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT 33 * + + 47 * - 36 + + COALESCE ( - COUNT( ALL - 14 ), + 51 ) * + COALESCE ( 38, - 37 )
----
-55874

skipif mysql # not compatible
query I rowsort label-425
SELECT 33 * + + 47 * - 36 + + COALESCE ( - COUNT ( ALL - 14 ), + 51 ) * + COALESCE ( 38, - 37 )
----
-55874

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT 72 DIV + + 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-426
SELECT 72 / + + 25 AS col2
----
2

query II rowsort
SELECT - 79 AS col1, 37 - - 69 * 4 * 20 AS col0
----
-79
5557

query I rowsort
SELECT 82 * + 40 * - 0 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT 20 + + CAST( + 89 AS SIGNED ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-430
SELECT 20 + + CAST ( + 89 AS INTEGER ) AS col0
----
109

query I rowsort
SELECT - 85 * 50 + + COALESCE ( - - 95, + 24 )
----
-4155

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT - 78 + COUNT( * ) * - + 53 + - 25 - 40 * + CASE - 74 WHEN - 66 THEN COUNT( * ) / + 21 WHEN 57 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT - 78 + COUNT ( * ) * - + 53 + - 25 - 40 * + CASE - 74 WHEN - 66 THEN COUNT ( * ) / + 21 WHEN 57 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL SUM( + + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL SUM ( + + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT - 76 + - ( - 6 ) AS col2, + COUNT( * ) * - + COUNT( * ) col2
----
-70
-1

skipif mysql # not compatible
query II rowsort label-434
SELECT - 76 + - ( - 6 ) AS col2, + COUNT ( * ) * - + COUNT ( * ) col2
----
-70
-1

query I rowsort
SELECT DISTINCT + - 47 + + 76 + + 62
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT 53, COUNT( * ) * - 74 col2
----
53
-74

skipif mysql # not compatible
query II rowsort label-436
SELECT 53, COUNT ( * ) * - 74 col2
----
53
-74

query I rowsort
SELECT 78 * + + 96
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL COUNT( * ) + - 74 * + COUNT( * ) * + ( - 54 ) AS col2
----
3997

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL COUNT ( * ) + - 74 * + COUNT ( * ) * + ( - 54 ) AS col2
----
3997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-439
SELECT ALL + CASE + + NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( + - 28, 99 ) ) WHEN MAX( 54 ) THEN + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + CASE + + NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( + - 28, 99 ) ) WHEN MAX ( 54 ) THEN + CAST ( NULL AS REAL ) END
----
NULL

query II rowsort
SELECT 11 - 19 * + 25 AS col0, - NULLIF ( 53, 45 ) * 74 AS col0
----
-464
-3922

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - COUNT( * ) + - 93 * 93 AS col2
----
-8650

skipif mysql # not compatible
query I rowsort label-441
SELECT - COUNT ( * ) + - 93 * 93 AS col2
----
-8650

query I rowsort
SELECT DISTINCT + - ( 5 ) + + 53
----
48

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

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

query I rowsort
SELECT DISTINCT + - 75 + - 46 - 69 * 64 AS col1
----
-4537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT DISTINCT - COALESCE ( + NULLIF ( - 6, 12 ), + 46 * - 77 + + 86, + COUNT( 6 ) - CAST( NULL AS SIGNED ) ) - + 87
----
-81

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - COALESCE ( + NULLIF ( - 6, 12 ), + 46 * - 77 + + 86, + COUNT ( 6 ) - CAST ( NULL AS INTEGER ) ) - + 87
----
-81

query I rowsort
SELECT DISTINCT - + 63 * - 4 + + - 11 AS col0
----
241

onlyif mysql # DIV for integer division: 
query II rowsort label-447
SELECT ALL + 46 - 74 DIV + 98 col2, - 78 AS col0
----
46
-78

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL + 46 - 74 / + 98 col2, - 78 AS col0
----
46
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + 33 * - - 15 * + + 39 - + CASE 85 WHEN 53 * + 26 THEN - 16 END / + NULLIF ( - 85 + + 46, ( - SUM( - 26 ) ) * COALESCE ( ( 89 ) + - 91 * 50, 62 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT + 33 * - - 15 * + + 39 - + CASE 85 WHEN 53 * + 26 THEN - 16 END / + NULLIF ( - 85 + + 46, ( - SUM ( - 26 ) ) * COALESCE ( ( 89 ) + - 91 * 50, 62 ) ) AS col2
----
NULL

query II rowsort
SELECT + 70 AS col1, 32 AS col0
----
70
32

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT COUNT( * ) AS col1, 57 * MIN( DISTINCT - 10 ) AS col2
----
1
-570

skipif mysql # not compatible
query II rowsort label-450
SELECT COUNT ( * ) AS col1, 57 * MIN ( DISTINCT - 10 ) AS col2
----
1
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT + 1 DIV 8 + + + 27
----
27

skipif mysql # not compatible
query I rowsort label-451
SELECT + 1 / 8 + + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL 68 - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 68 - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT ALL 27 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL 27 / 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT 51 * COUNT( * ) * + + 3
----
153

skipif mysql # not compatible
query I rowsort label-454
SELECT 51 * COUNT ( * ) * + + 3
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT MAX( + 9 ) + - CASE COUNT( * ) WHEN + ( 84 ) + 98 THEN 92 WHEN - COUNT( * ) * 83 THEN 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT MAX ( + 9 ) + - CASE COUNT ( * ) WHEN + ( 84 ) + 98 THEN 92 WHEN - COUNT ( * ) * 83 THEN 92 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-456
SELECT 57 DIV + 27 AS col0, + 55
----
2
55

skipif mysql # not compatible
query II rowsort label-456
SELECT 57 / + 27 AS col0, + 55
----
2
55

onlyif mysql # DIV for integer division: 
query II rowsort label-457
SELECT ALL - 41 AS col1, - 11 DIV ( + 88 ) col1
----
-41
0

skipif mysql # not compatible
query II rowsort label-457
SELECT ALL - 41 AS col1, - 11 / ( + 88 ) col1
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT MIN( ALL - + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-458
SELECT MIN ( ALL - + 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - COALESCE ( 67, + COALESCE ( - 77, - + 65 - - 20, 0 * - 5 + COUNT( * ), - 6, COUNT( * ) ) ) * 25 AS col0
----
-1675

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COALESCE ( 67, + COALESCE ( - 77, - + 65 - - 20, 0 * - 5 + COUNT ( * ), - 6, COUNT ( * ) ) ) * 25 AS col0
----
-1675

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

skipif mysql # not compatible
query I rowsort label-460
SELECT + COUNT ( ALL + 89 ) AS col1
----
1

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

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

query I rowsort
SELECT 76 * 34
----
2584

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT ( - 56 ) - - COUNT( * ) * COALESCE ( ( + 11 ), COUNT( DISTINCT CAST( - 8 AS SIGNED ) ) ) + - ( 36 ) * 26
----
-981

skipif mysql # not compatible
query I rowsort label-464
SELECT ( - 56 ) - - COUNT ( * ) * COALESCE ( ( + 11 ), COUNT ( DISTINCT CAST ( - 8 AS INTEGER ) ) ) + - ( 36 ) * 26
----
-981

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

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

query I rowsort
SELECT ALL - 75 + + 44 + - 1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT 39 * COUNT( * ) - - 16
----
55

skipif mysql # not compatible
query I rowsort label-467
SELECT 39 * COUNT ( * ) - - 16
----
55

query I rowsort
SELECT - CASE - + 93 WHEN - - AVG ( - + 40 ) * - 86 THEN NULLIF ( - 96, + 68 * + 34 ) / 23 - + 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL + MAX( - 44 ) + 61 - - + 61 * - 0
----
17

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + MAX ( - 44 ) + 61 - - + 61 * - 0
----
17

query I rowsort
SELECT ALL - 94 + + + 0
----
-94

query II rowsort
SELECT 86, + 24 AS col0
----
86
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-472
SELECT - - 11 * + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * 18 + - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT - - 11 * + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * 18 + - + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-473
SELECT 54 * 20 + MAX( 61 ) DIV + 71
----
1080

skipif mysql # not compatible
query I rowsort label-473
SELECT 54 * 20 + MAX ( 61 ) / + 71
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - - 39 - - ( - 41 ) * + + NULLIF ( + - 45, + COALESCE ( MAX( 97 ), 31, 39 ) ) * + 13 AS col1
----
24024

skipif mysql # not compatible
query I rowsort label-474
SELECT - - 39 - - ( - 41 ) * + + NULLIF ( + - 45, + COALESCE ( MAX ( 97 ), 31, 39 ) ) * + 13 AS col1
----
24024

query I rowsort
SELECT ALL + 33 * + - 90 * 62
----
-184140

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + 54 * + MIN( DISTINCT - + ( + 57 ) )
----
-3078

skipif mysql # not compatible
query I rowsort label-476
SELECT + 54 * + MIN ( DISTINCT - + ( + 57 ) )
----
-3078

query I rowsort
SELECT - 28 - 87 * - + 27
----
2321

query II rowsort
SELECT 67, 30 + + 87 + - ( + 11 ) AS col1
----
67
106

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - COUNT( * ) - - 52 * - 85 * ( - 80 ) * 28
----
9900799

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - COUNT ( * ) - - 52 * - 85 * ( - 80 ) * 28
----
9900799

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

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL + - 90 - - COUNT( * ) - - 81 col2
----
-8

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL + - 90 - - COUNT ( * ) - - 81 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + SUM( + ( 8 ) )
----
8

skipif mysql # not compatible
query I rowsort label-482
SELECT + SUM ( + ( 8 ) )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-483
SELECT + 9, ( + + 34 ) DIV + 75 - + 37 + + 3 DIV - 17 AS col2
----
9
-37

skipif mysql # not compatible
query II rowsort label-483
SELECT + 9, ( + + 34 ) / + 75 - + 37 + + 3 / - 17 AS col2
----
9
-37

query I rowsort
SELECT - 70 + 91
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT - 23 * - - 38 * - + COUNT( * ) AS col2
----
874

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - 23 * - - 38 * - + COUNT ( * ) AS col2
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL - 5 * + + COUNT( - + 1 ) * - 22 * - COUNT( * ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - 5 * + + COUNT ( - + 1 ) * - 22 * - COUNT ( * ) AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - COUNT( * ) + 7 + + 3 * 6 + - - 40 * - 62 AS col0
----
-2456

skipif mysql # not compatible
query I rowsort label-487
SELECT - COUNT ( * ) + 7 + + 3 * 6 + - - 40 * - 62 AS col0
----
-2456

query I rowsort
SELECT ALL - 33 * + 3 * + 81 AS col0
----
-8019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT 6 * - 17 / + - 88 + - CAST( NULL AS SIGNED ) * - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT 6 * - 17 / + - 88 + - CAST ( NULL AS INTEGER ) * - + 99
----
NULL

query I rowsort
SELECT ALL + 6 * + - 51 AS col0
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + 73 - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-491
SELECT + 73 - + COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 66 ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 66 ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 49 + 61 AS col2
----
110

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

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

query I rowsort
SELECT - 19 * - 87
----
1653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-496
SELECT 43 * 9 * + 64 + - + 89 + - + COUNT( * ) - 23 * - - 54 + NULLIF ( CAST( CASE - COALESCE ( + 63, + 89 + - 6 * 82 ) WHEN NULLIF ( COUNT( * ), 36 * 47 ) THEN 36 + ( - 94 ) END AS SIGNED ), 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT 43 * 9 * + 64 + - + 89 + - + COUNT ( * ) - 23 * - - 54 + NULLIF ( CAST ( CASE - COALESCE ( + 63, + 89 + - 6 * 82 ) WHEN NULLIF ( COUNT ( * ), 36 * 47 ) THEN 36 + ( - 94 ) END AS INTEGER ), 82 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + ( NULLIF ( + 42, + 93 + COUNT( ALL + 52 ) + 82 ) )
----
42

skipif mysql # not compatible
query I rowsort label-497
SELECT + ( NULLIF ( + 42, + 93 + COUNT ( ALL + 52 ) + 82 ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT + 1 DIV - 62 DIV - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-498
SELECT + 1 / - 62 / - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL 77 * + + 55 + + - 45 + - 13 AS col2
----
4177

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL 1 * + - 91 DIV ( - 29 )
----
3

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL 1 * + - 91 / ( - 29 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT CASE + - 31 WHEN 26 + 76 * - 59 THEN NULL ELSE - COUNT( * ) * - - 17 + 44 - 91 END AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-501
SELECT CASE + - 31 WHEN 26 + 76 * - 59 THEN NULL ELSE - COUNT ( * ) * - - 17 + 44 - 91 END AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL + MIN( + 62 ) * 10 * - + 70 * - - MAX( DISTINCT - 31 ) + 38 * 71 col0
----
1348098

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + MIN ( + 62 ) * 10 * - + 70 * - - MAX ( DISTINCT - 31 ) + 38 * 71 col0
----
1348098

query I rowsort
SELECT + 16 * 67 * + + ( - - 21 ) AS col1
----
22512

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT + 85 + SUM( - 62 )
----
23

skipif mysql # not compatible
query I rowsort label-504
SELECT + 85 + SUM ( - 62 )
----
23

query II rowsort
SELECT ALL 55 * + 59 * - + 99 AS col2, + 43 col1
----
-321255
43

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - MAX( + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-506
SELECT - MAX ( + 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + - MAX( DISTINCT - 18 ) * - MAX( 87 ) AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-507
SELECT + - MAX ( DISTINCT - 18 ) * - MAX ( 87 ) AS col1
----
-1566

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT - + 76 * 15, 69 + + - ( - 63 ) + - COUNT( * ) AS col1
----
-1140
131

skipif mysql # not compatible
query II rowsort label-508
SELECT - + 76 * 15, 69 + + - ( - 63 ) + - COUNT ( * ) AS col1
----
-1140
131

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

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

query II rowsort
SELECT DISTINCT + 88 * + 4 - + - 95 * + - 69 * 82 AS col1, - 89
----
-537158
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + COUNT( * ) - + 76 * + - 4 + - 39
----
266

skipif mysql # not compatible
query I rowsort label-511
SELECT + COUNT ( * ) - + 76 * + - 4 + - 39
----
266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-512
SELECT - CAST( NULL AS SIGNED ) / - MIN( DISTINCT - 31 ) - + ( + COALESCE ( + + 78, + 91 * - 89 + + ( 95 + - COUNT( * ) * - AVG ( + 91 ) ), SUM( 49 ) ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT - CAST ( NULL AS INTEGER ) / - MIN ( DISTINCT - 31 ) - + ( + COALESCE ( + + 78, + 91 * - 89 + + ( 95 + - COUNT ( * ) * - AVG ( + 91 ) ), SUM ( 49 ) ) ) * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL SUM( + 40 ) * 16
----
640

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL SUM ( + 40 ) * 16
----
640

query I rowsort
SELECT + 54 * - COALESCE ( - 34, NULLIF ( - 7, - 99 + - + 13 ) )
----
1836

query I rowsort
SELECT - - 50 + + - 31 + - 79 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT + + 95 * + 42 * + - 61 * - - COUNT( * )
----
-243390

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + + 95 * + 42 * + - 61 * - - COUNT ( * )
----
-243390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-517
SELECT ALL - - 33 * 82 * + 0 + - COUNT( + 0 ) + - 27 + - - 39 * COALESCE ( 31 * 7 + - COUNT( * ) DIV + 90, 39 ) AS col0
----
8435

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - - 33 * 82 * + 0 + - COUNT ( + 0 ) + - 27 + - - 39 * COALESCE ( 31 * 7 + - COUNT ( * ) / + 90, 39 ) AS col0
----
8435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-518
SELECT + - COALESCE ( + 75, + - COUNT( * ) ) DIV CAST( + 36 AS SIGNED ) * - 43 * - 0 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT + - COALESCE ( + 75, + - COUNT ( * ) ) / CAST ( + 36 AS INTEGER ) * - 43 * - 0 * - 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT - - 0 DIV + 16 - - 47 * - 26 col2
----
-1222

skipif mysql # not compatible
query I rowsort label-519
SELECT - - 0 / + 16 - - 47 * - 26 col2
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - COUNT( DISTINCT + 65 ) - + 19 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-520
SELECT - COUNT ( DISTINCT + 65 ) - + 19 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL 91 * + MIN( DISTINCT 39 ) * 4
----
14196

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL 91 * + MIN ( DISTINCT 39 ) * 4
----
14196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT ALL CAST( + SUM( DISTINCT - ( 44 ) ) AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL CAST ( + SUM ( DISTINCT - ( 44 ) ) AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT DISTINCT - 92 + + + 49
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - 48 * - 7 + COUNT( * ) + - COUNT( * )
----
336

skipif mysql # not compatible
query I rowsort label-525
SELECT - 48 * - 7 + COUNT ( * ) + - COUNT ( * )
----
336

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT + 17 DIV - COALESCE ( 17, + 57, - + COUNT( * ) * - 59 ) + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + 17 / - COALESCE ( 17, + 57, - + COUNT ( * ) * - 59 ) + COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-528
SELECT ALL - NULLIF ( 90, + 11 ) DIV + 75 + - 77 * - CAST( + COUNT( * ) AS SIGNED ) - 4 + 5
----
77

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - NULLIF ( 90, + 11 ) / + 75 + - 77 * - CAST ( + COUNT ( * ) AS INTEGER ) - 4 + 5
----
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT + 1 DIV + 33 * - 68 + + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + 1 / + 33 * - 68 + + - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL + SUM( + 45 ) * 43
----
1935

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + SUM ( + 45 ) * 43
----
1935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT DISTINCT 41 DIV COUNT( * ) + 30 - + 40 * + 25 AS col2
----
-929

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT 41 / COUNT ( * ) + 30 - + 40 * + 25 AS col2
----
-929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-533
SELECT CAST( NULL AS SIGNED ) AS col2, + 66 * 66
----
NULL
4356

skipif mysql # not compatible
query II rowsort label-533
SELECT CAST ( NULL AS INTEGER ) AS col2, + 66 * 66
----
NULL
4356

query I rowsort
SELECT - 35 * - 24 + + 64 col0
----
904

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL + NULLIF ( - - 90, + COUNT( * ) + + 80 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + NULLIF ( - - 90, + COUNT ( * ) + + 80 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT 63 + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-536
SELECT 63 + + COUNT ( * )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-537
SELECT 7 * + 68 + 97 + + + CASE CAST( NULL AS SIGNED ) WHEN 5 THEN + 21 WHEN - + NULLIF ( + NULLIF ( - 30, 3 * 42 ), - 96 ) * SUM( ALL COALESCE ( 47, 28, + 1 ) ) THEN NULL ELSE NULL END * 87 * 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT 7 * + 68 + 97 + + + CASE CAST ( NULL AS INTEGER ) WHEN 5 THEN + 21 WHEN - + NULLIF ( + NULLIF ( - 30, 3 * 42 ), - 96 ) * SUM ( ALL COALESCE ( 47, 28, + 1 ) ) THEN NULL ELSE NULL END * 87 * 5 col2
----
NULL

query I rowsort
SELECT + - ( + + 60 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT - - ( - - CASE WHEN NOT + 87 BETWEEN NULL AND ( NULL ) THEN + 33 END )
----
NULL

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

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

query I rowsort
SELECT + 36 - 6
----
30

query II rowsort
SELECT - + 9 * - 20 + 43 * + ( - + 72 ) - + 61, 21 - - 54 AS col2
----
-2977
75

query II rowsort
SELECT ALL - 73 AS col2, + 97
----
-73
97

query I rowsort
SELECT DISTINCT - - ( - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-545
SELECT ALL + 20, CAST( NULL AS SIGNED ) + - 63 col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-545
SELECT ALL + 20, CAST ( NULL AS INTEGER ) + - 63 col1
----
20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-546
SELECT DISTINCT - 92 * 91 DIV + + MAX( DISTINCT + 87 ) + + 52 * 20 + + COUNT( - 79 ) AS col0
----
945

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT - 92 * 91 / + + MAX ( DISTINCT + 87 ) + + 52 * 20 + + COUNT ( - 79 ) AS col0
----
945

query II rowsort
SELECT + 54 col0, 35 * + + 32 + + 3 AS col2
----
54
1123

query I rowsort
SELECT DISTINCT + 23 - - 82 AS col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT 55 - 11 + - ( - - ( - COUNT( * ) ) ) DIV - - 86 DIV - COALESCE ( 69, - 94 ) DIV + 35 + + 90 * - COALESCE ( 94 DIV - 91, 75 + 23 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-549
SELECT 55 - 11 + - ( - - ( - COUNT ( * ) ) ) / - - 86 / - COALESCE ( 69, - 94 ) / + 35 + + 90 * - COALESCE ( 94 / - 91, 75 + 23 ) AS col2
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT - - NULLIF ( - 71, + + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-551
SELECT - - NULLIF ( - 71, + + COUNT ( * ) )
----
-71

query I rowsort
SELECT + 52 * 92
----
4784

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

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

query I rowsort
SELECT + 79 + - 48
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT CAST( - - AVG ( - 22 ) AS SIGNED ) * + 41 + - 41 AS col1
----
-943

skipif mysql # not compatible
query I rowsort label-555
SELECT CAST ( - - AVG ( - 22 ) AS INTEGER ) * + 41 + - 41 AS col1
----
-943

query I rowsort
SELECT ALL 9 + + + 5
----
14

query I rowsort
SELECT DISTINCT + 60 + 6
----
66

query II rowsort
SELECT ( + 15 ) + - 72 + - 61 col0, + 26 col2
----
-118
26

query II rowsort
SELECT 2 * - - 4 AS col2, - COALESCE ( + 13, + 39 ) * - 4 AS col2
----
8
52

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT MIN( DISTINCT + 21 ) + + 21
----
42

skipif mysql # not compatible
query I rowsort label-560
SELECT MIN ( DISTINCT + 21 ) + + 21
----
42

query II rowsort
SELECT ALL - 43 + - + 22 AS col0, - 12 AS col2
----
-65
-12

query I rowsort
SELECT ( - + 6 ) + 84 - - - 2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT DISTINCT COUNT( * ) * + + 92 AS col0, MAX( DISTINCT 22 )
----
92
22

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT COUNT ( * ) * + + 92 AS col0, MAX ( DISTINCT 22 )
----
92
22

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL 95 + 57 + + ( - COUNT( * ) ) * + 73
----
79

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL 95 + 57 + + ( - COUNT ( * ) ) * + 73
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL + ( - + CASE - 17 WHEN - 77 + - 32 - - - COUNT( * ) - + 33 + + 5 / + COUNT( * ) THEN - COUNT( * ) ELSE - COUNT( * ) END ) + - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + ( - + CASE - 17 WHEN - 77 + - 32 - - - COUNT ( * ) - + 33 + + 5 / + COUNT ( * ) THEN - COUNT ( * ) ELSE - COUNT ( * ) END ) + - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT - 68 DIV + 75 - + + 11 * 40
----
-440

skipif mysql # not compatible
query I rowsort label-566
SELECT - 68 / + 75 - + + 11 * 40
----
-440

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT 80 * - MAX( ALL + 84 ) + 81 * 39 AS col0, - 5 * COUNT( * )
----
-3561
-5

skipif mysql # not compatible
query II rowsort label-568
SELECT 80 * - MAX ( ALL + 84 ) + 81 * 39 AS col0, - 5 * COUNT ( * )
----
-3561
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - CASE + + 57 WHEN - + 18 / + 95 - + 98 THEN NULL ELSE - - 0 * - 39 + - + ( - COUNT( * ) ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - CASE + + 57 WHEN - + 18 / + 95 - + 98 THEN NULL ELSE - - 0 * - 39 + - + ( - COUNT ( * ) ) END col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT 51 * + + 10 + + MIN( + NULLIF ( ( + 18 ), + CAST( NULL AS SIGNED ) + 4 + - - 34 + - 11 ) ) * 16
----
798

skipif mysql # not compatible
query I rowsort label-570
SELECT 51 * + + 10 + + MIN ( + NULLIF ( ( + 18 ), + CAST ( NULL AS INTEGER ) + 4 + - - 34 + - 11 ) ) * 16
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL - + MIN( ALL - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - + MIN ( ALL - 70 ) AS col2
----
70

query I rowsort
SELECT 9 + + - ( + 2 ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL + MIN( - 80 ) * - - 86
----
-6880

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + MIN ( - 80 ) * - - 86
----
-6880

query I rowsort
SELECT - 61 * 39 + + 89 + 60 + - 95
----
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-575
SELECT SUM( DISTINCT + 63 ) DIV - + 85 * 97 + - 89, + 83 AS col1
----
-89
83

skipif mysql # not compatible
query II rowsort label-575
SELECT SUM ( DISTINCT + 63 ) / - + 85 * 97 + - 89, + 83 AS col1
----
-89
83

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + COALESCE ( - COUNT( * ), - 42 + CASE NULLIF ( - 47, - 73 * + + 71 * - COUNT( * ) ) WHEN + 75 THEN - 60 * + 85 + - 92 ELSE 35 + 58 END, 63 ) + ( + 7 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-576
SELECT + COALESCE ( - COUNT ( * ), - 42 + CASE NULLIF ( - 47, - 73 * + + 71 * - COUNT ( * ) ) WHEN + 75 THEN - 60 * + 85 + - 92 ELSE 35 + 58 END, 63 ) + ( + 7 ) AS col2
----
6

query I rowsort
SELECT + 84 + + 66
----
150

query I rowsort
SELECT + 27 * + + 58 AS col2
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT COUNT( DISTINCT - 15 ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-579
SELECT COUNT ( DISTINCT - 15 ) + 17
----
18

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

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

query I rowsort
SELECT 1 / 81 * - 43 * - + 15 / - ( CASE - AVG ( + 49 ) WHEN + 26 THEN 1 * + 6 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-582
SELECT + 99 * 68 + + 86 + - - CAST( NULL AS DECIMAL ) + + 79 / + + ( + CASE - - 1 WHEN + 70 THEN NULL WHEN ( + COUNT( * ) ) + 90 / - COUNT( * ) THEN - 1 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT + 99 * 68 + + 86 + - - CAST ( NULL AS REAL ) + + 79 / + + ( + CASE - - 1 WHEN + 70 THEN NULL WHEN ( + COUNT ( * ) ) + 90 / - COUNT ( * ) THEN - 1 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT - ( - 30 ) DIV 2
----
15

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - ( - 30 ) / 2
----
15

query I rowsort
SELECT DISTINCT - 0 + - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT 50 * + 6 * - COUNT( * ) col1
----
-300

skipif mysql # not compatible
query I rowsort label-585
SELECT 50 * + 6 * - COUNT ( * ) col1
----
-300

query I rowsort
SELECT ALL - 67 + 47 * - + 66
----
-3169

onlyif mysql # DIV for integer division: 
query II rowsort label-587
SELECT ALL + 9 + - 93 + - + 57 * 69 * 71 DIV 24 * - 47 AS col2, + 75 AS col2
----
546761
75

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL + 9 + - 93 + - + 57 * 69 * 71 / 24 * - 47 AS col2, + 75 AS col2
----
546761
75

query I rowsort
SELECT ALL 50 + - 11 AS col0
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL CASE - 27 WHEN - - 24 * COALESCE ( 12, + 35 - - 89 - 48 * 8 ) * - - MIN( ALL 56 ) * ( - COUNT( * ) * 6 + - MIN( ALL + 65 ) ) THEN 11 END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL CASE - 27 WHEN - - 24 * COALESCE ( 12, + 35 - - 89 - 48 * 8 ) * - - MIN ( ALL 56 ) * ( - COUNT ( * ) * 6 + - MIN ( ALL + 65 ) ) THEN 11 END + 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-591
SELECT NULLIF ( + CASE + 26 WHEN + MAX( DISTINCT 83 ) THEN - 63 DIV - ( + 72 ) ELSE - + 11 + - - 17 END, + NULLIF ( + CAST( NULL AS SIGNED ), 25 * + ( 34 ) ) ) + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-591
SELECT NULLIF ( + CASE + 26 WHEN + MAX ( DISTINCT 83 ) THEN - 63 / - ( + 72 ) ELSE - + 11 + - - 17 END, + NULLIF ( + CAST ( NULL AS INTEGER ), 25 * + ( 34 ) ) ) + COUNT ( * )
----
7

query II rowsort
SELECT - 6 AS col0, + 31 AS col2
----
-6
31

query I rowsort
SELECT ALL - 84 * + 63 * + 15
----
-79380

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT COUNT( * ) - 22 * + - 13
----
287

skipif mysql # not compatible
query I rowsort label-594
SELECT COUNT ( * ) - 22 * + - 13
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT DISTINCT 43 DIV 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT 43 / 17 AS col2
----
2

query I rowsort
SELECT ALL 54 - - - NULLIF ( - 75, + - 16 )
----
129

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

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - CAST ( NULL AS INTEGER ) - + 87 AS col0
----
NULL

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

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

query I rowsort
SELECT + 19 * + 44
----
836

query I rowsort
SELECT ALL 42 * - 14
----
-588

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

skipif mysql # not compatible
query I rowsort label-601
SELECT + MAX ( - 35 )
----
-35

query I rowsort
SELECT COALESCE ( + + 37, - 56, 65 ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT + COUNT( ALL 95 ) * - 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + COUNT ( ALL 95 ) * - 76 AS col1
----
-76

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

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

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

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

query I rowsort
SELECT + + 84 + 98 AS col2
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT DISTINCT 9 * - ( - 67 ) * + 37 + 48 * + - 14 - - COUNT( * ) * - 91 + - CAST( - 21 AS SIGNED ) * - 82 + 19
----
19845

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT 9 * - ( - 67 ) * + 37 + 48 * + - 14 - - COUNT ( * ) * - 91 + - CAST ( - 21 AS INTEGER ) * - 82 + 19
----
19845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT - - CASE 57 WHEN 21 THEN - AVG ( ALL + - 14 ) + 48 + - - 32 END + + - 38 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - - CASE 57 WHEN 21 THEN - AVG ( ALL + - 14 ) + 48 + - - 32 END + + - 38 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 59 + - 36 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + CASE 40 WHEN COUNT( * ) THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-610
SELECT + CASE 40 WHEN COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT - 60 + + 52 + 71 * + 2
----
134

query I rowsort
SELECT - 27 + - + 34 AS col1
----
-61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-614
SELECT DISTINCT - 43 + + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / + SUM( DISTINCT - - ( + + 81 ) ) AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-614
SELECT DISTINCT - 43 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - - ( + + 81 ) ) AS col1
----
-42
NULL

query I rowsort
SELECT ALL + 88 + + 61 - + ( + 50 ) AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT NULLIF ( + 60, - CASE 85 WHEN + 92 - - 72 - - MIN( - 39 ) + + 73 * - - 76 - ( COUNT( * ) ) + + COUNT( * ) * 15 THEN 28 - 66 WHEN + 46 * - 74 THEN + COUNT( * ) END + 41 )
----
60

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT NULLIF ( + 60, - CASE 85 WHEN + 92 - - 72 - - MIN ( - 39 ) + + 73 * - - 76 - ( COUNT ( * ) ) + + COUNT ( * ) * 15 THEN 28 - 66 WHEN + 46 * - 74 THEN + COUNT ( * ) END + 41 )
----
60

query I rowsort
SELECT DISTINCT + 43 - - - 62 * - + 8 * - + 14 + 22 AS col0
----
-6879

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT COALESCE ( + 78, + - 85 + - 76 + - COUNT( * ) + + 76 + + 53 * - 42, - - 55 ) * + - 16
----
-1248

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT COALESCE ( + 78, + - 85 + - 76 + - COUNT ( * ) + + 76 + + 53 * - 42, - - 55 ) * + - 16
----
-1248

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-620
SELECT ALL 2 - + NULLIF ( - 80, - 94 / - 90 * + CAST( NULL AS DECIMAL ) )
----
82

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 2 - + NULLIF ( - 80, - 94 / - 90 * + CAST ( NULL AS REAL ) )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT - CASE ( + 98 ) WHEN + + 41 - + 5 THEN NULL ELSE ( 16 ) DIV - COALESCE ( + + 67, - + 87 + - 76 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT - CASE ( + 98 ) WHEN + + 41 - + 5 THEN NULL ELSE ( 16 ) / - COALESCE ( + + 67, - + 87 + - 76 ) END AS col0
----
0

query I rowsort
SELECT + 43 * + + 9
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - 54 + MAX( DISTINCT - + 2 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-623
SELECT - 54 + MAX ( DISTINCT - + 2 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-624
SELECT - CASE + COUNT( * ) WHEN - 18 + + - 50 THEN + + 62 + + 36 ELSE NULL END AS col0, + 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-624
SELECT - CASE + COUNT ( * ) WHEN - 18 + + - 50 THEN + + 62 + + 36 ELSE NULL END AS col0, + 30 AS col1
----
NULL
30

query I rowsort
SELECT - 30 + + + 83 + - 38
----
15

query I rowsort
SELECT - 48 + - 87 AS col0
----
-135

query I rowsort
SELECT - 7 * - - NULLIF ( + 23, - + 90 ) AS col1
----
-161

query I rowsort
SELECT - CASE 30 WHEN + 38 * 52 THEN 29 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT - COUNT( * ) * 42 * - - 92 AS col1
----
-3864

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - COUNT ( * ) * 42 * - - 92 AS col1
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT ALL 55 DIV - 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL 55 / - 22 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-631
SELECT + 25 DIV 57 * 7 + + + 91 - + COUNT( 91 ) + - - CAST( COUNT( ALL 27 ) AS SIGNED ) DIV + 20
----
90

skipif mysql # not compatible
query I rowsort label-631
SELECT + 25 / 57 * 7 + + + 91 - + COUNT ( 91 ) + - - CAST ( COUNT ( ALL 27 ) AS INTEGER ) / + 20
----
90

query I rowsort
SELECT + 82 * - - 60 AS col0
----
4920

query II rowsort
SELECT 53, 6 + + - 1 AS col2
----
53
5

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL - 89 / - 51 + + COUNT( DISTINCT - 66 ) + - - COUNT( * ) / MAX( + - 47 ) * 43 + COUNT( * ) + CASE - - COUNT( * ) WHEN 50 + + 20 THEN NULL WHEN 16 + - 86 THEN 82 - 91 WHEN - 23 / ( 86 * 39 ) THEN NULL END * + COUNT( * ) + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - 89 / - 51 + + COUNT ( DISTINCT - 66 ) + - - COUNT ( * ) / MAX ( + - 47 ) * 43 + COUNT ( * ) + CASE - - COUNT ( * ) WHEN 50 + + 20 THEN NULL WHEN 16 + - 86 THEN 82 - 91 WHEN - 23 / ( 86 * 39 ) THEN NULL END * + COUNT ( * ) + 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT + CASE CAST( - - 83 AS SIGNED ) WHEN - AVG ( + - ( + + 94 ) ) * + 19 THEN - MAX( DISTINCT - 47 ) WHEN - 19 * - 85 + 3 * - 45 THEN + 38 WHEN 23 THEN - 36 + 93 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-635
SELECT + CASE CAST ( - - 83 AS INTEGER ) WHEN - AVG ( + - ( + + 94 ) ) * + 19 THEN - MAX ( DISTINCT - 47 ) WHEN - 19 * - 85 + 3 * - 45 THEN + 38 WHEN 23 THEN - 36 + 93 ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - MAX( DISTINCT - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-636
SELECT - MAX ( DISTINCT - 30 )
----
30

query I rowsort
SELECT + + 39 * + 82 + 53
----
3251

query I rowsort
SELECT + - 22 + - + 74 + - 86
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT ALL + COALESCE ( + 90, - CAST( - ( - + NULLIF ( + 55, ( 47 ) / 9 ) ) AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + COALESCE ( + 90, - CAST ( - ( - + NULLIF ( + 55, ( 47 ) / 9 ) ) AS INTEGER ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL COUNT( * ) * - + COUNT( * ) + - + 28 * + 15 + - + 21 + + 82 + - 41 - + 30 AS col0
----
-431

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + - + 28 * + 15 + - + 21 + + 82 + - 41 - + 30 AS col0
----
-431

query I rowsort
SELECT + + 47 + - + 67 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL 7 * + 39 + - 52 * + 18 - + - 4 + + - SUM( ALL + 33 ) + + ( - 92 ) + - + 85 * + COUNT( ALL 66 ) AS col2
----
-869

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL 7 * + 39 + - 52 * + 18 - + - 4 + + - SUM ( ALL + 33 ) + + ( - 92 ) + - + 85 * + COUNT ( ALL 66 ) AS col2
----
-869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT + - 72 DIV - MAX( 17 )
----
4

skipif mysql # not compatible
query I rowsort label-643
SELECT + - 72 / - MAX ( 17 )
----
4

query I rowsort
SELECT ALL + + 78 * - 71 + + 51
----
-5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-645
SELECT ALL + 7, + COUNT( * ) * - CAST( - COALESCE ( + 43, 15 ) AS SIGNED ) AS col2
----
7
43

skipif mysql # not compatible
query II rowsort label-645
SELECT ALL + 7, + COUNT ( * ) * - CAST ( - COALESCE ( + 43, 15 ) AS INTEGER ) AS col2
----
7
43

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT + - 10 AS col0, - 51 * COUNT( * ) + - 30 + 5 + 1 AS col1
----
-10
-75

skipif mysql # not compatible
query II rowsort label-646
SELECT + - 10 AS col0, - 51 * COUNT ( * ) + - 30 + 5 + 1 AS col1
----
-10
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT + COUNT( * ) + + - 57 DIV 85 - + - 47
----
48

skipif mysql # not compatible
query I rowsort label-647
SELECT + COUNT ( * ) + + - 57 / 85 - + - 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT - NULLIF ( + 37, ( 71 ) ) * - COUNT( * ) * - 9 * 60 + + + NULLIF ( + 77, + - 84 * + COUNT( * ) + ( 73 + 73 * + 84 ) ) + + 81 * - 71 + 1
----
-25653

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT - NULLIF ( + 37, ( 71 ) ) * - COUNT ( * ) * - 9 * 60 + + + NULLIF ( + 77, + - 84 * + COUNT ( * ) + ( 73 + 73 * + 84 ) ) + + 81 * - 71 + 1
----
-25653

query II rowsort
SELECT + 2 AS col1, 81 * + - COALESCE ( - + 74, - + 31 * + 78 )
----
2
5994

query I rowsort
SELECT ALL - 24 * - 94 + 68
----
2324

query I rowsort
SELECT ALL ( - 77 ) AS col2
----
-77

query I rowsort
SELECT - 1 * 43 + - 53
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT 13 * - SUM( - 23 ) - - 62 AS col2
----
361

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT 13 * - SUM ( - 23 ) - - 62 AS col2
----
361

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-654
SELECT ALL 79 DIV + 55 AS col2, COUNT( DISTINCT + 3 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL 79 / + 55 AS col2, COUNT ( DISTINCT + 3 ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - 91 + - 39 + - COUNT( * ) + + - COUNT( * ) + - 17 * + 31 AS col0
----
-659

skipif mysql # not compatible
query I rowsort label-655
SELECT - 91 + - 39 + - COUNT ( * ) + + - COUNT ( * ) + - 17 * + 31 AS col0
----
-659

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT DISTINCT + 11 * 25 AS col2, + CASE - 43 WHEN + CASE - COUNT( * ) WHEN - 42 THEN + - 14 * - - 7 + - + 56 END + + 34 THEN - 66 * COUNT( * ) WHEN - 58 THEN + CASE CASE NULLIF ( + COUNT( * ), 95 + NULLIF ( 78, + NULLIF ( COUNT( * ), 21 / + SUM( DISTINCT 85 * - 57 ) + 58 / COUNT( ALL 15 / + COALESCE ( 29 * 10, 70 / + 92, 80 - 92 ) ) ) - - 14 ) * - AVG ( 67 ) ) WHEN 26 THEN - COUNT( * ) ELSE + 45 END WHEN - 89 THEN - 72 * 39 - 10 WHEN 31 THEN + COUNT( * ) + - 24 END * + 68 ELSE - 3 END * 71 + 65
----
275
-148

skipif mysql # not compatible
query II rowsort label-656
SELECT DISTINCT + 11 * 25 AS col2, + CASE - 43 WHEN + CASE - COUNT ( * ) WHEN - 42 THEN + - 14 * - - 7 + - + 56 END + + 34 THEN - 66 * COUNT ( * ) WHEN - 58 THEN + CASE CASE NULLIF ( + COUNT ( * ), 95 + NULLIF ( 78, + NULLIF ( COUNT ( * ), 21 / + SUM ( DISTINCT 85 * - 57 ) + 58 / COUNT ( ALL 15 / + COALESCE ( 29 * 10, 70 / + 92, 80 - 92 ) ) ) - - 14 ) * - AVG ( 67 ) ) WHEN 26 THEN - COUNT ( * ) ELSE + 45 END WHEN - 89 THEN - 72 * 39 - 10 WHEN 31 THEN + COUNT ( * ) + - 24 END * + 68 ELSE - 3 END * 71 + 65
----
275
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT + 39 * - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + 39 * - + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT ALL COALESCE ( + 24, - SUM( ALL + - 56 ), - - AVG ( DISTINCT 93 ) * - - ( + 66 ) DIV + 57 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL COALESCE ( + 24, - SUM ( ALL + - 56 ), - - AVG ( DISTINCT 93 ) * - - ( + 66 ) / + 57 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-659
SELECT 30 * - 20 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
-600
NULL

skipif mysql # not compatible
query II rowsort label-659
SELECT 30 * - 20 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
-600
NULL

query I rowsort
SELECT 36 + - 89
----
-53

query I rowsort
SELECT 46 + + 74 col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-662
SELECT 29 * + + 43, + NULLIF ( + + 46, - 94 ) AS col0, + COUNT( * ) DIV - 24 * 74 + 24 + 3 col0
----
1247
46
27

skipif mysql # not compatible
query III rowsort label-662
SELECT 29 * + + 43, + NULLIF ( + + 46, - 94 ) AS col0, + COUNT ( * ) / - 24 * 74 + 24 + 3 col0
----
1247
46
27

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT + 67 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + 67 / + 70
----
0

query I rowsort
SELECT ALL 89 * - COALESCE ( + 90, ( - - 94 ), + - 93 ) * + + 66 col0
----
-528660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL - + CAST( - MAX( ALL - 6 ) AS SIGNED ) + + 29 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - + CAST ( - MAX ( ALL - 6 ) AS INTEGER ) + + 29 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-666
SELECT DISTINCT - + 10 + 35 / - MIN( 89 ) * CAST( NULL AS SIGNED ) - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - + 10 + 35 / - MIN ( 89 ) * CAST ( NULL AS INTEGER ) - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - + NULLIF ( - - 96, COUNT( * ) * + 88 + - 63 )
----
-96

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - + NULLIF ( - - 96, COUNT ( * ) * + 88 + - 63 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-668
SELECT - 80 * - 69 + 73 * - NULLIF ( - - 80, - COUNT( * ) * MAX( DISTINCT - 46 ) * CAST( NULL AS SIGNED ) + 21 + - 96 ) * - 22 + ( + 64 )
----
134064

skipif mysql # not compatible
query I rowsort label-668
SELECT - 80 * - 69 + 73 * - NULLIF ( - - 80, - COUNT ( * ) * MAX ( DISTINCT - 46 ) * CAST ( NULL AS INTEGER ) + 21 + - 96 ) * - 22 + ( + 64 )
----
134064

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT 76 * - 61 + COALESCE ( + 61, 21 * + 63 + - 94 * + + COUNT( * ) * + + 50 ) - - 55, + 62 AS col1
----
-4520
62

skipif mysql # not compatible
query II rowsort label-669
SELECT 76 * - 61 + COALESCE ( + 61, 21 * + 63 + - 94 * + + COUNT ( * ) * + + 50 ) - - 55, + 62 AS col1
----
-4520
62

query I rowsort
SELECT + 89 - - 20 - + + 33 + 41
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - - CASE - 14 WHEN - + 25 - + + 47 * 81 THEN NULL WHEN + 61 THEN 73 WHEN - COUNT( * ) THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - - CASE - 14 WHEN - + 25 - + + 47 * 81 THEN NULL WHEN + 61 THEN 73 WHEN - COUNT ( * ) THEN 67 END
----
NULL

query I rowsort
SELECT ALL - 82 + 4 AS col0
----
-78

query I rowsort
SELECT DISTINCT - COALESCE ( + 86, - 54 ) AS col2
----
-86

query I rowsort
SELECT ALL 69 + 57 * + - 40 + + + 92 * - ( - + 1 ) AS col2
----
-2119

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL COUNT( * ) + - - 25 + - 35
----
-9

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL COUNT ( * ) + - - 25 + - 35
----
-9

query I rowsort
SELECT + - ( + + 9 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + - CASE - - COUNT( * ) WHEN 97 THEN + NULLIF ( - - ( - - AVG ( + + 90 ) ), - 10 ) + + + 5 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT + - CASE - - COUNT ( * ) WHEN 97 THEN + NULLIF ( - - ( - - AVG ( + + 90 ) ), - 10 ) + + + 5 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT + CASE + - NULLIF ( - COUNT( * ), + 71 ) WHEN + 92 THEN + 12 ELSE NULL END / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT + CASE + - NULLIF ( - COUNT ( * ), + 71 ) WHEN + 92 THEN + 12 ELSE NULL END / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + COALESCE ( COUNT( * ), - 5 ) * 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-680
SELECT + COALESCE ( COUNT ( * ), - 5 ) * 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + 89 * - NULLIF ( - + 79, - 30 ) - + - ( + - COUNT( DISTINCT - 76 ) )
----
7030

skipif mysql # not compatible
query I rowsort label-681
SELECT + 89 * - NULLIF ( - + 79, - 30 ) - + - ( + - COUNT ( DISTINCT - 76 ) )
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT ALL 58 * COUNT( * ) * - 25
----
-1450

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL 58 * COUNT ( * ) * - 25
----
-1450

query I rowsort
SELECT DISTINCT 44 - 78
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT - CASE - 57 WHEN + 66 * + COUNT( * ) THEN - - 97 WHEN + 63 THEN NULL WHEN COALESCE ( - SUM( + 95 ), + 75 * 49 * + 73 ) THEN 99 / 46 ELSE NULL END * + 32 + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT - CASE - 57 WHEN + 66 * + COUNT ( * ) THEN - - 97 WHEN + 63 THEN NULL WHEN COALESCE ( - SUM ( + 95 ), + 75 * 49 * + 73 ) THEN 99 / 46 ELSE NULL END * + 32 + - 15 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT 38 * + COUNT ( * ) AS col1
----
38

query II rowsort
SELECT ALL 47 AS col0, + 25
----
47
25

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT DISTINCT + 71 DIV + + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + 71 / + + 35 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-689
SELECT MAX( - 87 ) * + 29 * - + COALESCE ( + + 94, - + 55 + - 61, + 97 + 93 DIV + + 81 + - - CASE + 54 WHEN - - CASE - 31 WHEN - NULLIF ( - 97, 41 ) THEN - 1 ELSE NULL END + + ( 2 + 47 DIV 34 ) THEN 4 WHEN 38 + 2 THEN ( + 26 ) + + 4 END + 15 ) + - 76 AS col2
----
237086

skipif mysql # not compatible
query I rowsort label-689
SELECT MAX ( - 87 ) * + 29 * - + COALESCE ( + + 94, - + 55 + - 61, + 97 + 93 / + + 81 + - - CASE + 54 WHEN - - CASE - 31 WHEN - NULLIF ( - 97, 41 ) THEN - 1 ELSE NULL END + + ( 2 + 47 / 34 ) THEN 4 WHEN 38 + 2 THEN ( + 26 ) + + 4 END + 15 ) + - 76 AS col2
----
237086

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT COUNT( * ) + - COUNT( * ) + - + COUNT( * ) * NULLIF ( 28, - COUNT( * ) ) - - COUNT( ALL 92 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-690
SELECT COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) * NULLIF ( 28, - COUNT ( * ) ) - - COUNT ( ALL 92 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT 39 - + COUNT( DISTINCT + 48 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-691
SELECT 39 - + COUNT ( DISTINCT + 48 ) AS col2
----
38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-693
SELECT 49 + - + 37 DIV - COALESCE ( + + 50, - CASE - + 40 WHEN 84 * + + AVG ( ALL + 85 ) THEN - 15 END ) + + COUNT( * ) * + + 97 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-693
SELECT 49 + - + 37 / - COALESCE ( + + 50, - CASE - + 40 WHEN 84 * + + AVG ( ALL + 85 ) THEN - 15 END ) + + COUNT ( * ) * + + 97 AS col0
----
146

query II rowsort
SELECT - 15 AS col2, - 46
----
-15
-46

query II rowsort
SELECT - 68, 45 + - - 90 AS col0
----
-68
135

query I rowsort
SELECT 39 + 49 * - 51
----
-2460

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

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

query I rowsort
SELECT ALL 83 + - + 64
----
19

query I rowsort
SELECT ALL + 63 * 64
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT 55 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-700
SELECT 55 / - 94
----
0

query I rowsort
SELECT ( + 99 ) + - 49 * + 87
----
-4164

query I rowsort
SELECT 61 - + + 5 AS col2
----
56

query I rowsort
SELECT + 51 + 81 + - 28
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-704
SELECT - COALESCE ( + 43, - 88, + + 20 ) AS col2, - MIN( ALL + 79 ) DIV + - 48 AS col0
----
-43
1

skipif mysql # not compatible
query II rowsort label-704
SELECT - COALESCE ( + 43, - 88, + + 20 ) AS col2, - MIN ( ALL + 79 ) / + - 48 AS col0
----
-43
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-705
SELECT ALL - COUNT( * ) + - + COUNT( * ) + - ( - NULLIF ( - 63, + COUNT( * ) + - + ( + - ( + - 54 ) ) ) ) DIV + 36 - + 76 - - - 6
----
-85

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) + - ( - NULLIF ( - 63, + COUNT ( * ) + - + ( + - ( + - 54 ) ) ) ) / + 36 - + 76 - - - 6
----
-85

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

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL COUNT ( * ) col1, - 47
----
1
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT COALESCE ( - 39, + 7 ) DIV + - 7 + + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-707
SELECT COALESCE ( - 39, + 7 ) / + - 7 + + + COUNT ( * ) AS col2
----
6

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

skipif mysql # not compatible
query I rowsort label-708
SELECT + COUNT ( * ) / - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT 32 + COUNT( * ) - - 53 * + - 19
----
-974

skipif mysql # not compatible
query I rowsort label-709
SELECT 32 + COUNT ( * ) - - 53 * + - 19
----
-974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 29 + - 87 + + + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 29 + - 87 + + + 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-711
SELECT - - 91, COUNT( * ) * - 91 col2
----
91
-91

skipif mysql # not compatible
query II rowsort label-711
SELECT - - 91, COUNT ( * ) * - 91 col2
----
91
-91

query I rowsort
SELECT ALL 57 + - + 22
----
35

query I rowsort
SELECT - 36 * + 20 + + 4 + - 37 + + 48 * 9 + + ( - - 16 ) - + ( + + 21 ) + - - 65 AS col1
----
-261

query I rowsort
SELECT ALL - 94 * 88
----
-8272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-715
SELECT DISTINCT - CAST( + 52 AS SIGNED ) / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - CAST ( + 52 AS INTEGER ) / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-716
SELECT ALL 40 * + COUNT( * ) * + + 90 + - 46 AS col1, 24 AS col2
----
3554
24

skipif mysql # not compatible
query II rowsort label-716
SELECT ALL 40 * + COUNT ( * ) * + + 90 + - 46 AS col1, 24 AS col2
----
3554
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT DISTINCT + NULLIF ( + 91, CAST( NULL AS SIGNED ) ) * CAST( + 58 AS SIGNED ) col1
----
5278

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + NULLIF ( + 91, CAST ( NULL AS INTEGER ) ) * CAST ( + 58 AS INTEGER ) col1
----
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT 39 / 71 + - CASE + COUNT( * ) WHEN - - 27 + + - 91 - + 90 + 47 - + CAST( NULL AS SIGNED ) + - 75 + + - 88 + 85 * + 47 * - ( + 92 ) THEN + 72 - COUNT( * ) ELSE 60 + CAST( NULL AS SIGNED ) * - 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT 39 / 71 + - CASE + COUNT ( * ) WHEN - - 27 + + - 91 - + 90 + 47 - + CAST ( NULL AS INTEGER ) + - 75 + + - 88 + 85 * + 47 * - ( + 92 ) THEN + 72 - COUNT ( * ) ELSE 60 + CAST ( NULL AS INTEGER ) * - 54 END AS col2
----
NULL

query I rowsort
SELECT + ( - 6 ) + - 86 + 40 AS col0
----
-52

query I rowsort
SELECT ALL 40 * - 14 * - 51 - - - 34
----
28526

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT + COALESCE ( 11, 6 * + + 30 * + COALESCE ( 40, - 87 * 32 ) * - - MIN( DISTINCT 40 ), + 70 + + 98 )
----
11

skipif mysql # not compatible
query I rowsort label-721
SELECT + COALESCE ( 11, 6 * + + 30 * + COALESCE ( 40, - 87 * 32 ) * - - MIN ( DISTINCT 40 ), + 70 + + 98 )
----
11

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

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

query I rowsort
SELECT DISTINCT - ( - 10 )
----
10

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

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

query I rowsort
SELECT DISTINCT + 39 * + 44 col2
----
1716

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

skipif mysql # not compatible
query I rowsort label-726
SELECT + 67 * + - COUNT ( ALL + 82 ) AS col2
----
-67

query I rowsort
SELECT ALL + CASE - 90 WHEN - COALESCE ( + - 89, + - AVG ( DISTINCT 53 ) + + - 80 * - 47, + - 70 ) THEN 57 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-728
SELECT + 20 + + COUNT( * ) - 64 + 9 AS col0, - CAST( NULL AS SIGNED )
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-728
SELECT + 20 + + COUNT ( * ) - 64 + 9 AS col0, - CAST ( NULL AS INTEGER )
----
-34
NULL

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

skipif mysql # not compatible
query I rowsort label-729
SELECT - 31 / - + COUNT ( * ) col2
----
31

query I rowsort
SELECT + 37 * + 61 AS col0
----
2257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT + 96 + - 9 - - + 34 * + - CAST( NULL AS SIGNED ) * 85 - - 20 / + CAST( - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT + 96 + - 9 - - + 34 * + - CAST ( NULL AS INTEGER ) * 85 - - 20 / + CAST ( - 19 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-732
SELECT - MAX( 43 ) AS col0, + 44 DIV + + 96 AS col2
----
-43
0

skipif mysql # not compatible
query II rowsort label-732
SELECT - MAX ( 43 ) AS col0, + 44 / + + 96 AS col2
----
-43
0

query I rowsort
SELECT ALL 78 * - - 66 AS col0
----
5148

query I rowsort
SELECT + 1 + + 1 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT ALL ( - 61 ) + + NULLIF ( - - 87, - CAST( + COALESCE ( 84, - 79 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) - - 81 + + 98 + + 23 + - 51 ) + 13 * 89
----
1183

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL ( - 61 ) + + NULLIF ( - - 87, - CAST ( + COALESCE ( 84, - 79 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - 81 + + 98 + + 23 + - 51 ) + 13 * 89
----
1183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - COALESCE ( + - COUNT( - + NULLIF ( - + 96, + 12 / ( + + 56 ) ) ), - 9 * 5 * + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-737
SELECT - COALESCE ( + - COUNT ( - + NULLIF ( - + 96, + 12 / ( + + 56 ) ) ), - 9 * 5 * + 32 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT + 65 DIV + NULLIF ( - 3, - 55 * - + 84 * + + COUNT( * ) - COUNT( * ) + SUM( + 54 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-738
SELECT + 65 / + NULLIF ( - 3, - 55 * - + 84 * + + COUNT ( * ) - COUNT ( * ) + SUM ( + 54 ) ) AS col0
----
-21

query I rowsort
SELECT + 71 + + 8
----
79

query I rowsort
SELECT DISTINCT 77 + + 94 + 72
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + ( 99 ) + - COUNT( * ) + + 87 col2
----
185

skipif mysql # not compatible
query I rowsort label-741
SELECT + ( 99 ) + - COUNT ( * ) + + 87 col2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT - 18 + - 56 DIV - 42
----
-17

skipif mysql # not compatible
query I rowsort label-742
SELECT - 18 + - 56 / - 42
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL - COUNT( * ) + - + 44 + + - ( - 40 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - COUNT ( * ) + - + 44 + + - ( - 40 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT ALL - + 17 * + 31 * - - 70 - - + 59 - + 81 * + 98 + - + 87 AS col1, + 47 * + COUNT( * )
----
-44856
47

skipif mysql # not compatible
query II rowsort label-744
SELECT ALL - + 17 * + 31 * - - 70 - - + 59 - + 81 * + 98 + - + 87 AS col1, + 47 * + COUNT ( * )
----
-44856
47

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT 73 - COUNT( * ) * - ( 62 )
----
135

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT 73 - COUNT ( * ) * - ( 62 )
----
135

query I rowsort
SELECT - + ( ( 73 ) )
----
-73

query I rowsort
SELECT - + 10 * + 5
----
-50

query I rowsort
SELECT + 74 * + + 50
----
3700

query I rowsort
SELECT DISTINCT + NULLIF ( 65, + - 14 ) AS col0
----
65

query I rowsort
SELECT + + 40 * 15 - + + 7
----
593

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT + NULLIF ( + - COUNT( DISTINCT - - 38 ), - - 22 ), + 22 AS col1
----
-1
22

skipif mysql # not compatible
query II rowsort label-751
SELECT + NULLIF ( + - COUNT ( DISTINCT - - 38 ), - - 22 ), + 22 AS col1
----
-1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-752
SELECT DISTINCT + CASE - 94 WHEN 81 + CASE - CAST( NULL AS SIGNED ) WHEN 3 THEN 15 WHEN COUNT( * ) THEN 11 WHEN - - 3 + 59 * + + 79 * - 0 THEN - + 59 * - MAX( 20 ) * - COUNT( * ) ELSE - COALESCE ( 17, 97 * + COUNT( ALL ( ( 52 ) ) ), COUNT( * ) ) END * + 56 THEN 2 WHEN - 24 - + ( CAST( 31 AS DECIMAL ) - 13 ) * 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + CASE - 94 WHEN 81 + CASE - CAST ( NULL AS INTEGER ) WHEN 3 THEN 15 WHEN COUNT ( * ) THEN 11 WHEN - - 3 + 59 * + + 79 * - 0 THEN - + 59 * - MAX ( 20 ) * - COUNT ( * ) ELSE - COALESCE ( 17, 97 * + COUNT ( ALL ( ( 52 ) ) ), COUNT ( * ) ) END * + 56 THEN 2 WHEN - 24 - + ( CAST ( 31 AS REAL ) - 13 ) * 19 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + MAX( DISTINCT 0 ) * - 53 + - ( + NULLIF ( + 39, COUNT( * ) ) ) + - 26 * + 59 AS col0
----
-1573

skipif mysql # not compatible
query I rowsort label-753
SELECT + MAX ( DISTINCT 0 ) * - 53 + - ( + NULLIF ( + 39, COUNT ( * ) ) ) + - 26 * + 59 AS col0
----
-1573

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT - 1 * MIN( 67 ) - + - NULLIF ( + - 68, + 29 * + 53 ) - 28 AS col0, - COUNT( * )
----
-163
-1

skipif mysql # not compatible
query II rowsort label-754
SELECT - 1 * MIN ( 67 ) - + - NULLIF ( + - 68, + 29 * + 53 ) - 28 AS col0, - COUNT ( * )
----
-163
-1

query I rowsort
SELECT ALL + ( - 89 ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT - 56 * - + 50 DIV - 10
----
-280

skipif mysql # not compatible
query I rowsort label-756
SELECT - 56 * - + 50 / - 10
----
-280

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

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

query I rowsort
SELECT - 90 + - 48
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT CASE - MIN( 92 ) WHEN 36 THEN - + 86 * - + 36 WHEN - MAX( + 84 ) + - - COUNT( * ) * - - 74 THEN NULL WHEN - - CASE + COUNT( * ) WHEN + + COUNT( DISTINCT - + ( + 58 ) ) * + 97 THEN 18 END THEN + 41 * 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT CASE - MIN ( 92 ) WHEN 36 THEN - + 86 * - + 36 WHEN - MAX ( + 84 ) + - - COUNT ( * ) * - - 74 THEN NULL WHEN - - CASE + COUNT ( * ) WHEN + + COUNT ( DISTINCT - + ( + 58 ) ) * + 97 THEN 18 END THEN + 41 * 41 END AS col0
----
NULL

query I rowsort
SELECT + 14 * 58
----
812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT ALL + 0 * + 53 * CASE 96 WHEN 57 THEN NULL WHEN + 6 * 25 + - CAST( - COUNT( * ) AS SIGNED ) * 36 THEN + COALESCE ( - + 76, + COUNT( * ), 86 ) / - ( 86 ) + - 64 END + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + 0 * + 53 * CASE 96 WHEN 57 THEN NULL WHEN + 6 * 25 + - CAST ( - COUNT ( * ) AS INTEGER ) * 36 THEN + COALESCE ( - + 76, + COUNT ( * ), 86 ) / - ( 86 ) + - 64 END + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT - CAST( NULL AS SIGNED ) * + 61 + + 6 + + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT - CAST ( NULL AS INTEGER ) * + 61 + + 6 + + - 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 39 * - 25 + - + ( ( 55 ) ) AS col2
----
920

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT - 78 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-764
SELECT - 78 / - 85 AS col2
----
0

query I rowsort
SELECT ALL + 6 * - + NULLIF ( 29, - 66 ) + + - 66 AS col0
----
-240

query II rowsort
SELECT ALL - 23 * - + 5 + - - 49 AS col1, + 97
----
164
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-767
SELECT - 24 * CASE - 25 WHEN - 14 * - 92 * - MIN( ALL 25 ) + + + 16 THEN 7 * + - 28 WHEN + COUNT( * ) * + ( COUNT( * ) ) + + COALESCE ( - + CASE - 35 WHEN 80 + - 37 THEN 68 + - 80 ELSE NULL END, - NULLIF ( + 64, 25 * - CAST( NULLIF ( ( + 4 ), + 86 + CASE - 50 + - COUNT( * ) WHEN 91 * + 52 THEN 18 END ) AS DECIMAL ) ) + 78 ) + + 76 THEN + 42 * COUNT( 82 ) WHEN - COUNT( * ) * 36 + + 93 THEN NULL WHEN 8 THEN NULL ELSE + COUNT( * ) END
----
-24

skipif mysql # not compatible
query I rowsort label-767
SELECT - 24 * CASE - 25 WHEN - 14 * - 92 * - MIN ( ALL 25 ) + + + 16 THEN 7 * + - 28 WHEN + COUNT ( * ) * + ( COUNT ( * ) ) + + COALESCE ( - + CASE - 35 WHEN 80 + - 37 THEN 68 + - 80 ELSE NULL END, - NULLIF ( + 64, 25 * - CAST ( NULLIF ( ( + 4 ), + 86 + CASE - 50 + - COUNT ( * ) WHEN 91 * + 52 THEN 18 END ) AS REAL ) ) + 78 ) + + 76 THEN + 42 * COUNT ( 82 ) WHEN - COUNT ( * ) * 36 + + 93 THEN NULL WHEN 8 THEN NULL ELSE + COUNT ( * ) END
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT 71 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 71 / - 65
----
-1

query I rowsort
SELECT ALL 30 + - 71 * 49 * 49
----
-170441

onlyif mysql # DIV for integer division: 
query II rowsort label-770
SELECT ALL - 50 DIV - - 70 * + + 91 AS col0, 64 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL - 50 / - - 70 * + + 91 AS col0, 64 AS col2
----
0
64

query I rowsort
SELECT + 60 + + 48 * 37
----
1836

query I rowsort
SELECT ALL - CASE 31 WHEN COALESCE ( - + 40, NULLIF ( + 3, + 79 * - + NULLIF ( 32, - ( - 97 ) ) ) * 71 ) THEN NULL ELSE 76 END AS col1
----
-76

query II rowsort
SELECT DISTINCT - + 11 * - + 18 * - 8 AS col1, + 58 + + - 28 AS col1
----
-1584
30

query I rowsort
SELECT ALL + 58 - - ( - + 79 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - + COALESCE ( SUM( 0 ), - - 87 * - 45 + 78 + + 87 * - - ( + 35 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-775
SELECT - + COALESCE ( SUM ( 0 ), - - 87 * - 45 + 78 + + 87 * - - ( + 35 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT ALL + 83 * - COUNT( * ) * + - 9, 56 * + CASE - 29 WHEN - 75 THEN 53 * - + 14 + + + ( + COUNT( * ) ) END AS col2
----
747
NULL

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL + 83 * - COUNT ( * ) * + - 9, 56 * + CASE - 29 WHEN - 75 THEN 53 * - + 14 + + + ( + COUNT ( * ) ) END AS col2
----
747
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT + COUNT( * ) - - NULLIF ( + 91, COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT + COUNT ( * ) - - NULLIF ( + 91, COUNT ( * ) ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-778
SELECT - 36 + + - COUNT( * ) + + CAST( NULL AS SIGNED ), + 17 + + 90 AS col0
----
NULL
107

skipif mysql # not compatible
query II rowsort label-778
SELECT - 36 + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ), + 17 + + 90 AS col0
----
NULL
107

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + COUNT( * ) - + 72 * MIN( ALL 30 )
----
-2159

skipif mysql # not compatible
query I rowsort label-779
SELECT + COUNT ( * ) - + 72 * MIN ( ALL 30 )
----
-2159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-780
SELECT + ( + - SUM( DISTINCT + 39 ) ) + - - 0 * - 68 * + 68 * + 98 + + 15 DIV NULLIF ( - COUNT( * ), ( 19 ) + + 31 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-780
SELECT + ( + - SUM ( DISTINCT + 39 ) ) + - - 0 * - 68 * + 68 * + 98 + + 15 / NULLIF ( - COUNT ( * ), ( 19 ) + + 31 ) col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT + + COALESCE ( + 0, COUNT( * ) ) + 25 + + - COUNT( * ), - 49 AS col2
----
24
-49

skipif mysql # not compatible
query II rowsort label-781
SELECT + + COALESCE ( + 0, COUNT ( * ) ) + 25 + + - COUNT ( * ), - 49 AS col2
----
24
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-782
SELECT ALL - COUNT( * ), 93 DIV COUNT( * ) * - + 21 + + 23 - + 72 col1
----
-1
-2002

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL - COUNT ( * ), 93 / COUNT ( * ) * - + 21 + + 23 - + 72 col1
----
-1
-2002

query II rowsort
SELECT + - 62 + - 76 - 15 * - - 60 * - 62 AS col1, 12 * + 84
----
55662
1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL + CAST( - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + CAST ( - 15 AS INTEGER )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-785
SELECT - 2 / - + ( + - 59 ) + MAX( - 78 ) * + CAST( NULL AS SIGNED ) + - + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT - 2 / - + ( + - 59 ) + MAX ( - 78 ) * + CAST ( NULL AS INTEGER ) + - + 54 AS col0
----
NULL

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

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

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

query I rowsort
SELECT ALL 50 * - - 91
----
4550

query I rowsort
SELECT 1 * + + 47 * + 21 AS col2
----
987

query II rowsort
SELECT 39 + 15, 21 AS col1
----
54
21

query II rowsort
SELECT + 90, + 0 AS col2
----
90
0

query II rowsort
SELECT 20 AS col1, 49
----
20
49

query I rowsort
SELECT ALL 14 * + - 23 * - + 68
----
21896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-794
SELECT ALL ( + 70 ) + + MAX( ALL - 42 ) - + COUNT( * ) DIV COUNT( * ) * + - 66 col2
----
94

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL ( + 70 ) + + MAX ( ALL - 42 ) - + COUNT ( * ) / COUNT ( * ) * + - 66 col2
----
94

query II rowsort
SELECT 1 AS col2, 3 * 60 AS col2
----
1
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-796
SELECT ALL - 0 col2, - 94 * + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT ALL - 0 col2, - 94 * + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

query I rowsort
SELECT 36 * ( - 99 )
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL SUM( ALL - 43 ) + - - CASE 17 WHEN - 48 * COUNT( - 73 ) / - 93 THEN 96 ELSE NULL END + 75 + - COUNT( - 96 ) * + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL SUM ( ALL - 43 ) + - - CASE 17 WHEN - 48 * COUNT ( - 73 ) / - 93 THEN 96 ELSE NULL END + 75 + - COUNT ( - 96 ) * + + 57
----
NULL

query II rowsort
SELECT DISTINCT - 13, 14 * - 1 AS col2
----
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT 48 * MIN( + + 69 ) * - MAX( ALL - 83 ) * - - 32 AS col0
----
8796672

skipif mysql # not compatible
query I rowsort label-800
SELECT 48 * MIN ( + + 69 ) * - MAX ( ALL - 83 ) * - - 32 AS col0
----
8796672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-801
SELECT ALL - COUNT( * ) + - MAX( 36 ) DIV + 8
----
-5

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - COUNT ( * ) + - MAX ( 36 ) / + 8
----
-5

query I rowsort
SELECT 59 * - 97 + + 19
----
-5704

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT 64 * MAX( ALL - ( 65 ) ) * - 78
----
324480

skipif mysql # not compatible
query I rowsort label-804
SELECT 64 * MAX ( ALL - ( 65 ) ) * - 78
----
324480

query I rowsort
SELECT ALL + 31 * COALESCE ( 8, 42 * - + 70 )
----
248

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT 1 AS col2, CASE + + MAX( DISTINCT - 22 ) WHEN 42 THEN + + ( 89 ) WHEN 39 - AVG ( + 28 ) + 24 - - ( ( - - 63 ) ) / - 45 * - 1 * + 79 THEN + 2 + + 12 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-806
SELECT 1 AS col2, CASE + + MAX ( DISTINCT - 22 ) WHEN 42 THEN + + ( 89 ) WHEN 39 - AVG ( + 28 ) + 24 - - ( ( - - 63 ) ) / - 45 * - 1 * + 79 THEN + 2 + + 12 END
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-807
SELECT + COUNT( - 22 ) * + + 90 + COALESCE ( CAST( NULL AS SIGNED ), 60, + + 10, + + 5 ) + + CAST( - - ( 35 ) AS SIGNED ) * - 53 + + 49 AS col1
----
-1656

skipif mysql # not compatible
query I rowsort label-807
SELECT + COUNT ( - 22 ) * + + 90 + COALESCE ( CAST ( NULL AS INTEGER ), 60, + + 10, + + 5 ) + + CAST ( - - ( 35 ) AS INTEGER ) * - 53 + + 49 AS col1
----
-1656

query I rowsort
SELECT 74 * + 64 AS col0
----
4736

query I rowsort
SELECT ALL - 59 + 29 * + 38 AS col2
----
1043

query II rowsort
SELECT - 76 col1, + 6 col2
----
-76
6

query I rowsort
SELECT 64 - - 88 + + 35 AS col0
----
187

query II rowsort
SELECT ALL 33, + 49 - + 3 AS col2
----
33
46

query I rowsort
SELECT - 53 + + 30 col1
----
-23

query I rowsort
SELECT ALL + + 46 - + - COALESCE ( - + 81, 98 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT + CASE + 73 WHEN - 37 THEN NULL WHEN - + ( - - 77 ) + + 81 THEN 19 WHEN 59 * - NULLIF ( + 40, + - 53 * + 68 ) / + - CASE MIN( + 19 ) WHEN + 12 * 50 THEN MAX( DISTINCT 62 ) - + 31 ELSE NULL END + - 62 * - 53 THEN 63 + 10 END + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT + CASE + 73 WHEN - 37 THEN NULL WHEN - + ( - - 77 ) + + 81 THEN 19 WHEN 59 * - NULLIF ( + 40, + - 53 * + 68 ) / + - CASE MIN ( + 19 ) WHEN + 12 * 50 THEN MAX ( DISTINCT 62 ) - + 31 ELSE NULL END + - 62 * - 53 THEN 63 + 10 END + - 38
----
NULL

query II rowsort
SELECT ALL 20, + 63 AS col1
----
20
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-818
SELECT ALL - CAST( 73 AS SIGNED ) * MAX( DISTINCT - 2 ) col0, 56 DIV + 64 + + + COUNT( + 4 ) AS col0
----
146
1

skipif mysql # not compatible
query II rowsort label-818
SELECT ALL - CAST ( 73 AS INTEGER ) * MAX ( DISTINCT - 2 ) col0, 56 / + 64 + + + COUNT ( + 4 ) AS col0
----
146
1

query II rowsort
SELECT - - 48 AS col2, 52 AS col1
----
48
52

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT + - 91 DIV 29
----
-3

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT + - 91 / 29
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT + COUNT( ALL - 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-821
SELECT + COUNT ( ALL - 23 ) AS col2
----
1

query I rowsort
SELECT ALL - 22 * + - 66
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT 24 * - 74 * + COUNT( * )
----
-1776

skipif mysql # not compatible
query I rowsort label-823
SELECT 24 * - 74 * + COUNT ( * )
----
-1776

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + MAX( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + MAX ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT DISTINCT - COUNT( * ) * ( - 7 ) * + + COUNT( * ) AS col2, - 84 AS col2
----
7
-84

skipif mysql # not compatible
query II rowsort label-826
SELECT DISTINCT - COUNT ( * ) * ( - 7 ) * + + COUNT ( * ) AS col2, - 84 AS col2
----
7
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL 80 + + - COUNT( * ) * + 96
----
-16

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 80 + + - COUNT ( * ) * + 96
----
-16

query I rowsort
SELECT 4 * 31 * + - 51
----
-6324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-829
SELECT - CASE - + ( - - 3 ) WHEN 73 - - ( - CAST( NULL AS DECIMAL ) ) + + 57 THEN - + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT - CASE - + ( - - 3 ) WHEN 73 - - ( - CAST ( NULL AS REAL ) ) + + 57 THEN - + 96 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-830
SELECT ALL CAST( NULL AS SIGNED ) + + + 21 * - - 46 AS col1, 62 + 1 + + 43 * + MAX( DISTINCT + 13 ) col2
----
NULL
622

skipif mysql # not compatible
query II rowsort label-830
SELECT ALL CAST ( NULL AS INTEGER ) + + + 21 * - - 46 AS col1, 62 + 1 + + 43 * + MAX ( DISTINCT + 13 ) col2
----
NULL
622

query I rowsort
SELECT - 93 * - 55 - - 19
----
5134

query I rowsort
SELECT ALL 73 + 78 + - - 49 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT ( + COUNT( * ) ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT ( + COUNT ( * ) ) + + 4
----
5

query I rowsort
SELECT ALL 55 + + 60
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT NULLIF ( + CASE 8 WHEN + - 55 * - 86 THEN NULL ELSE - 5 END, + + ( + + 52 ) + - 90 ) * - CASE - 33 WHEN + 98 THEN + MAX( - + 47 ) + + 25 WHEN + 84 / + + COUNT( * ) + + 93 THEN NULL ELSE NULL END / + 2 + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT NULLIF ( + CASE 8 WHEN + - 55 * - 86 THEN NULL ELSE - 5 END, + + ( + + 52 ) + - 90 ) * - CASE - 33 WHEN + 98 THEN + MAX ( - + 47 ) + + 25 WHEN + 84 / + + COUNT ( * ) + + 93 THEN NULL ELSE NULL END / + 2 + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL + 36 + + COUNT( * ) + + ( 81 )
----
118

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + 36 + + COUNT ( * ) + + ( 81 )
----
118

query I rowsort
SELECT ALL 19 + + 66 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT 72 / + NULLIF ( 42, - 68 ) * - MIN( ALL + + 56 ) + - - 57 * - 6 + - ( + 41 ) + - COUNT( - - 26 ) * - + CASE 22 WHEN + 15 THEN - NULLIF ( 68, - 94 + 22 ) * + 58 WHEN - 97 - + 0 THEN 97 END * + 95 + - 60 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT 72 / + NULLIF ( 42, - 68 ) * - MIN ( ALL + + 56 ) + - - 57 * - 6 + - ( + 41 ) + - COUNT ( - - 26 ) * - + CASE 22 WHEN + 15 THEN - NULLIF ( 68, - 94 + 22 ) * + 58 WHEN - 97 - + 0 THEN 97 END * + 95 + - 60 * 65 AS col1
----
NULL

query I rowsort
SELECT 36 * - - 29 * 30 - - 54 AS col1
----
31374

query I rowsort
SELECT DISTINCT 95 * 9
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT NULLIF ( - 0, + 22 + 60 ) + 32 + COUNT( ALL - 18 ) * + - ( + 32 ) * - 74 + + MAX( ALL - 85 ) + - COUNT( * ) - 16 AS col0
----
2298

skipif mysql # not compatible
query I rowsort label-841
SELECT NULLIF ( - 0, + 22 + 60 ) + 32 + COUNT ( ALL - 18 ) * + - ( + 32 ) * - 74 + + MAX ( ALL - 85 ) + - COUNT ( * ) - 16 AS col0
----
2298

query I rowsort
SELECT ALL 13 + - - 42
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT NULLIF ( + 55, + - 58 ) * + COALESCE ( - + 78, - COUNT( * ) )
----
-4290

skipif mysql # not compatible
query I rowsort label-843
SELECT NULLIF ( + 55, + - 58 ) * + COALESCE ( - + 78, - COUNT ( * ) )
----
-4290

query I rowsort
SELECT ALL - 73 - - 17 AS col1
----
-56

query II rowsort
SELECT DISTINCT ( + - 83 ) * - 67 AS col1, 88
----
5561
88

query I rowsort
SELECT DISTINCT 18 - + + 10 * + - 12
----
138

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

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + COUNT ( * ) / + 89
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT ALL 53 - COUNT( * ) AS col0, 2 + 76
----
52
78

skipif mysql # not compatible
query II rowsort label-849
SELECT ALL 53 - COUNT ( * ) AS col0, 2 + 76
----
52
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-850
SELECT DISTINCT - ( ( 63 ) ) AS col1, - COALESCE ( 85, - CAST( NULL AS SIGNED ), - 75 )
----
-63
-85

skipif mysql # not compatible
query II rowsort label-850
SELECT DISTINCT - ( ( 63 ) ) AS col1, - COALESCE ( 85, - CAST ( NULL AS INTEGER ), - 75 )
----
-63
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-851
SELECT + COUNT( * ) + + 16 * + + 9 + - - ( + COUNT( - 79 ) ) DIV + 24 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-851
SELECT + COUNT ( * ) + + 16 * + + 9 + - - ( + COUNT ( - 79 ) ) / + 24 AS col1
----
145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - + 63 * - COALESCE ( - - COUNT( * ), + 85 + 4 + - + COUNT( * ) * + 12 ) + 0
----
63

skipif mysql # not compatible
query I rowsort label-853
SELECT - + 63 * - COALESCE ( - - COUNT ( * ), + 85 + 4 + - + COUNT ( * ) * + 12 ) + 0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-854
SELECT - SUM( DISTINCT CAST( + 36 AS SIGNED ) ) * COUNT( * ) * - + 59 * - ( - MAX( + COALESCE ( - + 5, + 99 ) ) ) - - 23 + - - 9 + 65 * + 31
----
-8573

skipif mysql # not compatible
query I rowsort label-854
SELECT - SUM ( DISTINCT CAST ( + 36 AS INTEGER ) ) * COUNT ( * ) * - + 59 * - ( - MAX ( + COALESCE ( - + 5, + 99 ) ) ) - - 23 + - - 9 + 65 * + 31
----
-8573

query II rowsort
SELECT DISTINCT ( + 61 ), 71 AS col2
----
61
71

query I rowsort
SELECT ALL + 15 * - + 88 AS col0
----
-1320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-857
SELECT DISTINCT CAST( + 10 AS SIGNED ) AS col2, 12 AS col2
----
10
12

skipif mysql # not compatible
query II rowsort label-857
SELECT DISTINCT CAST ( + 10 AS INTEGER ) AS col2, 12 AS col2
----
10
12

query I rowsort
SELECT ALL - 60 + + - 92 AS col0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-859
SELECT DISTINCT + ( - 66 ), + 42 * CAST( NULL AS SIGNED ) * + 77 AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT DISTINCT + ( - 66 ), + 42 * CAST ( NULL AS INTEGER ) * + 77 AS col1
----
-66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL - - ( + SUM( 52 ) ) + + - 58
----
-6

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - - ( + SUM ( 52 ) ) + + - 58
----
-6

query II rowsort
SELECT - + 85 + - + 79, - 28 col2
----
-164
-28

query I rowsort
SELECT - - 10 + - 65 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-863
SELECT + + 5 + + + 74 AS col0, MAX( ALL + 16 ) * + 87 DIV 22 DIV + - 98 AS col2
----
79
0

skipif mysql # not compatible
query II rowsort label-863
SELECT + + 5 + + + 74 AS col0, MAX ( ALL + 16 ) * + 87 / 22 / + - 98 AS col2
----
79
0

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL - ( - 14 ), + MAX( DISTINCT + ( - 34 ) ) AS col1
----
14
-34

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL - ( - 14 ), + MAX ( DISTINCT + ( - 34 ) ) AS col1
----
14
-34

query I rowsort
SELECT ( - 45 ) AS col2
----
-45

query II rowsort
SELECT 34 AS col0, NULLIF ( - 83, + + ( + 59 ) ) + - 32 + 61
----
34
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT DISTINCT - 21 + + - COUNT( * ) * + 5 DIV - 58 col0
----
-21

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT - 21 + + - COUNT ( * ) * + 5 / - 58 col0
----
-21

query I rowsort
SELECT ALL + ( - 83 ) + 19 - - 27 + 18
----
-19

query I rowsort
SELECT ALL 55 * - + 12 col0
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT 40 * 63 DIV + COUNT( * ) + - SUM( DISTINCT 52 ) AS col2
----
2468

skipif mysql # not compatible
query I rowsort label-870
SELECT 40 * 63 / + COUNT ( * ) + - SUM ( DISTINCT 52 ) AS col2
----
2468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL + 40 * ( - + 28 ) + - - 97 * - - CASE - NULLIF ( + - 25, - + COUNT( ALL 48 ) * - COUNT( * ) ) WHEN + 99 * 46 / + 65 / - COUNT( * ) THEN + CASE CAST( NULL AS SIGNED ) WHEN - 50 * - + 69 * + COALESCE ( - 45, COUNT( * ), 34 ) THEN 25 ELSE COUNT( * ) - + COUNT( * ) END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + 40 * ( - + 28 ) + - - 97 * - - CASE - NULLIF ( + - 25, - + COUNT ( ALL 48 ) * - COUNT ( * ) ) WHEN + 99 * 46 / + 65 / - COUNT ( * ) THEN + CASE CAST ( NULL AS INTEGER ) WHEN - 50 * - + 69 * + COALESCE ( - 45, COUNT ( * ), 34 ) THEN 25 ELSE COUNT ( * ) - + COUNT ( * ) END END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT DISTINCT + COUNT( DISTINCT + 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT + COUNT ( DISTINCT + 47 ) AS col2
----
1

query I rowsort
SELECT ALL 63 * 88 + - 18 col0
----
5526

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT ALL + COALESCE ( + - 89, + 47 DIV 5 ) * + + 18
----
-1602

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + COALESCE ( + - 89, + 47 / 5 ) * + + 18
----
-1602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-875
SELECT - 25 * 73 * - - ( + CAST( - + 27 AS SIGNED ) ) AS col2
----
49275

skipif mysql # not compatible
query I rowsort label-875
SELECT - 25 * 73 * - - ( + CAST ( - + 27 AS INTEGER ) ) AS col2
----
49275

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

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

query I rowsort
SELECT 41 * - 88 + 84 AS col2
----
-3524

query I rowsort
SELECT ALL 0 * + 23 - + + 29 AS col2
----
-29

query I rowsort
SELECT - 19 * - 67
----
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-880
SELECT + ( - 3 ) * + 58 + - 86 + + COALESCE ( + 61, - + COUNT( * ), + + 82, AVG ( + - 73 ) / - + CAST( NULL AS SIGNED ) ) + + + 47 / + CASE + 11 WHEN 39 THEN + 24 WHEN - 24 * - 82 THEN - 93 END + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT + ( - 3 ) * + 58 + - 86 + + COALESCE ( + 61, - + COUNT ( * ), + + 82, AVG ( + - 73 ) / - + CAST ( NULL AS INTEGER ) ) + + + 47 / + CASE + 11 WHEN 39 THEN + 24 WHEN - 24 * - 82 THEN - 93 END + 32
----
NULL

query II rowsort
SELECT ALL + 93 AS col0, ( + 9 ) col2
----
93
9

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT + ( + CASE + AVG ( DISTINCT - COALESCE ( + 5, + + 99 ) ) WHEN + MAX( ALL - + 92 ) * - 4 THEN NULL WHEN - 19 THEN + 84 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + ( + CASE + AVG ( DISTINCT - COALESCE ( + 5, + + 99 ) ) WHEN + MAX ( ALL - + 92 ) * - 4 THEN NULL WHEN - 19 THEN + 84 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT ALL + 99 AS col1, NULLIF ( + 74, - - 87 * 41 + + + 12 * + 58 ) + - COUNT( * ) AS col2
----
99
73

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL + 99 AS col1, NULLIF ( + 74, - - 87 * 41 + + + 12 * + 58 ) + - COUNT ( * ) AS col2
----
99
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-884
SELECT CASE - AVG ( + 62 ) WHEN + 62 THEN NULL ELSE - 5 DIV - 93 * + COUNT( * ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT CASE - AVG ( + 62 ) WHEN + 62 THEN NULL ELSE - 5 / - 93 * + COUNT ( * ) END AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT + CASE + + 22 WHEN + + 87 THEN - 3 * + 21 WHEN - 43 / - CASE 67 WHEN - 99 + + + 2 + - + 35 - - 31 THEN - 81 WHEN 21 / 28 THEN + + 41 END THEN + - CAST( NULL AS SIGNED ) * + 16 - + AVG ( 17 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT + CASE + + 22 WHEN + + 87 THEN - 3 * + 21 WHEN - 43 / - CASE 67 WHEN - 99 + + + 2 + - + 35 - - 31 THEN - 81 WHEN 21 / 28 THEN + + 41 END THEN + - CAST ( NULL AS INTEGER ) * + 16 - + AVG ( 17 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL 43 * - - AVG ( DISTINCT + + 26 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 43 * - - AVG ( DISTINCT + + 26 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + ( - 44 ) ) * - 89 * - + 85 AS col0
----
-332860

query I rowsort
SELECT + 35 - - - 87 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT ALL + 25, 33 * - + COUNT( * ) AS col1
----
25
-33

skipif mysql # not compatible
query II rowsort label-889
SELECT ALL + 25, 33 * - + COUNT ( * ) AS col1
----
25
-33

query I rowsort
SELECT - COALESCE ( 5, - 39 + 19, ( - ( + 53 ) ) )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + CAST( + - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + CAST ( + - 69 AS INTEGER )
----
-69

query I rowsort
SELECT DISTINCT + 88 * ( + - 55 ) * 47 AS col1
----
-227480

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + SUM( DISTINCT 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + SUM ( DISTINCT 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT + 44 * 36 * + - COUNT( * ) + + COALESCE ( COALESCE ( + ( 23 ), - 80, 16 * + + 41 - - 11 ), 87 + 95 - + 32 ) AS col2
----
-1561

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + 44 * 36 * + - COUNT ( * ) + + COALESCE ( COALESCE ( + ( 23 ), - 80, 16 * + + 41 - - 11 ), 87 + 95 - + 32 ) AS col2
----
-1561

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT CASE + 15 WHEN - 90 + - 78 + - 20 * + 2 / 36 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT CASE + 15 WHEN - 90 + - 78 + - 20 * + 2 / 36 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT - + 0 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-896
SELECT - + 0 / - 37
----
0

query I rowsort
SELECT ALL + 94 + + ( + 27 ) AS col1
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-898
SELECT - NULLIF ( - - 99, - + CAST( NULL AS SIGNED ) ) AS col2, + ( + - 73 )
----
-99
-73

skipif mysql # not compatible
query II rowsort label-898
SELECT - NULLIF ( - - 99, - + CAST ( NULL AS INTEGER ) ) AS col2, + ( + - 73 )
----
-99
-73

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

query I rowsort
SELECT DISTINCT 57 + + - 7
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-901
SELECT + 31 DIV + COALESCE ( 99, 4 + + 5 * + 49 DIV - 40 DIV 19 ) + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-901
SELECT + 31 / + COALESCE ( 99, 4 + + 5 * + 49 / - 40 / 19 ) + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 1 + + 1 + NULLIF ( 91, - 17 * ( 76 ) + - 49 * NULLIF ( - 74, - 41 ) - - 22 ) AS col0
----
91

query I rowsort
SELECT ALL - COALESCE ( 51, - 46 ) + + ( + - 36 )
----
-87

query I rowsort
SELECT DISTINCT - - 49 * - 64 AS col2
----
-3136

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

skipif mysql # not compatible
query II rowsort label-905
SELECT - 85 AS col2, ( COUNT ( * ) ) AS col1
----
-85
1

query II rowsort
SELECT - + 79 AS col1, 66
----
-79
66

query I rowsort
SELECT ALL - ( + 50 ) + 8
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT - + 10 col2, + MAX( DISTINCT 21 ) col2
----
-10
21

skipif mysql # not compatible
query II rowsort label-908
SELECT - + 10 col2, + MAX ( DISTINCT 21 ) col2
----
-10
21

query I rowsort
SELECT ALL - 68 + + 40 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL CASE + 72 WHEN + 21 THEN COUNT( * ) END * 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL CASE + 72 WHEN + 21 THEN COUNT ( * ) END * 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + 35 + MAX( + - 99 )
----
-64

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + 35 + MAX ( + - 99 )
----
-64

query I rowsort
SELECT DISTINCT + ( + - 1 ) * - - 73 AS col2
----
-73

query I rowsort
SELECT + 49 - 99 * + - 86
----
8563

onlyif mysql # DIV for integer division: 
query II rowsort label-914
SELECT ALL ( + + 12 ) AS col2, 86 DIV - 70
----
12
-1

skipif mysql # not compatible
query II rowsort label-914
SELECT ALL ( + + 12 ) AS col2, 86 / - 70
----
12
-1

query I rowsort
SELECT - 26 + - 72 AS col0
----
-98

query I rowsort
SELECT - ( ( + + 76 ) ) * - 60
----
4560

query I rowsort
SELECT ALL ( 24 ) col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT + SUM( - 80 ), + 43 AS col2
----
-80
43

skipif mysql # not compatible
query II rowsort label-918
SELECT + SUM ( - 80 ), + 43 AS col2
----
-80
43

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT ALL 28 DIV + 26 - - + ( - - 58 )
----
59

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL 28 / + 26 - - + ( - - 58 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-920
SELECT DISTINCT - CAST( NULL AS SIGNED ) DIV - COUNT( ALL - 42 ) - - + 70 - + - SUM( + 96 ) DIV + - 99 * - 29 + - 78 AS col2, + NULLIF ( 91, NULLIF ( + 8, + 61 ) ) + + 40 * - ( + - 52 ) + + MAX( + - 82 ) + 29 DIV 15 AS col1
----
NULL
2090

skipif mysql # not compatible
query II rowsort label-920
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - COUNT ( ALL - 42 ) - - + 70 - + - SUM ( + 96 ) / + - 99 * - 29 + - 78 AS col2, + NULLIF ( 91, NULLIF ( + 8, + 61 ) ) + + 40 * - ( + - 52 ) + + MAX ( + - 82 ) + 29 / 15 AS col1
----
NULL
2090

query II rowsort
SELECT ALL + ( - + 49 ) AS col1, + 81 AS col0
----
-49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-922
SELECT ALL + NULLIF ( SUM( DISTINCT + 52 ), + + ( + 9 ) - ( - 33 ) + - 98 ) / - - 36 - + AVG ( 10 ) / + SUM( DISTINCT + 4 ) / + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + NULLIF ( SUM ( DISTINCT + 52 ), + + ( + 9 ) - ( - 33 ) + - 98 ) / - - 36 - + AVG ( 10 ) / + SUM ( DISTINCT + 4 ) / + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-923
SELECT DISTINCT - 18 DIV + 35 AS col0, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT - 18 / + 35 AS col0, + COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT ALL + 44 col1
----
44

query I rowsort
SELECT - 65 * 81 col1
----
-5265

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT - 29 DIV 15 * - 11
----
11

skipif mysql # not compatible
query I rowsort label-926
SELECT - 29 / 15 * - 11
----
11

query I rowsort
SELECT + 35 * 51 AS col2
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-928
SELECT - COALESCE ( + 33, - - NULLIF ( + 66, + NULLIF ( + - 51, + COALESCE ( 16, + - COUNT( ALL - 26 ) DIV 63 ) * + 52 ) ), - CAST( NULL AS SIGNED ) ) * 9 DIV + 1 + 27 - - ( + CAST( - + MAX( + 38 ) AS SIGNED ) )
----
-308

skipif mysql # not compatible
query I rowsort label-928
SELECT - COALESCE ( + 33, - - NULLIF ( + 66, + NULLIF ( + - 51, + COALESCE ( 16, + - COUNT ( ALL - 26 ) / 63 ) * + 52 ) ), - CAST ( NULL AS INTEGER ) ) * 9 / + 1 + 27 - - ( + CAST ( - + MAX ( + 38 ) AS INTEGER ) )
----
-308

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT + + MAX( DISTINCT + 66 ) * + COUNT( * ) + - NULLIF ( + - 77, - 80 ) + - + ( - 56 ) DIV - 16 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-930
SELECT + + MAX ( DISTINCT + 66 ) * + COUNT ( * ) + - NULLIF ( + - 77, - 80 ) + - + ( - 56 ) / - 16 AS col1
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-931
SELECT ALL - 26 * - 31 + + COUNT( * ) * COUNT( * ) DIV 27 AS col1
----
806

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - 26 * - 31 + + COUNT ( * ) * COUNT ( * ) / 27 AS col1
----
806

query I rowsort
SELECT + 55 * + 17 * 84 + - 68 col1
----
78472

query I rowsort
SELECT + 40 + 41 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + + MIN( 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-934
SELECT + + MIN ( 64 ) AS col0
----
64

query I rowsort
SELECT ALL 19 + - - 56 - + 64 * 2 col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-936
SELECT 64 + 41 AS col1, CAST( NULL AS SIGNED )
----
105
NULL

skipif mysql # not compatible
query II rowsort label-936
SELECT 64 + 41 AS col1, CAST ( NULL AS INTEGER )
----
105
NULL

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

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

query I rowsort
SELECT 10 + + 67 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - 80 * COUNT( - - 86 ) + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-939
SELECT - 80 * COUNT ( - - 86 ) + - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL - ( - 22 ) + + 51 - NULLIF ( + - 95, + COUNT( * ) ) + - + 41 * MAX( - 87 ) * - + 29 * - 42 AS col0
----
4344774

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - ( - 22 ) + + 51 - NULLIF ( + - 95, + COUNT ( * ) ) + - + 41 * MAX ( - 87 ) * - + 29 * - 42 AS col0
----
4344774

query I rowsort
SELECT DISTINCT + 72 * ( - + 13 ) * - - 91 + 40 AS col2
----
-85136

query I rowsort
SELECT ALL - 39 * - - 88 * + CASE - - 64 WHEN - 88 THEN - 34 END
----
NULL

query I rowsort
SELECT + 65 + ( 96 ) + 41 AS col2
----
202

query I rowsort
SELECT ALL - - 46 - 25 + - 60 col0
----
-39

query II rowsort
SELECT DISTINCT 32 AS col1, 7 AS col1
----
32
7

query I rowsort
SELECT COALESCE ( - 28, NULLIF ( + 18, 48 ) ) + + 85 col1
----
57

query I rowsort
SELECT 58 * + 87 col0
----
5046

query II rowsort
SELECT DISTINCT 89 AS col2, 40
----
89
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT ALL 38 - + NULLIF ( + 48, + COUNT( * ) + COUNT( * ) - - 63 ) + + ( + 71 ) * - - 89 * + CAST( NULL AS SIGNED ) + - + 80 * + 5 + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 38 - + NULLIF ( + 48, + COUNT ( * ) + COUNT ( * ) - - 63 ) + + ( + 71 ) * - - 89 * + CAST ( NULL AS INTEGER ) + - + 80 * + 5 + + + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT CAST( NULL AS SIGNED ) * - 95 * NULLIF ( + 28, NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + ( - MIN( - - 59 ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT CAST ( NULL AS INTEGER ) * - 95 * NULLIF ( + 28, NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + ( - MIN ( - - 59 ) ) ) ) AS col2
----
NULL

query I rowsort
SELECT 84 * - 56 AS col1
----
-4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-952
SELECT ALL + 77 * + - CASE + - 74 WHEN - CAST( ( - - COUNT( * ) ) AS DECIMAL ) THEN ( + 36 ) WHEN CAST( NULL AS SIGNED ) / + 98 THEN NULL END, 94 * - - ( - 57 ) AS col0
----
NULL
-5358

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL + 77 * + - CASE + - 74 WHEN - CAST ( ( - - COUNT ( * ) ) AS REAL ) THEN ( + 36 ) WHEN CAST ( NULL AS INTEGER ) / + 98 THEN NULL END, 94 * - - ( - 57 ) AS col0
----
NULL
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT CASE - + 33 WHEN - 83 THEN + COUNT( * ) + - + 17 * - + CASE - + 9 WHEN MIN( ALL + 18 ) + - 1 * + + 51 THEN NULL WHEN 4 THEN + + SUM( ALL + + 47 ) * + - ( + MAX( ALL + 73 ) ) ELSE + MIN( + 25 ) END - - 83 WHEN 60 / + 41 THEN + CASE - 92 WHEN 33 - + 18 THEN 99 END + + 72 * - 29 END + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT CASE - + 33 WHEN - 83 THEN + COUNT ( * ) + - + 17 * - + CASE - + 9 WHEN MIN ( ALL + 18 ) + - 1 * + + 51 THEN NULL WHEN 4 THEN + + SUM ( ALL + + 47 ) * + - ( + MAX ( ALL + 73 ) ) ELSE + MIN ( + 25 ) END - - 83 WHEN 60 / + 41 THEN + CASE - 92 WHEN 33 - + 18 THEN 99 END + + 72 * - 29 END + + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT 64 + + 44 * - CASE - CAST( NULL AS SIGNED ) WHEN - ( - + 3 ) THEN NULL WHEN + AVG ( DISTINCT - 37 ) * + 66 + + 53 THEN + + COUNT( * ) * - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT 64 + + 44 * - CASE - CAST ( NULL AS INTEGER ) WHEN - ( - + 3 ) THEN NULL WHEN + AVG ( DISTINCT - 37 ) * + 66 + + 53 THEN + + COUNT ( * ) * - 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL 78 * COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL 78 * COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL - COALESCE ( COUNT( * ), 90 + + + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - COALESCE ( COUNT ( * ), 90 + + + 79 )
----
-1

query II rowsort
SELECT ALL - 14 * 40 * + - 66, 60 * + 47 AS col1
----
36960
2820

query II rowsort
SELECT + 17 AS col0, - 32 AS col2
----
17
-32

query II rowsort
SELECT DISTINCT - 31 col0, 76 + + 17 AS col0
----
-31
93

query I rowsort
SELECT ALL - NULLIF ( + - 81, - 68 * - 21 + + - ( - 52 ) ) AS col2
----
81

query I rowsort
SELECT 73 * + - 46 * - 55
----
184690

query I rowsort
SELECT DISTINCT - ( 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL + 30 + - - 97 + COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + 30 + - - 97 + COUNT ( * )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + ( + - MIN( ALL + CASE - + 25 WHEN - - 84 * + 18 THEN NULL WHEN 58 THEN 59 + - 21 / COALESCE ( + 52, - 67 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT + ( + - MIN ( ALL + CASE - + 25 WHEN - - 84 * + 18 THEN NULL WHEN 58 THEN 59 + - 21 / COALESCE ( + 52, - 67 ) END ) )
----
NULL

query I rowsort
SELECT ALL - ( + 14 ) AS col1
----
-14

query I rowsort
SELECT ALL - - 24 + - 35 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT 68 * + 52 * COUNT( * ) * + 5
----
17680

skipif mysql # not compatible
query I rowsort label-967
SELECT 68 * + 52 * COUNT ( * ) * + 5
----
17680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-968
SELECT ALL - 44 DIV 21 * MAX( ( + 69 ) ) AS col1, - 11
----
-138
-11

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL - 44 / 21 * MAX ( ( + 69 ) ) AS col1, - 11
----
-138
-11

query I rowsort
SELECT ALL - 39 * + 10
----
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT 99 + - - MAX( + 72 ) + ( 12 ) DIV + 49
----
171

skipif mysql # not compatible
query I rowsort label-970
SELECT 99 + - - MAX ( + 72 ) + ( 12 ) / + 49
----
171

query I rowsort
SELECT DISTINCT - - 82 + + + ( 40 ) col0
----
122

query I rowsort
SELECT ALL + 53 + - + ( 82 ) * - 32
----
2677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-973
SELECT COUNT( DISTINCT + 26 ) DIV + + 2, CAST( NULL AS SIGNED ) + - + 35 * + - 95 + + 70 col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-973
SELECT COUNT ( DISTINCT + 26 ) / + + 2, CAST ( NULL AS INTEGER ) + - + 35 * + - 95 + + 70 col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT - CAST( - + 60 AS SIGNED ) - - 33 * - - 42 + + CASE + CAST( - ( - 62 ) AS SIGNED ) WHEN 24 THEN - + COUNT( * ) ELSE NULL END + + 30 + + 24 - 48 * CASE - 50 WHEN - 58 + 30 + + 60 + 61 + + 86 * 74 / - 86 THEN - 48 * - 91 WHEN + 82 THEN NULL WHEN 30 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT - CAST ( - + 60 AS INTEGER ) - - 33 * - - 42 + + CASE + CAST ( - ( - 62 ) AS INTEGER ) WHEN 24 THEN - + COUNT ( * ) ELSE NULL END + + 30 + + 24 - 48 * CASE - 50 WHEN - 58 + 30 + + 60 + 61 + + 86 * 74 / - 86 THEN - 48 * - 91 WHEN + 82 THEN NULL WHEN 30 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 3 * NULLIF ( ( - 17 ), + - 42 + + 28 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT ALL + COUNT( * ) DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + COUNT ( * ) / - 77 AS col1
----
0

query I rowsort
SELECT - 23 + - 47
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT + COUNT( * ) + - 42 + 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT + COUNT ( * ) + - 42 + 43 AS col0
----
2

query I rowsort
SELECT 31 * 57 + - - 81 AS col2
----
1848

query II rowsort
SELECT - 47, 48 AS col1
----
-47
48

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

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT - COUNT( * ) + CASE - - 35 WHEN + 24 * + 95 THEN + CASE + COUNT( * ) WHEN 86 THEN + 20 * + - COUNT( * ) WHEN 52 + 84 THEN NULL END * 35 + 0 * 3 + 26 * - ( - 97 ) * - ( - CAST( + 41 AS SIGNED ) ) - + 13 WHEN COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( * ) + CASE - - 35 WHEN + 24 * + 95 THEN + CASE + COUNT ( * ) WHEN 86 THEN + 20 * + - COUNT ( * ) WHEN 52 + 84 THEN NULL END * 35 + 0 * 3 + 26 * - ( - 97 ) * - ( - CAST ( + 41 AS INTEGER ) ) - + 13 WHEN COUNT ( * ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT - 81 AS col0, + ( 6 )
----
-81
6

query I rowsort
SELECT ALL 38 - + 85 * - + 16
----
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL 97 * - COUNT( * ) * 87 AS col0
----
-8439

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL 97 * - COUNT ( * ) * 87 AS col0
----
-8439

query I rowsort
SELECT 45 * 62 AS col0
----
2790

query I rowsort
SELECT DISTINCT 32 * - 38 AS col0
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL COUNT( CAST( - - 97 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL COUNT ( CAST ( - - 97 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT MAX( - + 86 ) - + 75 + - 32 AS col1
----
-193

skipif mysql # not compatible
query I rowsort label-989
SELECT MAX ( - + 86 ) - + 75 + - 32 AS col1
----
-193

query I rowsort
SELECT 64 + + 6 AS col0
----
70

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

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

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

skipif mysql # not compatible
query I rowsort label-992
SELECT CAST ( NULL AS INTEGER ) * + + 10 - + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT DISTINCT COUNT( * ) * + - 26 + + MAX( DISTINCT + 91 ) AS col1, + COUNT( * ) * + COALESCE ( + 31, - 47 + + + 59, - + 5 * 0 * - 9 + - 64 * 41 * 68 * + 15 * + 8 * - 36 )
----
65
31

skipif mysql # not compatible
query II rowsort label-993
SELECT DISTINCT COUNT ( * ) * + - 26 + + MAX ( DISTINCT + 91 ) AS col1, + COUNT ( * ) * + COALESCE ( + 31, - 47 + + + 59, - + 5 * 0 * - 9 + - 64 * 41 * 68 * + 15 * + 8 * - 36 )
----
65
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL CAST( + + 76 AS SIGNED ) * COUNT( + 15 ) + - 87 * 86 * COUNT( * ) col1
----
-7406

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL CAST ( + + 76 AS INTEGER ) * COUNT ( + 15 ) + - 87 * 86 * COUNT ( * ) col1
----
-7406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT DISTINCT + - CASE - 16 WHEN + NULLIF ( - + COUNT( * ), - + 54 * + - 79 + - 33 * COUNT( * ) + - + 3 + - COUNT( * ) ) THEN + + 67 WHEN ( + + 92 ) * 80 + - 87 / + - COUNT( * ) + + + 94 * + - COUNT( * ) * - 42 * - 88 THEN + 37 * - 28 + - 22 * CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + - CASE - 16 WHEN + NULLIF ( - + COUNT ( * ), - + 54 * + - 79 + - 33 * COUNT ( * ) + - + 3 + - COUNT ( * ) ) THEN + + 67 WHEN ( + + 92 ) * 80 + - 87 / + - COUNT ( * ) + + + 94 * + - COUNT ( * ) * - 42 * - 88 THEN + 37 * - 28 + - 22 * CAST ( NULL AS INTEGER ) END AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL + NULLIF ( 63, - + 2 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT + - COALESCE ( - - COUNT( * ), + 33 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + - COALESCE ( - - COUNT ( * ), + 33 ) col1
----
-1

query I rowsort
SELECT DISTINCT - 95 * 14 + + 84 AS col1
----
-1246

query II rowsort
SELECT + - 83 AS col1, COALESCE ( + - 48, - - 80, 40 ) AS col2
----
-83
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL + 52 * + 82 * + + 4 * + - 39 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 52 * + 82 * + + 4 * + - 39 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT + + CASE - 53 WHEN + ( + 22 ) THEN + - 60 + - + 12 ELSE - MAX( + 17 ) END
----
-17

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + + CASE - 53 WHEN + ( + 22 ) THEN + - 60 + - + 12 ELSE - MAX ( + 17 ) END
----
-17

query I rowsort
SELECT 2 * - ( - 81 ) + + 72 * 32 + + 63 - + 92 * + 80 * + 4 AS col1
----
-26911

query II rowsort
SELECT ALL + 19 col2, - 78 col0
----
19
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1007
SELECT + - 62, - COALESCE ( - + 16, - ( COUNT( * ) ) * + 59, + 4 ) DIV 3 + - 49 AS col2
----
-62
-44

skipif mysql # not compatible
query II rowsort label-1007
SELECT + - 62, - COALESCE ( - + 16, - ( COUNT ( * ) ) * + 59, + 4 ) / 3 + - 49 AS col2
----
-62
-44

query I rowsort
SELECT - 47 * - ( - 70 )
----
-3290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1009
SELECT - - CAST( NULL AS DECIMAL ) + - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT - - CAST ( NULL AS REAL ) + - 61 AS col0
----
NULL

query II rowsort
SELECT + 42, 48 * + 9 AS col0
----
42
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT - CASE + 41 WHEN + - 19 THEN + 71 ELSE - 89 DIV - + COUNT( * ) END
----
-89

skipif mysql # not compatible
query I rowsort label-1011
SELECT - CASE + 41 WHEN + - 19 THEN + 71 ELSE - 89 / - + COUNT ( * ) END
----
-89

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

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

query I rowsort
SELECT - ( 7 ) AS col0
----
-7

query I rowsort
SELECT - - 61 + 95
----
156

query I rowsort
SELECT - 79 * + 82
----
-6478

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT ALL ( - - ( COALESCE ( + ( 69 ), + 92 - + 16 ) ) ) AS col2, - NULLIF ( - - 10, - ( 66 ) ) * + + 24 + NULLIF ( + - 22, + COUNT( * ) )
----
69
-262

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL ( - - ( COALESCE ( + ( 69 ), + 92 - + 16 ) ) ) AS col2, - NULLIF ( - - 10, - ( 66 ) ) * + + 24 + NULLIF ( + - 22, + COUNT ( * ) )
----
69
-262

query I rowsort
SELECT - 96 + ( + 88 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT DISTINCT - 41 * - COUNT( * ) AS col0, 13 * 82 AS col2
----
41
1066

skipif mysql # not compatible
query II rowsort label-1018
SELECT DISTINCT - 41 * - COUNT ( * ) AS col0, 13 * 82 AS col2
----
41
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL ( CASE - NULLIF ( - 56, - COUNT( * ) ) WHEN + AVG ( ALL - 23 ) THEN 25 * + 97 + - - 92 - - - COUNT( * ) / - CAST( + + 57 AS SIGNED ) - 45 + 30 ELSE 6 + CASE - + MIN( DISTINCT - + 78 ) WHEN + COUNT( - 47 ) - 8 + - AVG ( + 11 ) THEN NULL WHEN + 73 THEN + 53 END + - CASE ( CASE 88 WHEN 46 * 52 + + COUNT( * ) THEN 60 WHEN - 60 THEN NULL END ) WHEN 39 * - 12 THEN 8 WHEN + 67 + + 0 THEN + 0 / CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ELSE + 62 + - 20 * 21 END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL ( CASE - NULLIF ( - 56, - COUNT ( * ) ) WHEN + AVG ( ALL - 23 ) THEN 25 * + 97 + - - 92 - - - COUNT ( * ) / - CAST ( + + 57 AS INTEGER ) - 45 + 30 ELSE 6 + CASE - + MIN ( DISTINCT - + 78 ) WHEN + COUNT ( - 47 ) - 8 + - AVG ( + 11 ) THEN NULL WHEN + 73 THEN + 53 END + - CASE ( CASE 88 WHEN 46 * 52 + + COUNT ( * ) THEN 60 WHEN - 60 THEN NULL END ) WHEN 39 * - 12 THEN 8 WHEN + 67 + + 0 THEN + 0 / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE + 62 + - 20 * 21 END END ) AS col1
----
NULL

query I rowsort
SELECT - 37 + + - 42
----
-79

query I rowsort
SELECT + 42 - - 40 * + + 4
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + ( 77 ) + ( + - 83 ) - + 61 - - - COUNT( * ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-1022
SELECT + ( 77 ) + ( + - 83 ) - + 61 - - - COUNT ( * ) col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT DISTINCT 42 + + COUNT( * ), - ( + 77 ) AS col1
----
43
-77

skipif mysql # not compatible
query II rowsort label-1023
SELECT DISTINCT 42 + + COUNT ( * ), - ( + 77 ) AS col1
----
43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL MIN( - 39 ) + + 63 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL MIN ( - 39 ) + + 63 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + ( + - MIN( + 97 ) ) + 3 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1025
SELECT + ( + - MIN ( + 97 ) ) + 3 AS col1
----
-94

query II rowsort
SELECT ALL + 79 * 12 AS col2, 56 * - 42
----
948
-2352

query I rowsort
SELECT DISTINCT + 70 + - 92 AS col1
----
-22

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

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

query I rowsort
SELECT + 35 + - 88 * + 74 AS col1
----
-6477

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT ALL + 99 DIV 74 + - 38 DIV + + 19
----
-1

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + 99 / 74 + - 38 / + + 19
----
-1

query I rowsort
SELECT DISTINCT + - 67 col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1032
SELECT + + 72 DIV - + 24 AS col0, COUNT( * ) DIV ( 71 ) AS col0, 35 + + - CASE - 65 WHEN + - 7 THEN NULL WHEN - 32 + - 7 THEN 13 WHEN + 21 * + - 81 * - ( COUNT( * ) ) * - - 65 THEN NULL END AS col0
----
-3
0
NULL

skipif mysql # not compatible
query III rowsort label-1032
SELECT + + 72 / - + 24 AS col0, COUNT ( * ) / ( 71 ) AS col0, 35 + + - CASE - 65 WHEN + - 7 THEN NULL WHEN - 32 + - 7 THEN 13 WHEN + 21 * + - 81 * - ( COUNT ( * ) ) * - - 65 THEN NULL END AS col0
----
-3
0
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1035
SELECT ALL + COALESCE ( + ( - 38 ), 77 * + + 13 + + + 46, - + 52 + + NULLIF ( + 84, - + 18 + 11 + - CAST( + - 47 AS SIGNED ) DIV 45 ) ) DIV + MIN( DISTINCT 22 ) - COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + COALESCE ( + ( - 38 ), 77 * + + 13 + + + 46, - + 52 + + NULLIF ( + 84, - + 18 + 11 + - CAST ( + - 47 AS INTEGER ) / 45 ) ) / + MIN ( DISTINCT 22 ) - COUNT ( * ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + 98 / - SUM( 98 ) - CASE COUNT( * ) WHEN 88 THEN - + 60 + 48 * + + 15 WHEN - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + 98 / - SUM ( 98 ) - CASE COUNT ( * ) WHEN 88 THEN - + 60 + 48 * + + 15 WHEN - 57 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT + 96 DIV 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1037
SELECT + 96 / 50 AS col1
----
1

query I rowsort
SELECT ALL - 95 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1039
SELECT + - 15 + - - SUM( + CAST( + 22 AS SIGNED ) ) - - - 35 AS col2, 93 AS col1
----
-28
93

skipif mysql # not compatible
query II rowsort label-1039
SELECT + - 15 + - - SUM ( + CAST ( + 22 AS INTEGER ) ) - - - 35 AS col2, 93 AS col1
----
-28
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - - 61 * + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - - 61 * + - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + + MIN( DISTINCT - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + + MIN ( DISTINCT - 11 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT 97 * - - ( 81 ) AS col0
----
7857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT + + ( + SUM( - - 6 ) ) - - 27 DIV + - 68 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1043
SELECT + + ( + SUM ( - - 6 ) ) - - 27 / + - 68 * - COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1044
SELECT - - 65 * - - 58 * + + 70 * CASE 20 WHEN - + 19 THEN + + COALESCE ( - 5, - CASE + 70 WHEN + ( - COUNT( * ) ) THEN CAST( NULL AS SIGNED ) ELSE - COUNT( + 34 ) END ) WHEN + CAST( - + 98 AS SIGNED ) THEN NULL ELSE NULL END, COUNT( * ) * + 78 AS col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1044
SELECT - - 65 * - - 58 * + + 70 * CASE 20 WHEN - + 19 THEN + + COALESCE ( - 5, - CASE + 70 WHEN + ( - COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( + 34 ) END ) WHEN + CAST ( - + 98 AS INTEGER ) THEN NULL ELSE NULL END, COUNT ( * ) * + 78 AS col1
----
NULL
78

query I rowsort
SELECT - 68 + ( 61 ) * + 9
----
481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT ALL + 84 AS col1, - CAST( 23 AS SIGNED ) AS col2
----
84
-23

skipif mysql # not compatible
query II rowsort label-1046
SELECT ALL + 84 AS col1, - CAST ( 23 AS INTEGER ) AS col2
----
84
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT ALL COUNT( * ) AS col1, COUNT( * ) + - 86 + - 80
----
1
-165

skipif mysql # not compatible
query II rowsort label-1047
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) + - 86 + - 80
----
1
-165

query I rowsort
SELECT ALL ( - 43 ) col2
----
-43

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

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

query I rowsort
SELECT ALL + 55 * + 48 * ( 42 ) AS col2
----
110880

query I rowsort
SELECT ALL + 46 * + 16 AS col0
----
736

query I rowsort
SELECT DISTINCT + 73 * 41 col1
----
2993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1053
SELECT ALL 92 * + - 70 * + - 61 + + COALESCE ( 25, 87 * ( + COALESCE ( ( - + 92 ), 45 * 41 * + 23 ) ) DIV + 41 * + COUNT( * ) )
----
392865

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL 92 * + - 70 * + - 61 + + COALESCE ( 25, 87 * ( + COALESCE ( ( - + 92 ), 45 * 41 * + 23 ) ) / + 41 * + COUNT ( * ) )
----
392865

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT - 13 DIV + 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 13 / + 13 AS col1
----
-1

query II rowsort
SELECT - 95 + + 17 - 80, + 11 AS col1
----
-158
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT + 10 * + + CASE + - NULLIF ( ( NULLIF ( - + 40, - 56 * + COALESCE ( 83, - - 26, - CASE + - 36 WHEN - + ( + - ( - 56 ) ) THEN NULL WHEN - 34 THEN NULL WHEN + - ( - 86 ) THEN NULL ELSE - - 58 + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + - 34 ) / - 20 * - 39 END + 1 ) ) ), + 5 + 83 ) WHEN - 87 * + 10 THEN 83 WHEN - 6 THEN NULL END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 10 * + + CASE + - NULLIF ( ( NULLIF ( - + 40, - 56 * + COALESCE ( 83, - - 26, - CASE + - 36 WHEN - + ( + - ( - 56 ) ) THEN NULL WHEN - 34 THEN NULL WHEN + - ( - 86 ) THEN NULL ELSE - - 58 + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + - 34 ) / - 20 * - 39 END + 1 ) ) ), + 5 + 83 ) WHEN - 87 * + 10 THEN 83 WHEN - 6 THEN NULL END * 56
----
NULL

query I rowsort
SELECT ALL - 56 + + 90 col2
----
34

query I rowsort
SELECT 89 * + 55
----
4895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT - ( 75 ) DIV COUNT( * ) * - 85 AS col2
----
6375

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - ( 75 ) / COUNT ( * ) * - 85 AS col2
----
6375

query I rowsort
SELECT DISTINCT - 38 + ( + - 65 ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT ALL + 83 + 55 + - ( + 28 ) * + ( NULLIF ( 35, - 54 ) ) AS col1, CASE + 72 WHEN - 71 + - COUNT( * ) * + - ( + 10 ) + 48 * 6 + - 78 + + ( 77 ) THEN - 80 ELSE NULL END AS col2
----
-842
NULL

skipif mysql # not compatible
query II rowsort label-1061
SELECT ALL + 83 + 55 + - ( + 28 ) * + ( NULLIF ( 35, - 54 ) ) AS col1, CASE + 72 WHEN - 71 + - COUNT ( * ) * + - ( + 10 ) + 48 * 6 + - 78 + + ( 77 ) THEN - 80 ELSE NULL END AS col2
----
-842
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT DISTINCT 26 AS col0, 22 + COUNT( * )
----
26
23

skipif mysql # not compatible
query II rowsort label-1062
SELECT DISTINCT 26 AS col0, 22 + COUNT ( * )
----
26
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL + SUM( - NULLIF ( 3, + 29 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + SUM ( - NULLIF ( 3, + 29 ) )
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - CASE 74 WHEN - 7 THEN - COUNT( * ) END + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - CASE 74 WHEN - 7 THEN - COUNT ( * ) END + - 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT NULLIF ( + 63, MIN( - 22 ) - - ( + MIN( - - CAST( NULL AS SIGNED ) ) ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1066
SELECT NULLIF ( + 63, MIN ( - 22 ) - - ( + MIN ( - - CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
63

query I rowsort
SELECT ALL 97 - - ( - + 15 ) col0
----
82

query I rowsort
SELECT - 66 * ( 9 )
----
-594

query I rowsort
SELECT ALL - 55 - + + 94
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT ALL - + CASE + + ( + COUNT( * ) ) WHEN - 55 / AVG ( ALL - 83 ) THEN 35 * - 13 - + - 23 * + 32 * - 7 + + COUNT( * ) + - 46 WHEN 81 THEN + 61 * + - CASE + COUNT( * ) WHEN 72 THEN + CAST( + MAX( + 64 ) AS SIGNED ) ELSE NULL END + - CASE ( 40 ) WHEN CAST( - 37 AS SIGNED ) + 51 * AVG ( 12 + 89 / CAST( NULL AS SIGNED ) ) THEN - 83 * AVG ( - 48 ) - + COUNT( * ) END WHEN 59 * + 57 + 12 * + 86 THEN + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - + CASE + + ( + COUNT ( * ) ) WHEN - 55 / AVG ( ALL - 83 ) THEN 35 * - 13 - + - 23 * + 32 * - 7 + + COUNT ( * ) + - 46 WHEN 81 THEN + 61 * + - CASE + COUNT ( * ) WHEN 72 THEN + CAST ( + MAX ( + 64 ) AS INTEGER ) ELSE NULL END + - CASE ( 40 ) WHEN CAST ( - 37 AS INTEGER ) + 51 * AVG ( 12 + 89 / CAST ( NULL AS INTEGER ) ) THEN - 83 * AVG ( - 48 ) - + COUNT ( * ) END WHEN 59 * + 57 + 12 * + 86 THEN + 51 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 75 - - + 89 AS col2
----
14

query II rowsort
SELECT ALL - 89 AS col1, - 31
----
-89
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1073
SELECT - 37 DIV + ( + 98 ) + + - MAX( 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 37 / + ( + 98 ) + + - MAX ( 59 )
----
-59

query II rowsort
SELECT ALL - - 99 AS col2, 87 AS col2
----
99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - 73 + + MAX( DISTINCT + - 49 ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-1075
SELECT - 73 + + MAX ( DISTINCT + - 49 ) AS col0
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT + 41 * + ( + - ( + COUNT( * ) ) ) - + - 56 * + - NULLIF ( - - 5, 63 ) DIV COALESCE ( + 21, - 20 ) DIV - 92 + - + NULLIF ( 92, MAX( DISTINCT 51 ) ) + + 66 * - + ( - 57 ) + + 97 + + 56 + + + 94 AS col2
----
3876

skipif mysql # not compatible
query I rowsort label-1076
SELECT + 41 * + ( + - ( + COUNT ( * ) ) ) - + - 56 * + - NULLIF ( - - 5, 63 ) / COALESCE ( + 21, - 20 ) / - 92 + - + NULLIF ( 92, MAX ( DISTINCT 51 ) ) + + 66 * - + ( - 57 ) + + 97 + + 56 + + + 94 AS col2
----
3876

query II rowsort
SELECT DISTINCT 70 + 93 * 62 col1, + 16 AS col2
----
5836
16

query I rowsort
SELECT ALL 67 * + 78
----
5226

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

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

query I rowsort
SELECT DISTINCT + 68 + + - 84
----
-16

query I rowsort
SELECT ALL - 14 + + - 71 AS col2
----
-85

query I rowsort
SELECT ALL 31 + + 52
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ( CAST( + COUNT( + 10 ) AS SIGNED ) ) + - 49 * + 68 AS col0
----
-3331

skipif mysql # not compatible
query I rowsort label-1083
SELECT ( CAST ( + COUNT ( + 10 ) AS INTEGER ) ) + - 49 * + 68 AS col0
----
-3331

query I rowsort
SELECT 87 * 92 + 2
----
8006

query I rowsort
SELECT ALL 25 + + 39 + 19
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT 73 + - 62 AS col0, - MIN( ALL 64 )
----
11
-64

skipif mysql # not compatible
query II rowsort label-1086
SELECT 73 + - 62 AS col0, - MIN ( ALL 64 )
----
11
-64

query I rowsort
SELECT ALL - 51 + - 40 AS col0
----
-91

query I rowsort
SELECT 92 * ( + 71 ) AS col0
----
6532

query I rowsort
SELECT 99 + - 50 * 21
----
-951

query I rowsort
SELECT 8 + + 25 + + + 1
----
34

query I rowsort
SELECT 82 * 98 AS col2
----
8036

query I rowsort
SELECT ALL - 25 * + ( 91 ) AS col1
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT 89 + - SUM( ( - - 64 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1093
SELECT 89 + - SUM ( ( - - 64 ) ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT 24 + 71 + 85 + 71 DIV - 8
----
172

skipif mysql # not compatible
query I rowsort label-1094
SELECT 24 + 71 + 85 + 71 / - 8
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - COUNT( * ) * - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - COUNT ( * ) * - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL + COUNT( * ) - + 63 - COALESCE ( + 48, 61 )
----
-110

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( * ) - + 63 - COALESCE ( + 48, 61 )
----
-110

query I rowsort
SELECT ALL + COALESCE ( + 27, + 69 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT + MAX( ALL 42 ) DIV - + 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1098
SELECT + MAX ( ALL 42 ) / - + 36 AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT NULLIF ( + + COUNT ( * ), COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT ALL - 76 * - 7
----
532

query II rowsort
SELECT DISTINCT - 17 * + 0 AS col2, 5
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL - + 98 / - 4 + - 84 + - CASE - + 68 WHEN + + MIN( DISTINCT - - 13 ) / + - 68 * + 93 * - 55 * + 15 THEN - 18 * + CAST( NULL AS SIGNED ) + - + 95 END - + 5 / + + ( - + CAST( - - MIN( DISTINCT + 94 ) AS SIGNED ) ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - + 98 / - 4 + - 84 + - CASE - + 68 WHEN + + MIN ( DISTINCT - - 13 ) / + - 68 * + 93 * - 55 * + 15 THEN - 18 * + CAST ( NULL AS INTEGER ) + - + 95 END - + 5 / + + ( - + CAST ( - - MIN ( DISTINCT + 94 ) AS INTEGER ) ) * - 96
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1103
SELECT CAST( NULL AS DECIMAL ) + 12 + - 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT CAST ( NULL AS REAL ) + 12 + - 91 col2
----
NULL

query I rowsort
SELECT - 0 * + - 2 + 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL - SUM( DISTINCT - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL - SUM ( DISTINCT - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT COUNT( * ) + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1106
SELECT COUNT ( * ) + 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT DISTINCT 15 * 49, - 7 * COUNT( * ) AS col2
----
735
-7

skipif mysql # not compatible
query II rowsort label-1107
SELECT DISTINCT 15 * 49, - 7 * COUNT ( * ) AS col2
----
735
-7

query I rowsort
SELECT 17 + - - CASE 20 WHEN - 37 THEN NULL WHEN - 44 THEN + 17 - - 84 + + + 8 + 84 * - 82 / + 66 + - - 13 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( + 75, + 0 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL - CASE 79 WHEN + 83 * - COUNT( * ) THEN + 33 * - 37 + - + 8 WHEN - NULLIF ( + 92, 21 * + 81 + + 22 + - 60 ) THEN - COUNT( DISTINCT ( + 34 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - CASE 79 WHEN + 83 * - COUNT ( * ) THEN + 33 * - 37 + - + 8 WHEN - NULLIF ( + 92, 21 * + 81 + + 22 + - 60 ) THEN - COUNT ( DISTINCT ( + 34 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT COUNT( - 44 ) + - ( + COUNT( * ) ) + - 20 * 3 col0
----
-60

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT COUNT ( - 44 ) + - ( + COUNT ( * ) ) + - 20 * 3 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL 32 + + MIN( ALL - + 82 ) + + - 81 - - 88 * - - 36
----
3037

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL 32 + + MIN ( ALL - + 82 ) + + - 81 - - 88 * - - 36
----
3037

query I rowsort
SELECT 54 * - 82 * - 31 AS col2
----
137268

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

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

query I rowsort
SELECT DISTINCT 67 + 33 AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT DISTINCT COUNT( * ) + 30 DIV + - 47
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT COUNT ( * ) + 30 / + - 47
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT ALL 84 DIV - 6
----
-14

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 84 / - 6
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1118
SELECT COUNT( * ) + + 51 + 86 + + + 5 DIV - 26 + - 98 * - - 20 + + 22
----
-1800

skipif mysql # not compatible
query I rowsort label-1118
SELECT COUNT ( * ) + + 51 + 86 + + + 5 / - 26 + - 98 * - - 20 + + 22
----
-1800

query I rowsort
SELECT DISTINCT 19 * 78
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT + 38 + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + 38 + + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT DISTINCT 89 + + 15
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT ALL COUNT( - - 78 ) * - CAST( NULL AS SIGNED ) * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL COUNT ( - - 78 ) * - CAST ( NULL AS INTEGER ) * 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 13 + + 17
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1124
SELECT DISTINCT 83 * + MAX( DISTINCT - 63 ) AS col2, 57 / CAST( NULL AS SIGNED )
----
-5229
NULL

skipif mysql # not compatible
query II rowsort label-1124
SELECT DISTINCT 83 * + MAX ( DISTINCT - 63 ) AS col2, 57 / CAST ( NULL AS INTEGER )
----
-5229
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL - COUNT( * ) - - 11
----
10

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - COUNT ( * ) - - 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT - COUNT( ( + 95 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1126
SELECT - COUNT ( ( + 95 ) ) AS col2
----
-1

query I rowsort
SELECT ALL 12 - - + 81 AS col0
----
93

query I rowsort
SELECT + + 10 * + 69 AS col1
----
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

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

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

query I rowsort
SELECT NULLIF ( - 59, + 28 - - + 14 * 18 )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-1132
SELECT DISTINCT 71 AS col2, - 93 DIV - + 12 AS col2
----
71
7

skipif mysql # not compatible
query II rowsort label-1132
SELECT DISTINCT 71 AS col2, - 93 / - + 12 AS col2
----
71
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT - CASE - + 18 WHEN + 12 * - 52 * + 72 THEN - COUNT( 7 ) WHEN 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT - CASE - + 18 WHEN + 12 * - 52 * + 72 THEN - COUNT ( 7 ) WHEN 37 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT + 15 + - + ( + CAST( + 8 AS SIGNED ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 15 + - + ( + CAST ( + 8 AS INTEGER ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT + + 58 + - MAX( ALL - - 38 ), + ( + ( + - 18 ) ) col2
----
20
-18

skipif mysql # not compatible
query II rowsort label-1135
SELECT + + 58 + - MAX ( ALL - - 38 ), + ( + ( + - 18 ) ) col2
----
20
-18

query I rowsort
SELECT + - 83 + COALESCE ( + 23, + 80 ) - + - 35 + - 93
----
-118

query I rowsort
SELECT - - 78 * + - 36
----
-2808

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT - 21 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1138
SELECT - 21 / - 96 AS col1
----
0

query I rowsort
SELECT ALL 78 * + 86 + - 32
----
6676

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + + 49 / SUM( + + ( + - 57 ) ) - + 22 / - - 31 * - - 25 + - 17 + - CASE + - 93 WHEN - + 94 THEN + - 61 WHEN + ( - - COUNT( * ) ) * - 69 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT + + 49 / SUM ( + + ( + - 57 ) ) - + 22 / - - 31 * - - 25 + - 17 + - CASE + - 93 WHEN - + 94 THEN + - 61 WHEN + ( - - COUNT ( * ) ) * - 69 THEN NULL END col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1142
SELECT - CAST( - 36 AS SIGNED ) DIV 45 + + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-1142
SELECT - CAST ( - 36 AS INTEGER ) / 45 + + - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL + 13 * + - COUNT( * ) * + 25 + + 28 + - 20 - - 28 * + 42 * + MIN( DISTINCT + CASE + 47 WHEN - - ( - 92 ) + + 32 * - 23 THEN + COALESCE ( - + 60, + 80 * - 35 - - + 84 ) WHEN + ( 82 ) + - 93 - - - 92 THEN NULL WHEN - + 54 * + ( - 78 ) THEN + 45 END ) - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL + 13 * + - COUNT ( * ) * + 25 + + 28 + - 20 - - 28 * + 42 * + MIN ( DISTINCT + CASE + 47 WHEN - - ( - 92 ) + + 32 * - 23 THEN + COALESCE ( - + 60, + 80 * - 35 - - + 84 ) WHEN + ( 82 ) + - 93 - - - 92 THEN NULL WHEN - + 54 * + ( - 78 ) THEN + 45 END ) - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT - SUM( COALESCE ( - + 61, + 47 DIV + 97 ) )
----
61

skipif mysql # not compatible
query I rowsort label-1144
SELECT - SUM ( COALESCE ( - + 61, + 47 / + 97 ) )
----
61

query I rowsort
SELECT ALL + ( + + 21 ) AS col0
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT NULLIF ( - 89, + 52 ) DIV - 46 + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1147
SELECT NULLIF ( - 89, + 52 ) / - 46 + 6 AS col0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT 12 * + 12 + - SUM( - 0 ) * - + 4
----
144

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT 12 * + 12 + - SUM ( - 0 ) * - + 4
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT - COUNT( DISTINCT + 92 ) * - + 65 - - + 62 AS col2, + 78 col2
----
127
78

skipif mysql # not compatible
query II rowsort label-1150
SELECT - COUNT ( DISTINCT + 92 ) * - + 65 - - + 62 AS col2, + 78 col2
----
127
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - COUNT( - - 63 ) * 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1151
SELECT - COUNT ( - - 63 ) * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT NULLIF ( 50, + 67 ) * + 97 - + 32 - - COUNT( * ) + + 26
----
4845

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT NULLIF ( 50, + 67 ) * + 97 - + 32 - - COUNT ( * ) + + 26
----
4845

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

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

query I rowsort
SELECT - 19 + + + 69
----
50

query I rowsort
SELECT - COALESCE ( - + 0, - 15, - 7 ) + - + 15 col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT CASE + 79 WHEN - - COUNT( * ) * - 16 + + - CASE - + 25 WHEN + - NULLIF ( 85, - 88 - MIN( 54 ) ) + - COUNT( * ) THEN NULL ELSE COUNT( + ( 23 ) ) + + - COUNT( * ) END THEN + 70 WHEN 5 THEN - - 25 ELSE NULL END AS col1, + 83 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-1156
SELECT CASE + 79 WHEN - - COUNT ( * ) * - 16 + + - CASE - + 25 WHEN + - NULLIF ( 85, - 88 - MIN ( 54 ) ) + - COUNT ( * ) THEN NULL ELSE COUNT ( + ( 23 ) ) + + - COUNT ( * ) END THEN + 70 WHEN 5 THEN - - 25 ELSE NULL END AS col1, + 83 AS col0
----
NULL
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1157
SELECT ALL + 53, ( + 98 ) DIV 4 * + 80 + - + 52 AS col2
----
53
1868

skipif mysql # not compatible
query II rowsort label-1157
SELECT ALL + 53, ( + 98 ) / 4 * + 80 + - + 52 AS col2
----
53
1868

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - 24 + + COUNT( * ) + + 74 - + ( + + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 24 + + COUNT ( * ) + + 74 - + ( + + COUNT ( * ) ) AS col0
----
50

query I rowsort
SELECT + 89 * 28 AS col0
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT SUM( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-1160
SELECT SUM ( + - 86 )
----
-86

query II rowsort
SELECT ALL 66 AS col0, 57 - - CASE 41 WHEN - 95 - - 18 THEN - + 93 ELSE NULL END AS col0
----
66
NULL

query I rowsort
SELECT DISTINCT ( - 32 ) col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT + 53 DIV 8
----
6

skipif mysql # not compatible
query I rowsort label-1163
SELECT + 53 / 8
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT ALL ( - - CASE - CASE - 10 WHEN + + 41 * 25 * CAST( NULL AS SIGNED ) * 75 * - 34 THEN 42 + 91 END WHEN - 39 * + + COUNT( * ) THEN - 41 * + - 66 + + + 9 END ) * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL ( - - CASE - CASE - 10 WHEN + + 41 * 25 * CAST ( NULL AS INTEGER ) * 75 * - 34 THEN 42 + 91 END WHEN - 39 * + + COUNT ( * ) THEN - 41 * + - 66 + + + 9 END ) * 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1165
SELECT ALL + CASE + COALESCE ( - CAST( NULL AS SIGNED ), + - 1 + + ( + 8 ) + + 3 + + COUNT( * ) ) WHEN 71 THEN - 6 * - ( - 79 ) / 12 END / + ( - 18 ) * CASE + 41 WHEN - - CAST( NULL AS DECIMAL ) + - - 12 THEN 51 + + 44 ELSE NULL END / + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + CASE + COALESCE ( - CAST ( NULL AS INTEGER ), + - 1 + + ( + 8 ) + + 3 + + COUNT ( * ) ) WHEN 71 THEN - 6 * - ( - 79 ) / 12 END / + ( - 18 ) * CASE + 41 WHEN - - CAST ( NULL AS REAL ) + - - 12 THEN 51 + + 44 ELSE NULL END / + 67
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT + CAST ( NULL AS INTEGER ) + + 82 + - ( - 63 ) AS col0
----
NULL

query II rowsort
SELECT ALL 38 col0, + 90
----
38
90

query I rowsort
SELECT + 60 + 9 col2
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT - CAST( - 70 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1171
SELECT - CAST ( - 70 AS INTEGER ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL - 93 + + COUNT( * ) + + ( + ( 82 ) ) + 94 + + 33
----
117

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL - 93 + + COUNT ( * ) + + ( + ( 82 ) ) + 94 + + 33
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT + - CAST( + + 77 AS SIGNED ) + + ( - 21 )
----
-98

skipif mysql # not compatible
query I rowsort label-1173
SELECT + - CAST ( + + 77 AS INTEGER ) + + ( - 21 )
----
-98

query I rowsort
SELECT ALL 52 * - - 5 AS col0
----
260

query I rowsort
SELECT - + ( + - 42 ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + + COUNT( * ) + + MIN( DISTINCT - 92 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1176
SELECT + + COUNT ( * ) + + MIN ( DISTINCT - 92 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT + 74 + + - MIN( DISTINCT 73 ) * + 53 AS col1
----
-3795

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + 74 + + - MIN ( DISTINCT 73 ) * + 53 AS col1
----
-3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1178
SELECT ALL CAST( 32 AS SIGNED ) + + NULLIF ( 1, - 58 + COUNT( * ) ) + + - NULLIF ( + 10, - + 51 - + ( - - 8 ) ) * + 41 AS col1, 59 + + NULLIF ( 41, - + 98 + - 76 - - 61 )
----
-377
100

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL CAST ( 32 AS INTEGER ) + + NULLIF ( 1, - 58 + COUNT ( * ) ) + + - NULLIF ( + 10, - + 51 - + ( - - 8 ) ) * + 41 AS col1, 59 + + NULLIF ( 41, - + 98 + - 76 - - 61 )
----
-377
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + 62 + - - 96 + - COUNT( - + 74 ) col1
----
157

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 62 + - - 96 + - COUNT ( - + 74 ) col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT + SUM( - NULLIF ( 8, + 66 ) ) + - ( - COUNT( ALL + + ( - 86 ) ) ) * - 37
----
-45

skipif mysql # not compatible
query I rowsort label-1180
SELECT + SUM ( - NULLIF ( 8, + 66 ) ) + - ( - COUNT ( ALL + + ( - 86 ) ) ) * - 37
----
-45

query I rowsort
SELECT ALL + + 26 * - + 30
----
-780

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

query II rowsort
SELECT DISTINCT + 43 AS col1, 27
----
43
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL - MIN( 7 ) + - + COUNT( * ) + + - 15 * + 2 * + + 90 * - 36 - + 1
----
97191

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - MIN ( 7 ) + - + COUNT ( * ) + + - 15 * + 2 * + + 90 * - 36 - + 1
----
97191

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL 59 DIV + 39 + - + 98 - - 11 + + 0
----
-86

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 59 / + 39 + - + 98 - - 11 + + 0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT + + 11 * + + NULLIF ( - 47, - COUNT( * ) * 51 - COALESCE ( 74, 5 * - MAX( 34 ) * - - CAST( NULL AS SIGNED ) - - 0 ) + + - 41 ) AS col1
----
-517

skipif mysql # not compatible
query I rowsort label-1186
SELECT + + 11 * + + NULLIF ( - 47, - COUNT ( * ) * 51 - COALESCE ( 74, 5 * - MAX ( 34 ) * - - CAST ( NULL AS INTEGER ) - - 0 ) + + - 41 ) AS col1
----
-517

query I rowsort
SELECT - + 5 + + - 26 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 81 * - MIN( + ( 62 ) ) * - 75 * NULLIF ( - 6, - + 58 * 60 )
----
-2259900

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 81 * - MIN ( + ( 62 ) ) * - 75 * NULLIF ( - 6, - + 58 * 60 )
----
-2259900

query II rowsort
SELECT - 13 AS col0, + 47 AS col1
----
-13
47

query I rowsort
SELECT ALL 55 - + 17 AS col1
----
38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT 92 * + MAX( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT 92 * + MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 49 * - - 20 * + 13
----
12740

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT 99 + MIN( 18 ) * + 32 * + 45 + 91 AS col2
----
26110

skipif mysql # not compatible
query I rowsort label-1194
SELECT 99 + MIN ( 18 ) * + 32 * + 45 + 91 AS col2
----
26110

query I rowsort
SELECT ALL - NULLIF ( - 15, 87 + - 62 + - 54 * 36 )
----
15

query I rowsort
SELECT 18 * + 65 * + 79
----
92430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - 19 * + ( MAX( 9 ) ) * + - COUNT( * ) DIV - - COUNT( DISTINCT - - 65 ) + 49 AS col1
----
220

skipif mysql # not compatible
query I rowsort label-1197
SELECT - 19 * + ( MAX ( 9 ) ) * + - COUNT ( * ) / - - COUNT ( DISTINCT - - 65 ) + 49 AS col1
----
220

query I rowsort
SELECT DISTINCT + 20 - 80
----
-60

query I rowsort
SELECT 93 * - 40 + - + 69
----
-3789

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL + NULLIF ( COALESCE ( - 57, 27 + - 20 + - 73 + 84 * - 96 ), + + MAX( + 79 ) ) * - 41
----
2337

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + NULLIF ( COALESCE ( - 57, 27 + - 20 + - 73 + 84 * - 96 ), + + MAX ( + 79 ) ) * - 41
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT 8 * + COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-1201
SELECT 8 * + COUNT ( * ) col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1202
SELECT ALL + ( + NULLIF ( ( COALESCE ( COUNT( * ), - - 68 - + 18 ) ), + 6 - 5 + - + 12 * COUNT( * ) + + + 63 * - CASE - 91 WHEN 55 * - 45 THEN - CAST( NULL AS DECIMAL ) ELSE - 86 END * - COUNT( * ) * - - 49 ) ) * - - 96 + - COUNT( * ) * 95 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + ( + NULLIF ( ( COALESCE ( COUNT ( * ), - - 68 - + 18 ) ), + 6 - 5 + - + 12 * COUNT ( * ) + + + 63 * - CASE - 91 WHEN 55 * - 45 THEN - CAST ( NULL AS REAL ) ELSE - 86 END * - COUNT ( * ) * - - 49 ) ) * - - 96 + - COUNT ( * ) * 95 AS col2
----
1

query I rowsort
SELECT DISTINCT + 75 * 88 * + 32 AS col0
----
211200

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT 27 - - COUNT( + - 77 )
----
28

skipif mysql # not compatible
query I rowsort label-1204
SELECT 27 - - COUNT ( + - 77 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1205
SELECT ALL - 97 + - + 36 DIV COUNT( * ) AS col0, 82 AS col2
----
-133
82

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL - 97 + - + 36 / COUNT ( * ) AS col0, 82 AS col2
----
-133
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT COALESCE ( + 82, + COALESCE ( - 34, - COUNT( * ), - 30 ), - 44 + 38 ) DIV - 99 + + MIN( ALL + 46 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-1206
SELECT COALESCE ( + 82, + COALESCE ( - 34, - COUNT ( * ), - 30 ), - 44 + 38 ) / - 99 + + MIN ( ALL + 46 ) col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1207
SELECT 23 * - + 39 * + - CAST( - 19 AS SIGNED ) * COUNT( * ) * CAST( 41 AS SIGNED ) AS col0
----
-698763

skipif mysql # not compatible
query I rowsort label-1207
SELECT 23 * - + 39 * + - CAST ( - 19 AS INTEGER ) * COUNT ( * ) * CAST ( 41 AS INTEGER ) AS col0
----
-698763

query II rowsort
SELECT ( - 19 ), 38 + + 69 AS col2
----
-19
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT ALL 63 + - + ( COUNT( * ) ) * - + CASE MIN( - - NULLIF ( - + 45, - 86 * + - 12 ) ) WHEN - 0 * + CAST( + COUNT( * ) AS SIGNED ) - - - 15 THEN NULL WHEN - AVG ( - 49 ) THEN NULL WHEN + + 50 THEN - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 63 + - + ( COUNT ( * ) ) * - + CASE MIN ( - - NULLIF ( - + 45, - 86 * + - 12 ) ) WHEN - 0 * + CAST ( + COUNT ( * ) AS INTEGER ) - - - 15 THEN NULL WHEN - AVG ( - 49 ) THEN NULL WHEN + + 50 THEN - 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + 33 - - + MIN( ALL - 35 ) * 65 col1
----
-2242

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 33 - - + MIN ( ALL - 35 ) * 65 col1
----
-2242

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT - - MIN ( DISTINCT - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT + 53 + ( - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + 53 + ( - COUNT ( * ) )
----
52

query I rowsort
SELECT ALL - 90 * - - 94 col2
----
-8460

query I rowsort
SELECT ALL + 31 * - 68 * 95 * + NULLIF ( + 2, 77 ) * + NULLIF ( + 85, - 64 * + - 70 * - - 37 + - + 80 + 27 ) * + 2 + + + 82 + 8 AS col0
----
-68088310

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL + 20 + + NULLIF ( - COUNT( * ), - 81 )
----
19

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + 20 + + NULLIF ( - COUNT ( * ), - 81 )
----
19

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT CAST ( ( + 2 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - 10 * - ( 30 ) * 74 + - ( - 69 ) + + + ( + + 33 ) * + COUNT( * ) AS col1
----
22302

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 10 * - ( 30 ) * 74 + - ( - 69 ) + + + ( + + 33 ) * + COUNT ( * ) AS col1
----
22302

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + COALESCE ( MIN( + - 12 ), - 96 )
----
-12

skipif mysql # not compatible
query I rowsort label-1218
SELECT + COALESCE ( MIN ( + - 12 ), - 96 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT + MAX( DISTINCT + + 14 ) DIV + 54 * - 36 + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1219
SELECT + MAX ( DISTINCT + + 14 ) / + 54 * - 36 + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL - MIN( DISTINCT + - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - MIN ( DISTINCT + - 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT DISTINCT - 34 AS col1, 63 * 73 + - 27 + + 38 + + COUNT( * ) + - 66 * + - 92 AS col2
----
-34
10683

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT - 34 AS col1, 63 * 73 + - 27 + + 38 + + COUNT ( * ) + - 66 * + - 92 AS col2
----
-34
10683

query II rowsort
SELECT + 41, 80 + - - 67 AS col1
----
41
147

query I rowsort
SELECT + 97 * + 80 + + 28 * - 97 AS col0
----
5044

query I rowsort
SELECT ( + - ( + 32 ) ) * - 69 AS col2
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT CAST( NULL AS SIGNED ) / + 68 + + COUNT( ALL - 20 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT CAST ( NULL AS INTEGER ) / + 68 + + COUNT ( ALL - 20 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT 7 DIV 34 + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-1226
SELECT 7 / 34 + - 88
----
-88

query I rowsort
SELECT DISTINCT 1 * + + 6 AS col2
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1229
SELECT 96 AS col1, + MIN( + + ( - CAST( + 38 AS SIGNED ) ) )
----
96
-38

skipif mysql # not compatible
query II rowsort label-1229
SELECT 96 AS col1, + MIN ( + + ( - CAST ( + 38 AS INTEGER ) ) )
----
96
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT ALL 53 + CAST( NULL AS SIGNED ) + NULLIF ( - + 73, - + COUNT( 14 ) + - + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 53 + CAST ( NULL AS INTEGER ) + NULLIF ( - + 73, - + COUNT ( 14 ) + - + 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL - NULLIF ( COUNT( ALL + 4 ), + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - NULLIF ( COUNT ( ALL + 4 ), + 96 )
----
-1

query I rowsort
SELECT 43 * 83 * - 54
----
-192726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - MIN( - 76 ) + - 79
----
-3

skipif mysql # not compatible
query I rowsort label-1234
SELECT - MIN ( - 76 ) + - 79
----
-3

query I rowsort
SELECT - 51 - + 16 - - ( - 8 )
----
-75

query I rowsort
SELECT + - 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - ( - + MAX( DISTINCT + 0 ) ) * COUNT( * ) + + 10 + + - 84 * - - 57
----
-4778

skipif mysql # not compatible
query I rowsort label-1237
SELECT - ( - + MAX ( DISTINCT + 0 ) ) * COUNT ( * ) + + 10 + + - 84 * - - 57
----
-4778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT + CAST( + 57 AS SIGNED ) * - + 52
----
-2964

skipif mysql # not compatible
query I rowsort label-1238
SELECT + CAST ( + 57 AS INTEGER ) * - + 52
----
-2964

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - + COUNT ( * ) + - 19 - - - COUNT ( * ) * - COUNT ( * ) * + ( 67 ) col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT + 17 + + SUM( + - 48 ) AS col0, MIN( + - 80 ) + + - 89
----
-31
-169

skipif mysql # not compatible
query II rowsort label-1240
SELECT + 17 + + SUM ( + - 48 ) AS col0, MIN ( + - 80 ) + + - 89
----
-31
-169

query I rowsort
SELECT 60 + + 58 col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT DISTINCT + MAX( DISTINCT - 55 ) * 10 DIV + COUNT( * ) + - - 85 AS col0
----
-465

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + MAX ( DISTINCT - 55 ) * 10 / + COUNT ( * ) + - - 85 AS col0
----
-465

query I rowsort
SELECT DISTINCT + - 17 * - - 36 * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL + + 55 + COUNT ( * ) AS col0
----
56

query I rowsort
SELECT 40 * - 5 * + 20 * 99 + + 86 AS col1
----
-395914

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT ALL - - 42 * ( - - 74 ), 87 * - MAX( + 72 ) - COUNT( * ) AS col1
----
3108
-6265

skipif mysql # not compatible
query II rowsort label-1246
SELECT ALL - - 42 * ( - - 74 ), 87 * - MAX ( + 72 ) - COUNT ( * ) AS col1
----
3108
-6265

query II rowsort
SELECT - + 32, 58 * 36 AS col0
----
-32
2088

query I rowsort
SELECT - + 78 * + 26
----
-2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT DISTINCT - + COALESCE ( + - COUNT( * ), + - COUNT( DISTINCT - 56 ) * - - 9 * 57 ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - + COALESCE ( + - COUNT ( * ), + - COUNT ( DISTINCT - 56 ) * - - 9 * 57 ) / + 99 AS col1
----
0

query II rowsort
SELECT ALL 53 AS col0, - 59 + + + 21
----
53
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT DISTINCT CASE + 40 WHEN - 29 THEN + 14 ELSE + - 7 END - - COUNT( * ) * + 72 * + 21 - + + ( + 3 ) + - + 28 * - 44 AS col0, + 80
----
2734
80

skipif mysql # not compatible
query II rowsort label-1251
SELECT DISTINCT CASE + 40 WHEN - 29 THEN + 14 ELSE + - 7 END - - COUNT ( * ) * + 72 * + 21 - + + ( + 3 ) + - + 28 * - 44 AS col0, + 80
----
2734
80

query I rowsort
SELECT ALL 55 * - - 45 AS col1
----
2475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT DISTINCT - 92 DIV - COALESCE ( - COUNT( * ), + - 28, - 32 + + + 60 * - 17 + + + 78 )
----
-92

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - 92 / - COALESCE ( - COUNT ( * ), + - 28, - 32 + + + 60 * - 17 + + + 78 )
----
-92

query I rowsort
SELECT ALL CASE 43 WHEN - 72 + 46 THEN NULL ELSE - 0 END AS col0
----
0

query I rowsort
SELECT + 96 * 55 * - 12 AS col0
----
-63360

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL 19 * - + ( 2 ) * - SUM( DISTINCT - 11 )
----
-418

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL 19 * - + ( 2 ) * - SUM ( DISTINCT - 11 )
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT CASE 75 WHEN ( + + 98 ) + MIN( ALL + + 96 ) THEN NULL WHEN + 54 THEN - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT CASE 75 WHEN ( + + 98 ) + MIN ( ALL + + 96 ) THEN NULL WHEN + 54 THEN - 48 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1258
SELECT DISTINCT ( + - 97 ) * 77 * + CAST( NULL AS DECIMAL ) / COALESCE ( + COUNT( * ), - 65, - COUNT( * ) + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT ( + - 97 ) * 77 * + CAST ( NULL AS REAL ) / COALESCE ( + COUNT ( * ), - 65, - COUNT ( * ) + - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT ALL + MIN( 62 ) * 50 * - + 2 + CASE + + ( 63 ) WHEN - 14 * + 16 * + - 71 THEN + - 28 + + COUNT( * ) + + 14 WHEN COUNT( * ) THEN NULL END AS col2, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL + MIN ( 62 ) * 50 * - + 2 + CASE + + ( 63 ) WHEN - 14 * + 16 * + - 71 THEN + - 28 + + COUNT ( * ) + + 14 WHEN COUNT ( * ) THEN NULL END AS col2, 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL - 95 * - MAX( + + 85 ) + 35 + - + 18
----
8092

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - 95 * - MAX ( + + 85 ) + 35 + - + 18
----
8092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT + NULLIF ( - CASE - COUNT( * ) WHEN + 79 + 28 + + MIN( + 6 ) + - - 14 + - 15 + + 43 / + - CAST( NULL AS SIGNED ) * + 22 * - + 79 * 11 + MIN( + 73 ) * - CASE + - 18 WHEN + 52 / + + COUNT( * ) + + 40 + - MIN( DISTINCT - 71 ) + - 50 * + + CAST( NULL AS SIGNED ) THEN + 1 * - 92 + + 71 - MAX( + 74 ) + 0 WHEN + 44 THEN 90 * + 59 + 87 * 51 WHEN COUNT( * ) THEN 57 * 34 END THEN NULL WHEN - ( 8 ) * - 0 THEN + ( MIN( ALL 3 ) ) * SUM( ALL - 4 + 18 * - 69 ) ELSE + 61 END, - 44 * 43 + 15 )
----
-61

skipif mysql # not compatible
query I rowsort label-1261
SELECT + NULLIF ( - CASE - COUNT ( * ) WHEN + 79 + 28 + + MIN ( + 6 ) + - - 14 + - 15 + + 43 / + - CAST ( NULL AS INTEGER ) * + 22 * - + 79 * 11 + MIN ( + 73 ) * - CASE + - 18 WHEN + 52 / + + COUNT ( * ) + + 40 + - MIN ( DISTINCT - 71 ) + - 50 * + + CAST ( NULL AS INTEGER ) THEN + 1 * - 92 + + 71 - MAX ( + 74 ) + 0 WHEN + 44 THEN 90 * + 59 + 87 * 51 WHEN COUNT ( * ) THEN 57 * 34 END THEN NULL WHEN - ( 8 ) * - 0 THEN + ( MIN ( ALL 3 ) ) * SUM ( ALL - 4 + 18 * - 69 ) ELSE + 61 END, - 44 * 43 + 15 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT + 35 * + 97 AS col0, - 8 + - COUNT( ALL + 32 ) + - - CASE + 52 WHEN + 43 THEN - 99 WHEN - 55 THEN + COUNT( * ) + ( COUNT( * ) ) + 70 + + NULLIF ( - - 58, - 68 * - 80 ) * - 77 * COUNT( * ) * + + ( + - 48 ) * 45 END * + 72
----
3395
NULL

skipif mysql # not compatible
query II rowsort label-1262
SELECT + 35 * + 97 AS col0, - 8 + - COUNT ( ALL + 32 ) + - - CASE + 52 WHEN + 43 THEN - 99 WHEN - 55 THEN + COUNT ( * ) + ( COUNT ( * ) ) + 70 + + NULLIF ( - - 58, - 68 * - 80 ) * - 77 * COUNT ( * ) * + + ( + - 48 ) * 45 END * + 72
----
3395
NULL

query I rowsort
SELECT + 94 - - - 9 + - + 15 AS col1
----
70

query I rowsort
SELECT + ( + 1 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT + 73 * + 7 * + + CAST( NULL AS SIGNED ) + + ( 70 ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 73 * + 7 * + + CAST ( NULL AS INTEGER ) + + ( 70 ) + + 71
----
NULL

query I rowsort
SELECT CASE + 93 WHEN - 81 THEN + ( - 82 ) * 36 WHEN - 57 THEN NULL ELSE 50 + + ( 42 ) END
----
92

query I rowsort
SELECT DISTINCT - 40 * - + 75 + 22 * 13 * 86 AS col2
----
27596

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT ALL 7 * - 15 * + + 65 + + - 58 + SUM( DISTINCT + - 81 ) + + 25
----
-6939

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL 7 * - 15 * + + 65 + + - 58 + SUM ( DISTINCT + - 81 ) + + 25
----
-6939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT - COUNT( * ) DIV - + SUM( + 75 ) * 30
----
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - COUNT ( * ) / - + SUM ( + 75 ) * 30
----
0

query I rowsort
SELECT + + 73 - + + 10
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT - - 68 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT - - 68 / - 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT - 62 DIV 26 * - - 23 * MAX( ALL 32 ) + - ( - COUNT( * ) ) AS col1
----
-1471

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT - 62 / 26 * - - 23 * MAX ( ALL 32 ) + - ( - COUNT ( * ) ) AS col1
----
-1471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1274
SELECT ALL + COUNT( * ) - + + 60 + - 81 + COUNT( * ) + + + 98 * + CAST( NULL AS SIGNED ) + + + 58, 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1274
SELECT ALL + COUNT ( * ) - + + 60 + - 81 + COUNT ( * ) + + + 98 * + CAST ( NULL AS INTEGER ) + + + 58, 63 AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - - 40 * + SUM( DISTINCT - - 44 )
----
1760

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - - 40 * + SUM ( DISTINCT - - 44 )
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - NULLIF ( - COUNT( * ), 38 * - + 93 ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 38 * - + 93 ) * - 7
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT ALL - - CAST( + - 6 AS SIGNED ) * + + 43 * - 28 * + + 60
----
433440

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - - CAST ( + - 6 AS INTEGER ) * + + 43 * - 28 * + + 60
----
433440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT DISTINCT CAST( - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT CAST ( - 55 AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - ( 21 ) + + 41 * + + 4 * - 94 * NULLIF ( - COUNT( * ), 96 + + 1 ) AS col2
----
15395

skipif mysql # not compatible
query I rowsort label-1279
SELECT - ( 21 ) + + 41 * + + 4 * - 94 * NULLIF ( - COUNT ( * ), 96 + + 1 ) AS col2
----
15395

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL ( + MIN( COALESCE ( - - 37, + 68 / 34 - 10 + + 5 ) ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL ( + MIN ( COALESCE ( - - 37, + 68 / 34 - 10 + + 5 ) ) ) AS col2
----
37

query I rowsort
SELECT - 90 - - 70 - + 30
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT - 60 + + 58 + CAST( NULL AS SIGNED ) * + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT - 60 + + 58 + CAST ( NULL AS INTEGER ) * + + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1283
SELECT ALL CAST( + - CAST( + - COUNT( DISTINCT 8 ) AS DECIMAL ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL CAST ( + - CAST ( + - COUNT ( DISTINCT 8 ) AS REAL ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL CASE + 92 WHEN - 84 + + + CAST( AVG ( ALL + 71 ) AS SIGNED ) THEN 77 WHEN 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL CASE + 92 WHEN - 84 + + + CAST ( AVG ( ALL + 71 ) AS INTEGER ) THEN 77 WHEN 67 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT ALL - COUNT( * ) + COUNT( * ) + - + 51 * - NULLIF ( 11, - 22 ), + 44 AS col0
----
561
44

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL - COUNT ( * ) + COUNT ( * ) + - + 51 * - NULLIF ( 11, - 22 ), + 44 AS col0
----
561
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT + MIN( - CAST( - 20 AS SIGNED ) ) DIV 42 + - + 55 + 29 * + 33 * 21 * - 18
----
-361801

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT + MIN ( - CAST ( - 20 AS INTEGER ) ) / 42 + - + 55 + 29 * + 33 * 21 * - 18
----
-361801

query I rowsort
SELECT - 48 * 27 * + NULLIF ( - 53, + 23 )
----
68688

query I rowsort
SELECT - 6 + 76 + - - 97
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1289
SELECT ALL - 51 DIV - 37 + - NULLIF ( - 47, CAST( NULL AS SIGNED ) * + 54 * + COUNT( * ) + 87 ) AS col1, ( ( + 63 ) ) AS col2
----
48
63

skipif mysql # not compatible
query II rowsort label-1289
SELECT ALL - 51 / - 37 + - NULLIF ( - 47, CAST ( NULL AS INTEGER ) * + 54 * + COUNT ( * ) + 87 ) AS col1, ( ( + 63 ) ) AS col2
----
48
63

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

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

query I rowsort
SELECT ALL - 71 * - 28
----
1988

query I rowsort
SELECT + 18 * - - 88
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT + SUM( ALL + - 94 ) * + + 59 + 41 * 23 + 49 - - + 54 + - 72
----
-4572

skipif mysql # not compatible
query I rowsort label-1293
SELECT + SUM ( ALL + - 94 ) * + + 59 + 41 * 23 + 49 - - + 54 + - 72
----
-4572

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT ALL 18 DIV - 59 + 25 + 1 + 1 + + 90
----
117

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL 18 / - 59 + 25 + 1 + 1 + + 90
----
117

query I rowsort
SELECT ALL - + 76 * + 94
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + MAX( DISTINCT + 29 ) - 68
----
-39

skipif mysql # not compatible
query I rowsort label-1298
SELECT + MAX ( DISTINCT + 29 ) - 68
----
-39

query I rowsort
SELECT DISTINCT - 16 * ( - 12 ) + + 39
----
231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + MIN( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-1301
SELECT + MIN ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ALL MIN( ALL - - 56 ) * - COUNT( * ) * - - 70 - + + 59 + CASE - 80 WHEN + 68 * - 99 + + 7 * ( 57 ) * + + 39 THEN NULL ELSE + 72 * + - 79 * + 98 * + MAX( DISTINCT + + 2 ) * 18 - + 97 + - 98 + + 28 END
----
-20071410

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL MIN ( ALL - - 56 ) * - COUNT ( * ) * - - 70 - + + 59 + CASE - 80 WHEN + 68 * - 99 + + 7 * ( 57 ) * + + 39 THEN NULL ELSE + 72 * + - 79 * + 98 * + MAX ( DISTINCT + + 2 ) * 18 - + 97 + - 98 + + 28 END
----
-20071410

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1303
SELECT DISTINCT + 18 AS col1, - 32 * + - 75 / + 20 + + + CAST( NULL AS DECIMAL ) AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1303
SELECT DISTINCT + 18 AS col1, - 32 * + - 75 / + 20 + + + CAST ( NULL AS REAL ) AS col2
----
18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT + COUNT( ALL + 14 ) * 85 + 47 + - + CASE - + COUNT( * ) WHEN + 87 * + 25 THEN + COALESCE ( + 28, + NULLIF ( - 29, - 89 * 66 + + 55 ) ) * - + 78 * 41 * 31 ELSE NULL END * ( + 52 ) / + 81 - + 73 * + - 42 * - + 87 + + + 70 AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-1304
SELECT + COUNT ( ALL + 14 ) * 85 + 47 + - + CASE - + COUNT ( * ) WHEN + 87 * + 25 THEN + COALESCE ( + 28, + NULLIF ( - 29, - 89 * 66 + + 55 ) ) * - + 78 * 41 * 31 ELSE NULL END * ( + 52 ) / + 81 - + 73 * + - 42 * - + 87 + + + 70 AS col1, 8
----
NULL
8

query I rowsort
SELECT + + 38 * ( NULLIF ( + 29, - 73 ) ) col1
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + - 27 + NULLIF ( - - 47, + 18 + COUNT( 49 ) ) * - 71 * - 22 * 0 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1306
SELECT + - 27 + NULLIF ( - - 47, + 18 + COUNT ( 49 ) ) * - 71 * - 22 * 0 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1307
SELECT 46 + + CAST( - - AVG ( 86 ) AS SIGNED ) + 65
----
197

skipif mysql # not compatible
query I rowsort label-1307
SELECT 46 + + CAST ( - - AVG ( 86 ) AS INTEGER ) + 65
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT ALL 76, - 1 - - COUNT( * ) * - 83 AS col1
----
76
-84

skipif mysql # not compatible
query II rowsort label-1308
SELECT ALL 76, - 1 - - COUNT ( * ) * - 83 AS col1
----
76
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT - CAST( NULL AS SIGNED ) + - + 21 + 10 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT - CAST ( NULL AS INTEGER ) + - + 21 + 10 * + 63
----
NULL

query II rowsort
SELECT ALL 27 AS col0, 88 AS col1
----
27
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT 38 + MIN( DISTINCT + + ( 81 ) )
----
119

skipif mysql # not compatible
query I rowsort label-1311
SELECT 38 + MIN ( DISTINCT + + ( 81 ) )
----
119

onlyif mysql # DIV for integer division: 
query II rowsort label-1312
SELECT ALL + - 0 DIV 91 + + 83, + 8 AS col1
----
83
8

skipif mysql # not compatible
query II rowsort label-1312
SELECT ALL + - 0 / 91 + + 83, + 8 AS col1
----
83
8

query I rowsort
SELECT DISTINCT ( 66 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT 21 DIV + - 64
----
0

skipif mysql # not compatible
query I rowsort label-1314
SELECT 21 / + - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT COUNT( * ) * - - 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1315
SELECT COUNT ( * ) * - - 2 AS col1
----
2

query II rowsort
SELECT 37 + 70 col2, 61
----
107
61

query II rowsort
SELECT - 37, 57 AS col0
----
-37
57

query II rowsort
SELECT 94 AS col2, 32 * ( 71 ) * - 37 * - 72 + + + 89 - + 20 AS col2
----
94
6052677

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL COUNT( * ) + + ( 84 )
----
85

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL COUNT ( * ) + + ( 84 )
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1320
SELECT 99 AS col2, 91 AS col0, + CAST( NULL AS DECIMAL ) AS col2
----
99
91
NULL

skipif mysql # not compatible
query III rowsort label-1320
SELECT 99 AS col2, 91 AS col0, + CAST ( NULL AS REAL ) AS col2
----
99
91
NULL

query I rowsort
SELECT 27 * 12 * + 80 * 66
----
1710720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT ALL COUNT( * ) + + 80 * - 13 * - - MAX( 38 ) * CAST( COUNT( * ) AS SIGNED ) + 78 * 7 AS col2
----
-38973

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL COUNT ( * ) + + 80 * - 13 * - - MAX ( 38 ) * CAST ( COUNT ( * ) AS INTEGER ) + 78 * 7 AS col2
----
-38973

query I rowsort
SELECT DISTINCT + 30 + + 70 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT + CASE 84 WHEN + CASE - 47 WHEN + 15 * 14 + 27 / + COUNT( * ) THEN 82 END + + 66 THEN + 34 + + + 71 + - CAST( NULL AS SIGNED ) * - - 14 * + 88 + CAST( - + ( + 27 ) AS SIGNED ) / 50 ELSE NULL END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + CASE 84 WHEN + CASE - 47 WHEN + 15 * 14 + 27 / + COUNT ( * ) THEN 82 END + + 66 THEN + 34 + + + 71 + - CAST ( NULL AS INTEGER ) * - - 14 * + 88 + CAST ( - + ( + 27 ) AS INTEGER ) / 50 ELSE NULL END * 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1325
SELECT COALESCE ( - 71, + 71 ) - + 21 - + - CAST( - - NULLIF ( + 69, - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 3 + COUNT( * ) * - + 16, + ( 85 ) AS col1
----
-36
85

skipif mysql # not compatible
query II rowsort label-1325
SELECT COALESCE ( - 71, + 71 ) - + 21 - + - CAST ( - - NULLIF ( + 69, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 3 + COUNT ( * ) * - + 16, + ( 85 ) AS col1
----
-36
85

query I rowsort
SELECT DISTINCT - ( + + 68 ) + + 39
----
-29

query II rowsort
SELECT + 11, - 84 * + - 20 * 60 AS col2
----
11
100800

query II rowsort
SELECT 37, 26 AS col0
----
37
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL + 13 + - 72 - + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL + 13 + - 72 - + COUNT ( * )
----
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT DISTINCT + 95 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + 95 / + 69
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT + CAST( NULL AS SIGNED ) / + ( + 14 ) + - - 9 + NULLIF ( + - COUNT( * ), 55 ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT + CAST ( NULL AS INTEGER ) / + ( + 14 ) + - - 9 + NULLIF ( + - COUNT ( * ), 55 ) * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT - - COALESCE ( - + 19, + COUNT( + 56 ) ) - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - - COALESCE ( - + 19, + COUNT ( + 56 ) ) - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1334
SELECT ALL - 25 AS col0, - 84 / 72 * 76 + - 16 + + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + MAX( DISTINCT 74 ) AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-1334
SELECT ALL - 25 AS col0, - 84 / 72 * 76 + - 16 + + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + MAX ( DISTINCT 74 ) AS col2
----
-25
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1335
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + + CAST ( NULL AS REAL ) / - 92
----
NULL

query I rowsort
SELECT + 54 + - 25 * - 99
----
2529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT COUNT( * ) / NULLIF ( 58, - - 70 ) * CAST( NULL AS SIGNED ) + - 50 + - 40 + + - AVG ( DISTINCT + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( * ) / NULLIF ( 58, - - 70 ) * CAST ( NULL AS INTEGER ) + - 50 + - 40 + + - AVG ( DISTINCT + 31 )
----
NULL

query I rowsort
SELECT 92 * + + 0 + + + 35 col1
----
35

query I rowsort
SELECT + 44 * 61 + - - 96 + - 26 * - 85 * - 56
----
-120980

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT 81 + - MIN( + ( + 57 ) ) * - COUNT( * ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-1340
SELECT 81 + - MIN ( + ( + 57 ) ) * - COUNT ( * ) AS col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT DISTINCT - + COUNT( * ) AS col2, + 42 + + + 42
----
-1
84

skipif mysql # not compatible
query II rowsort label-1341
SELECT DISTINCT - + COUNT ( * ) AS col2, + 42 + + + 42
----
-1
84

query I rowsort
SELECT DISTINCT + - 6 * - 94 * + 67
----
37788

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - 4 * + 11 * - MAX( 91 ) + 25
----
4029

skipif mysql # not compatible
query I rowsort label-1343
SELECT - 4 * + 11 * - MAX ( 91 ) + 25
----
4029

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1344
SELECT ALL + - 56 * CAST( - 78 AS SIGNED ) - + + 58 AS col0, 83
----
4310
83

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL + - 56 * CAST ( - 78 AS INTEGER ) - + + 58 AS col0, 83
----
4310
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1345
SELECT + 70 * + CASE + NULLIF ( - CAST( 65 AS SIGNED ), + + 23 ) WHEN - COUNT( * ) * + 69 * - 26 + + + 7 * + 81 THEN + 35 ELSE NULL END / NULLIF ( + 27, - + 14 * 8 ), 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1345
SELECT + 70 * + CASE + NULLIF ( - CAST ( 65 AS INTEGER ), + + 23 ) WHEN - COUNT ( * ) * + 69 * - 26 + + + 7 * + 81 THEN + 35 ELSE NULL END / NULLIF ( + 27, - + 14 * 8 ), 68 AS col1
----
NULL
68

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

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

query II rowsort
SELECT + 17 col2, 51 * - - 2
----
17
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT COALESCE ( + 80, COUNT( * ), + 44 ) * - MAX( - 30 ) AS col2
----
2400

skipif mysql # not compatible
query I rowsort label-1348
SELECT COALESCE ( + 80, COUNT ( * ), + 44 ) * - MAX ( - 30 ) AS col2
----
2400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1349
SELECT CAST( NULL AS DECIMAL ) * + COUNT( ALL 81 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT CAST ( NULL AS REAL ) * + COUNT ( ALL 81 ) col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 43 ) + 82 * - + 78
----
-6353

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT DISTINCT COUNT( * ) + + 92 + - 48
----
45

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT COUNT ( * ) + + 92 + - 48
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL ( - 38 ) + - MAX( ALL - - 38 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL ( - 38 ) + - MAX ( ALL - - 38 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - MAX( 87 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-1354
SELECT - MAX ( 87 ) col2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT COUNT( * ) * + 47 AS col0, 50
----
47
50

skipif mysql # not compatible
query II rowsort label-1355
SELECT COUNT ( * ) * + 47 AS col0, 50
----
47
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 7 + + COUNT( * ) - - 37 + + 90
----
135

skipif mysql # not compatible
query I rowsort label-1356
SELECT 7 + + COUNT ( * ) - - 37 + + 90
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1357
SELECT - MIN( DISTINCT 65 ) AS col2, 26 DIV - 77 AS col2
----
-65
0

skipif mysql # not compatible
query II rowsort label-1357
SELECT - MIN ( DISTINCT 65 ) AS col2, 26 / - 77 AS col2
----
-65
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT 17 + 9 DIV + ( + 93 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-1358
SELECT 17 + 9 / + ( + 93 ) col1
----
17

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

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

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

skipif mysql # not compatible
query I rowsort label-1360
SELECT COUNT ( * ) + 62 + + + 94 AS col0
----
157

query I rowsort
SELECT 62 - + 2 - 70 * + NULLIF ( + 47, + 68 * - - 25 ) col1
----
-3230

query I rowsort
SELECT 36 + 41
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT DISTINCT 88 - 30, - COUNT( * ) AS col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-1363
SELECT DISTINCT 88 - 30, - COUNT ( * ) AS col0
----
58
-1

query I rowsort
SELECT DISTINCT 82 * + 20
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + 86 + + - 19 + - MAX( - + COALESCE ( - 97, + 55 ) ) * + - 27 * - - 15 AS col1
----
39352

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 86 + + - 19 + - MAX ( - + COALESCE ( - 97, + 55 ) ) * + - 27 * - - 15 AS col1
----
39352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1366
SELECT + 25 * - + 56 AS col1, 98 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 34 + 5 + - ( + COALESCE ( + 16, 56, + 49 ) ) * + 43
----
-1400
NULL

skipif mysql # not compatible
query II rowsort label-1366
SELECT + 25 * - + 56 AS col1, 98 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 34 + 5 + - ( + COALESCE ( + 16, 56, + 49 ) ) * + 43
----
-1400
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT - 34 + - 89 + + 27 + + - 85 + + + COUNT( * ), 50 * 65 col2
----
-180
3250

skipif mysql # not compatible
query II rowsort label-1367
SELECT - 34 + - 89 + + 27 + + - 85 + + + COUNT ( * ), 50 * 65 col2
----
-180
3250

query I rowsort
SELECT DISTINCT + 47 col0
----
47

query I rowsort
SELECT - 61 * + 25
----
-1525

query I rowsort
SELECT - + 5 * + 33
----
-165

query I rowsort
SELECT + COALESCE ( 62, 99 )
----
62

query I rowsort
SELECT - - ( - - ( - - 88 ) ) - 75 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT - NULLIF ( - - COUNT( * ), - COUNT( * ) ) * - COUNT( * ) + 11 + - + SUM( + 56 ) AS col0, 32
----
-44
32

skipif mysql # not compatible
query II rowsort label-1373
SELECT - NULLIF ( - - COUNT ( * ), - COUNT ( * ) ) * - COUNT ( * ) + 11 + - + SUM ( + 56 ) AS col0, 32
----
-44
32

query I rowsort
SELECT - CASE + 33 WHEN + 91 * - - 95 + - ( - + 81 ) + + 3 THEN 11 WHEN 69 THEN NULL END + 22 + 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT - 24 DIV - + 13
----
1

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 24 / - + 13
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1376
SELECT 79 * 60 / + + CAST( NULL AS DECIMAL ) / - + COUNT( * ) + - 78 / - 31 / - 26 + - - 24 * 34 - - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT 79 * 60 / + + CAST ( NULL AS REAL ) / - + COUNT ( * ) + - 78 / - 31 / - 26 + - - 24 * 34 - - + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + + NULLIF ( 49, COALESCE ( + COUNT( * ), - 14 ) + ( - + 56 ) ) - + - 69 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-1377
SELECT + + NULLIF ( 49, COALESCE ( + COUNT ( * ), - 14 ) + ( - + 56 ) ) - + - 69 AS col0
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT ALL + - 28 + COALESCE ( MIN( - 16 ), 61 * + SUM( ALL - 97 ) * + ( 93 ), - 33 ) DIV + + 36 * - 6 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + - 28 + COALESCE ( MIN ( - 16 ), 61 * + SUM ( ALL - 97 ) * + ( 93 ), - 33 ) / + + 36 * - 6 AS col2
----
-28

query I rowsort
SELECT ALL - 40 * + COALESCE ( + - 74, - 43 * + 43, - 17 )
----
2960

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT + - 29 DIV 24 + - + 9
----
-10

skipif mysql # not compatible
query I rowsort label-1380
SELECT + - 29 / 24 + - + 9
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT 32 AS col0, - COUNT( * ) + - COUNT( * )
----
32
-2

skipif mysql # not compatible
query II rowsort label-1381
SELECT 32 AS col0, - COUNT ( * ) + - COUNT ( * )
----
32
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL ( + MAX( DISTINCT + + 21 ) ) + + 79 * 3 * - + COALESCE ( + + 27, + + 17 + + 42 ) * + - 45 * + 33 AS col2
----
9502536

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL ( + MAX ( DISTINCT + + 21 ) ) + + 79 * 3 * - + COALESCE ( + + 27, + + 17 + + 42 ) * + - 45 * + 33 AS col2
----
9502536

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - 55 + COALESCE ( - 17, - 4 * COUNT( * ) + COUNT( * ) + + - 87 )
----
-72

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 55 + COALESCE ( - 17, - 4 * COUNT ( * ) + COUNT ( * ) + + - 87 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT - 31 + ( - 91 ) + - COUNT( * ) * - 46
----
-76

skipif mysql # not compatible
query I rowsort label-1384
SELECT - 31 + ( - 91 ) + - COUNT ( * ) * - 46
----
-76

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

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

query I rowsort
SELECT + 84 + - + 42 AS col0
----
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 64 * 20 + ( - ( + + 47 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 64 * 20 + ( - ( + + 47 ) ) col0
----
NULL

query II rowsort
SELECT + ( - + 33 ) + - 14, 75 AS col1
----
-47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL 83 * COUNT( * ) col1
----
83

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL 83 * COUNT ( * ) col1
----
83

query I rowsort
SELECT - 89 * + - 14 AS col2
----
1246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - MIN( ALL + - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1393
SELECT - MIN ( ALL + - 15 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT + 41 DIV + 26 col2
----
1

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 41 / + 26 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL MAX( + 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL MAX ( + 54 ) col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT - 5 DIV - + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT - 5 / - + 16 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT + 11 DIV COUNT( * ) DIV - + MAX( DISTINCT - - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 11 / COUNT ( * ) / - + MAX ( DISTINCT - - 61 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + COUNT( * ) - - 15
----
16

skipif mysql # not compatible
query I rowsort label-1398
SELECT + COUNT ( * ) - - 15
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT + 93 * - 1 - 65 * + CASE - 37 WHEN + COUNT( * ) * - 47 THEN + 37 END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT + 93 * - 1 - 65 * + CASE - 37 WHEN + COUNT ( * ) * - 47 THEN + 37 END + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + CASE ( - 35 ) WHEN - 80 THEN NULL WHEN - 89 THEN - - COUNT( * ) * + 7 - - 46 ELSE + 76 * + - 71 END
----
-5396

skipif mysql # not compatible
query I rowsort label-1400
SELECT + CASE ( - 35 ) WHEN - 80 THEN NULL WHEN - 89 THEN - - COUNT ( * ) * + 7 - - 46 ELSE + 76 * + - 71 END
----
-5396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT ALL - 46 DIV - COALESCE ( 61, + COUNT( * ) ) * - COUNT( * ) * - - NULLIF ( 4, + 58 DIV + ( - + 91 ) ) * + 2 * COALESCE ( + COUNT( * ), - 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL - 46 / - COALESCE ( 61, + COUNT ( * ) ) * - COUNT ( * ) * - - NULLIF ( 4, + 58 / + ( - + 91 ) ) * + 2 * COALESCE ( + COUNT ( * ), - 54 ) AS col0
----
0

query I rowsort
SELECT - - 35 + - - 98 col1
----
133

query I rowsort
SELECT + + 65 * + 96 + - 93 * - 0 * - 51 AS col0
----
6240

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

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

query I rowsort
SELECT + 22 * + 50 * - 52 - - 69 + + 94
----
-57037

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + - 6 * ( - - 43 ) * + CASE + 40 WHEN ( + 87 ) THEN + 8 WHEN + + NULLIF ( 95, 74 * - - 45 - - ( 57 ) ) THEN NULL ELSE NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + - 6 * ( - - 43 ) * + CASE + 40 WHEN ( + 87 ) THEN + 8 WHEN + + NULLIF ( 95, 74 * - - 45 - - ( 57 ) ) THEN NULL ELSE NULL END - COUNT ( * )
----
NULL

query I rowsort
SELECT + 95 * + 58
----
5510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) * - 16 * - 79 + COALESCE ( + - AVG ( DISTINCT 18 ), + 50 ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - 16 * - 79 + COALESCE ( + - AVG ( DISTINCT 18 ), + 50 ) + 82 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 65 AS col1, + ( 85 ) + - 65 col0
----
65
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT DISTINCT - 64 * + 24 * + - COUNT( * ) + - 20 + - 15 + + 55 + - 78 + 10 DIV + 16 * + 15 AS col0
----
1478

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT - 64 * + 24 * + - COUNT ( * ) + - 20 + - 15 + + 55 + - 78 + 10 / + 16 * + 15 AS col0
----
1478

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

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

query II rowsort
SELECT COALESCE ( - 57, - + 39 - - 94, 76 ) AS col1, + 3 AS col1
----
-57
3

query I rowsort
SELECT ALL - 89 * 84 AS col1
----
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL - 74 * + + 81 / + 66 - CASE + 61 WHEN + 20 THEN - 52 * - + COUNT( * ) + COALESCE ( - 62, + 56 ) - + + COALESCE ( + + 82, - - COALESCE ( - 44, + AVG ( DISTINCT - 82 ) * - 40 ) + + 4 ) END / - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - 74 * + + 81 / + 66 - CASE + 61 WHEN + 20 THEN - 52 * - + COUNT ( * ) + COALESCE ( - 62, + 56 ) - + + COALESCE ( + + 82, - - COALESCE ( - 44, + AVG ( DISTINCT - 82 ) * - 40 ) + + 4 ) END / - - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1415
SELECT - 25 * 59 AS col0, - 29 * + COUNT( * ) + - 42 * + 51 + - CAST( NULL AS SIGNED ) AS col0
----
-1475
NULL

skipif mysql # not compatible
query II rowsort label-1415
SELECT - 25 * 59 AS col0, - 29 * + COUNT ( * ) + - 42 * + 51 + - CAST ( NULL AS INTEGER ) AS col0
----
-1475
NULL

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT - MIN ( DISTINCT 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - MIN( - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1417
SELECT - MIN ( - 82 )
----
82

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

query I rowsort
SELECT - 89 * 40 AS col2
----
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL CASE - 47 WHEN + - 89 THEN + AVG ( DISTINCT - 36 ) * - ( - 62 ) + - MAX( - 13 ) WHEN 65 THEN + + 59 ELSE + + 85 END AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL CASE - 47 WHEN + - 89 THEN + AVG ( DISTINCT - 36 ) * - ( - 62 ) + - MAX ( - 13 ) WHEN 65 THEN + + 59 ELSE + + 85 END AS col2
----
85

query I rowsort
SELECT DISTINCT - 99 - 29 * + - 16 * - + 52
----
-24227

query I rowsort
SELECT - 42 - 75 AS col1
----
-117

query I rowsort
SELECT ALL ( - 75 ) col1
----
-75

query I rowsort
SELECT - 18 - + 27
----
-45

query I rowsort
SELECT - 35 * 10
----
-350

query I rowsort
SELECT - 6 + 6 AS col2
----
0

query I rowsort
SELECT 58 * - 91 AS col1
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT + COUNT( ALL + 22 ) - - 41 * ( - + COUNT( * ) ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-1428
SELECT + COUNT ( ALL + 22 ) - - 41 * ( - + COUNT ( * ) ) col1
----
-40

query I rowsort
SELECT - 57 + - 90 + - + 55 * - 5 * - 93 * - 3 AS col2
----
76578

query I rowsort
SELECT - 70 + - 77 * - 21
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL + 23 + COALESCE ( - 51, - ( NULLIF ( + 6, 79 + - 46 - + 25 / - 27 * 27 ) ) ) * + + COUNT( ALL 48 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + 23 + COALESCE ( - 51, - ( NULLIF ( + 6, 79 + - 46 - + 25 / - 27 * 27 ) ) ) * + + COUNT ( ALL 48 ) AS col1
----
-28

query I rowsort
SELECT ALL ( 6 ) + + 26 * + 33
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1433
SELECT + COUNT( * ) * + - SUM( - 17 ) + + 18 AS col0, - MAX( ALL + 89 ) DIV + - 77 + - - 49
----
35
50

skipif mysql # not compatible
query II rowsort label-1433
SELECT + COUNT ( * ) * + - SUM ( - 17 ) + + 18 AS col0, - MAX ( ALL + 89 ) / + - 77 + - - 49
----
35
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT SUM( + + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1434
SELECT SUM ( + + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + - CASE COUNT( * ) WHEN NULLIF ( 34, + + COUNT( * ) + + + 35 ) THEN - + 8 END * 80 * 73 + - - 0 + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT + - CASE COUNT ( * ) WHEN NULLIF ( 34, + + COUNT ( * ) + + + 35 ) THEN - + 8 END * 80 * 73 + - - 0 + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1436
SELECT 36 DIV - 98 * + MIN( ALL ( - 87 ) ) * + 13 * 43 + 67
----
67

skipif mysql # not compatible
query I rowsort label-1436
SELECT 36 / - 98 * + MIN ( ALL ( - 87 ) ) * + 13 * 43 + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT 4 * - 33 + - 54 * - COUNT( * ) + + 95
----
17

skipif mysql # not compatible
query I rowsort label-1437
SELECT 4 * - 33 + - 54 * - COUNT ( * ) + + 95
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT - 40 / + COUNT( * ) * + 93 / - 44 / CASE + - ( 21 ) WHEN 59 * 28 THEN NULL WHEN 20 THEN 12 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - 40 / + COUNT ( * ) * + 93 / - 44 / CASE + - ( 21 ) WHEN 59 * 28 THEN NULL WHEN 20 THEN 12 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 99 + + + ( - 99 ) * + + 40
----
-3861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + - 29 - 42 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1440
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + - 29 - 42 AS col2
----
-13

query I rowsort
SELECT 15 + - 82
----
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT ALL - 72, COUNT( DISTINCT - - 58 ) + - 13 AS col1
----
-72
-12

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL - 72, COUNT ( DISTINCT - - 58 ) + - 13 AS col1
----
-72
-12

query I rowsort
SELECT 11 * + - 66
----
-726

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT DISTINCT COUNT( * ) * + COALESCE ( 72, - - 64 * + COUNT( * ) ) AS col0, - 9
----
72
-9

skipif mysql # not compatible
query II rowsort label-1445
SELECT DISTINCT COUNT ( * ) * + COALESCE ( 72, - - 64 * + COUNT ( * ) ) AS col0, - 9
----
72
-9

query I rowsort
SELECT DISTINCT - NULLIF ( + + 7, + 91 * 67 + + 39 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT 52 + + CASE - - 16 WHEN + - COUNT( * ) + - + 70 * - - 97 THEN - CASE COUNT( * ) WHEN 31 + - COUNT( * ) - + 64 + - ( + 54 ) - - COUNT( * ) / 90 / 16 * 71 + + CAST( NULL AS SIGNED ) * - 63 * - 71 * + CAST( 46 AS SIGNED ) THEN NULL WHEN + + 3 * + 28 - 67 + CASE - 31 WHEN - CAST( NULL AS SIGNED ) + 64 THEN - SUM( + + 72 ) * 61 WHEN - - AVG ( - - 98 ) THEN 21 / 5 + 47 END - 87 THEN - 40 ELSE NULL END END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT 52 + + CASE - - 16 WHEN + - COUNT ( * ) + - + 70 * - - 97 THEN - CASE COUNT ( * ) WHEN 31 + - COUNT ( * ) - + 64 + - ( + 54 ) - - COUNT ( * ) / 90 / 16 * 71 + + CAST ( NULL AS INTEGER ) * - 63 * - 71 * + CAST ( 46 AS INTEGER ) THEN NULL WHEN + + 3 * + 28 - 67 + CASE - 31 WHEN - CAST ( NULL AS INTEGER ) + 64 THEN - SUM ( + + 72 ) * 61 WHEN - - AVG ( - - 98 ) THEN 21 / 5 + 47 END - 87 THEN - 40 ELSE NULL END END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT 71 + + COUNT( * ) * + 53 + - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-1448
SELECT 71 + + COUNT ( * ) * + 53 + - COUNT ( * )
----
123

query I rowsort
SELECT 81 * + 68 AS col0
----
5508

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT 87 + + - 61 DIV - - 15
----
83

skipif mysql # not compatible
query I rowsort label-1450
SELECT 87 + + - 61 / - - 15
----
83

query I rowsort
SELECT ALL + 50 * 64
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT 58 + 38 + + 18 + ( CAST( + + 39 AS SIGNED ) )
----
153

skipif mysql # not compatible
query I rowsort label-1452
SELECT 58 + 38 + + 18 + ( CAST ( + + 39 AS INTEGER ) )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT 96 + COUNT( * ) col0
----
97

skipif mysql # not compatible
query I rowsort label-1453
SELECT 96 + COUNT ( * ) col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT 71 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-1454
SELECT 71 / 28
----
2

query I rowsort
SELECT ALL + - 26 + - 21
----
-47

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT - + MAX ( 23 )
----
-23

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

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

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

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL - 60 + COUNT ( * ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1459
SELECT COALESCE ( 41, - + CAST( NULL AS SIGNED ) ) + NULLIF ( + 90, - - COUNT( * ) - - + NULLIF ( + MIN( + 50 ), + + 71 ) ), + 86 col2
----
131
86

skipif mysql # not compatible
query II rowsort label-1459
SELECT COALESCE ( 41, - + CAST ( NULL AS INTEGER ) ) + NULLIF ( + 90, - - COUNT ( * ) - - + NULLIF ( + MIN ( + 50 ), + + 71 ) ), + 86 col2
----
131
86

query I rowsort
SELECT + 64 + + 27
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL - 94 + 98 * 29 * + 13 + - - 80 + - - COUNT( * ) AS col0
----
36933

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - 94 + 98 * 29 * + 13 + - - 80 + - - COUNT ( * ) AS col0
----
36933

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + 21 - - 94 - + COUNT( * ) * 99
----
16

skipif mysql # not compatible
query I rowsort label-1462
SELECT + 21 - - 94 - + COUNT ( * ) * 99
----
16

query I rowsort
SELECT - 4 * 48 * + - 1 AS col1
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT DISTINCT + - 80 DIV 80 + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT + - 80 / 80 + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - 61 * 5
----
-305

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

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

query I rowsort
SELECT 63 * 81 AS col0
----
5103

query I rowsort
SELECT 11 * + ( - 73 ) AS col0
----
-803

query I rowsort
SELECT COALESCE ( - 89, 75 ) * - 52 + 5
----
4633

query I rowsort
SELECT + 27 * + 21 + 84 col2
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1471
SELECT MAX( DISTINCT 24 ) AS col2, MIN( CAST( NULL AS SIGNED ) )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1471
SELECT MAX ( DISTINCT 24 ) AS col2, MIN ( CAST ( NULL AS INTEGER ) )
----
24
NULL

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT COUNT ( - - 45 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT DISTINCT - CAST( - 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - CAST ( - 31 AS INTEGER )
----
31

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - MAX ( - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1475
SELECT DISTINCT CAST( - 18 AS SIGNED ) DIV 84 * 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT CAST ( - 18 AS INTEGER ) / 84 * 80 AS col2
----
0

query II rowsort
SELECT DISTINCT - 94 AS col2, - 10 + + - 77 AS col0
----
-94
-87

query I rowsort
SELECT 36 * + ( + 41 ) col1
----
1476

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

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

query I rowsort
SELECT DISTINCT 18 * - + 47 AS col1
----
-846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1480
SELECT - COALESCE ( - 19, - 41 + + + 3 * NULLIF ( - ( - ( COUNT( * ) ) ), - 61 ), - CAST( - CAST( - AVG ( ALL 99 ) AS DECIMAL ) AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-1480
SELECT - COALESCE ( - 19, - 41 + + + 3 * NULLIF ( - ( - ( COUNT ( * ) ) ), - 61 ), - CAST ( - CAST ( - AVG ( ALL 99 ) AS REAL ) AS INTEGER ) )
----
19

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 53 + COUNT ( * ) AS col2
----
54

query II rowsort
SELECT - 62 col0, 11 * + 43 AS col2
----
-62
473

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT 77 col0, CASE - 86 WHEN + 61 THEN NULL WHEN + + 42 * - 67 * - + SUM( 38 ) - + 34 - - + 26 - + 75 * - COUNT( * ) + + 46 * - 70 + 66 + - 71 * - 93 THEN - COUNT( * ) / - 16 ELSE NULL END AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT 77 col0, CASE - 86 WHEN + 61 THEN NULL WHEN + + 42 * - 67 * - + SUM ( 38 ) - + 34 - - + 26 - + 75 * - COUNT ( * ) + + 46 * - 70 + 66 + - 71 * - 93 THEN - COUNT ( * ) / - 16 ELSE NULL END AS col0
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT 82 + - + 67 * - + 45 + - COUNT( * ) AS col0
----
3096

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT 82 + - + 67 * - + 45 + - COUNT ( * ) AS col0
----
3096

query I rowsort
SELECT DISTINCT 91 + + + 27 + + + 34
----
152

query I rowsort
SELECT - - 3 - 7
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT - + COUNT( * ) / + CAST( NULL AS SIGNED ) + COUNT( * ) * CASE WHEN - 13 > NULL THEN 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + COUNT ( * ) * CASE WHEN - 13 > NULL THEN 35 END AS col2
----
NULL

query I rowsort
SELECT + 92 + - 59
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT NULLIF ( 44, - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-1490
SELECT NULLIF ( 44, - COUNT ( * ) )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL + 6 DIV + - 49 - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + 6 / + - 49 - + 11
----
-11

query I rowsort
SELECT + ( - 20 ) + - 86 + + 52 * + 26 + - + 89
----
1157

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT - - NULLIF ( 45, - 81 * - COUNT( - - 52 ) + + 33 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1493
SELECT - - NULLIF ( 45, - 81 * - COUNT ( - - 52 ) + + 33 ) AS col0
----
45

query I rowsort
SELECT + 19 + - 25
----
-6

query I rowsort
SELECT - 89 - - + 2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL + 46 DIV - - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + 46 / - - 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - + ( - - 17 ) - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - + ( - - 17 ) - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT COUNT( + + 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT COUNT ( + + 0 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT DISTINCT + 54 - - 68 * MIN( 47 ) AS col2, - 55 AS col0
----
3250
-55

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT + 54 - - 68 * MIN ( 47 ) AS col2, - 55 AS col0
----
3250
-55

query II rowsort
SELECT + 81 col2, 30
----
81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - + 27 + + COUNT( * ) + 31
----
5

skipif mysql # not compatible
query I rowsort label-1501
SELECT - + 27 + + COUNT ( * ) + 31
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT ALL + 1 * + 20 + + 57 + - ( - 20 ) - + 76 + 91 DIV - MIN( 35 ) + - + 52 + + - MAX( + 21 ) + - 98 * - ( + 16 ) AS col0
----
1514

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + 1 * + 20 + + 57 + - ( - 20 ) - + 76 + 91 / - MIN ( 35 ) + - + 52 + + - MAX ( + 21 ) + - 98 * - ( + 16 ) AS col0
----
1514

query I rowsort
SELECT + - 16 * + 97 AS col0
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT DISTINCT + COALESCE ( + 71, + 89 + COUNT( * ) + 44 * - - 94 + + 9 )
----
71

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + COALESCE ( + 71, + 89 + COUNT ( * ) + 44 * - - 94 + + 9 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL + - MAX( - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + - MAX ( - 62 ) AS col0
----
62

query I rowsort
SELECT 24 * 56 + - 62
----
1282

query I rowsort
SELECT - NULLIF ( - - 43, 65 )
----
-43

query I rowsort
SELECT - 5 * - - 31 * + 98 + 37 - + 77 - + + 29
----
-15259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT - COUNT( * ) DIV - 76 + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1509
SELECT - COUNT ( * ) / - 76 + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT + CASE - 61 WHEN + COUNT( ALL + 34 ) THEN - 7 / - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + CASE - 61 WHEN + COUNT ( ALL + 34 ) THEN - 7 / - 90 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1511
SELECT - COUNT( * ) * 43, + CASE + 68 WHEN - 1 * - CAST( - 25 AS DECIMAL ) + + - 33 THEN NULL WHEN - - 79 + + + ( + 72 ) THEN + - 11 END * + 46 col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-1511
SELECT - COUNT ( * ) * 43, + CASE + 68 WHEN - 1 * - CAST ( - 25 AS REAL ) + + - 33 THEN NULL WHEN - - 79 + + + ( + 72 ) THEN + - 11 END * + 46 col1
----
-43
NULL

query I rowsort
SELECT - NULLIF ( - 93, - 96 ) + - 90 col2
----
3

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

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

query I rowsort
SELECT ALL + 68 * + - 87 col2
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + CASE COALESCE ( - 72, + + 9, - - SUM( + 43 ) * + - 69 ) WHEN - ( - + 61 ) * + + 52 + - 37 THEN + + 96 ELSE + 72 + + COUNT( * ) END AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1515
SELECT + CASE COALESCE ( - 72, + + 9, - - SUM ( + 43 ) * + - 69 ) WHEN - ( - + 61 ) * + + 52 + - 37 THEN + + 96 ELSE + 72 + + COUNT ( * ) END AS col0
----
73

query II rowsort
SELECT DISTINCT + 50 * - 37 AS col2, + 89
----
-1850
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL SUM( + - 11 ) * + - COUNT( + 70 ) + 54 - - 31 + + ( + MIN( - 23 ) ) * - 2
----
142

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL SUM ( + - 11 ) * + - COUNT ( + 70 ) + 54 - - 31 + + ( + MIN ( - 23 ) ) * - 2
----
142

query II rowsort
SELECT + 90 * + + 3 + - 2 col2, + 45
----
268
45

query II rowsort
SELECT DISTINCT ( - 57 ) * - ( - 80 ) + - 94 col1, - 71 AS col1
----
-4654
-71

query II rowsort
SELECT ALL CASE + 57 WHEN + 59 - AVG ( 49 ) THEN NULL ELSE + ( - + 82 ) + + COALESCE ( - 46, + - 96 * + - 62 ) END * + ( 75 ) AS col0, 17 col1
----
-9600
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT + CAST( NULL AS SIGNED ) + 22 + - - 39 + COUNT( * ) * - + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT + CAST ( NULL AS INTEGER ) + 22 + - - 39 + COUNT ( * ) * - + 69 col0
----
NULL

query I rowsort
SELECT ALL 93 + + - 3 AS col1
----
90

query I rowsort
SELECT + ( + COALESCE ( 21, 36 ) ) AS col2
----
21

query I rowsort
SELECT 57 * - 82 + + 54 + - + 96
----
-4716

query II rowsort
SELECT + 90 * + - 21 AS col1, - 77
----
-1890
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + - 66 + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1527
SELECT + - 66 + - COUNT ( * ) AS col2
----
-67

query II rowsort
SELECT + ( 8 ), - 31 AS col1
----
8
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT ( - COALESCE ( - + 55, - 58 * 46 + - - CAST( 59 AS SIGNED ), + 28 + - 30 ) ) * + 38
----
2090

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT ( - COALESCE ( - + 55, - 58 * 46 + - - CAST ( 59 AS INTEGER ), + 28 + - 30 ) ) * + 38
----
2090

query I rowsort
SELECT ALL - 16 * - 11
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + + 5 * - ( MAX( DISTINCT + 94 ) ) * + 48
----
-22560

skipif mysql # not compatible
query I rowsort label-1531
SELECT + + 5 * - ( MAX ( DISTINCT + 94 ) ) * + 48
----
-22560

query I rowsort
SELECT + 48 + - 57 + 65 * 33 col2
----
2136

query I rowsort
SELECT ALL 22 - 56 + - 75 + 37 * + 89 + - 65
----
3119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT + CASE - 10 WHEN + + 68 THEN - + CASE 45 WHEN - - 75 * + 15 * - 55 * - 60 + - 1 - - CAST( + - 42 AS SIGNED ) * + 99 THEN - - 71 ELSE + 65 END / + + COUNT( * ) * - 48 END * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT + CASE - 10 WHEN + + 68 THEN - + CASE 45 WHEN - - 75 * + 15 * - 55 * - 60 + - 1 - - CAST ( + - 42 AS INTEGER ) * + 99 THEN - - 71 ELSE + 65 END / + + COUNT ( * ) * - 48 END * - 95
----
NULL

query I rowsort
SELECT - 62 * - 18 * + 27
----
30132

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT 49 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT 49 / + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT - + 90 DIV - ( 35 ) + - 71 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1537
SELECT - + 90 / - ( 35 ) + - 71 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + - 79 * - - COUNT( * ) * + - 22 AS col1
----
1738

skipif mysql # not compatible
query I rowsort label-1538
SELECT + - 79 * - - COUNT ( * ) * + - 22 AS col1
----
1738

query I rowsort
SELECT + 49 * + + 61
----
2989

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT 14 DIV + 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT 14 / + 81 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT + 38 DIV + 59 + ( - COUNT( + + ( + - 66 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + 38 / + 59 + ( - COUNT ( + + ( + - 66 ) ) )
----
-1

query I rowsort
SELECT DISTINCT 49 * - + 67 AS col0
----
-3283

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

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

query II rowsort
SELECT + 92 AS col1, - 37
----
92
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL + 63 + + - MIN( ALL + 66 )
----
-3

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + 63 + + - MIN ( ALL + 66 )
----
-3

query I rowsort
SELECT 52 * - + 64 AS col0
----
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT 40, COUNT( * ) col0
----
40
1

skipif mysql # not compatible
query II rowsort label-1547
SELECT 40, COUNT ( * ) col0
----
40
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT ( - + ( + + 61 ) ) DIV - 65 + + 85
----
85

skipif mysql # not compatible
query I rowsort label-1548
SELECT ( - + ( + + 61 ) ) / - 65 + + 85
----
85

query I rowsort
SELECT ALL - 64 + - 44 AS col1
----
-108

query I rowsort
SELECT DISTINCT + 9 + - 84 + - 68 + - 76 * 5 AS col1
----
-523

query II rowsort
SELECT + 57 AS col2, 90
----
57
90

query I rowsort
SELECT ALL + 64 + - 80
----
-16

query I rowsort
SELECT ALL + 92 + + 2 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1554
SELECT ALL - 37 / 55 * + + CASE - 0 WHEN - 13 - - 63 + + ( + 80 ) + - + 77 * - 53 / - - 67 THEN - SUM( - 7 ) ELSE NULL END col1, CAST( - 51 AS SIGNED ) * + 10 AS col0
----
NULL
-510

skipif mysql # not compatible
query II rowsort label-1554
SELECT ALL - 37 / 55 * + + CASE - 0 WHEN - 13 - - 63 + + ( + 80 ) + - + 77 * - 53 / - - 67 THEN - SUM ( - 7 ) ELSE NULL END col1, CAST ( - 51 AS INTEGER ) * + 10 AS col0
----
NULL
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT 96 DIV 80 col1
----
1

skipif mysql # not compatible
query I rowsort label-1555
SELECT 96 / 80 col1
----
1

query I rowsort
SELECT 67 * 65 AS col1
----
4355

query II rowsort
SELECT + 68 AS col0, 59
----
68
59

query I rowsort
SELECT ALL - + 40 * 50 + - 96 * - 23 AS col0
----
208

query I rowsort
SELECT + 74 + + + 7 AS col2
----
81

query II rowsort
SELECT ( + - ( - 28 ) ) / + 41 * + CASE + 86 WHEN - - 89 THEN - 25 END, 60 AS col2
----
NULL
60

query I rowsort
SELECT - 83 * - + 99 col1
----
8217

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

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

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

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

query I rowsort
SELECT ( 97 ) AS col2
----
97

query I rowsort
SELECT ALL + + 11 * 9
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT ALL 86 AS col1, + COUNT( * ) + - 40 AS col0
----
86
-39

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL 86 AS col1, + COUNT ( * ) + - 40 AS col0
----
86
-39

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

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

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL 49 / COUNT ( * )
----
49

query I rowsort
SELECT - 23 - - 15 AS col0
----
-8

query I rowsort
SELECT 51 + + - 98
----
-47

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

skipif mysql # not compatible
query II rowsort label-1571
SELECT 65, + CAST ( NULL AS INTEGER ) AS col2
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ( CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT + - 68 ) * 37 - + NULLIF ( COUNT( * ), - 43 ) + + - 7 * - - ( - 42 ) * + CASE + ( - ( + COUNT( * ) ) ) WHEN - - 67 THEN - 10 END + 4 + + 22 + - 31 + 45 + - 18 / 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ( CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT + - 68 ) * 37 - + NULLIF ( COUNT ( * ), - 43 ) + + - 7 * - - ( - 42 ) * + CASE + ( - ( + COUNT ( * ) ) ) WHEN - - 67 THEN - 10 END + 4 + + 22 + - 31 + 45 + - 18 / 48 col1
----
NULL

query II rowsort
SELECT - + 15 AS col1, - 80 + - + ( - 17 ) AS col2
----
-15
-63

query I rowsort
SELECT DISTINCT 38 * - 55
----
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1575
SELECT - + 5 AS col2, + 41 * - 93 + + 42 + + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-1575
SELECT - + 5 AS col2, + 41 * - 93 + + 42 + + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
-5
NULL

query I rowsort
SELECT 7 * 83 * 39
----
22659

query I rowsort
SELECT ALL - NULLIF ( - - 59, ( + + 63 ) ) * - + 31
----
1829

query I rowsort
SELECT DISTINCT + 11 * 11 * 10 col0
----
1210

query I rowsort
SELECT ( - 19 ) + - 55 AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT ALL 1 + + 66 + 39 DIV - 56
----
67

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL 1 + + 66 + 39 / - 56
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT NULLIF ( - - 95, + 72 ) + + NULLIF ( 7, - 31 / - 47 ) - - - 51 * + 45 + + SUM( ALL - 10 ) AS col0
----
-2203

skipif mysql # not compatible
query I rowsort label-1581
SELECT NULLIF ( - - 95, + 72 ) + + NULLIF ( 7, - 31 / - 47 ) - - - 51 * + 45 + + SUM ( ALL - 10 ) AS col0
----
-2203

query I rowsort
SELECT 87 * + - 48 * + 83
----
-346608

query I rowsort
SELECT DISTINCT 95 + + 17 + - 81 col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT + 1 DIV 28 + + 84 + + + 9
----
93

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 1 / 28 + + 84 + + + 9
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1585
SELECT ALL - 5 * + + CASE + ( - CASE + + COUNT( * ) WHEN + COUNT( * ) THEN + 94 + - - 24 + 32 WHEN + 98 / - CAST( NULL AS DECIMAL ) * + + 97 + 90 THEN NULL ELSE NULL END ) WHEN - 60 THEN + 97 END * - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - 5 * + + CASE + ( - CASE + + COUNT ( * ) WHEN + COUNT ( * ) THEN + 94 + - - 24 + 32 WHEN + 98 / - CAST ( NULL AS REAL ) * + + 97 + 90 THEN NULL ELSE NULL END ) WHEN - 60 THEN + 97 END * - - 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT 0 + 0 DIV - - ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT 0 + 0 / - - ( + 32 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT DISTINCT 59 * CASE - 17 WHEN - - 11 THEN + 5 / - - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 59 * CASE - 17 WHEN - - 11 THEN + 5 / - - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT ALL - 32 * + 59, + 28 AS col1
----
-1888
28

query I rowsort
SELECT 87 + + + 21 + - 79 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL 35 + COUNT( * ) + - - ( + + 33 ) * - 5 * - 92
----
15216

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL 35 + COUNT ( * ) + - - ( + + 33 ) * - 5 * - 92
----
15216

query I rowsort
SELECT ALL 94 * 31
----
2914

query I rowsort
SELECT DISTINCT 53 * - 27
----
-1431

query I rowsort
SELECT 6 + - + 41 * + - 26 * + + 77 AS col0
----
82088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1594
SELECT 77 + - - 90 DIV COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-1594
SELECT 77 + - - 90 / COUNT ( * )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT 12 * + + MIN( - + 2 )
----
-24

skipif mysql # not compatible
query I rowsort label-1595
SELECT 12 * + + MIN ( - + 2 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - 28 + 98 + COUNT( * ) + - 17 col0
----
54

skipif mysql # not compatible
query I rowsort label-1596
SELECT - 28 + 98 + COUNT ( * ) + - 17 col0
----
54

query I rowsort
SELECT ALL - 94 * + 75 + 2 * + 62 AS col0
----
-6926

query I rowsort
SELECT 74 + 92
----
166

query III rowsort
SELECT DISTINCT - - ( + 56 ) * - + 4 + - 51 AS col0, 4 AS col1, + + 32 col1
----
-275
4
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT 66 * 57 * - ( + COUNT( * ) ) AS col2
----
-3762

skipif mysql # not compatible
query I rowsort label-1600
SELECT 66 * 57 * - ( + COUNT ( * ) ) AS col2
----
-3762

query I rowsort
SELECT ALL - 34 * 1 * 20 col2
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - + CASE - ( 6 ) WHEN - - 72 + - - 60 + 40 THEN NULL ELSE - + 53 - - + 69 + SUM( + - 53 ) END AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1602
SELECT - + CASE - ( 6 ) WHEN - - 72 + - - 60 + 40 THEN NULL ELSE - + 53 - - + 69 + SUM ( + - 53 ) END AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT + COUNT( DISTINCT + 56 ) + ( - 2 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + COUNT ( DISTINCT + 56 ) + ( - 2 ) AS col1
----
-1

query I rowsort
SELECT ALL COALESCE ( 5, 79 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT ALL 68 + COUNT( * ) AS col0, + 86 * - + 21 AS col2
----
69
-1806

skipif mysql # not compatible
query II rowsort label-1605
SELECT ALL 68 + COUNT ( * ) AS col0, + 86 * - + 21 AS col2
----
69
-1806

query I rowsort
SELECT ALL + 27 + - 52 AS col0
----
-25

query I rowsort
SELECT ALL - 63 + - - 41
----
-22

query I rowsort
SELECT - 7 * 59
----
-413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT + CAST( + 53 AS SIGNED ) + + COALESCE ( 3, + 93 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1609
SELECT + CAST ( + 53 AS INTEGER ) + + COALESCE ( 3, + 93 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1610
SELECT ALL 54 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + 14 + - CAST( - + 18 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 54 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 14 + - CAST ( - + 18 AS REAL )
----
NULL

query I rowsort
SELECT NULLIF ( - 36, + 58 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + SUM( - 29 ) + + 40 + + 21 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1612
SELECT + SUM ( - 29 ) + + 40 + + 21 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + SUM( - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-1613
SELECT + SUM ( - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT + SUM( ALL + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1614
SELECT + SUM ( ALL + 15 ) AS col0
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT + COUNT( * ) DIV + 10 * + ( + 51 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT + COUNT ( * ) / + 10 * + ( + 51 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT CASE - + 20 WHEN 17 THEN NULL WHEN 54 * 89 + + + COUNT( * ) - + + CASE + 17 WHEN COUNT( * ) + ( - 52 ) THEN + 34 + - - 93 END THEN NULL ELSE - 88 * - COALESCE ( - + 13, ( - COUNT( * ) ), + 0 ) END AS col0
----
-1144

skipif mysql # not compatible
query I rowsort label-1617
SELECT CASE - + 20 WHEN 17 THEN NULL WHEN 54 * 89 + + + COUNT ( * ) - + + CASE + 17 WHEN COUNT ( * ) + ( - 52 ) THEN + 34 + - - 93 END THEN NULL ELSE - 88 * - COALESCE ( - + 13, ( - COUNT ( * ) ), + 0 ) END AS col0
----
-1144

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT 28 * 74 - + - 58 AS col2, + COUNT( * )
----
2130
1

skipif mysql # not compatible
query II rowsort label-1618
SELECT 28 * 74 - + - 58 AS col2, + COUNT ( * )
----
2130
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1619
SELECT + SUM( ALL + 98 ) * - ( + MIN( ALL + + 51 ) ), + 18 DIV - CASE + - 63 WHEN - 81 THEN + ( 73 ) * - + 6 + - COUNT( * ) ELSE + 63 + 72 END AS col1
----
-4998
0

skipif mysql # not compatible
query II rowsort label-1619
SELECT + SUM ( ALL + 98 ) * - ( + MIN ( ALL + + 51 ) ), + 18 / - CASE + - 63 WHEN - 81 THEN + ( 73 ) * - + 6 + - COUNT ( * ) ELSE + 63 + 72 END AS col1
----
-4998
0

query I rowsort
SELECT + CASE - 2 WHEN + 88 THEN NULL ELSE + + 56 * - 41 END AS col2
----
-2296

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT CASE + 7 WHEN + - MAX( DISTINCT - - 61 ) * 86 THEN COUNT( * ) WHEN - 83 THEN + ( - 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT CASE + 7 WHEN + - MAX ( DISTINCT - - 61 ) * 86 THEN COUNT ( * ) WHEN - 83 THEN + ( - 46 ) END
----
NULL

query I rowsort
SELECT - 35 * + 50
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL COUNT( * ) / - 20 / 7 * - CASE - 75 WHEN 5 + COALESCE ( 75, 62 ) THEN + 4 / + 80 * + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL COUNT ( * ) / - 20 / 7 * - CASE - 75 WHEN 5 + COALESCE ( 75, 62 ) THEN + 4 / + 80 * + - COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT + ( + - ( 89 ) ) * 75 + + - 0, + 57 * + 1 + + 81 AS col0
----
-6675
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT - 42 * - CAST( - - 62 AS SIGNED ) - - ( + COUNT( * ) ) * - - 84
----
2688

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - 42 * - CAST ( - - 62 AS INTEGER ) - - ( + COUNT ( * ) ) * - - 84
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT DISTINCT + 57 * CAST( 94 AS SIGNED )
----
5358

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + 57 * CAST ( 94 AS INTEGER )
----
5358

query I rowsort
SELECT ALL - 98 * - + 18
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT + 83 DIV - MAX( - + 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 83 / - MAX ( - + 55 ) AS col1
----
1

query I rowsort
SELECT ALL + 54 * + - ( - 49 ) * - 19 AS col2
----
-50274

query I rowsort
SELECT ALL - 38 * + 29 + - - 7
----
-1095

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

skipif mysql # not compatible
query I rowsort label-1632
SELECT + + ( - + MAX ( 15 ) )
----
-15

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

skipif mysql # not compatible
query II rowsort label-1633
SELECT ALL + 78 col2, COUNT ( * )
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - - 94 * - MAX( DISTINCT + 31 )
----
-2914

skipif mysql # not compatible
query I rowsort label-1634
SELECT - - 94 * - MAX ( DISTINCT + 31 )
----
-2914

query II rowsort
SELECT - - 11, 89 col2
----
11
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1636
SELECT + + CAST( - - 85 AS SIGNED ) * + COUNT( * ) AS col1, 79 + - MIN( 56 ) * - 14 * - 44 + + + 11 AS col2
----
85
-34406

skipif mysql # not compatible
query II rowsort label-1636
SELECT + + CAST ( - - 85 AS INTEGER ) * + COUNT ( * ) AS col1, 79 + - MIN ( 56 ) * - 14 * - 44 + + + 11 AS col2
----
85
-34406

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + 85 + COALESCE ( MIN( ALL - + 46 ), 90 * 31 + 81 * + - 98 + - 93 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 85 + COALESCE ( MIN ( ALL - + 46 ), 90 * 31 + 81 * + - 98 + - 93 ) AS col1
----
39

query I rowsort
SELECT ALL 55 + 33 col1
----
88

query I rowsort
SELECT DISTINCT - - 56 + + 17
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1640
SELECT ALL + - 93 + - CAST( NULL AS SIGNED ) * - 28 * + - 44 + + 78, + 76 * + + 87 AS col1
----
NULL
6612

skipif mysql # not compatible
query II rowsort label-1640
SELECT ALL + - 93 + - CAST ( NULL AS INTEGER ) * - 28 * + - 44 + + 78, + 76 * + + 87 AS col1
----
NULL
6612

query I rowsort
SELECT - + 16 - - 83 AS col1
----
67

query I rowsort
SELECT ALL CASE 95 WHEN 99 * 53 + - + AVG ( 76 ) THEN - 86 + - - 94 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 42 + 6 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT 6, - COALESCE ( - - ( - COUNT( * ) ), + 89 * - 73 ) * - 60 AS col1
----
6
-60

skipif mysql # not compatible
query II rowsort label-1645
SELECT 6, - COALESCE ( - - ( - COUNT ( * ) ), + 89 * - 73 ) * - 60 AS col1
----
6
-60

query I rowsort
SELECT ALL - 77 + - 82 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - 66 + - 10 - COUNT( DISTINCT - 48 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1647
SELECT - 66 + - 10 - COUNT ( DISTINCT - 48 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL ( - - CASE + 99 WHEN + COUNT( * ) * - 92 / - 89 + MIN( + 95 ) THEN + - COUNT( * ) * 8 * - 79 / + + 71 * + + 51 + + NULLIF ( - ( - 90 ), - 16 / + 94 + + - 84 ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL ( - - CASE + 99 WHEN + COUNT ( * ) * - 92 / - 89 + MIN ( + 95 ) THEN + - COUNT ( * ) * 8 * - 79 / + + 71 * + + 51 + + NULLIF ( - ( - 90 ), - 16 / + 94 + + - 84 ) ELSE NULL END ) AS col1
----
NULL

query II rowsort
SELECT - 25 AS col1, 83 col2
----
-25
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT - COUNT( * ) + - 4, 42 AS col1
----
-5
42

skipif mysql # not compatible
query II rowsort label-1650
SELECT - COUNT ( * ) + - 4, 42 AS col1
----
-5
42

query II rowsort
SELECT - 79 AS col1, 43
----
-79
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL + ( + SUM( DISTINCT 48 ) ) * - COUNT( * ) + + 4
----
-44

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + ( + SUM ( DISTINCT 48 ) ) * - COUNT ( * ) + + 4
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL - 77 + + - COUNT( DISTINCT - - 21 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - 77 + + - COUNT ( DISTINCT - - 21 ) AS col0
----
-78

query I rowsort
SELECT DISTINCT + 23 * 8 * 76 col0
----
13984

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT - SUM( DISTINCT - + 37 ) + + 30 + + 95 + - 73 * 53 DIV + 73
----
109

skipif mysql # not compatible
query I rowsort label-1656
SELECT - SUM ( DISTINCT - + 37 ) + + 30 + + 95 + - 73 * 53 / + 73
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT DISTINCT + 87 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + 87 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT - ( - 32 ) DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT - ( - 32 ) / 41 AS col2
----
0

query I rowsort
SELECT - 94 + + 19
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + CASE - 57 WHEN - COUNT( + COALESCE ( - 55, - + 97, + 14 ) ) + + + COUNT( * ) THEN NULL ELSE + + COUNT( * ) * + + 73 END
----
73

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + CASE - 57 WHEN - COUNT ( + COALESCE ( - 55, - + 97, + 14 ) ) + + + COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) * + + 73 END
----
73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1662
SELECT COALESCE ( - 0, + - 53 ) / + 58 + - COUNT( * ) / 18 + 17 * - 54 / + 40 * - CAST( NULL AS SIGNED ) + + 45 col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1662
SELECT COALESCE ( - 0, + - 53 ) / + 58 + - COUNT ( * ) / 18 + 17 * - 54 / + 40 * - CAST ( NULL AS INTEGER ) + + 45 col0, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT + NULLIF ( + 80, - + 29 ) AS col0
----
80

query I rowsort
SELECT + 23 * 37 AS col0
----
851

query I rowsort
SELECT + 40 + - 58 * - - 51 + - 66 col2
----
-2984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1666
SELECT DISTINCT + - 4 * MAX( 30 ) * + + 74 + 45 + - 98 + + 53 + + 60 DIV - - 3 + + 31
----
-8829

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT + - 4 * MAX ( 30 ) * + + 74 + 45 + - 98 + + 53 + + 60 / - - 3 + + 31
----
-8829

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT DISTINCT + 0 * + COUNT( * ) * - 38 * + 8 AS col1, 35 * + + 52 + - 70 AS col0
----
0
1750

skipif mysql # not compatible
query II rowsort label-1667
SELECT DISTINCT + 0 * + COUNT ( * ) * - 38 * + 8 AS col1, 35 * + + 52 + - 70 AS col0
----
0
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT DISTINCT + MIN( - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + MIN ( - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + COALESCE ( - + SUM( ALL 21 ), 45, + - 58 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1669
SELECT + COALESCE ( - + SUM ( ALL 21 ), 45, + - 58 ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1670
SELECT - 24 * + COUNT( * ) + + 13 + + 41 DIV 21
----
-10

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 24 * + COUNT ( * ) + + 13 + + 41 / 21
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL + - 98 * - 17 * - + MIN( + 66 ) + - - 54 + 88
----
-109814

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + - 98 * - 17 * - + MIN ( + 66 ) + - - 54 + 88
----
-109814

query I rowsort
SELECT + 56 * 46
----
2576

query II rowsort
SELECT + 50 AS col1, - 83
----
50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL - 94 * + 97 + + COUNT( * ) - + ( + 95 ) col2
----
-9212

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - 94 * + 97 + + COUNT ( * ) - + ( + 95 ) col2
----
-9212

query I rowsort
SELECT ALL 53 * 60 + - 14 + 97 AS col2
----
3263

query I rowsort
SELECT + - NULLIF ( - 28, + 16 * 57 + 75 ) * + 22
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + COALESCE ( + 2, - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + COALESCE ( + 2, - COUNT ( * ) )
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT 52 DIV 23 - 53 + + ( - ( 62 ) ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-1679
SELECT 52 / 23 - 53 + + ( - ( 62 ) ) AS col1
----
-113

query I rowsort
SELECT - 59 * + 59 AS col0
----
-3481

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

skipif mysql # not compatible
query I rowsort label-1681
SELECT - - MAX ( ALL - 30 )
----
-30

query II rowsort
SELECT + 85 AS col2, 92 + + 31
----
85
123

query I rowsort
SELECT 85 * - 68
----
-5780

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

query I rowsort
SELECT ALL 25 - - 60
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT CAST( + 61 AS SIGNED ) * - 4 col1
----
-244

skipif mysql # not compatible
query I rowsort label-1686
SELECT CAST ( + 61 AS INTEGER ) * - 4 col1
----
-244

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT ALL - 46 - + COALESCE ( 5, + 90 * + COUNT( * ) * - - COUNT( * ) + NULLIF ( - 1, + 67 * - + COUNT( * ) ) + - 38 ) / - - 52 + + ( - CASE + 26 WHEN + 8 * + - 79 THEN - 40 END ) AS col0, + 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL - 46 - + COALESCE ( 5, + 90 * + COUNT ( * ) * - - COUNT ( * ) + NULLIF ( - 1, + 67 * - + COUNT ( * ) ) + - 38 ) / - - 52 + + ( - CASE + 26 WHEN + 8 * + - 79 THEN - 40 END ) AS col0, + 88 AS col0
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT + MIN( ALL + 30 ) * - MAX( + + 94 ) + - 7 AS col1
----
-2827

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + MIN ( ALL + 30 ) * - MAX ( + + 94 ) + - 7 AS col1
----
-2827

query I rowsort
SELECT 90 * - + 93 col2
----
-8370

query I rowsort
SELECT ALL + 73 * - 9 * - 56
----
36792

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

skipif mysql # not compatible
query I rowsort label-1691
SELECT 96 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT ALL + 1 * + + 78 * 60 DIV 62 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + 1 * + + 78 * 60 / 62 / 91
----
0

query I rowsort
SELECT ALL - 46 - - + 65
----
19

query II rowsort
SELECT DISTINCT + 92 * - 66 AS col1, + 90 + 88 * - 14 * - ( - ( 29 ) )
----
-6072
-35638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT ALL + SUM( DISTINCT - ( 9 ) ) * + - 53 + 86 DIV + 30 + - ( 24 ) AS col2
----
455

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + SUM ( DISTINCT - ( 9 ) ) * + - 53 + 86 / + 30 + - ( 24 ) AS col2
----
455

query I rowsort
SELECT 22 + - 2 + - 4 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL - CASE - 16 WHEN - 7 * - + 90 THEN + 32 WHEN + + COALESCE ( 42, + 94 + - COUNT( * ), + 47 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - CASE - 16 WHEN - 7 * - + 90 THEN + 32 WHEN + + COALESCE ( 42, + 94 + - COUNT ( * ), + 47 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 74 * + 77 AS col1
----
-5698

query I rowsort
SELECT DISTINCT - ( + 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + 33 * - + 0 + + 3 ) DIV 90 * + - 64 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + 33 * - + 0 + + 3 ) / 90 * + - 64 / 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT - SUM( ALL - 10 ) + - + 38 * 36 - - + 93 * - - ( - 76 ) * + 42
----
-298214

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - SUM ( ALL - 10 ) + - + 38 * 36 - - + 93 * - - ( - 76 ) * + 42
----
-298214

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT - 74 DIV 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 74 / 35 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - 81 * 55 * - + 85 - - + COUNT( * )
----
378676

skipif mysql # not compatible
query I rowsort label-1703
SELECT - 81 * 55 * - + 85 - - + COUNT ( * )
----
378676

query I rowsort
SELECT + - ( + - 49 )
----
49

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

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

query I rowsort
SELECT DISTINCT + - 84 * + - 2 col0
----
168

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - - COUNT ( * ) + - - 75 AS col0
----
76

query I rowsort
SELECT - ( - - 19 ) * 80 - + 62 * 95 AS col1
----
-7410

query I rowsort
SELECT ALL + NULLIF ( - 28, - 41 * - 96 + + - 48 ) * 73 AS col2
----
-2044

query I rowsort
SELECT ALL + - ( + 78 ) + - - 23 * + + 24
----
474

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT - - 60 * - ( - 39 ) + + - 66 - + - COUNT( ALL - + 81 ) * + + 0 AS col2, - 78 * CASE - COUNT( * ) WHEN - - 21 THEN - AVG ( ALL + 35 ) + MIN( 33 ) END + - - 20 AS col2
----
2274
NULL

skipif mysql # not compatible
query II rowsort label-1711
SELECT - - 60 * - ( - 39 ) + + - 66 - + - COUNT ( ALL - + 81 ) * + + 0 AS col2, - 78 * CASE - COUNT ( * ) WHEN - - 21 THEN - AVG ( ALL + 35 ) + MIN ( 33 ) END + - - 20 AS col2
----
2274
NULL

query I rowsort
SELECT + 26 * + - 33 * 83 + - 55 AS col1
----
-71269

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT - ( 63 ) AS col2, + 5 - - + MIN( 77 ) + MAX( + 13 ) * 34 + - ( + NULLIF ( + - 93, + + COUNT( * ) ) ) AS col2
----
-63
617

skipif mysql # not compatible
query II rowsort label-1714
SELECT - ( 63 ) AS col2, + 5 - - + MIN ( 77 ) + MAX ( + 13 ) * 34 + - ( + NULLIF ( + - 93, + + COUNT ( * ) ) ) AS col2
----
-63
617

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 65 + + + 45 + + + 18 + - + COUNT( DISTINCT + 42 ) + + 22 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-1715
SELECT 65 + + + 45 + + + 18 + - + COUNT ( DISTINCT + 42 ) + + 22 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL 31 - - CASE + COUNT( * ) WHEN COUNT( * ) + + - 96 THEN NULL WHEN COUNT( * ) THEN + 60 ELSE NULL END AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 31 - - CASE + COUNT ( * ) WHEN COUNT ( * ) + + - 96 THEN NULL WHEN COUNT ( * ) THEN + 60 ELSE NULL END AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL 43 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL 43 / - 32
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1718
SELECT CASE ( 79 ) WHEN - 48 THEN CAST( + 32 AS SIGNED ) END + + - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT CASE ( 79 ) WHEN - 48 THEN CAST ( + 32 AS INTEGER ) END + + - ( + - COUNT ( * ) )
----
NULL

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

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

query I rowsort
SELECT ALL 95 * - 39 AS col1
----
-3705

query I rowsort
SELECT 61 * - 11
----
-671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1722
SELECT AVG ( - 50 ) * + CAST( NULL AS SIGNED ), 6 * + + CAST( NULL AS SIGNED ) * - + 15 col1, - - ( + 19 ) * COUNT( * ) * + 35 + - 61 + - + COUNT( * ) col2
----
NULL
NULL
603

skipif mysql # not compatible
query III rowsort label-1722
SELECT AVG ( - 50 ) * + CAST ( NULL AS INTEGER ), 6 * + + CAST ( NULL AS INTEGER ) * - + 15 col1, - - ( + 19 ) * COUNT ( * ) * + 35 + - 61 + - + COUNT ( * ) col2
----
NULL
NULL
603

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT ALL AVG ( DISTINCT - 15 ) * + CASE - 42 WHEN - + 31 THEN - COALESCE ( + + ( ( + 52 ) ), - - 31 * + 19 / + 34 ) END * - 19 * + - 38 / - 74 - - 45 * - - 25 * - CAST( NULL AS SIGNED ) * NULLIF ( - + COUNT( + 29 ), 68 ) - 64 - + 0 + + - 23 * 38 * + + 94 * 9 / + + 37 + - 61 - - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL AVG ( DISTINCT - 15 ) * + CASE - 42 WHEN - + 31 THEN - COALESCE ( + + ( ( + 52 ) ), - - 31 * + 19 / + 34 ) END * - 19 * + - 38 / - 74 - - 45 * - - 25 * - CAST ( NULL AS INTEGER ) * NULLIF ( - + COUNT ( + 29 ), 68 ) - 64 - + 0 + + - 23 * 38 * + + 94 * 9 / + + 37 + - 61 - - 68 AS col1
----
NULL

query II rowsort
SELECT - 44 AS col0, + 14 col0
----
-44
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT CAST( 96 AS SIGNED ) + + 29 col0
----
125

skipif mysql # not compatible
query I rowsort label-1726
SELECT CAST ( 96 AS INTEGER ) + + 29 col0
----
125

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT 25 - + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT DISTINCT 47, + COUNT( ALL + 98 ) + + - 2 AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-1728
SELECT DISTINCT 47, + COUNT ( ALL + 98 ) + + - 2 AS col0
----
47
-1

query I rowsort
SELECT 21 * 87 AS col1
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL 23 + - 58 * ( MAX( ( - ( - 13 ) ) ) ) col0
----
-731

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL 23 + - 58 * ( MAX ( ( - ( - 13 ) ) ) ) col0
----
-731

query II rowsort
SELECT 76 col2, + 69 AS col0
----
76
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1732
SELECT NULLIF ( + 35, + + CAST( NULL AS SIGNED ) + + + 10 + + 56 ) + - 87 + + + 11 DIV + 81
----
-52

skipif mysql # not compatible
query I rowsort label-1732
SELECT NULLIF ( + 35, + + CAST ( NULL AS INTEGER ) + + + 10 + + 56 ) + - 87 + + + 11 / + 81
----
-52

query II rowsort
SELECT + - 97, 56 + - 21 AS col0
----
-97
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1734
SELECT - 53 * - 81 * + 71 + CAST( - - 98 AS SIGNED ) * + + 99 + - ( - - 34 ) + 80 col1, 64 AS col0
----
314551
64

skipif mysql # not compatible
query II rowsort label-1734
SELECT - 53 * - 81 * + 71 + CAST ( - - 98 AS INTEGER ) * + + 99 + - ( - - 34 ) + 80 col1, 64 AS col0
----
314551
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - - CASE - 69 WHEN COUNT( * ) * CAST( NULL AS SIGNED ) / - + COUNT( * ) THEN NULL WHEN 29 THEN - - 88 * + AVG ( - - 84 ) ELSE NULL END * - 87 * 95 + + CAST( 11 AS SIGNED ) + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT - - CASE - 69 WHEN COUNT ( * ) * CAST ( NULL AS INTEGER ) / - + COUNT ( * ) THEN NULL WHEN 29 THEN - - 88 * + AVG ( - - 84 ) ELSE NULL END * - 87 * 95 + + CAST ( 11 AS INTEGER ) + - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL ( - 25 ) * - SUM( DISTINCT - 4 ) + 70
----
-30

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL ( - 25 ) * - SUM ( DISTINCT - 4 ) + 70
----
-30

query I rowsort
SELECT DISTINCT - 73 * + 94
----
-6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT ALL 21 * - CAST( - 71 AS SIGNED ) + + 19 + - 58 col0
----
1452

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 21 * - CAST ( - 71 AS INTEGER ) + + 19 + - 58 col0
----
1452

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT DISTINCT + 42 * + - 88 * - - 57 + + - MAX( ALL - 58 ) + + + 56 AS col2, - 5
----
-210558
-5

skipif mysql # not compatible
query II rowsort label-1739
SELECT DISTINCT + 42 * + - 88 * - - 57 + + - MAX ( ALL - 58 ) + + + 56 AS col2, - 5
----
-210558
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1740
SELECT ALL - + 86 DIV CAST( + 33 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - + 86 / CAST ( + 33 AS INTEGER ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT ALL + - 49 AS col0, - MIN( + + 63 ) AS col1
----
-49
-63

skipif mysql # not compatible
query II rowsort label-1741
SELECT ALL + - 49 AS col0, - MIN ( + + 63 ) AS col1
----
-49
-63

query I rowsort
SELECT - + 43 * - - 65
----
-2795

query II rowsort
SELECT + + 20 AS col2, + 98 * - + ( - - 22 ) AS col2
----
20
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT - - 68 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT - - 68 / - 45
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1745
SELECT - 10 + 76 * + 81 AS col0, 3 * - 89 + + - 96 DIV - + 62 + - COALESCE ( - COUNT( * ), - ( + COUNT( * ) ) )
----
6146
-265

skipif mysql # not compatible
query II rowsort label-1745
SELECT - 10 + 76 * + 81 AS col0, 3 * - 89 + + - 96 / - + 62 + - COALESCE ( - COUNT ( * ), - ( + COUNT ( * ) ) )
----
6146
-265

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT + 24 + 82 DIV - 23 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 24 + 82 / - 23 AS col2
----
21

query II rowsort
SELECT DISTINCT + 43, 70 AS col2
----
43
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ALL + 8 - + 80 DIV 44 * - 40 * - 88
----
-3512

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + 8 - + 80 / 44 * - 40 * - 88
----
-3512

query I rowsort
SELECT DISTINCT - 0 * - 71
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1750
SELECT DISTINCT - 91 * - 67 / + CASE - - ( - 46 ) WHEN + 17 THEN - ( + ( CAST( NULL AS DECIMAL ) ) ) * + 73 WHEN + ( + 88 ) / - 51 + - 7 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - 91 * - 67 / + CASE - - ( - 46 ) WHEN + 17 THEN - ( + ( CAST ( NULL AS REAL ) ) ) * + 73 WHEN + ( + 88 ) / - 51 + - 7 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 47 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT ALL 42 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 42 / 15
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT + COUNT( * ) DIV 42 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT + COUNT ( * ) / 42 / 50 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1754
SELECT ALL CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0, + 85 * - 79 * - ( 81 )
----
NULL
543915

skipif mysql # not compatible
query II rowsort label-1754
SELECT ALL CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col0, + 85 * - 79 * - ( 81 )
----
NULL
543915

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL NULLIF ( 29, MAX( DISTINCT - NULLIF ( 34, 54 * + + 89 * 56 ) ) ) + + + 79 * + + COUNT( * ) * - 70 * 33 * 81 AS col1
----
-14781661

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL NULLIF ( 29, MAX ( DISTINCT - NULLIF ( 34, 54 * + + 89 * 56 ) ) ) + + + 79 * + + COUNT ( * ) * - 70 * 33 * 81 AS col1
----
-14781661

query I rowsort
SELECT + 17 + 75 * - - 11 AS col0
----
842

query I rowsort
SELECT + 94 * - 13 AS col1
----
-1222

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT DISTINCT 17 * - + 8 AS col0, + COUNT( * ) + + COUNT( * ) AS col0
----
-136
2

skipif mysql # not compatible
query II rowsort label-1758
SELECT DISTINCT 17 * - + 8 AS col0, + COUNT ( * ) + + COUNT ( * ) AS col0
----
-136
2

query I rowsort
SELECT - ( 93 ) + + 60 - + - 16 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT + 88 + 10 - - 40 + + 7 * - MIN( + 53 ) + - - 33 + COALESCE ( 64, - COUNT( * ), - 53 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + 88 + 10 - - 40 + + 7 * - MIN ( + 53 ) + - - 33 + COALESCE ( 64, - COUNT ( * ), - 53 ) AS col0
----
-136

query I rowsort
SELECT DISTINCT - 77 * + - 84 AS col2
----
6468

query II rowsort
SELECT ALL + ( - 63 ) AS col0, 94 AS col0
----
-63
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + - COUNT( * ) * 65 * 61
----
-3965

skipif mysql # not compatible
query I rowsort label-1763
SELECT + - COUNT ( * ) * 65 * 61
----
-3965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1764
SELECT DISTINCT - 53 DIV CASE + 69 WHEN + 90 THEN + CAST( + + COALESCE ( - 18, + - 2 ) AS SIGNED ) WHEN + 21 THEN NULL ELSE 91 + + 48 END + + - 44 + + ( NULLIF ( + - 11, - + 46 ) ) * + 89 + - 13 * - COUNT( * ) DIV - 38 - ( + 34 )
----
-1057

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT - 53 / CASE + 69 WHEN + 90 THEN + CAST ( + + COALESCE ( - 18, + - 2 ) AS INTEGER ) WHEN + 21 THEN NULL ELSE 91 + + 48 END + + - 44 + + ( NULLIF ( + - 11, - + 46 ) ) * + 89 + - 13 * - COUNT ( * ) / - 38 - ( + 34 )
----
-1057

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1766
SELECT DISTINCT + 24 / - CAST( NULL AS SIGNED ) - - MAX( - ( + + 52 ) ) AS col0, COUNT( * ) * + COALESCE ( - + 53, - + COUNT( * ) * - 77 * - 71 ) AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-1766
SELECT DISTINCT + 24 / - CAST ( NULL AS INTEGER ) - - MAX ( - ( + + 52 ) ) AS col0, COUNT ( * ) * + COALESCE ( - + 53, - + COUNT ( * ) * - 77 * - 71 ) AS col1
----
NULL
-53

query I rowsort
SELECT DISTINCT 51 * - 70 + + - 32 * - 10 AS col1
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT + MIN( - 49 ) * 36 - - + 55
----
-1709

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + MIN ( - 49 ) * 36 - - + 55
----
-1709

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL 42 * + + 74 - + 46 * + COUNT( - 36 )
----
3062

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 42 * + + 74 - + 46 * + COUNT ( - 36 )
----
3062

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + + COUNT( * ) * + 31 - + 4 * ( + COUNT( * ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1770
SELECT + + COUNT ( * ) * + 31 - + 4 * ( + COUNT ( * ) ) AS col2
----
27

query I rowsort
SELECT DISTINCT + 1 * 90
----
90

query I rowsort
SELECT - NULLIF ( + 69, - + 85 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT - 66 * + 82 AS col0, + COUNT( * ) * ( + - 75 )
----
-5412
-75

skipif mysql # not compatible
query II rowsort label-1773
SELECT - 66 * + 82 AS col0, + COUNT ( * ) * ( + - 75 )
----
-5412
-75

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

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

query I rowsort
SELECT NULLIF ( - 79, 36 * + 18 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT + 2 * - + SUM( - 31 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 2 * - + SUM ( - 31 ) AS col2
----
62

query I rowsort
SELECT - 66 * + + 12
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT + 14 * - - COALESCE ( - + 47, - 69 * 60 + + 26 * 48 * - - 19 DIV - + 45 * ( + + ( ( - 4 ) ) ), - 61 ) * 56 * + 92 + - - 39 + + - 67 DIV + 85
----
-3389977

skipif mysql # not compatible
query I rowsort label-1778
SELECT + 14 * - - COALESCE ( - + 47, - 69 * 60 + + 26 * 48 * - - 19 / - + 45 * ( + + ( ( - 4 ) ) ), - 61 ) * 56 * + 92 + - - 39 + + - 67 / + 85
----
-3389977

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT - 84 DIV - + 2
----
42

skipif mysql # not compatible
query I rowsort label-1779
SELECT - 84 / - + 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT CASE + 76 WHEN + AVG ( 22 ) * 2 * + MIN( 95 ) THEN - 0 WHEN + 59 THEN NULL ELSE NULL END * + MAX( ALL + + 68 ) * + - COUNT( * ) + 8 * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT CASE + 76 WHEN + AVG ( 22 ) * 2 * + MIN ( 95 ) THEN - 0 WHEN + 59 THEN NULL ELSE NULL END * + MAX ( ALL + + 68 ) * + - COUNT ( * ) + 8 * 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - 39 * + - 21 * + MAX( - - 50 ) - + + 14 + + + 63
----
40999

skipif mysql # not compatible
query I rowsort label-1781
SELECT - 39 * + - 21 * + MAX ( - - 50 ) - + + 14 + + + 63
----
40999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL CAST( 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL CAST ( 35 AS INTEGER )
----
35

query I rowsort
SELECT DISTINCT - 60 * ( + - COALESCE ( - - 76, - - ( - - ( - 83 ) ) ) )
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) + - + AVG ( - - 97 ) * - 15 + - + COUNT( * ) * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + AVG ( - - 97 ) * - 15 + - + COUNT ( * ) * - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL + NULLIF ( 10, - + 75 * + CAST( NULL AS SIGNED ) * + 81 ) * - 5 + - - SUM( ALL + 73 )
----
23

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + NULLIF ( 10, - + 75 * + CAST ( NULL AS INTEGER ) * + 81 ) * - 5 + - - SUM ( ALL + 73 )
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1787
SELECT - 76 + + COUNT( * ) DIV 83 + NULLIF ( - CAST( - 39 AS SIGNED ), - - 17 )
----
-37

skipif mysql # not compatible
query I rowsort label-1787
SELECT - 76 + + COUNT ( * ) / 83 + NULLIF ( - CAST ( - 39 AS INTEGER ), - - 17 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT - CASE + - 60 WHEN CAST( + COUNT( * ) AS SIGNED ) * + 85 + + 35 * AVG ( + 80 ) THEN - + 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT - CASE + - 60 WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + 85 + + 35 * AVG ( + 80 ) THEN - + 28 END AS col1
----
NULL

query I rowsort
SELECT ALL + 43 + + + 90 + + 25 + - - 49
----
207

query I rowsort
SELECT - 82 + + - 10
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT + MIN( ALL - - 29 ) DIV - - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT + MIN ( ALL - - 29 ) / - - 56 AS col1
----
0

query I rowsort
SELECT DISTINCT ( + 26 ) + - 26 * + + 78 * - 95
----
192686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT ALL + 90 + CAST( 60 AS SIGNED ) col0
----
150

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + 90 + CAST ( 60 AS INTEGER ) col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + - 79 * - 83 * + + CASE + - NULLIF ( 20, + ( 82 ) ) WHEN + 22 THEN NULL WHEN 69 THEN - - 75 ELSE NULL END * + COUNT( * ) * - SUM( 51 ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT + - 79 * - 83 * + + CASE + - NULLIF ( 20, + ( 82 ) ) WHEN + 22 THEN NULL WHEN 69 THEN - - 75 ELSE NULL END * + COUNT ( * ) * - SUM ( 51 ) + + 98
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + CAST ( 47 AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT - COUNT( * ) * + 39 + 82
----
43

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - COUNT ( * ) * + 39 + 82
----
43

query I rowsort
SELECT ALL - 23 * 95 + - 75 * - + 96
----
5015

query I rowsort
SELECT ALL NULLIF ( - 91, - - 80 ) * + 95
----
-8645

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

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

query I rowsort
SELECT ALL 40 * + 47 AS col2
----
1880

query I rowsort
SELECT 3 - + 56
----
-53

query I rowsort
SELECT DISTINCT + 16 * - - 88
----
1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1803
SELECT + 19 DIV COUNT( * ) + - + 8
----
11

skipif mysql # not compatible
query I rowsort label-1803
SELECT + 19 / COUNT ( * ) + - + 8
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + COALESCE ( + - 90, + 95 ) * + 94 - - 58 * - 11 + + 83 + - ( - - COUNT( * ) )
----
-9016

skipif mysql # not compatible
query I rowsort label-1804
SELECT + COALESCE ( + - 90, + 95 ) * + 94 - - 58 * - 11 + + 83 + - ( - - COUNT ( * ) )
----
-9016

query I rowsort
SELECT ALL - - 67 AS col1
----
67

query I rowsort
SELECT ALL - 72 * 68 * + 91
----
-445536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT + ( - - COALESCE ( + COALESCE ( - 68, - + COUNT( * ) * + 31 * - + 18 * + 73 ), + CAST( NULL AS SIGNED ), + 1 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-1807
SELECT + ( - - COALESCE ( + COALESCE ( - 68, - + COUNT ( * ) * + 31 * - + 18 * + 73 ), + CAST ( NULL AS INTEGER ), + 1 ) )
----
-68

query II rowsort
SELECT 36 * 32 + + - NULLIF ( + - 54, + 64 - + 69 ), 25 AS col2
----
1206
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT 9 * - 87 * + - 40 DIV + ( - + ( - COUNT( * ) ) )
----
31320

skipif mysql # not compatible
query I rowsort label-1810
SELECT 9 * - 87 * + - 40 / + ( - + ( - COUNT ( * ) ) )
----
31320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1811
SELECT 76 AS col0, - MAX( - + 93 ) DIV - 68 AS col2
----
76
-1

skipif mysql # not compatible
query II rowsort label-1811
SELECT 76 AS col0, - MAX ( - + 93 ) / - 68 AS col2
----
76
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1812
SELECT 16 + - ( + 26 ) * + 70, 95 + 52 DIV - - 68 col0
----
-1804
95

skipif mysql # not compatible
query II rowsort label-1812
SELECT 16 + - ( + 26 ) * + 70, 95 + 52 / - - 68 col0
----
-1804
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL MIN( ALL + - 76 ) * + 1 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL MIN ( ALL + - 76 ) * + 1 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1814
SELECT CAST( - NULLIF ( - + 60, + 12 ) AS SIGNED ) * - NULLIF ( - - 81, 8 * - + 71 - + ( - - ( - + NULLIF ( - 41, - + COUNT( * ) * - 77 * - + MIN( ALL CASE 51 WHEN 59 - - 19 THEN 8 + 84 ELSE 16 END ) + - 4 ) ) ) ) * - COALESCE ( + + 99, - 74 + - - 59 * + 60 * - - 48 - + ( 81 ) + + 26 DIV + - CASE + 81 WHEN 13 * + 73 - - 12 + - NULLIF ( + 2, + - 76 * + - MAX( DISTINCT 67 ) - + ( 10 ) * + 76 ) THEN + 74 ELSE NULL END ) + 25 col2
----
481165

skipif mysql # not compatible
query I rowsort label-1814
SELECT CAST ( - NULLIF ( - + 60, + 12 ) AS INTEGER ) * - NULLIF ( - - 81, 8 * - + 71 - + ( - - ( - + NULLIF ( - 41, - + COUNT ( * ) * - 77 * - + MIN ( ALL CASE 51 WHEN 59 - - 19 THEN 8 + 84 ELSE 16 END ) + - 4 ) ) ) ) * - COALESCE ( + + 99, - 74 + - - 59 * + 60 * - - 48 - + ( 81 ) + + 26 / + - CASE + 81 WHEN 13 * + 73 - - 12 + - NULLIF ( + 2, + - 76 * + - MAX ( DISTINCT 67 ) - + ( 10 ) * + 76 ) THEN + 74 ELSE NULL END ) + 25 col2
----
481165

query I rowsort
SELECT DISTINCT 71 + - 40
----
31

query I rowsort
SELECT DISTINCT + 11 + - + ( + ( - 49 ) ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT ALL - CAST( + - 56 AS SIGNED ) + - + CASE + + 71 WHEN + - 24 THEN NULL ELSE + - CAST( NULL AS SIGNED ) * + 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - CAST ( + - 56 AS INTEGER ) + - + CASE + + 71 WHEN + - 24 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) * + 82 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1818
SELECT 19 AS col1, + CAST( + 31 AS SIGNED ) AS col0
----
19
31

skipif mysql # not compatible
query II rowsort label-1818
SELECT 19 AS col1, + CAST ( + 31 AS INTEGER ) AS col0
----
19
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT + 11 + + COUNT( * ) * + 80 * - 56 AS col1
----
-4469

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + 11 + + COUNT ( * ) * + 80 * - 56 AS col1
----
-4469

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT ALL - MAX( DISTINCT ( 73 ) ) + 45, - ( - COALESCE ( + 65, - 27 ) ) AS col1
----
-28
65

skipif mysql # not compatible
query II rowsort label-1820
SELECT ALL - MAX ( DISTINCT ( 73 ) ) + 45, - ( - COALESCE ( + 65, - 27 ) ) AS col1
----
-28
65

query II rowsort
SELECT - 50, 54 AS col2
----
-50
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - 93 + - 19 - - COALESCE ( - 11, - 17 ) * - 91 + + SUM( DISTINCT 25 )
----
914

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - 93 + - 19 - - COALESCE ( - 11, - 17 ) * - 91 + + SUM ( DISTINCT 25 )
----
914

query I rowsort
SELECT 14 - + 9
----
5

query I rowsort
SELECT 50 * - 39 * 16 AS col2
----
-31200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL - CASE COUNT( * ) WHEN + 61 - 28 THEN + - COUNT( - 63 ) * - NULLIF ( - 85, - + 85 ) * - ( 70 ) WHEN CAST( NULL AS SIGNED ) THEN + + 71 END / - + ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - CASE COUNT ( * ) WHEN + 61 - 28 THEN + - COUNT ( - 63 ) * - NULLIF ( - 85, - + 85 ) * - ( 70 ) WHEN CAST ( NULL AS INTEGER ) THEN + + 71 END / - + ( 78 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1826
SELECT 56 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 3 AS col1, + 11
----
3
11

query I rowsort
SELECT 2 + 12
----
14

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

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

query II rowsort
SELECT - - 51 AS col1, 38 AS col2
----
51
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT COUNT( + 23 ) AS col0, - 55
----
1
-55

skipif mysql # not compatible
query II rowsort label-1832
SELECT COUNT ( + 23 ) AS col0, - 55
----
1
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT - COUNT( * ) col2, 93 col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-1833
SELECT - COUNT ( * ) col2, 93 col2
----
-1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1834
SELECT - CAST( NULL AS SIGNED ) AS col1, 45 * - 35 * COUNT( * ) col2
----
NULL
-1575

skipif mysql # not compatible
query II rowsort label-1834
SELECT - CAST ( NULL AS INTEGER ) AS col1, 45 * - 35 * COUNT ( * ) col2
----
NULL
-1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT ALL + COALESCE ( - 33, - 16 * + CASE - MAX( DISTINCT - 33 ) WHEN + + 88 * - 31 - - 39 DIV + - 55 THEN NULL WHEN + 81 THEN AVG ( DISTINCT + - 73 ) DIV - + 18 ELSE NULL END - + 8 + COUNT( * ), + 63 + 0 )
----
-33

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + COALESCE ( - 33, - 16 * + CASE - MAX ( DISTINCT - 33 ) WHEN + + 88 * - 31 - - 39 / + - 55 THEN NULL WHEN + 81 THEN AVG ( DISTINCT + - 73 ) / - + 18 ELSE NULL END - + 8 + COUNT ( * ), + 63 + 0 )
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT - 57 * NULLIF ( CASE + + ( + 76 ) WHEN + 29 + - + 4 THEN + - 42 + + + ( + 99 ) * COUNT( * ) ELSE NULL END, - + SUM( + 67 ) + 15 ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT - 57 * NULLIF ( CASE + + ( + 76 ) WHEN + 29 + - + 4 THEN + - 42 + + + ( + 99 ) * COUNT ( * ) ELSE NULL END, - + SUM ( + 67 ) + 15 ) + 63
----
NULL

query I rowsort
SELECT - 1 * - 45 AS col2
----
45

query I rowsort
SELECT ALL + 60 + + 82 col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT + 23 - - 47 + - + 11 DIV - 5
----
72

skipif mysql # not compatible
query I rowsort label-1840
SELECT + 23 - - 47 + - + 11 / - 5
----
72

query I rowsort
SELECT 16 * + + ( - 6 ) * + 1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT SUM( - - 28 ) AS col1, - 54 AS col2
----
28
-54

skipif mysql # not compatible
query II rowsort label-1842
SELECT SUM ( - - 28 ) AS col1, - 54 AS col2
----
28
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL + 87 + - 13, + MAX( + - 9 ) * + 69 + + COUNT( * ) * + 43 + 60 AS col0
----
74
-518

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + 87 + - 13, + MAX ( + - 9 ) * + 69 + + COUNT ( * ) * + 43 + 60 AS col0
----
74
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT CASE - MAX( + + 82 ) WHEN + 5 THEN + 55 * 25 WHEN CASE + MIN( - CAST( NULL AS SIGNED ) ) WHEN - 97 THEN - 22 * 39 WHEN - - 47 THEN NULL WHEN - - AVG ( ALL - + 45 ) + - 99 * + + 75 / + - 76 * + 43 + - - COUNT( * ) - - 91 THEN NULL ELSE 50 + 71 END / - - CAST( NULL AS SIGNED ) * + 36 - - 74 THEN - + 17 ELSE - 82 END + - 10 col1
----
-92

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT CASE - MAX ( + + 82 ) WHEN + 5 THEN + 55 * 25 WHEN CASE + MIN ( - CAST ( NULL AS INTEGER ) ) WHEN - 97 THEN - 22 * 39 WHEN - - 47 THEN NULL WHEN - - AVG ( ALL - + 45 ) + - 99 * + + 75 / + - 76 * + 43 + - - COUNT ( * ) - - 91 THEN NULL ELSE 50 + 71 END / - - CAST ( NULL AS INTEGER ) * + 36 - - 74 THEN - + 17 ELSE - 82 END + - 10 col1
----
-92

query I rowsort
SELECT ALL 19 + - + ( + + 9 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT 51 * - COUNT( - - 20 ) - + ( + 40 ) + + 95 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1846
SELECT 51 * - COUNT ( - - 20 ) - + ( + 40 ) + + 95 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL ( + 67 ) + + - COALESCE ( + SUM( + COALESCE ( - - 77, + 93 * - 21 ) ), SUM( ( 62 ) ) ) + + 0 * - - 14
----
-10

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL ( + 67 ) + + - COALESCE ( + SUM ( + COALESCE ( - - 77, + 93 * - 21 ) ), SUM ( ( 62 ) ) ) + + 0 * - - 14
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL ( + + SUM( - - 89 ) ) + 23 + - + 37 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL ( + + SUM ( - - 89 ) ) + 23 + - + 37 AS col1
----
75

query I rowsort
SELECT 25 * - NULLIF ( - 1, - + 93 ) + + - 95 + + 6
----
-64

query I rowsort
SELECT 50 - - - 44 * - - 66
----
-2854

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT - MAX( ALL 23 ) AS col2, - 32 + - + 66 AS col1
----
-23
-98

skipif mysql # not compatible
query II rowsort label-1851
SELECT - MAX ( ALL 23 ) AS col2, - 32 + - + 66 AS col1
----
-23
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT 24 + + + 79 + + COUNT( 81 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-1852
SELECT 24 + + + 79 + + COUNT ( 81 ) AS col1
----
104

query I rowsort
SELECT ALL 23 - - 58 AS col2
----
81

query II rowsort
SELECT ALL + 26 - - 0 col0, 85
----
26
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1855
SELECT DISTINCT ( + - 86 ) AS col1, - COUNT( * ) + + COUNT( - CAST( NULL AS SIGNED ) ) col2
----
-86
-1

skipif mysql # not compatible
query II rowsort label-1855
SELECT DISTINCT ( + - 86 ) AS col1, - COUNT ( * ) + + COUNT ( - CAST ( NULL AS INTEGER ) ) col2
----
-86
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT + COUNT( - 69 ) + - 40 + + - ( - 94 ) + CAST( 98 AS SIGNED ) * 77
----
7601

skipif mysql # not compatible
query I rowsort label-1856
SELECT + COUNT ( - 69 ) + - 40 + + - ( - 94 ) + CAST ( 98 AS INTEGER ) * 77
----
7601

query I rowsort
SELECT - CASE - 1 WHEN 24 THEN 28 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT - COUNT( * ) * + + 75 - 47 + + 68 + 16 * + 61 + + 58 - - 69 + + 11 * COUNT( * ) DIV 75
----
1049

skipif mysql # not compatible
query I rowsort label-1859
SELECT - COUNT ( * ) * + + 75 - 47 + + 68 + 16 * + 61 + + 58 - - 69 + + 11 * COUNT ( * ) / 75
----
1049

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT - - 44 + - COUNT( * ), 14 * + COALESCE ( + 57, - + 52 * - 70 * - 93 ) AS col1
----
43
798

skipif mysql # not compatible
query II rowsort label-1860
SELECT - - 44 + - COUNT ( * ), 14 * + COALESCE ( + 57, - + 52 * - 70 * - 93 ) AS col1
----
43
798

query I rowsort
SELECT DISTINCT + + 23 * 97 AS col1
----
2231

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - + 69 + COUNT( * ) + - + ( + COUNT( * ) ) * - 60
----
-8

skipif mysql # not compatible
query I rowsort label-1862
SELECT - + 69 + COUNT ( * ) + - + ( + COUNT ( * ) ) * - 60
----
-8

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

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

query I rowsort
SELECT ALL - 89 + 41
----
-48

query I rowsort
SELECT - 77 - 67 AS col1
----
-144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT - 72 DIV - + 86 + - + 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1867
SELECT - 72 / - + 86 + - + 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL + 17 * COUNT( * ) + + MAX( DISTINCT - ( + + 3 ) ) + - 94 * + 83
----
-7788

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + 17 * COUNT ( * ) + + MAX ( DISTINCT - ( + + 3 ) ) + - 94 * + 83
----
-7788

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT DISTINCT 89 * + + SUM( - 27 ) + + 99 AS col1
----
-2304

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT 89 * + + SUM ( - 27 ) + + 99 AS col1
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL - 23 * + ( + 91 ) + 35 * + 23 + + 94 + - + COUNT( * )
----
-1195

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL - 23 * + ( + 91 ) + 35 * + 23 + + 94 + - + COUNT ( * )
----
-1195

query I rowsort
SELECT - 25 + + 96 AS col2
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT - 1 + + - 15 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT - 1 + + - 15 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT 29 DIV + + 54 + + 90 + 92 + - 97 DIV 89 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-1874
SELECT 29 / + + 54 + + 90 + 92 + - 97 / 89 AS col0
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL + CAST( + + 80 AS SIGNED ) * + + 29 - - - MAX( DISTINCT - 69 ) AS col2
----
2389

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + CAST ( + + 80 AS INTEGER ) * + + 29 - - - MAX ( DISTINCT - 69 ) AS col2
----
2389

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT - 65 DIV + + COALESCE ( + - 42, + 50 + - + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 65 / + + COALESCE ( + - 42, + 50 + - + 14 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT + 71 * 35 DIV + + 21 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-1877
SELECT + 71 * 35 / + + 21 AS col0
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1878
SELECT + COALESCE ( + - 15, + 1 DIV ( - + 60 ) + - 68 DIV COUNT( * ) ) + - 8 + + 9 AS col0, 89 * NULLIF ( - - 70, + 71 * + - 53 ) AS col2
----
-14
6230

skipif mysql # not compatible
query II rowsort label-1878
SELECT + COALESCE ( + - 15, + 1 / ( - + 60 ) + - 68 / COUNT ( * ) ) + - 8 + + 9 AS col0, 89 * NULLIF ( - - 70, + 71 * + - 53 ) AS col2
----
-14
6230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL CAST( - 36 AS SIGNED ) * + 19 - + 5
----
-689

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL CAST ( - 36 AS INTEGER ) * + 19 - + 5
----
-689

query I rowsort
SELECT ALL - 19 * - - 76 * + 45 - + 30
----
-65010

query I rowsort
SELECT DISTINCT + COALESCE ( - 25, - - 43 ) * 73
----
-1825

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

skipif mysql # not compatible
query I rowsort label-1882
SELECT + 11 * + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 21 * - 85 * - - 20 * - 13 AS col2, + 3 + - + 28 * - 97 col1
----
-464100
2719

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT MIN( + ( + 37 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1884
SELECT MIN ( + ( + 37 ) ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT + COUNT( * ) + + - CASE WHEN NULL BETWEEN NULL AND + COALESCE ( - - 39, - 24 ) THEN + COUNT( * ) + + 64 + + + 22 END - - COUNT( * ) / COUNT( ALL CASE - - 68 WHEN + CAST( 56 AS SIGNED ) THEN NULL ELSE - 98 END ) * - 52 + - - 39 + + + 72 - 32 - + 7 / + - 11 + - 39 - - 19 + + 43 / CAST( NULL AS SIGNED ) + ( + - 43 ) * + 35 * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT + COUNT ( * ) + + - CASE WHEN NULL BETWEEN NULL AND + COALESCE ( - - 39, - 24 ) THEN + COUNT ( * ) + + 64 + + + 22 END - - COUNT ( * ) / COUNT ( ALL CASE - - 68 WHEN + CAST ( 56 AS INTEGER ) THEN NULL ELSE - 98 END ) * - 52 + - - 39 + + + 72 - 32 - + 7 / + - 11 + - 39 - - 19 + + 43 / CAST ( NULL AS INTEGER ) + ( + - 43 ) * + 35 * + 93 AS col2
----
NULL

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

query I rowsort
SELECT - 75 * + 19 AS col1
----
-1425

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

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

query II rowsort
SELECT - NULLIF ( - + 90, 50 ) AS col2, - 12 AS col0
----
90
-12

query I rowsort
SELECT + + 31 - - 20 col0
----
51

query I rowsort
SELECT ALL 6 * 8
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT - CASE + - 77 WHEN + - COUNT( * ) * - - 36 * - 62 THEN - + SUM( DISTINCT + 89 ) WHEN - COUNT( * ) THEN NULL WHEN - 99 THEN - 50 * + 10 * - COALESCE ( + 60, - 68 + - 94 ) * ( 29 ) * - CAST( 28 AS SIGNED ) * + - 2 + 90 + + COUNT( * ) + - - 29 + - + COUNT( * ) * - 55 - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - CASE + - 77 WHEN + - COUNT ( * ) * - - 36 * - 62 THEN - + SUM ( DISTINCT + 89 ) WHEN - COUNT ( * ) THEN NULL WHEN - 99 THEN - 50 * + 10 * - COALESCE ( + 60, - 68 + - 94 ) * ( 29 ) * - CAST ( 28 AS INTEGER ) * + - 2 + 90 + + COUNT ( * ) + - - 29 + - + COUNT ( * ) * - 55 - 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - 53 + + - SUM( + 60 ) - - 8 * 54 AS col2
----
319

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 53 + + - SUM ( + 60 ) - - 8 * 54 AS col2
----
319

query II rowsort
SELECT + CASE 36 WHEN - + 79 + + + 19 THEN NULL WHEN 35 + + 72 * + 21 THEN + 33 END AS col2, - 38 col2
----
NULL
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + - 15 - 23 + - - 18 + + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-1895
SELECT + - 15 - 23 + - - 18 + + + COUNT ( * )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1896
SELECT ALL + 37 AS col0, ( CAST( NULL AS SIGNED ) ) + - SUM( DISTINCT 76 ) - - 11 * 50 / 80
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL + 37 AS col0, ( CAST ( NULL AS INTEGER ) ) + - SUM ( DISTINCT 76 ) - - 11 * 50 / 80
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + - 98 + - COUNT( - 47 ) - - 84 + - 51 - COUNT( DISTINCT + 24 ) * - - 9 col0
----
-75

skipif mysql # not compatible
query I rowsort label-1897
SELECT + - 98 + - COUNT ( - 47 ) - - 84 + - 51 - COUNT ( DISTINCT + 24 ) * - - 9 col0
----
-75

query I rowsort
SELECT ALL 95 + + 94
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT - + 23 DIV 91 + - 52 * - 39 + - 6 AS col0
----
2022

skipif mysql # not compatible
query I rowsort label-1899
SELECT - + 23 / 91 + - 52 * - 39 + - 6 AS col0
----
2022

query I rowsort
SELECT - 61 + - + 71
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT - 66 * - MIN( ALL + 10 ) AS col0
----
660

skipif mysql # not compatible
query I rowsort label-1901
SELECT - 66 * - MIN ( ALL + 10 ) AS col0
----
660

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT + 5 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT + 5 / - 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT + ( MAX( 42 ) ) DIV + 1
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL - + 30 / - 57 + - COALESCE ( - 30, + MAX( ALL + - 58 ) / - ( - + 74 ) * - - 95 * + 62 / + NULLIF ( NULLIF ( 68, - ( - 39 ) ), - + COUNT( * ) * + - 22 ), + MAX( 61 ) + 88 + - COUNT( * ) ) + 49 + - CASE + 23 WHEN - + COUNT( * ) THEN NULL WHEN - 41 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - + 30 / - 57 + - COALESCE ( - 30, + MAX ( ALL + - 58 ) / - ( - + 74 ) * - - 95 * + 62 / + NULLIF ( NULLIF ( 68, - ( - 39 ) ), - + COUNT ( * ) * + - 22 ), + MAX ( 61 ) + 88 + - COUNT ( * ) ) + 49 + - CASE + 23 WHEN - + COUNT ( * ) THEN NULL WHEN - 41 THEN 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1905
SELECT - 25 * + 95 AS col1, CAST( NULL AS SIGNED ) + 10 AS col2
----
-2375
NULL

skipif mysql # not compatible
query II rowsort label-1905
SELECT - 25 * + 95 AS col1, CAST ( NULL AS INTEGER ) + 10 AS col2
----
-2375
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT 29 DIV - 44 * - COUNT( DISTINCT NULLIF ( - 41, - CAST( NULL AS SIGNED ) ) ) + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT 29 / - 44 * - COUNT ( DISTINCT NULLIF ( - 41, - CAST ( NULL AS INTEGER ) ) ) + - 22
----
-22

query I rowsort
SELECT DISTINCT + ( - 33 ) AS col0
----
-33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1909
SELECT ALL + 2 / NULLIF ( + 3, - 94 + - 52 ) - - ( + + CAST( NULL AS SIGNED ) ) / ( CAST( NULL AS SIGNED ) ) AS col2, 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-1909
SELECT ALL + 2 / NULLIF ( + 3, - 94 + - 52 ) - - ( + + CAST ( NULL AS INTEGER ) ) / ( CAST ( NULL AS INTEGER ) ) AS col2, 64
----
NULL
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1910
SELECT + MAX( DISTINCT - - 12 ), 76 * 13 AS col2
----
12
988

skipif mysql # not compatible
query II rowsort label-1910
SELECT + MAX ( DISTINCT - - 12 ), 76 * 13 AS col2
----
12
988

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - 42 + - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 42 + - COUNT ( * ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT - 47 * 11 DIV 87 * 58 * - - 56
----
-16240

skipif mysql # not compatible
query I rowsort label-1912
SELECT - 47 * 11 / 87 * 58 * - - 56
----
-16240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT ALL - 87 DIV + + 96 * ( + - COUNT( * ) ) - - + 63, + 46 AS col2
----
63
46

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL - 87 / + + 96 * ( + - COUNT ( * ) ) - - + 63, + 46 AS col2
----
63
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT DISTINCT + CASE + CAST( 89 AS SIGNED ) WHEN + - 35 THEN - ( CASE - ( + - AVG ( + 28 ) ) WHEN + 65 THEN NULL WHEN - - COALESCE ( - COUNT( * ), - 52 * - COUNT( * ) ) * - CASE CASE + + 20 WHEN - 94 * 20 * - 65 THEN + - 89 ELSE NULL END WHEN - 66 + - COUNT( DISTINCT 36 ) * 1 THEN 67 ELSE - CAST( - + 9 AS SIGNED ) + - - 16 * - MAX( - + ( + - 26 ) ) END THEN 53 ELSE - + CAST( + MAX( + + 77 ) AS SIGNED ) END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + CASE + CAST ( 89 AS INTEGER ) WHEN + - 35 THEN - ( CASE - ( + - AVG ( + 28 ) ) WHEN + 65 THEN NULL WHEN - - COALESCE ( - COUNT ( * ), - 52 * - COUNT ( * ) ) * - CASE CASE + + 20 WHEN - 94 * 20 * - 65 THEN + - 89 ELSE NULL END WHEN - 66 + - COUNT ( DISTINCT 36 ) * 1 THEN 67 ELSE - CAST ( - + 9 AS INTEGER ) + - - 16 * - MAX ( - + ( + - 26 ) ) END THEN 53 ELSE - + CAST ( + MAX ( + + 77 ) AS INTEGER ) END ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT ALL - 62 DIV - + 17
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - 62 / - + 17
----
3

query I rowsort
SELECT 26 * - - 28 * - - 54 - - 90 AS col0
----
39402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT - 53 * 18 / ( + COUNT( * ) ) * + ( 4 ) + + 15 * + COUNT( * ) * - CAST( NULL AS SIGNED ) - - + COUNT( * ) + - CAST( - 90 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 53 * 18 / ( + COUNT ( * ) ) * + ( 4 ) + + 15 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) + - CAST ( - 90 AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1919
SELECT 59 - + 15 + + + 48 + 80 + - 91 + - 15 + 2 * - 81 * + CAST( - 45 AS DECIMAL ) * + - ( 72 ) / - 30 * CASE + + CAST( + 79 AS SIGNED ) WHEN - + COUNT( * ) THEN - 52 ELSE NULL END * + 22 * + ( COUNT( * ) ) + + 7 * - - 99 * + 93 AS col2, 87 AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1919
SELECT 59 - + 15 + + + 48 + 80 + - 91 + - 15 + 2 * - 81 * + CAST ( - 45 AS REAL ) * + - ( 72 ) / - 30 * CASE + + CAST ( + 79 AS INTEGER ) WHEN - + COUNT ( * ) THEN - 52 ELSE NULL END * + 22 * + ( COUNT ( * ) ) + + 7 * - - 99 * + 93 AS col2, 87 AS col0
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT ALL + ( 72 ) DIV 93 * 1 + + + 40
----
40

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + ( 72 ) / 93 * 1 + + + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1921
SELECT COUNT( ALL 54 ) DIV MAX( + 47 ) AS col0, - 87 AS col2
----
0
-87

skipif mysql # not compatible
query II rowsort label-1921
SELECT COUNT ( ALL 54 ) / MAX ( + 47 ) AS col0, - 87 AS col2
----
0
-87

query I rowsort
SELECT 63 * + 57 + - 58
----
3533

query I rowsort
SELECT 75 * - + 69 col2
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + - ( - + 12 ) * - 21 * - - 9 - + ( - MIN( ALL + + 23 ) ) - - COUNT( DISTINCT + 35 ) - MAX( + 99 ) AS col1
----
-2343

skipif mysql # not compatible
query I rowsort label-1924
SELECT + - ( - + 12 ) * - 21 * - - 9 - + ( - MIN ( ALL + + 23 ) ) - - COUNT ( DISTINCT + 35 ) - MAX ( + 99 ) AS col1
----
-2343

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT + 60 DIV + CAST( - 14 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 60 / + CAST ( - 14 AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT 95 + + + ( - MAX( + 85 ) ) AS col2, - 85 AS col1
----
10
-85

skipif mysql # not compatible
query II rowsort label-1926
SELECT 95 + + + ( - MAX ( + 85 ) ) AS col2, - 85 AS col1
----
10
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL - + MAX( + 65 ) + - 3
----
-68

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - + MAX ( + 65 ) + - 3
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL + 24 + - + ( + 46 ) - 5 * - + 37 * + COUNT( * ) * - - CASE 46 WHEN - 1 THEN + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + 24 + - + ( + 46 ) - 5 * - + 37 * + COUNT ( * ) * - - CASE 46 WHEN - 1 THEN + 51 END AS col0
----
NULL

query I rowsort
SELECT ALL 79 + - 83 - + + 49 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT + ( MIN( ALL 20 ) ) col1
----
20

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + ( MIN ( ALL 20 ) ) col1
----
20

query I rowsort
SELECT + 76 + - 5 + + 19 * - 80 * 4 + COALESCE ( - + 19, 9 )
----
-6028

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + 46 * + - SUM( - ( 42 ) ) AS col0
----
1932

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 46 * + - SUM ( - ( 42 ) ) AS col0
----
1932

query I rowsort
SELECT ALL - 23 * 22 AS col0
----
-506

query II rowsort
SELECT - NULLIF ( + - 54, + 92 + + ( - 17 ) * 92 / + - 14 ) AS col1, - 2 AS col1
----
54
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT ALL - COALESCE ( + 58, + 74 / - 1 ) * + 87 * - - CAST( NULL AS SIGNED ) * - SUM( 20 ) + - + 29 + + 27 * - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - COALESCE ( + 58, + 74 / - 1 ) * + 87 * - - CAST ( NULL AS INTEGER ) * - SUM ( 20 ) + - + 29 + + 27 * - - 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT ALL 95 - CAST( - 70 AS SIGNED ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 95 - CAST ( - 70 AS INTEGER ) AS col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ( COUNT( * ) ) + - + 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1937
SELECT ( COUNT ( * ) ) + - + 92 AS col1
----
-91

query I rowsort
SELECT 44 * - 46 AS col2
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT ALL ( - 68 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL ( - 68 ) / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT - 56 * - 13 + - COUNT( * )
----
727

skipif mysql # not compatible
query I rowsort label-1940
SELECT - 56 * - 13 + - COUNT ( * )
----
727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1941
SELECT 66 DIV - 56 + + 50 + 19 * - 61 - - 92 * - 46 - - MIN( - 50 ) AS col1
----
-5392

skipif mysql # not compatible
query I rowsort label-1941
SELECT 66 / - 56 + + 50 + 19 * - 61 - - 92 * - 46 - - MIN ( - 50 ) AS col1
----
-5392

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

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

query I rowsort
SELECT 43 * - + 35
----
-1505

query I rowsort
SELECT ALL - 67 * - 87 AS col1
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT COUNT( * ) * 73 * + + 38
----
2774

skipif mysql # not compatible
query I rowsort label-1945
SELECT COUNT ( * ) * 73 * + + 38
----
2774

query II rowsort
SELECT + 0, ( - 20 ) AS col2
----
0
-20

query I rowsort
SELECT 69 + - ( + 47 ) + + 16 + - 20 * - 43 + 24 AS col0
----
922

query I rowsort
SELECT ALL + 58 * + 8 AS col0
----
464

query I rowsort
SELECT ALL - 4 + + 11 AS col1
----
7

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

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

query I rowsort
SELECT 59 * 78 AS col1
----
4602

query I rowsort
SELECT ALL + 59 + 24 AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - 4 + - COUNT ( * ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT + 13 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + 13 / + 95 AS col0
----
0

query I rowsort
SELECT ALL - 59 + 28
----
-31

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + COUNT ( * ) + 66 AS col1
----
67

query I rowsort
SELECT 84 * + 87 AS col0
----
7308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT + 14 * + ( CAST( NULL AS SIGNED ) * 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + 14 * + ( CAST ( NULL AS INTEGER ) * 29 ) col1
----
NULL

query I rowsort
SELECT 74 - 51
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT ALL + 96 * + NULLIF ( + 83 DIV + 28, - 45 ) AS col0
----
192

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + 96 * + NULLIF ( + 83 / + 28, - 45 ) AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - 42 + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - 42 + + COUNT ( * )
----
-41

query I rowsort
SELECT 83 - + 38 AS col1
----
45

query I rowsort
SELECT DISTINCT + 15 * 39 AS col1
----
585

query I rowsort
SELECT DISTINCT 44 + 10
----
54

query I rowsort
SELECT ALL + 97 * 57
----
5529

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT + 42 - + 19 DIV + 17 col1
----
41

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + 42 - + 19 / + 17 col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT 37 DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT 37 / + 36
----
1

query I rowsort
SELECT DISTINCT 55 - 47 * 8 AS col0
----
-321

query I rowsort
SELECT 18 - ( 36 - 16 )
----
-2

query I rowsort
SELECT 99 * 42
----
4158

query I rowsort
SELECT DISTINCT ( 10 ) * - 14
----
-140

query I rowsort
SELECT DISTINCT 54 - 8 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT COALESCE ( + 3, + 84 * - 25, - 93 - MIN( CASE 12 WHEN 37 + 81 THEN 79 END ) * - 66 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT COALESCE ( + 3, + 84 * - 25, - 93 - MIN ( CASE 12 WHEN 37 + 81 THEN 79 END ) * - 66 ) col2
----
3

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

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL CAST ( NULL AS INTEGER ) * - 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 48 * + 52
----
2496

query I rowsort
SELECT DISTINCT ( - 72 ) * + ( - 94 ) col2
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + MIN( DISTINCT + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1977
SELECT + MIN ( DISTINCT + 7 ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL CAST( + 84 AS SIGNED ) * - 23 AS col0
----
-1932

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL CAST ( + 84 AS INTEGER ) * - 23 AS col0
----
-1932

query I rowsort
SELECT CASE + 86 WHEN + 93 THEN 49 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + ( - 20 ) * ( 12 )
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL 63 * COUNT( * ) + 81
----
144

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL 63 * COUNT ( * ) + 81
----
144

query I rowsort
SELECT ALL 69 * - 14 + + 8 AS col2
----
-958

query I rowsort
SELECT + 29 + + 6 col0
----
35

query I rowsort
SELECT CASE 87 WHEN - 22 THEN NULL ELSE NULLIF ( 95, + 10 ) END AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + COUNT( * ) * + 30 + COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + COUNT ( * ) * + 30 + COUNT ( * ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT CASE CASE 29 WHEN 12 * - 24 THEN NULL WHEN + 76 THEN NULL ELSE + SUM( + 17 ) + 48 END WHEN + ( MIN( DISTINCT 85 ) ) * - 99 THEN COUNT( * ) ELSE 41 END
----
41

skipif mysql # not compatible
query I rowsort label-1986
SELECT CASE CASE 29 WHEN 12 * - 24 THEN NULL WHEN + 76 THEN NULL ELSE + SUM ( + 17 ) + 48 END WHEN + ( MIN ( DISTINCT 85 ) ) * - 99 THEN COUNT ( * ) ELSE 41 END
----
41

query I rowsort
SELECT DISTINCT 60 * - 91 + + 62 AS col2
----
-5398

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT ALL 26 * 39 + + ( - 69 + - COALESCE ( ( 91 ), - 88 + - 19 ) * + 17 ) DIV 61
----
988

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL 26 * 39 + + ( - 69 + - COALESCE ( ( 91 ), - 88 + - 19 ) * + 17 ) / 61
----
988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + MIN( ( 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1990
SELECT + MIN ( ( 3 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL + COALESCE ( - MIN( + 53 ), 5 ) * - ( - 67 ) AS col2
----
-3551

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL + COALESCE ( - MIN ( + 53 ), 5 ) * - ( - 67 ) AS col2
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + 93 * + ( + 71 ) + - COUNT( * ) col1
----
6602

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + 93 * + ( + 71 ) + - COUNT ( * ) col1
----
6602

query I rowsort
SELECT - 26 * 0 + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + - MAX( ( COALESCE ( 81, - 71 ) ) ) + - 19
----
-100

skipif mysql # not compatible
query I rowsort label-1994
SELECT + - MAX ( ( COALESCE ( 81, - 71 ) ) ) + - 19
----
-100

query I rowsort
SELECT ALL NULLIF ( - 13, + 4 ) * 43
----
-559

query I rowsort
SELECT ALL - 81 - 6 AS col1
----
-87

query I rowsort
SELECT DISTINCT + 53 - + 89
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - + 35 * 11 + - COUNT( * ) * 50 AS col1
----
-435

skipif mysql # not compatible
query I rowsort label-1998
SELECT - + 35 * 11 + - COUNT ( * ) * 50 AS col1
----
-435

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

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

query I rowsort
SELECT - + NULLIF ( + COALESCE ( 98, 26 * + 89 ), 6 ) * 59 col2
----
-5782

query I rowsort
SELECT - - 34 * NULLIF ( 93, - 99 ) col0
----
3162

query I rowsort
SELECT ALL - ( 24 ) * 77 AS col0
----
-1848

query I rowsort
SELECT - - 65 * - 62
----
-4030

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - 43 + + - 23 + SUM( 9 + + 31 )
----
-26

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 43 + + - 23 + SUM ( 9 + + 31 )
----
-26

query I rowsort
SELECT ALL - 39 * + 7 AS col2
----
-273

query I rowsort
SELECT - 19 + ( 68 )
----
49

query I rowsort
SELECT ALL - 66 * + CASE 56 WHEN - 33 THEN 63 END * + 67 AS col2
----
NULL

query I rowsort
SELECT - 95 * + 88
----
-8360

query I rowsort
SELECT DISTINCT + 94 * - - 26
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT - 89 + + CASE + ( 82 ) WHEN + 17 THEN NULL WHEN NULLIF ( COUNT( * ), 93 / - 58 ) * 85 + - 19 THEN + 25 WHEN 51 THEN - CASE - 25 WHEN + 15 - - 8 * - 28 THEN NULL WHEN + 70 THEN + CAST( NULL AS SIGNED ) * 61 END END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - 89 + + CASE + ( 82 ) WHEN + 17 THEN NULL WHEN NULLIF ( COUNT ( * ), 93 / - 58 ) * 85 + - 19 THEN + 25 WHEN 51 THEN - CASE - 25 WHEN + 15 - - 8 * - 28 THEN NULL WHEN + 70 THEN + CAST ( NULL AS INTEGER ) * 61 END END * 74
----
NULL

query I rowsort
SELECT ALL ( + + 6 ) col2
----
6

query I rowsort
SELECT - 59 * ( + 80 )
----
-4720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT + CASE 41 WHEN 38 THEN 79 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 60 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT + CASE 41 WHEN 38 THEN 79 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 60 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - 76 + 50 + - SUM( DISTINCT 72 )
----
-98

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 76 + 50 + - SUM ( DISTINCT 72 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL - 3 + + + 50 DIV 26
----
-2

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - 3 + + + 50 / 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - 53 + - 30 + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 53 + - 30 + COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT NULLIF ( - - 14, SUM( 48 ) ) DIV + 44 - 26
----
-26

skipif mysql # not compatible
query I rowsort label-2017
SELECT NULLIF ( - - 14, SUM ( 48 ) ) / + 44 - 26
----
-26

query I rowsort
SELECT ALL 41 * - 76 AS col1
----
-3116

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

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - 1 / 90 + COUNT ( * )
----
1

query I rowsort
SELECT + 99 + + 83 * 47
----
4000

query I rowsort
SELECT ALL - 32 * + + 44 AS col1
----
-1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT + 78 * CAST( 58 AS SIGNED ) + - 98 * 70 + NULLIF ( 56 + - 13, - CASE 34 WHEN 95 - - ( - ( 47 ) ) * - 92 THEN NULL WHEN 97 * 77 THEN 14 / - 37 END )
----
-2293

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 78 * CAST ( 58 AS INTEGER ) + - 98 * 70 + NULLIF ( 56 + - 13, - CASE 34 WHEN 95 - - ( - ( 47 ) ) * - 92 THEN NULL WHEN 97 * 77 THEN 14 / - 37 END )
----
-2293

query I rowsort
SELECT DISTINCT COALESCE ( 28, - 73 ) * - 55 AS col0
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - + 45 * + 74 - + COUNT( * )
----
-3331

skipif mysql # not compatible
query I rowsort label-2024
SELECT - + 45 * + 74 - + COUNT ( * )
----
-3331

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + 76 * + 32 * MIN( ALL 72 )
----
175104

skipif mysql # not compatible
query I rowsort label-2025
SELECT + 76 * + 32 * MIN ( ALL 72 )
----
175104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL + CAST( NULL AS SIGNED ) * - 62 / ( + 45 / + 26 ) + + 39 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + CAST ( NULL AS INTEGER ) * - 62 / ( + 45 / + 26 ) + + 39 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT + COALESCE ( + - 21, 82 ) DIV 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2027
SELECT + COALESCE ( + - 21, 82 ) / 10 AS col0
----
-2

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

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

query I rowsort
SELECT + 42 * + - 75 AS col2
----
-3150

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT + - COALESCE ( + 23, - 29 * - 50 - + 28 ) DIV 4
----
-5

skipif mysql # not compatible
query I rowsort label-2032
SELECT + - COALESCE ( + 23, - 29 * - 50 - + 28 ) / 4
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT ALL - 24 DIV - 27 * 7 col0
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - 24 / - 27 * 7 col0
----
0

query I rowsort
SELECT + + 13 + 88
----
101

query I rowsort
SELECT + - 44 * + + 85 AS col0
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + 92 + - COUNT( * ) * - 54 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 92 + - COUNT ( * ) * - 54 AS col1
----
146

query I rowsort
SELECT ALL 62 * 33 + 33 AS col2
----
2079

query I rowsort
SELECT ALL + NULLIF ( + - 43, 76 * 33 ) * 27 AS col0
----
-1161

query I rowsort
SELECT + 49 - - + 3 AS col0
----
52

query I rowsort
SELECT - 19 * - 17 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + 58 * + + 74 - + COUNT( * )
----
4291

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 58 * + + 74 - + COUNT ( * )
----
4291

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT 72 * - + MAX( - 50 ) + SUM( 32 + - 22 ) AS col0
----
3610

skipif mysql # not compatible
query I rowsort label-2042
SELECT 72 * - + MAX ( - 50 ) + SUM ( 32 + - 22 ) AS col0
----
3610

onlyif mysql # aggregate syntax: 
query II rowsort label-2043
SELECT DISTINCT 13 AS col0, MAX( ALL - - 99 ) + + 68 AS col2
----
13
167

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT 13 AS col0, MAX ( ALL - - 99 ) + + 68 AS col2
----
13
167

query I rowsort
SELECT ALL 84 * - 32 AS col1
----
-2688

query I rowsort
SELECT 34 * - 95 AS col1
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL - 34 + - MIN( + 89 ) * 59 AS col1
----
-5285

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 34 + - MIN ( + 89 ) * 59 AS col1
----
-5285

query II rowsort
SELECT ALL 71, 68 AS col2
----
71
68

query II rowsort
SELECT 9 AS col1, - 65 * + 4 AS col2
----
9
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT 53 - + 9 * + COUNT( * ) + 2 * 63
----
170

skipif mysql # not compatible
query I rowsort label-2049
SELECT 53 - + 9 * + COUNT ( * ) + 2 * 63
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT 24 DIV - - 9
----
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT 24 / - - 9
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT 59 * + - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT 59 * + - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL - ( - 57 ) + - - COUNT( * ) * - 58
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - ( - 57 ) + - - COUNT ( * ) * - 58
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT 49 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-2053
SELECT 49 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - 99 + COUNT( * ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - 99 + COUNT ( * ) col0
----
-98

query I rowsort
SELECT ALL + 45 * 55 col2
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT - 90 + + - CASE + 98 WHEN - 86 THEN NULLIF ( 26, + 44 / - 3 ) WHEN 35 THEN 13 END + - 84 * + 69 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT - 90 + + - CASE + 98 WHEN - 86 THEN NULLIF ( 26, + 44 / - 3 ) WHEN 35 THEN 13 END + - 84 * + 69 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 68 ) + - 66
----
-134

query I rowsort
SELECT 75 * - 14
----
-1050

query II rowsort
SELECT 33, - 60 AS col2
----
33
-60

query I rowsort
SELECT 84 * + - 99 * - + 10
----
83160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2061
SELECT 9, + 92 * + CAST( 48 AS SIGNED ) AS col1
----
9
4416

skipif mysql # not compatible
query II rowsort label-2061
SELECT 9, + 92 * + CAST ( 48 AS INTEGER ) AS col1
----
9
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL + 80 - + + 41 * + COUNT( * ) * + COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + 80 - + + 41 * + COUNT ( * ) * + COUNT ( * ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + ( + 53 ) * + 71 * ( 65 * - 3 ) - COUNT( * )
----
-733786

skipif mysql # not compatible
query I rowsort label-2063
SELECT + ( + 53 ) * + 71 * ( 65 * - 3 ) - COUNT ( * )
----
-733786

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT 0 DIV - ( + 62 ) * 38 + 22
----
22

skipif mysql # not compatible
query I rowsort label-2065
SELECT 0 / - ( + 62 ) * 38 + 22
----
22

query I rowsort
SELECT 16 * + ( + ( - 93 ) ) * 99 AS col0
----
-147312

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT 18 + - COUNT( * ) - - + 6 + + 52
----
75

skipif mysql # not compatible
query I rowsort label-2067
SELECT 18 + - COUNT ( * ) - - + 6 + + 52
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT ALL - COALESCE ( 49, - 67 DIV - COUNT( * ) - 16 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - COALESCE ( 49, - 67 / - COUNT ( * ) - 16 ) AS col0
----
-49

query I rowsort
SELECT DISTINCT 61 * + 90
----
5490

query I rowsort
SELECT DISTINCT + 86 - - 3 + 17 + 89 * 42
----
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - MAX( DISTINCT 47 ) * 63 + ( - COUNT( 27 ) ) * - 85 - + 22 AS col2
----
-2898

skipif mysql # not compatible
query I rowsort label-2071
SELECT - MAX ( DISTINCT 47 ) * 63 + ( - COUNT ( 27 ) ) * - 85 - + 22 AS col2
----
-2898

query I rowsort
SELECT DISTINCT - 95 * - + 48 * 58 + 34 AS col1
----
264514

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT 44 + - CASE 79 WHEN 57 + + 39 * COUNT( * ) THEN 9 END / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT 44 + - CASE 79 WHEN 57 + + 39 * COUNT ( * ) THEN 9 END / - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT SUM( DISTINCT 73 ) + + - COALESCE ( + 74, - CAST( NULL AS SIGNED ) * 99, CAST( NULL AS SIGNED ) * 88 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2074
SELECT SUM ( DISTINCT 73 ) + + - COALESCE ( + 74, - CAST ( NULL AS INTEGER ) * 99, CAST ( NULL AS INTEGER ) * 88 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT 75 * 65 + - MIN( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT 75 * 65 + - MIN ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( + + 32, - 9 ), - 20 * - 85 - 36 ) * - 7 AS col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-2077
SELECT ALL - 77 AS col1, MIN( DISTINCT - 15 ) + 5 AS col2
----
-77
-10

skipif mysql # not compatible
query II rowsort label-2077
SELECT ALL - 77 AS col1, MIN ( DISTINCT - 15 ) + 5 AS col2
----
-77
-10

query I rowsort
SELECT + 79 * - - 38 + + 95
----
3097

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - CASE + 36 WHEN - + 94 / + ( COUNT( * ) ) THEN 27 - 63 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - CASE + 36 WHEN - + 94 / + ( COUNT ( * ) ) THEN 27 - 63 END col2
----
NULL

query I rowsort
SELECT ( 41 ) * + 16 AS col2
----
656

query I rowsort
SELECT DISTINCT + 1 * 3
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT DISTINCT + COUNT( * ) + + - 30 + 41 + 72 DIV 89
----
12

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + COUNT ( * ) + + - 30 + 41 + 72 / 89
----
12

query I rowsort
SELECT ALL 7 + + NULLIF ( + 94, 15 * + 63 ) AS col1
----
101

query I rowsort
SELECT DISTINCT 25 * - 83 AS col1
----
-2075

query I rowsort
SELECT ( + + 63 ) + - 26 + 76 * + 10
----
797

query I rowsort
SELECT ALL ( + - 88 ) + - - 30
----
-58

query I rowsort
SELECT ALL 30 + + 88
----
118

query I rowsort
SELECT 40 + - ( + + ( - 81 ) ) AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT 65 * + COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT 65 * + COUNT ( * ) col2
----
65

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

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

query I rowsort
SELECT ALL - 4 + 96
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT DISTINCT 29 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT 29 * COUNT ( * ) AS col1
----
29

query II rowsort
SELECT 75 + - 55, 23 * - 89 AS col0
----
20
-2047

query I rowsort
SELECT 78 * + 71
----
5538

query I rowsort
SELECT 84 + - 40
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT COUNT( ALL - 35 ) * + ( COUNT( ALL 34 ) ) * + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2096
SELECT COUNT ( ALL - 35 ) * + ( COUNT ( ALL 34 ) ) * + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 65 + - + 67 - - COUNT( * ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2097
SELECT 65 + - + 67 - - COUNT ( * ) + - 84 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT COUNT( * ) + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2098
SELECT COUNT ( * ) + 75 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL + - 90 * + - COUNT( + 13 )
----
90

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + - 90 * + - COUNT ( + 13 )
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + 66 * + ( + - 14 ) - - - COUNT( * ) AS col0
----
-925

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + 66 * + ( + - 14 ) - - - COUNT ( * ) AS col0
----
-925

query I rowsort
SELECT ALL + 57 * - - 5 AS col1
----
285

query I rowsort
SELECT 10 + + - 58 * - 45
----
2620

query I rowsort
SELECT 12 * - - 41 AS col1
----
492

query I rowsort
SELECT - + 73 * + - 59 * - - 34 * + 75 * - 40 + 62
----
-439313938

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2106
SELECT 43 DIV - - 96 AS col1, CAST( - 40 AS SIGNED )
----
0
-40

skipif mysql # not compatible
query II rowsort label-2106
SELECT 43 / - - 96 AS col1, CAST ( - 40 AS INTEGER )
----
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT COALESCE ( + 2, + 53 * + COUNT( * ) ) * + 98 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-2107
SELECT COALESCE ( + 2, + 53 * + COUNT ( * ) ) * + 98 AS col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + COUNT( * ) + - - 43 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2108
SELECT + COUNT ( * ) + - - 43 AS col1
----
44

query I rowsort
SELECT DISTINCT - - 27 * + 68 + 23 AS col0
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - - 61 * - MIN( + 48 ) AS col2
----
-2928

skipif mysql # not compatible
query I rowsort label-2110
SELECT - - 61 * - MIN ( + 48 ) AS col2
----
-2928

query I rowsort
SELECT DISTINCT + + 2 col2
----
2

query I rowsort
SELECT ALL 84 * 19 AS col2
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + SUM( - 79 ) + - 71
----
-150

skipif mysql # not compatible
query I rowsort label-2113
SELECT + SUM ( - 79 ) + - 71
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT DISTINCT + CAST( NULL AS SIGNED ) + MIN( - + 59 ) - 84 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + MIN ( - + 59 ) - 84 * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 66 + + 39
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + COUNT( * ) + + 46 + + 49
----
96

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + COUNT ( * ) + + 46 + + 49
----
96

query I rowsort
SELECT - 12 - - - 47 + + + 41
----
-18

query I rowsort
SELECT DISTINCT 83 + - 98 + + - 11 * + + 15 AS col0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT ALL + CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT - - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT - - 95 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL 18 + + - SUM( 1 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 18 + + - SUM ( 1 ) AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-2122
SELECT + COUNT ( * ) * - + 23 / - + 97
----
0

query I rowsort
SELECT ALL 82 - - - 85 + ( 75 ) + + 72 * 35
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT 75 * 36 * - - NULLIF ( 28, + COUNT( * ) + 1 )
----
75600

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT 75 * 36 * - - NULLIF ( 28, + COUNT ( * ) + 1 )
----
75600

query I rowsort
SELECT - 4 * + 1 AS col2
----
-4

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

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

query I rowsort
SELECT ALL 22 * - 64 * 50 AS col0
----
-70400

query I rowsort
SELECT DISTINCT + ( - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT + 9 - 67 * + - SUM( DISTINCT - 22 )
----
-1465

skipif mysql # not compatible
query I rowsort label-2129
SELECT + 9 - 67 * + - SUM ( DISTINCT - 22 )
----
-1465

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

skipif mysql # not compatible
query I rowsort label-2130
SELECT + COUNT ( * ) * ( + + CAST ( CAST ( + - 42 AS INTEGER ) AS INTEGER ) ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL ( + MIN( ALL + - 6 ) ) * 50
----
-300

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL ( + MIN ( ALL + - 6 ) ) * 50
----
-300

query II rowsort
SELECT DISTINCT + 66 AS col0, 64 - 22
----
66
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2133
SELECT + ( + SUM( ALL + CAST( - - 83 AS SIGNED ) ) ) DIV + 88 * + COUNT( * ) + 73
----
73

skipif mysql # not compatible
query I rowsort label-2133
SELECT + ( + SUM ( ALL + CAST ( - - 83 AS INTEGER ) ) ) / + 88 * + COUNT ( * ) + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT MAX( + + NULLIF ( - + 85, + 75 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2134
SELECT MAX ( + + NULLIF ( - + 85, + 75 ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2135
SELECT + 83, COALESCE ( + - 45, - CASE 24 WHEN - 40 THEN - COUNT( * ) * - 5 WHEN NULLIF ( 77, + COUNT( * ) ) - 43 THEN NULL ELSE NULL END + - 99 * 54 ) DIV + 6 + + 77 AS col2
----
83
70

skipif mysql # not compatible
query II rowsort label-2135
SELECT + 83, COALESCE ( + - 45, - CASE 24 WHEN - 40 THEN - COUNT ( * ) * - 5 WHEN NULLIF ( 77, + COUNT ( * ) ) - 43 THEN NULL ELSE NULL END + - 99 * 54 ) / + 6 + + 77 AS col2
----
83
70

query I rowsort
SELECT + - 7 + + + 48 AS col0
----
41

query I rowsort
SELECT + 24 * + + 19 + - 55 AS col0
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + - 74 * - MAX( 31 ) + + 9 * + 82
----
3032

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + - 74 * - MAX ( 31 ) + + 9 * + 82
----
3032

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2139
SELECT ALL + 11 * + + CAST( NULL AS DECIMAL ) + - 55 AS col0, 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + 11 * + + CAST ( NULL AS REAL ) + - 55 AS col0, 53 AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + 12 * + COUNT( - 41 ) - - - 67 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2140
SELECT + 12 * + COUNT ( - 41 ) - - - 67 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2141
SELECT + CAST( + 48 AS SIGNED ) * - - 9 / CASE - ( 18 ) WHEN + 28 + 19 THEN NULLIF ( + CASE 86 WHEN + 89 + 11 THEN 33 / COUNT( * ) + - 29 WHEN 12 + - 74 * 12 THEN - 60 END, 82 ) + 20 / + 86 WHEN + COALESCE ( ( - 13 ), + 54, 80 * + COALESCE ( AVG ( DISTINCT 20 ), 60 * - MIN( ALL 8 ) ) ) THEN 36 * + 55 WHEN - 99 + 42 * ( - 14 ) THEN NULL END * - 56 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT + CAST ( + 48 AS INTEGER ) * - - 9 / CASE - ( 18 ) WHEN + 28 + 19 THEN NULLIF ( + CASE 86 WHEN + 89 + 11 THEN 33 / COUNT ( * ) + - 29 WHEN 12 + - 74 * 12 THEN - 60 END, 82 ) + 20 / + 86 WHEN + COALESCE ( ( - 13 ), + 54, 80 * + COALESCE ( AVG ( DISTINCT 20 ), 60 * - MIN ( ALL 8 ) ) ) THEN 36 * + 55 WHEN - 99 + 42 * ( - 14 ) THEN NULL END * - 56 + - 48
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT ALL + 32 * + 28 * - 98 * 18 + + + CASE WHEN NOT ( 17 ) BETWEEN - 81 + - 63 * - COUNT( * ) AND NULL THEN NULL ELSE + 79 END DIV + 12 + - 3 AS col2
----
-1580541

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + 32 * + 28 * - 98 * 18 + + + CASE WHEN NOT ( 17 ) BETWEEN - 81 + - 63 * - COUNT ( * ) AND NULL THEN NULL ELSE + 79 END / + 12 + - 3 AS col2
----
-1580541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT - 25 + + ( 18 ) - + + NULLIF ( COUNT( 30 ), + COUNT( * ) + - 84 DIV + COALESCE ( 92, - 0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 25 + + ( 18 ) - + + NULLIF ( COUNT ( 30 ), + COUNT ( * ) + - 84 / + COALESCE ( 92, - 0 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT + COALESCE ( - 4, - - ( 42 ) * - + 86 - + + 54 DIV + 86, + 37, 99 + + 89 )
----
-4

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT + COALESCE ( - 4, - - ( 42 ) * - + 86 - + + 54 / + 86, + 37, 99 + + 89 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + SUM( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2146
SELECT + SUM ( 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - 89 + - MIN( + 95 ) col0
----
-184

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 89 + - MIN ( + 95 ) col0
----
-184

query I rowsort
SELECT ALL ( - 57 ) * + NULLIF ( + 56, - 20 ) - - 61 * - 65 AS col0
----
-7157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT - CASE - CAST( COUNT( * ) AS SIGNED ) WHEN - CASE COUNT( * ) WHEN - 30 * - 98 THEN 9 * - 23 ELSE NULL END * COUNT( ALL - 22 ) THEN NULL ELSE 21 END * 91
----
-1911

skipif mysql # not compatible
query I rowsort label-2149
SELECT - CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN - CASE COUNT ( * ) WHEN - 30 * - 98 THEN 9 * - 23 ELSE NULL END * COUNT ( ALL - 22 ) THEN NULL ELSE 21 END * 91
----
-1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2150
SELECT ALL ( + 54 ) AS col0, - COUNT( * ) * - + CAST( + + 61 AS SIGNED ) AS col1
----
54
61

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL ( + 54 ) AS col0, - COUNT ( * ) * - + CAST ( + + 61 AS INTEGER ) AS col1
----
54
61

query I rowsort
SELECT DISTINCT ( + 5 ) AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT COUNT ( * ) * + + 96 AS col2
----
96

query I rowsort
SELECT - 70 + + 7
----
-63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT ALL CAST( NULL AS SIGNED ), 22 AS col0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL CAST ( NULL AS INTEGER ), 22 AS col0
----
NULL
22

query I rowsort
SELECT ALL + 86 * + 13 * + + 90
----
100620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT - COALESCE ( + 5, + COUNT( * ) + + 55 + + 0 + + 92 * ( - 7 * + 43 + 33 DIV COUNT( * ) ), 42 ) * 46 col1
----
-230

skipif mysql # not compatible
query I rowsort label-2157
SELECT - COALESCE ( + 5, + COUNT ( * ) + + 55 + + 0 + + 92 * ( - 7 * + 43 + 33 / COUNT ( * ) ), 42 ) * 46 col1
----
-230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT - CASE - - 34 WHEN + CAST( 42 AS SIGNED ) + + + 85 THEN NULL WHEN 33 THEN NULL WHEN MAX( ALL + 27 ) * 52 - 88 THEN 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT - CASE - - 34 WHEN + CAST ( 42 AS INTEGER ) + + + 85 THEN NULL WHEN 33 THEN NULL WHEN MAX ( ALL + 27 ) * 52 - 88 THEN 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT - ( COUNT( DISTINCT ( - NULLIF ( + ( + - 71 ), CAST( NULL AS SIGNED ) ) ) ) ) + - 41 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2159
SELECT - ( COUNT ( DISTINCT ( - NULLIF ( + ( + - 71 ), CAST ( NULL AS INTEGER ) ) ) ) ) + - 41 * + COUNT ( * )
----
-42

query I rowsort
SELECT DISTINCT + 68 * 62 * - - 71
----
299336

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - COUNT( * ) + + - 36 + + 86 * - 4 * - SUM( DISTINCT - + 31 ) * COUNT( 26 )
----
-10701

skipif mysql # not compatible
query I rowsort label-2161
SELECT - COUNT ( * ) + + - 36 + + 86 * - 4 * - SUM ( DISTINCT - + 31 ) * COUNT ( 26 )
----
-10701

query I rowsort
SELECT + 46 - - + 93 AS col1
----
139

query I rowsort
SELECT + 5 * + + ( + 52 )
----
260

query I rowsort
SELECT - 16 + + 66
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2165
SELECT ALL CAST( - + 13 AS SIGNED ) AS col1, + COUNT( * ) * + 56
----
-13
56

skipif mysql # not compatible
query II rowsort label-2165
SELECT ALL CAST ( - + 13 AS INTEGER ) AS col1, + COUNT ( * ) * + 56
----
-13
56

query I rowsort
SELECT + - 21 + 91
----
70

query I rowsort
SELECT DISTINCT ( - + NULLIF ( - + 95, + 66 ) )
----
95

query II rowsort
SELECT DISTINCT 49 col2, 56 AS col2
----
49
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + - 71 + - - COUNT( * ) * - 7 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2169
SELECT + - 71 + - - COUNT ( * ) * - 7 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + + 97 + + 98 * - ( - - COUNT( DISTINCT + 95 ) ) + 99
----
98

skipif mysql # not compatible
query I rowsort label-2170
SELECT + + 97 + + 98 * - ( - - COUNT ( DISTINCT + 95 ) ) + 99
----
98

query I rowsort
SELECT - 73 * - - 21
----
-1533

query II rowsort
SELECT - - 70, + 74 * 64 AS col0
----
70
4736

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT + - COUNT( * ) + - + 79 + + + 71 * 80 AS col2, - 63
----
5600
-63

skipif mysql # not compatible
query II rowsort label-2173
SELECT + - COUNT ( * ) + - + 79 + + + 71 * 80 AS col2, - 63
----
5600
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL - 16 + - ( COUNT( * ) ) * - 14
----
-2

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - 16 + - ( COUNT ( * ) ) * - 14
----
-2

query I rowsort
SELECT - 56 + - 76 AS col2
----
-132

query I rowsort
SELECT ALL 39 + - 44 col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2177
SELECT DISTINCT - 93 AS col0, ( - CASE CASE + 76 WHEN + 21 + COALESCE ( - 67 + 94, - COUNT( * ) ) * - CAST( NULL AS SIGNED ) THEN 60 WHEN 81 THEN SUM( + ( + 17 ) ) WHEN 41 * - NULLIF ( - CASE WHEN COUNT( * ) IS NOT NULL THEN - 19 / COUNT( DISTINCT - 73 ) + + 86 END, - 77 ) THEN + CAST( 37 AS SIGNED ) / 25 ELSE - 51 - - 80 * - 43 END WHEN 37 THEN NULL WHEN 70 + - 56 THEN + 27 - 88 END ) / + 35
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT - 93 AS col0, ( - CASE CASE + 76 WHEN + 21 + COALESCE ( - 67 + 94, - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) THEN 60 WHEN 81 THEN SUM ( + ( + 17 ) ) WHEN 41 * - NULLIF ( - CASE WHEN COUNT ( * ) IS NOT NULL THEN - 19 / COUNT ( DISTINCT - 73 ) + + 86 END, - 77 ) THEN + CAST ( 37 AS INTEGER ) / 25 ELSE - 51 - - 80 * - 43 END WHEN 37 THEN NULL WHEN 70 + - 56 THEN + 27 - 88 END ) / + 35
----
-93
NULL

query I rowsort
SELECT DISTINCT 1 + - 52 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT + 80 DIV 81 - + 45 + - + 64 DIV - + 35
----
-44

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 80 / 81 - + 45 + - + 64 / - + 35
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + COALESCE ( - NULLIF ( + + 34, AVG ( + + 56 ) / - COUNT( * ) ), 83 ) * 14
----
-476

skipif mysql # not compatible
query I rowsort label-2180
SELECT + COALESCE ( - NULLIF ( + + 34, AVG ( + + 56 ) / - COUNT ( * ) ), 83 ) * 14
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + 90 + - + NULLIF ( 13, - COUNT( * ) ) * 9 + 90 + 55
----
118

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + 90 + - + NULLIF ( 13, - COUNT ( * ) ) * 9 + 90 + 55
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT + + CAST( SUM( DISTINCT - + 39 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-2182
SELECT + + CAST ( SUM ( DISTINCT - + 39 ) AS INTEGER )
----
-39

query II rowsort
SELECT + - 19 AS col1, + ( - + ( + - 32 ) ) * + 45 + - 27
----
-19
1413

query II rowsort
SELECT + 46 AS col2, - 15
----
46
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-2185
SELECT ALL - 8, 80 DIV - 59 AS col2
----
-8
-1

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 8, 80 / - 59 AS col2
----
-8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL 7 / + CASE 69 WHEN 9 * - 46 * + MIN( + 85 ) THEN + 40 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 7 / + CASE 69 WHEN 9 * - 46 * + MIN ( + 85 ) THEN + 40 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT 78 * - COUNT( - - 47 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2187
SELECT 78 * - COUNT ( - - 47 ) AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT DISTINCT 54 DIV + 3 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT 54 / + 3 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2189
SELECT 84 + + 66 + + COUNT( ALL + + CAST( NULL AS SIGNED ) ) * COALESCE ( - - 74, + - CAST( NULL AS SIGNED ) ) DIV - 75 + - 33 * 20 AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-2189
SELECT 84 + + 66 + + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) * COALESCE ( - - 74, + - CAST ( NULL AS INTEGER ) ) / - 75 + - 33 * 20 AS col2
----
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2190
SELECT 94 * + COUNT( * ) col2, 83 DIV 48
----
94
1

skipif mysql # not compatible
query II rowsort label-2190
SELECT 94 * + COUNT ( * ) col2, 83 / 48
----
94
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT 77 - - - ( ( - - 65 ) ) DIV ( + ( - + 26 ) ) * - 34 col1
----
9

skipif mysql # not compatible
query I rowsort label-2191
SELECT 77 - - - ( ( - - 65 ) ) / ( + ( - + 26 ) ) * - 34 col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT MAX( + 99 ) AS col2, 67 AS col0
----
99
67

skipif mysql # not compatible
query II rowsort label-2192
SELECT MAX ( + 99 ) AS col2, 67 AS col0
----
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT NULLIF ( 16, + - SUM( + + 12 ) ) * - - 69 + ( - 89 )
----
1015

skipif mysql # not compatible
query I rowsort label-2193
SELECT NULLIF ( 16, + - SUM ( + + 12 ) ) * - - 69 + ( - 89 )
----
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - COUNT( * ) * - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2194
SELECT - COUNT ( * ) * - 52 AS col0
----
52

query I rowsort
SELECT 95 - 44 + 2 - 19 AS col2
----
34

query II rowsort
SELECT ALL - + 29 + + - 90, + 66 AS col1
----
-119
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - MIN( - CASE + 32 WHEN - 51 THEN NULL WHEN + 8 * + 22 THEN + - CASE - 26 WHEN - 46 + + ( - 27 ) THEN - 30 END END ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT - MIN ( - CASE + 32 WHEN - 51 THEN NULL WHEN + 8 * + 22 THEN + - CASE - 26 WHEN - 46 + + ( - 27 ) THEN - 30 END END ) * + 80
----
NULL

query I rowsort
SELECT CASE 73 WHEN 23 THEN 96 * 80 WHEN - + 6 THEN NULL WHEN + + 11 THEN NULL END * 83 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 18 + 4 + + 80 * - - 93 AS col1
----
7426

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

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + 54 + CAST ( NULL AS INTEGER ) + + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - + ( - 80 ) + + + COUNT( - + 98 )
----
81

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - + ( - 80 ) + + + COUNT ( - + 98 )
----
81

query II rowsort
SELECT 64 - ( - - 99 ), 47 AS col0
----
-35
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT DISTINCT 46 DIV - 17 - - + 4
----
2

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT 46 / - 17 - - + 4
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT ALL + COUNT( * ) + COUNT( * ), 59 AS col1
----
2
59

skipif mysql # not compatible
query II rowsort label-2204
SELECT ALL + COUNT ( * ) + COUNT ( * ), 59 AS col1
----
2
59

query I rowsort
SELECT - + ( 29 ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT 56 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT 56 / - 94
----
0

query I rowsort
SELECT 87 * - 68 col1
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT 12 * - ( + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 12 * - ( + COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + + 95 * + COALESCE ( - 79, - ( - + 71 ) - - + MIN( - 11 ) ) + + 3 - + 53
----
-7555

skipif mysql # not compatible
query I rowsort label-2209
SELECT + + 95 * + COALESCE ( - 79, - ( - + 71 ) - - + MIN ( - 11 ) ) + + 3 - + 53
----
-7555

query I rowsort
SELECT ALL 1 * + - 95 * + - NULLIF ( - 31, 28 )
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 59 * MIN( + + 14 ) AS col0
----
826

skipif mysql # not compatible
query I rowsort label-2211
SELECT 59 * MIN ( + + 14 ) AS col0
----
826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2212
SELECT ALL - 98 AS col1, 98 + + NULLIF ( - CAST( 75 AS SIGNED ), + 21 * + 69 - 10 + COUNT( * ) / - 88 ) * - 55
----
-98
4223

skipif mysql # not compatible
query II rowsort label-2212
SELECT ALL - 98 AS col1, 98 + + NULLIF ( - CAST ( 75 AS INTEGER ), + 21 * + 69 - 10 + COUNT ( * ) / - 88 ) * - 55
----
-98
4223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2213
SELECT + 67 col2, SUM( DISTINCT + 65 ) + CASE + 58 WHEN + - SUM( ALL - 20 ) THEN NULL WHEN 69 + + 69 THEN 47 * - ( + COUNT( * ) ) WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE + 53 END
----
67
118

skipif mysql # not compatible
query II rowsort label-2213
SELECT + 67 col2, SUM ( DISTINCT + 65 ) + CASE + 58 WHEN + - SUM ( ALL - 20 ) THEN NULL WHEN 69 + + 69 THEN 47 * - ( + COUNT ( * ) ) WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 53 END
----
67
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT ALL - COUNT( * ) AS col2, 38 * + + ( - 63 ) AS col0
----
-1
-2394

skipif mysql # not compatible
query II rowsort label-2214
SELECT ALL - COUNT ( * ) AS col2, 38 * + + ( - 63 ) AS col0
----
-1
-2394

query II rowsort
SELECT ALL - 43 AS col0, - 31 * + - 99
----
-43
3069

query I rowsort
SELECT ( + ( + 14 ) ) + + 24
----
38

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

query II rowsort
SELECT + 33 AS col0, 85
----
33
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2219
SELECT 3 * + NULLIF ( + COUNT( * ), - CAST( - 45 AS SIGNED ) / + - 56 ) AS col2, + ( + 50 ) AS col1
----
3
50

skipif mysql # not compatible
query II rowsort label-2219
SELECT 3 * + NULLIF ( + COUNT ( * ), - CAST ( - 45 AS INTEGER ) / + - 56 ) AS col2, + ( + 50 ) AS col1
----
3
50

query I rowsort
SELECT 74 * 58
----
4292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT SUM( ALL 29 ) + 7 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2222
SELECT SUM ( ALL 29 ) + 7 AS col0
----
36

query I rowsort
SELECT ALL - COALESCE ( 88, 36 ) * + 90 AS col1
----
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT - CASE + COUNT( * ) WHEN ( SUM( DISTINCT - 86 ) ) THEN + CAST( + 71 AS SIGNED ) / - 76 + - 95 * + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT - CASE + COUNT ( * ) WHEN ( SUM ( DISTINCT - 86 ) ) THEN + CAST ( + 71 AS INTEGER ) / - 76 + - 95 * + 25 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL - ( 86 ) + + CAST( - 98 AS SIGNED ) * - 48 AS col0
----
4618

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - ( 86 ) + + CAST ( - 98 AS INTEGER ) * - 48 AS col0
----
4618

query II rowsort
SELECT 9 - + ( + - 49 ) + + 30 AS col0, 58
----
88
58

query I rowsort
SELECT DISTINCT 93 + - 35 + - 99
----
-41

query I rowsort
SELECT ALL 51 * ( 79 ) AS col1
----
4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT 19 DIV + COUNT( ALL + 91 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2229
SELECT 19 / + COUNT ( ALL + 91 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL - - COUNT( DISTINCT + 74 ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - - COUNT ( DISTINCT + 74 ) + 78
----
79

query II rowsort
SELECT - 6 AS col0, - 42
----
-6
-42

query I rowsort
SELECT + - 69 + - - 40 + - 33 + - + 74 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-2233
SELECT - + 64 - COUNT( * ) * 85 * 96 AS col2, + 81 + - 94 + - 93 + + 3 + 83 * 64 AS col2
----
-8224
5209

skipif mysql # not compatible
query II rowsort label-2233
SELECT - + 64 - COUNT ( * ) * 85 * 96 AS col2, + 81 + - 94 + - 93 + + 3 + 83 * 64 AS col2
----
-8224
5209

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL NULLIF ( + 71, - 68 + + 55 * - ( - COUNT( * ) ) / - AVG ( DISTINCT - 3 ) + 12 - + 16 * 71 ) * 44 AS col2
----
3124

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL NULLIF ( + 71, - 68 + + 55 * - ( - COUNT ( * ) ) / - AVG ( DISTINCT - 3 ) + 12 - + 16 * 71 ) * 44 AS col2
----
3124

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - + COUNT( + + 82 ) + + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-2235
SELECT - + COUNT ( + + 82 ) + + - 50
----
-51

query I rowsort
SELECT ALL - 89 + - 23 + 94 * - NULLIF ( 32, 33 ) + + 58 - + - 25 AS col0
----
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL - 34 * + 92 * ( - - 67 ) * - + COUNT( DISTINCT - 9 ) * + 14 + 54
----
2934118

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - 34 * + 92 * ( - - 67 ) * - + COUNT ( DISTINCT - 9 ) * + 14 + 54
----
2934118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2238
SELECT - 4 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT - 4 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 23 + + + 59 * 82 AS col0
----
4815

query II rowsort
SELECT ALL 52, - 77 col2
----
52
-77

query I rowsort
SELECT - 18 + + ( - 59 )
----
-77

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

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

query I rowsort
SELECT ALL - 73 * 70
----
-5110

query I rowsort
SELECT - + 62 * - 60 AS col2
----
3720

query I rowsort
SELECT DISTINCT - 40 - - + 58 AS col0
----
18

query II rowsort
SELECT ALL + 92, + 43 * - 79 AS col0
----
92
-3397

query II rowsort
SELECT DISTINCT + 79 col2, 27 AS col0
----
79
27

query I rowsort
SELECT ALL + + 17 * - 50 AS col0
----
-850

query II rowsort
SELECT - ( - - 98 ) * - 44 col1, 41
----
4312
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT ALL 54 DIV - ( - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL 54 / - ( - 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + COALESCE ( 98, + + 41 - + 97 * + 73 + MAX( ALL 76 ), + 50 )
----
98

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + COALESCE ( 98, + + 41 - + 97 * + 73 + MAX ( ALL 76 ), + 50 )
----
98

query I rowsort
SELECT + 53 * - 8 AS col0
----
-424

query I rowsort
SELECT ALL 18 * - 76
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - COALESCE ( 74, - 10 ) - + + 18 + 60 * + 97 + - COALESCE ( + 50, + 68 ) + MAX( + 29 ) * - 14
----
5272

skipif mysql # not compatible
query I rowsort label-2254
SELECT - COALESCE ( 74, - 10 ) - + + 18 + 60 * + 97 + - COALESCE ( + 50, + 68 ) + MAX ( + 29 ) * - 14
----
5272

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT ALL 11 * + 83 AS col1, SUM( ALL - 72 ) * - - 6 - 63 - - 16 + + - 0 col2
----
913
-479

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL 11 * + 83 AS col1, SUM ( ALL - 72 ) * - - 6 - 63 - - 16 + + - 0 col2
----
913
-479

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

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

query I rowsort
SELECT ALL 11 * + 76 + + 81
----
917

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT ALL - 61 * + + 84 + + CAST( NULL AS SIGNED ) + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - 61 * + + 84 + + CAST ( NULL AS INTEGER ) + - + 40 AS col0
----
NULL

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

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

query I rowsort
SELECT + 63 + + - 14 + 70 * ( + 60 ) + + 28 + 35 AS col2
----
4312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2262
SELECT + COUNT( + - COALESCE ( 39, 32 + - 12 + + 65 * - 61 * + - CAST( NULL AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2262
SELECT + COUNT ( + - COALESCE ( 39, 32 + - 12 + + 65 * - 61 * + - CAST ( NULL AS REAL ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + - COUNT( * ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-2263
SELECT + - COUNT ( * ) + - 79
----
-80

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

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + 60 + - - 13 * COUNT ( * ) AS col0
----
73

query I rowsort
SELECT DISTINCT - 96 * + ( 66 ) AS col0
----
-6336

query I rowsort
SELECT DISTINCT - 35 * 40 * + + ( + 23 )
----
-32200

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + + MIN( ALL - 8 ) - 84 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2267
SELECT + + MIN ( ALL - 8 ) - 84 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT + ( + CAST( NULL AS SIGNED ) ) * 15 * - 55 * 88 + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 15 * - 55 * 88 + + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT - CASE + 48 WHEN COUNT( * ) THEN NULL WHEN - COUNT( * ) * - 62 THEN + CAST( + + 51 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT - CASE + 48 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * - 62 THEN + CAST ( + + 51 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL COUNT( ALL - 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL COUNT ( ALL - 58 ) AS col1
----
1

query I rowsort
SELECT + - 97 - 43 + - - 84 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT - - 91 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2272
SELECT - - 91 / + 52
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2273
SELECT ALL - CAST( + 9 AS SIGNED ), 30 AS col1
----
-9
30

skipif mysql # not compatible
query II rowsort label-2273
SELECT ALL - CAST ( + 9 AS INTEGER ), 30 AS col1
----
-9
30

query I rowsort
SELECT ALL + + 81 * 94 * 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2275
SELECT - CAST( NULL AS SIGNED ) - - - CAST( NULL AS DECIMAL ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT - CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS REAL ) + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT ALL + COALESCE ( - 90, COUNT( * ), - SUM( - CASE - + 88 WHEN 14 THEN NULL WHEN + CAST( - 55 AS SIGNED ) + 69 THEN 14 END ) + 52 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL + COALESCE ( - 90, COUNT ( * ), - SUM ( - CASE - + 88 WHEN 14 THEN NULL WHEN + CAST ( - 55 AS INTEGER ) + 69 THEN 14 END ) + 52 ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT - 60 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 60 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 68 * 49
----
3332

query II rowsort
SELECT ALL + 33, + 43 AS col2
----
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT 59 / + 23 + NULLIF ( CASE - 5 WHEN - NULLIF ( - - 90, + 72 ) + 16 / - 92 THEN + COUNT( * ) + 6 END, ( CASE + 72 WHEN 52 THEN NULL ELSE 78 - + 95 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT 59 / + 23 + NULLIF ( CASE - 5 WHEN - NULLIF ( - - 90, + 72 ) + 16 / - 92 THEN + COUNT ( * ) + 6 END, ( CASE + 72 WHEN 52 THEN NULL ELSE 78 - + 95 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT 33 DIV - 98 * + 40 + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT 33 / - 98 * + 40 + - 22
----
-22

query I rowsort
SELECT DISTINCT + 41 * + 19 AS col0
----
779

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT DISTINCT + 6 DIV 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + 6 / 9 AS col0
----
0

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

query I rowsort
SELECT ALL + 33 + - 95 AS col2
----
-62

query I rowsort
SELECT DISTINCT + 52 + + - 79 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT - COALESCE ( - MAX( - 70 ), + - 23 - 19 - + 65 + - + ( 57 ) ) * ( - + SUM( ALL - 91 ) )
----
-6370

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - COALESCE ( - MAX ( - 70 ), + - 23 - 19 - + 65 + - + ( 57 ) ) * ( - + SUM ( ALL - 91 ) )
----
-6370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + 73 + SUM( ALL - 11 ) - + + 80
----
-18

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 73 + SUM ( ALL - 11 ) - + + 80
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT 32 * - CAST( 68 AS SIGNED ) + + - ( 4 ) + 67
----
-2113

skipif mysql # not compatible
query I rowsort label-2290
SELECT 32 * - CAST ( 68 AS INTEGER ) + + - ( 4 ) + 67
----
-2113

query I rowsort
SELECT - - ( - 74 ) AS col0
----
-74

query I rowsort
SELECT - NULLIF ( 81, + 67 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT ( - - COUNT( * ) ) * + 78 col0, NULLIF ( + + 64, + 74 + - - 19 )
----
78
64

skipif mysql # not compatible
query II rowsort label-2293
SELECT ( - - COUNT ( * ) ) * + 78 col0, NULLIF ( + + 64, + 74 + - - 19 )
----
78
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT + COALESCE ( + - MAX( + 6 ), - 9 * - 30 DIV + 99 * 50 + - 23 - COALESCE ( + + 96, + COUNT( * ) * 21 ) + - 77 * ( ( COUNT( * ) ) ) * - 53, CAST( 43 AS SIGNED ) + COUNT( * ) ) * NULLIF ( NULLIF ( + COUNT( * ), - NULLIF ( COUNT( 18 ), 7 ) ), - 82 * + 1 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2294
SELECT + COALESCE ( + - MAX ( + 6 ), - 9 * - 30 / + 99 * 50 + - 23 - COALESCE ( + + 96, + COUNT ( * ) * 21 ) + - 77 * ( ( COUNT ( * ) ) ) * - 53, CAST ( 43 AS INTEGER ) + COUNT ( * ) ) * NULLIF ( NULLIF ( + COUNT ( * ), - NULLIF ( COUNT ( 18 ), 7 ) ), - 82 * + 1 ) AS col2
----
-6

query II rowsort
SELECT ALL + 44 AS col1, 11 * - - 86 * 51
----
44
48246

query I rowsort
SELECT ALL - 90 * 88 * 75 AS col1
----
-594000

query I rowsort
SELECT + 89 + 43 AS col1
----
132

query I rowsort
SELECT ( - 91 ) + - 88 * - 41 AS col0
----
3517

query I rowsort
SELECT + 42 * - ( - 66 ) * - 71 AS col1
----
-196812

query I rowsort
SELECT 13 * - 25 AS col1
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT 97 + + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2301
SELECT 97 + + - COUNT ( * )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 7 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT 7 / - + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT 48 + - 55 * - COUNT( * ) col0
----
103

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT 48 + - 55 * - COUNT ( * ) col0
----
103

query I rowsort
SELECT ALL 6 + + 42 + + 48
----
96

query I rowsort
SELECT ( + 17 ) * - NULLIF ( + - 47, + CASE + + 4 WHEN - 11 THEN NULL ELSE + 39 * - + 80 END )
----
799

query I rowsort
SELECT ALL 82 + - 32 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT ALL - CASE - 51 WHEN + 5 THEN - + AVG ( ALL - 78 ) END + + - 31 AS col2, - 10 - 2 - + SUM( ALL + 75 ) * COUNT( * )
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-2307
SELECT ALL - CASE - 51 WHEN + 5 THEN - + AVG ( ALL - 78 ) END + + - 31 AS col2, - 10 - 2 - + SUM ( ALL + 75 ) * COUNT ( * )
----
NULL
-87

query I rowsort
SELECT DISTINCT + 10 * 48
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL COUNT( * ) + - ( ( + 18 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL COUNT ( * ) + - ( ( + 18 ) )
----
-17

query I rowsort
SELECT 13 * 66 AS col1
----
858

query II rowsort
SELECT + 86 col2, 19 AS col0
----
86
19

query I rowsort
SELECT ALL - 65 + - + 61 + - 61 * - 76 AS col1
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT COUNT( * ) * + ( - CASE - 24 WHEN + 26 THEN NULL WHEN + 64 THEN + 40 * - + 32 + 62 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT COUNT ( * ) * + ( - CASE - 24 WHEN + 26 THEN NULL WHEN + 64 THEN + 40 * - + 32 + 62 ELSE NULL END ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT NULLIF ( - - CAST( - 75 AS SIGNED ), - + 13 * + + 55 + + 76 * + 37 + + 19 * + 82 * - 68 ) + - COUNT( * ) + ( 35 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT NULLIF ( - - CAST ( - 75 AS INTEGER ), - + 13 * + + 55 + + 76 * + 37 + + 19 * + 82 * - 68 ) + - COUNT ( * ) + ( 35 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT - MAX( 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - MAX ( 33 ) AS col1
----
-33

query I rowsort
SELECT ALL - 1 * + - 2 * - 62 AS col1
----
-124

query I rowsort
SELECT ALL + 38 - - 74 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT MIN( ALL - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2319
SELECT MIN ( ALL - 17 ) AS col2
----
-17

query I rowsort
SELECT DISTINCT - - 22 AS col1
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2321
SELECT 0 - - CAST( NULL AS DECIMAL ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT 0 - - CAST ( NULL AS REAL ) * - 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT - 71 + + CASE - MAX( ALL + 45 ) WHEN + 60 + + 76 THEN NULL WHEN + 86 - + + 10 THEN - 86 WHEN - - 17 / - ( - COALESCE ( 59, 3 ) ) + + 21 / + COUNT( * ) THEN NULL WHEN + 33 / 55 + COUNT( ALL 77 + - 96 ) THEN COALESCE ( - 54, - 51, CAST( NULL AS SIGNED ), + 81 / + COUNT( * ) + 16 ) END + 78 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 71 + + CASE - MAX ( ALL + 45 ) WHEN + 60 + + 76 THEN NULL WHEN + 86 - + + 10 THEN - 86 WHEN - - 17 / - ( - COALESCE ( 59, 3 ) ) + + 21 / + COUNT ( * ) THEN NULL WHEN + 33 / 55 + COUNT ( ALL 77 + - 96 ) THEN COALESCE ( - 54, - 51, CAST ( NULL AS INTEGER ), + 81 / + COUNT ( * ) + 16 ) END + 78 * + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT ALL - + 77 / + 1 + - + 37 + 41 / + 62 + - CAST( NULL AS SIGNED ) + 61 + - 67 - + 89 * 7 / - + 19 * 3 * MAX( DISTINCT ( 58 ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - + 77 / + 1 + - + 37 + 41 / + 62 + - CAST ( NULL AS INTEGER ) + 61 + - 67 - + 89 * 7 / - + 19 * 3 * MAX ( DISTINCT ( 58 ) ) * + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + + COUNT ( * ) - - + 36 AS col1
----
37

query II rowsort
SELECT - 15 AS col2, 96
----
-15
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT 80 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-2326
SELECT 80 / 71
----
1

query I rowsort
SELECT - 37 * + + ( - + 25 )
----
925

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL - + 86 DIV + ( - 38 ) + 73 + + 74
----
149

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - + 86 / + ( - 38 ) + 73 + + 74
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT DISTINCT 60, 99 * - COUNT( * ) + + 96 AS col1
----
60
-3

skipif mysql # not compatible
query II rowsort label-2329
SELECT DISTINCT 60, 99 * - COUNT ( * ) + + 96 AS col1
----
60
-3

query II rowsort
SELECT - 16, + 36 AS col2
----
-16
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT ALL + CASE - + 16 WHEN - + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) THEN + - 57 / + ( - + COUNT( * ) ) + - COUNT( * ) - + - 82 WHEN + 75 + + 55 / 81 THEN NULL END * - ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + CASE - + 16 WHEN - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) THEN + - 57 / + ( - + COUNT ( * ) ) + - COUNT ( * ) - + - 82 WHEN + 75 + + 55 / 81 THEN NULL END * - ( - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL + - 98 * - + SUM( 95 ) AS col0
----
9310

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + - 98 * - + SUM ( 95 ) AS col0
----
9310

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

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

query I rowsort
SELECT ALL 70 + - 59 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT - 40 - + NULLIF ( - - 52, NULLIF ( - 46, - COUNT( * ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2335
SELECT - 40 - + NULLIF ( - - 52, NULLIF ( - 46, - COUNT ( * ) ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2336
SELECT - 39, MAX( ALL 17 ) + + - 21 * + 38 + + 43 AS col1
----
-39
-738

skipif mysql # not compatible
query II rowsort label-2336
SELECT - 39, MAX ( ALL 17 ) + + - 21 * + 38 + + 43 AS col1
----
-39
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - COUNT( * ) * - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2337
SELECT - COUNT ( * ) * - 30 AS col1
----
30

query I rowsort
SELECT 68 - 29 + - 32
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2339
SELECT ALL 95 + COALESCE ( - 58, + COUNT( * ) ) + - 86 DIV 8 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 95 + COALESCE ( - 58, + COUNT ( * ) ) + - 86 / 8 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT ALL 89 + 2 DIV + 54 * + ( + 17 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 89 + 2 / + 54 * + ( + 17 ) col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT - COUNT( ALL + + 74 ) AS col0, CASE - CAST( NULL AS SIGNED ) WHEN + CASE - 89 WHEN - SUM( 25 ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - 35 ) * + + 35 + CAST( NULL AS SIGNED ) + 33 * - ( 19 ) THEN NULL ELSE - 82 END THEN + 75 - - 57 WHEN 62 * 12 - NULLIF ( + COUNT( * ), 57 * 9 - - 22 ) THEN NULL ELSE 21 * 72 - 0 END
----
-1
1512

skipif mysql # not compatible
query II rowsort label-2341
SELECT - COUNT ( ALL + + 74 ) AS col0, CASE - CAST ( NULL AS INTEGER ) WHEN + CASE - 89 WHEN - SUM ( 25 ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - 35 ) * + + 35 + CAST ( NULL AS INTEGER ) + 33 * - ( 19 ) THEN NULL ELSE - 82 END THEN + 75 - - 57 WHEN 62 * 12 - NULLIF ( + COUNT ( * ), 57 * 9 - - 22 ) THEN NULL ELSE 21 * 72 - 0 END
----
-1
1512

query I rowsort
SELECT ALL 59 + - + 32 * 31
----
-933

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT COALESCE ( + 69, - COUNT( * ) * + 19, + 3, 79 ) - - - 5
----
64

skipif mysql # not compatible
query I rowsort label-2343
SELECT COALESCE ( + 69, - COUNT ( * ) * + 19, + 3, 79 ) - - - 5
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL 35 * 75 DIV 91 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 35 * 75 / 91 AS col2
----
28

query II rowsort
SELECT 77 + + - 41 AS col0, - 74 - - 63
----
36
-11

query I rowsort
SELECT 13 - - 35
----
48

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

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL 53 + + COUNT ( * ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( NULL AS SIGNED ) * - 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( NULL AS INTEGER ) * - 20 col1
----
NULL

query I rowsort
SELECT ALL - 68 * - - 52 * - ( - + 10 ) + + - 47 + - + 34
----
-35441

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + NULLIF ( 61, COUNT( * ) * 3 )
----
61

skipif mysql # not compatible
query I rowsort label-2351
SELECT + NULLIF ( 61, COUNT ( * ) * 3 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2352
SELECT 33 DIV ( + CAST( COUNT( * ) AS SIGNED ) ) + - COUNT( * ) DIV + 26 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2352
SELECT 33 / ( + CAST ( COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) / + 26 AS col2
----
33

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

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

query I rowsort
SELECT + 87 + - - 58 AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2355
SELECT ALL COUNT( + 17 ) * - 87 * - - MIN( + + CAST( + CAST( - 52 AS DECIMAL ) AS SIGNED ) ) - - 0 AS col0
----
4524

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL COUNT ( + 17 ) * - 87 * - - MIN ( + + CAST ( + CAST ( - 52 AS REAL ) AS INTEGER ) ) - - 0 AS col0
----
4524

query I rowsort
SELECT CASE 41 WHEN + 79 + - 24 THEN - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT 6 * + COUNT( * ) + - 49 AS col1, + COUNT( ALL + 39 ) * - + 25 + + 64 + - COALESCE ( + 30, 25, - 2 ) AS col2
----
-43
9

skipif mysql # not compatible
query II rowsort label-2357
SELECT 6 * + COUNT ( * ) + - 49 AS col1, + COUNT ( ALL + 39 ) * - + 25 + + 64 + - COALESCE ( + 30, 25, - 2 ) AS col2
----
-43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + 57 * + CASE - COUNT( * ) WHEN + 91 - ( - 2 ) THEN NULL ELSE 91 END AS col1
----
5187

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 57 * + CASE - COUNT ( * ) WHEN + 91 - ( - 2 ) THEN NULL ELSE 91 END AS col1
----
5187

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

query I rowsort
SELECT - 60 + + - ( - 93 ) + - 81 AS col1
----
-48

query I rowsort
SELECT ALL 29 * 94
----
2726

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2362
SELECT + 99 * - 85 + + CAST( + ( - 98 ) AS SIGNED ) DIV + NULLIF ( + 31, + 73 ) - + 71
----
-8489

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 99 * - 85 + + CAST ( + ( - 98 ) AS INTEGER ) / + NULLIF ( + 31, + 73 ) - + 71
----
-8489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT + + 84 + - 40 * COUNT( * ) DIV + 18 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2363
SELECT + + 84 + - 40 * COUNT ( * ) / + 18 AS col0
----
82

query I rowsort
SELECT - - 81 * + 70 + - + 14 AS col2
----
5656

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL - COUNT( * ) * + + 36 col0
----
-36

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - COUNT ( * ) * + + 36 col0
----
-36

query I rowsort
SELECT - + 34 * + - COALESCE ( - 4, - 93 + + 40 )
----
-136

query I rowsort
SELECT DISTINCT 14 * 74 * 28
----
29008

query II rowsort
SELECT DISTINCT - 96 + - 75 AS col1, + 29 + + + 16 AS col1
----
-171
45

query I rowsort
SELECT - ( - 71 ) col1
----
71

query I rowsort
SELECT - 71 + - 95 * + + 40
----
-3871

query I rowsort
SELECT + 15 * + - 57
----
-855

query I rowsort
SELECT - + 82 + ( + 38 ) * + 60 + ( + 74 ) col0
----
2272

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2373
SELECT - 98 / - SUM( DISTINCT - 61 ) - 40 + + 87 + + - ( 92 ) - - COUNT( DISTINCT + - 30 ) + - ( + SUM( ALL + 19 ) ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 98 / - SUM ( DISTINCT - 61 ) - 40 + + 87 + + - ( 92 ) - - COUNT ( DISTINCT + - 30 ) + - ( + SUM ( ALL + 19 ) ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT - - 8 + - + COUNT( * ) - CAST( NULL AS SIGNED ) + + 36 * - - COALESCE ( - COUNT( DISTINCT 29 ), + 29 + 2, - + 81 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT - - 8 + - + COUNT ( * ) - CAST ( NULL AS INTEGER ) + + 36 * - - COALESCE ( - COUNT ( DISTINCT 29 ), + 29 + 2, - + 81 + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - - 2 - - 44 AS col2, 9 + + + ( 23 ) * 54
----
46
1251

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - + COUNT( * ) + + ( ( 69 ) ) * + + 4
----
275

skipif mysql # not compatible
query I rowsort label-2376
SELECT - + COUNT ( * ) + + ( ( 69 ) ) * + + 4
----
275

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT ALL + 9 DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + 9 / - + 36
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT DISTINCT NULLIF ( 14, CAST( NULL AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT NULLIF ( 14, CAST ( NULL AS INTEGER ) )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL 48 * - ( + COUNT( * ) ) AS col0, + 44 * + 30 AS col1
----
-48
1320

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL 48 * - ( + COUNT ( * ) ) AS col0, + 44 * + 30 AS col1
----
-48
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + 82 + - SUM( DISTINCT + 92 )
----
-10

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + 82 + - SUM ( DISTINCT + 92 )
----
-10

query II rowsort
SELECT - 71 AS col0, - 64
----
-71
-64

query I rowsort
SELECT + 47 + - 44 col1
----
3

query I rowsort
SELECT ALL + 65 + + 1 - + 93
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - 10 * COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - 10 * COUNT ( * ) AS col2
----
-10

query I rowsort
SELECT + 23 + - 97 AS col0
----
-74

query I rowsort
SELECT - 35 * + - 71 col0
----
2485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2387
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - SUM( DISTINCT 48 ) * - ( - 8 ) + 26 + 22 + + + 72 col0
----
NULL
-264

skipif mysql # not compatible
query II rowsort label-2387
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - SUM ( DISTINCT 48 ) * - ( - 8 ) + 26 + 22 + + + 72 col0
----
NULL
-264

onlyif mysql # DIV for integer division: 
query II rowsort label-2388
SELECT 72 AS col1, - 82 DIV + + 1 AS col2
----
72
-82

skipif mysql # not compatible
query II rowsort label-2388
SELECT 72 AS col1, - 82 / + + 1 AS col2
----
72
-82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT ALL - COALESCE ( + CASE COALESCE ( + 39, CAST( NULL AS SIGNED ) * 34 ) WHEN + 55 - - 88 THEN - - 38 WHEN + COUNT( * ) THEN 86 * + - 91 DIV 78 END, + 47 + + 87 ) - 67 DIV ( 68 * 49 )
----
-134

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - COALESCE ( + CASE COALESCE ( + 39, CAST ( NULL AS INTEGER ) * 34 ) WHEN + 55 - - 88 THEN - - 38 WHEN + COUNT ( * ) THEN 86 * + - 91 / 78 END, + 47 + + 87 ) - 67 / ( 68 * 49 )
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - COUNT( - 86 ) / CASE NULLIF ( + + 13, + 19 ) WHEN + COUNT( * ) THEN 96 END * 29 * - - 23 * COALESCE ( 13, 23 * 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - COUNT ( - 86 ) / CASE NULLIF ( + + 13, + 19 ) WHEN + COUNT ( * ) THEN 96 END * 29 * - - 23 * COALESCE ( 13, 23 * 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT DISTINCT COALESCE ( + COUNT( * ), 25 ) * + CAST( - 24 AS SIGNED ) * + - 71 * + 62 col2
----
105648

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT COALESCE ( + COUNT ( * ), 25 ) * + CAST ( - 24 AS INTEGER ) * + - 71 * + 62 col2
----
105648

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT + - 24 DIV 6
----
-4

skipif mysql # not compatible
query I rowsort label-2394
SELECT + - 24 / 6
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2395
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), - 28 / 77 + CAST( 22 AS DECIMAL ) * - 55 * + + 56 ) AS col2, - 54 * - + ( + NULLIF ( - 31, + 55 / - 46 - + AVG ( - 7 + - 40 ) * - 10 ) ) * 33
----
NULL
-55242

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), - 28 / 77 + CAST ( 22 AS REAL ) * - 55 * + + 56 ) AS col2, - 54 * - + ( + NULLIF ( - 31, + 55 / - 46 - + AVG ( - 7 + - 40 ) * - 10 ) ) * 33
----
NULL
-55242

query II rowsort
SELECT DISTINCT 84 * 85 - - + 90 col1, - 63
----
7230
-63

query I rowsort
SELECT ALL + + 17 * - - 95 + - - 55 AS col1
----
1670

query II rowsort
SELECT DISTINCT + + 12 AS col2, 33 AS col0
----
12
33

query I rowsort
SELECT DISTINCT - 76 * + 98 * + + 17 + + 37 * + 22
----
-125802

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT - ( COUNT( * ) ) * + 48 + - 63 + - ( + + 79 ) + + COUNT( * ) AS col0
----
-189

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT - ( COUNT ( * ) ) * + 48 + - 63 + - ( + + 79 ) + + COUNT ( * ) AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT + COUNT( - - 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT + COUNT ( - - 15 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2403
SELECT + - 62 * - CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) * 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT + - 62 * - CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) * 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT COUNT( * ) * + - 65 * - - 12 + - 73 + COALESCE ( - COUNT( - 16 ), - + 74 ) + + + 8 + - 20 + - - 96 * 85
----
7294

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT COUNT ( * ) * + - 65 * - - 12 + - 73 + COALESCE ( - COUNT ( - 16 ), - + 74 ) + + + 8 + - 20 + - - 96 * 85
----
7294

query I rowsort
SELECT DISTINCT 14 * + ( 88 ) AS col0
----
1232

onlyif mysql # aggregate syntax: 
query III rowsort label-2406
SELECT ALL 60 * 71, + SUM( - 80 ) - + + 18 AS col0, - 80 - - 79 AS col0
----
4260
-98
-1

skipif mysql # not compatible
query III rowsort label-2406
SELECT ALL 60 * 71, + SUM ( - 80 ) - + + 18 AS col0, - 80 - - 79 AS col0
----
4260
-98
-1

query I rowsort
SELECT DISTINCT 92 * + 44 + 72 + - 67 col2
----
4053

query II rowsort
SELECT ALL - 33 - + 1 AS col2, + 51 AS col1
----
-34
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT ( ( + 21 ) ) - - - COALESCE ( - 42, + COUNT( * ) * - - 60 ) - - 65 + - - 19 DIV + 83
----
128

skipif mysql # not compatible
query I rowsort label-2409
SELECT ( ( + 21 ) ) - - - COALESCE ( - 42, + COUNT ( * ) * - - 60 ) - - 65 + - - 19 / + 83
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT + AVG ( 5 ) / - 86 - CAST( NULL AS SIGNED ) + + CASE - - 35 WHEN + SUM( 21 ) * - + 52 * - + 99 + + 2 + COUNT( * ) + - 20 * - - 21 THEN + 44 ELSE NULL END * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + AVG ( 5 ) / - 86 - CAST ( NULL AS INTEGER ) + + CASE - - 35 WHEN + SUM ( 21 ) * - + 52 * - + 99 + + 2 + COUNT ( * ) + - 20 * - - 21 THEN + 44 ELSE NULL END * 25 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT 3 - - - 12 + CAST( - 54 AS SIGNED ) + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2411
SELECT 3 - - - 12 + CAST ( - 54 AS INTEGER ) + COUNT ( * )
----
-62

query I rowsort
SELECT 12 + + - 6 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT 18 * + CASE - - COUNT( * ) WHEN + 98 THEN + ( - 9 ) * - 63 + - + 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT 18 * + CASE - - COUNT ( * ) WHEN + 98 THEN + ( - 9 ) * - 63 + - + 35 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT + 61 DIV MIN( + - 19 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + 61 / MIN ( + - 19 ) AS col1
----
-3

query I rowsort
SELECT 28 * - + 6
----
-168

query I rowsort
SELECT 31 * - 34
----
-1054

query I rowsort
SELECT 12 + 64 + - - 90 AS col2
----
166

query I rowsort
SELECT 47 - + - 65 AS col1
----
112

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

skipif mysql # not compatible
query I rowsort label-2419
SELECT 18 * + COUNT ( * ) / - + 81
----
0

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

skipif mysql # not compatible
query I rowsort label-2420
SELECT + CAST ( NULL AS INTEGER ) * - 68 AS col2
----
NULL

query I rowsort
SELECT ALL + 79 * + 2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - 90 * + + 76 * + COUNT( DISTINCT - 78 ) + + MAX( 63 ) AS col0
----
-6777

skipif mysql # not compatible
query I rowsort label-2422
SELECT - 90 * + + 76 * + COUNT ( DISTINCT - 78 ) + + MAX ( 63 ) AS col0
----
-6777

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT COALESCE ( - 63, ( - - 84 ) * COALESCE ( - 1, 4 + + + 86 ) * + COUNT( DISTINCT + 61 ) ) + + 44
----
-19

skipif mysql # not compatible
query I rowsort label-2423
SELECT COALESCE ( - 63, ( - - 84 ) * COALESCE ( - 1, 4 + + + 86 ) * + COUNT ( DISTINCT + 61 ) ) + + 44
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT DISTINCT - + ( 66 ) AS col0, + COUNT( * ) * + 48 * - 67 AS col0
----
-66
-3216

skipif mysql # not compatible
query II rowsort label-2424
SELECT DISTINCT - + ( 66 ) AS col0, + COUNT ( * ) * + 48 * - 67 AS col0
----
-66
-3216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2425
SELECT ALL - - ( - 25 ) + + CAST( NULL AS SIGNED ) + - MIN( + 11 ) + COUNT( * ) / + 31 AS col2, - 49 - 24 AS col0
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-2425
SELECT ALL - - ( - 25 ) + + CAST ( NULL AS INTEGER ) + - MIN ( + 11 ) + COUNT ( * ) / + 31 AS col2, - 49 - 24 AS col0
----
NULL
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL + 29 + - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + 29 + - + COUNT ( * )
----
28

query II rowsort
SELECT 42 + - + 11 AS col1, + 73
----
31
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - 74 * - + CASE - COUNT( * ) WHEN + + 77 * - COUNT( * ) - + - 18 THEN NULL ELSE 48 + + 15 END
----
4662

skipif mysql # not compatible
query I rowsort label-2428
SELECT - 74 * - + CASE - COUNT ( * ) WHEN + + 77 * - COUNT ( * ) - + - 18 THEN NULL ELSE 48 + + 15 END
----
4662

query I rowsort
SELECT 1 + - 82
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - 63 * 9 + + 34 + + MIN( DISTINCT - 0 ) * + 4
----
-533

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 63 * 9 + + 34 + + MIN ( DISTINCT - 0 ) * + 4
----
-533

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT + MAX( DISTINCT - 19 ), + 39 AS col1
----
-19
39

skipif mysql # not compatible
query II rowsort label-2431
SELECT + MAX ( DISTINCT - 19 ), + 39 AS col1
----
-19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL ( + ( COUNT( * ) ) ) + 16 * + 48 - 54 AS col0
----
715

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL ( + ( COUNT ( * ) ) ) + 16 * + 48 - 54 AS col0
----
715

query I rowsort
SELECT 65 + + NULLIF ( 86, + + 84 * - - 88 ) AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT CASE - - 4 WHEN - - MAX( ALL + + 57 ) THEN 20 ELSE NULL END * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT CASE - - 4 WHEN - - MAX ( ALL + + 57 ) THEN 20 ELSE NULL END * - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - - MAX( DISTINCT - 55 ) * - + ( + 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - - MAX ( DISTINCT - 55 ) * - + ( + 0 ) col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT ALL 3 * 98 DIV - 79
----
-3

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 3 * 98 / - 79
----
-3

query II rowsort
SELECT DISTINCT 7 - 91, ( + 57 ) AS col2
----
-84
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT 21 - + + 15 + + - 0 * 84 * + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT 21 - + + 15 + + - 0 * 84 * + + COUNT ( * )
----
6

query I rowsort
SELECT NULLIF ( - - 17, + 5 * 62 ) + + 7
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT 74 * - 92 + - 39 AS col1, - NULLIF ( - 49, + - 63 / 92 * - COALESCE ( - + 73, + SUM( DISTINCT - 72 ) ) - + 94 * - 59 ) + - 82
----
-6847
-33

skipif mysql # not compatible
query II rowsort label-2442
SELECT 74 * - 92 + - 39 AS col1, - NULLIF ( - 49, + - 63 / 92 * - COALESCE ( - + 73, + SUM ( DISTINCT - 72 ) ) - + 94 * - 59 ) + - 82
----
-6847
-33

query I rowsort
SELECT 93 + 71 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT CASE + + CASE - 21 WHEN - 21 THEN + 48 ELSE - - COUNT( * ) * MAX( ALL - 75 ) END WHEN - - 52 THEN + + 73 WHEN + 97 + 60 THEN NULL END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT CASE + + CASE - 21 WHEN - 21 THEN + 48 ELSE - - COUNT ( * ) * MAX ( ALL - 75 ) END WHEN - - 52 THEN + + 73 WHEN + 97 + 60 THEN NULL END * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2445
SELECT 5 AS col0, MAX( + 91 )
----
5
91

skipif mysql # not compatible
query II rowsort label-2445
SELECT 5 AS col0, MAX ( + 91 )
----
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL COALESCE ( - 7, - ( 42 ) * + COUNT( * ), 96 ) * 62 AS col0
----
-434

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL COALESCE ( - 7, - ( 42 ) * + COUNT ( * ), 96 ) * 62 AS col0
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT NULLIF ( - + COUNT( * ), - - CASE - 11 WHEN + 91 THEN - 98 WHEN - 21 - + 6 + 57 THEN + 72 END ) + + 84 + - - 4 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2447
SELECT NULLIF ( - + COUNT ( * ), - - CASE - 11 WHEN + 91 THEN - 98 WHEN - 21 - + 6 + 57 THEN + 72 END ) + + 84 + - - 4 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL 18 - - MAX( DISTINCT + 99 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL 18 - - MAX ( DISTINCT + 99 ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT COALESCE ( + 94, - ( + + MIN( DISTINCT - 7 ) ) ) * + 50 AS col1
----
4700

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT COALESCE ( + 94, - ( + + MIN ( DISTINCT - 7 ) ) ) * + 50 AS col1
----
4700

query II rowsort
SELECT 12 + + 49 * + 47 AS col1, + 41 AS col2
----
2315
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + NULLIF ( - + ( 29 ), - 71 * 81 + + + ( 11 ) ), - 16, + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + NULLIF ( - + ( 29 ), - 71 * 81 + + + ( 11 ) ), - 16, + 34 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL CASE - 3 WHEN + 12 THEN NULL WHEN - COUNT( * ) + ( + 68 ) * + - 82 + - CAST( - 52 AS SIGNED ) + - - ( - - ( + 23 ) ) * 73 * 26 THEN + + 51 ELSE CASE - 92 WHEN + 71 THEN 29 * - 97 WHEN 86 THEN NULL ELSE NULL END END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL CASE - 3 WHEN + 12 THEN NULL WHEN - COUNT ( * ) + ( + 68 ) * + - 82 + - CAST ( - 52 AS INTEGER ) + - - ( - - ( + 23 ) ) * 73 * 26 THEN + + 51 ELSE CASE - 92 WHEN + 71 THEN 29 * - 97 WHEN 86 THEN NULL ELSE NULL END END * 28
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT ( - MAX( + + 75 ) ) * 98 col0
----
-7350

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT ( - MAX ( + + 75 ) ) * 98 col0
----
-7350

query II rowsort
SELECT ALL 37 AS col2, 48 AS col0
----
37
48

query I rowsort
SELECT ( 67 ) * + - 80
----
-5360

query I rowsort
SELECT 57 + + 53
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT ALL 46 AS col2, - ( - + ( COUNT( ALL - 58 ) ) ) col2
----
46
1

skipif mysql # not compatible
query II rowsort label-2458
SELECT ALL 46 AS col2, - ( - + ( COUNT ( ALL - 58 ) ) ) col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT 37 * + - MAX( ALL + 87 ) * 85
----
-273615

skipif mysql # not compatible
query I rowsort label-2459
SELECT 37 * + - MAX ( ALL + 87 ) * 85
----
-273615

query I rowsort
SELECT ALL - 3 * ( - ( + + 32 ) ) AS col1
----
96

query I rowsort
SELECT DISTINCT - 91 + - 30 AS col1
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT - 69 + CAST( - 47 AS SIGNED )
----
-116

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - 69 + CAST ( - 47 AS INTEGER )
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT 46 DIV + - 38 * - - COUNT( * ) + + 76
----
75

skipif mysql # not compatible
query I rowsort label-2463
SELECT 46 / + - 38 * - - COUNT ( * ) + + 76
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2464
SELECT + - ( - - CAST( - SUM( DISTINCT - - 92 ) AS SIGNED ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2464
SELECT + - ( - - CAST ( - SUM ( DISTINCT - - 92 ) AS INTEGER ) ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2465
SELECT - NULLIF ( CAST( + - 16 AS SIGNED ), - 67 * - CAST( NULL AS DECIMAL ) * + 51 + + 43 + 55 * 49 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2465
SELECT - NULLIF ( CAST ( + - 16 AS INTEGER ), - 67 * - CAST ( NULL AS REAL ) * + 51 + + 43 + 55 * 49 ) AS col0
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL 51 * - + 34 * MIN( ALL + 54 ) + - - 77 + + 17 + - 52 * + - COUNT( * ) * - + COUNT( * ) AS col0
----
-93594

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL 51 * - + 34 * MIN ( ALL + 54 ) + - - 77 + + 17 + - 52 * + - COUNT ( * ) * - + COUNT ( * ) AS col0
----
-93594

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL - 25 * - 62 + + ( COUNT( * ) ) AS col0
----
1551

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - 25 * - 62 + + ( COUNT ( * ) ) AS col0
----
1551

query I rowsort
SELECT DISTINCT + 73 * 7 + - 92
----
419

query I rowsort
SELECT ALL - - ( 45 )
----
45

query I rowsort
SELECT + - ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + + MAX( DISTINCT 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2472
SELECT + + MAX ( DISTINCT 56 ) AS col0
----
56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2474
SELECT DISTINCT - - 59 - - 6 * - 88, + 80 / - CAST( NULL AS DECIMAL ) + - COALESCE ( + 32, + - 95, 49 * + 82 ) AS col2
----
-469
NULL

skipif mysql # not compatible
query II rowsort label-2474
SELECT DISTINCT - - 59 - - 6 * - 88, + 80 / - CAST ( NULL AS REAL ) + - COALESCE ( + 32, + - 95, 49 * + 82 ) AS col2
----
-469
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL - 90 DIV - 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - 90 / - 50 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2476
SELECT + 56 AS col0, - CAST( NULL AS SIGNED )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2476
SELECT + 56 AS col0, - CAST ( NULL AS INTEGER )
----
56
NULL

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

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

query I rowsort
SELECT - 95 * 9 AS col1
----
-855

query I rowsort
SELECT - 71 + - 10
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT ALL + COALESCE ( - SUM( - 10 ), CAST( + + 72 AS SIGNED ), + 43 ) * ( + - 15 )
----
-150

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + COALESCE ( - SUM ( - 10 ), CAST ( + + 72 AS INTEGER ), + 43 ) * ( + - 15 )
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT ALL COALESCE ( 48, - ( - + CAST( NULL AS SIGNED ) ) ) col1
----
48

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL COALESCE ( 48, - ( - + CAST ( NULL AS INTEGER ) ) ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT CASE 59 WHEN - MAX( ALL - 90 ) THEN - 75 * - CASE + 61 WHEN + - COALESCE ( 24, - - CASE - 81 WHEN 13 / - 43 + + + 98 - - 48 THEN - + 75 ELSE + COUNT( * ) END * + 83 - 80 / 84 ) - + 43 THEN - 8 ELSE NULL END + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT CASE 59 WHEN - MAX ( ALL - 90 ) THEN - 75 * - CASE + 61 WHEN + - COALESCE ( 24, - - CASE - 81 WHEN 13 / - 43 + + + 98 - - 48 THEN - + 75 ELSE + COUNT ( * ) END * + 83 - 80 / 84 ) - + 43 THEN - 8 ELSE NULL END + + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 26 AS col0, 45
----
26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT - CASE - MIN( ALL 7 ) WHEN + 77 / 71 THEN - - COUNT( * ) WHEN 33 THEN NULL WHEN - 22 THEN + 20 * ( 28 ) / + 18 + - ( - CAST( - 25 AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT - CASE - MIN ( ALL 7 ) WHEN + 77 / 71 THEN - - COUNT ( * ) WHEN 33 THEN NULL WHEN - 22 THEN + 20 * ( 28 ) / + 18 + - ( - CAST ( - 25 AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2485
SELECT - 29 + 58 DIV 24 * - 8 AS col0, + ( COALESCE ( - 79, 61 DIV + MAX( - ( + CASE ( 98 ) WHEN - - ( - 54 ) * 28 - - 88 * 73 THEN NULL ELSE + 52 DIV + 48 END ) ) ) ) AS col0
----
-45
-79

skipif mysql # not compatible
query II rowsort label-2485
SELECT - 29 + 58 / 24 * - 8 AS col0, + ( COALESCE ( - 79, 61 / + MAX ( - ( + CASE ( 98 ) WHEN - - ( - 54 ) * 28 - - 88 * 73 THEN NULL ELSE + 52 / + 48 END ) ) ) ) AS col0
----
-45
-79

query I rowsort
SELECT + 5 * 60
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2487
SELECT + COALESCE ( 43, - 21 ) * + - ( - 54 ) * - 10, - ( NULLIF ( + - 80, + 47 * - 50 + COUNT( * ) + + 32 ) ) * 20 DIV COALESCE ( + CASE + 93 WHEN COUNT( + 20 ) DIV MAX( 24 ) THEN + 26 END, 9 ) * - 24 + - 65 AS col2
----
-23220
-4313

skipif mysql # not compatible
query II rowsort label-2487
SELECT + COALESCE ( 43, - 21 ) * + - ( - 54 ) * - 10, - ( NULLIF ( + - 80, + 47 * - 50 + COUNT ( * ) + + 32 ) ) * 20 / COALESCE ( + CASE + 93 WHEN COUNT ( + 20 ) / MAX ( 24 ) THEN + 26 END, 9 ) * - 24 + - 65 AS col2
----
-23220
-4313

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

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

query I rowsort
SELECT + 22 - + 24
----
-2

query II rowsort
SELECT 96 AS col2, - 74 AS col2
----
96
-74

query I rowsort
SELECT + 98 + 89 AS col1
----
187

query II rowsort
SELECT DISTINCT 98 AS col0, 78 * 60 col2
----
98
4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL 69 + - 45 - + 28 + - + 98 + 39 * - 24 * + CASE + 26 WHEN + - 73 / + 79 * 12 * - + 24 + NULLIF ( + - 91, - + 97 ) + 69 + - ( 8 + COUNT( * ) / 74 ) THEN - NULLIF ( + 96, 73 * ( 25 ) - + 92 ) END + - CAST( NULL AS SIGNED ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL 69 + - 45 - + 28 + - + 98 + 39 * - 24 * + CASE + 26 WHEN + - 73 / + 79 * 12 * - + 24 + NULLIF ( + - 91, - + 97 ) + 69 + - ( 8 + COUNT ( * ) / 74 ) THEN - NULLIF ( + 96, 73 * ( 25 ) - + 92 ) END + - CAST ( NULL AS INTEGER ) * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + 75 + + - NULLIF ( + 0, + 24 ) * COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 75 + + - NULLIF ( + 0, + 24 ) * COUNT ( * ) col1
----
75

onlyif mysql # aggregate syntax: 
query III rowsort label-2495
SELECT ALL 80 + - 30, - MIN( ALL - 88 ) AS col1, + - COALESCE ( - - MIN( - 84 ), + + 97 ) * - 9 + + MAX( DISTINCT - 45 ) AS col2
----
50
88
-801

skipif mysql # not compatible
query III rowsort label-2495
SELECT ALL 80 + - 30, - MIN ( ALL - 88 ) AS col1, + - COALESCE ( - - MIN ( - 84 ), + + 97 ) * - 9 + + MAX ( DISTINCT - 45 ) AS col2
----
50
88
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2496
SELECT 82, - 47 - - ( + CAST( - COALESCE ( 39, ( 33 ), CASE + ( 43 ) WHEN + 8 * - COALESCE ( NULLIF ( + 75, + COALESCE ( - ( + 90 ), - 41 ) + + ( 34 + + COUNT( - 40 - 16 * 48 ) ) * + 5 ), 90 + 89 / 93 ) THEN NULL WHEN COALESCE ( + 74, COUNT( * ) * - COUNT( * ) ) THEN NULL ELSE + 86 * 90 END ) AS SIGNED ) ) AS col1
----
82
-86

skipif mysql # not compatible
query II rowsort label-2496
SELECT 82, - 47 - - ( + CAST ( - COALESCE ( 39, ( 33 ), CASE + ( 43 ) WHEN + 8 * - COALESCE ( NULLIF ( + 75, + COALESCE ( - ( + 90 ), - 41 ) + + ( 34 + + COUNT ( - 40 - 16 * 48 ) ) * + 5 ), 90 + 89 / 93 ) THEN NULL WHEN COALESCE ( + 74, COUNT ( * ) * - COUNT ( * ) ) THEN NULL ELSE + 86 * 90 END ) AS INTEGER ) ) AS col1
----
82
-86

query I rowsort
SELECT DISTINCT - 40 + - 95 * 85 AS col1
----
-8115

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT MAX( ALL 75 ) + - 45
----
30

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT MAX ( ALL 75 ) + - 45
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2499
SELECT ALL + 89 AS col2, CAST( + NULLIF ( + 16, + - 16 ) AS SIGNED )
----
89
16

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL + 89 AS col2, CAST ( + NULLIF ( + 16, + - 16 ) AS INTEGER )
----
89
16

query I rowsort
SELECT + + 7 + 27 AS col2
----
34

query I rowsort
SELECT ALL 69 * - + 83 - - 93 + + 43 * + 87 + 70
----
-1823

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - SUM( - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2503
SELECT - SUM ( - 78 ) AS col0
----
78

query I rowsort
SELECT DISTINCT + COALESCE ( - ( + 5 ), 77, - 14 ) AS col2
----
-5

query I rowsort
SELECT + 66 * - 47 * + 71 AS col0
----
-220242

query I rowsort
SELECT - 35 * - 85
----
2975

query I rowsort
SELECT ALL + ( - - 69 ) AS col0
----
69

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

query I rowsort
SELECT - + 75 * 86 AS col1
----
-6450

query I rowsort
SELECT DISTINCT - + 24 * 51 * - - 66 AS col2
----
-80784

query I rowsort
SELECT DISTINCT ( - - ( - + 42 ) ) * NULLIF ( - 58, - 80 )
----
2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT + 65 * - 39 + - + COALESCE ( 92, + COALESCE ( + + NULLIF ( - - 43, COALESCE ( + 5, - + 79 ) * + - AVG ( + + 33 ) + - 59 + - 1 DIV + 11 * + ( - 83 ) + 21 DIV COALESCE ( + 27 + 8, 50, 84 ) ), + 98 ) ) DIV - COUNT( DISTINCT - 11 ) + + 57 * - 80 AS col0
----
-7003

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 65 * - 39 + - + COALESCE ( 92, + COALESCE ( + + NULLIF ( - - 43, COALESCE ( + 5, - + 79 ) * + - AVG ( + + 33 ) + - 59 + - 1 / + 11 * + ( - 83 ) + 21 / COALESCE ( + 27 + 8, 50, 84 ) ), + 98 ) ) / - COUNT ( DISTINCT - 11 ) + + 57 * - 80 AS col0
----
-7003

query I rowsort
SELECT ALL - 28 * 7
----
-196

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

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

query I rowsort
SELECT NULLIF ( 13, - 62 )
----
13

query I rowsort
SELECT 11 * + 76 * 9 + - 90
----
7434

query I rowsort
SELECT - 58 + + - 8
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2518
SELECT - MIN( + 37 ), - ( + CAST( NULL AS SIGNED ) ) AS col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-2518
SELECT - MIN ( + 37 ), - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2519
SELECT - 5 DIV - + ( - + 18 ) col1, 34 * - COUNT( * ) + + 15
----
0
-19

skipif mysql # not compatible
query II rowsort label-2519
SELECT - 5 / - + ( - + 18 ) col1, 34 * - COUNT ( * ) + + 15
----
0
-19

query I rowsort
SELECT + 11 + + 58 + + 21
----
90

query I rowsort
SELECT ALL - 6 * - 93 * 89 + + 31
----
49693

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT - 23 + + 7 * COUNT( * ) + 20
----
4

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 23 + + 7 * COUNT ( * ) + 20
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - COALESCE ( - 32, + COUNT( * ), - + 50 )
----
32

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COALESCE ( - 32, + COUNT ( * ), - + 50 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT COUNT( DISTINCT + - 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2524
SELECT COUNT ( DISTINCT + - 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT - COUNT( * ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - COUNT ( * ) + 29
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT + 67 + - - CAST( - 22 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + 67 + - - CAST ( - 22 AS INTEGER )
----
45

query III rowsort
SELECT DISTINCT 28 + + 82 col2, - 37, + ( - NULLIF ( 57, + 55 ) ) AS col2
----
110
-37
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + MAX( DISTINCT ( + + 62 ) ) + - 43 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2528
SELECT + MAX ( DISTINCT ( + + 62 ) ) + - 43 AS col0
----
19

query I rowsort
SELECT - + 19 * + 75 * 89
----
-126825

onlyif mysql # aggregate syntax: 
query II rowsort label-2530
SELECT DISTINCT + 8 + + COUNT( * ) * 20, COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-2530
SELECT DISTINCT + 8 + + COUNT ( * ) * 20, COUNT ( * ) AS col1
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL 67 + - MIN( + 2 ) - COUNT( * ) * + + COALESCE ( + + MAX( - 10 ), - 67 - 85 ) - - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL 67 + - MIN ( + 2 ) - COUNT ( * ) * + + COALESCE ( + + MAX ( - 10 ), - 67 - 85 ) - - COUNT ( * ) AS col1
----
76

query I rowsort
SELECT - COALESCE ( 81, - 71 * + 95 * 99 )
----
-81

query I rowsort
SELECT + 10 + - 12 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT ALL MAX( DISTINCT - 45 ) AS col1, 79 AS col1
----
-45
79

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL MAX ( DISTINCT - 45 ) AS col1, 79 AS col1
----
-45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + - CASE - ( - - 77 ) WHEN + 56 THEN COALESCE ( + + SUM( - 79 ), + 47, ( + - 97 ) + - - 9 ) END * + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT + - CASE - ( - - 77 ) WHEN + 56 THEN COALESCE ( + + SUM ( - 79 ), + 47, ( + - 97 ) + - - 9 ) END * + - 99
----
NULL

query I rowsort
SELECT ALL - 84 * - 8 - 72
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT DISTINCT 12 * + + 79 DIV 39 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT 12 * + + 79 / 39 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT ALL - 23 DIV + + 70 - + NULLIF ( - 87, COUNT( * ) * - 53 + + + 49 + + 99 + MIN( ALL - - CASE + - 41 WHEN 19 + + 24 THEN - 83 ELSE - 60 + - 1 + - - 68 * 29 END ) * - ( - COUNT( * ) ) ) + 82 * + 0
----
87

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 23 / + + 70 - + NULLIF ( - 87, COUNT ( * ) * - 53 + + + 49 + + 99 + MIN ( ALL - - CASE + - 41 WHEN 19 + + 24 THEN - 83 ELSE - 60 + - 1 + - - 68 * 29 END ) * - ( - COUNT ( * ) ) ) + 82 * + 0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + 99 * COUNT( * ) * + 40 AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-2539
SELECT + 99 * COUNT ( * ) * + 40 AS col1
----
3960

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT + 34 DIV - 71 * - - 12 - - 87 + 19 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-2540
SELECT + 34 / - 71 * - - 12 - - 87 + 19 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT 86 + - 55 + + 41 DIV + - 19
----
29

skipif mysql # not compatible
query I rowsort label-2541
SELECT 86 + - 55 + + 41 / + - 19
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT - + 22 * - - 42 - 55 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT - + 22 * - - 42 - 55 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2543
SELECT ALL + ( - ( - CASE COALESCE ( + - 7, - CASE + 18 WHEN - - 74 * 65 + - 80 DIV - COUNT( * ) + COUNT( * ) * - CAST( - 16 AS SIGNED ) * + + ( 33 ) THEN 58 WHEN + - 7 THEN NULL WHEN 18 THEN NULL END + - COUNT( * ) * + 87, 30 ) WHEN 97 THEN NULL ELSE + CAST( - 84 AS SIGNED ) END ) ) DIV COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + ( - ( - CASE COALESCE ( + - 7, - CASE + 18 WHEN - - 74 * 65 + - 80 / - COUNT ( * ) + COUNT ( * ) * - CAST ( - 16 AS INTEGER ) * + + ( 33 ) THEN 58 WHEN + - 7 THEN NULL WHEN 18 THEN NULL END + - COUNT ( * ) * + 87, 30 ) WHEN 97 THEN NULL ELSE + CAST ( - 84 AS INTEGER ) END ) ) / COUNT ( * )
----
-84

query II rowsort
SELECT ALL - 48 AS col0, 39
----
-48
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT DISTINCT + 6 * 18 * + + 26 AS col1, 69 + - COUNT( * )
----
2808
68

skipif mysql # not compatible
query II rowsort label-2545
SELECT DISTINCT + 6 * 18 * + + 26 AS col1, 69 + - COUNT ( * )
----
2808
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT DISTINCT COUNT( * ) DIV ( - 35 ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT COUNT ( * ) / ( - 35 ) / + 84
----
0

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

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

query I rowsort
SELECT 38 * - 92
----
-3496

query I rowsort
SELECT 12 * 60 * + 41
----
29520

query I rowsort
SELECT 47 * + 93
----
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL - COUNT( * ) + + COALESCE ( - 81, 68 * 55 + - 82, + + ( 76 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - COUNT ( * ) + + COALESCE ( - 81, 68 * 55 + - 82, + + ( 76 ) ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 39 * - - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 39 * - - 17 AS col2
----
NULL

query I rowsort
SELECT 37 * + 74 col0
----
2738

query I rowsort
SELECT ALL 5 + + 83 AS col2
----
88

query I rowsort
SELECT DISTINCT - 98 + + - 83 * + 1 - + - 98 AS col0
----
-83

query I rowsort
SELECT ALL + 44 + + 14
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2557
SELECT ALL - 81 + CAST( + - CASE 77 WHEN 5 THEN + CAST( + 42 AS SIGNED ) * + 44 + + 84 * - 39 END AS SIGNED ) + - 6, + 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL - 81 + CAST ( + - CASE 77 WHEN 5 THEN + CAST ( + 42 AS INTEGER ) * + 44 + + 84 * - 39 END AS INTEGER ) + - 6, + 67 AS col1
----
NULL
67

query I rowsort
SELECT 46 + + 71 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + - SUM( - 11 ) - 3 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + - SUM ( - 11 ) - 3 + - COUNT ( * )
----
7

query I rowsort
SELECT ( - 15 ) * + 68 AS col0
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-2561
SELECT - + 21 AS col0, COUNT( * ) - + + 43 AS col2
----
-21
-42

skipif mysql # not compatible
query II rowsort label-2561
SELECT - + 21 AS col0, COUNT ( * ) - + + 43 AS col2
----
-21
-42

query I rowsort
SELECT ALL + - 82 * - + 71 AS col2
----
5822

query I rowsort
SELECT ALL + + 65 - + + 77 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - 61 + - MIN( - 64 ) * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2564
SELECT - 61 + - MIN ( - 64 ) * COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2565
SELECT ALL - 44, - CASE - 55 WHEN + + ( + + CAST( NULL AS SIGNED ) ) * 5 THEN 53 + - + 76 END AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-2565
SELECT ALL - 44, - CASE - 55 WHEN + + ( + + CAST ( NULL AS INTEGER ) ) * 5 THEN 53 + - + 76 END AS col1
----
-44
NULL

query I rowsort
SELECT ALL NULLIF ( + 44, - - 56 ) - - 90 + + + 78 AS col2
----
212

query I rowsort
SELECT DISTINCT - + 53 * + - 17 * + + 23
----
20723

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2568
SELECT ( + COUNT( * ) ) * - 87 * + 65 + ( - 57 ) - + 94 DIV + 5, 6 - + 44 AS col0
----
-5730
-38

skipif mysql # not compatible
query II rowsort label-2568
SELECT ( + COUNT ( * ) ) * - 87 * + 65 + ( - 57 ) - + 94 / + 5, 6 - + 44 AS col0
----
-5730
-38

query I rowsort
SELECT - 41 + - + 68 AS col1
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT + 11 + + CAST( 47 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 11 + + CAST ( 47 AS INTEGER ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - 10 * + + COUNT( * ) + - 87 * - 75 col0
----
6515

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 10 * + + COUNT ( * ) + - 87 * - 75 col0
----
6515

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT 34 * - 1 * - - 9 AS col0, - 88 + 58 + - 42 + + NULLIF ( + 78, ( - COUNT( * ) ) ) * - 12 * 20 AS col0
----
-306
-18792

skipif mysql # not compatible
query II rowsort label-2572
SELECT 34 * - 1 * - - 9 AS col0, - 88 + 58 + - 42 + + NULLIF ( + 78, ( - COUNT ( * ) ) ) * - 12 * 20 AS col0
----
-306
-18792

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + 77 + + - COUNT( * ) - + 59 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2573
SELECT + 77 + + - COUNT ( * ) - + 59 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT + - 80 AS col2, - 11 * + MAX( ALL 75 )
----
-80
-825

skipif mysql # not compatible
query II rowsort label-2574
SELECT + - 80 AS col2, - 11 * + MAX ( ALL 75 )
----
-80
-825

query I rowsort
SELECT - + 61 * + + 53 * + - 33 + + + 98 + + - 13 + ( + - 76 ) AS col0
----
106698

query I rowsort
SELECT ALL 30 * - - 33 col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL MIN( ALL COALESCE ( - + 84, + 15, - 34 ) ) + + 98 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL MIN ( ALL COALESCE ( - + 84, + 15, - 34 ) ) + + 98 AS col2
----
14

query I rowsort
SELECT ALL 36 + - 56 + + 11
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT 28 + + CASE - + 82 WHEN ( 2 ) * - COUNT( * ) + CASE - ( - - 22 ) WHEN 87 THEN NULL ELSE ( + CAST( + 19 AS SIGNED ) ) + + ( + - 78 ) END THEN 74 / - 2 WHEN - + 16 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT 28 + + CASE - + 82 WHEN ( 2 ) * - COUNT ( * ) + CASE - ( - - 22 ) WHEN 87 THEN NULL ELSE ( + CAST ( + 19 AS INTEGER ) ) + + ( + - 78 ) END THEN 74 / - 2 WHEN - + 16 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - - 69, 89 ) * - 46 + - + COALESCE ( - 24, 34 ) * 40 AS col2
----
4134

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL NULLIF ( - 58, - - COUNT( - 68 ) - 27 ) + 63 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL NULLIF ( - 58, - - COUNT ( - 68 ) - 27 ) + 63 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT MAX( + 46 ) * - 42 + + 25 + - CAST( + - 74 AS SIGNED ) AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-2582
SELECT MAX ( + 46 ) * - 42 + + 25 + - CAST ( + - 74 AS INTEGER ) AS col0
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL - 12 + + CAST( - NULLIF ( + CASE + - 63 WHEN - 11 THEN NULL WHEN + + 78 * - - 75 - 76 - - COALESCE ( + 83, + CAST( NULL AS SIGNED ) * - 92 ) * - ( - + 90 ) THEN - COUNT( * ) ELSE + 10 + + 16 END, + COUNT( ALL 85 ) ) AS SIGNED ) + - 76 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - 12 + + CAST ( - NULLIF ( + CASE + - 63 WHEN - 11 THEN NULL WHEN + + 78 * - - 75 - 76 - - COALESCE ( + 83, + CAST ( NULL AS INTEGER ) * - 92 ) * - ( - + 90 ) THEN - COUNT ( * ) ELSE + 10 + + 16 END, + COUNT ( ALL 85 ) ) AS INTEGER ) + - 76 AS col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2584
SELECT ALL CAST( - + 19 AS SIGNED ) DIV - SUM( DISTINCT - - 45 ) * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL CAST ( - + 19 AS INTEGER ) / - SUM ( DISTINCT - - 45 ) * + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT DISTINCT 93 * - + 41 AS col1, + 15
----
-3813
15

query II rowsort
SELECT ALL 51 - - - 49 col0, 2 + + 58
----
2
60

query II rowsort
SELECT ALL 27 - 22 AS col1, 31 AS col2
----
5
31

query I rowsort
SELECT ALL - 95 * - + 49
----
4655

query I rowsort
SELECT 91 + + + 55 - - - 97
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT COALESCE ( + - 69, + - ( 59 ) + + - COUNT( * ) ) * - 40 col0
----
2760

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT COALESCE ( + - 69, + - ( 59 ) + + - COUNT ( * ) ) * - 40 col0
----
2760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2591
SELECT - - CAST( NULL AS SIGNED ) + + 88 AS col2, - CASE 76 WHEN - CASE - 62 WHEN - 68 * COUNT( + 7 ) - 54 THEN - 69 END * + 86 THEN NULL WHEN - - 25 THEN + COALESCE ( MIN( ALL + + 5 ), - 46 * + CAST( + CAST( + 75 AS SIGNED ) AS SIGNED ) + 76 ) WHEN - 10 + 76 THEN 88 ELSE NULL END * 79 + + 98
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2591
SELECT - - CAST ( NULL AS INTEGER ) + + 88 AS col2, - CASE 76 WHEN - CASE - 62 WHEN - 68 * COUNT ( + 7 ) - 54 THEN - 69 END * + 86 THEN NULL WHEN - - 25 THEN + COALESCE ( MIN ( ALL + + 5 ), - 46 * + CAST ( + CAST ( + 75 AS INTEGER ) AS INTEGER ) + 76 ) WHEN - 10 + 76 THEN 88 ELSE NULL END * 79 + + 98
----
NULL
NULL

query I rowsort
SELECT ALL NULLIF ( + 26, - - 3 )
----
26

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT DISTINCT + + CASE + 63 WHEN + 2 * - + COALESCE ( 4, - 72 - + + 86 ) THEN - NULLIF ( 93, + 56 ) + CASE - 4 WHEN + 33 + + - 39 + - 77 * - AVG ( - CAST( NULL AS SIGNED ) ) / 23 / + 93 THEN + COUNT( DISTINCT + 85 ) END + - 84 * - SUM( + 74 ) ELSE + 85 END * 21
----
1785

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + + CASE + 63 WHEN + 2 * - + COALESCE ( 4, - 72 - + + 86 ) THEN - NULLIF ( 93, + 56 ) + CASE - 4 WHEN + 33 + + - 39 + - 77 * - AVG ( - CAST ( NULL AS INTEGER ) ) / 23 / + 93 THEN + COUNT ( DISTINCT + 85 ) END + - 84 * - SUM ( + 74 ) ELSE + 85 END * 21
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2596
SELECT - - 63 * - - 3 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
189
NULL

skipif mysql # not compatible
query II rowsort label-2596
SELECT - - 63 * - - 3 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
189
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT DISTINCT + 13 * - COUNT( * ) col1, - 62 * + 75
----
-13
-4650

skipif mysql # not compatible
query II rowsort label-2597
SELECT DISTINCT + 13 * - COUNT ( * ) col1, - 62 * + 75
----
-13
-4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL + - COALESCE ( NULLIF ( 42, 93 ), - CAST( + 94 AS SIGNED ) ) + - ( - SUM( ALL + 87 ) ) * + CAST( + ( 35 ) AS SIGNED ) + 37 AS col1
----
3040

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - COALESCE ( NULLIF ( 42, 93 ), - CAST ( + 94 AS INTEGER ) ) + - ( - SUM ( ALL + 87 ) ) * + CAST ( + ( 35 ) AS INTEGER ) + 37 AS col1
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2599
SELECT ALL - - MIN( ALL + + 22 ) * COUNT( * ) + - 0, - CAST( - 10 AS SIGNED ) AS col0
----
22
10

skipif mysql # not compatible
query II rowsort label-2599
SELECT ALL - - MIN ( ALL + + 22 ) * COUNT ( * ) + - 0, - CAST ( - 10 AS INTEGER ) AS col0
----
22
10

query I rowsort
SELECT - 54 * 48
----
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT 61 DIV + 30 * - 1 + COUNT( ALL + - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-2601
SELECT 61 / + 30 * - 1 + COUNT ( ALL + - 52 )
----
-1

query I rowsort
SELECT + 18 * 71 AS col2
----
1278

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT ALL + 76, + 48 * + NULLIF ( - COUNT( * ), + 31 / + - ( - 39 ) ) AS col1
----
76
-48

skipif mysql # not compatible
query II rowsort label-2603
SELECT ALL + 76, + 48 * + NULLIF ( - COUNT ( * ), + 31 / + - ( - 39 ) ) AS col1
----
76
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 36 + COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 36 + COUNT ( * ) col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT DISTINCT + 89 AS col1, - COUNT( * ) AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + 89 AS col1, - COUNT ( * ) AS col2
----
89
-1

query I rowsort
SELECT NULLIF ( + NULLIF ( + 69, 0 ), 22 )
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT CASE 19 WHEN SUM( - 45 ) / 58 * - 20 THEN - MAX( 79 ) WHEN COUNT( * ) / 44 + - 15 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT CASE 19 WHEN SUM ( - 45 ) / 58 * - 20 THEN - MAX ( 79 ) WHEN COUNT ( * ) / 44 + - 15 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 * - 69 AS col0
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2610
SELECT DISTINCT - CASE 40 WHEN - 3 THEN NULL WHEN + + CAST( NULL AS SIGNED ) * 16 / - 5 / + MIN( CAST( 17 AS DECIMAL ) ) * + + COUNT( * ) THEN + - 1 END * + - 81 - - - CAST( NULL AS SIGNED ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - CASE 40 WHEN - 3 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) * 16 / - 5 / + MIN ( CAST ( 17 AS REAL ) ) * + + COUNT ( * ) THEN + - 1 END * + - 81 - - - CAST ( NULL AS INTEGER ) * - 19
----
NULL

query I rowsort
SELECT + NULLIF ( + - 97, + 78 ) * + - 76
----
7372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT + CASE - CASE - + COUNT( * ) WHEN + 81 * - COALESCE ( - - SUM( DISTINCT + 72 ), 31 ) THEN - 27 WHEN + - CASE 84 WHEN + - 99 THEN - CAST( - 24 AS SIGNED ) * + 8 * NULLIF ( + + 75, + COUNT( * ) + + SUM( - + 19 ) ) - 67 END THEN NULL ELSE NULL END WHEN + NULLIF ( + AVG ( 86 ), - ( 81 ) * + 15 + - 59 ) * 20 THEN + CAST( NULL AS SIGNED ) WHEN - 4 THEN ( CAST( 93 AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT + CASE - CASE - + COUNT ( * ) WHEN + 81 * - COALESCE ( - - SUM ( DISTINCT + 72 ), 31 ) THEN - 27 WHEN + - CASE 84 WHEN + - 99 THEN - CAST ( - 24 AS INTEGER ) * + 8 * NULLIF ( + + 75, + COUNT ( * ) + + SUM ( - + 19 ) ) - 67 END THEN NULL ELSE NULL END WHEN + NULLIF ( + AVG ( 86 ), - ( 81 ) * + 15 + - 59 ) * 20 THEN + CAST ( NULL AS INTEGER ) WHEN - 4 THEN ( CAST ( 93 AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT MIN( ALL - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-2613
SELECT MIN ( ALL - 71 )
----
-71

query I rowsort
SELECT + 34 - + + 48
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + ( CASE - 16 WHEN ( - + 31 ) + + 85 THEN - - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT + ( CASE - 16 WHEN ( - + 31 ) + + 85 THEN - - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL + 51 AS col2, + 65 AS col2
----
51
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT + - 8 * 46 * + CASE 17 WHEN COALESCE ( + 92, 73 ) + - 83 THEN - 42 END + - + MAX( DISTINCT - 7 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT + - 8 * 46 * + CASE 17 WHEN COALESCE ( + 92, 73 ) + - 83 THEN - 42 END + - + MAX ( DISTINCT - 7 ) col0
----
NULL

query I rowsort
SELECT ALL + 97 * + + 62 * + 97
----
583358

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT 8 DIV + - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT 8 / + - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT - + ( + + COALESCE ( + COUNT( * ), + 61 - + 2 ) ) * - CASE - 90 WHEN + 41 THEN 96 ELSE NULL END * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - + ( + + COALESCE ( + COUNT ( * ), + 61 - + 2 ) ) * - CASE - 90 WHEN + 41 THEN 96 ELSE NULL END * - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + - 58 DIV 18 + ( - COUNT( * ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2622
SELECT + - 58 / 18 + ( - COUNT ( * ) ) AS col1
----
-4

query I rowsort
SELECT + + 47 + - - 36
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL 35 * - 52 * 39 + 60 * - ( COUNT( * ) ) AS col1
----
-71040

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL 35 * - 52 * 39 + 60 * - ( COUNT ( * ) ) AS col1
----
-71040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT + NULLIF ( - 66, - SUM( DISTINCT + 70 ) ) DIV - 74 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT + NULLIF ( - 66, - SUM ( DISTINCT + 70 ) ) / - 74 + COUNT ( * )
----
1

query I rowsort
SELECT + 10 + 29 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT + 23 DIV - - 43 * 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT + 23 / - - 43 * 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL + COUNT( * ) + 13 + 8 - + 50
----
-28

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + COUNT ( * ) + 13 + 8 - + 50
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT + + COUNT( * ) + + 99 + 23 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-2629
SELECT + + COUNT ( * ) + + 99 + 23 AS col0
----
123

query I rowsort
SELECT ALL - 20 + 44
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL + 51 + - 18 * + + 92 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + 51 + - 18 * + + 92 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT COUNT( * ) + - 80 + + 82 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT COUNT ( * ) + - 80 + + 82 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT + - 71 + - CASE + 70 WHEN COUNT( * ) - + + CAST( - 28 AS SIGNED ) * - 54 THEN NULL WHEN 86 / - + 9 + 88 THEN NULL ELSE + 90 END - - - 40 AS col1
----
-201

skipif mysql # not compatible
query I rowsort label-2633
SELECT + - 71 + - CASE + 70 WHEN COUNT ( * ) - + + CAST ( - 28 AS INTEGER ) * - 54 THEN NULL WHEN 86 / - + 9 + 88 THEN NULL ELSE + 90 END - - - 40 AS col1
----
-201

query I rowsort
SELECT - 95 + + + 10
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT COALESCE ( - 67, - COUNT( * ) * - 65, - 50 )
----
-67

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT COALESCE ( - 67, - COUNT ( * ) * - 65, - 50 )
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2636
SELECT + 89 / - CAST( NULL AS DECIMAL ) * + 74 * + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT + 89 / - CAST ( NULL AS REAL ) * + 74 * + - 30 AS col0
----
NULL

query I rowsort
SELECT - 95 + - + 29
----
-124

query I rowsort
SELECT ALL - 84 * - 26
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT - CAST( NULL AS SIGNED ) / - + 62 + - 93 - + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - CAST ( NULL AS INTEGER ) / - + 62 + - 93 - + 35 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - 59 + 0 + - 11 + - 64 * COUNT( * ) * 38 * - COUNT( * ) * + ( 93 ) + - 49 + - 36 - + + 90 AS col1
----
225931

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 59 + 0 + - 11 + - 64 * COUNT ( * ) * 38 * - COUNT ( * ) * + ( 93 ) + - 49 + - 36 - + + 90 AS col1
----
225931

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

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

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

skipif mysql # not compatible
query II rowsort label-2643
SELECT CAST ( NULL AS INTEGER ) col2, + 73 AS col2
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2644
SELECT ALL + NULLIF ( - 35, 47 ) * - 49 AS col1, - COUNT( * ) * + 65 * - 47 + - 91 * + CAST( - - 5 AS SIGNED )
----
1715
2600

skipif mysql # not compatible
query II rowsort label-2644
SELECT ALL + NULLIF ( - 35, 47 ) * - 49 AS col1, - COUNT ( * ) * + 65 * - 47 + - 91 * + CAST ( - - 5 AS INTEGER )
----
1715
2600

query I rowsort
SELECT DISTINCT - 67 * - - 29 * + 52
----
-101036

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT 22 DIV 52 + - - 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2646
SELECT 22 / 52 + - - 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT ALL + ( + - 62 ) AS col2, 96 + COUNT( * ) * ( + 50 )
----
-62
146

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL + ( + - 62 ) AS col2, 96 + COUNT ( * ) * ( + 50 )
----
-62
146

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT - 93 DIV - - 27 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 93 / - - 27 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + MIN( - + 11 ) * - - 97 * - 56 + - - 35 + - 85 AS col2
----
59702

skipif mysql # not compatible
query I rowsort label-2649
SELECT + MIN ( - + 11 ) * - - 97 * - 56 + - - 35 + - 85 AS col2
----
59702

query I rowsort
SELECT - ( - 6 ) * + 56 * 44 * - 42 AS col0
----
-620928

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2651
SELECT ALL + ( + 38 ), COUNT( * ) DIV + + 9 * - + 13 AS col2
----
38
0

skipif mysql # not compatible
query II rowsort label-2651
SELECT ALL + ( + 38 ), COUNT ( * ) / + + 9 * - + 13 AS col2
----
38
0

query II rowsort
SELECT ALL + 46 col2, + 92
----
46
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2653
SELECT ALL + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * 39 + 1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * 39 + 1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - 67 * + COUNT( DISTINCT + + 33 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - 67 * + COUNT ( DISTINCT + + 33 ) AS col1
----
-67

query I rowsort
SELECT - ( + - 97 ) + - - 31
----
128

query II rowsort
SELECT + 21 col2, 62 AS col2
----
21
62

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

skipif mysql # not compatible
query II rowsort label-2657
SELECT ALL - - COUNT ( * ) col1, - 46 / + 70 col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL NULLIF ( 40, - 37 ) * + MIN( + 61 )
----
2440

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL NULLIF ( 40, - 37 ) * + MIN ( + 61 )
----
2440

query I rowsort
SELECT - 94 * + 6 - - 98 * - 25
----
-3014

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + ( - 83 ) * - 67 * + 85 + 79 + + ( - COUNT( - - 32 ) )
----
472763

skipif mysql # not compatible
query I rowsort label-2660
SELECT + ( - 83 ) * - 67 * + 85 + 79 + + ( - COUNT ( - - 32 ) )
----
472763

query I rowsort
SELECT DISTINCT - 74 + + 55 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - COUNT( * ) + + COUNT( + 74 ) + + 13 + ( 53 ) * - + 53 * + 99
----
-278078

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - COUNT ( * ) + + COUNT ( + 74 ) + + 13 + ( 53 ) * - + 53 * + 99
----
-278078

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - + COUNT( * ) * - 31 + + 40 + 31 - - 84 * 98 AS col0
----
8334

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - + COUNT ( * ) * - 31 + + 40 + 31 - - 84 * 98 AS col0
----
8334

query I rowsort
SELECT + 30 * - 89 AS col1
----
-2670

query II rowsort
SELECT ALL 45 AS col0, 65 * + 75 AS col1
----
45
4875

query I rowsort
SELECT DISTINCT + 91 * 36
----
3276

query II rowsort
SELECT 90, + 67 + 34 col2
----
90
101

query I rowsort
SELECT ALL 27 + 58 AS col1
----
85

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

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 96 + + + COUNT ( * ) / - COUNT ( * )
----
95

query I rowsort
SELECT 78 * + 54
----
4212

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT ALL 36 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 36 / + 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - NULLIF ( + - MIN( DISTINCT 0 ), COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT - NULLIF ( + - MIN ( DISTINCT 0 ), COUNT ( * ) ) AS col2
----
0

query II rowsort
SELECT DISTINCT 35 AS col1, + NULLIF ( + 62, + 33 ) + 5
----
35
67

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

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

query I rowsort
SELECT + 2 * - 67 * 54 AS col1
----
-7236

query I rowsort
SELECT ALL 77 - - 58 * + - 23
----
-1257

query II rowsort
SELECT 31 * + 97 AS col2, 18
----
3007
18

query II rowsort
SELECT DISTINCT - 80 - 95 AS col1, - 37
----
-175
-37

query I rowsort
SELECT 56 * - - ( 54 )
----
3024

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

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

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

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

query I rowsort
SELECT 46 * 68
----
3128

query I rowsort
SELECT 90 * + 63 + - 90 col2
----
5580

query I rowsort
SELECT ALL - NULLIF ( + NULLIF ( - + 28, - 81 ), - + 15 ) AS col2
----
28

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

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

query I rowsort
SELECT 72 * + 17
----
1224

query I rowsort
SELECT + 76 * NULLIF ( 82, + + 53 ) * - - 75 + + - 88 AS col0
----
467312

query I rowsort
SELECT ALL - 36 * + - 16 AS col1
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT + 78 DIV 12 DIV - 88 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 78 / 12 / - 88 * + - COUNT ( * )
----
0

query I rowsort
SELECT ALL + + 31 + 19 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL - 45 + - COALESCE ( 86, - - 47 * SUM( DISTINCT - + 61 ) * - 70 )
----
-131

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - 45 + - COALESCE ( 86, - - 47 * SUM ( DISTINCT - + 61 ) * - 70 )
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT + 86 + 41 * 80 + - COALESCE ( - 81, - SUM( DISTINCT + 23 ) ) AS col0
----
3447

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + 86 + 41 * 80 + - COALESCE ( - 81, - SUM ( DISTINCT + 23 ) ) AS col0
----
3447

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT - + 1 + + 1 + + 38 * - 2 DIV + + COUNT( * ) - COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - + 1 + + 1 + + 38 * - 2 / + + COUNT ( * ) - COUNT ( * ) col0
----
-77

query I rowsort
SELECT ALL - 95 * - + 59
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - 84 + + COUNT( * ) * + - 1 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - 84 + + COUNT ( * ) * + - 1 AS col2
----
-85

query I rowsort
SELECT DISTINCT + 26 + - + 95 * + 27 AS col1
----
-2539

query I rowsort
SELECT ALL 81 + 79 AS col2
----
160

query I rowsort
SELECT - 94 + 59 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT SUM( + + 83 ) * + + COUNT( * ) * + + 42 + + - CAST( 47 AS SIGNED ) AS col0
----
3439

skipif mysql # not compatible
query I rowsort label-2699
SELECT SUM ( + + 83 ) * + + COUNT ( * ) * + + 42 + + - CAST ( 47 AS INTEGER ) AS col0
----
3439

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL - COUNT( * ) - - 93 * - ( + - 53 ) AS col2
----
4928

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - COUNT ( * ) - - 93 * - ( + - 53 ) AS col2
----
4928

query I rowsort
SELECT ( 0 ) + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT MAX( - 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT MAX ( - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT 62, + 11 * + COALESCE ( + + 44, + - 9 ) * + COUNT( * ) AS col0
----
62
484

skipif mysql # not compatible
query II rowsort label-2703
SELECT 62, + 11 * + COALESCE ( + + 44, + - 9 ) * + COUNT ( * ) AS col0
----
62
484

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT MIN( ALL - 20 ) * - 37
----
740

skipif mysql # not compatible
query I rowsort label-2704
SELECT MIN ( ALL - 20 ) * - 37
----
740

query I rowsort
SELECT DISTINCT 65 * + 5 AS col2
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT 66 * - SUM( DISTINCT - + 42 )
----
2772

skipif mysql # not compatible
query I rowsort label-2706
SELECT 66 * - SUM ( DISTINCT - + 42 )
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT 94 DIV - 43
----
-2

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT 94 / - 43
----
-2

query II rowsort
SELECT 51 AS col0, 73
----
51
73

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

skipif mysql # not compatible
query I rowsort label-2709
SELECT COUNT ( * ) / 14 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 29 * - COUNT( * ) * + - ( - 86 )
----
-2494

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 29 * - COUNT ( * ) * + - ( - 86 )
----
-2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL 87 * + - CASE - 44 WHEN 15 THEN NULL ELSE - 57 * 13 END * - CAST( + 22 AS SIGNED ) AS col1
----
-1418274

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL 87 * + - CASE - 44 WHEN 15 THEN NULL ELSE - 57 * 13 END * - CAST ( + 22 AS INTEGER ) AS col1
----
-1418274

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT 91 * + + MAX( DISTINCT 49 ) AS col0, COUNT( * ) AS col2
----
4459
1

skipif mysql # not compatible
query II rowsort label-2713
SELECT 91 * + + MAX ( DISTINCT 49 ) AS col0, COUNT ( * ) AS col2
----
4459
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT 75 + ( - MIN( ALL - CASE - 35 WHEN - + 38 THEN - 75 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT 75 + ( - MIN ( ALL - CASE - 35 WHEN - + 38 THEN - 75 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT SUM( ALL + 59 ) * - 57 col0
----
-3363

skipif mysql # not compatible
query I rowsort label-2717
SELECT SUM ( ALL + 59 ) * - 57 col0
----
-3363

query I rowsort
SELECT DISTINCT 86 * + + ( + 33 ) * - 19 * ( + 12 ) - + 82 * - 66 - - 2
----
-641650

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL + SUM( 28 ) * - ( - COUNT( * ) ) + + - SUM( DISTINCT - 99 ) + + 7
----
134

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + SUM ( 28 ) * - ( - COUNT ( * ) ) + + - SUM ( DISTINCT - 99 ) + + 7
----
134

query I rowsort
SELECT - 33 * + - 30 AS col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - + 71 + NULLIF ( + - COUNT( + 2 ), ( + - 38 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2721
SELECT - + 71 + NULLIF ( + - COUNT ( + 2 ), ( + - 38 ) ) AS col1
----
-72

query I rowsort
SELECT DISTINCT 54 * 18 * - - 15 + - 55 AS col0
----
14525

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT + SUM( ALL 20 ) + COUNT( * ) + + ( - + 52 )
----
-31

skipif mysql # not compatible
query I rowsort label-2723
SELECT + SUM ( ALL 20 ) + COUNT ( * ) + + ( - + 52 )
----
-31

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

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

query I rowsort
SELECT ALL + + 28 * - 94 col1
----
-2632

query I rowsort
SELECT - 12 + + 79
----
67

query I rowsort
SELECT DISTINCT + 97 * + 57 * NULLIF ( + - 90, - + 63 ) AS col2
----
-497610

query I rowsort
SELECT - + 27 + + + 99
----
72

query I rowsort
SELECT - + 69 * - 98 * - 97 - 5 AS col0
----
-655919

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL + + ( - COUNT( ALL - 16 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL + + ( - COUNT ( ALL - 16 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2731
SELECT - COALESCE ( - 20, - 80 * - MAX( + - 3 ) + 24 + + + 7 DIV - + SUM( ALL - - 51 ) + + NULLIF ( - - CAST( - - 11 AS SIGNED ), ( 31 ) ) ) * 29 * - - 34 + + - 45 AS col2
----
19675

skipif mysql # not compatible
query I rowsort label-2731
SELECT - COALESCE ( - 20, - 80 * - MAX ( + - 3 ) + 24 + + + 7 / - + SUM ( ALL - - 51 ) + + NULLIF ( - - CAST ( - - 11 AS INTEGER ), ( 31 ) ) ) * 29 * - - 34 + + - 45 AS col2
----
19675

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

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

query I rowsort
SELECT - 75 + + 65
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2734
SELECT - 15 / - - CASE + COUNT( - - 27 ) WHEN + - 92 THEN + + COUNT( * ) WHEN + 17 THEN CAST( + COUNT( 95 ) AS SIGNED ) / 17 + - + 28 + + + 53 - + 68 * + 73 * - MAX( + 74 ) WHEN - 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 15 / - - CASE + COUNT ( - - 27 ) WHEN + - 92 THEN + + COUNT ( * ) WHEN + 17 THEN CAST ( + COUNT ( 95 ) AS INTEGER ) / 17 + - + 28 + + + 53 - + 68 * + 73 * - MAX ( + 74 ) WHEN - 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT ALL + 81 DIV COALESCE ( + 27, - 72, + 62 ) * + 86 - - 69 + 9 DIV - + 56 AS col2
----
327

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + 81 / COALESCE ( + 27, - 72, + 62 ) * + 86 - - 69 + 9 / - + 56 AS col2
----
327

query I rowsort
SELECT - - 1 * ( 8 ) * CASE + 71 WHEN - 52 THEN 25 + - + 53 - + - 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT CASE + - 82 WHEN - 93 - - - 67 + - 97 * + - 84 THEN NULL WHEN + + CASE + 56 WHEN + - 77 THEN NULL WHEN - - 44 THEN NULL WHEN - + ( + - 99 ) * ( 30 ) + + AVG ( ALL + - 69 ) + CAST( NULL AS SIGNED ) + - COUNT( * ) * - + COUNT( * ) THEN + - COUNT( * ) + + MAX( - 87 ) ELSE NULL END - - 14 + - + 90 THEN NULL ELSE 45 END
----
45

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT CASE + - 82 WHEN - 93 - - - 67 + - 97 * + - 84 THEN NULL WHEN + + CASE + 56 WHEN + - 77 THEN NULL WHEN - - 44 THEN NULL WHEN - + ( + - 99 ) * ( 30 ) + + AVG ( ALL + - 69 ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + COUNT ( * ) THEN + - COUNT ( * ) + + MAX ( - 87 ) ELSE NULL END - - 14 + - + 90 THEN NULL ELSE 45 END
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT ALL COALESCE ( 10, + + 15 DIV + 73, + - COUNT( * ) - + 51 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL COALESCE ( 10, + + 15 / + 73, + - COUNT ( * ) - + 51 ) AS col0
----
10

query I rowsort
SELECT - 41 * 91 AS col1
----
-3731

query I rowsort
SELECT - 70 - - + 69 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT - 87 + 52 + - CASE - SUM( - - 76 ) WHEN - 82 THEN + + ( 61 ) * - 61 + - 23 + + 86 ELSE NULL END * + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT - 87 + 52 + - CASE - SUM ( - - 76 ) WHEN - 82 THEN + + ( 61 ) * - 61 + - 23 + + 86 ELSE NULL END * + + 23
----
NULL

query II rowsort
SELECT DISTINCT - 90 + + 13 AS col2, 27 * 70
----
-77
1890

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

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

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

query I rowsort
SELECT ALL - 64 + + 62 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2746
SELECT CAST( - - 75 AS SIGNED ) AS col0, + 21 AS col2
----
75
21

skipif mysql # not compatible
query II rowsort label-2746
SELECT CAST ( - - 75 AS INTEGER ) AS col0, + 21 AS col2
----
75
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2747
SELECT - ( ( - - COUNT( * ) ) ) DIV COUNT( * ), 65 * - - 76 AS col2
----
-1
4940

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

query I rowsort
SELECT + 33 + - 77 AS col1
----
-44

query I rowsort
SELECT 64 * + 5 + + 66 AS col1
----
386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2750
SELECT ALL - 62 DIV COUNT( * ) + + - COUNT( DISTINCT - - 46 ) DIV MIN( + 93 ) - - CAST( + 8 AS SIGNED ) + - + 81
----
-135

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - 62 / COUNT ( * ) + + - COUNT ( DISTINCT - - 46 ) / MIN ( + 93 ) - - CAST ( + 8 AS INTEGER ) + - + 81
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL + 79 DIV ( + 12 ) DIV - 36 * - COUNT( * ) * - - COUNT( * ) * COUNT( * ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 79 / ( + 12 ) / - 36 * - COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) + - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT + CAST( + + 84 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT + CAST ( + + 84 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 48 col2
----
NULL

query I rowsort
SELECT ALL 13 * 10 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT ALL 60 DIV - - 14 + + - 99
----
-95

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL 60 / - - 14 + + - 99
----
-95

query I rowsort
SELECT ALL + 22 * - + 60 - + 74 + + 43 - - 47
----
-1304

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

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-2757
SELECT + 19 * + 52 + - ( + + 33 ), + 9 + + + 5 DIV - - 93 - - 66 col2
----
955
75

skipif mysql # not compatible
query II rowsort label-2757
SELECT + 19 * + 52 + - ( + + 33 ), + 9 + + + 5 / - - 93 - - 66 col2
----
955
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - CASE - 33 WHEN + 12 / - 67 THEN - 38 + + CAST( - 97 AS SIGNED ) * + NULLIF ( + 85, + - 61 - + + 0 + + 91 ) ELSE NULL END * + - ( + + 99 ) / - COUNT( * ) * - CAST( NULL AS SIGNED ) - + 19 * + 3 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - CASE - 33 WHEN + 12 / - 67 THEN - 38 + + CAST ( - 97 AS INTEGER ) * + NULLIF ( + 85, + - 61 - + + 0 + + 91 ) ELSE NULL END * + - ( + + 99 ) / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 19 * + 3 * - 41
----
NULL

query I rowsort
SELECT NULLIF ( - 3, 96 + 0 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT DISTINCT + + SUM( + 42 ), 16 AS col2
----
42
16

skipif mysql # not compatible
query II rowsort label-2761
SELECT DISTINCT + + SUM ( + 42 ), 16 AS col2
----
42
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2762
SELECT ALL - CAST( NULL AS DECIMAL ) / + - 98 AS col2, + COALESCE ( + + COALESCE ( - 93, 56, - 73 ), 92 )
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-2762
SELECT ALL - CAST ( NULL AS REAL ) / + - 98 AS col2, + COALESCE ( + + COALESCE ( - 93, 56, - 73 ), 92 )
----
NULL
-93

query I rowsort
SELECT DISTINCT + + 59 * - 78 AS col1
----
-4602

query I rowsort
SELECT - - 97 * 18 - 42 * ( - 91 ) AS col1
----
5568

query I rowsort
SELECT + 24 + - 84 - + 24 * - - 57
----
-1428

query I rowsort
SELECT + 18 * + 70
----
1260

query I rowsort
SELECT + 76 + - ( - 47 )
----
123

query II rowsort
SELECT - 82 * 29 * - + 13 AS col1, - ( - 92 )
----
30914
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT - 95 DIV - + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - 95 / - + 68 AS col2
----
1

query I rowsort
SELECT DISTINCT 17 + + 69
----
86

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

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL CAST ( + 55 AS INTEGER ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT - 46 + + CASE + 68 WHEN - 9 * 84 * + 63 + 67 THEN NULL WHEN + CAST( + - 7 AS SIGNED ) THEN - + 15 - + COUNT( * ) - COUNT( - + 32 ) ELSE - + 71 END AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 46 + + CASE + 68 WHEN - 9 * 84 * + 63 + 67 THEN NULL WHEN + CAST ( + - 7 AS INTEGER ) THEN - + 15 - + COUNT ( * ) - COUNT ( - + 32 ) ELSE - + 71 END AS col0
----
-117

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

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

query II rowsort
SELECT 24, 84 col2
----
24
84

query I rowsort
SELECT ALL + 4 + - 26 + + + 76 * 27
----
2030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2776
SELECT DISTINCT 29 AS col1, CAST( + 88 AS SIGNED ) AS col1
----
29
88

skipif mysql # not compatible
query II rowsort label-2776
SELECT DISTINCT 29 AS col1, CAST ( + 88 AS INTEGER ) AS col1
----
29
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT 20 + - + CAST( NULL AS SIGNED ) * - + 83 * - - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT 20 + - + CAST ( NULL AS INTEGER ) * - + 83 * - - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL - COUNT( * ) + COUNT( * ) + + 61 col2
----
61

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + 61 col2
----
61

query I rowsort
SELECT DISTINCT + 14 * + 76
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2781
SELECT ALL - + 97 AS col1, + CAST( NULL AS SIGNED ) + - + 16 AS col1
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-2781
SELECT ALL - + 97 AS col1, + CAST ( NULL AS INTEGER ) + - + 16 AS col1
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT 6 - - - 63 + - 42 + + 56 * + COUNT( * ) + + - COUNT( * ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT 6 - - - 63 + - 42 + + 56 * + COUNT ( * ) + + - COUNT ( * ) col2
----
-44

query I rowsort
SELECT ALL 20 - - - 27 + - 53 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT 22 * - + 27 * 69 * COUNT( * ) * + + 12 + - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) * - 92 THEN NULL WHEN + 65 * - CAST( NULL AS SIGNED ) THEN CAST( CAST( - CASE - 48 WHEN 40 THEN - - CASE + 78 WHEN + 23 + - + CASE - - MAX( + 36 ) WHEN - 88 THEN - - 45 + 5 WHEN + COUNT( * ) THEN + 13 * 41 ELSE 34 END + + NULLIF ( + 21, + 47 * + 68 ) THEN + 35 WHEN - 16 * + CAST( NULL AS SIGNED ) THEN - 97 + + 6 END END AS SIGNED ) AS SIGNED ) + 88 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT 22 * - + 27 * 69 * COUNT ( * ) * + + 12 + - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - 92 THEN NULL WHEN + 65 * - CAST ( NULL AS INTEGER ) THEN CAST ( CAST ( - CASE - 48 WHEN 40 THEN - - CASE + 78 WHEN + 23 + - + CASE - - MAX ( + 36 ) WHEN - 88 THEN - - 45 + 5 WHEN + COUNT ( * ) THEN + 13 * 41 ELSE 34 END + + NULLIF ( + 21, + 47 * + 68 ) THEN + 35 WHEN - 16 * + CAST ( NULL AS INTEGER ) THEN - 97 + + 6 END END AS INTEGER ) AS INTEGER ) + 88 END col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - - 96 * + COUNT( * ) + - 86 + - 84 - + 28 * - 34 + - 5 AS col0
----
873

skipif mysql # not compatible
query I rowsort label-2786
SELECT - - 96 * + COUNT ( * ) + - 86 + - 84 - + 28 * - 34 + - 5 AS col0
----
873

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT - 21 DIV + 98 * - 46 DIV + + 29
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 21 / + 98 * - 46 / + + 29
----
0

query I rowsort
SELECT ALL 91 * - 61 col0
----
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2789
SELECT - COUNT( * ) * 43 + 91 * MIN( DISTINCT - - 38 ) * 42 * + 7 * ( - 95 ) / - 65 + + 82 + 92 * + 73 * + - 63 * - CAST( + 79 AS DECIMAL ) * - ( 35 ) * MIN( 75 ) * + ( + CAST( NULL AS SIGNED ) ) + - + 48 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT - COUNT ( * ) * 43 + 91 * MIN ( DISTINCT - - 38 ) * 42 * + 7 * ( - 95 ) / - 65 + + 82 + 92 * + 73 * + - 63 * - CAST ( + 79 AS REAL ) * - ( 35 ) * MIN ( 75 ) * + ( + CAST ( NULL AS INTEGER ) ) + - + 48 + - 91
----
NULL

query I rowsort
SELECT + 70 + + - 2
----
68

query I rowsort
SELECT DISTINCT - 14 * + 78 * + 15 + 93
----
-16287

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL - 56 * - + COALESCE ( COUNT( DISTINCT + 9 ), - 86 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - 56 * - + COALESCE ( COUNT ( DISTINCT + 9 ), - 86 ) AS col2
----
56

query I rowsort
SELECT - + 67 * + 8 + 63 + - 41
----
-514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL - ( - 1 ) * + CAST( 27 AS SIGNED ) + + COUNT( * ) * - 65
----
-38

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - ( - 1 ) * + CAST ( 27 AS INTEGER ) + + COUNT ( * ) * - 65
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT - CASE + - CASE + - 1 WHEN CAST( NULL AS SIGNED ) * - ( + COALESCE ( - 66, + ( + 19 ), + 8 ) ) THEN + 21 * - ( - 99 ) - - 37 WHEN - - 48 + + ( 32 ) * + COUNT( * ) THEN + + 27 WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END WHEN MIN( ALL - - 30 ) * 57 THEN NULL WHEN + 85 * 2 / - 99 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - CASE + - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) * - ( + COALESCE ( - 66, + ( + 19 ), + 8 ) ) THEN + 21 * - ( - 99 ) - - 37 WHEN - - 48 + + ( 32 ) * + COUNT ( * ) THEN + + 27 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END WHEN MIN ( ALL - - 30 ) * 57 THEN NULL WHEN + 85 * 2 / - 99 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2796
SELECT ALL - 60 AS col2, - CAST( 50 AS SIGNED ) * - ( 57 ) * - ( + 28 ) + - + ( + 62 ) - - - 10 DIV 68 AS col0
----
-60
-79862

skipif mysql # not compatible
query II rowsort label-2796
SELECT ALL - 60 AS col2, - CAST ( 50 AS INTEGER ) * - ( 57 ) * - ( + 28 ) + - + ( + 62 ) - - - 10 / 68 AS col0
----
-60
-79862

query II rowsort
SELECT DISTINCT - + 98 AS col0, 10
----
-98
10

query I rowsort
SELECT 50 * - 2 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT 72 col1, 44 * - 1 * NULLIF ( - 56, COALESCE ( + 78, + + 49 - + 3 / + COUNT( ALL - + 12 ) ) - + 65 + - 24 + ( - 49 ) * CASE - 86 WHEN + 87 * - 18 + - + 41 THEN NULL ELSE + MIN( + + 72 ) + - 80 END / - 3 ) + + 75
----
72
2539

skipif mysql # not compatible
query II rowsort label-2799
SELECT 72 col1, 44 * - 1 * NULLIF ( - 56, COALESCE ( + 78, + + 49 - + 3 / + COUNT ( ALL - + 12 ) ) - + 65 + - 24 + ( - 49 ) * CASE - 86 WHEN + 87 * - 18 + - + 41 THEN NULL ELSE + MIN ( + + 72 ) + - 80 END / - 3 ) + + 75
----
72
2539

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT - 57 AS col2, + 29 + 2 + 64 + 70 * - - ( 36 ) * - 5 - 82 + 25 * + 40 * 42 * 40 * - COUNT( * ) AS col2
----
-57
-1692587

skipif mysql # not compatible
query II rowsort label-2800
SELECT - 57 AS col2, + 29 + 2 + 64 + 70 * - - ( 36 ) * - 5 - 82 + 25 * + 40 * 42 * 40 * - COUNT ( * ) AS col2
----
-57
-1692587

query I rowsort
SELECT 66 * + + 56 AS col2
----
3696

query II rowsort
SELECT ALL + 45 + + - 30 AS col2, 22 AS col0
----
15
22

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

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT 11 / 64
----
0

query I rowsort
SELECT DISTINCT 70 + + - COALESCE ( + 97, + + 32 )
----
-27

query I rowsort
SELECT ALL - 72 + + + 64
----
-8

query I rowsort
SELECT ALL 5 + + 80 col2
----
85

query II rowsort
SELECT - 75 AS col0, + 87
----
-75
87

query II rowsort
SELECT 10 AS col2, - 48
----
10
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT 75 DIV - - 6 AS col2, 55 AS col0
----
12
55

skipif mysql # not compatible
query II rowsort label-2809
SELECT 75 / - - 6 AS col2, 55 AS col0
----
12
55

query II rowsort
SELECT 20 * - - 77 AS col2, + CASE 40 WHEN - 63 THEN NULL WHEN + + 69 THEN - 17 ELSE NULL END * + 6 + + 70
----
1540
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL - COUNT( * ) - COALESCE ( + ( - + 30 ), + COUNT( * ) + - 17 + - 51 * + 25 )
----
29

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - COUNT ( * ) - COALESCE ( + ( - + 30 ), + COUNT ( * ) + - 17 + - 51 * + 25 )
----
29

query I rowsort
SELECT 0 - + 26
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT ALL 43, + NULLIF ( - + 15, - COUNT( ALL + + NULLIF ( + - 3, + 0 ) ) ) AS col2
----
43
-15

skipif mysql # not compatible
query II rowsort label-2813
SELECT ALL 43, + NULLIF ( - + 15, - COUNT ( ALL + + NULLIF ( + - 3, + 0 ) ) ) AS col2
----
43
-15

query II rowsort
SELECT DISTINCT 95 AS col2, + 53 AS col1
----
95
53

query II rowsort
SELECT DISTINCT + 72, 13 * - 33 * - 76 AS col0
----
72
32604

query I rowsort
SELECT ALL + - 22 - + 50 * - NULLIF ( + 34, 36 ) AS col1
----
1678

query II rowsort
SELECT DISTINCT + 49 AS col0, - 94
----
49
-94

query I rowsort
SELECT 36 * + + 91 AS col1
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - - COUNT( * ) * - - 28 - + 1 + - COUNT( * ) * - 15
----
42

skipif mysql # not compatible
query I rowsort label-2819
SELECT - - COUNT ( * ) * - - 28 - + 1 + - COUNT ( * ) * - 15
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT COUNT( * ) * + 98 col2
----
98

skipif mysql # not compatible
query I rowsort label-2821
SELECT COUNT ( * ) * + 98 col2
----
98

query I rowsort
SELECT + 61 * - - 82 + 8
----
5010

query I rowsort
SELECT 62 * - 84
----
-5208

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT SUM( DISTINCT - 12 ) * - 58
----
696

skipif mysql # not compatible
query I rowsort label-2824
SELECT SUM ( DISTINCT - 12 ) * - 58
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2825
SELECT + 0 * + 72 - + - CAST( 53 AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col1, 58 + COUNT( * ) AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2825
SELECT + 0 * + 72 - + - CAST ( 53 AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col1, 58 + COUNT ( * ) AS col0
----
NULL
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT ALL 65 + - 28 DIV COUNT( * ) * + 60 + + 20 col0
----
-1595

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 65 + - 28 / COUNT ( * ) * + 60 + + 20 col0
----
-1595

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT + 47 * - + 40 AS col0, COUNT( * ) + + 88 + + 72 AS col1
----
-1880
161

skipif mysql # not compatible
query II rowsort label-2828
SELECT + 47 * - + 40 AS col0, COUNT ( * ) + + 88 + + 72 AS col1
----
-1880
161

query II rowsort
SELECT DISTINCT - 31 * - 61 AS col2, 27 AS col2
----
1891
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 29 + + - ( - + COUNT( * ) ) + 34
----
64

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 29 + + - ( - + COUNT ( * ) ) + 34
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + CASE - 62 WHEN 27 * + + 75 THEN + 10 + COUNT( 22 ) END + + 73 + - + 44 * 37 + 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT + CASE - 62 WHEN 27 * + + 75 THEN + 10 + COUNT ( 22 ) END + + 73 + - + 44 * 37 + 93 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT + 93 - + 10 + + - 0 + CAST( - 90 AS SIGNED ) * + - 19 AS col1
----
1793

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 93 - + 10 + + - 0 + CAST ( - 90 AS INTEGER ) * + - 19 AS col1
----
1793

onlyif mysql # aggregate syntax: 
query III rowsort label-2833
SELECT + 63 + COUNT( * ) AS col2, COUNT( * ) AS col1, 53 AS col1
----
64
1
53

skipif mysql # not compatible
query III rowsort label-2833
SELECT + 63 + COUNT ( * ) AS col2, COUNT ( * ) AS col1, 53 AS col1
----
64
1
53

query I rowsort
SELECT - NULLIF ( - + 1, - 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + MIN( DISTINCT - 83 ) + + 8
----
-75

skipif mysql # not compatible
query I rowsort label-2835
SELECT + MIN ( DISTINCT - 83 ) + + 8
----
-75

query I rowsort
SELECT + 57 + - 43
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - COUNT( * ) * - COUNT( - - ( + 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - COUNT ( * ) * - COUNT ( - - ( + 17 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT + 51 * CASE 64 WHEN + - CASE - + 45 WHEN 49 + - 1 * + + 59 + 51 THEN + 35 END THEN CASE NULLIF ( + - 45, - 74 ) WHEN - COUNT( ALL + 76 ) THEN + + 47 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END WHEN COUNT( * ) - - 63 THEN - CAST( 59 AS SIGNED ) ELSE NULL END col2
----
-3009

skipif mysql # not compatible
query I rowsort label-2838
SELECT + 51 * CASE 64 WHEN + - CASE - + 45 WHEN 49 + - 1 * + + 59 + 51 THEN + 35 END THEN CASE NULLIF ( + - 45, - 74 ) WHEN - COUNT ( ALL + 76 ) THEN + + 47 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END WHEN COUNT ( * ) - - 63 THEN - CAST ( 59 AS INTEGER ) ELSE NULL END col2
----
-3009

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT ALL 57 * + - COALESCE ( + 33, + + 81, 26 DIV 43 * 68 ) AS col2
----
-1881

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL 57 * + - COALESCE ( + 33, + + 81, 26 / 43 * 68 ) AS col2
----
-1881

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT + + 49 + - - ( - 91 ) AS col0, + ( 94 ) + - - COUNT( * )
----
-42
95

skipif mysql # not compatible
query II rowsort label-2840
SELECT + + 49 + - - ( - 91 ) AS col0, + ( 94 ) + - - COUNT ( * )
----
-42
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - + 86 + - + COUNT( * ) * + + 35 * + 76
----
-2746

skipif mysql # not compatible
query I rowsort label-2841
SELECT - + 86 + - + COUNT ( * ) * + + 35 * + 76
----
-2746

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT ALL - 80 * - ( + 17 ) + + 77 + COUNT( * ) AS col2, + 20
----
1438
20

skipif mysql # not compatible
query II rowsort label-2842
SELECT ALL - 80 * - ( + 17 ) + + 77 + COUNT ( * ) AS col2, + 20
----
1438
20

query I rowsort
SELECT + - 75 * - 16 col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - - SUM( DISTINCT - 93 ) * - 48 col0
----
4464

skipif mysql # not compatible
query I rowsort label-2844
SELECT - - SUM ( DISTINCT - 93 ) * - 48 col0
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - - COALESCE ( - - COUNT( * ), + - ( + - 77 ) + + 65 - 72 * + COUNT( * ) ) + + MIN( DISTINCT - + 92 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2845
SELECT - - COALESCE ( - - COUNT ( * ), + - ( + - 77 ) + + 65 - 72 * + COUNT ( * ) ) + + MIN ( DISTINCT - + 92 ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT + - COUNT( * ) DIV - 54 * COALESCE ( + - 99, 8 ) + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2846
SELECT + - COUNT ( * ) / - 54 * COALESCE ( + - 99, 8 ) + + 51 AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2847
SELECT + 52 + - + ( 73 ) + + 39 + - COALESCE ( - - 38, 69 * + - CAST( NULL AS SIGNED ) ) + + + 95 + - + 86 - + 47 DIV + COUNT( + 75 ) + + + 36 * + + 41 * + 2 col0
----
2894

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 52 + - + ( 73 ) + + 39 + - COALESCE ( - - 38, 69 * + - CAST ( NULL AS INTEGER ) ) + + + 95 + - + 86 - + 47 / + COUNT ( + 75 ) + + + 36 * + + 41 * + 2 col0
----
2894

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

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

query II rowsort
SELECT ALL + 64 * 25 AS col1, + 18 AS col1
----
1600
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT + - CASE + 17 WHEN + 26 * ( 99 ) - + 43 * - COALESCE ( 4, COUNT( * ) * - 94, - + 60, + 67 ) / - MAX( 71 ) THEN NULL ELSE - 24 * 81 + + + COUNT( * ) - - 90 * 20 + + 4 END
----
139

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT + - CASE + 17 WHEN + 26 * ( 99 ) - + 43 * - COALESCE ( 4, COUNT ( * ) * - 94, - + 60, + 67 ) / - MAX ( 71 ) THEN NULL ELSE - 24 * 81 + + + COUNT ( * ) - - 90 * 20 + + 4 END
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT 73 DIV - COUNT( + 29 ) + - 89 DIV - + 55
----
-72

skipif mysql # not compatible
query I rowsort label-2851
SELECT 73 / - COUNT ( + 29 ) + - 89 / - + 55
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT 67 * + + CAST( 37 AS SIGNED ) + - - 78 col1
----
2557

skipif mysql # not compatible
query I rowsort label-2852
SELECT 67 * + + CAST ( 37 AS INTEGER ) + - - 78 col1
----
2557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT + 93 * - CASE - 56 WHEN COALESCE ( ( - + 16 ), - ( + COUNT( * ) ) ) + COALESCE ( 16, + ( + 37 ) ) THEN - 15 WHEN - 41 + 39 - + MIN( DISTINCT - - ( - 86 ) ) * - 70 THEN + 56 DIV 27 ELSE 62 END + - + COUNT( - - 20 )
----
-5767

skipif mysql # not compatible
query I rowsort label-2853
SELECT + 93 * - CASE - 56 WHEN COALESCE ( ( - + 16 ), - ( + COUNT ( * ) ) ) + COALESCE ( 16, + ( + 37 ) ) THEN - 15 WHEN - 41 + 39 - + MIN ( DISTINCT - - ( - 86 ) ) * - 70 THEN + 56 / 27 ELSE 62 END + - + COUNT ( - - 20 )
----
-5767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT DISTINCT ( 27 ) * - + CAST( NULL AS SIGNED ) + - 80 * - + 44 - 83 + 68 + - COUNT( * ) + - ( + 83 ) AS col2, - 49
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-2854
SELECT DISTINCT ( 27 ) * - + CAST ( NULL AS INTEGER ) + - 80 * - + 44 - 83 + 68 + - COUNT ( * ) + - ( + 83 ) AS col2, - 49
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + 34 * 45 + - MAX( ALL + 30 ) + + 18 * + 5 AS col1
----
1590

skipif mysql # not compatible
query I rowsort label-2855
SELECT + 34 * 45 + - MAX ( ALL + 30 ) + + 18 * + 5 AS col1
----
1590

query II rowsort
SELECT DISTINCT + 8 col1, 37 * + 30
----
8
1110

query I rowsort
SELECT NULLIF ( - 73, - 99 ) AS col0
----
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 41 + + 89 * + - 22 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 41 + + 89 * + - 22 * - 74
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL + NULLIF ( - + CAST( - ( - 5 ) AS SIGNED ), - COUNT( * ) ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + NULLIF ( - + CAST ( - ( - 5 ) AS INTEGER ), - COUNT ( * ) ) col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2863
SELECT NULLIF ( + - 99, - MAX( + + 59 ) - - - 90 - + COALESCE ( + COUNT( * ), 56, + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) * + + 0 * - 29 )
----
-99

skipif mysql # not compatible
query I rowsort label-2863
SELECT NULLIF ( + - 99, - MAX ( + + 59 ) - - - 90 - + COALESCE ( + COUNT ( * ), 56, + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) * + + 0 * - 29 )
----
-99

query I rowsort
SELECT 46 * - 77 + 83
----
-3459

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2865
SELECT COUNT( * ) col0, - 53 * - + 75 DIV - COUNT( * )
----
1
-3975

skipif mysql # not compatible
query II rowsort label-2865
SELECT COUNT ( * ) col0, - 53 * - + 75 / - COUNT ( * )
----
1
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + 69 + + - ( + COUNT( * ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 69 + + - ( + COUNT ( * ) ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL MIN( - 50 ) * - MAX( - - 66 )
----
3300

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL MIN ( - 50 ) * - MAX ( - - 66 )
----
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT ALL + 73 DIV 37 col1
----
1

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + 73 / 37 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT DISTINCT - 69 * - ( + 69 ) - + 60 DIV - 13
----
4765

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - 69 * - ( + 69 ) - + 60 / - 13
----
4765

query I rowsort
SELECT ALL 69 * + 8 AS col1
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT + 51 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 51 / + 79 AS col0
----
0

query II rowsort
SELECT DISTINCT 88 AS col0, 74
----
88
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2873
SELECT DISTINCT + NULLIF ( + 95, + + CAST( NULL AS SIGNED ) ) - - + CASE WHEN NULL IS NOT NULL THEN 7 END AS col1, COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2873
SELECT DISTINCT + NULLIF ( + 95, + + CAST ( NULL AS INTEGER ) ) - - + CASE WHEN NULL IS NOT NULL THEN 7 END AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT - 98 - - 20 + + - 64 - 26 + CASE + 38 WHEN 37 THEN 1 END + + 3 * - - COALESCE ( + + 77, + - 64 - + 27 * - 47 ) AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2874
SELECT - 98 - - 20 + + - 64 - 26 + CASE + 38 WHEN 37 THEN 1 END + + 3 * - - COALESCE ( + + 77, + - 64 - + 27 * - 47 ) AS col1, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT 72 AS col1, + 45 AS col0
----
72
45

query I rowsort
SELECT + 69 + 85 - 81 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT + 13 * + 97 * + CASE + 17 WHEN + AVG ( - COALESCE ( ( - 82 ), + 52 ) ) THEN + - ( + AVG ( ALL + - 16 ) ) END / 45 * + ( + CAST( 37 AS SIGNED ) ) + + + 24 * - 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT + 13 * + 97 * + CASE + 17 WHEN + AVG ( - COALESCE ( ( - 82 ), + 52 ) ) THEN + - ( + AVG ( ALL + - 16 ) ) END / 45 * + ( + CAST ( 37 AS INTEGER ) ) + + + 24 * - 93 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT + 83 * ( - ( + 67 ) ) DIV 52
----
-106

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 83 * ( - ( + 67 ) ) / 52
----
-106

query II rowsort
SELECT ALL 43 AS col0, 13
----
43
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT + 40 - COUNT( ALL + 89 ) + - ( + 33 ) + - + CAST( NULL AS SIGNED ) - COUNT( DISTINCT 24 ) * + 71 * - AVG ( ALL + - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT + 40 - COUNT ( ALL + 89 ) + - ( + 33 ) + - + CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT 24 ) * + 71 * - AVG ( ALL + - 5 ) AS col2
----
NULL

query II rowsort
SELECT ALL - ( 87 ) * - 48 col1, + 56
----
4176
56

query II rowsort
SELECT - 5 col1, 83 col1
----
-5
83

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

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - 77 + - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT + - 19 + + CASE + + 88 WHEN - 37 THEN 74 END
----
NULL

query I rowsort
SELECT + 16 * + 86 * + 29 + + 58
----
39962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2886
SELECT + CAST( NULL AS DECIMAL ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2886
SELECT + CAST ( NULL AS REAL ), COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT + - 36 * 49 * - 57 AS col0
----
100548

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - SUM( + - CASE - 74 WHEN + 52 + 66 THEN NULL ELSE 76 END ) + 84
----
160

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - SUM ( + - CASE - 74 WHEN + 52 + 66 THEN NULL ELSE 76 END ) + 84
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT - COUNT( * ) * COALESCE ( ( + + 0 ), + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - COUNT ( * ) * COALESCE ( ( + + 0 ), + 32 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT ALL + 77 - - 97 DIV COUNT( * ) + - COUNT( + + 11 )
----
173

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + 77 - - 97 / COUNT ( * ) + - COUNT ( + + 11 )
----
173

query I rowsort
SELECT 91 * ( 18 )
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 65 + - COUNT( 36 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2892
SELECT 65 + - COUNT ( 36 ) AS col2
----
64

query I rowsort
SELECT 4 * - - 6 AS col0
----
24

query II rowsort
SELECT ALL 46 * - - 17 * 22 * + 22 AS col2, 6
----
378488
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT - CAST( - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - CAST ( - 45 AS INTEGER )
----
45

query II rowsort
SELECT 19 * 30 AS col1, - 0
----
570
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT 0 + + - 78 * - + 90 * 54 + + - ( - 35 ) + - + COUNT( ALL - 70 ) col0
----
379114

skipif mysql # not compatible
query I rowsort label-2897
SELECT 0 + + - 78 * - + 90 * 54 + + - ( - 35 ) + - + COUNT ( ALL - 70 ) col0
----
379114

query I rowsort
SELECT 15 * 65 - 76 AS col1
----
899

query I rowsort
SELECT 22 + 85 col0
----
107

query I rowsort
SELECT DISTINCT - + 44 + + + 97 + + 31 AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT DISTINCT - 86 + + 57 DIV 47
----
-85

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT - 86 + + 57 / 47
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + 28 + - COUNT( * ) + - 64 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + 28 + - COUNT ( * ) + - 64 + + COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT + 64 + 71 + 10 * NULLIF ( + COUNT( * ), - 94 )
----
145

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + 64 + 71 + 10 * NULLIF ( + COUNT ( * ), - 94 )
----
145

query I rowsort
SELECT DISTINCT 87 + - 81 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + 91 * - COUNT( * ) * - 61 AS col1
----
5551

skipif mysql # not compatible
query I rowsort label-2905
SELECT + 91 * - COUNT ( * ) * - 61 AS col1
----
5551

query I rowsort
SELECT 78 + - 46 AS col2
----
32

query I rowsort
SELECT DISTINCT - 45 + - 99
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT + NULLIF ( 49, - 34 - 93 + - COUNT( * ) + + 58 + + 19 * - - 25 * 9 * 17 * - COUNT( * ) * 32 )
----
49

skipif mysql # not compatible
query I rowsort label-2908
SELECT + NULLIF ( 49, - 34 - 93 + - COUNT ( * ) + + 58 + + 19 * - - 25 * 9 * 17 * - COUNT ( * ) * 32 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT - + NULLIF ( - CAST( 94 AS SIGNED ), 52 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-2909
SELECT - + NULLIF ( - CAST ( 94 AS INTEGER ), 52 ) col1
----
94

query I rowsort
SELECT 47 + 67 * + - 74 AS col2
----
-4911

query I rowsort
SELECT - COALESCE ( - + 31, + 41 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT + 34 DIV 55 + 74 + + 89 * + 21
----
1943

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 34 / 55 + 74 + + 89 * + 21
----
1943

onlyif mysql # DIV for integer division: 
query II rowsort label-2913
SELECT ALL 16 * - 28 AS col2, + 23 + ( + + 51 ) + + - ( + 61 ) DIV + ( + + ( + 3 ) ) AS col0
----
-448
54

skipif mysql # not compatible
query II rowsort label-2913
SELECT ALL 16 * - 28 AS col2, + 23 + ( + + 51 ) + + - ( + 61 ) / + ( + + ( + 3 ) ) AS col0
----
-448
54

query II rowsort
SELECT DISTINCT 47 * + ( + 92 ) col1, - 30 col2
----
4324
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - 44 * 72 + MIN( - 35 ) + + - COALESCE ( - + 51, 4 ) * + 63 * + - COUNT( + 30 ) + - + 27 * + 19 AS col0
----
-6929

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 44 * 72 + MIN ( - 35 ) + + - COALESCE ( - + 51, 4 ) * + 63 * + - COUNT ( + 30 ) + - + 27 * + 19 AS col0
----
-6929

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT 4 * + + SUM( - - 41 ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-2916
SELECT 4 * + + SUM ( - - 41 ) AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT 82 * + + 39 * - 25 * 67 * CAST( + 73 AS SIGNED ) + - - MIN( DISTINCT + 51 ), - 99 AS col1
----
-391035399
-99

skipif mysql # not compatible
query II rowsort label-2917
SELECT 82 * + + 39 * - 25 * 67 * CAST ( + 73 AS INTEGER ) + - - MIN ( DISTINCT + 51 ), - 99 AS col1
----
-391035399
-99

query I rowsort
SELECT ALL 0 * - ( - 88 )
----
0

query I rowsort
SELECT 81 + + 18
----
99

query I rowsort
SELECT 20 + - 43 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT 94 DIV - NULLIF ( 74, - - COUNT( * ) + + 84 * 65 * - 86 * + - 32 * - 10 + - 88 + + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-2921
SELECT 94 / - NULLIF ( 74, - - COUNT ( * ) + + 84 * 65 * - 86 * + - 32 * - 10 + - 88 + + - 18 )
----
-1

query I rowsort
SELECT ALL 46 * + - 28 AS col2
----
-1288

query I rowsort
SELECT DISTINCT 5 * - 96
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT - 93 / + 4 + + + 21 * ( + CAST( NULL AS SIGNED ) ) - + ( + COALESCE ( + 51, - - 58 ) ) * + CASE 82 WHEN - 33 THEN NULL ELSE 61 END * COUNT( * ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT - 93 / + 4 + + + 21 * ( + CAST ( NULL AS INTEGER ) ) - + ( + COALESCE ( + 51, - - 58 ) ) * + CASE 82 WHEN - 33 THEN NULL ELSE 61 END * COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ( - 61 ) * 52 + + - 22 + 82, + 76 AS col1
----
-3112
76

query I rowsort
SELECT 26 + - 49 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL 34 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL 34 / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL - COUNT( ALL - ( - 25 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - COUNT ( ALL - ( - 25 ) ) AS col0
----
-1

query I rowsort
SELECT 35 + + 34
----
69

query I rowsort
SELECT DISTINCT + 38 + - 53 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT CAST( NULL AS SIGNED ) * 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT CAST ( NULL AS INTEGER ) * 84 AS col1
----
NULL

query I rowsort
SELECT 54 + + + 16 col2
----
70

query II rowsort
SELECT 97 AS col2, + 29
----
97
29

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

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

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

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - - COUNT ( * ) + + 2 AS col0
----
3

query I rowsort
SELECT + ( - 11 ) * - + 13 * 8 AS col1
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 92 + + ( + 30 ) * - ( ( + COUNT( * ) ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 92 + + ( + 30 ) * - ( ( + COUNT ( * ) ) ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT 16 - - 42 * COUNT( * ) + - + CASE - + AVG ( + 90 ) WHEN + 23 THEN NULL WHEN - 76 * ( + 8 ) + + 52 + 65 * 96 THEN - 20 + + 44 * - + 26 + + 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT 16 - - 42 * COUNT ( * ) + - + CASE - + AVG ( + 90 ) WHEN + 23 THEN NULL WHEN - 76 * ( + 8 ) + + 52 + 65 * 96 THEN - 20 + + 44 * - + 26 + + 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - MIN( - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-2939
SELECT - MIN ( - 29 )
----
29

query I rowsort
SELECT - 89 - 31
----
-120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2941
SELECT 6 * + - 12 - + + NULLIF ( - + 18, - 58 * CAST( NULL AS DECIMAL ) * + + 66 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2941
SELECT 6 * + - 12 - + + NULLIF ( - + 18, - 58 * CAST ( NULL AS REAL ) * + + 66 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT COUNT( * ) + - - COALESCE ( - + 67, - 7 + - + 94 ) * + 94 + 19 + + + ( 36 ) + - CASE + 49 WHEN + COUNT( * ) + - 38 + + + COUNT( * ) THEN + 2 ELSE + 41 END
----
-6283

skipif mysql # not compatible
query I rowsort label-2942
SELECT COUNT ( * ) + - - COALESCE ( - + 67, - 7 + - + 94 ) * + 94 + 19 + + + ( 36 ) + - CASE + 49 WHEN + COUNT ( * ) + - 38 + + + COUNT ( * ) THEN + 2 ELSE + 41 END
----
-6283

query I rowsort
SELECT DISTINCT - + 66 + - + 60
----
-126

query II rowsort
SELECT ALL + + 3 + - - 92 - - 55 AS col2, - 73
----
150
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MAX( 3 ) - - 28
----
31

skipif mysql # not compatible
query I rowsort label-2946
SELECT MAX ( 3 ) - - 28
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT - + 74 - + COALESCE ( 63, + 85 DIV + 2 * - 67 + + - 87 )
----
-137

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - + 74 - + COALESCE ( 63, + 85 / + 2 * - 67 + + - 87 )
----
-137

query I rowsort
SELECT DISTINCT 87 - ( - 19 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL + CASE - - 81 WHEN ( - 84 ) THEN + 75 WHEN - 47 THEN NULL END * + MIN( DISTINCT + ( - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + CASE - - 81 WHEN ( - 84 ) THEN + 75 WHEN - 47 THEN NULL END * + MIN ( DISTINCT + ( - 28 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT + + CAST( - - 80 AS SIGNED ) + ( 23 )
----
103

skipif mysql # not compatible
query I rowsort label-2950
SELECT + + CAST ( - - 80 AS INTEGER ) + ( 23 )
----
103

query I rowsort
SELECT 59 * 63 - 65
----
3652

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT + 48 col1, 46 * - COUNT( DISTINCT - + 99 ) AS col2
----
48
-46

skipif mysql # not compatible
query II rowsort label-2952
SELECT + 48 col1, 46 * - COUNT ( DISTINCT - + 99 ) AS col2
----
48
-46

query I rowsort
SELECT - 65 * 38
----
-2470

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

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

query II rowsort
SELECT + 5 AS col0, - 61
----
5
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COALESCE ( + CASE WHEN NOT - 92 < - COUNT( * ) + - + 79 - COUNT( * ) - + + NULLIF ( + - COUNT( * ), 9 ) * - COUNT( * ) * ( 29 ) * - + 33 * - 81 * + MIN( ALL ( - 89 ) ) THEN 36 * - 94 WHEN NOT ( + 8 ) NOT BETWEEN COALESCE ( 84, - - COUNT( * ) ) - - 88 * - 20 AND + - 34 * + 88 * - 76 + - 36 + 58 * - ( AVG ( + 51 ) + COALESCE ( 54, + 62 ) ) THEN - 20 ELSE + 41 END, 69 * NULLIF ( + 93, - 6 * - COUNT( ALL - 75 ) ) - - 74 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2956
SELECT COALESCE ( + CASE WHEN NOT - 92 < - COUNT ( * ) + - + 79 - COUNT ( * ) - + + NULLIF ( + - COUNT ( * ), 9 ) * - COUNT ( * ) * ( 29 ) * - + 33 * - 81 * + MIN ( ALL ( - 89 ) ) THEN 36 * - 94 WHEN NOT ( + 8 ) NOT BETWEEN COALESCE ( 84, - - COUNT ( * ) ) - - 88 * - 20 AND + - 34 * + 88 * - 76 + - 36 + 58 * - ( AVG ( + 51 ) + COALESCE ( 54, + 62 ) ) THEN - 20 ELSE + 41 END, 69 * NULLIF ( + 93, - 6 * - COUNT ( ALL - 75 ) ) - - 74 ) AS col1
----
-20

query II rowsort
SELECT ALL + 65 AS col0, - 65
----
65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + 34 * - 7 * ( - + MIN( DISTINCT 73 ) ) col0
----
17374

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 34 * - 7 * ( - + MIN ( DISTINCT 73 ) ) col0
----
17374

query I rowsort
SELECT ALL 46 * - 47
----
-2162

query I rowsort
SELECT - ( - 34 ) + + + 32
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + CASE - + COUNT( * ) WHEN NULLIF ( + - 62, - + 40 * + - 64 + + - 8 ) THEN 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + CASE - + COUNT ( * ) WHEN NULLIF ( + - 62, - + 40 * + - 64 + + - 8 ) THEN 54 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT + 87 DIV - - 34
----
2

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 87 / - - 34
----
2

query I rowsort
SELECT - 98 + + 94 * 17 * - + 62 + - 59
----
-99233

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT CASE 73 WHEN 51 * - + ( MIN( - 15 ) ) THEN + 29 * + 47 + 30 + - + 89 - + 73 * - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT CASE 73 WHEN 51 * - + ( MIN ( - 15 ) ) THEN + 29 * + 47 + 30 + - + 89 - + 73 * - 31 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + 51 DIV + + 61 * 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 51 / + + 61 * 20 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT + 57 DIV + 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 57 / + 30 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - COUNT ( * ) * - ( - 35 ) + 13 AS col2
----
-22

query I rowsort
SELECT ALL - 78 * - + 94 * + 32 + COALESCE ( - ( - - 91 ), 1 * + - 39 )
----
234533

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + COUNT( * ) + - 47 + 27
----
-19

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( * ) + - 47 + 27
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL + 0 * 73 + 22 * + CASE - 29 WHEN - 46 THEN NULL WHEN + - 12 * - - COALESCE ( COUNT( * ), - 29 ) * + 93 * 47 * - + 36 + - CAST( + 68 AS SIGNED ) + 87 + - ( - - 98 ) * + 86 * + 54 THEN + 27 WHEN + 42 THEN + + 94 ELSE NULL END + - CAST( + 18 AS SIGNED ) + - 6 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + 0 * 73 + 22 * + CASE - 29 WHEN - 46 THEN NULL WHEN + - 12 * - - COALESCE ( COUNT ( * ), - 29 ) * + 93 * 47 * - + 36 + - CAST ( + 68 AS INTEGER ) + 87 + - ( - - 98 ) * + 86 * + 54 THEN + 27 WHEN + 42 THEN + + 94 ELSE NULL END + - CAST ( + 18 AS INTEGER ) + - 6 * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL COUNT( * ) * - - ( + - 81 ) + + NULLIF ( - + 97, 89 ) + - CASE - 23 WHEN 26 THEN 4 ELSE 76 + - + 21 END * + COUNT( * )
----
-233

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COUNT ( * ) * - - ( + - 81 ) + + NULLIF ( - + 97, 89 ) + - CASE - 23 WHEN 26 THEN 4 ELSE 76 + - + 21 END * + COUNT ( * )
----
-233

query I rowsort
SELECT + - COALESCE ( - ( - NULLIF ( - 78, - 42 ) ), + + ( + + 0 ) ) + + 20 + 2 + - 52 AS col1
----
48

query I rowsort
SELECT + + 31 + - 41 + 17 * + 58
----
976

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - + COUNT( * ) - - 28 - - 3
----
30

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + COUNT ( * ) - - 28 - - 3
----
30

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

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

query I rowsort
SELECT - - 51 + 23 + 60 + - 59 + - 17 AS col2
----
58

query I rowsort
SELECT ALL - 45 + - 3
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2978
SELECT + 57 AS col1, COUNT( * ) - + 89
----
57
-88

skipif mysql # not compatible
query II rowsort label-2978
SELECT + 57 AS col1, COUNT ( * ) - + 89
----
57
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT ALL - 41, NULLIF ( + 5, - 52 ) + - MIN( DISTINCT 39 ) AS col1
----
-41
-34

skipif mysql # not compatible
query II rowsort label-2979
SELECT ALL - 41, NULLIF ( + 5, - 52 ) + - MIN ( DISTINCT 39 ) AS col1
----
-41
-34

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

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - COUNT ( 35 ) * + 32 AS col0
----
-32

query I rowsort
SELECT ALL 92 - - + 95 * - - 18
----
1802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT - + 24 * + CAST( + 13 AS SIGNED ) * - 90 - + 30 AS col1
----
28050

skipif mysql # not compatible
query I rowsort label-2982
SELECT - + 24 * + CAST ( + 13 AS INTEGER ) * - 90 - + 30 AS col1
----
28050

query I rowsort
SELECT + - 13 + + 90 * 51 + + - 65 * 65
----
352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2984
SELECT - - COALESCE ( + + COALESCE ( - 74, ( 53 ) * + NULLIF ( 69, 9 * - ( - 73 ) - + 80 ) ), + 71 - + ( + 93 ) + - - 9 DIV - MIN( ALL - 86 ) * + 15 * + + NULLIF ( + NULLIF ( - 74, + COUNT( * ) + + 61 * - - 24 + + 27 ), + + 75 * CAST( + 5 AS SIGNED ) ) * - 64 ) + - - 72 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2984
SELECT - - COALESCE ( + + COALESCE ( - 74, ( 53 ) * + NULLIF ( 69, 9 * - ( - 73 ) - + 80 ) ), + 71 - + ( + 93 ) + - - 9 / - MIN ( ALL - 86 ) * + 15 * + + NULLIF ( + NULLIF ( - 74, + COUNT ( * ) + + 61 * - - 24 + + 27 ), + + 75 * CAST ( + 5 AS INTEGER ) ) * - 64 ) + - - 72 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - + 74 + - COUNT( + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2985
SELECT - + 74 + - COUNT ( + 75 ) AS col1
----
-75

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

skipif mysql # not compatible
query I rowsort label-2986
SELECT - COUNT ( ALL + 84 ) * 70 AS col0
----
-70

query I rowsort
SELECT - 71 * - 3 * 45
----
9585

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT DISTINCT MAX( 1 ) AS col2, 47 + - + 29 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-2988
SELECT DISTINCT MAX ( 1 ) AS col2, 47 + - + 29 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT DISTINCT MAX( ALL - 34 ) AS col2, - 32 * NULLIF ( - 44, 37 )
----
-34
1408

skipif mysql # not compatible
query II rowsort label-2989
SELECT DISTINCT MAX ( ALL - 34 ) AS col2, - 32 * NULLIF ( - 44, 37 )
----
-34
1408

query I rowsort
SELECT - 59 + + + 74 + - - 58 * - 60 AS col0
----
-3465

query II rowsort
SELECT ALL + ( 11 ), 77 AS col1
----
11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT + COUNT( * ) * + + 80 * - COALESCE ( - COUNT( * ), + 44 )
----
80

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + COUNT ( * ) * + + 80 * - COALESCE ( - COUNT ( * ), + 44 )
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - 97 * - 76 / - MAX( - + CAST( NULL AS SIGNED ) ) + + - COUNT( DISTINCT - - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 97 * - 76 / - MAX ( - + CAST ( NULL AS INTEGER ) ) + + - COUNT ( DISTINCT - - 65 )
----
NULL

query I rowsort
SELECT ALL + ( + - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT - MIN( + + 65 ) DIV 77 * + + COUNT( * ) + 82
----
82

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - MIN ( + + 65 ) / 77 * + + COUNT ( * ) + 82
----
82

query II rowsort
SELECT ALL + ( - 69 ) col2, 92 AS col1
----
-69
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT 57 * - 82 / 15 / + 46 / 30 * - 52 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT 57 * - 82 / 15 / + 46 / 30 * - 52 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2999
SELECT DISTINCT + CAST( - - 6 AS SIGNED ) AS col1, 87 + + 57 AS col1
----
6
144

skipif mysql # not compatible
query II rowsort label-2999
SELECT DISTINCT + CAST ( - - 6 AS INTEGER ) AS col1, 87 + + 57 AS col1
----
6
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL 71 * CASE - MIN( - - 39 ) WHEN + ( AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) / - 61 THEN + 63 + - 77 + 79 + + - 76 * - + 91 * - 85 + + - 6 / 79 * + - 37 + - - 86 END + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 71 * CASE - MIN ( - - 39 ) WHEN + ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) / - 61 THEN + 63 + - 77 + 79 + + - 76 * - + 91 * - 85 + + - 6 / 79 * + - 37 + - - 86 END + - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT ALL - - 72 * COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) / ( + 4 ) + + ( 37 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - - 72 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) / ( + 4 ) + + ( 37 ) col2
----
NULL

query I rowsort
SELECT - + 35 * + 11 * - - 60 AS col2
----
-23100

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT + + 30 + + COALESCE ( 26, + + SUM( ALL + 38 ), - COUNT( * ) * + 70 ) - - 93 * + 94 * 6 * ( - + 55 ) AS col1, - 4
----
-2884804
-4

skipif mysql # not compatible
query II rowsort label-3003
SELECT + + 30 + + COALESCE ( 26, + + SUM ( ALL + 38 ), - COUNT ( * ) * + 70 ) - - 93 * + 94 * 6 * ( - + 55 ) AS col1, - 4
----
-2884804
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT + 37 * - 69 * COUNT( * ) * - - 99 + + + 21 AS col0
----
-252726

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + 37 * - 69 * COUNT ( * ) * - - 99 + + + 21 AS col0
----
-252726

query I rowsort
SELECT + 50 * - - 52 * - ( 20 )
----
-52000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT + COUNT( * ) - + - CAST( CAST( + 38 AS SIGNED ) AS SIGNED ) + + 45
----
84

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + COUNT ( * ) - + - CAST ( CAST ( + 38 AS INTEGER ) AS INTEGER ) + + 45
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT ALL - SUM( ALL + ( + + 76 ) ) AS col0, 26
----
-76
26

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL - SUM ( ALL + ( + + 76 ) ) AS col0, 26
----
-76
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT + COUNT( * ) * + 1, + 44 + - + 7 + + - 84 AS col0
----
1
-47

skipif mysql # not compatible
query II rowsort label-3008
SELECT + COUNT ( * ) * + 1, + 44 + - + 7 + + - 84 AS col0
----
1
-47

query I rowsort
SELECT ALL + 34 - + NULLIF ( + 64, - - 61 ) col0
----
-30

query II rowsort
SELECT + 73 - - - 34, - ( + 65 ) AS col1
----
39
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + COUNT( * ) / - CASE COUNT( * ) WHEN - + COUNT( DISTINCT + - 68 ) THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT + COUNT ( * ) / - CASE COUNT ( * ) WHEN - + COUNT ( DISTINCT + - 68 ) THEN - 68 END
----
NULL

query I rowsort
SELECT ( 18 ) + 2 AS col2
----
20

query I rowsort
SELECT 25 * + + 73 * - 3 * 38
----
-208050

query I rowsort
SELECT - 66 + + 58 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT + 40 * - - ( + NULLIF ( NULLIF ( + 16, - + 25 * 44 ), + + 74 - - + 53 + + 68 * COUNT( DISTINCT + + COALESCE ( + 58, + + 35 * + 19 ) ) / - CAST( + - CAST( - 84 AS SIGNED ) AS SIGNED ) * + - 11 ) ) AS col1
----
640

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + 40 * - - ( + NULLIF ( NULLIF ( + 16, - + 25 * 44 ), + + 74 - - + 53 + + 68 * COUNT ( DISTINCT + + COALESCE ( + 58, + + 35 * + 19 ) ) / - CAST ( + - CAST ( - 84 AS INTEGER ) AS INTEGER ) * + - 11 ) ) AS col1
----
640

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

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

query I rowsort
SELECT DISTINCT 82 * - 35 AS col2
----
-2870

query I rowsort
SELECT 19 * + 54 AS col1
----
1026

query I rowsort
SELECT 93 + + + 17 AS col2
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - SUM( ALL - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - SUM ( ALL - 9 ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT + 79 DIV - + 74
----
-1

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + 79 / - + 74
----
-1

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

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - MAX ( ALL 47 )
----
-47

query I rowsort
SELECT ALL + 62 * - 56 * 73 * + 56
----
-14193536

query I rowsort
SELECT 25 + + ( - 14 )
----
11

query I rowsort
SELECT 11 * 93 - 73
----
950

query I rowsort
SELECT ALL - + ( ( + 89 ) ) - + 90 AS col2
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - 1 * + - SUM( ALL - 58 ) * + 82 + - + 99 AS col0
----
-4855

skipif mysql # not compatible
query I rowsort label-3028
SELECT - 1 * + - SUM ( ALL - 58 ) * + 82 + - + 99 AS col0
----
-4855

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

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

query I rowsort
SELECT ALL + 18 * - - 38 AS col2
----
684

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3031
SELECT ALL - 50 AS col2, CAST( NULL AS DECIMAL ) - + - 19
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL - 50 AS col2, CAST ( NULL AS REAL ) - + - 19
----
-50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3032
SELECT + 91 + + 66 - CASE - 37 WHEN 26 THEN COUNT( * ) DIV + 2 + - 74 + - + 73 * + 47 + - 25 WHEN - - 8 THEN NULL WHEN - 61 DIV - 92 + - CAST( - 85 AS SIGNED ) + + ( - 29 ) + 54 * 23 * - - COUNT( * ) * 86 * - + 47 THEN NULL ELSE 63 END + 87 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-3032
SELECT + 91 + + 66 - CASE - 37 WHEN 26 THEN COUNT ( * ) / + 2 + - 74 + - + 73 * + 47 + - 25 WHEN - - 8 THEN NULL WHEN - 61 / - 92 + - CAST ( - 85 AS INTEGER ) + + ( - 29 ) + 54 * 23 * - - COUNT ( * ) * 86 * - + 47 THEN NULL ELSE 63 END + 87 AS col1
----
181

query I rowsort
SELECT + 5 + + 53 + + 60 AS col1
----
118

query II rowsort
SELECT ALL - + 74 AS col1, 84 AS col2
----
-74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3035
SELECT - 25 * + - 3 + - 26 + - 76 + + 36 + 58 - 88 * + NULLIF ( 82, + 67 * - COUNT( * ) ) + + 58 * - 36 col0, 11 - 41 * + 54 * 38
----
-9237
-84121

skipif mysql # not compatible
query II rowsort label-3035
SELECT - 25 * + - 3 + - 26 + - 76 + + 36 + 58 - 88 * + NULLIF ( 82, + 67 * - COUNT ( * ) ) + + 58 * - 36 col0, 11 - 41 * + 54 * 38
----
-9237
-84121

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - 58 + - SUM( DISTINCT - 52 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 58 + - SUM ( DISTINCT - 52 ) AS col0
----
-6

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

query I rowsort
SELECT ALL 11 * + 98 AS col1
----
1078

query I rowsort
SELECT - ( 46 ) * - COALESCE ( + - 44, 81 )
----
-2024

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

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

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

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

query I rowsort
SELECT 32 + 63 AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT DISTINCT MIN( ALL - 84 ) col2, 68
----
-84
68

skipif mysql # not compatible
query II rowsort label-3043
SELECT DISTINCT MIN ( ALL - 84 ) col2, 68
----
-84
68

query I rowsort
SELECT ALL 41 + - - 94
----
135

query I rowsort
SELECT 90 + 86 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT 35 + + COUNT( * ) + - + 48 * + 8 + + 29
----
-319

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT 35 + + COUNT ( * ) + - + 48 * + 8 + + 29
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT COUNT( * ) + - 20 - - 81 DIV - CAST( 76 AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) + - 20 - - 81 / - CAST ( 76 AS INTEGER ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT 38 + COUNT( DISTINCT + 89 )
----
39

skipif mysql # not compatible
query I rowsort label-3048
SELECT 38 + COUNT ( DISTINCT + 89 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL 70 DIV - ( - 12 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 70 / - ( - 12 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT 45 DIV + 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT 45 / + 46 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT ALL ( - - 21 ) + ( + 22 ) DIV - MIN( + - 75 )
----
21

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL ( - - 21 ) + ( + 22 ) / - MIN ( + - 75 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - 20 + + ( - COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - 20 + + ( - COUNT ( * ) )
----
-21

query I rowsort
SELECT ALL - NULLIF ( - 86, + 44 ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL ( - 4 ) * NULLIF ( + - COALESCE ( + ( + - NULLIF ( + + 57, + ( 93 ) ) ), 39, SUM( ALL + COALESCE ( - - 72, - 68, + + 42 ) ) ), + + ( - 7 ) * + 55 ) AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL ( - 4 ) * NULLIF ( + - COALESCE ( + ( + - NULLIF ( + + 57, + ( 93 ) ) ), 39, SUM ( ALL + COALESCE ( - - 72, - 68, + + 42 ) ) ), + + ( - 7 ) * + 55 ) AS col2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT + COUNT( * ) * + 37 - + COUNT( * ) * - - 35
----
2

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + COUNT ( * ) * + 37 - + COUNT ( * ) * - - 35
----
2

query II rowsort
SELECT CASE - + 87 WHEN 58 THEN + + 59 ELSE 31 * + 15 - - 41 END AS col0, + 8
----
506
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT DISTINCT + ( 80 ) * - 26 + + MAX( ALL - + 90 ) + - - COUNT( * ) * + 8 - - ( - - COUNT( * ) ) DIV - 73 + + COUNT( * )
----
-2161

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + ( 80 ) * - 26 + + MAX ( ALL - + 90 ) + - - COUNT ( * ) * + 8 - - ( - - COUNT ( * ) ) / - 73 + + COUNT ( * )
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT MIN( - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3058
SELECT MIN ( - 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3059
SELECT COALESCE ( - 35, - + CAST( COUNT( DISTINCT - 14 ) AS SIGNED ) + + + 3 + + 59 + - + 0 ) DIV 9 + SUM( - 33 ) * - 52 + - - 51 + NULLIF ( 3, COUNT( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST( NULL AS DECIMAL ) * 76 ) * 91 + + - NULLIF ( - MIN( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * SUM( 6 ) ) ) + + 2 + + ( ( + 49 ) )
----
612208

skipif mysql # not compatible
query I rowsort label-3059
SELECT COALESCE ( - 35, - + CAST ( COUNT ( DISTINCT - 14 ) AS INTEGER ) + + + 3 + + 59 + - + 0 ) / 9 + SUM ( - 33 ) * - 52 + - - 51 + NULLIF ( 3, COUNT ( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST ( NULL AS REAL ) * 76 ) * 91 + + - NULLIF ( - MIN ( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * SUM ( 6 ) ) ) + + 2 + + ( ( + 49 ) )
----
612208

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - - 82 * + + 83 * COUNT( * )
----
6806

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - - 82 * + + 83 * COUNT ( * )
----
6806

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3061
SELECT - CAST( - 51 AS SIGNED ) DIV - - 19
----
2

skipif mysql # not compatible
query I rowsort label-3061
SELECT - CAST ( - 51 AS INTEGER ) / - - 19
----
2

query I rowsort
SELECT ALL + + 52 * - 76
----
-3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3063
SELECT - - COUNT( * ) DIV - 80 * + 89
----
0

skipif mysql # not compatible
query I rowsort label-3063
SELECT - - COUNT ( * ) / - 80 * + 89
----
0

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

skipif mysql # not compatible
query I rowsort label-3064
SELECT - - 20 / + 40
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - 82 + ( - 82 ) + + - 82 * - 82 * + MIN( 5 ) + + 2 AS col1
----
33458

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - 82 + ( - 82 ) + + - 82 * - 82 * + MIN ( 5 ) + + 2 AS col1
----
33458

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3067
SELECT DISTINCT - - COUNT( * ) + + 96 * 0 / - NULLIF ( CAST( NULL AS DECIMAL ), + - 4 * + 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - - COUNT ( * ) + + 96 * 0 / - NULLIF ( CAST ( NULL AS REAL ), + - 4 * + 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT - 32 + NULLIF ( 95, + COUNT( * ) + - + 12 + + 21 * 47 * - + COUNT( + - 91 ) ) + - 92 * - 27 + - COUNT( * ) AS col1
----
2546

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT - 32 + NULLIF ( 95, + COUNT ( * ) + - + 12 + + 21 * 47 * - + COUNT ( + - 91 ) ) + - 92 * - 27 + - COUNT ( * ) AS col1
----
2546

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

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

query I rowsort
SELECT - 58 - - - 0 + - 0
----
-58

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

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

query I rowsort
SELECT + 6 + 86
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3073
SELECT - 70 DIV + CASE + - COUNT( 34 ) WHEN COUNT( * ) THEN NULL WHEN - + 55 * - 39 - - MIN( - + 88 ) THEN NULL WHEN + MIN( + 93 ) THEN 20 DIV - 8 + - CAST( NULL AS SIGNED ) ELSE - ( - COUNT( * ) ) END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 70 / + CASE + - COUNT ( 34 ) WHEN COUNT ( * ) THEN NULL WHEN - + 55 * - 39 - - MIN ( - + 88 ) THEN NULL WHEN + MIN ( + 93 ) THEN 20 / - 8 + - CAST ( NULL AS INTEGER ) ELSE - ( - COUNT ( * ) ) END AS col1
----
-70

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

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

query I rowsort
SELECT DISTINCT - ( 15 ) * NULLIF ( + 37, - + 74 ) AS col2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL + COUNT( * ) - 84
----
-83

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + COUNT ( * ) - 84
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT DISTINCT 71, CASE 77 WHEN + COUNT( * ) THEN + 15 WHEN 65 / 96 + + ( + + 82 ) THEN NULL END - + 77 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3077
SELECT DISTINCT 71, CASE 77 WHEN + COUNT ( * ) THEN + 15 WHEN 65 / 96 + + ( + + 82 ) THEN NULL END - + 77 AS col1
----
71
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3079
SELECT + NULLIF ( - NULLIF ( + - 73, - CASE + + CASE - 50 WHEN 11 + 38 THEN NULL WHEN + MAX( + COALESCE ( 48, 0 ) ) - + - CAST( NULL AS DECIMAL ) THEN NULL ELSE - 89 END WHEN - 13 * + 61 + + + 21 THEN NULL WHEN ( - - 70 ) * + + 15 THEN NULL WHEN + - 98 THEN - - ( + ( - 20 ) ) ELSE NULL END ), + + 16 ) * - + 33 * - MIN( - + 26 ) * + 60 + 22 AS col1
----
-3758018

skipif mysql # not compatible
query I rowsort label-3079
SELECT + NULLIF ( - NULLIF ( + - 73, - CASE + + CASE - 50 WHEN 11 + 38 THEN NULL WHEN + MAX ( + COALESCE ( 48, 0 ) ) - + - CAST ( NULL AS REAL ) THEN NULL ELSE - 89 END WHEN - 13 * + 61 + + + 21 THEN NULL WHEN ( - - 70 ) * + + 15 THEN NULL WHEN + - 98 THEN - - ( + ( - 20 ) ) ELSE NULL END ), + + 16 ) * - + 33 * - MIN ( - + 26 ) * + 60 + 22 AS col1
----
-3758018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3080
SELECT 82, COALESCE ( 93, + CASE 76 WHEN - MAX( CAST( 25 AS SIGNED ) ) THEN + NULLIF ( - 67, 68 ) WHEN + 76 + - + SUM( + - 67 ) + + - 44 + - 76 - - 99 * 87 * + COUNT( * ) * - + 36 + - + 97 - - ( + ( 74 ) ) + - + 59 THEN - + NULLIF ( - COUNT( * ), 67 ) DIV + ( 89 ) END * - - 84 + - 41 ) + - + 20 AS col2
----
82
73

skipif mysql # not compatible
query II rowsort label-3080
SELECT 82, COALESCE ( 93, + CASE 76 WHEN - MAX ( CAST ( 25 AS INTEGER ) ) THEN + NULLIF ( - 67, 68 ) WHEN + 76 + - + SUM ( + - 67 ) + + - 44 + - 76 - - 99 * 87 * + COUNT ( * ) * - + 36 + - + 97 - - ( + ( 74 ) ) + - + 59 THEN - + NULLIF ( - COUNT ( * ), 67 ) / + ( 89 ) END * - - 84 + - 41 ) + - + 20 AS col2
----
82
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3081
SELECT + ( + ( 21 ) ) - 23 DIV 32 + + 83 * - 3 * COUNT( - - 93 ) + + 40 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-3081
SELECT + ( + ( 21 ) ) - 23 / 32 + + 83 * - 3 * COUNT ( - - 93 ) + + 40 AS col1
----
-188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL + MIN( 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + MIN ( 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + - 23 * MAX( ALL 31 )
----
-713

skipif mysql # not compatible
query I rowsort label-3084
SELECT + - 23 * MAX ( ALL 31 )
----
-713

query II rowsort
SELECT DISTINCT + 92, - 95 AS col0
----
92
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3086
SELECT + 54 AS col0, + 11 * + 56 + + CAST( NULL AS SIGNED ) + - - 42
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3086
SELECT + 54 AS col0, + 11 * + 56 + + CAST ( NULL AS INTEGER ) + - - 42
----
54
NULL

query I rowsort
SELECT DISTINCT + + ( - 38 ) col2
----
-38

query I rowsort
SELECT + + 46 + + 37
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT + COALESCE ( - - 51, - + 77 * + 32 + - 16 * 94, - COUNT( * ) * - 34 * 0 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3089
SELECT + COALESCE ( - - 51, - + 77 * + 32 + - 16 * 94, - COUNT ( * ) * - 34 * 0 ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3090
SELECT + COUNT( * ) * COUNT( * ) * + - COALESCE ( + - SUM( + - 19 ), - + MIN( + 69 ) ) - + 35 + 70 + NULLIF ( + + 67, - - 13 DIV - + COUNT( * ) + + 46 ) + - 21 + + 86 DIV CASE + 16 WHEN 67 THEN 24 ELSE - 99 DIV + - 5 + COALESCE ( - 26, - ( + CAST( NULL AS SIGNED ) ) * 17 + + - 91 + + - 28, + AVG ( CAST( NULL AS SIGNED ) ) + + 64 + + 25 * - 41 ) * 34 END * - 87
----
62

skipif mysql # not compatible
query I rowsort label-3090
SELECT + COUNT ( * ) * COUNT ( * ) * + - COALESCE ( + - SUM ( + - 19 ), - + MIN ( + 69 ) ) - + 35 + 70 + NULLIF ( + + 67, - - 13 / - + COUNT ( * ) + + 46 ) + - 21 + + 86 / CASE + 16 WHEN 67 THEN 24 ELSE - 99 / + - 5 + COALESCE ( - 26, - ( + CAST ( NULL AS INTEGER ) ) * 17 + + - 91 + + - 28, + AVG ( CAST ( NULL AS INTEGER ) ) + + 64 + + 25 * - 41 ) * 34 END * - 87
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - CASE - COALESCE ( 43, 52 ) WHEN + 6 THEN NULL ELSE - 33 + 36 + - COUNT( * ) END * - 37 * - + 58 + 85 * - 35
----
-7267

skipif mysql # not compatible
query I rowsort label-3091
SELECT - CASE - COALESCE ( 43, 52 ) WHEN + 6 THEN NULL ELSE - 33 + 36 + - COUNT ( * ) END * - 37 * - + 58 + 85 * - 35
----
-7267

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT - - 91 * - 7 + + 3 DIV 44
----
-637

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 91 * - 7 + + 3 / 44
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT ALL CAST( NULL AS SIGNED ) * + ( - + 21 ) * 70 + + - 96 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL CAST ( NULL AS INTEGER ) * + ( - + 21 ) * 70 + + - 96 + 34
----
NULL

query I rowsort
SELECT + 76 + 27 + - 75 - 59
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT DISTINCT + 9 * + 93 + - 3 + + COUNT( ( - - 68 ) ) * - - COUNT( * ) DIV - 56
----
834

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + 9 * + 93 + - 3 + + COUNT ( ( - - 68 ) ) * - - COUNT ( * ) / - 56
----
834

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT + 50 * ( - 3 ) * - - CASE ( - COUNT( * ) ) WHEN + 69 THEN NULL ELSE + - 82 END + 76
----
12376

skipif mysql # not compatible
query I rowsort label-3097
SELECT + 50 * ( - 3 ) * - - CASE ( - COUNT ( * ) ) WHEN + 69 THEN NULL ELSE + - 82 END + 76
----
12376

query I rowsort
SELECT + + 70 + 62 AS col0
----
132

query I rowsort
SELECT + 54 * 92 + + 5
----
4973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL - - COALESCE ( + + MAX( ALL - + 51 ), - CAST( NULL AS SIGNED ) ) * 75
----
-3825

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - - COALESCE ( + + MAX ( ALL - + 51 ), - CAST ( NULL AS INTEGER ) ) * 75
----
-3825

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT MIN( + 82 ) AS col0, + 82
----
82
82

skipif mysql # not compatible
query II rowsort label-3101
SELECT MIN ( + 82 ) AS col0, + 82
----
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT - MAX( ALL - 24 ) + + + 17 * + 89
----
1537

skipif mysql # not compatible
query I rowsort label-3102
SELECT - MAX ( ALL - 24 ) + + + 17 * + 89
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - 41 + - - COUNT( * ) * - 83 col2
----
-124

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 41 + - - COUNT ( * ) * - 83 col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - MAX( - + 64 ) * - - 77 * 17 + - 26 + + 56 * - 13
----
83022

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - MAX ( - + 64 ) * - - 77 * 17 + - 26 + + 56 * - 13
----
83022

query I rowsort
SELECT - 52 * 17 * - 77 AS col2
----
68068

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT ALL MIN( DISTINCT + 41 ) AS col2, - 43 + + + 42 col1
----
41
-1

skipif mysql # not compatible
query II rowsort label-3106
SELECT ALL MIN ( DISTINCT + 41 ) AS col2, - 43 + + + 42 col1
----
41
-1

query I rowsort
SELECT DISTINCT 17 * 26
----
442

query II rowsort
SELECT - 29 + 2 AS col0, - 11 * ( 49 )
----
-27
-539

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

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

query I rowsort
SELECT - 98 * + 68 col1
----
-6664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT - 10 + - 4 + + - COUNT( * ) DIV + - 69 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 10 + - 4 + + - COUNT ( * ) / + - 69 AS col0
----
-14

query I rowsort
SELECT - CASE + 31 WHEN + 48 THEN + 32 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT 44 * - CAST( + 44 AS SIGNED )
----
-1936

skipif mysql # not compatible
query I rowsort label-3113
SELECT 44 * - CAST ( + 44 AS INTEGER )
----
-1936

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT 50 + - - 46 + + 58 DIV 3 - COUNT( * ) + + 57 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-3115
SELECT 50 + - - 46 + + 58 / 3 - COUNT ( * ) + + 57 AS col0
----
171

query I rowsort
SELECT DISTINCT - 49 * + + 2 col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT DISTINCT 89, - 6 + + 52 + 79 - - - 7 * + MAX( - 28 ) + COUNT( * ) * 29 AS col1
----
89
350

skipif mysql # not compatible
query II rowsort label-3117
SELECT DISTINCT 89, - 6 + + 52 + 79 - - - 7 * + MAX ( - 28 ) + COUNT ( * ) * 29 AS col1
----
89
350

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

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

query I rowsort
SELECT + 67 + 75 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + + ( COUNT( * ) ) * - - 92 + + 70 + - 91 * + NULLIF ( 17, 93 )
----
-1385

skipif mysql # not compatible
query I rowsort label-3120
SELECT + + ( COUNT ( * ) ) * - - 92 + + 70 + - 91 * + NULLIF ( 17, 93 )
----
-1385

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT + + 99, - 34 + - + CASE + 73 WHEN 52 * + 77 + + 30 + - CASE + 86 WHEN + 29 + - 90 - - COUNT( * ) THEN - + 95 * 65 WHEN - 17 * 31 - + 99 THEN NULL ELSE 10 - + 85 END * 76 + + 95 - - 48 / + - ( - - 26 ) + - - CASE + + 5 WHEN + - 30 THEN - AVG ( DISTINCT - - 62 ) * + 8 + - 33 WHEN - 18 THEN - 17 ELSE 71 END + 36 THEN NULL ELSE + - 91 + 25 END - 46 AS col1
----
99
-14

skipif mysql # not compatible
query II rowsort label-3121
SELECT + + 99, - 34 + - + CASE + 73 WHEN 52 * + 77 + + 30 + - CASE + 86 WHEN + 29 + - 90 - - COUNT ( * ) THEN - + 95 * 65 WHEN - 17 * 31 - + 99 THEN NULL ELSE 10 - + 85 END * 76 + + 95 - - 48 / + - ( - - 26 ) + - - CASE + + 5 WHEN + - 30 THEN - AVG ( DISTINCT - - 62 ) * + 8 + - 33 WHEN - 18 THEN - 17 ELSE 71 END + 36 THEN NULL ELSE + - 91 + 25 END - 46 AS col1
----
99
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT NULLIF ( - 22, 96 ) DIV + COUNT( - - 32 )
----
-22

skipif mysql # not compatible
query I rowsort label-3122
SELECT NULLIF ( - 22, 96 ) / + COUNT ( - - 32 )
----
-22

query I rowsort
SELECT 58 + 55
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT ALL + + 81 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + + 81 / - 81
----
-1

query I rowsort
SELECT ALL - 45 + - 78 + - - 39 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3126
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * ) + - MIN( 49 ), + 48 AS col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3126
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * ) + - MIN ( 49 ), + 48 AS col2
----
NULL
48

query I rowsort
SELECT ALL ( 11 ) + + + 3 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT + 84, + 74 * + 21 + ( - COUNT( * ) ) + COUNT( * ) AS col0
----
84
1554

skipif mysql # not compatible
query II rowsort label-3128
SELECT + 84, + 74 * + 21 + ( - COUNT ( * ) ) + COUNT ( * ) AS col0
----
84
1554

query I rowsort
SELECT ALL + AVG ( 30 ) + + CASE - 0 WHEN + 44 + + 51 * 27 THEN 30 * + + 42 END - + 15 AS col2
----
NULL

query I rowsort
SELECT 84 * + 16 * 88
----
118272

query I rowsort
SELECT DISTINCT 61 + - + 67 AS col0
----
-6

query I rowsort
SELECT ( ( - 12 ) )
----
-12

query II rowsort
SELECT + 40, - 52 AS col1
----
40
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT 88 + + 39 * + CAST( + 37 AS SIGNED ) AS col0
----
1531

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT 88 + + 39 * + CAST ( + 37 AS INTEGER ) AS col0
----
1531

query I rowsort
SELECT 94 * - ( - 78 ) AS col2
----
7332

query I rowsort
SELECT DISTINCT 76 - - - 88 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT ALL + COUNT( * ) * - 53 AS col2, 48 * ( + - 3 ) * - 89 + 73 AS col0
----
-53
12889

skipif mysql # not compatible
query II rowsort label-3137
SELECT ALL + COUNT ( * ) * - 53 AS col2, 48 * ( + - 3 ) * - 89 + 73 AS col0
----
-53
12889

query I rowsort
SELECT ALL 11 - + 4 + + 79 * + 18
----
1429

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT NULLIF ( - + 89, - + 65 - + 48 * - 69 * 61 * COALESCE ( - COALESCE ( + 36, 78 * - COUNT( * ) / + COUNT( * ) * - 86 + AVG ( DISTINCT - - 16 ), + 35 + + + 89 ), - 4 + 96 * - ( + 64 ) ) ) * + CASE - 16 WHEN - + 49 THEN - CASE WHEN 97 NOT BETWEEN + 17 + COALESCE ( + 90, + 18 + + 7 * - 22 - - 57, 58 ) AND NULL THEN NULL ELSE + + 90 * + 97 - COUNT( * ) END WHEN 43 * 66 THEN + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT NULLIF ( - + 89, - + 65 - + 48 * - 69 * 61 * COALESCE ( - COALESCE ( + 36, 78 * - COUNT ( * ) / + COUNT ( * ) * - 86 + AVG ( DISTINCT - - 16 ), + 35 + + + 89 ), - 4 + 96 * - ( + 64 ) ) ) * + CASE - 16 WHEN - + 49 THEN - CASE WHEN 97 NOT BETWEEN + 17 + COALESCE ( + 90, + 18 + + 7 * - 22 - - 57, 58 ) AND NULL THEN NULL ELSE + + 90 * + 97 - COUNT ( * ) END WHEN 43 * 66 THEN + 0 END AS col1
----
NULL

query II rowsort
SELECT 64 * - 98 AS col0, + 15 + 46 AS col1
----
-6272
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + 16 * - ( - ( - 99 ) ) * - - COALESCE ( 62, - + COUNT( - - 80 ) ) AS col0
----
-98208

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + 16 * - ( - ( - 99 ) ) * - - COALESCE ( 62, - + COUNT ( - - 80 ) ) AS col0
----
-98208

query I rowsort
SELECT DISTINCT - 62 * 21 AS col2
----
-1302

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ( + + 82 ) DIV + + 35 + - - NULLIF ( + 2, - 80 )
----
4

skipif mysql # not compatible
query I rowsort label-3144
SELECT ( + + 82 ) / + + 35 + - - NULLIF ( + 2, - 80 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT 53 * - CAST( 33 AS SIGNED ) * + 62
----
-108438

skipif mysql # not compatible
query I rowsort label-3145
SELECT 53 * - CAST ( 33 AS INTEGER ) * + 62
----
-108438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT DISTINCT SUM( ALL 78 ) * CAST( - - CASE COUNT( * ) WHEN + 7 * - 8 THEN + 19 END AS SIGNED ) + + + MIN( ALL 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT SUM ( ALL 78 ) * CAST ( - - CASE COUNT ( * ) WHEN + 7 * - 8 THEN + 19 END AS INTEGER ) + + + MIN ( ALL 51 )
----
NULL

query I rowsort
SELECT 79 * NULLIF ( + 59, - + 55 )
----
4661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3148
SELECT MAX( ALL 37 ) - + - 68 AS col2, + 48 * - + COALESCE ( - + 91, - 34 * 1 + - CAST( + 50 AS SIGNED ) + + COUNT( * ) ) * + 87 * - 62 DIV 2 + - + 76 * - - COUNT( * ) AS col1
----
105
-11780572

skipif mysql # not compatible
query II rowsort label-3148
SELECT MAX ( ALL 37 ) - + - 68 AS col2, + 48 * - + COALESCE ( - + 91, - 34 * 1 + - CAST ( + 50 AS INTEGER ) + + COUNT ( * ) ) * + 87 * - 62 / 2 + - + 76 * - - COUNT ( * ) AS col1
----
105
-11780572

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

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

query II rowsort
SELECT ALL + - 58 + - - 39 AS col1, - 89 + + 45
----
-19
-44

query I rowsort
SELECT ALL + - 46 + - + 78 AS col2
----
-124

query I rowsort
SELECT DISTINCT - COALESCE ( - 18, + - 7 + - 53 * + + 97, - 64 * ( - 46 ) ) AS col0
----
18

query I rowsort
SELECT DISTINCT - 8 * - + 93 + 52 - + - 59 * - 94 + - 95 AS col0
----
-4845

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

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

query I rowsort
SELECT 83 * + + 35 * - + 21 AS col2
----
-61005

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT MIN( DISTINCT - - 72 ) AS col2, ( - 51 ) AS col1
----
72
-51

skipif mysql # not compatible
query II rowsort label-3156
SELECT MIN ( DISTINCT - - 72 ) AS col2, ( - 51 ) AS col1
----
72
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT ALL - COALESCE ( COUNT( * ), - + 40 DIV 32, - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - COALESCE ( COUNT ( * ), - + 40 / 32, - - 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - NULLIF ( 72, + + COUNT( * ) * ( 37 ) ) + + 92
----
20

skipif mysql # not compatible
query I rowsort label-3158
SELECT - NULLIF ( 72, + + COUNT ( * ) * ( 37 ) ) + + 92
----
20

query I rowsort
SELECT - 95 * + 12 * + 84 + ( - 61 ) AS col1
----
-95821

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT - 8 DIV 56 * ( - 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 8 / 56 * ( - 67 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3161
SELECT ALL 77 - - 79 - + CAST( NULL AS DECIMAL ) / - 93 + + 84 * - CAST( - 41 AS DECIMAL ), - 18 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL 77 - - 79 - + CAST ( NULL AS REAL ) / - 93 + + 84 * - CAST ( - 41 AS REAL ), - 18 AS col1
----
NULL
-18

query I rowsort
SELECT 62 * 33 AS col2
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3163
SELECT ALL + 47 DIV + 60 * + COALESCE ( - 28, - 95, + CASE + 70 WHEN - - 87 + 2 THEN 67 ELSE 52 END * NULLIF ( + COUNT( * ), + + COALESCE ( 35, - + 97 * + 73 DIV + + 37 + - 40, 16 * + COUNT( 12 ) * + - MIN( ALL - + 33 ) DIV - + 23 * - COUNT( * ) + + + 28 + - - 28 ) DIV - 41 ) - - 58 * + 55 + 99 - + CAST( NULL AS SIGNED ) DIV - 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + 47 / + 60 * + COALESCE ( - 28, - 95, + CASE + 70 WHEN - - 87 + 2 THEN 67 ELSE 52 END * NULLIF ( + COUNT ( * ), + + COALESCE ( 35, - + 97 * + 73 / + + 37 + - 40, 16 * + COUNT ( 12 ) * + - MIN ( ALL - + 33 ) / - + 23 * - COUNT ( * ) + + + 28 + - - 28 ) / - 41 ) - - 58 * + 55 + 99 - + CAST ( NULL AS INTEGER ) / - 69 ) AS col1
----
0

query I rowsort
SELECT NULLIF ( + + ( + 46 ), + + 11 * + - 1 ) + + 24
----
70

query I rowsort
SELECT ALL 0 * 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT COUNT( * ) + + + 43 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3166
SELECT COUNT ( * ) + + + 43 AS col1
----
44

query I rowsort
SELECT ALL - CASE - ( + + 1 ) WHEN + COALESCE ( - 90, 70 / + 52 + 21 ) THEN 41 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 77 AS col0, 30 - + 69 AS col1
----
-77
-39

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

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

query II rowsort
SELECT + 5, - 97 AS col2
----
5
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT ALL CASE + 68 WHEN - + 1 + CAST( - ( - 36 ) AS SIGNED ) / COALESCE ( 76, + 40 ) THEN - - 40 END * - 66 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL CASE + 68 WHEN - + 1 + CAST ( - ( - 36 ) AS INTEGER ) / COALESCE ( 76, + 40 ) THEN - - 40 END * - 66 + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + ( + COUNT( * ) ) * COUNT( * ) + + 37 + - ( 42 ) + 86 * - 72 + SUM( DISTINCT 74 ) AS col2
----
-6122

skipif mysql # not compatible
query I rowsort label-3173
SELECT + ( + COUNT ( * ) ) * COUNT ( * ) + + 37 + - ( 42 ) + 86 * - 72 + SUM ( DISTINCT 74 ) AS col2
----
-6122

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT + CASE - CASE - - 28 WHEN - 79 THEN NULL WHEN - + 81 THEN - CASE + NULLIF ( 21, + 75 + + - 82 + - 10 ) WHEN + 83 THEN NULL ELSE + - 17 END - + 41 + + - 31 / + 95 WHEN 95 THEN 2 ELSE 34 END WHEN - - 86 * - COUNT( * ) * COUNT( * ) * 63 + COUNT( * ) / - CAST( 22 AS SIGNED ) THEN + COUNT( * ) END * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT + CASE - CASE - - 28 WHEN - 79 THEN NULL WHEN - + 81 THEN - CASE + NULLIF ( 21, + 75 + + - 82 + - 10 ) WHEN + 83 THEN NULL ELSE + - 17 END - + 41 + + - 31 / + 95 WHEN 95 THEN 2 ELSE 34 END WHEN - - 86 * - COUNT ( * ) * COUNT ( * ) * 63 + COUNT ( * ) / - CAST ( 22 AS INTEGER ) THEN + COUNT ( * ) END * + 50
----
NULL

query I rowsort
SELECT + 51 + + 2 col2
----
53

query II rowsort
SELECT ALL ( + + 58 ) * - + ( + + CASE WHEN NOT ( NULL ) NOT BETWEEN AVG ( DISTINCT - 4 ) AND - 69 THEN + 62 - - 58 END ) col0, 76 AS col1
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT - COALESCE ( - 32, + COUNT( * ) ) AS col1, - 4 AS col1
----
32
-4

skipif mysql # not compatible
query II rowsort label-3178
SELECT - COALESCE ( - 32, + COUNT ( * ) ) AS col1, - 4 AS col1
----
32
-4

query II rowsort
SELECT + ( - 19 ) * + + 9 AS col1, 62 - + 43 AS col0
----
-171
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT + ( - ( - + 7 ) ) DIV 53 * + + 36 col2
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT + ( - ( - + 7 ) ) / 53 * + + 36 col2
----
0

query I rowsort
SELECT + COALESCE ( + 29, + + 42 * + 98 + + 23 * 71, + + 27 ) + + + 91
----
120

query I rowsort
SELECT + 80 - 75
----
5

query I rowsort
SELECT ALL 91 + - + 27 AS col1
----
64

query I rowsort
SELECT + 97 + + - 88
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - COUNT( * ) - + 25 * - + 77 * MAX( + 98 ) * - 67
----
-12639551

skipif mysql # not compatible
query I rowsort label-3185
SELECT - COUNT ( * ) - + 25 * - + 77 * MAX ( + 98 ) * - 67
----
-12639551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT DISTINCT + 23 + - 51 * + CAST( + 14 AS SIGNED )
----
-691

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + 23 + - 51 * + CAST ( + 14 AS INTEGER )
----
-691

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT + 93 DIV - + 90
----
-1

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 93 / - + 90
----
-1

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

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - COUNT ( * ) + 99 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT 80 + + - 74 + + + COUNT( * ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT 80 + + - 74 + + + COUNT ( * ) col1
----
7

query I rowsort
SELECT + - 9 * - ( - 64 ) AS col1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL COUNT( + - 50 ) + + 97 * 62 AS col2
----
6015

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL COUNT ( + - 50 ) + + 97 * 62 AS col2
----
6015

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL + 29 * + CASE + 56 WHEN - 78 THEN + - COUNT( DISTINCT - 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + 29 * + CASE + 56 WHEN - 78 THEN + - COUNT ( DISTINCT - 90 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3194
SELECT ALL + NULLIF ( + + ( - - MIN( ALL - 85 ) ), - 34 ) + 88 AS col1, 6 - + - 89
----
3
95

skipif mysql # not compatible
query II rowsort label-3194
SELECT ALL + NULLIF ( + + ( - - MIN ( ALL - 85 ) ), - 34 ) + 88 AS col1, 6 - + - 89
----
3
95

query I rowsort
SELECT DISTINCT + + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - MAX( 39 ) + - + 87 - - - 68 + 74
----
-120

skipif mysql # not compatible
query I rowsort label-3196
SELECT - MAX ( 39 ) + - + 87 - - - 68 + 74
----
-120

query III rowsort
SELECT COALESCE ( 50, - - 18 ) col0, - 36 AS col2, - 96
----
50
-36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT CASE - 63 WHEN - 69 THEN NULL ELSE - COUNT( * ) * + - 84 END
----
84

skipif mysql # not compatible
query I rowsort label-3198
SELECT CASE - 63 WHEN - 69 THEN NULL ELSE - COUNT ( * ) * + - 84 END
----
84

query I rowsort
SELECT DISTINCT + - 70 AS col1
----
-70

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

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

query II rowsort
SELECT ALL - 88 * + NULLIF ( - 11, - 7 + + - 8 + - ( 88 ) ) - 12 AS col0, + 38
----
956
38

onlyif mysql # aggregate syntax: 
query III rowsort label-3202
SELECT DISTINCT + 52 * + - 22 * 20 + - + 66, - ( - + 57 ) AS col2, COUNT( * ) * + 25 * + MIN( + + 28 ) + + - COUNT( 61 ) + - + 6 - 53 * 24 AS col2
----
-22946
57
-579

skipif mysql # not compatible
query III rowsort label-3202
SELECT DISTINCT + 52 * + - 22 * 20 + - + 66, - ( - + 57 ) AS col2, COUNT ( * ) * + 25 * + MIN ( + + 28 ) + + - COUNT ( 61 ) + - + 6 - 53 * 24 AS col2
----
-22946
57
-579

query I rowsort
SELECT DISTINCT + COALESCE ( - + 11, + + 62 ) AS col2
----
-11

query II rowsort
SELECT DISTINCT + 34 * + 79, - 11 * + 39 - + + 40 AS col2
----
2686
-469

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

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

query I rowsort
SELECT 43 * - 4 - 43
----
-215

query I rowsort
SELECT COALESCE ( 0, - - 97 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + CASE 15 WHEN 98 * + - 9 THEN + AVG ( ALL + ( 5 ) ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT - 87 DIV + - 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 87 / + - 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT COALESCE ( COUNT( * ), + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-3210
SELECT COALESCE ( COUNT ( * ), + 79 )
----
1

query I rowsort
SELECT DISTINCT 6 * - 7 + + ( 1 ) - - + 56 + + 96 AS col1
----
111

query I rowsort
SELECT ALL ( + 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COALESCE ( - + NULLIF ( + 96, - + 33 + + 55 / - + 30 * - COUNT( * ) + COALESCE ( - - 84, - 64 / - - 85, 39 * - 25 - - 91 ) + + + 4 ), + 25 * 83 ) * + 52
----
-4992

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COALESCE ( - + NULLIF ( + 96, - + 33 + + 55 / - + 30 * - COUNT ( * ) + COALESCE ( - - 84, - 64 / - - 85, 39 * - 25 - - 91 ) + + + 4 ), + 25 * 83 ) * + 52
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL 49 * - 74 * + - 10 + + + COUNT( * ) AS col2
----
36261

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL 49 * - 74 * + - 10 + + + COUNT ( * ) AS col2
----
36261

query II rowsort
SELECT ALL + 17 + + 7 col1, + 82
----
24
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT - CASE - - 4 WHEN + - 32 * + 32 THEN NULLIF ( - 11, - 99 ) + CASE + - 56 WHEN - 11 * 46 THEN - 67 END + + NULLIF ( + + MAX( + 76 ), - COUNT( * ) * - 12 + - + COUNT( * ) ) * + 58 / + 19 * - CAST( - 8 AS SIGNED ) WHEN - + 90 THEN NULL WHEN + 72 THEN NULL END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT - CASE - - 4 WHEN + - 32 * + 32 THEN NULLIF ( - 11, - 99 ) + CASE + - 56 WHEN - 11 * 46 THEN - 67 END + + NULLIF ( + + MAX ( + 76 ), - COUNT ( * ) * - 12 + - + COUNT ( * ) ) * + 58 / + 19 * - CAST ( - 8 AS INTEGER ) WHEN - + 90 THEN NULL WHEN + 72 THEN NULL END + - 16
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3218
SELECT - CASE + 82 WHEN 61 + - NULLIF ( - + 55, - 66 ) + - - 5 * + + 33 * 30 - - NULLIF ( + 65, + - 38 ) THEN CAST( + 71 AS SIGNED ) WHEN COUNT( * ) THEN + - 67 * COUNT( * ) WHEN - COUNT( * ) * + COUNT( - 44 ) + - - ( 7 ) THEN NULL END * + SUM( DISTINCT + 44 ) col0, + NULLIF ( + - 34, - + 27 )
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-3218
SELECT - CASE + 82 WHEN 61 + - NULLIF ( - + 55, - 66 ) + - - 5 * + + 33 * 30 - - NULLIF ( + 65, + - 38 ) THEN CAST ( + 71 AS INTEGER ) WHEN COUNT ( * ) THEN + - 67 * COUNT ( * ) WHEN - COUNT ( * ) * + COUNT ( - 44 ) + - - ( 7 ) THEN NULL END * + SUM ( DISTINCT + 44 ) col0, + NULLIF ( + - 34, - + 27 )
----
NULL
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + COUNT( 23 ) - + COUNT( ALL - + 73 ) + - - 58 * + 24 col0
----
1392

skipif mysql # not compatible
query I rowsort label-3219
SELECT + COUNT ( 23 ) - + COUNT ( ALL - + 73 ) + - - 58 * + 24 col0
----
1392

query I rowsort
SELECT + 38 * 97 AS col2
----
3686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL COALESCE ( 30, - 36, - 87, + - CAST( 5 AS SIGNED ) * - - 99 )
----
30

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COALESCE ( 30, - 36, - 87, + - CAST ( 5 AS INTEGER ) * - - 99 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT ALL + COUNT( * ) * - COUNT( * ) + - - 45 - + + CASE - COUNT( * ) WHEN 40 THEN NULL WHEN - 74 THEN - COALESCE ( - COUNT( * ), - + AVG ( + 47 ) ) + - 3 * 37 / + 24 END * + 60 * - 23 + - - 94 AS col2, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - - 45 - + + CASE - COUNT ( * ) WHEN 40 THEN NULL WHEN - 74 THEN - COALESCE ( - COUNT ( * ), - + AVG ( + 47 ) ) + - 3 * 37 / + 24 END * + 60 * - 23 + - - 94 AS col2, + 91
----
NULL
91

query I rowsort
SELECT ALL 30 + + 5 + - + 73 AS col1
----
-38

query I rowsort
SELECT + - 63 + - - 62 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT - COUNT( - - 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - COUNT ( - - 78 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL + 36 - - 17 / + CASE - 59 WHEN - + 8 / - 66 * CAST( - 30 AS SIGNED ) - 37 + AVG ( DISTINCT + ( + 60 ) ) THEN + 61 * + + 69 ELSE NULL END * + 67 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + 36 - - 17 / + CASE - 59 WHEN - + 8 / - 66 * CAST ( - 30 AS INTEGER ) - 37 + AVG ( DISTINCT + ( + 60 ) ) THEN + 61 * + + 69 ELSE NULL END * + 67 + - COUNT ( * )
----
NULL

query I rowsort
SELECT + - ( 90 ) - + 6
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL + 75 - - - 94 * + COUNT( * ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + 75 - - - 94 * + COUNT ( * ) col2
----
-19

query II rowsort
SELECT + + 37 * - ( 48 ) * + 44, + 56 AS col2
----
-78144
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL 99 * + 8 + + COUNT( * )
----
793

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL 99 * + 8 + + COUNT ( * )
----
793

query I rowsort
SELECT ALL 12 * - ( + - 74 ) * 57 AS col0
----
50616

query I rowsort
SELECT + 0 * 88 col1
----
0

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

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

query I rowsort
SELECT + 94 + + - 80 AS col1
----
14

query I rowsort
SELECT + 70 + + 55 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - COUNT( DISTINCT + 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( DISTINCT + 93 )
----
-1

query I rowsort
SELECT 84 * + 65 + - 17
----
5443

query I rowsort
SELECT DISTINCT - 3 + + - 4
----
-7

query I rowsort
SELECT ALL + 48 + + - 90
----
-42

query I rowsort
SELECT + 14 * - 62 + - 18 col2
----
-886

query I rowsort
SELECT ALL - 85 + + 0 AS col1
----
-85

query I rowsort
SELECT DISTINCT + 30 + - + ( - + NULLIF ( - 37, 18 ) ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT 69 DIV + 15
----
4

skipif mysql # not compatible
query I rowsort label-3244
SELECT 69 / + 15
----
4

query I rowsort
SELECT DISTINCT - 3 + 72 * 64 AS col1
----
4605

query I rowsort
SELECT ALL - 85 + 20 AS col2
----
-65

query I rowsort
SELECT 53 * - 28 AS col0
----
-1484

query II rowsort
SELECT 12 AS col2, - 3
----
12
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT 78 * - CAST( NULL AS SIGNED ) / COALESCE ( + COUNT( * ), 98 * 79 + - + COALESCE ( - COUNT( * ), 39, - - 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT 78 * - CAST ( NULL AS INTEGER ) / COALESCE ( + COUNT ( * ), 98 * 79 + - + COALESCE ( - COUNT ( * ), 39, - - 91 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3251
SELECT ALL - COUNT( * ) DIV 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - COUNT ( * ) / 20 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL + 86 + - + 4 + + 96 * - CAST( COUNT( * ) AS SIGNED ) + - + 91 - + + 36 * COUNT( * ) + - + 85 AS col0
----
-226

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + 86 + - + 4 + + 96 * - CAST ( COUNT ( * ) AS INTEGER ) + - + 91 - + + 36 * COUNT ( * ) + - + 85 AS col0
----
-226

query II rowsort
SELECT ALL 35 AS col1, + 22
----
35
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT COUNT( ALL - 35 ) + + 86 + - 47 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3254
SELECT COUNT ( ALL - 35 ) + + 86 + - 47 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3255
SELECT + ( 61 ) - - 6 + + + CAST( 86 AS SIGNED ) + + 35 DIV 43 * - 31 * + ( - 21 ) col2
----
153

skipif mysql # not compatible
query I rowsort label-3255
SELECT + ( 61 ) - - 6 + + + CAST ( 86 AS INTEGER ) + + 35 / 43 * - 31 * + ( - 21 ) col2
----
153

query I rowsort
SELECT + 77 + + 38
----
115

query I rowsort
SELECT 35 - + 49
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT COUNT( * ) - - 8
----
9

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT COUNT ( * ) - - 8
----
9

query I rowsort
SELECT ALL + 46 * + 81 + + 77 * - + 97 * + 33 + - 92 AS col0
----
-242843

query I rowsort
SELECT DISTINCT - - 17 * - 16
----
-272

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

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

query I rowsort
SELECT + 54 * 71
----
3834

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL - 19 DIV + + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 19 / + + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3264
SELECT + + COUNT( * ) AS col0, + 6 * 50
----
1
300

skipif mysql # not compatible
query II rowsort label-3264
SELECT + + COUNT ( * ) AS col0, + 6 * 50
----
1
300

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT DISTINCT 32 DIV + 46 + + + 64 * - 23
----
-1472

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT 32 / + 46 + + + 64 * - 23
----
-1472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT COUNT( * ) / + 54 * + - CASE + 37 WHEN - - COUNT( * ) THEN - + SUM( ALL - 43 ) ELSE NULL END + + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT COUNT ( * ) / + 54 * + - CASE + 37 WHEN - - COUNT ( * ) THEN - + SUM ( ALL - 43 ) ELSE NULL END + + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT 70, - 76 + - COUNT( * ) AS col0
----
70
-77

skipif mysql # not compatible
query II rowsort label-3268
SELECT 70, - 76 + - COUNT ( * ) AS col0
----
70
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL 34 + 90 + + - 91 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL 34 + 90 + + - 91 * + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT 93 + - - SUM( + + 61 ) * + + COUNT( * ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT 93 + - - SUM ( + + 61 ) * + + COUNT ( * ) AS col0
----
154

query I rowsort
SELECT ALL COALESCE ( 33, - 36 ) + + 22 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3273
SELECT DISTINCT 40 + 43 + + + 13 DIV - 21 * COALESCE ( + 83, - - 97, - 80 + COUNT( * ) DIV SUM( - + 19 ) * 9 DIV + ( + 75 ) - - ( 82 ) * + - 14 + ( 11 ) + + COUNT( * ) * - 39 * + + CAST( NULL AS SIGNED ), COUNT( * ) * - 4 )
----
83

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT 40 + 43 + + + 13 / - 21 * COALESCE ( + 83, - - 97, - 80 + COUNT ( * ) / SUM ( - + 19 ) * 9 / + ( + 75 ) - - ( 82 ) * + - 14 + ( 11 ) + + COUNT ( * ) * - 39 * + + CAST ( NULL AS INTEGER ), COUNT ( * ) * - 4 )
----
83

query I rowsort
SELECT ALL 98 + COALESCE ( CASE - 17 WHEN + + 51 THEN + ( 71 ) ELSE NULL END, + 67, - 74 * - NULLIF ( ( - - 86 ), - 55 ) ) AS col2
----
165

query I rowsort
SELECT ALL 75 + - 76 * + - 46
----
3571

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + 85 * - + 96 - + - COUNT( * ) AS col0
----
-8159

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 85 * - + 96 - + - COUNT ( * ) AS col0
----
-8159

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT 63 * + - MAX( DISTINCT 50 ) AS col0
----
-3150

skipif mysql # not compatible
query I rowsort label-3277
SELECT 63 * + - MAX ( DISTINCT 50 ) AS col0
----
-3150

query I rowsort
SELECT 98 * - - 24 AS col2
----
2352

query I rowsort
SELECT 4 + 78 + 38
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - MIN( + 63 ) + - 22 + 89 - 52 + - - 92 * + 10 + + - 49
----
823

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - MIN ( + 63 ) + - 22 + 89 - 52 + - - 92 * + 10 + + - 49
----
823

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

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - 54 - - + COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT 88 - 67 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT ALL - 23, CASE + - 80 WHEN + - 19 - + - 65 * - 17 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 30 THEN - 49 ELSE NULL END + - 80 AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL - 23, CASE + - 80 WHEN + - 19 - + - 65 * - 17 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 30 THEN - 49 ELSE NULL END + - 80 AS col1
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT DISTINCT - COUNT( * ) AS col0, - 55 + - ( + + 28 ) * - 63 AS col2
----
-1
1709

skipif mysql # not compatible
query II rowsort label-3284
SELECT DISTINCT - COUNT ( * ) AS col0, - 55 + - ( + + 28 ) * - 63 AS col2
----
-1
1709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT + 46 * - COALESCE ( 63, 92 ) - + - 22 - - CASE 16 WHEN + 24 THEN 87 * + CAST( NULL AS SIGNED ) WHEN - 69 THEN NULL END - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 46 * - COALESCE ( 63, 92 ) - + - 22 - - CASE 16 WHEN + 24 THEN 87 * + CAST ( NULL AS INTEGER ) WHEN - 69 THEN NULL END - + 62
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - COUNT( ALL 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COUNT ( ALL 6 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL - - COUNT( * ) - - 34 - - 98 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - - COUNT ( * ) - - 34 - - 98 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3289
SELECT ALL + COUNT( DISTINCT + - CAST( - - ( - 13 ) AS DECIMAL ) ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL + COUNT ( DISTINCT + - CAST ( - - ( - 13 ) AS REAL ) ), + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + 52 + NULLIF ( - - 92, - COUNT( * ) )
----
144

skipif mysql # not compatible
query I rowsort label-3290
SELECT + 52 + NULLIF ( - - 92, - COUNT ( * ) )
----
144

query II rowsort
SELECT 96 AS col1, + 14
----
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-3292
SELECT ALL + 16 AS col1, 36 DIV + 23
----
16
1

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL + 16 AS col1, 36 / + 23
----
16
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT + 86 AS col0, NULLIF ( - + 5, + + NULLIF ( - + MIN( ALL + 64 ), 61 + + - 56 ) + - 37 + - - 84 )
----
86
-5

skipif mysql # not compatible
query II rowsort label-3293
SELECT + 86 AS col0, NULLIF ( - + 5, + + NULLIF ( - + MIN ( ALL + 64 ), 61 + + - 56 ) + - 37 + - - 84 )
----
86
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + 66 + 4 - + COUNT( DISTINCT - + 72 ) + + COUNT( * ) + + 65 + + 39 * - 20 * + SUM( - 16 )
----
12615

skipif mysql # not compatible
query I rowsort label-3294
SELECT + 66 + 4 - + COUNT ( DISTINCT - + 72 ) + + COUNT ( * ) + + 65 + + 39 * - 20 * + SUM ( - 16 )
----
12615

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

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

query I rowsort
SELECT 50 + + 21
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT ALL + 26 DIV - 29 + + + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + 26 / - 29 + + + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT DISTINCT - MAX( ALL + 89 ) col2, + 3
----
-89
3

skipif mysql # not compatible
query II rowsort label-3298
SELECT DISTINCT - MAX ( ALL + 89 ) col2, + 3
----
-89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - 34 * - + 95 + 24 * - MAX( + 15 ) AS col0
----
2870

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - 34 * - + 95 + 24 * - MAX ( + 15 ) AS col0
----
2870

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL NULLIF ( 20, - COUNT( * ) * - COUNT( * ) + + - 0 * - + CASE - - 33 WHEN 30 THEN - 43 - ( 36 ) WHEN - 51 + - + 2 THEN - + 92 END ) col1
----
20

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL NULLIF ( 20, - COUNT ( * ) * - COUNT ( * ) + + - 0 * - + CASE - - 33 WHEN 30 THEN - 43 - ( 36 ) WHEN - 51 + - + 2 THEN - + 92 END ) col1
----
20

query II rowsort
SELECT 8 + - 94 + - 53 * - 72 AS col0, + 32 AS col0
----
3730
32

query II rowsort
SELECT - + 24 col0, + 89 + - 2 AS col0
----
-24
87

query II rowsort
SELECT + COALESCE ( + 77, + + 4, - - 66 ) AS col0, 87 AS col0
----
77
87

query II rowsort
SELECT ALL 83 AS col2, 86 * + 1
----
83
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT - COUNT( * ) + - + 34
----
-35

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - COUNT ( * ) + - + 34
----
-35

query I rowsort
SELECT ALL 59 + 79 + - 69
----
69

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT + 23 * - - COUNT( * ) + - 12
----
11

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + 23 * - - COUNT ( * ) + - 12
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT + MAX( DISTINCT + - ( 11 ) ) DIV + ( 83 ) * + 66 + - - 81
----
81

skipif mysql # not compatible
query I rowsort label-3311
SELECT + MAX ( DISTINCT + - ( 11 ) ) / + ( 83 ) * + 66 + - - 81
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT - 6 DIV 52 + 37 * - 14 + + COUNT( - + 64 ) col0
----
-517

skipif mysql # not compatible
query I rowsort label-3312
SELECT - 6 / 52 + 37 * - 14 + + COUNT ( - + 64 ) col0
----
-517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3313
SELECT CASE - + 38 WHEN + COUNT( * ) * COUNT( * ) + - CAST( NULL AS DECIMAL ) * - - 81 THEN NULL WHEN - + NULLIF ( + CASE - - 23 WHEN + - 38 THEN + COUNT( * ) + - 9 END, + 70 + + CAST( MIN( DISTINCT + 83 ) AS SIGNED ) + - 81 * + - 27 * - 32 * - 83 * 57 * - 87 ) / 32 - + 27 THEN 54 + + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT CASE - + 38 WHEN + COUNT ( * ) * COUNT ( * ) + - CAST ( NULL AS REAL ) * - - 81 THEN NULL WHEN - + NULLIF ( + CASE - - 23 WHEN + - 38 THEN + COUNT ( * ) + - 9 END, + 70 + + CAST ( MIN ( DISTINCT + 83 ) AS INTEGER ) + - 81 * + - 27 * - 32 * - 83 * 57 * - 87 ) / 32 - + 27 THEN 54 + + 55 END
----
NULL

query I rowsort
SELECT - 81 + - - 60 AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT + 18 * 34 DIV + 68 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 18 * 34 / + 68 + - COUNT ( * )
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3317
SELECT ALL COUNT( * ) * + - 3 DIV 91 - + 36 + + CAST( 60 AS SIGNED ) + - 49 + + 41 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL COUNT ( * ) * + - 3 / 91 - + 36 + + CAST ( 60 AS INTEGER ) + - 49 + + 41 AS col1
----
16

query I rowsort
SELECT ALL 33 * + + 13 AS col0
----
429

query I rowsort
SELECT DISTINCT 50 * 1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT MAX( - - 41 ) col2, 59 AS col1
----
41
59

skipif mysql # not compatible
query II rowsort label-3320
SELECT MAX ( - - 41 ) col2, 59 AS col1
----
41
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT COALESCE ( 55, - 77, - 87 + CASE 26 WHEN 69 + + - NULLIF ( - - 4, 24 * + + 62 ) * + ( 10 ) THEN 39 ELSE - COUNT( * ) * - 40 END + 59 DIV 27 ) col1
----
55

skipif mysql # not compatible
query I rowsort label-3321
SELECT COALESCE ( 55, - 77, - 87 + CASE 26 WHEN 69 + + - NULLIF ( - - 4, 24 * + + 62 ) * + ( 10 ) THEN 39 ELSE - COUNT ( * ) * - 40 END + 59 / 27 ) col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT DISTINCT - - 70 * + 50 / + - COUNT( * ) + + 36 - - + 65 + CAST( NULL AS SIGNED ) + + 96 * - + 99 + CASE 44 WHEN + - 10 THEN - 58 * - 82 WHEN MAX( DISTINCT - 34 ) * + 16 + - - COUNT( * ) * - 21 THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - - 70 * + 50 / + - COUNT ( * ) + + 36 - - + 65 + CAST ( NULL AS INTEGER ) + + 96 * - + 99 + CASE 44 WHEN + - 10 THEN - 58 * - 82 WHEN MAX ( DISTINCT - 34 ) * + 16 + - - COUNT ( * ) * - 21 THEN + 53 END
----
NULL

query I rowsort
SELECT ALL + - 76 col0
----
-76

query I rowsort
SELECT 74 * - 1 - 12 + + 79 + - - 3
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT - ( - 27 ) + + 11 + - ( + 39 ) + + MIN( ALL - 55 ) - - 49 + - 25 DIV + ( COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-3325
SELECT - ( - 27 ) + + 11 + - ( + 39 ) + + MIN ( ALL - 55 ) - - 49 + - 25 / + ( COUNT ( * ) )
----
-32

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

skipif mysql # not compatible
query I rowsort label-3326
SELECT COUNT ( DISTINCT + - 83 ) AS col1
----
1

query I rowsort
SELECT - 33 + ( 17 ) col2
----
-16

query I rowsort
SELECT ALL + 30 * + 35 AS col2
----
1050

query I rowsort
SELECT + - 24 * - 64 AS col2
----
1536

query I rowsort
SELECT DISTINCT + - 67 * COALESCE ( 6, - 24 + - 67 ) col0
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL COALESCE ( 34, COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL COALESCE ( 34, COUNT ( * ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + - 17 * + - 91 + + 27 * + - COUNT( * )
----
1520

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + - 17 * + - 91 + + 27 * + - COUNT ( * )
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT ALL CAST( + + 2 AS SIGNED ) + - 72 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL CAST ( + + 2 AS INTEGER ) + - 72 AS col2
----
-70

query I rowsort
SELECT DISTINCT + 36 * + 28
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + SUM( - 7 ) + - SUM( ALL - 15 )
----
8

skipif mysql # not compatible
query I rowsort label-3335
SELECT + SUM ( - 7 ) + - SUM ( ALL - 15 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - + 67 - - COUNT( * ) * + - ( + + 36 )
----
-103

skipif mysql # not compatible
query I rowsort label-3336
SELECT - + 67 - - COUNT ( * ) * + - ( + + 36 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT MIN( DISTINCT 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3337
SELECT MIN ( DISTINCT 7 ) col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3338
SELECT ALL CAST( NULL AS SIGNED ) col1, - 47 col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL CAST ( NULL AS INTEGER ) col1, - 47 col0
----
NULL
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT ALL - 17 + 72 + 52 * CAST( + + 75 AS SIGNED ) AS col1
----
3955

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - 17 + 72 + 52 * CAST ( + + 75 AS INTEGER ) AS col1
----
3955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3340
SELECT ALL + COUNT( * ) * - COUNT( ALL + CAST( + + 29 AS SIGNED ) ) * + 72 * + - COUNT( * ) + - 11 DIV - - 96 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + COUNT ( * ) * - COUNT ( ALL + CAST ( + + 29 AS INTEGER ) ) * + 72 * + - COUNT ( * ) + - 11 / - - 96 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT - CAST( - - 40 AS SIGNED ) + - 87
----
-127

skipif mysql # not compatible
query I rowsort label-3341
SELECT - CAST ( - - 40 AS INTEGER ) + - 87
----
-127

query I rowsort
SELECT ALL + 53 + - 88
----
-35

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

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

query I rowsort
SELECT - 11 * - 74 AS col2
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT - MIN( + 67 ) * 55 DIV ( - 69 ) * 92 - - 88
----
4964

skipif mysql # not compatible
query I rowsort label-3345
SELECT - MIN ( + 67 ) * 55 / ( - 69 ) * 92 - - 88
----
4964

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT - CASE - 52 WHEN + - SUM( DISTINCT - 60 ) * - 79 + - + COUNT( * ) THEN - - NULLIF ( + COUNT( * ), - + 40 / - 44 ) WHEN ( + - 5 ) * + COALESCE ( - 30, + + 34 ) THEN NULL ELSE NULL END + COUNT( * ) + - ( + 12 ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT - CASE - 52 WHEN + - SUM ( DISTINCT - 60 ) * - 79 + - + COUNT ( * ) THEN - - NULLIF ( + COUNT ( * ), - + 40 / - 44 ) WHEN ( + - 5 ) * + COALESCE ( - 30, + + 34 ) THEN NULL ELSE NULL END + COUNT ( * ) + - ( + 12 ) + + 68
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 72 * + 78
----
5616

query II rowsort
SELECT + 12 col2, ( 83 ) AS col1
----
12
83

query I rowsort
SELECT ALL + 81 * 88
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT CAST( NULL AS SIGNED ), + 35 * + 1 AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3351
SELECT CAST ( NULL AS INTEGER ), + 35 * + 1 AS col1
----
NULL
35

query II rowsort
SELECT ALL + 62 AS col0, 99 col1
----
62
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT + 21 * - 42 * - + ( CAST( 30 AS SIGNED ) ) AS col0
----
26460

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 21 * - 42 * - + ( CAST ( 30 AS INTEGER ) ) AS col0
----
26460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - 91 - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 91 - COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT ( + - 48 )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT 45 * - ( + 73 ) + + - SUM( ALL + 69 ) - + 63 * + 4
----
-3606

skipif mysql # not compatible
query I rowsort label-3358
SELECT 45 * - ( + 73 ) + + - SUM ( ALL + 69 ) - + 63 * + 4
----
-3606

query II rowsort
SELECT 88 col1, 48 AS col1
----
88
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3360
SELECT ALL + 48 DIV + + 65 * - 31 AS col2, + 86
----
0
86

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL + 48 / + + 65 * - 31 AS col2, + 86
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + - 78 - COALESCE ( + - COUNT( * ), NULLIF ( - + 61, + - 55 * - 76 ), 32 ) * - 41 col2
----
-119

skipif mysql # not compatible
query I rowsort label-3361
SELECT + - 78 - COALESCE ( + - COUNT ( * ), NULLIF ( - + 61, + - 55 * - 76 ), 32 ) * - 41 col2
----
-119

query II rowsort
SELECT 31 col1, - 69 AS col0
----
31
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT DISTINCT - 17 * + + 77 + + + MAX( - + 5 ) AS col1
----
-1314

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT - 17 * + + 77 + + + MAX ( - + 5 ) AS col1
----
-1314

query I rowsort
SELECT ALL 54 * + - 45 AS col1
----
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL + - CAST( NULL AS SIGNED ) * 64 - - - 71 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + - CAST ( NULL AS INTEGER ) * 64 - - - 71 + 72
----
NULL

query I rowsort
SELECT DISTINCT ( + 69 ) col0
----
69

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3368
SELECT ALL + 48 AS col2, 91 * 32 DIV + - ( + 6 )
----
48
-485

skipif mysql # not compatible
query II rowsort label-3368
SELECT ALL + 48 AS col2, 91 * 32 / + - ( + 6 )
----
48
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - - MIN( - - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3369
SELECT - - MIN ( - - 74 ) AS col2
----
74

query I rowsort
SELECT + 29 + + + 15 AS col1
----
44

query I rowsort
SELECT - NULLIF ( 65, + - 82 + + + 47 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT 81 * 61 + 11 + + COUNT( * ) col0
----
4953

skipif mysql # not compatible
query I rowsort label-3372
SELECT 81 * 61 + 11 + + COUNT ( * ) col0
----
4953

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

query I rowsort
SELECT DISTINCT + 13 + - - 90
----
103

query I rowsort
SELECT 30 * 33
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3376
SELECT ALL + 91 * - + 8 * + - COUNT( * ) + + 46 + - 17 - COUNT( * ) + + 90 * - + COALESCE ( - + CAST( - CAST( 14 AS DECIMAL ) AS DECIMAL ), - + 9 * + + 18 + - 21 - 98 / + 97 * 9 ) * + + 73 / + 34 * 43 * + NULLIF ( + + 92, CAST( 48 AS SIGNED ) + - 99 + 82 - + - 30 ) * - SUM( ALL CAST( NULL AS SIGNED ) ) + 9 * - 38 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + 91 * - + 8 * + - COUNT ( * ) + + 46 + - 17 - COUNT ( * ) + + 90 * - + COALESCE ( - + CAST ( - CAST ( 14 AS REAL ) AS REAL ), - + 9 * + + 18 + - 21 - 98 / + 97 * 9 ) * + + 73 / + 34 * 43 * + NULLIF ( + + 92, CAST ( 48 AS INTEGER ) + - 99 + 82 - + - 30 ) * - SUM ( ALL CAST ( NULL AS INTEGER ) ) + 9 * - 38 + + 36
----
NULL

query I rowsort
SELECT ALL 76 * + 21 AS col1
----
1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT CAST( - 74 AS SIGNED ) + - 82
----
-156

skipif mysql # not compatible
query I rowsort label-3378
SELECT CAST ( - 74 AS INTEGER ) + - 82
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3379
SELECT 89 * + - 32 * MIN( 49 ) DIV + + 1 col2
----
-139552

skipif mysql # not compatible
query I rowsort label-3379
SELECT 89 * + - 32 * MIN ( 49 ) / + + 1 col2
----
-139552

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3380
SELECT ALL + 86 - + 55 - - MIN( - - 91 ) * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + 86 - + 55 - - MIN ( - - 91 ) * - CAST ( NULL AS REAL ) col0
----
NULL

query II rowsort
SELECT 72 * 1, + 22 col1
----
72
22

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

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - COUNT ( * ) / - 38
----
0

query II rowsort
SELECT 88 - 2 col0, - 41
----
86
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT - CASE - 56 WHEN COUNT( * ) + - ( - 7 ) THEN + + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - CASE - 56 WHEN COUNT ( * ) + - ( - 7 ) THEN + + 82 END
----
NULL

query I rowsort
SELECT ALL - ( 63 ) * 83
----
-5229

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - MIN( + 41 ) * + 37 AS col1
----
-1517

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - MIN ( + 41 ) * + 37 AS col1
----
-1517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT 88 + - COUNT( * ) * + 44 DIV - ( + 76 )
----
88

skipif mysql # not compatible
query I rowsort label-3388
SELECT 88 + - COUNT ( * ) * + 44 / - ( + 76 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT 23 DIV - 10 - + 46
----
-48

skipif mysql # not compatible
query I rowsort label-3389
SELECT 23 / - 10 - + 46
----
-48

query I rowsort
SELECT ALL + 32 * + - 91 * 16 AS col0
----
-46592

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3392
SELECT ALL + COUNT( * ) * + + 3, 57 * 76 DIV + - 28 col2
----
3
-154

skipif mysql # not compatible
query II rowsort label-3392
SELECT ALL + COUNT ( * ) * + + 3, 57 * 76 / + - 28 col2
----
3
-154

query II rowsort
SELECT - 97 * - 5 AS col0, + 5
----
485
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT - COALESCE ( NULLIF ( 17, + COUNT( * ) / + + 63 ), + 69 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - COALESCE ( NULLIF ( 17, + COUNT ( * ) / + + 63 ), + 69 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL - - ( + - 12 ) + + 41 - - - SUM( ALL + + 85 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - - ( + - 12 ) + + 41 - - - SUM ( ALL + + 85 ) col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT DISTINCT - - 96 + - 61 DIV + 85 * + NULLIF ( + 91, - 31 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - - 96 + - 61 / + 85 * + NULLIF ( + 91, - 31 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT - + COUNT( * ) + - 17 * + + 71 * - 75 + 47 AS col0
----
90571

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - + COUNT ( * ) + - 17 * + + 71 * - 75 + 47 AS col0
----
90571

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT - 44 + + 99 AS col2, 35 + + COUNT( * ) + + - 74 AS col0
----
55
-38

skipif mysql # not compatible
query II rowsort label-3399
SELECT - 44 + + 99 AS col2, 35 + + COUNT ( * ) + + - 74 AS col0
----
55
-38

query I rowsort
SELECT 76 * ( - 3 ) - 72
----
-300

query I rowsort
SELECT + 18 + + 43 * - 18
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL + CASE - 94 WHEN - - 63 THEN NULL ELSE + 97 * 25 + + COUNT( * ) END * 71 col2
----
172246

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + CASE - 94 WHEN - - 63 THEN NULL ELSE + 97 * 25 + + COUNT ( * ) END * 71 col2
----
172246

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL 10 * - 63 * - - 94 + - + COUNT( * ) + + 91, + 27 + + 72 AS col2
----
-59130
99

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL 10 * - 63 * - - 94 + - + COUNT ( * ) + + 91, + 27 + + 72 AS col2
----
-59130
99

query I rowsort
SELECT 45 * + 18 * + 40 + 18 AS col1
----
32418

query I rowsort
SELECT ALL 68 * + - 75 - 16
----
-5116

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT 47 * + NULLIF ( - MAX( 36 ), 15 ) * + COUNT( * ) AS col2
----
-1692

skipif mysql # not compatible
query I rowsort label-3406
SELECT 47 * + NULLIF ( - MAX ( 36 ), 15 ) * + COUNT ( * ) AS col2
----
-1692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3407
SELECT SUM( DISTINCT + + 96 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT SUM ( DISTINCT + + 96 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT COUNT( ALL 90 ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-3408
SELECT COUNT ( ALL 90 ) + - 37
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL MIN( 0 ) - + + 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL MIN ( 0 ) - + + 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT MIN( ALL - 58 ) + - 67 + - 32 * - 41 + + + 34 * 67 AS col0
----
3465

skipif mysql # not compatible
query I rowsort label-3411
SELECT MIN ( ALL - 58 ) + - 67 + - 32 * - 41 + + + 34 * 67 AS col0
----
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT 82 * - COUNT( ALL + ( - - 64 ) ) * CAST( - - ( 8 ) AS SIGNED ) * + 81 * - 78 AS col0
----
4144608

skipif mysql # not compatible
query I rowsort label-3412
SELECT 82 * - COUNT ( ALL + ( - - 64 ) ) * CAST ( - - ( 8 ) AS INTEGER ) * + 81 * - 78 AS col0
----
4144608

query I rowsort
SELECT 7 * + + 88
----
616

query I rowsort
SELECT DISTINCT 4 * 71 AS col1
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + COUNT( ALL - 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT + COUNT ( ALL - 89 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3416
SELECT - ( + - 43 ) * - COUNT( DISTINCT + CAST( 15 AS DECIMAL ) ) + + 55 + - 76
----
-64

skipif mysql # not compatible
query I rowsort label-3416
SELECT - ( + - 43 ) * - COUNT ( DISTINCT + CAST ( 15 AS REAL ) ) + + 55 + - 76
----
-64

query I rowsort
SELECT 97 * 24 AS col0
----
2328

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3419
SELECT ALL 17 * - - COUNT( * ) + 40 * + SUM( DISTINCT 60 ), - 87 * + ( + 0 ) AS col2
----
2417
0

skipif mysql # not compatible
query II rowsort label-3419
SELECT ALL 17 * - - COUNT ( * ) + 40 * + SUM ( DISTINCT 60 ), - 87 * + ( + 0 ) AS col2
----
2417
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3420
SELECT DISTINCT - 81 col0, - 95 DIV + ( - + 41 ) AS col1
----
-81
2

skipif mysql # not compatible
query II rowsort label-3420
SELECT DISTINCT - 81 col0, - 95 / + ( - + 41 ) AS col1
----
-81
2

query I rowsort
SELECT ALL - - 75 * + + ( - 48 ) + - 11 AS col2
----
-3611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3422
SELECT CAST( - - COALESCE ( MAX( DISTINCT - - 18 ), - CAST( NULL AS SIGNED ) + + + 58 * - 28 * + 8, 65 + COUNT( * ), + 23 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-3422
SELECT CAST ( - - COALESCE ( MAX ( DISTINCT - - 18 ), - CAST ( NULL AS INTEGER ) + + + 58 * - 28 * + 8, 65 + COUNT ( * ), + 23 ) AS INTEGER )
----
18

query I rowsort
SELECT ALL + 65 * + 95 AS col1
----
6175

query I rowsort
SELECT ALL - 59 * - + 35 * 69 + + 99 col1
----
142584

query I rowsort
SELECT 1 * + ( 55 ) - - + 15
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - MIN( - - ( + 16 ) ) * + - 26 * + ( - 1 ) AS col1
----
-416

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - MIN ( - - ( + 16 ) ) * + - 26 * + ( - 1 ) AS col1
----
-416

query I rowsort
SELECT ALL 16 + - 30
----
-14

query I rowsort
SELECT ALL + 66 - 97 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - 69 - - MIN( DISTINCT 94 )
----
25

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 69 - - MIN ( DISTINCT 94 )
----
25

query I rowsort
SELECT - ( - - 59 ) * 79 - - ( + 3 ) - NULLIF ( + 66, - + 54 * 12 + - 74 + - 73 + - - 26 )
----
-4724

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL 14 AS col0, + 93 - + + CASE - COUNT( * ) WHEN 5 THEN 72 END AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL 14 AS col0, + 93 - + + CASE - COUNT ( * ) WHEN 5 THEN 72 END AS col0
----
14
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT MIN( ALL - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT MIN ( ALL - 36 ) AS col1
----
-36

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3437
SELECT - 95 AS col1, - 38 + CAST( NULL AS SIGNED ) AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3437
SELECT - 95 AS col1, - 38 + CAST ( NULL AS INTEGER ) AS col1
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT DISTINCT - 40 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - 40 / - 94 AS col1
----
0

query II rowsort
SELECT 49 AS col1, - 43
----
49
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-3440
SELECT ALL + 22 * + - 97 AS col0, NULLIF ( - 41, + 26 ) DIV + 81 * - - 77 * 85
----
-2134
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + 22 * + - 97 AS col0, NULLIF ( - 41, + 26 ) / + 81 * - - 77 * 85
----
-2134
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT - CASE - 11 WHEN - 10 + - 46 + + ( + 55 ) THEN CAST( + 12 AS SIGNED ) * + NULLIF ( + ( + + SUM( + ( 92 ) ) ), + 35 ) WHEN + 50 * + 5 + + 42 + + - 20 + - 8 THEN NULL END + + COUNT( * ) + - 2 * + NULLIF ( + COUNT( + ( - 53 ) ), - 41 ) / 53 + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT - CASE - 11 WHEN - 10 + - 46 + + ( + 55 ) THEN CAST ( + 12 AS INTEGER ) * + NULLIF ( + ( + + SUM ( + ( 92 ) ) ), + 35 ) WHEN + 50 * + 5 + + 42 + + - 20 + - 8 THEN NULL END + + COUNT ( * ) + - 2 * + NULLIF ( + COUNT ( + ( - 53 ) ), - 41 ) / 53 + 51 AS col1
----
NULL

query I rowsort
SELECT + 57 * + + 0 AS col2
----
0

query I rowsort
SELECT ALL 63 + 30 AS col2
----
93

query I rowsort
SELECT - NULLIF ( + 95, + 58 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT + ( - 31 ) + 61 - + COUNT( * ) + + - COUNT( * ) + + COUNT( * ) + + + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) - 5 * 61 * + 42 - - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT + ( - 31 ) + 61 - + COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * ) + + + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 5 * 61 * + 42 - - - 2 AS col0
----
NULL

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

query I rowsort
SELECT + 21 * - + 31 AS col2
----
-651

query I rowsort
SELECT ALL - 33 + + 95 + - 99
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT 68 AS col0, CASE - + 19 WHEN 78 * + 21 THEN 36 + - 74 * - 67 + + - COUNT( * ) END - - ( - 89 ) col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-3450
SELECT 68 AS col0, CASE - + 19 WHEN 78 * + 21 THEN 36 + - 74 * - 67 + + - COUNT ( * ) END - - ( - 89 ) col1
----
68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT ALL - 6 DIV + 95 * - 9 + + ( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL - 6 / + 95 * - 9 + + ( 95 ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3452
SELECT ALL + 58, 38 DIV - + 56 * + - 68 * - NULLIF ( 14, + 64 ) * 29 + - 69 AS col1
----
58
-69

skipif mysql # not compatible
query II rowsort label-3452
SELECT ALL + 58, 38 / - + 56 * + - 68 * - NULLIF ( 14, + 64 ) * 29 + - 69 AS col1
----
58
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3453
SELECT ALL - + ( + - 45 ) * CASE + 67 WHEN 25 THEN NULL WHEN 58 * + + MAX( + - CAST( 92 AS SIGNED ) ) + + 11 / + NULLIF ( 24, + SUM( DISTINCT - ( - 26 ) ) * 0 + + - 0 * + + 78 ) THEN - COUNT( ALL - 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - + ( + - 45 ) * CASE + 67 WHEN 25 THEN NULL WHEN 58 * + + MAX ( + - CAST ( 92 AS INTEGER ) ) + + 11 / + NULLIF ( 24, + SUM ( DISTINCT - ( - 26 ) ) * 0 + + - 0 * + + 78 ) THEN - COUNT ( ALL - 86 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT ALL + 12 / + 7 * - CAST( NULL AS SIGNED ) + - 63 * - COALESCE ( + 80, + 27 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + 12 / + 7 * - CAST ( NULL AS INTEGER ) + - 63 * - COALESCE ( + 80, + 27 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3455
SELECT - 70 DIV + - 84 + - 98 + + 11, 40 + COUNT( * ) * + MAX( DISTINCT 55 ) AS col0
----
-87
95

skipif mysql # not compatible
query II rowsort label-3455
SELECT - 70 / + - 84 + - 98 + + 11, 40 + COUNT ( * ) * + MAX ( DISTINCT 55 ) AS col0
----
-87
95

query II rowsort
SELECT - 68 AS col2, + 30 - 58 + - 20 AS col1
----
-68
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL - COUNT( * ) * + + 67 * - - 1 - 92 + NULLIF ( - 19, 24 ) + - - ( - - 56 ) AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - COUNT ( * ) * + + 67 * - - 1 - 92 + NULLIF ( - 19, 24 ) + - - ( - - 56 ) AS col2
----
-122

query I rowsort
SELECT + ( - 0 ) + + 33 AS col2
----
33

query I rowsort
SELECT ALL 43 * + 34 AS col0
----
1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT - MIN( DISTINCT - 49 ) - CAST( - 37 AS SIGNED ) * - 19
----
-654

skipif mysql # not compatible
query I rowsort label-3460
SELECT - MIN ( DISTINCT - 49 ) - CAST ( - 37 AS INTEGER ) * - 19
----
-654

query I rowsort
SELECT ALL 78 * 48 + + 97 AS col0
----
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT SUM( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3462
SELECT SUM ( + + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + CASE + - 66 WHEN 25 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + CASE + - 66 WHEN 25 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + + 89 + - ( - COUNT( * ) ) * - + 83 col0
----
6

skipif mysql # not compatible
query I rowsort label-3464
SELECT + + 89 + - ( - COUNT ( * ) ) * - + 83 col0
----
6

query I rowsort
SELECT ALL + + ( 37 ) AS col1
----
37

query I rowsort
SELECT ALL + 4 * - 76 AS col2
----
-304

query I rowsort
SELECT - 75 * + 55 * + - COALESCE ( 65, - 73 )
----
268125

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

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

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

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

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

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

query I rowsort
SELECT ALL - 36 * 45 * - + 71 AS col1
----
115020

query I rowsort
SELECT ALL - 27 * + - 16 * + + 15 AS col2
----
6480

query II rowsort
SELECT DISTINCT 58 * - - 80, - 5 AS col0
----
4640
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT ALL CAST( - - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL CAST ( - - 76 AS INTEGER )
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT NULLIF ( - - COUNT( * ), + ( 88 ) * 11 + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + ( 88 ) * 11 + 35 ) AS col2
----
1

query I rowsort
SELECT - 81 + 5
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3478
SELECT DISTINCT CAST( 60 AS SIGNED ) AS col0, 43 - 94
----
60
-51

skipif mysql # not compatible
query II rowsort label-3478
SELECT DISTINCT CAST ( 60 AS INTEGER ) AS col0, 43 - 94
----
60
-51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - 39 + - COUNT( * ) + COUNT( * ) + 85 * 44
----
3701

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 39 + - COUNT ( * ) + COUNT ( * ) + 85 * 44
----
3701

query I rowsort
SELECT ALL 9 + + 17 AS col2
----
26

query I rowsort
SELECT DISTINCT - 19 + + ( + + 24 ) + 39 + + 44 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3484
SELECT COALESCE ( - 18, 51 DIV + SUM( - 10 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3484
SELECT COALESCE ( - 18, 51 / + SUM ( - 10 ) ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT 35 DIV + - 50 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-3485
SELECT 35 / + - 50 + - 93
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT + + 36 * - 82 + - 15 + + 19 + + CAST( 89 AS SIGNED )
----
-2859

skipif mysql # not compatible
query I rowsort label-3486
SELECT + + 36 * - 82 + - 15 + + 19 + + CAST ( 89 AS INTEGER )
----
-2859

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL - NULLIF ( + 83, 81 + - + SUM( + 53 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - NULLIF ( + 83, 81 + - + SUM ( + 53 ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT 79 DIV 29 + - 25 + + 47 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3488
SELECT 79 / 29 + - 25 + + 47 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - COUNT( * ) * + 58 - + 44 + 91 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - COUNT ( * ) * + 58 - + 44 + 91 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT 5 * + MAX( + 18 )
----
90

skipif mysql # not compatible
query I rowsort label-3490
SELECT 5 * + MAX ( + 18 )
----
90

query I rowsort
SELECT ALL 34 * + 14
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - - MIN( + 8 ) * - 41 + - 50 - COUNT( * )
----
-379

skipif mysql # not compatible
query I rowsort label-3492
SELECT - - MIN ( + 8 ) * - 41 + - 50 - COUNT ( * )
----
-379

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT + 73 * + 50 col0, COUNT( - 73 ) * - + 8
----
3650
-8

skipif mysql # not compatible
query II rowsort label-3493
SELECT + 73 * + 50 col0, COUNT ( - 73 ) * - + 8
----
3650
-8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT + 40 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT + 40 / + 52 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT DISTINCT 58 * - SUM( ALL 27 ) col0, + 40 DIV - 68 * + 17 * - 44 * - 44
----
-1566
0

skipif mysql # not compatible
query II rowsort label-3496
SELECT DISTINCT 58 * - SUM ( ALL 27 ) col0, + 40 / - 68 * + 17 * - 44 * - 44
----
-1566
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + COUNT( * ) * + 45 * 91 - - 54 + 96 + 61 * 38 AS col1
----
6563

skipif mysql # not compatible
query I rowsort label-3497
SELECT + COUNT ( * ) * + 45 * 91 - - 54 + 96 + 61 * 38 AS col1
----
6563

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

skipif mysql # not compatible
query II rowsort label-3498
SELECT ALL + ( + ( + + 0 ) ) / - 6 AS col1, + MAX ( ALL - - 85 ) + COUNT ( * )
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL COUNT( * ) + - COALESCE ( + + 62, - - 90 ) * 28
----
-1735

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL COUNT ( * ) + - COALESCE ( + + 62, - - 90 ) * 28
----
-1735

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT 7 * + + 8 DIV + - 1
----
-56

skipif mysql # not compatible
query I rowsort label-3500
SELECT 7 * + + 8 / + - 1
----
-56

query II rowsort
SELECT 74 col2, 91 * + 53
----
74
4823

query I rowsort
SELECT 23 * + + 30 AS col0
----
690

query II rowsort
SELECT DISTINCT - CASE 34 WHEN 66 * 63 THEN - AVG ( - 52 ) END + - 43 + - AVG ( + 4 ) + + 76 + + - 43, 4 AS col1
----
NULL
4

query I rowsort
SELECT 33 * - + 34 AS col2
----
-1122

query I rowsort
SELECT 36 - - + 65
----
101

query II rowsort
SELECT 6 AS col1, + 66
----
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL COUNT( * ) * + 19 * + + 88 AS col1
----
1672

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL COUNT ( * ) * + 19 * + + 88 AS col1
----
1672

query II rowsort
SELECT 23 * - ( + 44 ) AS col2, - 12 + - 30 + 6
----
-1012
-36

query II rowsort
SELECT DISTINCT 73 AS col1, 50 + - 35
----
73
15

query II rowsort
SELECT ALL 24 AS col0, 75
----
24
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT ALL - ( 24 ) + 2 + - 8 + 97 + 17 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - ( 24 ) + 2 + - 8 + 97 + 17 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT CAST( NULL AS SIGNED ) + + 77 * - NULLIF ( + + MAX( ALL - + 27 ), MAX( 75 ) ) * + 17 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT CAST ( NULL AS INTEGER ) + + 77 * - NULLIF ( + + MAX ( ALL - + 27 ), MAX ( 75 ) ) * + 17 * 99
----
NULL

query I rowsort
SELECT 48 * + + 86
----
4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3514
SELECT + 72 + COUNT( DISTINCT - 75 ), + CAST( + - 55 AS SIGNED ) AS col0
----
73
-55

skipif mysql # not compatible
query II rowsort label-3514
SELECT + 72 + COUNT ( DISTINCT - 75 ), + CAST ( + - 55 AS INTEGER ) AS col0
----
73
-55

query II rowsort
SELECT - - 48, + 16 AS col1
----
48
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT - - COUNT( * ) - - - CAST( + 47 AS SIGNED ) + - COUNT( * ) + 52 + 91 * + 98 + - 71 AS col1
----
8852

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - - COUNT ( * ) - - - CAST ( + 47 AS INTEGER ) + - COUNT ( * ) + 52 + 91 * + 98 + - 71 AS col1
----
8852

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - COUNT( * ) * - + NULLIF ( + ( - 77 ), - - 51 ) * - 0 + + 87 * - 50
----
-4350

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - COUNT ( * ) * - + NULLIF ( + ( - 77 ), - - 51 ) * - 0 + + 87 * - 50
----
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT + 28 * 55 + - + ( + + 61 ) + + 79 + - - COALESCE ( + - 69, COUNT( * ), + NULLIF ( + + 25, - COUNT( * ) + 15 ) ) * - COUNT( 2 ) + + - 81 - - 81 + - 36 * + + 82 AS col1, COUNT( ALL + ( + + 12 ) ) * 13 + + 81 + 3 DIV COALESCE ( 93, + - CASE + 1 WHEN - 27 THEN NULL WHEN + MIN( DISTINCT - 63 ) THEN NULL ELSE - ( 2 ) * 50 END, + 93 ) * + - 62
----
-1325
94

skipif mysql # not compatible
query II rowsort label-3519
SELECT + 28 * 55 + - + ( + + 61 ) + + 79 + - - COALESCE ( + - 69, COUNT ( * ), + NULLIF ( + + 25, - COUNT ( * ) + 15 ) ) * - COUNT ( 2 ) + + - 81 - - 81 + - 36 * + + 82 AS col1, COUNT ( ALL + ( + + 12 ) ) * 13 + + 81 + 3 / COALESCE ( 93, + - CASE + 1 WHEN - 27 THEN NULL WHEN + MIN ( DISTINCT - 63 ) THEN NULL ELSE - ( 2 ) * 50 END, + 93 ) * + - 62
----
-1325
94

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

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

query I rowsort
SELECT + 88 + - 29 + - - 34 AS col2
----
93

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3523
SELECT + 27 DIV + 18 * COUNT( * ) + - + COALESCE ( - - 57, + 16 * - 0 + + + CASE + + NULLIF ( - 39, + + 46 ) WHEN + 32 THEN 95 END + + - 3 + 72 * + ( + 91 ), + 36 ) - 96 - 90 - ( - + 39 )
----
-203

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 27 / + 18 * COUNT ( * ) + - + COALESCE ( - - 57, + 16 * - 0 + + + CASE + + NULLIF ( - 39, + + 46 ) WHEN + 32 THEN 95 END + + - 3 + 72 * + ( + 91 ), + 36 ) - 96 - 90 - ( - + 39 )
----
-203

query I rowsort
SELECT - 10 * - 61 * - + 20 AS col1
----
-12200

query I rowsort
SELECT 88 + - 29 AS col0
----
59

query I rowsort
SELECT DISTINCT + 74 * - - 74 + 35
----
5511

query I rowsort
SELECT 68 + 9 * - 9
----
-13

query I rowsort
SELECT DISTINCT ( - - 12 ) + 88 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ( 9 ) + + + 94 * + 22 * + COUNT( DISTINCT 76 ) * 51 + - + COUNT( * ) + - 56
----
105420

skipif mysql # not compatible
query I rowsort label-3529
SELECT ( 9 ) + + + 94 * + 22 * + COUNT ( DISTINCT 76 ) * 51 + - + COUNT ( * ) + - 56
----
105420

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT COALESCE ( 58, - + COUNT( * ) * + 78 ) * - 36 * + 54 * + + COUNT( * ) + - - 5 AS col1
----
-112747

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT COALESCE ( 58, - + COUNT ( * ) * + 78 ) * - 36 * + 54 * + + COUNT ( * ) + - - 5 AS col1
----
-112747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ( - + 55 ) * + + 50 / - CAST( NULL AS SIGNED ) / + SUM( DISTINCT - 21 ) * + 46 * 79 - ( - + 85 ) * 21 + + + 34 - 46 * + 34 * + + COUNT( * ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ( - + 55 ) * + + 50 / - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - 21 ) * + 46 * 79 - ( - + 85 ) * 21 + + + 34 - 46 * + 34 * + + COUNT ( * ) * - 16
----
NULL

query I rowsort
SELECT 91 * 79
----
7189

query I rowsort
SELECT 97 + 45
----
142

query I rowsort
SELECT 33 * - 75
----
-2475

query I rowsort
SELECT ALL 57 + - + 54 AS col1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT NULLIF ( + COUNT( * ), 31 ) + 72 - 85 - 89 * - 38 - 24 AS col2
----
3346

skipif mysql # not compatible
query I rowsort label-3537
SELECT NULLIF ( + COUNT ( * ), 31 ) + 72 - 85 - 89 * - 38 - 24 AS col2
----
3346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT 16 * - + CAST( - 84 AS SIGNED )
----
1344

skipif mysql # not compatible
query I rowsort label-3538
SELECT 16 * - + CAST ( - 84 AS INTEGER )
----
1344

query I rowsort
SELECT ALL 4 * - - 17
----
68

query I rowsort
SELECT 23 + + + 97 + + 78 AS col1
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT DISTINCT 91 DIV - 32 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT 91 / - 32 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3542
SELECT - MAX( ALL + 83 ), 2 * - - 34 AS col2
----
-83
68

skipif mysql # not compatible
query II rowsort label-3542
SELECT - MAX ( ALL + 83 ), 2 * - - 34 AS col2
----
-83
68

query II rowsort
SELECT + 32 * - + 79, 6 AS col2
----
-2528
6

query I rowsort
SELECT - 39 + 92 AS col0
----
53

query I rowsort
SELECT ALL - 32 - 83 * + 79
----
-6589

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

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 79 / - COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT - MIN( 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - MIN ( 2 ) AS col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL CASE - + 22 WHEN - 65 - + COALESCE ( + 55, - 44 * - 61, + 55 - ( + COUNT( * ) ) - + - 2 ) THEN NULL WHEN - + 20 THEN - COUNT( * ) WHEN + AVG ( - - 84 ) * + + 60 - + + 44 THEN NULL WHEN - + 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL CASE - + 22 WHEN - 65 - + COALESCE ( + 55, - 44 * - 61, + 55 - ( + COUNT ( * ) ) - + - 2 ) THEN NULL WHEN - + 20 THEN - COUNT ( * ) WHEN + AVG ( - - 84 ) * + + 60 - + + 44 THEN NULL WHEN - + 49 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3550
SELECT + CASE - COALESCE ( - + COUNT( * ), + COUNT( DISTINCT ( ( + 92 ) ) ), + + 27, ( 0 ) * - - 52 + - 68 ) WHEN 33 + + CAST( NULL AS DECIMAL ) + 59 * + 78 + - + 66 THEN NULL WHEN 91 * + 24 + + COUNT( * ) + 95 THEN ( + 45 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + CASE - COALESCE ( - + COUNT ( * ), + COUNT ( DISTINCT ( ( + 92 ) ) ), + + 27, ( 0 ) * - - 52 + - 68 ) WHEN 33 + + CAST ( NULL AS REAL ) + 59 * + 78 + - + 66 THEN NULL WHEN 91 * + 24 + + COUNT ( * ) + 95 THEN ( + 45 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - COUNT( + + 70 ) * + - 88
----
88

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - COUNT ( + + 70 ) * + - 88
----
88

query II rowsort
SELECT - 28 * + + 79 AS col2, 99 + 79 col1
----
-2212
178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 36 * + COUNT( * ) + - 47
----
-11

skipif mysql # not compatible
query I rowsort label-3554
SELECT 36 * + COUNT ( * ) + - 47
----
-11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT - COUNT( * ) * + 28 + - + 84 * + CASE COUNT( * ) WHEN 43 THEN + 4 - + 97 + - + CASE - 12 WHEN - 65 THEN + 10 - 33 - 10 END + - + 60 * 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - COUNT ( * ) * + 28 + - + 84 * + CASE COUNT ( * ) WHEN 43 THEN + 4 - + 97 + - + CASE - 12 WHEN - 65 THEN + 10 - 33 - 10 END + - + 60 * 15 END
----
NULL

query II rowsort
SELECT + ( - 99 ) AS col1, 26 AS col1
----
-99
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT - + COUNT( * ) * 27 + + 50 + + 26, + ( + MAX( 0 ) ) + + 35 * + SUM( DISTINCT 67 ) AS col2
----
49
2345

skipif mysql # not compatible
query II rowsort label-3559
SELECT - + COUNT ( * ) * 27 + + 50 + + 26, + ( + MAX ( 0 ) ) + + 35 * + SUM ( DISTINCT 67 ) AS col2
----
49
2345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3560
SELECT ALL 12 * + COUNT( * ) + 95 + + ( + - 58 ) * - COUNT( * ) DIV 77 + - 36 + + - ( CAST( - - ( + 60 ) AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 12 * + COUNT ( * ) + 95 + + ( + - 58 ) * - COUNT ( * ) / 77 + - 36 + + - ( CAST ( - - ( + 60 ) AS INTEGER ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT NULLIF ( + 64, + 97 - + + 25 - + 14 * - COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3561
SELECT NULLIF ( + 64, + 97 - + + 25 - + 14 * - COUNT ( * ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + MAX( + 18 ) * - 75 - + + 2 * - 70
----
-1210

skipif mysql # not compatible
query I rowsort label-3562
SELECT + MAX ( + 18 ) * - 75 - + + 2 * - 70
----
-1210

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT CASE - + 98 WHEN CASE + 61 WHEN + COUNT( * ) * + 53 + - + 98 * - 97 * ( - 51 ) - + COUNT( * ) THEN NULL WHEN - 70 THEN NULL ELSE - 13 - + 72 * - 56 END THEN 33 * - + 30 + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT CASE - + 98 WHEN CASE + 61 WHEN + COUNT ( * ) * + 53 + - + 98 * - 97 * ( - 51 ) - + COUNT ( * ) THEN NULL WHEN - 70 THEN NULL ELSE - 13 - + 72 * - 56 END THEN 33 * - + 30 + 88 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT - CAST( 2 AS SIGNED ) * COUNT( - 63 ) * - 81 + 19
----
181

skipif mysql # not compatible
query I rowsort label-3564
SELECT - CAST ( 2 AS INTEGER ) * COUNT ( - 63 ) * - 81 + 19
----
181

query I rowsort
SELECT 14 * + 17 + + + 84 col0
----
322

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

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 34 * - COUNT ( * ) * - COUNT ( * ) * + + 90 AS col0
----
3060

query I rowsort
SELECT DISTINCT + 29 * + 54 * + 41 + + - 99 AS col0
----
64107

query II rowsort
SELECT NULLIF ( 72, 70 ), 29 AS col2
----
72
29

query I rowsort
SELECT ALL - 5 * + + 73
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + 96 * 57 * + 31 * - - CASE + 69 WHEN + 46 THEN COUNT( * ) + - - 26 + - 65 ELSE NULL END + + 30 * - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + 96 * 57 * + 31 * - - CASE + 69 WHEN + 46 THEN COUNT ( * ) + - - 26 + - 65 ELSE NULL END + + 30 * - 32 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT - MIN( - 24 ) * + 39 + COUNT( 4 ) - - 12
----
949

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - MIN ( - 24 ) * + 39 + COUNT ( 4 ) - - 12
----
949

query I rowsort
SELECT ALL 86 * 90 AS col1
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + NULLIF ( - + 20, NULLIF ( - 21, - - MIN( + COALESCE ( 34, + 22 ) ) ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3573
SELECT + NULLIF ( - + 20, NULLIF ( - 21, - - MIN ( + COALESCE ( 34, + 22 ) ) ) ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3574
SELECT ALL + 19 * 30 - + + 55 AS col0, - 54 * + - 36 + - CAST( NULL AS SIGNED )
----
515
NULL

skipif mysql # not compatible
query II rowsort label-3574
SELECT ALL + 19 * 30 - + + 55 AS col0, - 54 * + - 36 + - CAST ( NULL AS INTEGER )
----
515
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT - CASE 75 WHEN + CAST( NULL AS SIGNED ) * NULLIF ( - 52, + 90 + - 65 ) / + ( + 21 ) / CAST( 20 AS SIGNED ) * - 42 - 21 - + + 49 / + - 19 THEN - 91 / + 91 * 50 / + COUNT( ALL + + 64 ) / - 18 * + - 65 + - + 19 - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CASE 75 WHEN + CAST ( NULL AS INTEGER ) * NULLIF ( - 52, + 90 + - 65 ) / + ( + 21 ) / CAST ( 20 AS INTEGER ) * - 42 - 21 - + + 49 / + - 19 THEN - 91 / + 91 * 50 / + COUNT ( ALL + + 64 ) / - 18 * + - 65 + - + 19 - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - 38 * - 77 col0
----
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT SUM( ALL + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3577
SELECT SUM ( ALL + 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - MAX( - 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3578
SELECT - MAX ( - 4 ) AS col2
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT ALL - 43 * - + CAST( NULL AS SIGNED ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - 43 * - + CAST ( NULL AS INTEGER ) * - 80 AS col2
----
NULL

query I rowsort
SELECT + 26 - + 29 * - 77
----
2259

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT ALL 72 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL 72 / + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + MIN( ALL 97 ) * + 41
----
3977

skipif mysql # not compatible
query I rowsort label-3583
SELECT + MIN ( ALL 97 ) * + 41
----
3977

query I rowsort
SELECT + 90 + - 32
----
58

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

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

query I rowsort
SELECT + 66 + NULLIF ( - 94, + 63 - - 27 / - 38 ) AS col1
----
-28

query I rowsort
SELECT + 72 - 40
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT + NULLIF ( - 85, 65 ) DIV + 60
----
-1

skipif mysql # not compatible
query I rowsort label-3588
SELECT + NULLIF ( - 85, 65 ) / + 60
----
-1

query I rowsort
SELECT ALL 36 + + 65 AS col0
----
101

query I rowsort
SELECT - NULLIF ( 7, 77 ) * 82 AS col2
----
-574

query I rowsort
SELECT + 18 + ( 83 + 76 * 92 ) AS col1
----
7093

query I rowsort
SELECT ALL 30 + 85 col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + MAX( DISTINCT + 60 ) * - 35 AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + MAX ( DISTINCT + 60 ) * - 35 AS col2
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT + CASE - 8 WHEN + 24 THEN NULL WHEN 17 THEN 0 WHEN - 61 THEN CAST( NULL AS SIGNED ) ELSE - ( COUNT( * ) ) * - 54 END + MIN( + 11 ) * 96
----
1110

skipif mysql # not compatible
query I rowsort label-3594
SELECT + CASE - 8 WHEN + 24 THEN NULL WHEN 17 THEN 0 WHEN - 61 THEN CAST ( NULL AS INTEGER ) ELSE - ( COUNT ( * ) ) * - 54 END + MIN ( + 11 ) * 96
----
1110

query I rowsort
SELECT ALL 1 + - 3 * 35
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT + NULLIF ( - COUNT( * ), COUNT( ALL 85 ) * + 61 + - ( - ( COUNT( * ) ) ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT + NULLIF ( - COUNT ( * ), COUNT ( ALL 85 ) * + 61 + - ( - ( COUNT ( * ) ) ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL CASE - 85 WHEN AVG ( + 56 ) THEN NULL WHEN COALESCE ( - 24, + 79 * 52 ) THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL CASE - 85 WHEN AVG ( + 56 ) THEN NULL WHEN COALESCE ( - 24, + 79 * 52 ) THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 88 + 8 * + ( 84 )
----
760

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ALL 95 DIV - 60 + + 60 * + 97 AS col1
----
5819

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL 95 / - 60 + + 60 * + 97 AS col1
----
5819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3600
SELECT ALL + 95 DIV MIN( DISTINCT - 3 * 21 ) + 74 * ( CASE 74 WHEN COUNT( ALL - NULLIF ( - 0, - 30 ) ) + + ( + COUNT( 49 ) ) THEN + 85 + + CAST( NULL AS SIGNED ) WHEN - 56 THEN NULL ELSE + 73 END ) AS col2
----
5401

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + 95 / MIN ( DISTINCT - 3 * 21 ) + 74 * ( CASE 74 WHEN COUNT ( ALL - NULLIF ( - 0, - 30 ) ) + + ( + COUNT ( 49 ) ) THEN + 85 + + CAST ( NULL AS INTEGER ) WHEN - 56 THEN NULL ELSE + 73 END ) AS col2
----
5401

query I rowsort
SELECT + 52 * 85 col2
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL + CASE - 77 WHEN ( - 19 ) THEN - COUNT( * ) WHEN + 23 * 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + CASE - 77 WHEN ( - 19 ) THEN - COUNT ( * ) WHEN + 23 * 66 THEN NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT ALL - 2 DIV + 49 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - 2 / + 49 + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 22 * 8
----
-176

query I rowsort
SELECT ALL + COALESCE ( 55, 41 - ( - 96 ), ( + 79 ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3608
SELECT DISTINCT - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) * - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * - 31 AS col1
----
31

query I rowsort
SELECT ALL + ( - 46 ) * 75 AS col0
----
-3450

query I rowsort
SELECT 26 + 1 * - 80 col1
----
-54

query I rowsort
SELECT DISTINCT + 29 * + 15
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT 16 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT 16 / 36 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT MIN( 23 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT MIN ( 23 ) / 92
----
0

query I rowsort
SELECT 51 * + 48 AS col1
----
2448

query I rowsort
SELECT 25 + + 18 * - ( - 53 ) AS col1
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT COALESCE ( 62, - COALESCE ( 86, + 76, + COUNT( * ) * 65 ) )
----
62

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT COALESCE ( 62, - COALESCE ( 86, + 76, + COUNT ( * ) * 65 ) )
----
62

query I rowsort
SELECT ALL - - ( + 84 ) + 65
----
149

query I rowsort
SELECT DISTINCT 89 + + 56
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT DISTINCT 16 + + COUNT( * ) DIV 76
----
16

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT 16 + + COUNT ( * ) / 76
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL - 64 + MAX( ALL - 93 )
----
-157

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 64 + MAX ( ALL - 93 )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT - 6 + 38 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - 6 + 38 * + COUNT ( * )
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - - CASE 78 WHEN 35 * + 76 - - 71 THEN + COUNT( * ) * + 22 + 47 WHEN ( + 87 ) THEN NULL WHEN - 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT - - CASE 78 WHEN 35 * + 76 - - 71 THEN + COUNT ( * ) * + 22 + 47 WHEN ( + 87 ) THEN NULL WHEN - 73 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 0 + + 71
----
71

query I rowsort
SELECT 53 * + 86 AS col1
----
4558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT + CAST( - 24 AS SIGNED ) * 65 col0
----
-1560

skipif mysql # not compatible
query I rowsort label-3626
SELECT + CAST ( - 24 AS INTEGER ) * 65 col0
----
-1560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3627
SELECT ( - + CAST( NULL AS DECIMAL ) ) * + CASE - SUM( DISTINCT 35 ) WHEN + 72 THEN 41 ELSE + 25 * 72 + - 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ( - + CAST ( NULL AS REAL ) ) * + CASE - SUM ( DISTINCT 35 ) WHEN + 72 THEN 41 ELSE + 25 * 72 + - 62 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 20 ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT NULLIF ( - 6, - 16 ) - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT NULLIF ( - 6, - 16 ) - - COUNT ( * )
----
-5

query I rowsort
SELECT ALL - 42 * 23
----
-966

query I rowsort
SELECT DISTINCT - 33 - 19 * 77 col0
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT COUNT( * ) * + - CASE 83 WHEN 50 THEN - 51 + CASE + COUNT( * ) WHEN + 67 THEN + SUM( DISTINCT 79 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT COUNT ( * ) * + - CASE 83 WHEN 50 THEN - 51 + CASE + COUNT ( * ) WHEN + 67 THEN + SUM ( DISTINCT 79 ) END END
----
NULL

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

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

query I rowsort
SELECT 42 * + - 98
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL CASE - MAX( ALL 6 ) WHEN CAST( 27 AS SIGNED ) / 69 THEN - 32 END * + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL CASE - MAX ( ALL 6 ) WHEN CAST ( 27 AS INTEGER ) / 69 THEN - 32 END * + 72 AS col0
----
NULL

query I rowsort
SELECT 52 * + 74 + 70
----
3918

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT - 52 DIV 92 * - 32 + + NULLIF ( + 11, + 74 + + COALESCE ( 46, 44 ) )
----
11

skipif mysql # not compatible
query I rowsort label-3637
SELECT - 52 / 92 * - 32 + + NULLIF ( + 11, + 74 + + COALESCE ( 46, 44 ) )
----
11

query I rowsort
SELECT ( 43 ) * + 8
----
344

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

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

query I rowsort
SELECT 57 * + 76 AS col0
----
4332

query I rowsort
SELECT DISTINCT + 98 * + 31 AS col1
----
3038

query I rowsort
SELECT + 52 * 7 + - 78 * CASE + 13 WHEN + ( 45 ) THEN 80 - 93 / + 48 ELSE NULL END - 28 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT 40 / - + 94 * - CASE 19 WHEN CAST( - 36 AS SIGNED ) THEN + 72 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT 40 / - + 94 * - CASE 19 WHEN CAST ( - 36 AS INTEGER ) THEN + 72 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT 27 * - COALESCE ( - 16, - COUNT( * ) )
----
432

skipif mysql # not compatible
query I rowsort label-3644
SELECT 27 * - COALESCE ( - 16, - COUNT ( * ) )
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT COUNT( DISTINCT - 23 ) * 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3645
SELECT COUNT ( DISTINCT - 23 ) * 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - COUNT( ALL - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-3646
SELECT - COUNT ( ALL - 24 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT ALL - COALESCE ( - 83, 33 DIV + 6 - COALESCE ( CASE 75 WHEN + 58 THEN + 95 DIV ( - 15 ) ELSE NULL END, - 8 * + COALESCE ( 34, - 71, - 30 * - 2 ), - 65 * + 4 ), + 35 ) + + 80
----
163

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - COALESCE ( - 83, 33 / + 6 - COALESCE ( CASE 75 WHEN + 58 THEN + 95 / ( - 15 ) ELSE NULL END, - 8 * + COALESCE ( 34, - 71, - 30 * - 2 ), - 65 * + 4 ), + 35 ) + + 80
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT COUNT( * ) DIV + 66 - 91 col1
----
-91

skipif mysql # not compatible
query I rowsort label-3648
SELECT COUNT ( * ) / + 66 - 91 col1
----
-91

query I rowsort
SELECT ALL + 48 + + 83
----
131

query I rowsort
SELECT 50 - - 53 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT + CASE - COUNT( * ) WHEN + 19 THEN - 7 + 92 DIV 50 ELSE + 55 + + 50 DIV + ( + 79 ) END AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3651
SELECT + CASE - COUNT ( * ) WHEN + 19 THEN - 7 + 92 / 50 ELSE + 55 + + 50 / + ( + 79 ) END AS col1
----
55

query I rowsort
SELECT ALL + 68 + - - 87 * 37
----
3287

query I rowsort
SELECT 96 - + 3 * 18 AS col0
----
42

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

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

query I rowsort
SELECT 76 + + - NULLIF ( CASE 66 WHEN 52 THEN 79 END, 23 )
----
NULL

query I rowsort
SELECT + 54 + - 85
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 99 * - - 22 - COUNT( * ) AS col0
----
2177

skipif mysql # not compatible
query I rowsort label-3658
SELECT 99 * - - 22 - COUNT ( * ) AS col0
----
2177

query I rowsort
SELECT DISTINCT + - 76 * 29
----
-2204

query II rowsort
SELECT 47 AS col2, + 82
----
47
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3661
SELECT COALESCE ( - 75, + - 58 * ( 17 + + COUNT( * ) ) + 98, 19, + 60 ) + + COALESCE ( 27, + COUNT( * ) DIV - CAST( NULL AS SIGNED ) ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-3661
SELECT COALESCE ( - 75, + - 58 * ( 17 + + COUNT ( * ) ) + 98, 19, + 60 ) + + COALESCE ( 27, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) ) col2
----
-48

query I rowsort
SELECT + 75 + + 86
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3663
SELECT CASE - CAST( 21 AS SIGNED ) WHEN COUNT( * ) THEN 17 ELSE 3 DIV + 84 + + 35 END
----
35

skipif mysql # not compatible
query I rowsort label-3663
SELECT CASE - CAST ( 21 AS INTEGER ) WHEN COUNT ( * ) THEN 17 ELSE 3 / + 84 + + 35 END
----
35

query I rowsort
SELECT DISTINCT + 68 col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + MIN( ALL 8 ) * 63 + 69
----
573

skipif mysql # not compatible
query I rowsort label-3666
SELECT + MIN ( ALL 8 ) * 63 + 69
----
573

query II rowsort
SELECT ALL + 81, 59 * 71 AS col1
----
81
4189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT CASE + - 41 WHEN + ( COUNT( * ) ) THEN 67 + + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT CASE + - 41 WHEN + ( COUNT ( * ) ) THEN 67 + + 58 ELSE NULL END
----
NULL

query I rowsort
SELECT + 21 + + ( - - 78 )
----
99

query I rowsort
SELECT ALL 27 * - 51
----
-1377

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + 33 DIV - 19
----
-1

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 33 / - 19
----
-1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3673
SELECT ALL - 11 DIV ( - NULLIF ( 53, CAST( 33 AS DECIMAL ) * - 40 ) ) * - 46
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - 11 / ( - NULLIF ( 53, CAST ( 33 AS REAL ) * - 40 ) ) * - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT + MIN( - - ( - 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-3674
SELECT + MIN ( - - ( - 37 ) )
----
-37

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

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

query I rowsort
SELECT ALL 80 * - - 81 AS col1
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT + COALESCE ( 88, CAST( + COUNT( * ) AS SIGNED ), 82, 21 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3677
SELECT + COALESCE ( 88, CAST ( + COUNT ( * ) AS INTEGER ), 82, 21 ) AS col1
----
88

query I rowsort
SELECT ALL 91 * - 94
----
-8554

query I rowsort
SELECT + COALESCE ( 71, 56 * 26 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT SUM( DISTINCT - ( + 78 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3680
SELECT SUM ( DISTINCT - ( + 78 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + CASE - + 27 WHEN - - ( NULLIF ( ( - 3 ), COUNT( * ) * + 65 ) ) + - COUNT( * ) * + 21 THEN + ( 5 ) + 91 * 68 ELSE 11 END * + 13
----
143

skipif mysql # not compatible
query I rowsort label-3681
SELECT + CASE - + 27 WHEN - - ( NULLIF ( ( - 3 ), COUNT ( * ) * + 65 ) ) + - COUNT ( * ) * + 21 THEN + ( 5 ) + 91 * 68 ELSE 11 END * + 13
----
143

query I rowsort
SELECT ALL 84 * 16 + - 97 AS col1
----
1247

query I rowsort
SELECT + 23 + ( - - 64 ) + - 57 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - CASE + 37 WHEN + SUM( DISTINCT 3 ) THEN + COUNT( * ) / 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT - CASE + 37 WHEN + SUM ( DISTINCT 3 ) THEN + COUNT ( * ) / 9 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT 79 * 79 + 58 - CAST( NULL AS SIGNED ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT 79 * 79 + 58 - CAST ( NULL AS INTEGER ) * 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT + + MAX( DISTINCT + 9 ) + - 46 + - ( + 19 + - CAST( NULL AS SIGNED ) ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT + + MAX ( DISTINCT + 9 ) + - 46 + - ( + 19 + - CAST ( NULL AS INTEGER ) ) * 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + 86 + - CASE + - 29 WHEN - 97 THEN NULL WHEN - CASE 93 WHEN + NULLIF ( 8, 25 + - 2 * 53 ) THEN NULL WHEN + 61 THEN COUNT( * ) END * CASE WHEN ( NULL ) NOT BETWEEN NULL AND COALESCE ( - CAST( + ( COUNT( * ) ) AS SIGNED ), - 83 ) THEN NULL ELSE - 95 END THEN MAX( ALL 55 ) WHEN + 22 / + NULLIF ( - 35, + 32 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + 86 + - CASE + - 29 WHEN - 97 THEN NULL WHEN - CASE 93 WHEN + NULLIF ( 8, 25 + - 2 * 53 ) THEN NULL WHEN + 61 THEN COUNT ( * ) END * CASE WHEN ( NULL ) NOT BETWEEN NULL AND COALESCE ( - CAST ( + ( COUNT ( * ) ) AS INTEGER ), - 83 ) THEN NULL ELSE - 95 END THEN MAX ( ALL 55 ) WHEN + 22 / + NULLIF ( - 35, + 32 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + 49 * 44 + - MAX( ALL 13 ) + 26 * - 29
----
1389

skipif mysql # not compatible
query I rowsort label-3688
SELECT + 49 * 44 + - MAX ( ALL 13 ) + 26 * - 29
----
1389

query I rowsort
SELECT + + 31 * 21
----
651

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

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

query I rowsort
SELECT - 8 + - - 28
----
20

query II rowsort
SELECT - 97, - 3 AS col1
----
-97
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT - 22 + COUNT( * ) * + CAST( 64 AS SIGNED ) + 53 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 22 + COUNT ( * ) * + CAST ( 64 AS INTEGER ) + 53 AS col0
----
95

query I rowsort
SELECT ALL 35 * + 87
----
3045

query I rowsort
SELECT DISTINCT + 43 - - 76 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - MAX( DISTINCT - 23 ) * 52
----
1196

skipif mysql # not compatible
query I rowsort label-3696
SELECT - MAX ( DISTINCT - 23 ) * 52
----
1196

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

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

query I rowsort
SELECT DISTINCT + 63 - - 39 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL CASE + + 75 WHEN - - 69 / + 50 THEN + 40 * + 40 WHEN + 72 + 53 THEN COUNT( + 77 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL CASE + + 75 WHEN - - 69 / + 50 THEN + 40 * + 40 WHEN + 72 + 53 THEN COUNT ( + 77 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT - COUNT( * ) * + 56 AS col2, 56 + + - 21 col1
----
-56
35

skipif mysql # not compatible
query II rowsort label-3700
SELECT - COUNT ( * ) * + 56 AS col2, 56 + + - 21 col1
----
-56
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT - 40 - + COALESCE ( + - 97, + ( + MAX( ALL CAST( CASE WHEN NULL > NULL THEN - 69 END AS SIGNED ) ) ), - 41 + - ( - 31 ) ) + 32 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3701
SELECT - 40 - + COALESCE ( + - 97, + ( + MAX ( ALL CAST ( CASE WHEN NULL > NULL THEN - 69 END AS INTEGER ) ) ), - 41 + - ( - 31 ) ) + 32 AS col1
----
89

query I rowsort
SELECT ALL + NULLIF ( + - 8, 45 * 90 ) * 29
----
-232

query I rowsort
SELECT - 57 * - + NULLIF ( - 76, - + 79 * 37 + + 28 ) * + 29 AS col2
----
-125628

query I rowsort
SELECT DISTINCT - 97 * 31 AS col1
----
-3007

query I rowsort
SELECT - 92 * - ( - - 68 )
----
6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT ALL + 16 DIV + 55 + + + 68 * - - ( + COUNT( * ) ) + 39 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + 16 / + 55 + + + 68 * - - ( + COUNT ( * ) ) + 39 AS col0
----
107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT ALL 43 DIV - - SUM( DISTINCT + - 96 ) + ( - ( 79 ) ) + - 5 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL 43 / - - SUM ( DISTINCT + - 96 ) + ( - ( 79 ) ) + - 5 AS col1
----
-84

query I rowsort
SELECT ALL + CASE - 10 WHEN - 80 THEN + ( 65 ) WHEN - 31 THEN + 43 * - CASE + 47 WHEN - 65 THEN NULL ELSE - 84 - + 44 END + - 40 / + 25 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT + 79 DIV 22
----
3

skipif mysql # not compatible
query I rowsort label-3710
SELECT + 79 / 22
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT ALL 80 DIV COUNT( * ) + + + ( - COUNT( 73 ) ) * 91
----
-11

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL 80 / COUNT ( * ) + + + ( - COUNT ( 73 ) ) * 91
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT ( - - 60 ), - COUNT( * ) col1
----
60
-1

skipif mysql # not compatible
query II rowsort label-3712
SELECT ( - - 60 ), - COUNT ( * ) col1
----
60
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + COUNT( * ) + + 20 * - 23 * - 42
----
19321

skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( * ) + + 20 * - 23 * - 42
----
19321

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + + 92 * ( + MIN( + - 81 ) ) - + 45 * 79 AS col2
----
-11007

skipif mysql # not compatible
query I rowsort label-3715
SELECT + + 92 * ( + MIN ( + - 81 ) ) - + 45 * 79 AS col2
----
-11007

query I rowsort
SELECT DISTINCT + 59 * + 73 + - 34
----
4273

query I rowsort
SELECT ALL 93 * + 78 + 88 + 65 + + COALESCE ( 89, - 5, + 87, 97 ) AS col1
----
7496

query I rowsort
SELECT + 34 * - 96
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT + - 21 DIV + - 73 + 44 + + 85 DIV 47 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3719
SELECT + - 21 / + - 73 + 44 + + 85 / 47 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL + + COALESCE ( + - 8, 75, 92 + MAX( - 20 + 68 * 59 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + + COALESCE ( + - 8, 75, 92 + MAX ( - 20 + 68 * 59 ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3721
SELECT DISTINCT 22 * + NULLIF ( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ), + CAST( 3 AS DECIMAL ) * 18 + - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT 22 * + NULLIF ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), + CAST ( 3 AS REAL ) * 18 + - 78 )
----
NULL

query I rowsort
SELECT + 5 * + + 99 - + 85
----
410

query I rowsort
SELECT + - NULLIF ( - 96, - 12 ) - - 56 col0
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( NULL AS SIGNED ) - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( NULL AS INTEGER ) - - 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT ALL 83 AS col0, - 8 + + SUM( DISTINCT + 13 )
----
83
5

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL 83 AS col0, - 8 + + SUM ( DISTINCT + 13 )
----
83
5

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

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

query I rowsort
SELECT 45 * 46
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT COUNT( * ) + - 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3728
SELECT COUNT ( * ) + - 45 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT 52 - - CAST( - CASE + COALESCE ( + ( 46 ), - ( COUNT( * ) ) ) WHEN - 5 * 43 THEN 80 * + 48 ELSE NULL END AS SIGNED ) - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT 52 - - CAST ( - CASE + COALESCE ( + ( 46 ), - ( COUNT ( * ) ) ) WHEN - 5 * 43 THEN 80 * + 48 ELSE NULL END AS INTEGER ) - 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT ALL 92 AS col0, SUM( DISTINCT + 70 ) + - - 92 * + 80 + COUNT( * ) AS col1
----
92
7431

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL 92 AS col0, SUM ( DISTINCT + 70 ) + - - 92 * + 80 + COUNT ( * ) AS col1
----
92
7431

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT 61 - + MIN( 54 )
----
7

skipif mysql # not compatible
query I rowsort label-3731
SELECT 61 - + MIN ( 54 )
----
7

query I rowsort
SELECT 35 + - 16
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3733
SELECT ALL COUNT( * ) * + ( - 49 ) AS col2, 70 * - COUNT( + 18 ) DIV 71 AS col0
----
-49
0

skipif mysql # not compatible
query II rowsort label-3733
SELECT ALL COUNT ( * ) * + ( - 49 ) AS col2, 70 * - COUNT ( + 18 ) / 71 AS col0
----
-49
0

query II rowsort
SELECT ALL 7, 51 AS col1
----
7
51

query I rowsort
SELECT ALL - 94 + + + 96
----
2

query I rowsort
SELECT DISTINCT - NULLIF ( - 34, + 14 * - 5 )
----
34

query I rowsort
SELECT 60 * + 93 * - 1 * + 2
----
-11160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT ALL + 72 + - CASE - AVG ( 55 ) WHEN ( + 34 ) + + 62 THEN 64 ELSE - 54 * + 7 END DIV + ( 11 * + 56 + + 3 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + 72 + - CASE - AVG ( 55 ) WHEN ( + 34 ) + + 62 THEN 64 ELSE - 54 * + 7 END / + ( 11 * + 56 + + 3 ) AS col2
----
72

query I rowsort
SELECT + 58 * - 56 * + - 0 + 44 + - 47 * 35
----
-1601

query I rowsort
SELECT + 32 * + + 1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL - 70 * + - 95 * - - COUNT( * )
----
6650

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL - 70 * + - 95 * - - COUNT ( * )
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + 94 + + 90 * SUM( - - 36 ) col0
----
3334

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 94 + + 90 * SUM ( - - 36 ) col0
----
3334

query I rowsort
SELECT - 98 * + 10
----
-980

query I rowsort
SELECT - 68 * - 20 * + 95 AS col2
----
129200

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + COUNT( DISTINCT 86 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3746
SELECT + COUNT ( DISTINCT 86 ) col0
----
1

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

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

query I rowsort
SELECT 74 + - ( - 44 ) - + 18 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT 34 * - - NULLIF ( - - CASE + 72 WHEN CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * 43 THEN NULL ELSE - 48 END, - SUM( 39 ) ) * NULLIF ( ( 57 ), 7 ) + + CAST( - 48 AS SIGNED ) + 3 AS col2
----
-93069

skipif mysql # not compatible
query I rowsort label-3749
SELECT 34 * - - NULLIF ( - - CASE + 72 WHEN CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * 43 THEN NULL ELSE - 48 END, - SUM ( 39 ) ) * NULLIF ( ( 57 ), 7 ) + + CAST ( - 48 AS INTEGER ) + 3 AS col2
----
-93069

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + MAX( 70 ) - + + NULLIF ( - 66, 17 * - 39 - 53 ) + ( - 43 )
----
93

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + MAX ( 70 ) - + + NULLIF ( - 66, 17 * - 39 - 53 ) + ( - 43 )
----
93

query I rowsort
SELECT + 34 * - + 34 * - ( + 22 ) * + 24 - - 53
----
610421

query I rowsort
SELECT ALL + 54 * + - 26 AS col2
----
-1404

query I rowsort
SELECT - NULLIF ( + 1, + 17 * - + 69 * + 93 ) + - 45 * - 6 AS col2
----
269

query I rowsort
SELECT ALL 40 * + + 45 col0
----
1800

query I rowsort
SELECT - 14 * - 14 col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - MAX( - 14 ) + + - 87 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3756
SELECT - MAX ( - 14 ) + + - 87 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT COALESCE ( + 56, + MIN( - + 88 ) * - + 69 + - AVG ( ALL 77 ) DIV ( + 89 ) - 35 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-3757
SELECT COALESCE ( + 56, + MIN ( - + 88 ) * - + 69 + - AVG ( ALL 77 ) / ( + 89 ) - 35 ) col0
----
56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3759
SELECT CAST( 34 AS DECIMAL ) + - 85 * + ( + - CASE - + 92 WHEN - 91 * 85 THEN 43 END ) / + 65 + ( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT CAST ( 34 AS REAL ) + - 85 * + ( + - CASE - + 92 WHEN - 91 * 85 THEN 43 END ) / + 65 + ( 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT 26 * 52 * ( - MAX( DISTINCT + 81 ) )
----
-109512

skipif mysql # not compatible
query I rowsort label-3760
SELECT 26 * 52 * ( - MAX ( DISTINCT + 81 ) )
----
-109512

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT MAX( - 44 ) + 42 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3761
SELECT MAX ( - 44 ) + 42 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT DISTINCT 89 col1, 38 + + SUM( ALL - 89 )
----
89
-51

skipif mysql # not compatible
query II rowsort label-3762
SELECT DISTINCT 89 col1, 38 + + SUM ( ALL - 89 )
----
89
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT 40 * MAX( + 14 ) AS col0
----
560

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 40 * MAX ( + 14 ) AS col0
----
560

query I rowsort
SELECT ALL 4 + 66
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL COUNT( DISTINCT - 39 ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL COUNT ( DISTINCT - 39 ) + 37
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 99 + + 1 * - 10 AS col0, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 99 + + 1 * - 10 AS col0, + 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + 52 * CASE - + COUNT( ALL - - 86 ) WHEN + 99 * + COUNT( * ) * + 0 THEN NULL ELSE ( 22 ) END
----
1144

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 52 * CASE - + COUNT ( ALL - - 86 ) WHEN + 99 * + COUNT ( * ) * + 0 THEN NULL ELSE ( 22 ) END
----
1144

query I rowsort
SELECT ALL - 98 + - - 45
----
-53

query I rowsort
SELECT ALL 68 + + - 15 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT - COUNT( * ) AS col1, COUNT( * ) * - 89 * COUNT( * ) * + 96
----
-1
-8544

skipif mysql # not compatible
query II rowsort label-3770
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * - 89 * COUNT ( * ) * + 96
----
-1
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT 70 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-3771
SELECT 70 / 70
----
1

query I rowsort
SELECT ALL 62 * + 39 AS col0
----
2418

query I rowsort
SELECT 51 - + 98
----
-47

query II rowsort
SELECT 14, + 86 + COALESCE ( + - ( 44 ), 52, 89 ) * - 6 col0
----
14
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT + 35 * + SUM( + - 53 )
----
-1855

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + 35 * + SUM ( + - 53 )
----
-1855

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT ( + ( + + 39 ) ) DIV - - CASE - - 93 WHEN - 11 THEN + CASE WHEN NOT NULL >= - 0 THEN + 34 * + 19 END ELSE 6 END AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3776
SELECT ( + ( + + 39 ) ) / - - CASE - - 93 WHEN - 11 THEN + CASE WHEN NOT NULL >= - 0 THEN + 34 * + 19 END ELSE 6 END AS col1
----
6

query I rowsort
SELECT ALL ( + NULLIF ( 83, 88 * 19 ) ) - - - ( + 53 ) AS col1
----
30

query I rowsort
SELECT ALL 26 * - 73 * 54 * + 31 AS col2
----
-3177252

query I rowsort
SELECT DISTINCT - NULLIF ( ( + 47 ), - 93 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT 53 * - ( + + 46 ) - - COUNT( - 0 ) + ( - 33 ) + - 58 * + 73 AS col2
----
-6704

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT 53 * - ( + + 46 ) - - COUNT ( - 0 ) + ( - 33 ) + - 58 * + 73 AS col2
----
-6704

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

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

query III rowsort
SELECT DISTINCT - 89 AS col0, 28, - 60 AS col1
----
-89
28
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3783
SELECT 59 AS col1, + NULLIF ( - 84, + CAST( NULL AS SIGNED ) / CASE - 53 WHEN 32 * COUNT( DISTINCT - 97 * + ( 4 ) ) + + 28 THEN NULLIF ( 64, + 28 ) - + 81 WHEN 15 THEN 83 * CASE + 12 WHEN - 45 THEN ( NULLIF ( 34, ( 71 ) ) ) END WHEN - COUNT( * ) THEN 65 ELSE NULL END ) * 65 AS col0
----
59
-5460

skipif mysql # not compatible
query II rowsort label-3783
SELECT 59 AS col1, + NULLIF ( - 84, + CAST ( NULL AS INTEGER ) / CASE - 53 WHEN 32 * COUNT ( DISTINCT - 97 * + ( 4 ) ) + + 28 THEN NULLIF ( 64, + 28 ) - + 81 WHEN 15 THEN 83 * CASE + 12 WHEN - 45 THEN ( NULLIF ( 34, ( 71 ) ) ) END WHEN - COUNT ( * ) THEN 65 ELSE NULL END ) * 65 AS col0
----
59
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + COALESCE ( + - 43, + 81 + - COUNT( - 99 ) + - - ( 3 ) + MIN( + 89 ) * 76 )
----
-43

skipif mysql # not compatible
query I rowsort label-3784
SELECT + COALESCE ( + - 43, + 81 + - COUNT ( - 99 ) + - - ( 3 ) + MIN ( + 89 ) * 76 )
----
-43

query I rowsort
SELECT 85 * - - 53 + 28
----
4533

query I rowsort
SELECT + 66 * + 42
----
2772

query I rowsort
SELECT DISTINCT + - 34 * - 78 AS col0
----
2652

query II rowsort
SELECT ALL - - 88 AS col2, 90 * + ( + 72 ) + + 14 AS col2
----
88
6494

query I rowsort
SELECT ALL + + 84 * - - 36 AS col0
----
3024

query I rowsort
SELECT - 32 * 13
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + + 67 * + CASE + - 19 WHEN - NULLIF ( + 76, CASE 85 WHEN + ( - ( - 18 ) ) + - 59 * - ( 0 ) THEN COUNT( * ) END * - 66 ) + - 77 THEN NULL WHEN + MIN( ALL 30 ) * - 37 + - 88 THEN + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + + 67 * + CASE + - 19 WHEN - NULLIF ( + 76, CASE 85 WHEN + ( - ( - 18 ) ) + - 59 * - ( 0 ) THEN COUNT ( * ) END * - 66 ) + - 77 THEN NULL WHEN + MIN ( ALL 30 ) * - 37 + - 88 THEN + COUNT ( * ) ELSE NULL END col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + + 92 * + - 63
----
-5796

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - 99 DIV + ( 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 99 / + ( 76 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT - + SUM( - 81 ) * - 22 * - + 58 * - COALESCE ( 40, 20 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT - + SUM ( - 81 ) * - 22 * - + 58 * - COALESCE ( 40, 20 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - - 42 - - SUM( + 41 )
----
83

skipif mysql # not compatible
query I rowsort label-3798
SELECT - - 42 - - SUM ( + 41 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT - 17 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 17 / + 30
----
0

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

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

query I rowsort
SELECT ALL - ( 59 ) + + 35
----
-24

query I rowsort
SELECT - 10 - 87
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - COUNT( * ) + - 76 * - - 55
----
-4181

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - COUNT ( * ) + - 76 * - - 55
----
-4181

query I rowsort
SELECT ALL 57 * - 77
----
-4389

query I rowsort
SELECT - COALESCE ( + ( - 83 ), + + 2 + - 53 * + 4, + 71 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - COUNT( * ) + + 96 + 31 * - MAX( - 88 ) * + 46 * + 68
----
8533279

skipif mysql # not compatible
query I rowsort label-3806
SELECT - COUNT ( * ) + + 96 + 31 * - MAX ( - 88 ) * + 46 * + 68
----
8533279

query I rowsort
SELECT + COALESCE ( - 83, - + 70 ) - - 36
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + 3 + - + MAX( ALL + 51 ) * - + MAX( ALL + 58 ) + - 56 AS col2
----
2905

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 3 + - + MAX ( ALL + 51 ) * - + MAX ( ALL + 58 ) + - 56 AS col2
----
2905

query I rowsort
SELECT ALL 15 - + 75 AS col2
----
-60

query I rowsort
SELECT ALL ( + ( + + ( - COALESCE ( - - 3, 14 ) ) ) ) AS col1
----
-3

query I rowsort
SELECT ALL 85 * - 62 AS col1
----
-5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + - 41 * - ( + COUNT( - - 80 ) ) * + COUNT( DISTINCT 91 ) THEN 62 - - 58 WHEN - 53 * 66 THEN NULL WHEN - COUNT( * ) + + 81 / 47 THEN MIN( + 17 ) * SUM( ALL 10 ) WHEN COUNT( DISTINCT + 39 ) THEN NULL ELSE MAX( DISTINCT 96 ) * + 10 END * - 79 AS col1
----
-75840

skipif mysql # not compatible
query I rowsort label-3812
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + - 41 * - ( + COUNT ( - - 80 ) ) * + COUNT ( DISTINCT 91 ) THEN 62 - - 58 WHEN - 53 * 66 THEN NULL WHEN - COUNT ( * ) + + 81 / 47 THEN MIN ( + 17 ) * SUM ( ALL 10 ) WHEN COUNT ( DISTINCT + 39 ) THEN NULL ELSE MAX ( DISTINCT 96 ) * + 10 END * - 79 AS col1
----
-75840

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT + 73 + 34 AS col2, 17 + + - MIN( DISTINCT + - 89 ) AS col1
----
107
106

skipif mysql # not compatible
query II rowsort label-3813
SELECT + 73 + 34 AS col2, 17 + + - MIN ( DISTINCT + - 89 ) AS col1
----
107
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL + 4 * - COUNT( * ) * - - 76 * - 25 AS col2
----
7600

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + 4 * - COUNT ( * ) * - - 76 * - 25 AS col2
----
7600

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL 55 - - 33 + 48 DIV + 32
----
89

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 55 - - 33 + 48 / + 32
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT 0 DIV 89 * - 52 + 26 DIV 10 + 81 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3816
SELECT 0 / 89 * - 52 + 26 / 10 + 81 AS col0
----
83

query I rowsort
SELECT - 59 * - ( 11 ) col0
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT COUNT( * ) * + NULLIF ( ( - 67 ), + + 42 - - + AVG ( DISTINCT - 99 ) * 28 )
----
-67

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT COUNT ( * ) * + NULLIF ( ( - 67 ), + + 42 - - + AVG ( DISTINCT - 99 ) * 28 )
----
-67

query I rowsort
SELECT DISTINCT + ( - - 29 ) * - 36 AS col2
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL 77 * + 38 + + - COUNT( DISTINCT - - 54 ) AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL 77 * + 38 + + - COUNT ( DISTINCT - - 54 ) AS col0
----
2925

query I rowsort
SELECT - 11 * 98 + - 97 + - 63
----
-1238

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3822
SELECT - - 99 DIV + NULLIF ( - + 65, NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), - ( 29 ) - + 10 ), + 65 ) ) + - 47 * - 3
----
140

skipif mysql # not compatible
query I rowsort label-3822
SELECT - - 99 / + NULLIF ( - + 65, NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), - ( 29 ) - + 10 ), + 65 ) ) + - 47 * - 3
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - 43 * + - ( 86 ) * + SUM( ALL + 20 ) * + ( - SUM( + 98 ) ) AS col0
----
-7248080

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 43 * + - ( 86 ) * + SUM ( ALL + 20 ) * + ( - SUM ( + 98 ) ) AS col0
----
-7248080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT - + 82 DIV + 11 - 40 * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-3824
SELECT - + 82 / + 11 - 40 * + COUNT ( * )
----
-47

query I rowsort
SELECT - ( - 67 ) * + + 65 + - - 97 col2
----
4452

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - - SUM( 52 ) * + 42 + + 91 + ( + ( + - 65 ) ) * - 21
----
3640

skipif mysql # not compatible
query I rowsort label-3826
SELECT - - SUM ( 52 ) * + 42 + + 91 + ( + ( + - 65 ) ) * - 21
----
3640

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT + ( + + COUNT( * ) ) AS col1, + 81 * + ( - - 79 ) AS col2
----
1
6399

skipif mysql # not compatible
query II rowsort label-3827
SELECT + ( + + COUNT ( * ) ) AS col1, + 81 * + ( - - 79 ) AS col2
----
1
6399

query I rowsort
SELECT ALL + 98 * + - 75 + + + 94
----
-7256

query I rowsort
SELECT DISTINCT + 56 * 3 * 26 + - 16 + + 75 + - - 20 * + 55 * + + 52 AS col0
----
61627

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT + 33, - MAX( DISTINCT + ( + 75 ) ) * NULLIF ( MAX( ALL - ( - 55 ) ), - 38 * CASE - 64 * COUNT( * ) WHEN 45 / COUNT( * ) + MAX( DISTINCT + 77 - - NULLIF ( 34, - 15 ) ) THEN NULL WHEN - NULLIF ( AVG ( DISTINCT + 26 ), + 50 ) * + CASE 9 WHEN 81 + + NULLIF ( 8 + - 79, 43 / + 70 ) / - 33 THEN NULL ELSE 88 END THEN + 28 ELSE - ( 89 ) + + 52 / + 16 END ) - 42 + 50 * MIN( 0 ) AS col0
----
33
-4167

skipif mysql # not compatible
query II rowsort label-3830
SELECT + 33, - MAX ( DISTINCT + ( + 75 ) ) * NULLIF ( MAX ( ALL - ( - 55 ) ), - 38 * CASE - 64 * COUNT ( * ) WHEN 45 / COUNT ( * ) + MAX ( DISTINCT + 77 - - NULLIF ( 34, - 15 ) ) THEN NULL WHEN - NULLIF ( AVG ( DISTINCT + 26 ), + 50 ) * + CASE 9 WHEN 81 + + NULLIF ( 8 + - 79, 43 / + 70 ) / - 33 THEN NULL ELSE 88 END THEN + 28 ELSE - ( 89 ) + + 52 / + 16 END ) - 42 + 50 * MIN ( 0 ) AS col0
----
33
-4167

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - 87 + + 46 + + 78 * - 10 + - COUNT( * ) * + + 93
----
-914

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 87 + + 46 + + 78 * - 10 + - COUNT ( * ) * + + 93
----
-914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3832
SELECT ALL + 23 * - + CASE 91 WHEN + CASE CAST( NULL AS DECIMAL ) WHEN - 5 THEN - 91 + + COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN - 86 * 89 - 58 * 82 THEN 82 + - COALESCE ( - ( 65 ), + 80 * - 38, 54, - 14 * + 23 - + 50 / + 44 ) / - 25 WHEN 16 THEN 80 * - 81 END, - 40, COUNT( * ) ) + NULLIF ( + CAST( COUNT( * ) AS SIGNED ) + + 36, + MIN( ALL + 66 ) * 60 ) * + 22 WHEN 8 THEN NULL END + 56 THEN - 52 / + 38 ELSE NULL END + COALESCE ( + 52, - 16 * + 57, 98 ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 23 * - + CASE 91 WHEN + CASE CAST ( NULL AS REAL ) WHEN - 5 THEN - 91 + + COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN - 86 * 89 - 58 * 82 THEN 82 + - COALESCE ( - ( 65 ), + 80 * - 38, 54, - 14 * + 23 - + 50 / + 44 ) / - 25 WHEN 16 THEN 80 * - 81 END, - 40, COUNT ( * ) ) + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ) + + 36, + MIN ( ALL + 66 ) * 60 ) * + 22 WHEN 8 THEN NULL END + 56 THEN - 52 / + 38 ELSE NULL END + COALESCE ( + 52, - 16 * + 57, 98 ) * - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT + ( + + 67 ) * - 23 + - 97 + ( - + CASE + - ( + 74 ) WHEN - 86 / - MAX( + 96 / 4 ) THEN NULL WHEN - 40 * 31 THEN 21 * COUNT( * ) WHEN AVG ( ALL - 48 ) THEN - CAST( + 67 AS SIGNED ) * + ( 10 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + ( + + 67 ) * - 23 + - 97 + ( - + CASE + - ( + 74 ) WHEN - 86 / - MAX ( + 96 / 4 ) THEN NULL WHEN - 40 * 31 THEN 21 * COUNT ( * ) WHEN AVG ( ALL - 48 ) THEN - CAST ( + 67 AS INTEGER ) * + ( 10 ) END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 52 * 93 AS col2
----
4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3835
SELECT COUNT( * ), 72 / ( + CASE CASE + 74 WHEN + COUNT( ALL - ( 79 ) ) + - 4 THEN CAST( 55 AS DECIMAL ) - 99 * + 97 ELSE + 54 + CAST( NULL AS SIGNED ) END WHEN - 66 + 64 * - ( - 60 - 8 ) THEN NULL WHEN 67 THEN CAST( 86 AS SIGNED ) - MAX( ALL + 31 ) * 70 ELSE NULL END ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3835
SELECT COUNT ( * ), 72 / ( + CASE CASE + 74 WHEN + COUNT ( ALL - ( 79 ) ) + - 4 THEN CAST ( 55 AS REAL ) - 99 * + 97 ELSE + 54 + CAST ( NULL AS INTEGER ) END WHEN - 66 + 64 * - ( - 60 - 8 ) THEN NULL WHEN 67 THEN CAST ( 86 AS INTEGER ) - MAX ( ALL + 31 ) * 70 ELSE NULL END ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - COUNT( 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3836
SELECT - COUNT ( 5 ) AS col1
----
-1

query II rowsort
SELECT - 1 AS col0, - 99
----
-1
-99

query I rowsort
SELECT + 33 + + 25
----
58

query I rowsort
SELECT ALL + 62 - + 49 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT 31 AS col0, - COUNT( * ) * 0 AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-3840
SELECT 31 AS col0, - COUNT ( * ) * 0 AS col1
----
31
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT DISTINCT ( + - ( + + COALESCE ( - - 5, 52 * - CAST( - - 6 AS SIGNED ), - 0 + + 12 ) ) ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT ( + - ( + + COALESCE ( - - 5, 52 * - CAST ( - - 6 AS INTEGER ), - 0 + + 12 ) ) ) col2
----
-5

query I rowsort
SELECT DISTINCT + 81 - - ( - NULLIF ( - 7, + 68 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT 9 * + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT 9 * + COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3844
SELECT ALL 67 AS col1, + CAST( - 76 AS SIGNED ) col1
----
67
-76

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL 67 AS col1, + CAST ( - 76 AS INTEGER ) col1
----
67
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT ALL CAST( + NULLIF ( + COALESCE ( + 67, COUNT( * ) ), - 96 ) AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL CAST ( + NULLIF ( + COALESCE ( + 67, COUNT ( * ) ), - 96 ) AS INTEGER ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT DISTINCT - 8 DIV 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - 8 / 48 AS col0
----
0

query I rowsort
SELECT - 44 * + + 80
----
-3520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3848
SELECT - COALESCE ( - 66, - 58 DIV - 58 + + - 89, COUNT( * ) * + - 93 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-3848
SELECT - COALESCE ( - 66, - 58 / - 58 + + - 89, COUNT ( * ) * + - 93 ) col1
----
66

query I rowsort
SELECT + 67 / + CASE - 73 WHEN + 72 THEN 97 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - + 3 ) - - 51 * - NULLIF ( ( + + 97 ), 86 ) AS col1
----
-4944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT + 21 * 28 / 66 / - CAST( NULL AS SIGNED ) + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT + 21 * 28 / 66 / - CAST ( NULL AS INTEGER ) + - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT - 65 - + 18 * ( + - COUNT( * ) ) DIV + 44 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 65 - + 18 * ( + - COUNT ( * ) ) / + 44 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3853
SELECT 19 AS col1, 95 * - CASE 53 WHEN - 82 THEN NULL ELSE 81 + + 0 + - - CAST( NULL AS SIGNED ) * 16 END
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3853
SELECT 19 AS col1, 95 * - CASE 53 WHEN - 82 THEN NULL ELSE 81 + + 0 + - - CAST ( NULL AS INTEGER ) * 16 END
----
19
NULL

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

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL 15 AS col2, CAST ( NULL AS INTEGER )
----
15
NULL

query I rowsort
SELECT + 87 * + + 42 AS col1
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + 67 + - 90 + + - COUNT( * ) AS col2
----
-24

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

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

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - COUNT ( * ) + + + 96 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT - 8 * CAST( NULL AS SIGNED ) - CASE + 77 WHEN + 47 THEN NULL ELSE - + 33 END + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 8 * CAST ( NULL AS INTEGER ) - CASE + 77 WHEN + 47 THEN NULL ELSE - + 33 END + 30
----
NULL

query II rowsort
SELECT 93, - 41 AS col0
----
93
-41

query I rowsort
SELECT ALL 6 + - NULLIF ( + 1, - 16 ) AS col2
----
5

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

skipif mysql # not compatible
query II rowsort label-3861
SELECT COUNT ( * ) * - - 17 / - - 4 AS col0, + 76 AS col1
----
4
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3862
SELECT - ( - 27 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - ( - 27 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT - 15 + - + ( - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - 15 + - + ( - COUNT ( * ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT - - CAST( 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - - CAST ( 47 AS INTEGER )
----
47

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

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

query I rowsort
SELECT ALL ( + 7 ) + 33 * 66
----
2185

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

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

query I rowsort
SELECT 77 * + 37
----
2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3869
SELECT MAX( ALL - 38 ) + 99 DIV 62, - 77 * + 69 DIV + NULLIF ( - COUNT( * ), + - CAST( NULL AS SIGNED ) - + 67 ) + 93 AS col2
----
-37
5406

skipif mysql # not compatible
query II rowsort label-3869
SELECT MAX ( ALL - 38 ) + 99 / 62, - 77 * + 69 / + NULLIF ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) - + 67 ) + 93 AS col2
----
-37
5406

query I rowsort
SELECT 67 * 7
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT - 21 * + 95 * - COUNT( * )
----
1995

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT - 21 * + 95 * - COUNT ( * )
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL - COUNT( * ) * - 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - COUNT ( * ) * - 85 AS col0
----
85

query I rowsort
SELECT 86 - + - 64 * - 47 * - 33 AS col1
----
99350

query II rowsort
SELECT ALL - 31 * 25, - 86 AS col1
----
-775
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3875
SELECT DISTINCT - 22 * - SUM( - + 84 ) * 8 * - 71 AS col0, COALESCE ( + 38, + 98, + 59 DIV 97 ) AS col0
----
1049664
38

skipif mysql # not compatible
query II rowsort label-3875
SELECT DISTINCT - 22 * - SUM ( - + 84 ) * 8 * - 71 AS col0, COALESCE ( + 38, + 98, + 59 / 97 ) AS col0
----
1049664
38

query I rowsort
SELECT 69 * NULLIF ( + 72, - 37 + + + 97 )
----
4968

query I rowsort
SELECT 5 * + COALESCE ( 27, + 94 + + + 55 )
----
135

query I rowsort
SELECT 76 + 93 + - 84 + - 70
----
15

query II rowsort
SELECT 85 + + 31, 85 AS col1
----
116
85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL - - COUNT( DISTINCT - CAST( - - ( 28 ) AS SIGNED ) ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - - COUNT ( DISTINCT - CAST ( - - ( 28 ) AS INTEGER ) ) + + 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT - 70 + + ( - COUNT( * ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - 70 + + ( - COUNT ( * ) ) AS col1
----
-71

query I rowsort
SELECT ALL + 37 + + NULLIF ( + 11, - - 39 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3884
SELECT CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - 62 AS col0, 52 col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3884
SELECT CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 62 AS col0, 52 col1
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT ALL - - 60 DIV 59 + + 86 * + + 1 * 73 AS col0
----
6279

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - - 60 / 59 + + 86 * + + 1 * 73 AS col0
----
6279

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

skipif mysql # not compatible
query I rowsort label-3886
SELECT - 7 / - ( - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - + + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - - COUNT( * ) + + 26 + + - 20
----
7

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - - COUNT ( * ) + + 26 + + - 20
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + - CAST( + 88 AS SIGNED ) + - ( - + ( + 33 ) ) * + 25 + - 27
----
710

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + - CAST ( + 88 AS INTEGER ) + - ( - + ( + 33 ) ) * + 25 + - 27
----
710

query I rowsort
SELECT 66 * + 14
----
924

query I rowsort
SELECT 12 * + 94 * - 56
----
-63168

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT MIN( DISTINCT + 30 ) + + 22
----
52

skipif mysql # not compatible
query I rowsort label-3891
SELECT MIN ( DISTINCT + 30 ) + + 22
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + 85 * - 49 * - COUNT( * )
----
4165

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + 85 * - 49 * - COUNT ( * )
----
4165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT ( NULLIF ( + 87, - - CASE - + COUNT( - + CAST( NULL AS SIGNED ) ) WHEN - SUM( - 46 ) THEN + 56 ELSE + 65 + - 20 END ) ) + + 42 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-3893
SELECT ( NULLIF ( + 87, - - CASE - + COUNT ( - + CAST ( NULL AS INTEGER ) ) WHEN - SUM ( - 46 ) THEN + 56 ELSE + 65 + - 20 END ) ) + + 42 AS col2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ALL + 16 + NULLIF ( - 3, + 53 ) * - + CAST( NULL AS SIGNED ) / + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + 16 + NULLIF ( - 3, + 53 ) * - + CAST ( NULL AS INTEGER ) / + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT ALL - - COALESCE ( - 33, COUNT( * ) + ( + 16 ) * + COUNT( * ) DIV + 81 + + 12 + + + 0 )
----
-33

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - - COALESCE ( - 33, COUNT ( * ) + ( + 16 ) * + COUNT ( * ) / + 81 + + 12 + + + 0 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT 14 * + - COALESCE ( 51, COUNT( * ) ) - - 34 * - 57 * + 87 + + - 57
----
-169377

skipif mysql # not compatible
query I rowsort label-3896
SELECT 14 * + - COALESCE ( 51, COUNT ( * ) ) - - 34 * - 57 * + 87 + + - 57
----
-169377

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 12 + + - COUNT( * ) - + + 30 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3897
SELECT 12 + + - COUNT ( * ) - + + 30 AS col0
----
-19

query I rowsort
SELECT 35 * + 3
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3899
SELECT 70 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT 70 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3900
SELECT ALL 46 DIV + CAST( 26 AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL 46 / + CAST ( 26 AS INTEGER ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT 98 * - ( + 10 ) * - - 14 + - COUNT( * ) + 1 * + CAST( + 91 AS SIGNED ) AS col2
----
-13630

skipif mysql # not compatible
query I rowsort label-3901
SELECT 98 * - ( + 10 ) * - - 14 + - COUNT ( * ) + 1 * + CAST ( + 91 AS INTEGER ) AS col2
----
-13630

query I rowsort
SELECT DISTINCT 63 * 49 AS col0
----
3087

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT + 63 * + - 80 + - 95 * + MIN( ALL + NULLIF ( 34, 23 + 61 ) ) col0, 35 AS col1
----
-8270
35

skipif mysql # not compatible
query II rowsort label-3903
SELECT + 63 * + - 80 + - 95 * + MIN ( ALL + NULLIF ( 34, 23 + 61 ) ) col0, 35 AS col1
----
-8270
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT 39 - 98 + - 57 * + 99 * 97 * - ( - 30 ) * + - ( 92 ) + + - 14 + COALESCE ( 76, 51 ) * - MAX( - ( 74 ) )
----
1510749511

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT 39 - 98 + - 57 * + 99 * 97 * - ( - 30 ) * + - ( 92 ) + + - 14 + COALESCE ( 76, 51 ) * - MAX ( - ( 74 ) )
----
1510749511

query I rowsort
SELECT 60 * 24 AS col2
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + SUM( ALL 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3906
SELECT + SUM ( ALL 26 ) AS col2
----
26

query I rowsort
SELECT ALL - COALESCE ( - 63, 45 + - 52 ) AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-3908
SELECT MIN ( - 70 ) / COUNT ( * )
----
-70

query I rowsort
SELECT ALL 62 * 64
----
3968

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

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

query II rowsort
SELECT DISTINCT 59, 25 AS col1
----
59
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 2 * + NULLIF ( + 60, + ( - + ( + + COUNT( DISTINCT - 43 ) ) ) / + COUNT( * ) * CASE COALESCE ( - 67, + 54 * + 97, AVG ( + 18 ) ) WHEN - 88 * - 72 THEN + 48 * + 39 + + 95 END * 14 + 14 )
----
120

skipif mysql # not compatible
query I rowsort label-3912
SELECT 2 * + NULLIF ( + 60, + ( - + ( + + COUNT ( DISTINCT - 43 ) ) ) / + COUNT ( * ) * CASE COALESCE ( - 67, + 54 * + 97, AVG ( + 18 ) ) WHEN - 88 * - 72 THEN + 48 * + 39 + + 95 END * 14 + 14 )
----
120

query I rowsort
SELECT 5 * 43 * + 28
----
6020

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL 32 DIV - 95 * + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 32 / - 95 * + - 21 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3915
SELECT - SUM( - + ( - 45 ) ) AS col2, - 78 DIV + 1 AS col2
----
-45
-78

skipif mysql # not compatible
query II rowsort label-3915
SELECT - SUM ( - + ( - 45 ) ) AS col2, - 78 / + 1 AS col2
----
-45
-78

query I rowsort
SELECT 21 + + 51
----
72

query I rowsort
SELECT - COALESCE ( - 24, + 33, 52 )
----
24

query I rowsort
SELECT DISTINCT 37 + + + 75
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL 96 + - 35 * 92 + - - 97 + - - COUNT( * ) + CAST( + - COUNT( * ) AS SIGNED ) * - ( COUNT( * ) ) * + ( + 1 ) * 46 AS col2
----
-2980

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL 96 + - 35 * 92 + - - 97 + - - COUNT ( * ) + CAST ( + - COUNT ( * ) AS INTEGER ) * - ( COUNT ( * ) ) * + ( + 1 ) * 46 AS col2
----
-2980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT + + CASE - 27 WHEN + COUNT( * ) THEN + + COALESCE ( - 16, 32 * 52 + + CAST( + 25 AS SIGNED ), - - 1 ) WHEN + CASE - 54 WHEN + 53 THEN NULL ELSE - 51 + - 29 * 97 END THEN NULL ELSE NULL END * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT + + CASE - 27 WHEN + COUNT ( * ) THEN + + COALESCE ( - 16, 32 * 52 + + CAST ( + 25 AS INTEGER ), - - 1 ) WHEN + CASE - 54 WHEN + 53 THEN NULL ELSE - 51 + - 29 * 97 END THEN NULL ELSE NULL END * - 7 AS col2
----
NULL

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

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

query II rowsort
SELECT - + 55 AS col0, - 36 * 32 AS col2
----
-55
-1152

query I rowsort
SELECT - 96 * - - 66 AS col0
----
-6336

query I rowsort
SELECT ALL + + 45 + + - 61
----
-16

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

query II rowsort
SELECT ALL 84, + 64 + + 7 AS col1
----
84
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT - - COALESCE ( - 38, COUNT( ALL + 65 ) DIV - 16 ) - 99 + - COALESCE ( + + 59, - + 7 * + 22 * 23 ) AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-3927
SELECT - - COALESCE ( - 38, COUNT ( ALL + 65 ) / - 16 ) - 99 + - COALESCE ( + + 59, - + 7 * + 22 * 23 ) AS col0
----
-196

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

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - 20 * - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT - + 51 + - COALESCE ( 87, - - 27 + - 47 + - CASE COALESCE ( - 7, + MAX( ALL 6 ) ) WHEN + 27 * ( AVG ( - 26 ) ) THEN - COUNT( * ) ELSE 40 END DIV - 4 ) + 65 * 61 AS col0
----
3827

skipif mysql # not compatible
query I rowsort label-3929
SELECT - + 51 + - COALESCE ( 87, - - 27 + - 47 + - CASE COALESCE ( - 7, + MAX ( ALL 6 ) ) WHEN + 27 * ( AVG ( - 26 ) ) THEN - COUNT ( * ) ELSE 40 END / - 4 ) + 65 * 61 AS col0
----
3827

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - 99 * - 35 + + MAX( ALL - + 55 ) AS col1
----
3410

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 99 * - 35 + + MAX ( ALL - + 55 ) AS col1
----
3410

query I rowsort
SELECT + 62 * - - 60 - 85 AS col0
----
3635

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT DISTINCT + 21 DIV + - 90 * - + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + 21 / + - 90 * - + 52 AS col0
----
0

query I rowsort
SELECT - ( + + 30 ) * + 63 AS col2
----
-1890

query I rowsort
SELECT - + 93 * - 81 AS col0
----
7533

query I rowsort
SELECT ALL - 48 * - 29
----
1392

query I rowsort
SELECT 12 * - 59 + - - 70
----
-638

query I rowsort
SELECT + 16 * + + 89
----
1424

query I rowsort
SELECT ALL - 39 * - 20
----
780

query I rowsort
SELECT NULLIF ( + 43, 83 ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3941
SELECT ALL + CAST( NULL AS DECIMAL ) col0, - 42 * COUNT( DISTINCT + - 54 ) AS col0
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL + CAST ( NULL AS REAL ) col0, - 42 * COUNT ( DISTINCT + - 54 ) AS col0
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL - ( + ( + 1 ) ) * - + CASE ( 98 ) WHEN - 70 * + + COALESCE ( + 32, - COALESCE ( 87, + 49, + 74 ) ) / - 69 THEN COUNT( DISTINCT - 76 ) / 2 ELSE NULL END + - 23 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - ( + ( + 1 ) ) * - + CASE ( 98 ) WHEN - 70 * + + COALESCE ( + 32, - COALESCE ( 87, + 49, + 74 ) ) / - 69 THEN COUNT ( DISTINCT - 76 ) / 2 ELSE NULL END + - 23 * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + ( + + CASE + 49 WHEN ( - ( + - 75 ) ) * - - 11 * + MAX( - 36 ) THEN + - 10 * - - 35 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + ( + + CASE + 49 WHEN ( - ( + - 75 ) ) * - - 11 * + MAX ( - 36 ) THEN + - 10 * - - 35 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + COUNT( * ) * - + 63 + NULLIF ( - 66, 5 ) AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-3944
SELECT + COUNT ( * ) * - + 63 + NULLIF ( - 66, 5 ) AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + CASE + 94 WHEN - + MIN( - 95 ) THEN + 42 * + 30 * 49 + - ( - NULLIF ( - MAX( 92 ), 58 ) ) END * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT + CASE + 94 WHEN - + MIN ( - 95 ) THEN + 42 * + 30 * 49 + - ( - NULLIF ( - MAX ( 92 ), 58 ) ) END * - 96 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + 59, 53 + - 61 )
----
-59

query I rowsort
SELECT - 38 + - 98
----
-136

query I rowsort
SELECT + NULLIF ( - + ( - 74 ), + + 54 )
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-3949
SELECT DISTINCT + 47 AS col2, - 88 DIV + 34 AS col1
----
47
-2

skipif mysql # not compatible
query II rowsort label-3949
SELECT DISTINCT + 47 AS col2, - 88 / + 34 AS col1
----
47
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT ALL - ( NULLIF ( - - 94, - CAST( - ( - 71 ) AS SIGNED ) / COALESCE ( - 91, - COUNT( 96 ) * + COUNT( * ), + 93 ) * + 63 ) ) * 50 + + 67 AS col0
----
-4633

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - ( NULLIF ( - - 94, - CAST ( - ( - 71 ) AS INTEGER ) / COALESCE ( - 91, - COUNT ( 96 ) * + COUNT ( * ), + 93 ) * + 63 ) ) * 50 + + 67 AS col0
----
-4633

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + NULLIF ( - - COUNT( * ), ( + 6 ) * + SUM( - 56 ) ) + - SUM( 41 )
----
-40

skipif mysql # not compatible
query I rowsort label-3951
SELECT + NULLIF ( - - COUNT ( * ), ( + 6 ) * + SUM ( - 56 ) ) + - SUM ( 41 )
----
-40

query II rowsort
SELECT ALL 17 AS col2, 99 - + 90 AS col2
----
17
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL SUM( DISTINCT 34 ) * - 34
----
-1156

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL SUM ( DISTINCT 34 ) * - 34
----
-1156

query II rowsort
SELECT - + 11, 2 AS col0
----
-11
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT ALL + 10 + + - 60 DIV - - CASE 82 WHEN - 62 THEN NULL WHEN 7 THEN NULL WHEN + 90 THEN 81 ELSE + 62 * + COALESCE ( + 39, + SUM( ALL 94 ) + - ( - 77 ) ) END
----
10

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + 10 + + - 60 / - - CASE 82 WHEN - 62 THEN NULL WHEN 7 THEN NULL WHEN + 90 THEN 81 ELSE + 62 * + COALESCE ( + 39, + SUM ( ALL 94 ) + - ( - 77 ) ) END
----
10

query I rowsort
SELECT + + 4 * - + 85 AS col2
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + + 99 * + - 85 * + SUM( - 91 ) - + COUNT( * )
----
765764

skipif mysql # not compatible
query I rowsort label-3957
SELECT + + 99 * + - 85 * + SUM ( - 91 ) - + COUNT ( * )
----
765764

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + + 41 + - MIN( 25 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3958
SELECT + + 41 + - MIN ( 25 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT + - 29 + - + ( COUNT( - 83 ) ) AS col2, - COUNT( * ) AS col0
----
-30
-1

skipif mysql # not compatible
query II rowsort label-3959
SELECT + - 29 + - + ( COUNT ( - 83 ) ) AS col2, - COUNT ( * ) AS col0
----
-30
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT ALL + 60 DIV + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + 60 / + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + + 55 + - - MAX( - + COALESCE ( 35, + + 84, + NULLIF ( 51, + 77 * + 45 / + ( + 36 ) ) * - CASE - 5 WHEN - 84 + + 9 THEN NULL WHEN + 38 * + 95 THEN NULL ELSE 49 END ) ) + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3961
SELECT + + 55 + - - MAX ( - + COALESCE ( 35, + + 84, + NULLIF ( 51, + 77 * + 45 / + ( + 36 ) ) * - CASE - 5 WHEN - 84 + + 9 THEN NULL WHEN + 38 * + 95 THEN NULL ELSE 49 END ) ) + - 21
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT - CAST( NULL AS SIGNED ) - - + NULLIF ( - + 17, + 52 * + SUM( ALL 2 ) * + 70 * - 0 + CAST( - 8 AS SIGNED ) + 25 ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT - CAST ( NULL AS INTEGER ) - - + NULLIF ( - + 17, + 52 * + SUM ( ALL 2 ) * + 70 * - 0 + CAST ( - 8 AS INTEGER ) + 25 ) * 23
----
NULL

query I rowsort
SELECT + - ( - 16 ) + + 79
----
95

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

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

query I rowsort
SELECT + 83 + + 70 AS col1
----
153

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

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

query I rowsort
SELECT - 97 + - 53 AS col2
----
-150

query I rowsort
SELECT + + 3 * - 8 * - - 84
----
-2016

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + ( 79 ) * - 8 + - - NULLIF ( 26, + - 95 ) - - - 91 + + 66 * COUNT( * )
----
-631

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + ( 79 ) * - 8 + - - NULLIF ( 26, + - 95 ) - - - 91 + + 66 * COUNT ( * )
----
-631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL NULLIF ( - 41, + + 59 * - 70 + + 39 + - 1 + - CAST( NULL AS SIGNED ) ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL NULLIF ( - 41, + + 59 * - 70 + + 39 + - 1 + - CAST ( NULL AS INTEGER ) ) col1
----
-41

query I rowsort
SELECT DISTINCT 84 * + 95
----
7980

query II rowsort
SELECT 80 col1, - 36
----
80
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3974
SELECT + 72 + 11, + CASE CAST( + 53 AS DECIMAL ) WHEN COUNT( ALL 97 ) * + 40 THEN NULL ELSE + - 49 + 58 END + - 25 col0
----
83
-16

skipif mysql # not compatible
query II rowsort label-3974
SELECT + 72 + 11, + CASE CAST ( + 53 AS REAL ) WHEN COUNT ( ALL 97 ) * + 40 THEN NULL ELSE + - 49 + 58 END + - 25 col0
----
83
-16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT - 5 + + CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - 5 + + CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT ALL + SUM( 51 ), + 90 * + 88 * 48 + COUNT( * ) AS col0
----
51
380161

skipif mysql # not compatible
query II rowsort label-3977
SELECT ALL + SUM ( 51 ), + 90 * + 88 * 48 + COUNT ( * ) AS col0
----
51
380161

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT - ( + 4 ) DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT - ( + 4 ) / + - 79 AS col0
----
0

query I rowsort
SELECT DISTINCT + 62 * + 61 * + 54
----
204228

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT + ( - 73 ) DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-3980
SELECT + ( - 73 ) / + 44
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT ALL MIN( ALL 42 ) DIV - 80 * 79 + + + 74 + - 95 * - 34 * 13 AS col0
----
42064

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL MIN ( ALL 42 ) / - 80 * 79 + + + 74 + - 95 * - 34 * 13 AS col0
----
42064

query I rowsort
SELECT - ( - 46 ) * - 18 - - 53
----
-775

query I rowsort
SELECT - 44 + 47
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT + 0 * SUM( + ( - 88 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT + 0 * SUM ( + ( - 88 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL - 55 * - + COUNT( * ) * + - 30 * - COUNT( * ) + 6 AS col1
----
1656

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - 55 * - + COUNT ( * ) * + - 30 * - COUNT ( * ) + 6 AS col1
----
1656

query I rowsort
SELECT 72 * - 20 * - 85 + + 57 + 70 * - 72 AS col1
----
117417

query I rowsort
SELECT 95 * - + ( - 53 )
----
5035

query I rowsort
SELECT ALL + 73 + + - 75
----
-2

query II rowsort
SELECT DISTINCT + 0 * + - 9 AS col1, 17 + 46 AS col2
----
0
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT ALL - COUNT( * ) + 35 AS col1, - 84 * + - 78 * - CASE + 49 WHEN 54 THEN - 55 + + 47 * 50 END AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3990
SELECT ALL - COUNT ( * ) + 35 AS col1, - 84 * + - 78 * - CASE + 49 WHEN 54 THEN - 55 + + 47 * 50 END AS col2
----
34
NULL

query I rowsort
SELECT - 87 + - 87 AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + 87 * COUNT( * ) * - 43 AS col2
----
-3741

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + 87 * COUNT ( * ) * - 43 AS col2
----
-3741

query I rowsort
SELECT DISTINCT 41 * + + 14 * + - 91 * - - 55
----
-2872870

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT 46 * - 45 * - SUM( + 56 ) * - - COUNT( * ) - + + 43 AS col0
----
115877

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT 46 * - 45 * - SUM ( + 56 ) * - - COUNT ( * ) - + + 43 AS col0
----
115877

query I rowsort
SELECT ALL - 37 - + 85 AS col2
----
-122

query I rowsort
SELECT + 20 * 54 + - 40 AS col2
----
1040

query I rowsort
SELECT - ( + + COALESCE ( - 31, - 41 ) )
----
31

query I rowsort
SELECT 20 * - 35 + - - 71 AS col2
----
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT 66 - + - 63 * - COALESCE ( 77, + + 93 ) * COUNT( * ) AS col0
----
-4785

skipif mysql # not compatible
query I rowsort label-3999
SELECT 66 - + - 63 * - COALESCE ( 77, + + 93 ) * COUNT ( * ) AS col0
----
-4785

onlyif mysql # DIV for integer division: 
query II rowsort label-4000
SELECT 10 DIV NULLIF ( 64, - 58 * - 26 + 85 ) + - 90 DIV + 48, + 25 AS col2
----
-1
25

skipif mysql # not compatible
query II rowsort label-4000
SELECT 10 / NULLIF ( 64, - 58 * - 26 + 85 ) + - 90 / + 48, + 25 AS col2
----
-1
25

query I rowsort
SELECT - 61 + + 50 + - - 54
----
43

query I rowsort
SELECT + 70 * + - 83 AS col0
----
-5810

query II rowsort
SELECT 80, 62 * + 45 + + 53 AS col2
----
80
2843

query I rowsort
SELECT DISTINCT 46 + - - 72 col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT ALL + COUNT( - 59 ) + 17 AS col2, 27
----
18
27

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL + COUNT ( - 59 ) + 17 AS col2, 27
----
18
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT ALL COUNT( * ) + + - 84 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL COUNT ( * ) + + - 84 / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT + 4 + - - CASE NULLIF ( 83, 41 * MAX( ALL 40 ) ) WHEN 85 THEN COUNT( * ) WHEN ( - + 27 ) + + COALESCE ( COUNT( * ), NULLIF ( CASE + COALESCE ( 25, 76, 27 ) WHEN 20 * - NULLIF ( - 69, + NULLIF ( + 95, + 6 ) * - ( + 82 + ( 6 + + COUNT( * ) ) ) ) THEN NULL ELSE - 23 END, 7 * + 96 ) * 55 - + 84, + 88 - - 63 ) + 61 * 55 * 63 THEN NULL END + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + 4 + - - CASE NULLIF ( 83, 41 * MAX ( ALL 40 ) ) WHEN 85 THEN COUNT ( * ) WHEN ( - + 27 ) + + COALESCE ( COUNT ( * ), NULLIF ( CASE + COALESCE ( 25, 76, 27 ) WHEN 20 * - NULLIF ( - 69, + NULLIF ( + 95, + 6 ) * - ( + 82 + ( 6 + + COUNT ( * ) ) ) ) THEN NULL ELSE - 23 END, 7 * + 96 ) * 55 - + 84, + 88 - - 63 ) + 61 * 55 * 63 THEN NULL END + - 19
----
NULL

query I rowsort
SELECT DISTINCT 32 + - - 51 - + 82 AS col1
----
1

query I rowsort
SELECT 14 * 17 AS col0
----
238

query I rowsort
SELECT ALL - COALESCE ( + 17, - 83 ) * - 55 AS col0
----
935

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

skipif mysql # not compatible
query I rowsort label-4011
SELECT 20 / + 63
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4013
SELECT 91 AS col1, - 11 DIV 83 AS col0
----
91
0

skipif mysql # not compatible
query II rowsort label-4013
SELECT 91 AS col1, - 11 / 83 AS col0
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - 30 * + ( + CASE - SUM( ALL + + COALESCE ( ( 19 ), - 77 ) ) WHEN + COUNT( * ) + + 65 + COUNT( * ) THEN NULL ELSE - + COALESCE ( + 24, 81 ) END ) + COUNT( * )
----
721

skipif mysql # not compatible
query I rowsort label-4014
SELECT - 30 * + ( + CASE - SUM ( ALL + + COALESCE ( ( 19 ), - 77 ) ) WHEN + COUNT ( * ) + + 65 + COUNT ( * ) THEN NULL ELSE - + COALESCE ( + 24, 81 ) END ) + COUNT ( * )
----
721

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT 4 * - SUM( ALL - + 44 ), - 91 col1
----
176
-91

skipif mysql # not compatible
query II rowsort label-4015
SELECT 4 * - SUM ( ALL - + 44 ), - 91 col1
----
176
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - MAX( DISTINCT + 72 ) * + COUNT( * ) + - - SUM( ALL + 30 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - MAX ( DISTINCT + 72 ) * + COUNT ( * ) + - - SUM ( ALL + 30 ) AS col2
----
-42

query I rowsort
SELECT - 2 + 78
----
76

query I rowsort
SELECT ALL + - 39 * + - 16
----
624

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT ( - CAST( MIN( + ( - 41 ) ) AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT ( - CAST ( MIN ( + ( - 41 ) ) AS INTEGER ) )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT ( - 63 ) + + - 89 / + CAST( NULL AS SIGNED ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ( - 63 ) + + - 89 / + CAST ( NULL AS INTEGER ) + - 13 AS col2
----
NULL

query II rowsort
SELECT + 98 AS col0, + 67
----
98
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) + + 46 + 43 * - 68 AS col2
----
-2879

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) + + 46 + 43 * - 68 AS col2
----
-2879

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT COUNT( * ) + + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4024
SELECT COUNT ( * ) + + - 58 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL 75 * + MIN( ALL + 19 )
----
1425

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL 75 * + MIN ( ALL + 19 )
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - COUNT( * ) + + - SUM( DISTINCT - 18 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4026
SELECT - COUNT ( * ) + + - SUM ( DISTINCT - 18 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT COALESCE ( + 42, - + CASE - + COUNT( * ) WHEN - 12 DIV CAST( NULL AS SIGNED ) * - + 22 - - 82 THEN + ( + 9 ) + 32 + + - COUNT( * ) - 27 * 63 ELSE NULL END, + 92 ) DIV + 32
----
1

skipif mysql # not compatible
query I rowsort label-4027
SELECT COALESCE ( + 42, - + CASE - + COUNT ( * ) WHEN - 12 / CAST ( NULL AS INTEGER ) * - + 22 - - 82 THEN + ( + 9 ) + 32 + + - COUNT ( * ) - 27 * 63 ELSE NULL END, + 92 ) / + 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - + 30 + - 9 + - + COALESCE ( + - COUNT( * ), + COUNT( ALL - - 21 ), + SUM( + 77 ) - - + 57, 70 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - + 30 + - 9 + - + COALESCE ( + - COUNT ( * ), + COUNT ( ALL - - 21 ), + SUM ( + 77 ) - - + 57, 70 ) AS col2
----
-38

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

query I rowsort
SELECT DISTINCT + - 17 + 1
----
-16

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

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL 69 + + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT 86 * - - 50 AS col1
----
4300

query I rowsort
SELECT DISTINCT - 72 + + 2 AS col0
----
-70

query I rowsort
SELECT 99 + + 7 - - + 40 + + ( - + 36 ) + + 44 * + 68 + + + 13 AS col0
----
3115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4035
SELECT ALL 52 * 51 * + + ( - + ( 32 ) ) + AVG ( NULLIF ( + 31, 43 ) ) * + ( + + 90 ) / + 20 / + CASE - ( 40 ) WHEN 58 THEN 10 WHEN NULLIF ( + CASE CAST( 85 AS DECIMAL ) WHEN 57 / - 10 THEN COUNT( * ) * + 25 WHEN - 42 THEN + 77 ELSE NULL END, + COUNT( DISTINCT 27 ) ) - - ( 19 ) THEN NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL 52 * 51 * + + ( - + ( 32 ) ) + AVG ( NULLIF ( + 31, 43 ) ) * + ( + + 90 ) / + 20 / + CASE - ( 40 ) WHEN 58 THEN 10 WHEN NULLIF ( + CASE CAST ( 85 AS REAL ) WHEN 57 / - 10 THEN COUNT ( * ) * + 25 WHEN - 42 THEN + 77 ELSE NULL END, + COUNT ( DISTINCT 27 ) ) - - ( 19 ) THEN NULL END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT COUNT( * ) DIV - + 22 * - 16 * - COUNT( * ) + - - 89 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( * ) / - + 22 * - 16 * - COUNT ( * ) + - - 89 AS col2
----
89

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

skipif mysql # not compatible
query I rowsort label-4037
SELECT + CAST ( NULL AS INTEGER ) + + + 34 * + 52 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT + COUNT( + 62 ) DIV - ( - - 24 ) * - + 89 + + MIN( DISTINCT - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COUNT ( + 62 ) / - ( - - 24 ) * - + 89 + + MIN ( DISTINCT - 74 ) AS col0
----
-74

query I rowsort
SELECT ALL 79 * + NULLIF ( - 18, + 54 + + 36 )
----
-1422

query I rowsort
SELECT 9 * + 43 + + ( + 46 ) + - 23
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + MIN( ALL 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + MIN ( ALL 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT - COUNT( * ) DIV - 34 * + 87 * - - 26 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COUNT ( * ) / - 34 * + 87 * - - 26 + - - 58
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4043
SELECT ALL + 74 * + + 59 - + + CAST( + - 2 AS SIGNED ) + - 54 DIV - 1 AS col0
----
4422

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + 74 * + + 59 - + + CAST ( + - 2 AS INTEGER ) + - 54 / - 1 AS col0
----
4422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4044
SELECT ALL 26 * - + 54 AS col0, 69 + + + CAST( + COUNT( * ) AS SIGNED ) + - - COUNT( * ) AS col2
----
-1404
71

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL 26 * - + 54 AS col0, 69 + + + CAST ( + COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) AS col2
----
-1404
71

query I rowsort
SELECT + 38 + + 71 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 49 * + COUNT( + 29 ) * 18 * - 19 AS col2
----
-16758

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 49 * + COUNT ( + 29 ) * 18 * - 19 AS col2
----
-16758

query I rowsort
SELECT + CASE - 75 WHEN - CASE WHEN + 93 IN ( 62 ) THEN - 18 ELSE NULL END + - 20 THEN - 29 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 90 * - ( - 71 ) AS col1
----
-6390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL + + COALESCE ( + 87, - - CAST( NULL AS SIGNED ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + + COALESCE ( + 87, - - CAST ( NULL AS INTEGER ) ) col2
----
87

query I rowsort
SELECT + - 92 * + 11
----
-1012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL + CASE WHEN NOT 14 NOT IN ( - + 22 * - 87 + - + CAST( NULL AS SIGNED ) + ( + 87 ), COUNT( * ), - 7 * + - COUNT( * ) + + + 52 * - CASE 3 WHEN 3 - + 80 * - COUNT( * ) THEN 75 ELSE NULL END + + 78 ) THEN 21 * 65 ELSE 51 END AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + CASE WHEN NOT 14 NOT IN ( - + 22 * - 87 + - + CAST ( NULL AS INTEGER ) + ( + 87 ), COUNT ( * ), - 7 * + - COUNT ( * ) + + + 52 * - CASE 3 WHEN 3 - + 80 * - COUNT ( * ) THEN 75 ELSE NULL END + + 78 ) THEN 21 * 65 ELSE 51 END AS col2
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT + 93 * CASE + 68 WHEN - + 21 THEN 91 * - - 79 - - 76 + - - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN COALESCE ( - 27, 98 ) + 72 * 60 / CASE + ( - 33 ) WHEN - SUM( 69 ) * 46 THEN NULL WHEN + 59 THEN + COALESCE ( 34, + CASE - 34 WHEN - CAST( - 45 AS SIGNED ) THEN NULL ELSE 97 END + + 64 ) * - 23 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + 93 * CASE + 68 WHEN - + 21 THEN 91 * - - 79 - - 76 + - - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN COALESCE ( - 27, 98 ) + 72 * 60 / CASE + ( - 33 ) WHEN - SUM ( 69 ) * 46 THEN NULL WHEN + 59 THEN + COALESCE ( 34, + CASE - 34 WHEN - CAST ( - 45 AS INTEGER ) THEN NULL ELSE 97 END + + 64 ) * - 23 END END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT DISTINCT + 4 * - - 56 * - - 61 + - COALESCE ( COUNT( * ), + 74 DIV 48 * + + 16 * - 90 ) + - + 89 DIV + 87
----
13662

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + 4 * - - 56 * - - 61 + - COALESCE ( COUNT ( * ), + 74 / 48 * + + 16 * - 90 ) + - + 89 / + 87
----
13662

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - NULLIF ( + 16, + CASE - + 3 WHEN MIN( DISTINCT - - 67 ) + 69 THEN - 38 - - 29 END - + 60 + + - 47 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-4056
SELECT - NULLIF ( + 16, + CASE - + 3 WHEN MIN ( DISTINCT - - 67 ) + 69 THEN - 38 - - 29 END - + 60 + + - 47 ) col0
----
-16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT - + 66 * + 78 AS col0, + ( + MIN( ALL - 12 ) ) - - 82 AS col2
----
-5148
70

skipif mysql # not compatible
query II rowsort label-4058
SELECT - + 66 * + 78 AS col0, + ( + MIN ( ALL - 12 ) ) - - 82 AS col2
----
-5148
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL NULLIF ( + 19, - CASE WHEN NOT NULL IS NOT NULL THEN - COUNT( * ) WHEN + CASE + - 39 WHEN + 32 THEN - - 70 WHEN + + 24 + + 38 THEN NULL WHEN - 49 THEN + 64 + SUM( CAST( NULL AS SIGNED ) ) * 52 END IS NOT NULL THEN NULL ELSE NULL END * + 16 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL NULLIF ( + 19, - CASE WHEN NOT NULL IS NOT NULL THEN - COUNT ( * ) WHEN + CASE + - 39 WHEN + 32 THEN - - 70 WHEN + + 24 + + 38 THEN NULL WHEN - 49 THEN + 64 + SUM ( CAST ( NULL AS INTEGER ) ) * 52 END IS NOT NULL THEN NULL ELSE NULL END * + 16 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - MIN( ALL + 37 ) * + 65 AS col1
----
-2405

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - MIN ( ALL + 37 ) * + 65 AS col1
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + 85 + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + 85 + COUNT ( * ) col0
----
86

query I rowsort
SELECT DISTINCT - 63 + + 22
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + 5 + COALESCE ( - + CASE WHEN - 22 NOT BETWEEN ( - 74 * + + COUNT( * ) ) AND NULL THEN 92 * 87 * + - 63 - 39 END, - - 43 + + 51 + - 24 - + 83, 98 )
----
-8

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + 5 + COALESCE ( - + CASE WHEN - 22 NOT BETWEEN ( - 74 * + + COUNT ( * ) ) AND NULL THEN 92 * 87 * + - 63 - 39 END, - - 43 + + 51 + - 24 - + 83, 98 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - NULLIF ( - + SUM( ALL - + 25 ), COUNT( * ) ) + + - 95 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-4064
SELECT - NULLIF ( - + SUM ( ALL - + 25 ), COUNT ( * ) ) + + - 95 AS col0
----
-120

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

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 85 + - + COUNT ( * ) AS col2
----
-86

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

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT - 76 + + COUNT ( * ) AS col0
----
-75

query I rowsort
SELECT DISTINCT NULLIF ( ( - 16 ), - 29 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4068
SELECT DISTINCT COUNT( DISTINCT + + 90 ) DIV 48 * + 70 - - CAST( + 89 AS SIGNED ) * - 55
----
-4895

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT COUNT ( DISTINCT + + 90 ) / 48 * + 70 - - CAST ( + 89 AS INTEGER ) * - 55
----
-4895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT CAST( 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4069
SELECT CAST ( 19 AS INTEGER ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4070
SELECT - 23 DIV - MAX( - 50 ) * + CASE + 86 WHEN + - ( - ( + + 67 ) ) THEN 17 + 44 DIV - 54 * - COUNT( * ) WHEN - + 6 THEN NULL WHEN - CAST( + 34 AS SIGNED ) * + 17 THEN NULL ELSE 23 END + - COUNT( * ) - - 43 * - 71 AS col1
----
-3054

skipif mysql # not compatible
query I rowsort label-4070
SELECT - 23 / - MAX ( - 50 ) * + CASE + 86 WHEN + - ( - ( + + 67 ) ) THEN 17 + 44 / - 54 * - COUNT ( * ) WHEN - + 6 THEN NULL WHEN - CAST ( + 34 AS INTEGER ) * + 17 THEN NULL ELSE 23 END + - COUNT ( * ) - - 43 * - 71 AS col1
----
-3054

query I rowsort
SELECT ALL + 23 * 73 * 12 * - ( + - 75 )
----
1511100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT - COUNT( 28 ) / + 88 - 89 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT - COUNT ( 28 ) / + 88 - 89 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + MAX( DISTINCT + 27 ) DIV - - 3 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4074
SELECT + MAX ( DISTINCT + 27 ) / - - 3 AS col0
----
9

query I rowsort
SELECT + 2 * + - 2 * ( - 82 ) * 7 - - 10
----
2306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT ALL ( + 70 ) DIV + COALESCE ( - 95, 93 * 66, - NULLIF ( + 77, + ( 47 ) ) + 25 ) * - 67 + - - 70 + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL ( + 70 ) / + COALESCE ( - 95, 93 * 66, - NULLIF ( + 77, + ( 47 ) ) + 25 ) * - 67 + - - 70 + + COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT DISTINCT CAST( NULL AS SIGNED ) / 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 85 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT 55 * + - COUNT ( * ) * - COUNT ( * ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4080
SELECT + + CAST( - MIN( ALL + 12 ) AS SIGNED ), + 43 col0
----
-12
43

skipif mysql # not compatible
query II rowsort label-4080
SELECT + + CAST ( - MIN ( ALL + 12 ) AS INTEGER ), + 43 col0
----
-12
43

query I rowsort
SELECT + NULLIF ( + + 27, - 8 )
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + + 70 + - CASE 14 WHEN + - 36 * + CAST( - - 11 AS SIGNED ) + 6 + + + 31 + + 51 / - + 8 - + + COALESCE ( - 27, 98 * 74 + CASE COUNT( * ) WHEN - 7 THEN NULL ELSE - ( COUNT( * ) ) + 58 END / + 75, - 81 ) THEN - 88 WHEN CAST( NULL AS SIGNED ) + 34 THEN 24 * - 3 - 74 END + COUNT( * ) * 51 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT + + 70 + - CASE 14 WHEN + - 36 * + CAST ( - - 11 AS INTEGER ) + 6 + + + 31 + + 51 / - + 8 - + + COALESCE ( - 27, 98 * 74 + CASE COUNT ( * ) WHEN - 7 THEN NULL ELSE - ( COUNT ( * ) ) + 58 END / + 75, - 81 ) THEN - 88 WHEN CAST ( NULL AS INTEGER ) + 34 THEN 24 * - 3 - 74 END + COUNT ( * ) * 51 * + 78 AS col0
----
NULL

query I rowsort
SELECT ALL 39 * + 28
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT - - 97 * - ( - 31 ) + - - COUNT( + 30 ) + - + COUNT( * ) + - 68 + 32 * + - 26
----
2107

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - - 97 * - ( - 31 ) + - - COUNT ( + 30 ) + - + COUNT ( * ) + - 68 + 32 * + - 26
----
2107

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT + 93 DIV - + 69
----
-1

skipif mysql # not compatible
query I rowsort label-4086
SELECT + 93 / - + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - - CASE WHEN - COALESCE ( 47, - 26 ) IS NULL THEN 31 * + ( - COUNT( * ) ) * + NULLIF ( + - 70, + - 10 ) * - + SUM( - ( 91 ) ) END + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - CASE WHEN - COALESCE ( 47, - 26 ) IS NULL THEN 31 * + ( - COUNT ( * ) ) * + NULLIF ( + - 70, + - 10 ) * - + SUM ( - ( 91 ) ) END + + 56
----
NULL

query II rowsort
SELECT - 56 AS col2, + 70 * - 49 + - 62 + + 53 col1
----
-56
-3439

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT NULLIF ( - - ( 53 ), - CASE 79 WHEN 11 THEN NULL WHEN - + 91 * + + 51 + - + 21 THEN NULL WHEN SUM( 65 ) THEN NULL WHEN + 58 THEN + + 57 END ) DIV - + 86 * - 49
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT NULLIF ( - - ( 53 ), - CASE 79 WHEN 11 THEN NULL WHEN - + 91 * + + 51 + - + 21 THEN NULL WHEN SUM ( 65 ) THEN NULL WHEN + 58 THEN + + 57 END ) / - + 86 * - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + COUNT( * ) + - + ( + - 47 ) * - + 84
----
-3947

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + COUNT ( * ) + - + ( + - 47 ) * - + 84
----
-3947

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4092
SELECT CAST( + 24 AS SIGNED ) DIV + - ( - CAST( + 78 AS SIGNED ) ) * - 78
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( + 24 AS INTEGER ) / + - ( - CAST ( + 78 AS INTEGER ) ) * - 78
----
0

query I rowsort
SELECT ALL + 18 * + 53 * - 94 AS col0
----
-89676

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT DISTINCT 22 DIV + 21 col0
----
1

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT 22 / + 21 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4095
SELECT ALL 37, 49 DIV - ( COUNT( * ) ) col2
----
37
-49

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL 37, 49 / - ( COUNT ( * ) ) col2
----
37
-49

query I rowsort
SELECT DISTINCT 15 * + - 69
----
-1035

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ALL - COUNT( * ) - - + 52 AS col0, + ( 58 )
----
51
58

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - COUNT ( * ) - - + 52 AS col0, + ( 58 )
----
51
58

query I rowsort
SELECT ALL - 55 * + + 23 AS col2
----
-1265

query II rowsort
SELECT ALL 55 AS col2, 21 AS col1
----
55
21

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

skipif mysql # not compatible
query I rowsort label-4100
SELECT 39 * 74 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT + COUNT( * ) - 67 + - 63 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + COUNT ( * ) - 67 + - 63 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT ALL - 84 AS col1, - 19 * - ( - MAX( ALL - 74 ) ) * + 42 * - + ( ( - - CASE - CASE - + 19 WHEN - + 9 THEN NULL WHEN - 18 + + + 77 THEN NULL WHEN - NULLIF ( - 39, ( 65 ) * - 98 ) THEN NULLIF ( + 17, - 22 ) END WHEN - 62 + + ( 22 ) * 49 THEN + 86 WHEN 90 * 96 THEN - 43 / 29 ELSE CASE - 56 WHEN ( + COUNT( * ) ) * + COUNT( * ) THEN + 64 * NULLIF ( 34, + 26 ) + - MIN( DISTINCT 14 ) WHEN 30 / - NULLIF ( + ( 17 ), ( - 24 ) - 63 ) + 81 * 19 THEN + 96 END * 47 + - 46 END ) ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-4102
SELECT ALL - 84 AS col1, - 19 * - ( - MAX ( ALL - 74 ) ) * + 42 * - + ( ( - - CASE - CASE - + 19 WHEN - + 9 THEN NULL WHEN - 18 + + + 77 THEN NULL WHEN - NULLIF ( - 39, ( 65 ) * - 98 ) THEN NULLIF ( + 17, - 22 ) END WHEN - 62 + + ( 22 ) * 49 THEN + 86 WHEN 90 * 96 THEN - 43 / 29 ELSE CASE - 56 WHEN ( + COUNT ( * ) ) * + COUNT ( * ) THEN + 64 * NULLIF ( 34, + 26 ) + - MIN ( DISTINCT 14 ) WHEN 30 / - NULLIF ( + ( 17 ), ( - 24 ) - 63 ) + 81 * 19 THEN + 96 END * 47 + - 46 END ) ) AS col1
----
-84
NULL

query I rowsort
SELECT ALL + ( - 83 ) * - - ( - 6 )
----
498

query I rowsort
SELECT 29 * + 14
----
406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 20 * + AVG ( + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 20 * + AVG ( + 98 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT + - MAX( + + 84 ) * - 88 AS col1
----
7392

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + - MAX ( + + 84 ) * - 88 AS col1
----
7392

query II rowsort
SELECT + - 10 AS col2, 30 * 73 * - + 93
----
-10
-203670

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT + 45 DIV 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT + 45 / 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4109
SELECT 41 * + 80 * + COUNT( * ) * - - COALESCE ( + + CAST( + NULLIF ( - SUM( 34 ), + 54 * + 17 + + - MAX( - + CAST( NULL AS DECIMAL ) ) ) AS SIGNED ), - + COUNT( * ) + + - 63 ) * 76 AS col2
----
-8475520

skipif mysql # not compatible
query I rowsort label-4109
SELECT 41 * + 80 * + COUNT ( * ) * - - COALESCE ( + + CAST ( + NULLIF ( - SUM ( 34 ), + 54 * + 17 + + - MAX ( - + CAST ( NULL AS REAL ) ) ) AS INTEGER ), - + COUNT ( * ) + + - 63 ) * 76 AS col2
----
-8475520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT + 77 + 9 + 39 DIV + COUNT( * ) - - - 37 + - - COALESCE ( - 80, + 38, - 8 * - 35 ) DIV - ( - + MAX( - 98 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + 77 + 9 + 39 / + COUNT ( * ) - - - 37 + - - COALESCE ( - 80, + 38, - 8 * - 35 ) / - ( - + MAX ( - 98 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT ALL COUNT( * ) DIV + + 48 + - MAX( DISTINCT - 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL COUNT ( * ) / + + 48 + - MAX ( DISTINCT - 21 ) AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - + COUNT ( * ) + 62 AS col0
----
61

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

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

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

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 87
----
NULL

query II rowsort
SELECT - 29 AS col2, 67 * 51
----
-29
3417

query I rowsort
SELECT ALL + 3 + - 96 * + + 56
----
-5373

query I rowsort
SELECT 89 - - 28
----
117

query I rowsort
SELECT DISTINCT - 70 - + 94 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL MAX( 60 ) * + + 25
----
1500

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL MAX ( 60 ) * + + 25
----
1500

onlyif mysql # aggregate syntax: 
query III rowsort label-4120
SELECT ALL 81 - - - 9 + - + 89 AS col1, 24 * - 9, COUNT( DISTINCT - 66 ) - + + 34 col0
----
-17
-216
-33

skipif mysql # not compatible
query III rowsort label-4120
SELECT ALL 81 - - - 9 + - + 89 AS col1, 24 * - 9, COUNT ( DISTINCT - 66 ) - + + 34 col0
----
-17
-216
-33

query I rowsort
SELECT ( - 52 ) * + 1 * + 16 * - - 50 * - - 76 * + + ( + 57 ) + - 82 + + COALESCE ( ( 94 ), + + 58 ) AS col0
----
-180211188

query I rowsort
SELECT ALL 63 - + ( + 8 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT CAST( NULL AS SIGNED ) / + 1 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT CAST ( NULL AS INTEGER ) / + 1 * 31
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT 40 DIV 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4125
SELECT 40 / 15 AS col0
----
2

query II rowsort
SELECT 10 * 0, 31 + + 89 AS col0
----
0
120

query I rowsort
SELECT 49 * + 57 AS col0
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT - CASE - + 73 WHEN + COUNT( - 7 ) THEN + + ( - 58 ) ELSE NULL END * - 34 / + 49 + - 36 - 8 + COUNT( * ) * - ( - 72 ) * - 4 * + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT - CASE - + 73 WHEN + COUNT ( - 7 ) THEN + + ( - 58 ) ELSE NULL END * - 34 / + 49 + - 36 - 8 + COUNT ( * ) * - ( - 72 ) * - 4 * + - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT ALL 67 DIV - 60, - COUNT( * ) + + + COUNT( * ) col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL 67 / - 60, - COUNT ( * ) + + + COUNT ( * ) col2
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL CASE 14 WHEN + 67 THEN NULL WHEN - CASE - - ( COUNT( DISTINCT 95 ) ) WHEN - - 99 + + COUNT( * ) THEN NULL WHEN + - 36 THEN NULL ELSE AVG ( DISTINCT - - 71 ) END THEN - ( - - 20 ) * + 76 * + CAST( 70 AS SIGNED ) ELSE NULL END * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL CASE 14 WHEN + 67 THEN NULL WHEN - CASE - - ( COUNT ( DISTINCT 95 ) ) WHEN - - 99 + + COUNT ( * ) THEN NULL WHEN + - 36 THEN NULL ELSE AVG ( DISTINCT - - 71 ) END THEN - ( - - 20 ) * + 76 * + CAST ( 70 AS INTEGER ) ELSE NULL END * 35 AS col2
----
NULL

query I rowsort
SELECT 97 * + - 44 + + - 41 AS col0
----
-4309

query I rowsort
SELECT DISTINCT + 83 * + - 88 * 28 + 30
----
-204482

query I rowsort
SELECT 76 * NULLIF ( + - 80, - - 2 ) AS col1
----
-6080

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT DISTINCT - + COUNT( DISTINCT 63 ) col2, 63 * - - 53 AS col2
----
-1
3339

skipif mysql # not compatible
query II rowsort label-4134
SELECT DISTINCT - + COUNT ( DISTINCT 63 ) col2, 63 * - - 53 AS col2
----
-1
3339

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT ALL + - 76 * + ( - 70 ) + - - 36 DIV - 85 AS col2
----
5320

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + - 76 * + ( - 70 ) + - - 36 / - 85 AS col2
----
5320

query I rowsort
SELECT DISTINCT + + 10 * + 52 + - - ( + 88 ) AS col1
----
608

query I rowsort
SELECT DISTINCT + 26 * + - 7
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL - 41 * + + 85 + + MAX( DISTINCT + 92 ) * - 38 + - SUM( ALL - 60 ) + - 36 + + 51
----
-6906

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - 41 * + + 85 + + MAX ( DISTINCT + 92 ) * - 38 + - SUM ( ALL - 60 ) + - 36 + + 51
----
-6906

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 62 * + COUNT( * ) - + - 86 - - + 38 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-4140
SELECT 62 * + COUNT ( * ) - + - 86 - - + 38 AS col1
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4141
SELECT ALL + + CAST( NULL AS DECIMAL ) / 30 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + + CAST ( NULL AS REAL ) / 30 * 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT - CAST( NULL AS SIGNED ) - 13 * + + 67 col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - 32 - - CASE - 87 WHEN + MIN( - 47 ) + - 90 * + 90 THEN NULL WHEN - 2 THEN NULL WHEN - 32 THEN 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 32 - - CASE - 87 WHEN + MIN ( - 47 ) + - 90 * + 90 THEN NULL WHEN - 2 THEN NULL WHEN - 32 THEN 66 END
----
NULL

query I rowsort
SELECT - 85 + + 37
----
-48

query I rowsort
SELECT + 54 * - 75
----
-4050

query I rowsort
SELECT - 98 + - 20 col1
----
-118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4147
SELECT - COUNT( * ) * - CASE + 99 WHEN + 5 - + CASE 23 WHEN 80 - + 4 THEN + + ( + 82 ) ELSE NULL END THEN NULL WHEN - 15 * ( + ( - + 74 ) ) + + + ( - 44 ) + - 40 * - 34 THEN 7 + - 38 ELSE NULL END * 25 + 29 * 50 - 3 / ( MAX( 78 ) * ( CAST( NULL AS DECIMAL ) ) + COALESCE ( + SUM( DISTINCT ( - 4 ) ) - + 65 * 78, 32 * 82, - 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT - COUNT ( * ) * - CASE + 99 WHEN + 5 - + CASE 23 WHEN 80 - + 4 THEN + + ( + 82 ) ELSE NULL END THEN NULL WHEN - 15 * ( + ( - + 74 ) ) + + + ( - 44 ) + - 40 * - 34 THEN 7 + - 38 ELSE NULL END * 25 + 29 * 50 - 3 / ( MAX ( 78 ) * ( CAST ( NULL AS REAL ) ) + COALESCE ( + SUM ( DISTINCT ( - 4 ) ) - + 65 * 78, 32 * 82, - 41 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4148
SELECT 77 * COUNT ( * ) + - 32 AS col0
----
45

query I rowsort
SELECT - 93 * + 14
----
-1302

query II rowsort
SELECT ALL 77 AS col2, + 41
----
77
41

query I rowsort
SELECT + 69 * + 18
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4152
SELECT ALL CASE - + CASE - + NULLIF ( 9, - + 80 ) WHEN COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN + + 46 THEN - 52 ELSE - ( 41 ) END WHEN - + 59 THEN - COUNT( * ) - + - ( + + 46 ) WHEN + - 47 THEN NULL ELSE + - 79 + 60 + 50 DIV 59 END
----
-19

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL CASE - + CASE - + NULLIF ( 9, - + 80 ) WHEN COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN + + 46 THEN - 52 ELSE - ( 41 ) END WHEN - + 59 THEN - COUNT ( * ) - + - ( + + 46 ) WHEN + - 47 THEN NULL ELSE + - 79 + 60 + 50 / 59 END
----
-19

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

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

query I rowsort
SELECT + 45 + + 29 AS col0
----
74

query II rowsort
SELECT 29, + 87 + + - 49 AS col1
----
29
38

query II rowsort
SELECT - 86 AS col2, 90 * - 69 + 75 col0
----
-86
-6135

query I rowsort
SELECT + 21 + 85 AS col0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( - 82, - 86, 21 / + 14, 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( - 82, - 86, 21 / + 14, 57 )
----
NULL

query I rowsort
SELECT + 39 * - COALESCE ( - - 1, + 74 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT DISTINCT ( + ( + - ( + 42 ) ) ) * COALESCE ( - + 89, - + 62 * - - 83 + COALESCE ( 60, - - 79 + - 10, + 6 + 42 + + ( COUNT( * ) ), NULLIF ( + 6, COALESCE ( + 34, - 21 * + MAX( ALL 74 * 6 ) ) / 55 - ( COALESCE ( 91, + 11 ) ) * + 24 ) ) + - 47 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT ( + ( + - ( + 42 ) ) ) * COALESCE ( - + 89, - + 62 * - - 83 + COALESCE ( 60, - - 79 + - 10, + 6 + 42 + + ( COUNT ( * ) ), NULLIF ( + 6, COALESCE ( + 34, - 21 * + MAX ( ALL 74 * 6 ) ) / 55 - ( COALESCE ( 91, + 11 ) ) * + 24 ) ) + - 47 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4161
SELECT ALL 46 AS col1, - 28 DIV + COALESCE ( - 72, - + 11, + 84 )
----
46
0

skipif mysql # not compatible
query II rowsort label-4161
SELECT ALL 46 AS col1, - 28 / + COALESCE ( - 72, - + 11, + 84 )
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL 97 * + - ( - - NULLIF ( + ( - + 15 ), - MAX( ALL + + 27 ) * - + 3 + + - 9 ) ) * - 98 col0
----
-142590

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL 97 * + - ( - - NULLIF ( + ( - + 15 ), - MAX ( ALL + + 27 ) * - + 3 + + - 9 ) ) * - 98 col0
----
-142590

query I rowsort
SELECT + 3 * + 70
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - MAX( ALL - + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4164
SELECT - MAX ( ALL - + 24 ) AS col0
----
24

query I rowsort
SELECT DISTINCT - 10 * - 26 AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL ( - - COALESCE ( 38, 93 * + + 44 ) ) + 71 + + COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL ( - - COALESCE ( 38, 93 * + + 44 ) ) + 71 + + COUNT ( * ) AS col0
----
110

query I rowsort
SELECT ALL 14 + + + 52 AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT + 25 DIV - - 37
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT + 25 / - - 37
----
0

query I rowsort
SELECT + - 32 + - CASE + 32 WHEN - 11 THEN - + 20 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL CASE + 91 WHEN - 73 + + 58 * 97 THEN MAX( + 26 ) + + 60 + - - COUNT( * ) * - 84 ELSE - - 92 + + 7 END AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL CASE + 91 WHEN - 73 + + 58 * 97 THEN MAX ( + 26 ) + + 60 + - - COUNT ( * ) * - 84 ELSE - - 92 + + 7 END AS col1
----
99

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

skipif mysql # not compatible
query I rowsort label-4172
SELECT - + COUNT ( * ) / - 83 * - 66 + COUNT ( * )
----
1

query I rowsort
SELECT + 44 * + 19 - - - CASE - - 56 WHEN + 42 + 32 - 33 * - + 5 - + 82 * - 86 * 48 * + - 9 * - - 10 THEN NULL WHEN - 30 THEN + 84 / + 69 - + - AVG ( + ( 3 ) ) + + 15 ELSE NULL END + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4174
SELECT ALL - CAST( 55 AS SIGNED ) * - 17 + + 22 col2, + MIN( + 33 ) AS col2
----
957
33

skipif mysql # not compatible
query II rowsort label-4174
SELECT ALL - CAST ( 55 AS INTEGER ) * - 17 + + 22 col2, + MIN ( + 33 ) AS col2
----
957
33

query I rowsort
SELECT + - 82 + + 68
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT ( MIN( + 53 ) ) * + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT ( MIN ( + 53 ) ) * + COUNT ( * ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4177
SELECT ALL - ( - ( COALESCE ( 81, - + CAST( NULL AS DECIMAL ) + - - ( + 13 ) ) ) ) * - NULLIF ( + CAST( NULL AS SIGNED ), 87 ) * 52 + - 49 + 13 * - + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - ( - ( COALESCE ( 81, - + CAST ( NULL AS REAL ) + - - ( + 13 ) ) ) ) * - NULLIF ( + CAST ( NULL AS INTEGER ), 87 ) * 52 + - 49 + 13 * - + 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT + CAST( 81 AS SIGNED ) * - 15 + + ( + 67 ) col0
----
-1148

skipif mysql # not compatible
query I rowsort label-4178
SELECT + CAST ( 81 AS INTEGER ) * - 15 + + ( + 67 ) col0
----
-1148

query I rowsort
SELECT + - 33 * + + 82 col0
----
-2706

query I rowsort
SELECT ALL 63 * - 50
----
-3150

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT DISTINCT + 1 * 95 + - 47 * - 95 AS col1, 90 * + - COUNT( * ) * - - 55 AS col1
----
4560
-4950

skipif mysql # not compatible
query II rowsort label-4181
SELECT DISTINCT + 1 * 95 + - 47 * - 95 AS col1, 90 * + - COUNT ( * ) * - - 55 AS col1
----
4560
-4950

query II rowsort
SELECT - 90 AS col2, 82 + 90 + + 4 AS col2
----
-90
176

query II rowsort
SELECT - 16 + + 94 + 18 + ( - ( + - 52 ) ), 88 AS col1
----
148
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT ALL MIN( ALL 35 ) * + + COALESCE ( - COUNT( * ), ( + 8 ), - 90 ) - + - 97 DIV - - 17 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL MIN ( ALL 35 ) * + + COALESCE ( - COUNT ( * ), ( + 8 ), - 90 ) - + - 97 / - - 17 AS col2
----
-30

query II rowsort
SELECT + 41 AS col2, 72 AS col1
----
41
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - 29 + + 81 * + COUNT( * ) - + MIN( ALL - 88 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 29 + + 81 * + COUNT ( * ) - + MIN ( ALL - 88 ) AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT + MAX( DISTINCT + ( + 31 ) ) AS col0, - 46 * 4
----
31
-184

skipif mysql # not compatible
query II rowsort label-4187
SELECT + MAX ( DISTINCT + ( + 31 ) ) AS col0, - 46 * 4
----
31
-184

query II rowsort
SELECT ALL + 29, + 32 * 69 AS col0
----
29
2208

query II rowsort
SELECT + + 73 col2, - 61 * - - 43
----
73
-2623

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4190
SELECT ALL + CAST( + 43 AS SIGNED ) * + 34 - - - 23 DIV - 73 AS col2
----
1462

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + CAST ( + 43 AS INTEGER ) * + 34 - - - 23 / - 73 AS col2
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - - 31 * - ( - + ( - + 54 ) ) * + + 35 + - 19 + - 30 * - COUNT( * )
----
-58579

skipif mysql # not compatible
query I rowsort label-4191
SELECT - - 31 * - ( - + ( - + 54 ) ) * + + 35 + - 19 + - 30 * - COUNT ( * )
----
-58579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4192
SELECT ALL - 20 * + - 74 * MAX( ALL + 32 ) * CAST( + - 71 AS SIGNED ), + 48 + + 84 * - 72 + - + MAX( ALL + 6 ) col1
----
-3362560
-6006

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL - 20 * + - 74 * MAX ( ALL + 32 ) * CAST ( + - 71 AS INTEGER ), + 48 + + 84 * - 72 + - + MAX ( ALL + 6 ) col1
----
-3362560
-6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT - NULLIF ( + + 37, + 76 ) DIV + + ( - COUNT( * ) ) col1
----
37

skipif mysql # not compatible
query I rowsort label-4193
SELECT - NULLIF ( + + 37, + 76 ) / + + ( - COUNT ( * ) ) col1
----
37

query I rowsort
SELECT - 16 * - 83 * + 88 * + 33 * - 36 col0
----
-138834432

query II rowsort
SELECT ALL - 96 * 71, 76 AS col1
----
-6816
76

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

query I rowsort
SELECT - 10 - + 19 * - - 90
----
-1720

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT COUNT( + - 92 ) AS col2, - 41 * + 60 + - 84 AS col2
----
1
-2544

skipif mysql # not compatible
query II rowsort label-4198
SELECT COUNT ( + - 92 ) AS col2, - 41 * + 60 + - 84 AS col2
----
1
-2544

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

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

query I rowsort
SELECT - 86 * 13
----
-1118

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

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

query I rowsort
SELECT DISTINCT - 51 + + + 65 + - 40
----
-26

query II rowsort
SELECT DISTINCT ( + 94 ), + 34 col2
----
94
34

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

query I rowsort
SELECT ALL 67 + - 20 - - 58
----
105

query I rowsort
SELECT + 49 * + 51 * - - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT - 96 + - - CASE - - 97 WHEN - 43 / - + CAST( NULL AS SIGNED ) THEN - + 66 * 44 + - 71 + COUNT( + 60 ) * 58 + + + 66 + - 88 WHEN 16 * + 24 THEN + MIN( - ( 67 ) ) * + - 16 * + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 96 + - - CASE - - 97 WHEN - 43 / - + CAST ( NULL AS INTEGER ) THEN - + 66 * 44 + - 71 + COUNT ( + 60 ) * 58 + + + 66 + - 88 WHEN 16 * + 24 THEN + MIN ( - ( 67 ) ) * + - 16 * + 60 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 8 * + 57 * - 70 AS col1
----
-31920

query I rowsort
SELECT - 13 * - 5 AS col2
----
65

query I rowsort
SELECT - - 28 + - NULLIF ( 14, + + ( - + 95 ) )
----
14

query I rowsort
SELECT ALL 8 + 58 * + 69 * - 70 AS col1
----
-280132

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + 11 DIV + 43 - - 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + 11 / + 43 - - 83 AS col1
----
83

query I rowsort
SELECT + NULLIF ( + 12, 49 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT ALL + COALESCE ( - 41, COALESCE ( + + 59, + + 65 DIV + 18 + + ( + 28 ), + 4 ), + - COUNT( * ) + + 14 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + COALESCE ( - 41, COALESCE ( + + 59, + + 65 / + 18 + + ( + 28 ), + 4 ), + - COUNT ( * ) + + 14 ) AS col0
----
-41

query I rowsort
SELECT 95 - + 12 * - 92 * - - 26 * - 25 + - - 28 * + 13 AS col2
----
-717141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT + 45 * - 18 * + 63 * + 57 / + + CASE 79 WHEN - 23 + 43 THEN 2 * + - 74 + + 63 + + - NULLIF ( - 98, - MIN( DISTINCT + 13 ) + + + 20 / - 84 ) WHEN + ( - COUNT( * ) ) / + 3 THEN - 75 * + COUNT( * ) + NULLIF ( - 28 + CAST( NULL AS SIGNED ), 56 * 9 + 4 ) * + COUNT( * ) END / + COUNT( * ) + - 61 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 45 * - 18 * + 63 * + 57 / + + CASE 79 WHEN - 23 + 43 THEN 2 * + - 74 + + 63 + + - NULLIF ( - 98, - MIN ( DISTINCT + 13 ) + + + 20 / - 84 ) WHEN + ( - COUNT ( * ) ) / + 3 THEN - 75 * + COUNT ( * ) + NULLIF ( - 28 + CAST ( NULL AS INTEGER ), 56 * 9 + 4 ) * + COUNT ( * ) END / + COUNT ( * ) + - 61 + 92
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - 82 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4219
SELECT ALL + 66 * + 75 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + 66 * + 75 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT - - 46 DIV + 63 - 77 + - 39 - + + 11 * CAST( COUNT( * ) AS SIGNED ) + + 0 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-4220
SELECT - - 46 / + 63 - 77 + - 39 - + + 11 * CAST ( COUNT ( * ) AS INTEGER ) + + 0 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + COUNT( * ) * + COALESCE ( 9, - 82, - - 50 * 89 * - - 3 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( 9, - 82, - - 50 * 89 * - - 3 ) col1
----
9

query I rowsort
SELECT + 47 * + 86 + + + 1 + 61 - - - 61
----
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - MAX( DISTINCT - - 72 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - MAX ( DISTINCT - - 72 ) col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT + 84 * 89 * + 45 + COALESCE ( + 26, + + 12 + - - CAST( NULL AS SIGNED ) + 28 )
----
336446

skipif mysql # not compatible
query I rowsort label-4224
SELECT + 84 * 89 * + 45 + COALESCE ( + 26, + + 12 + - - CAST ( NULL AS INTEGER ) + 28 )
----
336446

query I rowsort
SELECT 33 * - 57 AS col1
----
-1881

query I rowsort
SELECT ALL + ( + 69 ) + + ( - 81 )
----
-12

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT DISTINCT - 52 AS col1, NULLIF ( - 40, - ( - COUNT( * ) ) )
----
-52
-40

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT - 52 AS col1, NULLIF ( - 40, - ( - COUNT ( * ) ) )
----
-52
-40

query I rowsort
SELECT ALL - ( 45 ) + + - 81 + - - 12 + + 15 - + 3 * - - 35
----
-204

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT ALL 99, - 78 + 93 + + MAX( DISTINCT + - ( + 63 ) ) + 10 AS col0
----
99
-38

skipif mysql # not compatible
query II rowsort label-4232
SELECT ALL 99, - 78 + 93 + + MAX ( DISTINCT + - ( + 63 ) ) + 10 AS col0
----
99
-38

query I rowsort
SELECT ALL + 38 + + + NULLIF ( 73, + 69 ) - + + 76 col0
----
35

query I rowsort
SELECT 49 + - 43 AS col2
----
6

query III rowsort
SELECT 27 AS col2, - 27 + - + 76 AS col1, 1 AS col2
----
27
-103
1

query I rowsort
SELECT 58 + + 28
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT 39 * - CAST( + + CASE + MIN( - 43 ) WHEN - 48 + 63 * NULLIF ( - CASE - 63 WHEN CAST( NULL AS SIGNED ) * 6 - - 27 THEN - COUNT( * ) ELSE + - 67 + - COALESCE ( 68, - CAST( + 85 AS SIGNED ), ( + 42 ) + - 50, COUNT( * ) ) END, 87 ) THEN NULL WHEN 91 * - COALESCE ( 13, 19 ) THEN NULL ELSE + 30 * - ( 84 ) END AS SIGNED ) AS col1
----
98280

skipif mysql # not compatible
query I rowsort label-4238
SELECT 39 * - CAST ( + + CASE + MIN ( - 43 ) WHEN - 48 + 63 * NULLIF ( - CASE - 63 WHEN CAST ( NULL AS INTEGER ) * 6 - - 27 THEN - COUNT ( * ) ELSE + - 67 + - COALESCE ( 68, - CAST ( + 85 AS INTEGER ), ( + 42 ) + - 50, COUNT ( * ) ) END, 87 ) THEN NULL WHEN 91 * - COALESCE ( 13, 19 ) THEN NULL ELSE + 30 * - ( 84 ) END AS INTEGER ) AS col1
----
98280

query I rowsort
SELECT 74 * - 76
----
-5624

query I rowsort
SELECT DISTINCT + 20 + 61
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + COUNT( * ) * - + 29 * MIN( 21 )
----
-609

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + COUNT ( * ) * - + 29 * MIN ( 21 )
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - CASE - COUNT( * ) WHEN + 49 + - 22 * + 25 * - - 92 THEN NULL WHEN 90 - - 61 * + + 88 + - 72 - 53 THEN NULL ELSE + - CASE + 64 WHEN + 13 THEN - 81 * + 16 WHEN 31 THEN 40 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - CASE - COUNT ( * ) WHEN + 49 + - 22 * + 25 * - - 92 THEN NULL WHEN 90 - - 61 * + + 88 + - 72 - 53 THEN NULL ELSE + - CASE + 64 WHEN + 13 THEN - 81 * + 16 WHEN 31 THEN 40 ELSE NULL END END
----
NULL

query II rowsort
SELECT - 30 col0, + 46 AS col2
----
-30
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT - - 76 - - CAST( 58 AS SIGNED ) col1
----
134

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - - 76 - - CAST ( 58 AS INTEGER ) col1
----
134

query I rowsort
SELECT + 15 * + 12
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT NULLIF ( - + 10, - SUM( 45 ) ) * - - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4246
SELECT NULLIF ( - + 10, - SUM ( 45 ) ) * - - COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT + 5 / - - 96 * 22 + + CAST( NULL AS SIGNED ) - + 16 + + + 92 * - 44 + - COUNT( DISTINCT - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + 5 / - - 96 * 22 + + CAST ( NULL AS INTEGER ) - + 16 + + + 92 * - 44 + - COUNT ( DISTINCT - 76 )
----
NULL

query I rowsort
SELECT DISTINCT - + ( ( - - ( + 49 ) ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL - 53 * 78 + ( - 60 ) + + 17 + - NULLIF ( - ( + - 61 ), + - 40 ) - - + 37 * + + SUM( 30 ) - - 3 AS col0
----
-3125

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - 53 * 78 + ( - 60 ) + + 17 + - NULLIF ( - ( + - 61 ), + - 40 ) - - + 37 * + + SUM ( 30 ) - - 3 AS col0
----
-3125

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

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

query I rowsort
SELECT DISTINCT + + 59 * - 3 AS col1
----
-177

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

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

query I rowsort
SELECT + 14 + + - 27 + - + 90 * - 49 AS col2
----
4397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT 28 / + NULLIF ( 51, 56 + 25 + CAST( + ( COUNT( * ) ) AS SIGNED ) ) / - + COUNT( DISTINCT - + 74 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT 28 / + NULLIF ( 51, 56 + 25 + CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) / - + COUNT ( DISTINCT - + 74 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ( - - 85 ) * + - MAX( ALL ( 73 ) ) + 96 AS col2
----
-6109

skipif mysql # not compatible
query I rowsort label-4255
SELECT ( - - 85 ) * + - MAX ( ALL ( 73 ) ) + 96 AS col2
----
-6109

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT COUNT( * ) * - 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4256
SELECT COUNT ( * ) * - 58 AS col0
----
-58

query I rowsort
SELECT ( 44 ) + - 82 * + - 43
----
3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4258
SELECT + COUNT( * ), - CAST( NULL AS SIGNED ) * + + 79 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4258
SELECT + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + + 79 col1
----
1
NULL

query II rowsort
SELECT + 29, 87 AS col0
----
29
87

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

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

query I rowsort
SELECT DISTINCT 10 + - CASE - ( + 52 ) WHEN + + 32 THEN - 32 * + 65 * - 36 END + + + 36 + + + 9 * 83 * - 99 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 92 + - 51 col0
----
41

query I rowsort
SELECT DISTINCT ( - + 29 ) + - + 92
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT NULLIF ( 22, 96 ) DIV + 62 + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-4264
SELECT NULLIF ( 22, 96 ) / + 62 + - 96
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT ALL CAST( NULL AS SIGNED ) + + MAX( ALL 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL CAST ( NULL AS INTEGER ) + + MAX ( ALL 98 ) AS col0
----
NULL

query II rowsort
SELECT - 53 AS col0, 80 col1
----
-53
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT 7, 60 + + CAST( - 80 AS SIGNED ) + - + 13 * - 39 * + 50 AS col0
----
7
25330

skipif mysql # not compatible
query II rowsort label-4267
SELECT 7, 60 + + CAST ( - 80 AS INTEGER ) + - + 13 * - 39 * + 50 AS col0
----
7
25330

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - 22 * + COUNT( * ) - - 50 + + + 79 * + + 7 * - 19
----
-10479

skipif mysql # not compatible
query I rowsort label-4268
SELECT - 22 * + COUNT ( * ) - - 50 + + + 79 * + + 7 * - 19
----
-10479

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT ALL 63, - 24 + + COUNT( * ) * 24 - 60 + 57 + 93 * - - 68 AS col0
----
63
6321

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL 63, - 24 + + COUNT ( * ) * 24 - 60 + 57 + 93 * - - 68 AS col0
----
63
6321

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

skipif mysql # not compatible
query I rowsort label-4270
SELECT - MIN ( DISTINCT 59 )
----
-59

query I rowsort
SELECT ALL - 71 - - ( 23 )
----
-48

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

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

query I rowsort
SELECT ALL + 9 * - 37 col1
----
-333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4274
SELECT - 55 + - COALESCE ( + 56, + CASE + 33 WHEN - 18 DIV - - 87 + - COUNT( * ) - 22 * + 19 THEN NULL WHEN 34 DIV 66 THEN NULL ELSE 38 DIV + CASE 45 WHEN - - 59 THEN - - 24 + 56 END + - COUNT( * ) + + 78 DIV - + 90 + + 5 * 98 END DIV + ( 56 * - CAST( NULL AS SIGNED ) ) )
----
-111

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 55 + - COALESCE ( + 56, + CASE + 33 WHEN - 18 / - - 87 + - COUNT ( * ) - 22 * + 19 THEN NULL WHEN 34 / 66 THEN NULL ELSE 38 / + CASE 45 WHEN - - 59 THEN - - 24 + 56 END + - COUNT ( * ) + + 78 / - + 90 + + 5 * 98 END / + ( 56 * - CAST ( NULL AS INTEGER ) ) )
----
-111

query I rowsort
SELECT DISTINCT + - 12 * 82 AS col0
----
-984

query II rowsort
SELECT + 13 * + 26 AS col1, - 27 AS col2
----
338
-27

query I rowsort
SELECT - 82 * + - 67 * + 73
----
401062

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

skipif mysql # not compatible
query I rowsort label-4278
SELECT - COUNT ( * ) + 16 / 42
----
-1

query I rowsort
SELECT ( - - 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT DISTINCT 37 AS col0, 40 + MIN( DISTINCT 91 ) + + - COUNT( - 59 ) * CASE COUNT( * ) WHEN - - 71 THEN - - 43 + + + 6 END + + 31 AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4280
SELECT DISTINCT 37 AS col0, 40 + MIN ( DISTINCT 91 ) + + - COUNT ( - 59 ) * CASE COUNT ( * ) WHEN - - 71 THEN - - 43 + + + 6 END + + 31 AS col0
----
37
NULL

query I rowsort
SELECT ALL + + 69 * - + 51 col2
----
-3519

query I rowsort
SELECT + CASE + 60 WHEN - 73 THEN 31 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - ( - 26 ), - ( + 67 ) )
----
-26

query II rowsort
SELECT DISTINCT - 45, - 28 AS col2
----
-45
-28

query I rowsort
SELECT - 29 * + - 45 AS col2
----
1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT + - COUNT( * ) DIV + - 52 - + - 65 * + 36 AS col2
----
2340

skipif mysql # not compatible
query I rowsort label-4286
SELECT + - COUNT ( * ) / + - 52 - + - 65 * + 36 AS col2
----
2340

query I rowsort
SELECT - 51 - + 34 + - 82 * - 0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT - MIN( DISTINCT + - 91 ) * + + 86 + 92
----
7918

skipif mysql # not compatible
query I rowsort label-4288
SELECT - MIN ( DISTINCT + - 91 ) * + + 86 + 92
----
7918

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT DISTINCT + CASE + 10 WHEN - 55 THEN - 20 WHEN + 41 THEN SUM( DISTINCT - + 52 ) * - 43 END AS col1, + 47 col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4289
SELECT DISTINCT + CASE + 10 WHEN - 55 THEN - 20 WHEN + 41 THEN SUM ( DISTINCT - + 52 ) * - 43 END AS col1, + 47 col0
----
NULL
47

query I rowsort
SELECT ALL + 11 * - + 36 + 5 AS col0
----
-391

query I rowsort
SELECT COALESCE ( + - 71, + 36 )
----
-71

query I rowsort
SELECT 74 * - + 57 + ( + 63 ) AS col1
----
-4155

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 33 - COALESCE ( COUNT( * ), + 53 - + - 8, - 43 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 33 - COALESCE ( COUNT ( * ), + 53 - + - 8, - 43 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT COALESCE ( - 85, COUNT( * ) + - + ( 50 ), + + COALESCE ( 37, + 25 + 71, - + 26 ) + 93 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4294
SELECT COALESCE ( - 85, COUNT ( * ) + - + ( 50 ), + + COALESCE ( 37, + 25 + 71, - + 26 ) + 93 ) AS col2
----
-85

query I rowsort
SELECT + 13 * + + 46 + - 26 AS col2
----
572

query II rowsort
SELECT - 38 * - 12 + + - 16 AS col0, - 40
----
440
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT + ( 29 ) * + COALESCE ( + + 55, - 58, + 63 DIV - 24 * + 84 ) - 17
----
1578

skipif mysql # not compatible
query I rowsort label-4297
SELECT + ( 29 ) * + COALESCE ( + + 55, - 58, + 63 / - 24 * + 84 ) - 17
----
1578

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 97 + - + MIN( - 58 ) - 95 + COUNT( * ) + 10
----
-123

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 97 + - + MIN ( - 58 ) - 95 + COUNT ( * ) + 10
----
-123

query II rowsort
SELECT ALL 85 * 12 AS col1, 60
----
1020
60

query I rowsort
SELECT + 91 * + 44
----
4004

query I rowsort
SELECT DISTINCT 78 * 80 col2
----
6240

query I rowsort
SELECT ALL 37 * + ( + 54 ) * 31 AS col2
----
61938

query I rowsort
SELECT + 43 + - 26 * + 93
----
-2375

query I rowsort
SELECT ALL 49 * 92
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4306
SELECT - MIN( + + 21 ), COUNT( * ) DIV 97 AS col1
----
-21
0

skipif mysql # not compatible
query II rowsort label-4306
SELECT - MIN ( + + 21 ), COUNT ( * ) / 97 AS col1
----
-21
0

query I rowsort
SELECT + ( + 86 ) + 87
----
173

query I rowsort
SELECT DISTINCT - 11 * + + ( + 87 )
----
-957

query I rowsort
SELECT DISTINCT - 52 * + 66
----
-3432

query I rowsort
SELECT + - 97 + - + 90 col0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - ( - - ( + COUNT( 36 ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - ( - - ( + COUNT ( 36 ) ) ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT - CAST( - COALESCE ( 40, - 2 - + + 75 - - - CASE AVG ( DISTINCT + + 42 ) WHEN - + 64 * AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - 8 * + 60 THEN 83 END * + 89, + 66 * + 41, + 81 * 44 * - NULLIF ( - + 80, + 13 + + 12 ) ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4312
SELECT - CAST ( - COALESCE ( 40, - 2 - + + 75 - - - CASE AVG ( DISTINCT + + 42 ) WHEN - + 64 * AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 8 * + 60 THEN 83 END * + 89, + 66 * + 41, + 81 * 44 * - NULLIF ( - + 80, + 13 + + 12 ) ) AS INTEGER )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4313
SELECT - 69 + - + CAST( NULL AS SIGNED ) col0, ( - 17 ) AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4313
SELECT - 69 + - + CAST ( NULL AS INTEGER ) col0, ( - 17 ) AS col2
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT DISTINCT + NULLIF ( 32, 61 + + - 94 + - + 99 + - COUNT( * ) ) + - COALESCE ( - 11, - 94, + 90 ) + 57
----
100

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + NULLIF ( 32, 61 + + - 94 + - + 99 + - COUNT ( * ) ) + - COALESCE ( - 11, - 94, + 90 ) + 57
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + + MIN( + 94 ) + - 71 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4315
SELECT + + MIN ( + 94 ) + - 71 AS col0
----
23

query I rowsort
SELECT + 40 - 98 AS col1
----
-58

query I rowsort
SELECT DISTINCT 14 + - 74 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + - 82 / - CASE 82 WHEN + 46 / - 90 THEN AVG ( + COALESCE ( 83, - 57 * + 80 + - ( - 55 ), - 84 ) ) END + - + 35 * + + 6 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + - 82 / - CASE 82 WHEN + 46 / - 90 THEN AVG ( + COALESCE ( 83, - 57 * + 80 + - ( - 55 ), - 84 ) ) END + - + 35 * + + 6 + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4319
SELECT DISTINCT - 62 DIV + - 32 + + 94 AS col0, + 94 col0
----
95
94

skipif mysql # not compatible
query II rowsort label-4319
SELECT DISTINCT - 62 / + - 32 + + 94 AS col0, + 94 col0
----
95
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT - MIN( - 53 ) DIV + 38 + - COALESCE ( + + 85, - 35, - 57 + + + 4 * + - 22 * 52 ) + 87 DIV 95 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - MIN ( - 53 ) / + 38 + - COALESCE ( + + 85, - 35, - 57 + + + 4 * + - 22 * 52 ) + 87 / 95 AS col1
----
-84

query I rowsort
SELECT DISTINCT + ( - 9 ) AS col0
----
-9

query I rowsort
SELECT 69 * + 61 * - 55 + - ( + 10 ) + + 64 * + - 11 AS col2
----
-232209

query I rowsort
SELECT DISTINCT + ( + 79 ) AS col1
----
79

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

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - 52 / 47 * - - COUNT ( * ) - - 24 + 84 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4325
SELECT - 21 DIV + - 32 * - ( + CAST( + 12 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 21 / + - 32 * - ( + CAST ( + 12 AS INTEGER ) ) AS col1
----
0

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

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

query I rowsort
SELECT ALL + 34 * - 4 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT ALL + COALESCE ( - 3, - - 65 ) AS col0, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4328
SELECT ALL + COALESCE ( - 3, - - 65 ) AS col0, + COUNT ( * )
----
-3
1

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

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

query I rowsort
SELECT ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT - ( ( - 28 ) ) * - - COALESCE ( + 47, - COUNT( * ) ) - SUM( DISTINCT + 13 ) - 8
----
1295

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - ( ( - 28 ) ) * - - COALESCE ( + 47, - COUNT ( * ) ) - SUM ( DISTINCT + 13 ) - 8
----
1295

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + SUM( - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4332
SELECT + SUM ( - 31 ) AS col2
----
-31

query I rowsort
SELECT ALL - 16 * 99
----
-1584

query I rowsort
SELECT - 14 + - 19 + - 86 AS col0
----
-119

query II rowsort
SELECT 90 * ( - 72 ) AS col2, + 41
----
-6480
41

query II rowsort
SELECT DISTINCT - 25, + 42 * + + ( - 31 ) AS col1
----
-25
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT - COALESCE ( 36, + 21 * + COALESCE ( + 58, + 4 ) + - COUNT( * ) * - 43, + CAST( NULL AS SIGNED ) * 37 )
----
-36

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COALESCE ( 36, + 21 * + COALESCE ( + 58, + 4 ) + - COUNT ( * ) * - 43, + CAST ( NULL AS INTEGER ) * 37 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT 98 * + MAX( - 93 ) AS col1
----
-9114

skipif mysql # not compatible
query I rowsort label-4338
SELECT 98 * + MAX ( - 93 ) AS col1
----
-9114

query II rowsort
SELECT DISTINCT 15 AS col2, - 97 col2
----
15
-97

query I rowsort
SELECT ( 41 ) * + - CASE 29 WHEN + + 23 + + - 55 THEN - 83 WHEN + 95 THEN NULL WHEN - - 86 + + - 4 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT 57 + 76 + + + 93 AS col2, + 75 AS col0
----
226
75

query II rowsort
SELECT - 28 AS col0, + 60 + 85 AS col1
----
-28
145

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

skipif mysql # not compatible
query I rowsort label-4345
SELECT + 67 / 57 * COUNT ( * )
----
1

query II rowsort
SELECT ALL + 5 + - 27 + - - 38 AS col0, - 63
----
16
-63

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 77 ) AS col0
----
77

query I rowsort
SELECT ALL 86 + - - 0 AS col0
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT 43 * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4352
SELECT 43 * - COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4353
SELECT 13 + 85 AS col2, - CASE + COUNT( * ) WHEN + + 72 THEN COUNT( 17 ) / 15 - + - AVG ( ALL + 93 ) * 52 + - + CASE - 22 WHEN - + 32 THEN - 79 WHEN + CASE - - COALESCE ( + 13, 85, + 26 / - 30 ) WHEN - COUNT( * ) THEN NULL WHEN 11 THEN NULL WHEN + CAST( + 88 AS SIGNED ) * - 79 + 80 THEN SUM( DISTINCT 37 ) + 73 END THEN + 17 END WHEN 44 * - 69 THEN NULL WHEN NULLIF ( 95, 33 ) + + NULLIF ( ( - COUNT( * ) ) + COALESCE ( 82 - + COALESCE ( + COUNT( * ), 17 + COUNT( * ) ), COUNT( * ) / NULLIF ( 58, 70 + 51 ) ) * 51, 46 + 58 ) THEN NULL ELSE NULL END col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4353
SELECT 13 + 85 AS col2, - CASE + COUNT ( * ) WHEN + + 72 THEN COUNT ( 17 ) / 15 - + - AVG ( ALL + 93 ) * 52 + - + CASE - 22 WHEN - + 32 THEN - 79 WHEN + CASE - - COALESCE ( + 13, 85, + 26 / - 30 ) WHEN - COUNT ( * ) THEN NULL WHEN 11 THEN NULL WHEN + CAST ( + 88 AS INTEGER ) * - 79 + 80 THEN SUM ( DISTINCT 37 ) + 73 END THEN + 17 END WHEN 44 * - 69 THEN NULL WHEN NULLIF ( 95, 33 ) + + NULLIF ( ( - COUNT ( * ) ) + COALESCE ( 82 - + COALESCE ( + COUNT ( * ), 17 + COUNT ( * ) ), COUNT ( * ) / NULLIF ( 58, 70 + 51 ) ) * 51, 46 + 58 ) THEN NULL ELSE NULL END col2
----
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT 74 DIV 6 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4354
SELECT 74 / 6 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT DISTINCT - 2 * - ( - 38 ) * - 15 + + + 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - 2 * - ( - 38 ) * - 15 + + + 64 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 79, 9 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT - 4 * - 49 * - - 86 * + CAST( NULL AS SIGNED ) + 63 - 30 + - 28 - + 13 * - + 93 * + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT - 4 * - 49 * - - 86 * + CAST ( NULL AS INTEGER ) + 63 - 30 + - 28 - + 13 * - + 93 * + + 5 AS col0
----
NULL

query I rowsort
SELECT 58 * - 5 * - - 94 * - 69 AS col1
----
1880940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4359
SELECT - 48 * - - SUM( ALL + 4 ) + + + COALESCE ( + - 77, + MIN( DISTINCT ( 74 ) ) DIV CAST( NULL AS SIGNED ) + - - MIN( ALL + - 4 ) ) AS col1
----
-269

skipif mysql # not compatible
query I rowsort label-4359
SELECT - 48 * - - SUM ( ALL + 4 ) + + + COALESCE ( + - 77, + MIN ( DISTINCT ( 74 ) ) / CAST ( NULL AS INTEGER ) + - - MIN ( ALL + - 4 ) ) AS col1
----
-269

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4360
SELECT 83 + - + 82 AS col1, COALESCE ( CAST( NULL AS SIGNED ), + 49 * + 78 ) AS col0
----
1
3822

skipif mysql # not compatible
query II rowsort label-4360
SELECT 83 + - + 82 AS col1, COALESCE ( CAST ( NULL AS INTEGER ), + 49 * + 78 ) AS col0
----
1
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT CASE + 91 WHEN - + 86 + - ( COUNT( * ) ) THEN + + 17 + - - 34 * + - 98 + + 57 * COUNT( * ) + + + NULLIF ( + 96, - - NULLIF ( + 57, + 78 * 0 + 39 * - - NULLIF ( - 3, - COUNT( 97 ) ) ) * - 5 ) ELSE NULL END / + COUNT( + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT CASE + 91 WHEN - + 86 + - ( COUNT ( * ) ) THEN + + 17 + - - 34 * + - 98 + + 57 * COUNT ( * ) + + + NULLIF ( + 96, - - NULLIF ( + 57, + 78 * 0 + 39 * - - NULLIF ( - 3, - COUNT ( 97 ) ) ) * - 5 ) ELSE NULL END / + COUNT ( + + 92 )
----
NULL

query I rowsort
SELECT 76 * + 11 + 55 AS col0
----
891

query I rowsort
SELECT 99 * + 41 * 93 AS col2
----
377487

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

skipif mysql # not compatible
query I rowsort label-4364
SELECT 2 / + + 20
----
0

query I rowsort
SELECT 73 + - + 70 + 75 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - + 92 + ( + + 88 ) * + MAX( - 52 ) col2
----
-4668

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - + 92 + ( + + 88 ) * + MAX ( - 52 ) col2
----
-4668

query I rowsort
SELECT ALL + 11 + 46
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL 59 + + 95 * + NULLIF ( - MAX( DISTINCT - 43 ), ( - + 58 ) * + 42 + 13 )
----
4144

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL 59 + + 95 * + NULLIF ( - MAX ( DISTINCT - 43 ), ( - + 58 ) * + 42 + 13 )
----
4144

query I rowsort
SELECT 23 + - 81
----
-58

query I rowsort
SELECT DISTINCT + 67 + 27
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT - MAX( DISTINCT - + 1 ) AS col1, + 87
----
1
87

skipif mysql # not compatible
query II rowsort label-4371
SELECT - MAX ( DISTINCT - + 1 ) AS col1, + 87
----
1
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT - ( 19 ) AS col2, 6 + COUNT( * )
----
-19
7

skipif mysql # not compatible
query II rowsort label-4372
SELECT - ( 19 ) AS col2, 6 + COUNT ( * )
----
-19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + 56 + - MAX( DISTINCT + 94 )
----
-38

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 56 + - MAX ( DISTINCT + 94 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4374
SELECT DISTINCT COALESCE ( ( 19 ), + COUNT( + + 80 ) DIV - 72 + + ( + ( + ( - 25 ) ) ) + CASE + + 33 WHEN + 0 THEN + 96 * - + 45 END * - 51 )
----
19

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT COALESCE ( ( 19 ), + COUNT ( + + 80 ) / - 72 + + ( + ( + ( - 25 ) ) ) + CASE + + 33 WHEN + 0 THEN + 96 * - + 45 END * - 51 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT 33 + - + NULLIF ( + 56, 38 ) AS col0, COUNT( * ) AS col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-4375
SELECT 33 + - + NULLIF ( + 56, 38 ) AS col0, COUNT ( * ) AS col2
----
-23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL - 74 + - + 61 * - CASE - MIN( - + 56 ) WHEN - 14 * CAST( NULL AS SIGNED ) * - - 84 + + + 42 THEN NULL ELSE + + 88 END
----
5294

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - 74 + - + 61 * - CASE - MIN ( - + 56 ) WHEN - 14 * CAST ( NULL AS INTEGER ) * - - 84 + + + 42 THEN NULL ELSE + + 88 END
----
5294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4377
SELECT ALL + COUNT( * ) + + 62 + + - 6 * - + 35, 80 + - + 13 + - CASE + 74 WHEN + 39 THEN + CAST( NULL AS SIGNED ) END AS col1
----
273
NULL

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL + COUNT ( * ) + + 62 + + - 6 * - + 35, 80 + - + 13 + - CASE + 74 WHEN + 39 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
273
NULL

query I rowsort
SELECT ALL + 93 + 9 + + 60 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4379
SELECT ALL 75 + + + NULLIF ( - 27, 25 / - 50 ) + 5 + - CAST( + 24 AS DECIMAL ) / + 60 * + CAST( NULL AS SIGNED ) * 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL 75 + + + NULLIF ( - 27, 25 / - 50 ) + 5 + - CAST ( + 24 AS REAL ) / + 60 * + CAST ( NULL AS INTEGER ) * 82 col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4380
SELECT ALL NULLIF ( - - CAST( NULL AS DECIMAL ), - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL NULLIF ( - - CAST ( NULL AS REAL ), - 49 )
----
NULL

query I rowsort
SELECT + 58 * - + 9
----
-522

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT DISTINCT + MAX( ALL 49 ) AS col0, + COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-4382
SELECT DISTINCT + MAX ( ALL 49 ) AS col0, + COUNT ( * ) AS col2
----
49
1

query I rowsort
SELECT ALL ( - 2 ) - + 65 + 77 * + + 28
----
2089

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT 58 + + 38 - + COUNT( ALL - - 63 )
----
95

skipif mysql # not compatible
query I rowsort label-4384
SELECT 58 + + 38 - + COUNT ( ALL - - 63 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT DISTINCT 33 * 0 * 80 AS col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT 33 * 0 * 80 AS col2, - COUNT ( * )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COALESCE ( + - 15, + + 18 + - 11, + COALESCE ( - 59, 5 ) * + 5 + + + 38 - + 83 + + 21 * + - 68 * + - 45 ) + - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4386
SELECT COALESCE ( + - 15, + + 18 + - 11, + COALESCE ( - 59, 5 ) * + 5 + + + 38 - + 83 + + 21 * + - 68 * + - 45 ) + - COUNT ( * ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4387
SELECT CAST( SUM( ALL 83 ) AS SIGNED ) + - COALESCE ( 73, - + 72 * + - MIN( ALL + + 49 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4387
SELECT CAST ( SUM ( ALL 83 ) AS INTEGER ) + - COALESCE ( 73, - + 72 * + - MIN ( ALL + + 49 ) )
----
10

query I rowsort
SELECT ALL - ( - 46 ) * 20 - 36 - + 27 * + 9 AS col2
----
641

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ( + + COALESCE ( - 15, + 66 ) ) + + COUNT( * ) * + 28 + 55 - + 73 * + + 14
----
-954

skipif mysql # not compatible
query I rowsort label-4389
SELECT ( + + COALESCE ( - 15, + 66 ) ) + + COUNT ( * ) * + 28 + 55 - + 73 * + + 14
----
-954

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT COUNT( * ) * - ( 13 ) + 79 * + 36 AS col2, + 8 AS col0
----
2831
8

skipif mysql # not compatible
query II rowsort label-4390
SELECT COUNT ( * ) * - ( 13 ) + 79 * + 36 AS col2, + 8 AS col0
----
2831
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - CASE - 94 WHEN 12 THEN - 35 + 73 END * + 69 * - CASE + 20 WHEN 36 THEN + 47 WHEN - + 15 + + 38 THEN NULL ELSE COUNT( * ) * + + 33 * + 79 * + 94 * 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT - CASE - 94 WHEN 12 THEN - 35 + 73 END * + 69 * - CASE + 20 WHEN 36 THEN + 47 WHEN - + 15 + + 38 THEN NULL ELSE COUNT ( * ) * + + 33 * + 79 * + 94 * 27 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT 20 * - COUNT( * ) * + 13 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT 20 * - COUNT ( * ) * + 13 AS col0
----
-260

query I rowsort
SELECT - 90 + + 91
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL COUNT( * ) * NULLIF ( + 60, 82 / 5 * 89 ) + 5
----
65

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL COUNT ( * ) * NULLIF ( + 60, 82 / 5 * 89 ) + 5
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT + CASE + - 60 WHEN - - 90 - - + 8 THEN - 99 WHEN + - 51 THEN + CAST( 19 AS SIGNED ) WHEN + 82 * + - 6 * + 62 + 49 THEN NULL END * AVG ( 87 ) * COALESCE ( - 66, + - 51 * - + ( - 6 ) - - + ( - CASE + 18 WHEN - - COALESCE ( 33, - - COUNT( * ) * 94 + - COUNT( * ) ) THEN NULL ELSE + 14 * 44 + AVG ( DISTINCT 38 ) * COALESCE ( 98 * 15, - 55, 97 ) END ) / + COALESCE ( - 17, 34 * 61 ) ) * 28 + NULLIF ( 62, AVG ( 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT + CASE + - 60 WHEN - - 90 - - + 8 THEN - 99 WHEN + - 51 THEN + CAST ( 19 AS INTEGER ) WHEN + 82 * + - 6 * + 62 + 49 THEN NULL END * AVG ( 87 ) * COALESCE ( - 66, + - 51 * - + ( - 6 ) - - + ( - CASE + 18 WHEN - - COALESCE ( 33, - - COUNT ( * ) * 94 + - COUNT ( * ) ) THEN NULL ELSE + 14 * 44 + AVG ( DISTINCT 38 ) * COALESCE ( 98 * 15, - 55, 97 ) END ) / + COALESCE ( - 17, 34 * 61 ) ) * 28 + NULLIF ( 62, AVG ( 75 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4397
SELECT ALL NULLIF ( 14, - 13 * 90 ) * + CAST( - + COUNT( * ) AS SIGNED ) DIV CAST( 16 AS SIGNED ) * - - 62 + - 46 col0
----
-46

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL NULLIF ( 14, - 13 * 90 ) * + CAST ( - + COUNT ( * ) AS INTEGER ) / CAST ( 16 AS INTEGER ) * - - 62 + - 46 col0
----
-46

query II rowsort
SELECT DISTINCT + 17, + 16 AS col1
----
17
16

query I rowsort
SELECT - + 60 * + 72
----
-4320

query I rowsort
SELECT + - CASE 92 WHEN ( 61 ) THEN + 26 - - 19 WHEN - + ( 58 ) THEN NULL ELSE NULL END + 36
----
NULL

query I rowsort
SELECT ALL - + 14 * 7 + + - 8 + 82 * + + 48 AS col2
----
3830

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

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

query I rowsort
SELECT + ( + + 79 ) - - 44 + + + 61 + + 33 * + 9
----
481

query I rowsort
SELECT - 49 * - + 28 - - 2
----
1374

query I rowsort
SELECT 25 * - 72 - + + 80 * - 65 + 36 AS col2
----
3436

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

skipif mysql # not compatible
query I rowsort label-4406
SELECT - ( - + CAST ( NULL AS INTEGER ) ) + - 82 / 42
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4407
SELECT DISTINCT 18, + SUM( DISTINCT - 5 ) AS col2, - 11 col1
----
18
-5
-11

skipif mysql # not compatible
query III rowsort label-4407
SELECT DISTINCT 18, + SUM ( DISTINCT - 5 ) AS col2, - 11 col1
----
18
-5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + + MAX( ALL - 79 ) - 13 + + 16 * + 47 + - 55 AS col2
----
605

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + + MAX ( ALL - 79 ) - 13 + + 16 * + 47 + - 55 AS col2
----
605

query I rowsort
SELECT - + 59 * + - 88 AS col1
----
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + + CASE - + 69 WHEN + + 34 - - - 91 THEN COUNT( * ) * + + 45 / - - 47 * - 87 * + 61 WHEN - 15 + - + 25 + - 69 THEN NULL ELSE NULL END * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + + CASE - + 69 WHEN + + 34 - - - 91 THEN COUNT ( * ) * + + 45 / - - 47 * - 87 * + 61 WHEN - 15 + - + 25 + - 69 THEN NULL ELSE NULL END * - + 87
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 76, + ( + - 16 ) * - 13, - - 25 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - - SUM( DISTINCT 20 ) - - + 53
----
73

skipif mysql # not compatible
query I rowsort label-4412
SELECT - - SUM ( DISTINCT 20 ) - - + 53
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - + 9 - - + ( - 36 ) * + COUNT( DISTINCT + 36 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4413
SELECT - + 9 - - + ( - 36 ) * + COUNT ( DISTINCT + 36 ) AS col0
----
-45

query I rowsort
SELECT ALL + + 80 * + 38
----
3040

query II rowsort
SELECT 19, - 25 AS col0
----
19
-25

query II rowsort
SELECT 54, + 55 AS col1
----
54
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL ( + CAST( + 57 AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL ( + CAST ( + 57 AS INTEGER ) ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT 86 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT 86 / + - 61
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT - ( + - 24 ) DIV + 32 * 58 col1, 65 DIV 7
----
0
9

skipif mysql # not compatible
query II rowsort label-4419
SELECT - ( + - 24 ) / + 32 * 58 col1, 65 / 7
----
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT ( + - CAST( + ( - 80 ) AS SIGNED ) )
----
80

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT ( + - CAST ( + ( - 80 ) AS INTEGER ) )
----
80

query II rowsort
SELECT - 15 + 17 AS col1, ( + 37 )
----
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL + NULLIF ( + - COUNT( * ), - - 29 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + NULLIF ( + - COUNT ( * ), - - 29 ) col2
----
-1

query I rowsort
SELECT ALL + 57 * - - 39
----
2223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4424
SELECT - ( 92 ) DIV - + CAST( - 99 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT - ( 92 ) / - + CAST ( - 99 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT + 97 DIV - - ( - - 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 97 / - - ( - - 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - 8 + - - MAX( DISTINCT + 17 )
----
9

skipif mysql # not compatible
query I rowsort label-4426
SELECT - 8 + - - MAX ( DISTINCT + 17 )
----
9

query I rowsort
SELECT + ( + + 36 ) col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4428
SELECT DISTINCT + 35, - CAST( NULL AS SIGNED ) - - - 32 AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4428
SELECT DISTINCT + 35, - CAST ( NULL AS INTEGER ) - - - 32 AS col0
----
35
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL ( + 6 ) DIV - - 63 + 70 * - + 99 AS col1
----
-6930

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL ( + 6 ) / - - 63 + 70 * - + 99 AS col1
----
-6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT - MIN( ALL - - CAST( + 74 AS SIGNED ) ) + - - 20 + - 37 + 29 * COUNT( * ) + ( 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT - MIN ( ALL - - CAST ( + 74 AS INTEGER ) ) + - - 20 + - 37 + 29 * COUNT ( * ) + ( 62 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT ALL + 11 DIV + 46 + + 39 + + 77 + - 73 DIV + 53 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + 11 / + 46 + + 39 + + 77 + - 73 / + 53 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT + COALESCE ( - - 0, - 7 + 38 DIV 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT + COALESCE ( - - 0, - 7 + 38 / 35 ) AS col1
----
0

query I rowsort
SELECT + ( - 0 ) col2
----
0

query I rowsort
SELECT DISTINCT + 10 * 81 * + 84 + - - 86 + - 17 * 54 + 14 AS col1
----
67222

query II rowsort
SELECT + 62 AS col0, 35 AS col1
----
62
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT + 11 + COALESCE ( - COUNT( * ), 77, - - 72 + + + MAX( DISTINCT 7 ) ) AS col2, 65 col2
----
10
65

skipif mysql # not compatible
query II rowsort label-4436
SELECT + 11 + COALESCE ( - COUNT ( * ), 77, - - 72 + + + MAX ( DISTINCT 7 ) ) AS col2, 65 col2
----
10
65

query I rowsort
SELECT ALL - - 36 * - + 59 + 91 AS col2
----
-2033

query II rowsort
SELECT DISTINCT + + 85 AS col2, ( 6 ) * - + ( + 59 ) + + 5
----
85
-349

query I rowsort
SELECT + 63 + 82
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT ALL + + 3, COUNT( * ) col2
----
3
1

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL + + 3, COUNT ( * ) col2
----
3
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT + + ( - 79 ) + - + 45 + - 21 DIV - COUNT( * ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-4441
SELECT + + ( - 79 ) + - + 45 + - 21 / - COUNT ( * ) AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL 16 * + ( - CAST( - - 0 AS SIGNED ) ) - + + NULLIF ( - + 93, - 18 + COUNT( * ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 16 * + ( - CAST ( - - 0 AS INTEGER ) ) - + + NULLIF ( - + 93, - 18 + COUNT ( * ) ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT ( + 91 ) * CAST( MIN( + 34 ) AS SIGNED ) + + + 69 + + + COUNT( * ) * - COUNT( * )
----
3162

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT ( + 91 ) * CAST ( MIN ( + 34 ) AS INTEGER ) + + + 69 + + + COUNT ( * ) * - COUNT ( * )
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + SUM( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4444
SELECT + SUM ( 7 )
----
7

query I rowsort
SELECT + 13 * - 69
----
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT 31, + COUNT( * ) - 0 AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-4446
SELECT 31, + COUNT ( * ) - 0 AS col0
----
31
1

query I rowsort
SELECT - 40 + + + 9 + + - 45 col1
----
-76

query I rowsort
SELECT + CASE 70 WHEN + 27 THEN NULL WHEN 70 * + 54 THEN NULL WHEN - 40 THEN 87 - 77 ELSE NULL END / + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - 49 * + COALESCE ( - 23, - COUNT( * ) ) * + + 71 AS col0
----
80017

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 49 * + COALESCE ( - 23, - COUNT ( * ) ) * + + 71 AS col0
----
80017

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - SUM( DISTINCT + 13 ) + + - ( + COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4450
SELECT - SUM ( DISTINCT + 13 ) + + - ( + COUNT ( * ) )
----
-14

query I rowsort
SELECT + 93 * - 9 * - - 7 + + 62
----
-5797

query I rowsort
SELECT - - NULLIF ( - 65, - 91 ) * + - 17 * + 46 * 98 * + + 60 AS col2
----
298880400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT ALL 63 DIV + + 14 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL 63 / + + 14 * + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 75 + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 75 + - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + 88 * - - MIN( 38 ) * - 35 + + 11 AS col2
----
-117029

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + 88 * - - MIN ( 38 ) * - 35 + + 11 AS col2
----
-117029

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - CASE - + COUNT( * ) WHEN + 94 THEN + NULLIF ( 34, 81 ) ELSE NULL END * + + COUNT( * ) + 81 - 54 - - SUM( + 13 ) + 70 - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT - CASE - + COUNT ( * ) WHEN + 94 THEN + NULLIF ( 34, 81 ) ELSE NULL END * + + COUNT ( * ) + 81 - 54 - - SUM ( + 13 ) + 70 - 92 AS col1
----
NULL

query I rowsort
SELECT ALL - 16 + + - 90 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT 74 + - 10 + - + COUNT( * ) - 34 * - ( - - 67 ) AS col2
----
2341

skipif mysql # not compatible
query I rowsort label-4458
SELECT 74 + - 10 + - + COUNT ( * ) - 34 * - ( - - 67 ) AS col2
----
2341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT CAST( NULL AS SIGNED ) * + 7 AS col2, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4459
SELECT CAST ( NULL AS INTEGER ) * + 7 AS col2, 43
----
NULL
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT 83 + 90 + - CAST( + + COUNT( * ) AS SIGNED ) - COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-4460
SELECT 83 + 90 + - CAST ( + + COUNT ( * ) AS INTEGER ) - COUNT ( * )
----
171

query I rowsort
SELECT 93 + 35 + - 38 + + - 11 * COALESCE ( 24, + + ( - 75 ) ) * + - 34
----
9066

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT 73 * - + ( - - COUNT( * ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4462
SELECT 73 * - + ( - - COUNT ( * ) ) AS col1
----
-73

query II rowsort
SELECT ALL - 54 + - + 88 AS col2, + 66 AS col0
----
-142
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT 99 * + + 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT 99 * + + 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT 66 * - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT 66 * - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT - 95 DIV + 2 + COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 95 / + 2 + COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT DISTINCT - - 43 * 51
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + - 14 * COUNT( * ) * + 35
----
-490

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + - 14 * COUNT ( * ) * + 35
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT CASE - 47 WHEN + 44 * + COUNT( * ) * 18 + - 91 THEN NULL WHEN + + 30 THEN NULL ELSE 34 + + MIN( + 58 ) END AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4469
SELECT CASE - 47 WHEN + 44 * + COUNT ( * ) * 18 + - 91 THEN NULL WHEN + + 30 THEN NULL ELSE 34 + + MIN ( + 58 ) END AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT ALL 14 - + + COUNT( * ) + COUNT( * ) - + - 83 DIV - - 48 col2
----
15

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 14 - + + COUNT ( * ) + COUNT ( * ) - + - 83 / - - 48 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT + SUM( - ( - - 28 ) ) * 50 col0
----
-1400

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + SUM ( - ( - - 28 ) ) * 50 col0
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - 41 + MIN( ALL - 35 )
----
-76

skipif mysql # not compatible
query I rowsort label-4472
SELECT - 41 + MIN ( ALL - 35 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + + MAX( ALL 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4473
SELECT + + MAX ( ALL 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + 77 - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 77 - COUNT ( * ) AS col2
----
76

query I rowsort
SELECT ( + 19 ) * 14
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - 17 * 83 - - + 32 * + 54 * + - MIN( ALL - - NULLIF ( 90, - 0 + - - 15 ) ) AS col1
----
-156931

skipif mysql # not compatible
query I rowsort label-4476
SELECT - 17 * 83 - - + 32 * + 54 * + - MIN ( ALL - - NULLIF ( 90, - 0 + - - 15 ) ) AS col1
----
-156931

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT DISTINCT - 43 DIV + 5 col1
----
-8

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT - 43 / + 5 col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT 58 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT 58 / - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL ( + - 49 ) + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL ( + - 49 ) + COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL + 84 + COUNT( * ) * 45 + 6
----
135

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + 84 + COUNT ( * ) * 45 + 6
----
135

query II rowsort
SELECT 92 AS col1, 32 AS col1
----
92
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT 51 + - ( + COUNT( DISTINCT + 67 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT 51 + - ( + COUNT ( DISTINCT + 67 ) )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 48 DIV + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT 48 / + 52 col1
----
0

query I rowsort
SELECT 83 * - 41
----
-3403

query I rowsort
SELECT 87 - 28
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4486
SELECT 73 col1, 87 * - + 23 * + CAST( NULL AS DECIMAL ) * + 18 AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-4486
SELECT 73 col1, 87 * - + 23 * + CAST ( NULL AS REAL ) * + 18 AS col2
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4487
SELECT 93 * - 13 * - 70 AS col2, + 25 + - - 12 * 50 + COUNT( * ) DIV + 93 AS col0
----
84630
625

skipif mysql # not compatible
query II rowsort label-4487
SELECT 93 * - 13 * - 70 AS col2, + 25 + - - 12 * 50 + COUNT ( * ) / + 93 AS col0
----
84630
625

onlyif mysql # DIV for integer division: 
query III rowsort label-4488
SELECT ALL 3 + - 17 DIV + 84 AS col2, 4 * + - ( - 74 ) col0, - + 63 AS col0
----
3
296
-63

skipif mysql # not compatible
query III rowsort label-4488
SELECT ALL 3 + - 17 / + 84 AS col2, 4 * + - ( - 74 ) col0, - + 63 AS col0
----
3
296
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4489
SELECT CAST( + MIN( - 4 ) AS DECIMAL ) + - CASE - ( - - MAX( + 95 ) ) WHEN COUNT( * ) THEN 6 * + 6 WHEN 70 THEN - 30 + + + 61 + - 93 * + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT CAST ( + MIN ( - 4 ) AS REAL ) + - CASE - ( - - MAX ( + 95 ) ) WHEN COUNT ( * ) THEN 6 * + 6 WHEN 70 THEN - 30 + + + 61 + - 93 * + 62 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT 8 DIV + ( - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT 8 / + ( - 8 )
----
-1

query I rowsort
SELECT DISTINCT 2 + + 56 AS col0
----
58

query I rowsort
SELECT 73 + 15 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT 8 * 82 * 9 AS col1, + MAX( + 61 ) AS col1
----
5904
61

skipif mysql # not compatible
query II rowsort label-4493
SELECT 8 * 82 * 9 AS col1, + MAX ( + 61 ) AS col1
----
5904
61

onlyif mysql # DIV for integer division: 
query II rowsort label-4494
SELECT + 93 DIV 49 + - 31 AS col2, + 50 * - + 3 AS col0
----
-30
-150

skipif mysql # not compatible
query II rowsort label-4494
SELECT + 93 / 49 + - 31 AS col2, + 50 * - + 3 AS col0
----
-30
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT + + 89 AS col0, COALESCE ( - 55, - 19 * - COUNT( * ) ) AS col1
----
89
-55

skipif mysql # not compatible
query II rowsort label-4495
SELECT + + 89 AS col0, COALESCE ( - 55, - 19 * - COUNT ( * ) ) AS col1
----
89
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT ALL - COUNT( * ) AS col1, + 29 - + COUNT( * )
----
-1
28

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL - COUNT ( * ) AS col1, + 29 - + COUNT ( * )
----
-1
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT + COALESCE ( + + CAST( + + COUNT( * ) AS SIGNED ), + COUNT( * ), 83, + COUNT( * ) * 75 + - + 92 * + 44 ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-4497
SELECT + COALESCE ( + + CAST ( + + COUNT ( * ) AS INTEGER ), + COUNT ( * ), 83, + COUNT ( * ) * 75 + - + 92 * + 44 ) + - 67
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - 2 * - CASE + 36 WHEN 62 / - CAST( NULL AS SIGNED ) THEN + + 34 END * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - 2 * - CASE + 36 WHEN 62 / - CAST ( NULL AS INTEGER ) THEN + + 34 END * + 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( 18, - 24 + + + 96 ) col2
----
-18

query I rowsort
SELECT - 68 * + 48
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - 73 + - SUM( ALL + 78 ) * + 3
----
-307

skipif mysql # not compatible
query I rowsort label-4501
SELECT - 73 + - SUM ( ALL + 78 ) * + 3
----
-307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT 61 * + + 47 * COUNT( * ) * - 9 + - CAST( + COUNT( * ) AS SIGNED ) + 53 + - 91 * ( + - 92 ) * + + 77 + - 89 + NULLIF ( + SUM( - 74 ), - 17 ) AS col0
----
618730

skipif mysql # not compatible
query I rowsort label-4502
SELECT 61 * + + 47 * COUNT ( * ) * - 9 + - CAST ( + COUNT ( * ) AS INTEGER ) + 53 + - 91 * ( + - 92 ) * + + 77 + - 89 + NULLIF ( + SUM ( - 74 ), - 17 ) AS col0
----
618730

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL - 66 DIV + 3 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - 66 / + 3 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + 34 * - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 34 * - + COUNT ( * )
----
-34

query I rowsort
SELECT + 48 * + 32
----
1536

query I rowsort
SELECT ALL + 16 * - + 54 * - 58
----
50112

query I rowsort
SELECT 71 + + 93
----
164

query I rowsort
SELECT - 75 + - + 92 - - - 82
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT + + COUNT( * ) * - - 96
----
96

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT + + COUNT ( * ) * - - 96
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT + + 94 AS col2, - MAX( ALL - + 10 ) + - + 67 AS col1
----
94
-57

skipif mysql # not compatible
query II rowsort label-4510
SELECT + + 94 AS col2, - MAX ( ALL - + 10 ) + - + 67 AS col1
----
94
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + COUNT( * ) + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + COUNT ( * ) + - + 77
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT + ( + + CAST( + + 88 AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + ( + + CAST ( + + 88 AS INTEGER ) )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT - 39 + + 80 + + - 1 * NULLIF ( + - 99, - 28 + - 78 ) DIV 76 + + 67
----
109

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 39 + + 80 + + - 1 * NULLIF ( + - 99, - 28 + - 78 ) / 76 + + 67
----
109

query I rowsort
SELECT + COALESCE ( + - 97, + 99, - + 59 ) + - 79
----
-176

query I rowsort
SELECT + 80 + 61 * + + 43 + + + 43 * 97
----
6874

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL 62 + - 61 DIV + + 3
----
42

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL 62 + - 61 / + + 3
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL 56 * COALESCE ( ( + ( 59 ) ), + 10, - 12 * + - 57 + + + 63 * + - 6 ) * + - NULLIF ( - + CAST( AVG ( 48 ) AS SIGNED ), + 72 )
----
158592

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL 56 * COALESCE ( ( + ( 59 ) ), + 10, - 12 * + - 57 + + + 63 * + - 6 ) * + - NULLIF ( - + CAST ( AVG ( 48 ) AS INTEGER ), + 72 )
----
158592

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL 26 + - - 84 - - - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 26 + - - 84 - - - COUNT ( * )
----
109

query I rowsort
SELECT ALL ( + - 57 ) + 62 AS col2
----
5

query I rowsort
SELECT + 14 * + 60 * - 14
----
-11760

query I rowsort
SELECT ALL + ( + ( - 18 ) ) * - - 95 AS col2
----
-1710

query I rowsort
SELECT + 43 * - + 17 AS col1
----
-731

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL - 61 DIV 76 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - 61 / 76 + - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT - 32 * 3 - + MIN( ALL - + 39 )
----
-57

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - 32 * 3 - + MIN ( ALL - + 39 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT + COUNT( DISTINCT - 52 ), 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-4525
SELECT + COUNT ( DISTINCT - 52 ), 76 AS col2
----
1
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4526
SELECT ALL - + CAST( NULL AS SIGNED ) * - - 98 AS col1, + CASE - MIN( ALL + 50 ) WHEN - - 75 THEN + 82 END AS col2, - 16 col0
----
NULL
NULL
-16

skipif mysql # not compatible
query III rowsort label-4526
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - 98 AS col1, + CASE - MIN ( ALL + 50 ) WHEN - - 75 THEN + 82 END AS col2, - 16 col0
----
NULL
NULL
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4527
SELECT ALL + 36 * CAST( NULL AS DECIMAL ) + SUM( - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + 36 * CAST ( NULL AS REAL ) + SUM ( - 81 ) AS col2
----
NULL

query I rowsort
SELECT - 2 * 26 AS col2
----
-52

query I rowsort
SELECT DISTINCT - 81 * - 59 + - 71
----
4708

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + + MIN( + - ( + 45 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + + MIN ( + - ( + 45 ) )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT - + 48 DIV + NULLIF ( 85, - ( 22 ) * + - 57 + 57 DIV + 30 ) * 9 * - 54
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT - + 48 / + NULLIF ( 85, - ( 22 ) * + - 57 + 57 / + 30 ) * 9 * - 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT + 74 * + 96 + CAST( NULL AS SIGNED ) * + + CASE + + ( COUNT( * ) ) WHEN + - 23 THEN 2 ELSE + 95 + 17 END + 5 + - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 74 * + 96 + CAST ( NULL AS INTEGER ) * + + CASE + + ( COUNT ( * ) ) WHEN + - 23 THEN 2 ELSE + 95 + 17 END + 5 + - + 57 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT ALL - COUNT( * ) * + 84 + - + 1 + + + 52, + CAST( NULL AS SIGNED ) AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL - COUNT ( * ) * + 84 + - + 1 + + + 52, + CAST ( NULL AS INTEGER ) AS col0
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + + COUNT( + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + + COUNT ( + 16 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT + CAST( NULL AS SIGNED ) / + 91 * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT + CAST ( NULL AS INTEGER ) / + 91 * + 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT + + 29 + + - 51 + + NULLIF ( + - ( + 62 ), - ( + 76 ) * - 82 / + 71 + + 32 + - 13 + - + 1 - - 55 ) * - + NULLIF ( - 96, + NULLIF ( + 85, + 8 * + 13 ) ) * - - 12 * - CASE + 85 WHEN + 91 * + + COUNT( * ) THEN + 36 WHEN - - 67 * - COUNT( * ) THEN CAST( NULL AS SIGNED ) * + 95 * ( + 64 ) END + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + + 29 + + - 51 + + NULLIF ( + - ( + 62 ), - ( + 76 ) * - 82 / + 71 + + 32 + - 13 + - + 1 - - 55 ) * - + NULLIF ( - 96, + NULLIF ( + 85, + 8 * + 13 ) ) * - - 12 * - CASE + 85 WHEN + 91 * + + COUNT ( * ) THEN + 36 WHEN - - 67 * - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + 95 * ( + 64 ) END + + 74 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT NULLIF ( - CAST( + + 88 AS SIGNED ), + 84 / - 93 * - 58 * COUNT( * ) + + CASE - ( - 68 ) WHEN - 87 + + - 74 THEN - 59 * 69 * 4 - - NULLIF ( + - COALESCE ( - 97, + 68 * + 20 ), - ( - 47 ) ) ELSE NULL END ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4537
SELECT NULLIF ( - CAST ( + + 88 AS INTEGER ), + 84 / - 93 * - 58 * COUNT ( * ) + + CASE - ( - 68 ) WHEN - 87 + + - 74 THEN - 59 * 69 * 4 - - NULLIF ( + - COALESCE ( - 97, + 68 * + 20 ), - ( - 47 ) ) ELSE NULL END ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT COALESCE ( + COUNT( * ), + 85 + + + 40 + - 38 * + - 60, + 20 * CASE + - 48 WHEN 12 THEN + COUNT( * ) WHEN 15 + + COUNT( * ) THEN NULL ELSE NULL END, + ( SUM( - 75 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT COALESCE ( + COUNT ( * ), + 85 + + + 40 + - 38 * + - 60, + 20 * CASE + - 48 WHEN 12 THEN + COUNT ( * ) WHEN 15 + + COUNT ( * ) THEN NULL ELSE NULL END, + ( SUM ( - 75 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + COUNT( DISTINCT - 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT + COUNT ( DISTINCT - 61 ) AS col1
----
1

query I rowsort
SELECT + 56 * + 88 AS col2
----
4928

query I rowsort
SELECT - 68 + + 3
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT MAX( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4542
SELECT MAX ( + 68 ) AS col0
----
68

query I rowsort
SELECT DISTINCT + 39 * ( - + 24 ) * - 74 * + + 91 * - 54 AS col0
----
-340363296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL CAST( - + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL CAST ( - + 52 AS INTEGER )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL CAST( - 89 AS SIGNED ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL CAST ( - 89 AS INTEGER ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + 90 - 16 + - - COUNT( * ) * 30 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 90 - 16 + - - COUNT ( * ) * 30 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL CAST( 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL CAST ( 17 AS INTEGER ) AS col2
----
17

query III rowsort
SELECT 36, + 99 * - - 50 AS col0, 15 * - 39 AS col0
----
36
4950
-585

query I rowsort
SELECT - ( 55 ) col1
----
-55

query II rowsort
SELECT 41, + 16 AS col2
----
41
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT - 54 * - + NULLIF ( - + CAST( + 72 AS SIGNED ), - 4 ) AS col2
----
-3888

skipif mysql # not compatible
query I rowsort label-4551
SELECT - 54 * - + NULLIF ( - + CAST ( + 72 AS INTEGER ), - 4 ) AS col2
----
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL CAST( 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL CAST ( 24 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT - ( - + 55 )
----
55

query I rowsort
SELECT DISTINCT + + 7 * - - 47 AS col1
----
329

query I rowsort
SELECT + - 21 * + 89
----
-1869

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT 20 * + 48 * - + MIN( DISTINCT + 9 )
----
-8640

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT 20 * + 48 * - + MIN ( DISTINCT + 9 )
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL MIN( + - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL MIN ( + - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4558
SELECT - - SUM( + - 76 ) DIV - - 33 + - 33 col1
----
-35

skipif mysql # not compatible
query I rowsort label-4558
SELECT - - SUM ( + - 76 ) / - - 33 + - 33 col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT + CAST( NULL AS SIGNED ) * 95 / - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CAST ( NULL AS INTEGER ) * 95 / - 43 AS col1
----
NULL

query I rowsort
SELECT + - 69 + + + 70 * + 20
----
1331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL - 84 / - - CAST( NULL AS SIGNED ) * - - 52 - - 3 + 0 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - 84 / - - CAST ( NULL AS INTEGER ) * - - 52 - - 3 + 0 * 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT COUNT( * ) DIV - + MIN( 26 ) + - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT COUNT ( * ) / - + MIN ( 26 ) + - 47 AS col2
----
-47

query I rowsort
SELECT 80 * + 8
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 20 AS col0
----
NULL

query I rowsort
SELECT ALL 76 + - ( + + 31 )
----
45

query II rowsort
SELECT 16, + 84 AS col2
----
16
84

query I rowsort
SELECT ( 6 ) * - - 28
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT 92 + + NULLIF ( - 6, + 54 + ( - - 93 ) * SUM( + 48 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 92 + + NULLIF ( - 6, + 54 + ( - - 93 ) * SUM ( + 48 ) )
----
86

query II rowsort
SELECT + 80 AS col1, 21
----
80
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL 27 - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 27 - - COUNT ( * ) AS col2
----
28

query II rowsort
SELECT DISTINCT - 25 AS col0, + 88 AS col1
----
-25
88

query I rowsort
SELECT ALL - 35 - - - 4 * ( + 20 ) AS col2
----
-115

query II rowsort
SELECT - 40, + 67 AS col0
----
-40
67

query I rowsort
SELECT 12 + 19 AS col0
----
31

query II rowsort
SELECT 32 AS col0, 49 AS col1
----
32
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + 90 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + 90 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - COUNT( * ) - + ( - 66 )
----
65

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - COUNT ( * ) - + ( - 66 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT - 48 AS col1, - COUNT( * ) * + 85 col2
----
-48
-85

skipif mysql # not compatible
query II rowsort label-4578
SELECT - 48 AS col1, - COUNT ( * ) * + 85 col2
----
-48
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL - CASE + + 57 WHEN 4 * 54 THEN + - COUNT( * ) + + ( - + 74 ) ELSE NULL END * + 73 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - CASE + + 57 WHEN 4 * 54 THEN + - COUNT ( * ) + + ( - + 74 ) ELSE NULL END * + 73 + - 82
----
NULL

query I rowsort
SELECT 8 + + 91
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 17 + - SUM( ALL 3 )
----
14

skipif mysql # not compatible
query I rowsort label-4581
SELECT 17 + - SUM ( ALL 3 )
----
14

query II rowsort
SELECT ALL 62 col0, 65
----
62
65

query II rowsort
SELECT ALL 16 AS col0, - 86
----
16
-86

query I rowsort
SELECT - 34 + - 99 AS col1
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT - 78 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - 78 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 98 + - 48 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT ALL - 78 + - COUNT( * ), 94 + + 85 AS col1
----
-79
179

skipif mysql # not compatible
query II rowsort label-4587
SELECT ALL - 78 + - COUNT ( * ), 94 + + 85 AS col1
----
-79
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT SUM( + - 70 ) + + 85
----
15

skipif mysql # not compatible
query I rowsort label-4588
SELECT SUM ( + - 70 ) + + 85
----
15

query I rowsort
SELECT DISTINCT 54 * - 87 + 2
----
-4696

onlyif mysql # DIV for integer division: 
query II rowsort label-4590
SELECT ALL - COALESCE ( 99, + 87, + + ( - 20 ) ) + - 18, + ( + 95 ) DIV - + 89 AS col2
----
-117
-1

skipif mysql # not compatible
query II rowsort label-4590
SELECT ALL - COALESCE ( 99, + 87, + + ( - 20 ) ) + - 18, + ( + 95 ) / - + 89 AS col2
----
-117
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT MAX( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4591
SELECT MAX ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - ( - + COUNT( * ) ) + + 58 + 51
----
110

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - ( - + COUNT ( * ) ) + + 58 + 51
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT CAST( - 15 AS SIGNED ) * - 24 + - 17
----
343

skipif mysql # not compatible
query I rowsort label-4593
SELECT CAST ( - 15 AS INTEGER ) * - 24 + - 17
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + 26 * - 40 * MAX( ALL + ( - + ( - + 79 ) ) ) AS col0
----
-82160

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + 26 * - 40 * MAX ( ALL + ( - + ( - + 79 ) ) ) AS col0
----
-82160

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - 68 + + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - 68 + + - COUNT ( * )
----
-69

query II rowsort
SELECT + + 62 col2, 91 AS col2
----
62
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4597
SELECT + 90, - 0 DIV 92 * - 92 + + 19 + + 41 - - 2 + - + NULLIF ( + 42, + 51 ) + + - 3 * + ( - + MAX( ALL - 29 ) ) DIV - COUNT( * ) col2
----
90
107

skipif mysql # not compatible
query II rowsort label-4597
SELECT + 90, - 0 / 92 * - 92 + + 19 + + 41 - - 2 + - + NULLIF ( + 42, + 51 ) + + - 3 * + ( - + MAX ( ALL - 29 ) ) / - COUNT ( * ) col2
----
90
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4598
SELECT + CAST( NULL AS SIGNED ) AS col0, - 17 AS col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4598
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 17 AS col1
----
NULL
-17

query II rowsort
SELECT + 18 AS col2, 88 AS col0
----
18
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT COUNT( * ) * + + 4 + + COUNT( * ) * + COUNT( * ) - - + 10 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4600
SELECT COUNT ( * ) * + + 4 + + COUNT ( * ) * + COUNT ( * ) - - + 10 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL 80 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 80 / - + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - SUM( - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - SUM ( - 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT CAST( NULL AS SIGNED ) * CAST( COALESCE ( + ( - 77 ), + 1 + 2 * + 10 + - 86 + - 98 ) AS SIGNED ) / - CASE - - 60 WHEN 99 * ( - 29 ) * - 94 * - - 38 + + 9 * - 99 + + 87 THEN + 24 + - - 1 + + 12 / - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT CAST ( NULL AS INTEGER ) * CAST ( COALESCE ( + ( - 77 ), + 1 + 2 * + 10 + - 86 + - 98 ) AS INTEGER ) / - CASE - - 60 WHEN 99 * ( - 29 ) * - 94 * - - 38 + + 9 * - 99 + + 87 THEN + 24 + - - 1 + + 12 / - 3 END AS col2
----
NULL

query I rowsort
SELECT ( - 26 ) * + - 64
----
1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT 28 * - CAST( 65 AS SIGNED ) AS col1
----
-1820

skipif mysql # not compatible
query I rowsort label-4605
SELECT 28 * - CAST ( 65 AS INTEGER ) AS col1
----
-1820

query I rowsort
SELECT ALL 37 * - ( - 15 ) col0
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT 18 * + COUNT( DISTINCT + - 47 ) * - - CAST( 88 AS SIGNED ) * + - 97 AS col0
----
-153648

skipif mysql # not compatible
query I rowsort label-4607
SELECT 18 * + COUNT ( DISTINCT + - 47 ) * - - CAST ( 88 AS INTEGER ) * + - 97 AS col0
----
-153648

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT ALL COUNT( - 81 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL COUNT ( - 81 ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT 90 + - - ( - 32 )
----
58

query I rowsort
SELECT 7 * + 46 col0
----
322

query I rowsort
SELECT + 32 * + + 39
----
1248

query I rowsort
SELECT DISTINCT - 82 + + 64 AS col2
----
-18

query I rowsort
SELECT ( 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - - NULLIF ( 64, + ( - COUNT( * ) ) + 57 + 26 + - + 64 * 33 / + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4614
SELECT - - NULLIF ( 64, + ( - COUNT ( * ) ) + 57 + 26 + - + 64 * 33 / + 64 )
----
64

query I rowsort
SELECT ALL - + 40 + - 91 * - 8 + - - 91 AS col1
----
779

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT - 99 - - 52, - 12 * + 4 * COUNT( * ) AS col1
----
-47
-48

skipif mysql # not compatible
query II rowsort label-4616
SELECT - 99 - - 52, - 12 * + 4 * COUNT ( * ) AS col1
----
-47
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4617
SELECT DISTINCT CASE + COUNT( * ) WHEN - - 57 + CASE - - COUNT( * ) WHEN 35 THEN + 97 ELSE NULL END * + - 61 THEN - - 98 WHEN + CAST( NULL AS SIGNED ) - + + NULLIF ( - 85, + 66 / + 33 ) THEN - 51 / + + COUNT( * ) END + - - 30 + - 59 * - 44 + + 89, + 72 AS col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4617
SELECT DISTINCT CASE + COUNT ( * ) WHEN - - 57 + CASE - - COUNT ( * ) WHEN 35 THEN + 97 ELSE NULL END * + - 61 THEN - - 98 WHEN + CAST ( NULL AS INTEGER ) - + + NULLIF ( - 85, + 66 / + 33 ) THEN - 51 / + + COUNT ( * ) END + - - 30 + - 59 * - 44 + + 89, + 72 AS col2
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL + - 27 * - COUNT( * ) * 95 AS col0
----
2565

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + - 27 * - COUNT ( * ) * 95 AS col0
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT - + CASE 55 WHEN - 41 THEN - - ( 5 ) END + - - 67 - + - 55 * - 83 * - - COALESCE ( - - ( + 84 ), - + COUNT( - + 25 ) + - COUNT( * ) ) - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - + CASE 55 WHEN - 41 THEN - - ( 5 ) END + - - 67 - + - 55 * - 83 * - - COALESCE ( - - ( + 84 ), - + COUNT ( - + 25 ) + - COUNT ( * ) ) - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - - NULLIF ( + COUNT( * ), + 72 ) + + COUNT( DISTINCT + 85 ) * MIN( DISTINCT + 99 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - NULLIF ( + COUNT ( * ), + 72 ) + + COUNT ( DISTINCT + 85 ) * MIN ( DISTINCT + 99 ) AS col2
----
100

query I rowsort
SELECT - + 61 * 72 + + 30
----
-4362

query I rowsort
SELECT - + 17 + - 74
----
-91

query I rowsort
SELECT + - ( - - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - COUNT( * ) + ( - 53 ) + - + COALESCE ( + + 2, + 25 + - ( + - 40 ), - + 16 * - - 61, + 91 ) * + 6 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4624
SELECT - COUNT ( * ) + ( - 53 ) + - + COALESCE ( + + 2, + 25 + - ( + - 40 ), - + 16 * - - 61, + 91 ) * + 6 AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT + 18 DIV - + 62 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 18 / - + 62 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + COUNT( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4626
SELECT + COUNT ( - 44 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4627
SELECT + 15 + - CASE + + 0 WHEN 13 * - - 53 * 89 + + 78 THEN - MAX( DISTINCT - - 81 ) * + MAX( - + 64 ) DIV COUNT( * ) ELSE - MIN( + 55 ) END
----
70

skipif mysql # not compatible
query I rowsort label-4627
SELECT + 15 + - CASE + + 0 WHEN 13 * - - 53 * 89 + + 78 THEN - MAX ( DISTINCT - - 81 ) * + MAX ( - + 64 ) / COUNT ( * ) ELSE - MIN ( + 55 ) END
----
70

query I rowsort
SELECT - 27 * + 8
----
-216

query I rowsort
SELECT DISTINCT - 90 * - ( - + 18 ) * - 49 AS col1
----
79380

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT 9 * + - CASE WHEN NOT 35 BETWEEN NULL AND NULL THEN NULL ELSE 33 + - COUNT( * ) END * - 98 + 74 + - 67 AS col0
----
28231

skipif mysql # not compatible
query I rowsort label-4630
SELECT 9 * + - CASE WHEN NOT 35 BETWEEN NULL AND NULL THEN NULL ELSE 33 + - COUNT ( * ) END * - 98 + 74 + - 67 AS col0
----
28231

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT + 85 DIV 8 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 85 / 8 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4632
SELECT ALL + 63 AS col0, + CAST( - MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED ) - + + COUNT( * )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL + 63 AS col0, + CAST ( - MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - + + COUNT ( * )
----
63
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 25, 97 + - 11 * 49 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + COUNT( * ) * + + COUNT( * ) * + 37 * + COUNT( * ) * + 92 + - ( 92 ) * + COUNT( * ) AS col2
----
3312

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * + 37 * + COUNT ( * ) * + 92 + - ( 92 ) * + COUNT ( * ) AS col2
----
3312

query I rowsort
SELECT ALL + 16 * ( - 87 ) + + + 77 AS col0
----
-1315

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - 96 * COALESCE ( 72, + COUNT( + + 42 ) + 10 ) AS col1
----
-6912

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 96 * COALESCE ( 72, + COUNT ( + + 42 ) + 10 ) AS col1
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT MIN( 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4637
SELECT MIN ( 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT - 83 * + NULLIF ( - 69, 26 ) + + 41 - - COALESCE ( - + COALESCE ( - + ( + + 25 ), + NULLIF ( + - 4, + 96 ) * 40 DIV - ( 58 ) ), 54 * - + COUNT( * ) ) + + 7 DIV 2 * - 62
----
5607

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 83 * + NULLIF ( - 69, 26 ) + + 41 - - COALESCE ( - + COALESCE ( - + ( + + 25 ), + NULLIF ( + - 4, + 96 ) * 40 / - ( 58 ) ), 54 * - + COUNT ( * ) ) + + 7 / 2 * - 62
----
5607

query I rowsort
SELECT ALL 83 * + - 6 * + 19
----
-9462

query I rowsort
SELECT - + ( + 97 ) AS col2
----
-97

query II rowsort
SELECT - - 27, - NULLIF ( + - 15, + + 23 * 64 ) + - NULLIF ( + 15, 48 ) AS col2
----
27
0

query I rowsort
SELECT ALL ( - 86 ) + 27 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT + 83 + - + ( - - COUNT( * ) ) * - 4 + SUM( DISTINCT - 23 ) + - + MIN( ALL + 50 ), 11 * 24 * 12 + + 99 + 49 * - 94 AS col0
----
14
-1339

skipif mysql # not compatible
query II rowsort label-4643
SELECT + 83 + - + ( - - COUNT ( * ) ) * - 4 + SUM ( DISTINCT - 23 ) + - + MIN ( ALL + 50 ), 11 * 24 * 12 + + 99 + 49 * - 94 AS col0
----
14
-1339

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT DISTINCT 53 + - ( COUNT( * ) ), COUNT( * ) AS col2
----
52
1

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT 53 + - ( COUNT ( * ) ), COUNT ( * ) AS col2
----
52
1

query I rowsort
SELECT + 96 + - + ( - 66 ) + + 58 * - + 95 AS col2
----
-5348

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL - COUNT( * ) + 37
----
36

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - COUNT ( * ) + 37
----
36

query I rowsort
SELECT DISTINCT 98 + + + 80
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT - - 40 + - + 90 DIV - + 89 + + + COUNT( * ) + - 35
----
7

skipif mysql # not compatible
query I rowsort label-4648
SELECT - - 40 + - + 90 / - + 89 + + + COUNT ( * ) + - 35
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL COUNT( * ) - + 75 + + - CAST( + 68 AS SIGNED )
----
-142

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COUNT ( * ) - + 75 + + - CAST ( + 68 AS INTEGER )
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT ALL + 77 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + 77 / + 81 AS col0
----
0

query I rowsort
SELECT - + ( 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4652
SELECT + 99 DIV + ( CAST( NULLIF ( 74, + 48 ) AS SIGNED ) ) + - + ( - + ( + - NULLIF ( - 43, + 10 * - 26 ) ) ) DIV - 52 col1, 36
----
1
36

skipif mysql # not compatible
query II rowsort label-4652
SELECT + 99 / + ( CAST ( NULLIF ( 74, + 48 ) AS INTEGER ) ) + - + ( - + ( + - NULLIF ( - 43, + 10 * - 26 ) ) ) / - 52 col1, 36
----
1
36

query II rowsort
SELECT - - 9, + 92 AS col2
----
9
92

query II rowsort
SELECT ALL + 42 col1, + 33 + - 37
----
42
-4

query I rowsort
SELECT DISTINCT - 83 * - - 30
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - + 14 * + NULLIF ( - + MIN( 41 ), + 23 + + 55 )
----
574

skipif mysql # not compatible
query I rowsort label-4656
SELECT - + 14 * + NULLIF ( - + MIN ( 41 ), + 23 + + 55 )
----
574

query I rowsort
SELECT - ( + + 2 ) * - 38
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4658
SELECT ALL + NULLIF ( + 75, - 56 + - CAST( NULL AS DECIMAL ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + NULLIF ( + 75, - 56 + - CAST ( NULL AS REAL ) ) AS col1
----
75

query I rowsort
SELECT - 3 * - 90
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT + 26 * + CAST( CASE - COALESCE ( - ( + 32 ), - 1 ) WHEN NULLIF ( + 66, COUNT( * ) ) THEN NULL ELSE - 17 * CASE + 95 WHEN 32 THEN NULL ELSE + 21 END END AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 26 * + CAST ( CASE - COALESCE ( - ( + 32 ), - 1 ) WHEN NULLIF ( + 66, COUNT ( * ) ) THEN NULL ELSE - 17 * CASE + 95 WHEN 32 THEN NULL ELSE + 21 END END AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 82 ) AS col2
----
82

query I rowsort
SELECT 41 * 97 - 30 AS col1
----
3947

query I rowsort
SELECT 41 * + 18 - 41
----
697

query I rowsort
SELECT - ( - 15 ) * 38 - + 38 AS col1
----
532

query I rowsort
SELECT ALL + ( - ( 42 ) ) * + ( + 63 ) * - - 96 AS col1
----
-254016

query II rowsort
SELECT ( 50 ) AS col0, + 69
----
50
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4667
SELECT + ( + - CASE CAST( NULL AS DECIMAL ) WHEN + - 74 + 66 THEN + + CASE + 75 WHEN + COUNT( * ) * + 74 THEN NULL ELSE + 77 * SUM( + 9 ) * 32 END / + + AVG ( ALL + 53 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT + ( + - CASE CAST ( NULL AS REAL ) WHEN + - 74 + 66 THEN + + CASE + 75 WHEN + COUNT ( * ) * + 74 THEN NULL ELSE + 77 * SUM ( + 9 ) * 32 END / + + AVG ( ALL + 53 ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 89 * + - 66 + - 38
----
5836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT NULLIF ( + - 77, 58 * - CAST( - - ( - + 62 ) AS SIGNED ) + - + 30 )
----
-77

skipif mysql # not compatible
query I rowsort label-4669
SELECT NULLIF ( + - 77, 58 * - CAST ( - - ( - + 62 ) AS INTEGER ) + - + 30 )
----
-77

query I rowsort
SELECT NULLIF ( + - 51, - 88 )
----
-51

query I rowsort
SELECT 44 + + 45 * + - 78 col0
----
-3466

query I rowsort
SELECT ALL 47 * - - ( 71 )
----
3337

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT 52 DIV + NULLIF ( 86, - 96 + 18 * + + ( + 2 ) + - + 7 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT 52 / + NULLIF ( 86, - 96 + 18 * + + ( + 2 ) + - + 7 ) col1
----
0

query I rowsort
SELECT 14 + - 35 + + 14 + + 90 * 19
----
1703

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - MAX( DISTINCT - 8 ) * + 33 * - + NULLIF ( + 74, + - 29 - - 50 ) AS col1
----
-19536

skipif mysql # not compatible
query I rowsort label-4675
SELECT - MAX ( DISTINCT - 8 ) * + 33 * - + NULLIF ( + 74, + - 29 - - 50 ) AS col1
----
-19536

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL COUNT( * ) * - 58 + + 33 * 86 + COUNT( * ) AS col0
----
2781

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL COUNT ( * ) * - 58 + + 33 * 86 + COUNT ( * ) AS col0
----
2781

query I rowsort
SELECT + 97 - 69
----
28

query I rowsort
SELECT ALL - 3 - - 83 AS col1
----
80

query I rowsort
SELECT 70 * CASE 12 WHEN - AVG ( ALL - - 54 ) THEN + + 89 ELSE NULL END + - 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL - 54 * - + COUNT( ALL 0 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - 54 * - + COUNT ( ALL 0 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4681
SELECT - COALESCE ( - COUNT( * ), - + CASE + - 7 WHEN 90 * + - CASE - + 21 WHEN - + 33 * + 80 THEN NULL ELSE 80 * - 58 DIV + 34 END THEN COUNT( * ) + - + 58 - + CAST( NULL AS SIGNED ) WHEN - NULLIF ( + 46, + 87 ) THEN + + ( + 74 ) DIV - CAST( + + CASE + 52 WHEN 57 THEN ( + - COUNT( * ) ) END AS SIGNED ) - + + 54 ELSE + 38 * + 26 * COUNT( * ) + + 60 + - 8 - - + 94 END, + - 14 * - 58 - 41 ) - ( + 28 - + 10 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4681
SELECT - COALESCE ( - COUNT ( * ), - + CASE + - 7 WHEN 90 * + - CASE - + 21 WHEN - + 33 * + 80 THEN NULL ELSE 80 * - 58 / + 34 END THEN COUNT ( * ) + - + 58 - + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + 46, + 87 ) THEN + + ( + 74 ) / - CAST ( + + CASE + 52 WHEN 57 THEN ( + - COUNT ( * ) ) END AS INTEGER ) - + + 54 ELSE + 38 * + 26 * COUNT ( * ) + + 60 + - 8 - - + 94 END, + - 14 * - 58 - 41 ) - ( + 28 - + 10 ) AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4682
SELECT 62 DIV - 72, + SUM( DISTINCT 25 ) DIV - 81 + - 91 * + 62 col2
----
0
-5642

skipif mysql # not compatible
query II rowsort label-4682
SELECT 62 / - 72, + SUM ( DISTINCT 25 ) / - 81 + - 91 * + 62 col2
----
0
-5642

query I rowsort
SELECT 12 - - 21 + - 22 AS col2
----
11

query II rowsort
SELECT - 68 AS col1, 37 + + 3 * + + 17 AS col0
----
-68
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4685
SELECT 77, + CAST( NULL AS SIGNED ) - - 80 col2, + 92 + 99 AS col0
----
77
NULL
191

skipif mysql # not compatible
query III rowsort label-4685
SELECT 77, + CAST ( NULL AS INTEGER ) - - 80 col2, + 92 + 99 AS col0
----
77
NULL
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT 31 * CAST( NULL AS SIGNED ) * + + 76 * + NULLIF ( - 79, 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT 31 * CAST ( NULL AS INTEGER ) * + + 76 * + NULLIF ( - 79, 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL + COUNT( * ) + - 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + COUNT ( * ) + - 31 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT ( - + COUNT( * ) ) + 22 DIV - 43 * - - 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT ( - + COUNT ( * ) ) + 22 / - 43 * - - 1 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT ALL SUM( DISTINCT - - 55 ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL SUM ( DISTINCT - - 55 ) / - 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4690
SELECT DISTINCT SUM( - 4 ) + + - COUNT( * ) * 56 - 71, + CAST( + 72 AS SIGNED ) * + 71 AS col2
----
-131
5112

skipif mysql # not compatible
query II rowsort label-4690
SELECT DISTINCT SUM ( - 4 ) + + - COUNT ( * ) * 56 - 71, + CAST ( + 72 AS INTEGER ) * + 71 AS col2
----
-131
5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4691
SELECT ALL - 82, CAST( NULL AS SIGNED ) + + MIN( DISTINCT - - 64 ) - 17 * - + 55 AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL - 82, CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - - 64 ) - 17 * - + 55 AS col0
----
-82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT + COUNT( * ) + - 28 + - ( - + 22 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + COUNT ( * ) + - 28 + - ( - + 22 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL - 73 * 96 * + 96 * - COUNT( * ) AS col1
----
672768

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - 73 * 96 * + 96 * - COUNT ( * ) AS col1
----
672768

query II rowsort
SELECT + 0, - 49 col1
----
0
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL + NULLIF ( 16, - + COALESCE ( CAST( + 72 AS SIGNED ), 10 / + CAST( NULL AS SIGNED ) * - - 67 + + 63 + - - COUNT( * ) * - COUNT( * ), + 54 ) ) + + 90 + + + 50 * 81 * + 41 col0
----
166156

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + NULLIF ( 16, - + COALESCE ( CAST ( + 72 AS INTEGER ), 10 / + CAST ( NULL AS INTEGER ) * - - 67 + + 63 + - - COUNT ( * ) * - COUNT ( * ), + 54 ) ) + + 90 + + + 50 * 81 * + 41 col0
----
166156

query II rowsort
SELECT + 56 col1, - 94 AS col0
----
56
-94

query I rowsort
SELECT ALL - 83 + + ( - 14 ) + - - 89
----
-8

query I rowsort
SELECT DISTINCT + 29 + + 74 col0
----
103

query I rowsort
SELECT ALL - 1 - 35
----
-36

query I rowsort
SELECT DISTINCT + - 79 * 9 AS col2
----
-711

query I rowsort
SELECT 77 + + 32 AS col1
----
109

query I rowsort
SELECT 36 * 60 * + 21
----
45360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4704
SELECT ALL + ( + 28 ) * 9 + COUNT( * ) + + 6 AS col0, + 66 DIV + 3 AS col2
----
259
22

skipif mysql # not compatible
query II rowsort label-4704
SELECT ALL + ( + 28 ) * 9 + COUNT ( * ) + + 6 AS col0, + 66 / + 3 AS col2
----
259
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT - + MIN( DISTINCT - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - + MIN ( DISTINCT - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - - MIN( - + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4706
SELECT - - MIN ( - + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + CASE 6 WHEN - COUNT( * ) THEN NULL WHEN + ( + COUNT( * ) ) - + - 79 THEN - CASE + COALESCE ( - COUNT( * ), + + 24 - + - AVG ( - 43 ), + + 21 ) WHEN + 19 + - + COUNT( * ) THEN - 50 * - 52 WHEN + 75 THEN + - COUNT( * ) * - + ( - - 38 ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT + CASE 6 WHEN - COUNT ( * ) THEN NULL WHEN + ( + COUNT ( * ) ) - + - 79 THEN - CASE + COALESCE ( - COUNT ( * ), + + 24 - + - AVG ( - 43 ), + + 21 ) WHEN + 19 + - + COUNT ( * ) THEN - 50 * - 52 WHEN + 75 THEN + - COUNT ( * ) * - + ( - - 38 ) ELSE NULL END END
----
NULL

query II rowsort
SELECT 16 * + 74 * 65 AS col2, 92 * + 43 AS col1
----
76960
3956

query II rowsort
SELECT 39 * 81 + + - 82 AS col2, 54 AS col2
----
3077
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT - CAST( + MAX( 54 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - CAST ( + MAX ( 54 ) AS INTEGER )
----
-54

query I rowsort
SELECT 15 + - 89 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT ALL ( + SUM( - NULLIF ( - + 78, - + 53 ) ) ) DIV + + 49 * + 69 DIV - 64 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL ( + SUM ( - NULLIF ( - + 78, - + 53 ) ) ) / + + 49 * + 69 / - 64 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT COUNT( * ) DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) / - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT SUM( - - 61 ) * 12 AS col2
----
732

skipif mysql # not compatible
query I rowsort label-4714
SELECT SUM ( - - 61 ) * 12 AS col2
----
732

query II rowsort
SELECT - 66 AS col2, - 16 * + - 87
----
-66
1392

query II rowsort
SELECT 87 AS col0, - 37 * 43 * - - 1
----
87
-1591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT ALL ( + ( - - CAST( NULL AS SIGNED ) ) ) + - 11 + - NULLIF ( AVG ( ( + 25 ) ), 22 * + 11 - + - 96 + - 98 ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL ( + ( - - CAST ( NULL AS INTEGER ) ) ) + - 11 + - NULLIF ( AVG ( ( + 25 ) ), 22 * + 11 - + - 96 + - 98 ) + + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT NULLIF ( + - 69, + COALESCE ( + 2, SUM( ALL + 62 ), - 28 ) + 52 ) * AVG ( ALL - 88 ) - 33 - + CAST( NULL AS SIGNED ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT NULLIF ( + - 69, + COALESCE ( + 2, SUM ( ALL + 62 ), - 28 ) + 52 ) * AVG ( ALL - 88 ) - 33 - + CAST ( NULL AS INTEGER ) + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL COUNT( * ) + - + COALESCE ( 12, + 29 ) - - 6
----
-5

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL COUNT ( * ) + - + COALESCE ( 12, + 29 ) - - 6
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT CASE - 77 WHEN - 73 * + COALESCE ( CASE - 50 WHEN - 13 THEN - 32 ELSE + 28 * - 64 * + AVG ( DISTINCT + + 76 ) + 45 END, + - CASE + + CASE - 50 WHEN - 85 THEN + + 22 + - 55 WHEN - 32 / + 92 + - 82 + - 6 * + 1 THEN NULL ELSE NULL END WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 47 THEN - COUNT( * ) + - COUNT( DISTINCT - NULLIF ( - + CAST( 62 AS SIGNED ), 87 ) ) + 40 * - - 43 / + MIN( ALL + - ( 84 ) ) + - CASE + 41 WHEN 69 THEN - 21 * 84 ELSE NULL END * 12 ELSE NULL END + + 59 * 93 ) * AVG ( ALL - 77 - - 71 ) THEN 83 WHEN 28 * COUNT( * ) THEN NULL END + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT CASE - 77 WHEN - 73 * + COALESCE ( CASE - 50 WHEN - 13 THEN - 32 ELSE + 28 * - 64 * + AVG ( DISTINCT + + 76 ) + 45 END, + - CASE + + CASE - 50 WHEN - 85 THEN + + 22 + - 55 WHEN - 32 / + 92 + - 82 + - 6 * + 1 THEN NULL ELSE NULL END WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 47 THEN - COUNT ( * ) + - COUNT ( DISTINCT - NULLIF ( - + CAST ( 62 AS INTEGER ), 87 ) ) + 40 * - - 43 / + MIN ( ALL + - ( 84 ) ) + - CASE + 41 WHEN 69 THEN - 21 * 84 ELSE NULL END * 12 ELSE NULL END + + 59 * 93 ) * AVG ( ALL - 77 - - 71 ) THEN 83 WHEN 28 * COUNT ( * ) THEN NULL END + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT + MAX( DISTINCT - + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4721
SELECT + MAX ( DISTINCT - + 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT CAST( NULL AS SIGNED ) * - COUNT( ALL 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( ALL 82 )
----
NULL

query I rowsort
SELECT CASE 76 WHEN - - 71 THEN NULL ELSE + + 22 END
----
22

query II rowsort
SELECT + 45 AS col2, + 42 AS col2
----
45
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + 18 * - CASE + + 6 WHEN + 29 THEN + - 17 + + + COUNT( * ) ELSE NULL END * - 22 + COUNT( * ) + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + 18 * - CASE + + 6 WHEN + 29 THEN + - 17 + + + COUNT ( * ) ELSE NULL END * - 22 + COUNT ( * ) + - 85 AS col0
----
NULL

query I rowsort
SELECT 62 * - + 78 AS col0
----
-4836

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT 7 DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT 7 / 63 AS col1
----
0

query I rowsort
SELECT ALL - 88 * - 70
----
6160

query I rowsort
SELECT + 36 * + 20 AS col2
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT COUNT( * ) col2, + COUNT( + - 97 ) * + - ( + + 51 ) * - 29 + + 73 * + - 78 col0
----
1
-4215

skipif mysql # not compatible
query II rowsort label-4730
SELECT COUNT ( * ) col2, + COUNT ( + - 97 ) * + - ( + + 51 ) * - 29 + + 73 * + - 78 col0
----
1
-4215

query I rowsort
SELECT ALL 46 * 94 + 61
----
4385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) * + 75 - - CAST( + - 86 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) * + 75 - - CAST ( + - 86 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL + + MAX( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + + MAX ( ALL 79 )
----
79

query I rowsort
SELECT + + 33 * + 11 + NULLIF ( - - 53, - 73 ) AS col0
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - + COUNT( * ) * - + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4735
SELECT - + COUNT ( * ) * - + 78 AS col1
----
78

query II rowsort
SELECT + - 59 * + ( + 37 ) + - 53, + 57 * + 76 AS col2
----
-2236
4332

query I rowsort
SELECT + - ( + + 12 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + CAST( - MAX( DISTINCT - + 66 ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4738
SELECT + CAST ( - MAX ( DISTINCT - + 66 ) AS INTEGER )
----
66

query II rowsort
SELECT ALL - 5, + 14 + 43 + + 54 AS col0
----
-5
111

query III rowsort
SELECT ALL 43 AS col2, - 70, 48 AS col1
----
43
-70
48

query I rowsort
SELECT + + 32 + - 28
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4742
SELECT ALL - 43 AS col0, CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL - 43 AS col0, CAST ( NULL AS INTEGER )
----
-43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT + 94, - SUM( ALL 62 ) * - - 72 AS col1
----
94
-4464

skipif mysql # not compatible
query II rowsort label-4743
SELECT + 94, - SUM ( ALL 62 ) * - - 72 AS col1
----
94
-4464

query I rowsort
SELECT ALL - 71 + 67 AS col0
----
-4

query I rowsort
SELECT - 81 - - + 11
----
-70

query II rowsort
SELECT DISTINCT - 51, - 20 * - - 58 AS col1
----
-51
-1160

query I rowsort
SELECT DISTINCT - 63 + + 92 + + 94 - + + 52 * - + 58 AS col1
----
3139

query II rowsort
SELECT DISTINCT ( + 43 ), 99 AS col0
----
43
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT CASE + - 3 WHEN + - NULLIF ( - CAST( NULL AS SIGNED ), - + CASE - 12 WHEN + - COALESCE ( 52, + 54 * + 86 + - 59 * - 57 + 44, + 4 * + + 30 ) - + 84 THEN + + COUNT( * ) + - COUNT( * ) END ) THEN + 1 + COUNT( * ) * + 25 ELSE NULL END + - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT CASE + - 3 WHEN + - NULLIF ( - CAST ( NULL AS INTEGER ), - + CASE - 12 WHEN + - COALESCE ( 52, + 54 * + 86 + - 59 * - 57 + 44, + 4 * + + 30 ) - + 84 THEN + + COUNT ( * ) + - COUNT ( * ) END ) THEN + 1 + COUNT ( * ) * + 25 ELSE NULL END + - + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT 62 + + + 8 + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 62 + + + 8 + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT + 26 - + 48 AS col0
----
-22

query I rowsort
SELECT DISTINCT ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 97 + + - COUNT( * ) * + - CASE 47 WHEN + - 60 + - - 37 * 10 THEN - + 51 + COUNT( 10 ) + + 14 + + - COUNT( * ) * - 47 ELSE + ( 40 ) END + + 97
----
40

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 97 + + - COUNT ( * ) * + - CASE 47 WHEN + - 60 + - - 37 * 10 THEN - + 51 + COUNT ( 10 ) + + 14 + + - COUNT ( * ) * - 47 ELSE + ( 40 ) END + + 97
----
40

query I rowsort
SELECT + 3 - + - 26 AS col1
----
29

query I rowsort
SELECT ALL ( - 52 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - 73 + - 17 - 76 + CASE - 28 WHEN - + AVG ( DISTINCT - 37 ) + + MIN( ALL + + 22 ) * + + 38 THEN NULL ELSE + - 46 END AS col1
----
-212

skipif mysql # not compatible
query I rowsort label-4756
SELECT - 73 + - 17 - 76 + CASE - 28 WHEN - + AVG ( DISTINCT - 37 ) + + MIN ( ALL + + 22 ) * + + 38 THEN NULL ELSE + - 46 END AS col1
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT + COUNT( ALL + 14 ) + + - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4757
SELECT + COUNT ( ALL + 14 ) + + - 78 AS col0
----
-77

query II rowsort
SELECT - ( - + 58 ) AS col1, - CASE + + 36 WHEN - 28 THEN NULL WHEN + 78 + + - 85 * + 7 * + COALESCE ( - 56, - ( - + 98 ) ) + + 65 + 87 THEN - 81 ELSE NULL END
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + COUNT( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + COUNT ( - 44 )
----
1

query I rowsort
SELECT ALL 55 * 65 * + + 76
----
271700

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT - COALESCE ( 25, MAX( 69 ) ) * + - ( + 21 ) AS col2
----
525

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - COALESCE ( 25, MAX ( 69 ) ) * + - ( + 21 ) AS col2
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL - 97 / - 20 * 30 * 32 - 76 * - - CASE CAST( - 10 AS SIGNED ) WHEN + NULLIF ( + 61, + 30 + - 84 ) - + 71 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 81 END + - - 46 + - 55 col0, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - 97 / - 20 * 30 * 32 - 76 * - - CASE CAST ( - 10 AS INTEGER ) WHEN + NULLIF ( + 61, + 30 + - 84 ) - + 71 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 81 END + - - 46 + - 55 col0, 93
----
NULL
93

query II rowsort
SELECT + 13 * 32, - 98 AS col0
----
416
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + MAX( ALL - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4764
SELECT + MAX ( ALL - 8 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4765
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN 67 + + MIN( - + 34 ) THEN 23 END + + - 41 + - CAST( NULL AS DECIMAL ) * + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN 67 + + MIN ( - + 34 ) THEN 23 END + + - 41 + - CAST ( NULL AS REAL ) * + - 92 AS col1
----
NULL

query II rowsort
SELECT + 97 * - - ( - + 4 ) AS col1, - 60 AS col1
----
-388
-60

query I rowsort
SELECT + - 33 * + 44 + + 77
----
-1375

query I rowsort
SELECT DISTINCT - 60 * - 37 * - 66 AS col0
----
-146520

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + 63 + - 50 + + NULLIF ( - 17, + + 23 / + COUNT( * ) * - 42 )
----
-4

skipif mysql # not compatible
query I rowsort label-4769
SELECT + 63 + - 50 + + NULLIF ( - 17, + + 23 / + COUNT ( * ) * - 42 )
----
-4

onlyif mysql # aggregate syntax: 
query III rowsort label-4770
SELECT DISTINCT + 99 * + 40 col0, NULLIF ( 17, + COUNT( * ) + - 72 ) * + 9 * - - 72 + - 90 * + - 97 AS col1, 89 + - + 96
----
3960
19746
-7

skipif mysql # not compatible
query III rowsort label-4770
SELECT DISTINCT + 99 * + 40 col0, NULLIF ( 17, + COUNT ( * ) + - 72 ) * + 9 * - - 72 + - 90 * + - 97 AS col1, 89 + - + 96
----
3960
19746
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL - 18 * + + CASE + + ( COUNT( + 27 ) ) WHEN + 55 THEN 31 + COUNT( * ) WHEN - + 16 THEN 49 ELSE NULL END + - CAST( 44 AS SIGNED ) * + COUNT( * ) / ( - 10 ) / 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - 18 * + + CASE + + ( COUNT ( + 27 ) ) WHEN + 55 THEN 31 + COUNT ( * ) WHEN - + 16 THEN 49 ELSE NULL END + - CAST ( 44 AS INTEGER ) * + COUNT ( * ) / ( - 10 ) / 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - SUM( DISTINCT + 87 ) * + 74 AS col1
----
-6438

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - SUM ( DISTINCT + 87 ) * + 74 AS col1
----
-6438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT + CASE + - CAST( NULL AS SIGNED ) WHEN - 82 THEN NULL ELSE COALESCE ( + COUNT( * ), - 3 * - + 69 + + MIN( DISTINCT - + 50 ) ) END * 47 + + - 41 + + - ( + 41 )
----
-35

skipif mysql # not compatible
query I rowsort label-4773
SELECT + CASE + - CAST ( NULL AS INTEGER ) WHEN - 82 THEN NULL ELSE COALESCE ( + COUNT ( * ), - 3 * - + 69 + + MIN ( DISTINCT - + 50 ) ) END * 47 + + - 41 + + - ( + 41 )
----
-35

query I rowsort
SELECT + + 86 * - + 49 AS col0
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - 13 + - - 25 * + CASE - COUNT( DISTINCT 94 ) WHEN + - 82 THEN + 48 WHEN + AVG ( + 2 ) + - 99 / - COUNT( * ) + + + 54 THEN NULL END * - + ( - COUNT( 69 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT - 13 + - - 25 * + CASE - COUNT ( DISTINCT 94 ) WHEN + - 82 THEN + 48 WHEN + AVG ( + 2 ) + - 99 / - COUNT ( * ) + + + 54 THEN NULL END * - + ( - COUNT ( 69 ) ) AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( + 97, + 20 )
----
-97

query I rowsort
SELECT ALL 40 * - 99 * - 48
----
190080

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL COUNT( + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL COUNT ( + - 17 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4779
SELECT COUNT( * ) AS col1, + 52 + - ( - + 34 )
----
1
86

skipif mysql # not compatible
query II rowsort label-4779
SELECT COUNT ( * ) AS col1, + 52 + - ( - + 34 )
----
1
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4780
SELECT ALL 60 * + 71 * + CASE COALESCE ( + + COUNT( * ), - AVG ( - 39 ) ) WHEN - 16 THEN NULL ELSE - + AVG ( DISTINCT + 12 ) + + 36 * - COUNT( * ) * + CAST( NULL AS DECIMAL ) + + 41 - - + 67 + - 29 + - CASE - - 95 WHEN NULLIF ( - COUNT( * ), + - 68 ) + - 35 + + COUNT( * ) * - 19 + - 97 THEN - 47 WHEN 67 * - + ( + ( + 61 ) ) THEN NULL END + 70 - - 49 - + 97 END + + COUNT( * ) + 21 * - ( 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 60 * + 71 * + CASE COALESCE ( + + COUNT ( * ), - AVG ( - 39 ) ) WHEN - 16 THEN NULL ELSE - + AVG ( DISTINCT + 12 ) + + 36 * - COUNT ( * ) * + CAST ( NULL AS REAL ) + + 41 - - + 67 + - 29 + - CASE - - 95 WHEN NULLIF ( - COUNT ( * ), + - 68 ) + - 35 + + COUNT ( * ) * - 19 + - 97 THEN - 47 WHEN 67 * - + ( + ( + 61 ) ) THEN NULL END + 70 - - 49 - + 97 END + + COUNT ( * ) + 21 * - ( 50 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL + SUM( + 73 ) + + 50
----
123

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + SUM ( + 73 ) + + 50
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4782
SELECT DISTINCT COALESCE ( - COUNT( * ), COUNT( * ) ) col0, 11 * 61 * - 62 + - 55
----
-1
-41657

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT COALESCE ( - COUNT ( * ), COUNT ( * ) ) col0, 11 * 61 * - 62 + - 55
----
-1
-41657

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - 62 * + COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4783
SELECT - 62 * + COUNT ( * ) AS col0
----
-62

query I rowsort
SELECT - 79 + + 56 AS col2
----
-23

query I rowsort
SELECT ALL - ( + - 10 ) - - 59 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4786
SELECT - 91 * - + 86 DIV COUNT( * ) AS col2
----
7826

skipif mysql # not compatible
query I rowsort label-4786
SELECT - 91 * - + 86 / COUNT ( * ) AS col2
----
7826

query I rowsort
SELECT - 26 * - 69
----
1794

query I rowsort
SELECT ALL - 24 * 61 * + NULLIF ( 85, - 49 )
----
-124440

query II rowsort
SELECT ALL 39, 65 AS col0
----
39
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - COUNT( * ) - - 96 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - COUNT ( * ) - - 96 AS col2
----
95

query II rowsort
SELECT DISTINCT 98 AS col2, - 13 + 64
----
98
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT 62 DIV 1 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4792
SELECT 62 / 1 AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT 36 + + 81 DIV - + COUNT( - 36 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4793
SELECT 36 + + 81 / - + COUNT ( - 36 ) AS col2
----
-45

query I rowsort
SELECT 45 * - 68
----
-3060

query I rowsort
SELECT ALL + 52 * 56 col0
----
2912

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4796
SELECT 75 DIV ( + + 66 ) AS col1, 42 - - 74 + 58 * - ( + ( 23 ) ) * CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4796
SELECT 75 / ( + + 66 ) AS col1, 42 - - 74 + 58 * - ( + ( 23 ) ) * CAST ( NULL AS REAL ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4797
SELECT - 81 DIV CAST( + 97 AS SIGNED ), 15 AS col2
----
0
15

skipif mysql # not compatible
query II rowsort label-4797
SELECT - 81 / CAST ( + 97 AS INTEGER ), 15 AS col2
----
0
15

query I rowsort
SELECT ALL - 31 * 91
----
-2821

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT ALL - + 8 AS col0, - 38 * COALESCE ( - + 5, - 13 ) * - + 3 + COUNT( ALL + 75 ) AS col1
----
-8
-569

skipif mysql # not compatible
query II rowsort label-4799
SELECT ALL - + 8 AS col0, - 38 * COALESCE ( - + 5, - 13 ) * - + 3 + COUNT ( ALL + 75 ) AS col1
----
-8
-569

query I rowsort
SELECT DISTINCT ( - - 90 ) + + + 48 - - + 94 + + + 37 - - - 80 + - 80 AS col1
----
109

query I rowsort
SELECT COALESCE ( 38, + - 75, 41 ) + 90
----
128

query I rowsort
SELECT ALL - 87 * 37
----
-3219

query II rowsort
SELECT - 32, ( + 34 ) AS col1
----
-32
34

query I rowsort
SELECT ALL - 70 + - - 71 col1
----
1

query I rowsort
SELECT 93 + - 28
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT - CASE + + 43 WHEN CAST( NULL AS SIGNED ) * - 92 THEN - 57 * + MAX( - 97 ) * + 72 ELSE NULL END * + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT - CASE + + 43 WHEN CAST ( NULL AS INTEGER ) * - 92 THEN - 57 * + MAX ( - 97 ) * + 72 ELSE NULL END * + + 73 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 67 + 73 AS col1
----
140

query II rowsort
SELECT + 6 AS col1, ( + + 42 ) * 6 - - + 95 + + 39
----
6
386

query I rowsort
SELECT ALL + 55 * 77
----
4235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT + MIN( + COALESCE ( 9, + 42 * - 93, + 60 ) ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT + MIN ( + COALESCE ( 9, + 42 * - 93, + 60 ) ) / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT DISTINCT COUNT( * ) * - 93 * 46 - + - 44 + 65 + - 84 + - COUNT( * ) - - 36 + 63 * 45 * - CASE - 64 WHEN 7 THEN NULL WHEN - 64 THEN + 97 ELSE + - 70 END, + ( 20 ) + + 88 AS col2
----
-279213
108

skipif mysql # not compatible
query II rowsort label-4812
SELECT DISTINCT COUNT ( * ) * - 93 * 46 - + - 44 + 65 + - 84 + - COUNT ( * ) - - 36 + 63 * 45 * - CASE - 64 WHEN 7 THEN NULL WHEN - 64 THEN + 97 ELSE + - 70 END, + ( 20 ) + + 88 AS col2
----
-279213
108

query I rowsort
SELECT DISTINCT + 63 + - 7 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4814
SELECT ALL + 5 * - CAST( NULL AS SIGNED ) * + COUNT( * ), 87 * + 49 AS col0
----
NULL
4263

skipif mysql # not compatible
query II rowsort label-4814
SELECT ALL + 5 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ), 87 * + 49 AS col0
----
NULL
4263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT 1 + 6 + 74 / + CAST( NULL AS SIGNED ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT 1 + 6 + 74 / + CAST ( NULL AS INTEGER ) * + 1
----
NULL

query I rowsort
SELECT 37 * 70
----
2590

query I rowsort
SELECT DISTINCT 9 - + 7
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT COALESCE ( COUNT( * ), - 16 * + 90 + - 96 ) - - + 9
----
10

skipif mysql # not compatible
query I rowsort label-4818
SELECT COALESCE ( COUNT ( * ), - 16 * + 90 + - 96 ) - - + 9
----
10

query I rowsort
SELECT 27 + + 24 * + - 73
----
-1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4820
SELECT ( CASE 70 WHEN COUNT( * ) + + COALESCE ( 34, COUNT( + - 31 ) + 77 ) * - - CAST( - - 85 AS SIGNED ) DIV - ( + + 44 ) THEN NULL ELSE ( - - COUNT( * ) ) * - 73 END ) DIV + MIN( + 52 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4820
SELECT ( CASE 70 WHEN COUNT ( * ) + + COALESCE ( 34, COUNT ( + - 31 ) + 77 ) * - - CAST ( - - 85 AS INTEGER ) / - ( + + 44 ) THEN NULL ELSE ( - - COUNT ( * ) ) * - 73 END ) / + MIN ( + 52 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT CAST( NULL AS SIGNED ) + + 82 - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT CAST ( NULL AS INTEGER ) + + 82 - 94 AS col2
----
NULL

query I rowsort
SELECT 65 * - 11 AS col0
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT COUNT( * ) + + - 55 * + + 72 DIV + COUNT( * )
----
-3959

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) + + - 55 * + + 72 / + COUNT ( * )
----
-3959

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT 71 - - NULLIF ( 99, - COUNT( * ) * + - SUM( ALL - 76 ) / - 70 * - 6 * + + 89 - + 66 + + 28 )
----
170

skipif mysql # not compatible
query I rowsort label-4824
SELECT 71 - - NULLIF ( 99, - COUNT ( * ) * + - SUM ( ALL - 76 ) / - 70 * - 6 * + + 89 - + 66 + + 28 )
----
170

query I rowsort
SELECT ALL + 84 * + 62
----
5208

query I rowsort
SELECT 81 + + + 0 + - + ( + 27 ) * + 48 * - - 27 * - 80 + + - 34
----
2799407

query I rowsort
SELECT DISTINCT + 66 * 36
----
2376

query II rowsort
SELECT 55 * 82 AS col0, - 67
----
4510
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT ALL + 60 * - + COALESCE ( + + COUNT( * ), - 33 * + + COUNT( * ), + 96 + 70 ) DIV NULLIF ( + COUNT( * ), + 62 ) + 29 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 60 * - + COALESCE ( + + COUNT ( * ), - 33 * + + COUNT ( * ), + 96 + 70 ) / NULLIF ( + COUNT ( * ), + 62 ) + 29 AS col2
----
-31

query I rowsort
SELECT 96 * - - 78 * + 86 + - 93
----
643875

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT + - 96 DIV - - 65 + + 7
----
6

skipif mysql # not compatible
query I rowsort label-4831
SELECT + - 96 / - - 65 + + 7
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4832
SELECT ALL - 41 + + - CASE + 19 WHEN + - 18 + - 98 * + 58 * CAST( NULL AS SIGNED ) + - 41 * - COUNT( * ) THEN + COUNT( * ) WHEN - + 35 THEN ( + COUNT( * ) ) END + + NULLIF ( - - CAST( 24 AS DECIMAL ), + + 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - 41 + + - CASE + 19 WHEN + - 18 + - 98 * + 58 * CAST ( NULL AS INTEGER ) + - 41 * - COUNT ( * ) THEN + COUNT ( * ) WHEN - + 35 THEN ( + COUNT ( * ) ) END + + NULLIF ( - - CAST ( 24 AS REAL ), + + 71 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT ALL + - 27 + - + 38, + COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL + - 27 + - + 38, + COUNT ( * ) AS col1
----
-65
1

query I rowsort
SELECT - COALESCE ( + 56, + + 94, - ( + 65 ) ) * - - 8 col0
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - 72 + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 72 + + COUNT ( * )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT ALL + 50 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + 50 / 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT 36 DIV - - 25
----
1

skipif mysql # not compatible
query I rowsort label-4837
SELECT 36 / - - 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT CASE + 26 WHEN 48 THEN 37 * - COUNT( * ) ELSE NULL END * ( - COUNT( * ) ) + - 65 + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT CASE + 26 WHEN 48 THEN 37 * - COUNT ( * ) ELSE NULL END * ( - COUNT ( * ) ) + - 65 + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT - 47 + + 17 + + + 88 + - 0 * 22 * + COUNT( * ) DIV - + 99 * 50
----
58

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - 47 + + 17 + + + 88 + - 0 * 22 * + COUNT ( * ) / - + 99 * 50
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT + + COUNT( * ) - 26
----
-25

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + + COUNT ( * ) - 26
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - 19 - + COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4842
SELECT - 19 - + COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT DISTINCT NULLIF ( + + 28, + - 49 + - + 6 + + 12 ) - + 57 * 21
----
-1169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT 46 + + AVG ( 10 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT 46 + + AVG ( 10 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + 68 + + - 30 * + MAX( ALL 5 ) * - 41
----
6218

skipif mysql # not compatible
query I rowsort label-4845
SELECT + 68 + + - 30 * + MAX ( ALL 5 ) * - 41
----
6218

query I rowsort
SELECT DISTINCT 97 * + - NULLIF ( 12, + 7 )
----
-1164

query I rowsort
SELECT ALL CASE 95 WHEN + + ( + 25 ) THEN + + ( - 6 ) ELSE - 33 END AS col1
----
-33

query I rowsort
SELECT ALL 32 * - 67
----
-2144

query II rowsort
SELECT DISTINCT 49 * + ( - + 64 ), 69 * + ( - + 78 ) AS col0
----
-3136
-5382

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT + ( 86 ) DIV + 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT + ( 86 ) / + 63 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + MAX( 82 ) * + 62 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-4851
SELECT + MAX ( 82 ) * + 62 AS col0
----
5084

query I rowsort
SELECT + ( 69 ) + + 29 AS col2
----
98

query I rowsort
SELECT ALL 54 * - + 47 AS col1
----
-2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT + MAX( ALL + NULLIF ( - 22, 8 + CAST( NULL AS SIGNED ) ) ) + 50
----
28

skipif mysql # not compatible
query I rowsort label-4854
SELECT + MAX ( ALL + NULLIF ( - 22, 8 + CAST ( NULL AS INTEGER ) ) ) + 50
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT + 37 DIV + - 63
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 37 / + - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT - 42 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 42 / + + 93
----
0

query I rowsort
SELECT ALL 48 + - - 79 AS col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT + 54 * + CASE - 87 WHEN 60 THEN - + 75 WHEN CAST( 62 AS SIGNED ) THEN - 66 * - 17 + AVG ( ALL 97 ) WHEN + COUNT( * ) THEN 86 / - ( + - 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT + 54 * + CASE - 87 WHEN 60 THEN - + 75 WHEN CAST ( 62 AS INTEGER ) THEN - 66 * - 17 + AVG ( ALL 97 ) WHEN + COUNT ( * ) THEN 86 / - ( + - 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + 62 + COALESCE ( + 95, - COALESCE ( - + 55, 42 + - 40 - 76 - + 52 + - 25 + + 11 * + 74 * - COUNT( * ) * 19 * 66 + - 94 ) ) * - - MIN( DISTINCT + 73 ) + - MIN( + 95 )
----
6902

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + 62 + COALESCE ( + 95, - COALESCE ( - + 55, 42 + - 40 - 76 - + 52 + - 25 + + 11 * + 74 * - COUNT ( * ) * 19 * 66 + - 94 ) ) * - - MIN ( DISTINCT + 73 ) + - MIN ( + 95 )
----
6902

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT - ( - SUM( DISTINCT NULLIF ( 96, - 29 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - ( - SUM ( DISTINCT NULLIF ( 96, - 29 ) ) )
----
96

query I rowsort
SELECT DISTINCT 85 + + 22 AS col2
----
107

query I rowsort
SELECT ALL - 40 + - 38 + - 36 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - ( - - ( ( COUNT( * ) ) ) ) * - ( + + 39 ) * + 16 AS col0
----
624

skipif mysql # not compatible
query I rowsort label-4863
SELECT - ( - - ( ( COUNT ( * ) ) ) ) * - ( + + 39 ) * + 16 AS col0
----
624

query I rowsort
SELECT + ( 94 ) - + 93 - NULLIF ( 5, + - 95 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT + 87 + - 82 DIV - + COUNT( DISTINCT - + 33 )
----
169

skipif mysql # not compatible
query I rowsort label-4865
SELECT + 87 + - 82 / - + COUNT ( DISTINCT - + 33 )
----
169

query I rowsort
SELECT + - 74 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + SUM( DISTINCT + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4867
SELECT + SUM ( DISTINCT + 79 ) AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT + 79 * + 20 - - - 37 DIV + 35 AS col1
----
1579

skipif mysql # not compatible
query I rowsort label-4868
SELECT + 79 * + 20 - - - 37 / + 35 AS col1
----
1579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT - - NULLIF ( - 54, 6 / + 53 + - 5 + + - 13 ) / + 18 * + CAST( NULL AS SIGNED ) * + - COUNT( * ) - + 85 AS col0, 22 col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4869
SELECT - - NULLIF ( - 54, 6 / + 53 + - 5 + + - 13 ) / + 18 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) - + 85 AS col0, 22 col2
----
NULL
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4870
SELECT DISTINCT + NULLIF ( - COUNT( ALL 33 ), - + SUM( + 15 ) ) DIV COALESCE ( + 34, + 37 ) * - ( 69 ) + - NULLIF ( - - 74, + 43 - - 87 DIV - - MAX( + + 64 ) + CAST( NULL AS SIGNED ) ) DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + NULLIF ( - COUNT ( ALL 33 ), - + SUM ( + 15 ) ) / COALESCE ( + 34, + 37 ) * - ( 69 ) + - NULLIF ( - - 74, + 43 - - 87 / - - MAX ( + + 64 ) + CAST ( NULL AS INTEGER ) ) / - 84 AS col2
----
0

query II rowsort
SELECT ALL + 63 AS col0, + 40 * - + 54 AS col0
----
63
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT 88 * + 58 + - + 85 + - + 13 - - COALESCE ( - 91, + 17, NULLIF ( COUNT( * ), - ( + 66 ) ) ) * - 39 * - 27 - COUNT( * ) AS col0
----
-90818

skipif mysql # not compatible
query I rowsort label-4872
SELECT 88 * + 58 + - + 85 + - + 13 - - COALESCE ( - 91, + 17, NULLIF ( COUNT ( * ), - ( + 66 ) ) ) * - 39 * - 27 - COUNT ( * ) AS col0
----
-90818

query II rowsort
SELECT - 72 * + 23 * + 5 AS col0, - 22 AS col2
----
-8280
-22

query I rowsort
SELECT - 16 + - + 24
----
-40

query I rowsort
SELECT ( - - 75 ) col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + + COUNT( DISTINCT + + NULLIF ( - - 15, + 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4876
SELECT + + COUNT ( DISTINCT + + NULLIF ( - - 15, + 7 ) )
----
1

query I rowsort
SELECT - 39 - - 16
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT - 50 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 50 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT + 56 * + - NULLIF ( + + 62, + ( COUNT( * ) ) ) AS col1
----
-3472

skipif mysql # not compatible
query I rowsort label-4879
SELECT + 56 * + - NULLIF ( + + 62, + ( COUNT ( * ) ) ) AS col1
----
-3472

query I rowsort
SELECT NULLIF ( - 52, + - 53 + 43 * 37 * 49 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + MAX( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + MAX ( - 16 )
----
-16

query I rowsort
SELECT 1 * + + 22 + + + 27 col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT DISTINCT + CASE + - 36 WHEN 28 THEN 76 WHEN - + CAST( NULL AS SIGNED ) THEN ( - 71 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + CASE + - 36 WHEN 28 THEN 76 WHEN - + CAST ( NULL AS INTEGER ) THEN ( - 71 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT - 8 + + 93 - + + 31 + + + CAST( NULL AS SIGNED ) + 80 * + + ( + 64 ) + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT - 8 + + 93 - + + 31 + + + CAST ( NULL AS INTEGER ) + 80 * + + ( + 64 ) + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT COUNT( ALL + + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-4885
SELECT COUNT ( ALL + + 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - 84 + + 70 * - MIN( 11 ) AS col2
----
-854

skipif mysql # not compatible
query I rowsort label-4886
SELECT - 84 + + 70 * - MIN ( 11 ) AS col2
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL CAST( COUNT( 99 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL CAST ( COUNT ( 99 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4888
SELECT - MAX( DISTINCT 96 ) + COUNT( ALL + 48 ) + + 45 DIV 89 * + 86 * + 53 + + ( + - COUNT( * ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4888
SELECT - MAX ( DISTINCT 96 ) + COUNT ( ALL + 48 ) + + 45 / 89 * + 86 * + 53 + + ( + - COUNT ( * ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - CASE 41 WHEN 15 * - COUNT( * ) + + 69 THEN NULL WHEN 24 THEN + 35 WHEN 53 THEN + - COUNT( * ) * ( + COUNT( * ) ) + + ( + - 85 ) + - 49 * + 61 + + 24 ELSE - - 85 END + + 73
----
-12

skipif mysql # not compatible
query I rowsort label-4889
SELECT - CASE 41 WHEN 15 * - COUNT ( * ) + + 69 THEN NULL WHEN 24 THEN + 35 WHEN 53 THEN + - COUNT ( * ) * ( + COUNT ( * ) ) + + ( + - 85 ) + - 49 * + 61 + + 24 ELSE - - 85 END + + 73
----
-12

query I rowsort
SELECT ALL 48 + + 36
----
84

query I rowsort
SELECT ALL ( + - 65 ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4892
SELECT ALL CAST( NULL AS SIGNED ) col2, - COUNT( * ) * COUNT( * ) * + 18 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) * COUNT ( * ) * + 18 AS col1
----
NULL
-18

query I rowsort
SELECT + 30 + - ( + 87 ) - + 84 + + 43
----
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4894
SELECT DISTINCT - 48 + 18 + + CAST( NULL AS DECIMAL ) + 94 - AVG ( DISTINCT - - 39 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - 48 + 18 + + CAST ( NULL AS REAL ) + 94 - AVG ( DISTINCT - - 39 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 + + 14
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4896
SELECT - - MAX( DISTINCT NULLIF ( - 94, - 52 * + + CAST( + 91 AS DECIMAL ) * + - 73 * 48 + - 32 + - + ( 54 ) ) ) + 61 + + ( - 72 )
----
-105

skipif mysql # not compatible
query I rowsort label-4896
SELECT - - MAX ( DISTINCT NULLIF ( - 94, - 52 * + + CAST ( + 91 AS REAL ) * + - 73 * 48 + - 32 + - + ( 54 ) ) ) + 61 + + ( - 72 )
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT + + 88 - + 30 - + 4 + + MIN( - - 36 ) * CASE + - 38 WHEN + CAST( NULL AS SIGNED ) THEN ( - 97 ) WHEN - COUNT( * ) THEN + ( - 96 ) + - - ( + 57 ) ELSE NULL END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + + 88 - + 30 - + 4 + + MIN ( - - 36 ) * CASE + - 38 WHEN + CAST ( NULL AS INTEGER ) THEN ( - 97 ) WHEN - COUNT ( * ) THEN + ( - 96 ) + - - ( + 57 ) ELSE NULL END * 79
----
NULL

query I rowsort
SELECT - + ( 8 ) + + 83 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT + - 14 + + 94 + - 28 + CAST( + + CASE + ( + - COUNT( * ) ) WHEN + 99 / 67 THEN - + 73 + - 75 + + 15 WHEN 96 THEN + 31 + - AVG ( 68 ) ELSE NULL END AS SIGNED ) + COUNT( * ) * + 62 + 5 + - - 22 + - 83 * + 67 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT + - 14 + + 94 + - 28 + CAST ( + + CASE + ( + - COUNT ( * ) ) WHEN + 99 / 67 THEN - + 73 + - 75 + + 15 WHEN 96 THEN + 31 + - AVG ( 68 ) ELSE NULL END AS INTEGER ) + COUNT ( * ) * + 62 + 5 + - - 22 + - 83 * + 67 * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 95, 57 / + 94 * - + 45 / - 5 )
----
-95

query I rowsort
SELECT + 63 * 98 * + - 14
----
-86436

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT + MAX( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + MAX ( 25 )
----
25

query I rowsort
SELECT ALL 37 - 62 + + - ( + 6 ) + - 21
----
-52

query I rowsort
SELECT + 7 + + 55
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL 77 * MIN( ALL 58 ) * + 69
----
308154

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 77 * MIN ( ALL 58 ) * + 69
----
308154

query I rowsort
SELECT + 52 * + 38 + - 5
----
1971

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT - 64 DIV + + 31 + + + 59 col1
----
57

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 64 / + + 31 + + + 59 col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4908
SELECT ALL + 58, 89 * - 77 * + 9 col2, - COALESCE ( - + MIN( ( - 84 ) ), + 73 DIV 51 + - + ( - 39 ) - 57 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - 88 - - 78 ) * - 85 + - + COALESCE ( + 98, - + 12 ) AS col0
----
58
-61677
7042

skipif mysql # not compatible
query III rowsort label-4908
SELECT ALL + 58, 89 * - 77 * + 9 col2, - COALESCE ( - + MIN ( ( - 84 ) ), + 73 / 51 + - + ( - 39 ) - 57 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 88 - - 78 ) * - 85 + - + COALESCE ( + 98, - + 12 ) AS col0
----
58
-61677
7042

query I rowsort
SELECT + + 87 * + 98 AS col0
----
8526

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT ALL + - 17, - CAST( + + 63 AS SIGNED ) AS col0
----
-17
-63

skipif mysql # not compatible
query II rowsort label-4910
SELECT ALL + - 17, - CAST ( + + 63 AS INTEGER ) AS col0
----
-17
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT + - CAST( NULL AS SIGNED ) + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT + - CAST ( NULL AS INTEGER ) + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + COUNT( * ) * - 72 * - NULLIF ( - ( - 8 ), + + 61 )
----
576

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + COUNT ( * ) * - 72 * - NULLIF ( - ( - 8 ), + + 61 )
----
576

query I rowsort
SELECT + 10 * + 54
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT 36 + CASE - NULLIF ( - + ( + 16 ), ( 7 ) ) WHEN - COUNT( * ) * + + 67 + 56 THEN - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT 36 + CASE - NULLIF ( - + ( + 16 ), ( 7 ) ) WHEN - COUNT ( * ) * + + 67 + 56 THEN - 58 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 38, - 41 / - 18 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT 46 + + - 59 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT 46 + + - 59 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - MAX( - ( - 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - MAX ( - ( - 8 ) )
----
-8

query I rowsort
SELECT ALL 85 * - + 68 AS col0
----
-5780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT 56 DIV + COUNT( - 24 )
----
56

skipif mysql # not compatible
query I rowsort label-4919
SELECT 56 / + COUNT ( - 24 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 26 * COALESCE ( + + COUNT( * ), - COUNT( * ) + MIN( ALL - 25 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4920
SELECT 26 * COALESCE ( + + COUNT ( * ), - COUNT ( * ) + MIN ( ALL - 25 ) )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ( - 53 ) - + CAST( + CAST( + 59 AS SIGNED ) AS SIGNED ) + 73
----
-39

skipif mysql # not compatible
query I rowsort label-4921
SELECT ( - 53 ) - + CAST ( + CAST ( + 59 AS INTEGER ) AS INTEGER ) + 73
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4922
SELECT ALL - COALESCE ( 3, - + ( 91 ) * + 99 * - + 42 * + 45 + - SUM( + 95 ) * + + 82 - - 7 + - MIN( + 66 ), - MAX( + - CAST( NULL AS SIGNED ) ) * 48 * + 41 ) AS col0, + 71 * - 42
----
-3
-2982

skipif mysql # not compatible
query II rowsort label-4922
SELECT ALL - COALESCE ( 3, - + ( 91 ) * + 99 * - + 42 * + 45 + - SUM ( + 95 ) * + + 82 - - 7 + - MIN ( + 66 ), - MAX ( + - CAST ( NULL AS INTEGER ) ) * 48 * + 41 ) AS col0, + 71 * - 42
----
-3
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + 5 * - SUM( ALL - 85 ) * 96 + 77
----
40877

skipif mysql # not compatible
query I rowsort label-4923
SELECT + 5 * - SUM ( ALL - 85 ) * 96 + 77
----
40877

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT 45 DIV + + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4924
SELECT 45 / + + 35 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT 81 + - CAST( + + 28 AS SIGNED ) * + 40 * + - COUNT( * ) * - - CASE - 5 WHEN - - 76 * 1 + 32 THEN - - 33 END + + - 38 + - 3 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT 81 + - CAST ( + + 28 AS INTEGER ) * + 40 * + - COUNT ( * ) * - - CASE - 5 WHEN - - 76 * 1 + 32 THEN - - 33 END + + - 38 + - 3 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT MIN( ALL - - COALESCE ( + ( + 0 ), - 77 ) ) + - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + 5 + - - COALESCE ( - + 83, - 32 ) / - ( 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT MIN ( ALL - - COALESCE ( + ( + 0 ), - 77 ) ) + - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 5 + - - COALESCE ( - + 83, - 32 ) / - ( 20 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL - 35 * SUM( - + 32 ) col2
----
1120

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - 35 * SUM ( - + 32 ) col2
----
1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4928
SELECT DISTINCT - 44 + + 43, ( 2 ) * 60 + + 46 * CASE 11 WHEN - COUNT( * ) THEN + 11 - + MIN( 24 ) - - - 65 * 34 DIV - + AVG ( DISTINCT - + 84 ) ELSE + 44 END DIV + + 70 + + 60 AS col0
----
-1
208

skipif mysql # not compatible
query II rowsort label-4928
SELECT DISTINCT - 44 + + 43, ( 2 ) * 60 + + 46 * CASE 11 WHEN - COUNT ( * ) THEN + 11 - + MIN ( 24 ) - - - 65 * 34 / - + AVG ( DISTINCT - + 84 ) ELSE + 44 END / + + 70 + + 60 AS col0
----
-1
208

query I rowsort
SELECT ALL - 54 * - 64 AS col1
----
3456

query I rowsort
SELECT - 25 * - 43 * 19 + - + 92
----
20333

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT NULLIF ( - 33, - - NULLIF ( + COUNT( * ), + 66 * 25 * - AVG ( - 75 ) / - 23 * + COUNT( * ) ) * ( + - ( - + 9 ) ) / - 99 - COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-4931
SELECT NULLIF ( - 33, - - NULLIF ( + COUNT ( * ), + 66 * 25 * - AVG ( - 75 ) / - 23 * + COUNT ( * ) ) * ( + - ( - + 9 ) ) / - 99 - COUNT ( * ) )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT ALL + 62 - - COUNT( DISTINCT 79 ) DIV - 41 - - 54 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + 62 - - COUNT ( DISTINCT 79 ) / - 41 - - 54 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 44 - + + 46 * - COUNT( * ) * + + 24 AS col1
----
1148

skipif mysql # not compatible
query I rowsort label-4933
SELECT 44 - + + 46 * - COUNT ( * ) * + + 24 AS col1
----
1148

query I rowsort
SELECT ( + 89 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT - CAST( + + 64 AS SIGNED ) * - COUNT( * ) * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4935
SELECT - CAST ( + + 64 AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-4936
SELECT ALL - 71 DIV - 99 AS col0, + 8
----
0
8

skipif mysql # not compatible
query II rowsort label-4936
SELECT ALL - 71 / - 99 AS col0, + 8
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT - CAST( 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4937
SELECT - CAST ( 28 AS INTEGER ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT COUNT( ALL + + 77 ) AS col0, COUNT( * ) + + 48 AS col2
----
1
49

skipi