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

skipif mysql # not compatible
query II rowsort label-4938
SELECT COUNT ( ALL + + 77 ) AS col0, COUNT ( * ) + + 48 AS col2
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT ALL - - 16 DIV 23 + + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - - 16 / 23 + + - 66
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT 62 + + + CAST( NULL AS SIGNED ) - - 51 + - COUNT( * ) * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT 62 + + + CAST ( NULL AS INTEGER ) - - 51 + - COUNT ( * ) * - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT 50 DIV - + 31 + 78
----
77

skipif mysql # not compatible
query I rowsort label-4941
SELECT 50 / - + 31 + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - + NULLIF ( - - COUNT( * ), - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - + NULLIF ( - - COUNT ( * ), - 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - COUNT( * ) * - ( - 79 ) * - 44
----
3476

skipif mysql # not compatible
query I rowsort label-4943
SELECT - COUNT ( * ) * - ( - 79 ) * - 44
----
3476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT - - 88 * + NULLIF ( - COUNT( * ), - 58 / + 41 * + 96 * + 76 ) * - 62 + - 99 - + 37 + - + COALESCE ( + - CAST( - COUNT( * ) AS SIGNED ), - + COUNT( * ) ) + - 95 AS col0
----
5224

skipif mysql # not compatible
query I rowsort label-4944
SELECT - - 88 * + NULLIF ( - COUNT ( * ), - 58 / + 41 * + 96 * + 76 ) * - 62 + - 99 - + 37 + - + COALESCE ( + - CAST ( - COUNT ( * ) AS INTEGER ), - + COUNT ( * ) ) + - 95 AS col0
----
5224

query I rowsort
SELECT + 30 * - + 56 AS col1
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT DISTINCT - + COALESCE ( - 15, - - COUNT( ALL + 59 ) * 52 + - - 19, - 37 - - 8 DIV - 83 )
----
15

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - + COALESCE ( - 15, - - COUNT ( ALL + 59 ) * 52 + - - 19, - 37 - - 8 / - 83 )
----
15

query II rowsort
SELECT ALL - 11, 29 col0
----
-11
29

query I rowsort
SELECT 46 * 9
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT COALESCE ( + - 30, - - 82 * - - ( - - 25 ), + + 80 * + + MIN( 41 ) * - 56 ) + + 60
----
30

skipif mysql # not compatible
query I rowsort label-4949
SELECT COALESCE ( + - 30, - - 82 * - - ( - - 25 ), + + 80 * + + MIN ( 41 ) * - 56 ) + + 60
----
30

query II rowsort
SELECT 85 col1, - 77 AS col1
----
85
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT 36 * - - ( + - 99 ) AS col1, COUNT( * ) * - ( 90 )
----
-3564
-90

skipif mysql # not compatible
query II rowsort label-4951
SELECT 36 * - - ( + - 99 ) AS col1, COUNT ( * ) * - ( 90 )
----
-3564
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + 1 * - + COALESCE ( - + 74, + 13, + COUNT( * ) ) * + 43 - - 43 AS col1
----
3225

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 1 * - + COALESCE ( - + 74, + 13, + COUNT ( * ) ) * + 43 - - 43 AS col1
----
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT MIN( DISTINCT + - 64 ) * - - COUNT( * ) * 95 AS col0
----
-6080

skipif mysql # not compatible
query I rowsort label-4953
SELECT MIN ( DISTINCT + - 64 ) * - - COUNT ( * ) * 95 AS col0
----
-6080

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 37 + - ( + COUNT ( * ) ) / + 77
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT 72 + - 88 + - + 94 - 43 + - COUNT( * ) + - 51 * - + COUNT( * ) * 2 + + 86 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT 72 + - 88 + - + 94 - 43 + - COUNT ( * ) + - 51 * - + COUNT ( * ) * 2 + + 86 AS col0
----
34

query I rowsort
SELECT 61 + 1 + - 17 AS col2
----
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT 6 DIV - + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT 6 / - + 37 AS col2
----
0

query I rowsort
SELECT 82 + - 65 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - COUNT( DISTINCT 80 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - COUNT ( DISTINCT 80 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT - COALESCE ( - COALESCE ( + COUNT( ALL + + 15 ), + 82, - + MIN( DISTINCT + + 57 ) * + 12 + + 91 + + - CAST( NULL AS SIGNED ) * + 23 ), 35 * - 80 + + 65 * + SUM( + 34 ) - + + MAX( ALL + 92 ) * 90 + + + 95 * + 55, + + 40 ) * - 40 + + - 67 + - 26 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-4964
SELECT - COALESCE ( - COALESCE ( + COUNT ( ALL + + 15 ), + 82, - + MIN ( DISTINCT + + 57 ) * + 12 + + 91 + + - CAST ( NULL AS INTEGER ) * + 23 ), 35 * - 80 + + 65 * + SUM ( + 34 ) - + + MAX ( ALL + 92 ) * 90 + + + 95 * + 55, + + 40 ) * - 40 + + - 67 + - 26 AS col0
----
-133

query I rowsort
SELECT 28 * - + 40
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT 59 + + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4966
SELECT 59 + + + COUNT ( * ) AS col1
----
60

query II rowsort
SELECT ALL - + 81 * + NULLIF ( 47, + 45 * - 98 + 92 ) AS col2, 5 * - 35
----
-3807
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + 89 + - 46 + + 49 + + 82 * MAX( + - ( 73 ) ) * - COALESCE ( + + 13, + - 1 - NULLIF ( + + ( - COUNT( * ) ), + COUNT( * ) ), - ( - COUNT( * ) ) ) * - 2 AS col0
----
-155544

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 89 + - 46 + + 49 + + 82 * MAX ( + - ( 73 ) ) * - COALESCE ( + + 13, + - 1 - NULLIF ( + + ( - COUNT ( * ) ), + COUNT ( * ) ), - ( - COUNT ( * ) ) ) * - 2 AS col0
----
-155544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - + CAST( + + 16 AS SIGNED ) * + + 87 - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + CAST ( + + 16 AS INTEGER ) * + + 87 - - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT CAST( - + 68 AS SIGNED ) + 99 + + 98 + + 39 * + 87 * - MIN( ALL + + 1 ) * - CAST( COUNT( * ) AS SIGNED ) - 22 + 95 * 35 * - - 13
----
46725

skipif mysql # not compatible
query I rowsort label-4970
SELECT CAST ( - + 68 AS INTEGER ) + 99 + + 98 + + 39 * + 87 * - MIN ( ALL + + 1 ) * - CAST ( COUNT ( * ) AS INTEGER ) - 22 + 95 * 35 * - - 13
----
46725

query I rowsort
SELECT 28 + + + 45 - + 72 AS col1
----
1

query II rowsort
SELECT ALL - 87 AS col2, 10 * - 33 AS col0
----
-87
-330

query I rowsort
SELECT DISTINCT - - 38 * 77 AS col0
----
2926

query I rowsort
SELECT - 83 * - 44 AS col0
----
3652

query I rowsort
SELECT + 52 + + 94 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT ALL COUNT( * ) AS col2, 82 * - 51 AS col1
----
1
-4182

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL COUNT ( * ) AS col2, 82 * - 51 AS col1
----
1
-4182

query II rowsort
SELECT DISTINCT 48 AS col0, + 62 - + 7 * 2 - + 44
----
48
4

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

skipif mysql # not compatible
query I rowsort label-4978
SELECT - 5 * 41 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4979
SELECT - 28 DIV + 84 + - - 40 AS col0, - 69 AS col2
----
40
-69

skipif mysql # not compatible
query II rowsort label-4979
SELECT - 28 / + 84 + - - 40 AS col0, - 69 AS col2
----
40
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4980
SELECT DISTINCT + SUM( - - 67 ) DIV - 55 + - - COUNT( - - CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + SUM ( - - 67 ) / - 55 + - - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT ALL - 38 * 59 / 30 + - CASE - 9 WHEN - 8 THEN + + 16 WHEN + 92 THEN - 14 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - 9 + + + CAST( NULL AS SIGNED ) + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 9 + + + CAST ( NULL AS INTEGER ) + 29
----
NULL

query II rowsort
SELECT DISTINCT 72 * 85 * + - 18 + 89, - 64 * 45 AS col2
----
-110071
-2880

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col1, 0 * - COUNT( * ) * + 52 * - - CASE - 13 WHEN - COUNT( + 43 ) * 29 THEN + + 84 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 0 * - COUNT ( * ) * + 52 * - - CASE - 13 WHEN - COUNT ( + 43 ) * 29 THEN + + 84 ELSE NULL END
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT - COUNT( * ) * + - ( + - 57 ) + + 18 * - 1 + - - 61
----
-14

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - COUNT ( * ) * + - ( + - 57 ) + + 18 * - 1 + - - 61
----
-14

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL 15 * - COUNT( * ) DIV 73 + - SUM( DISTINCT 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 15 * - COUNT ( * ) / 73 + - SUM ( DISTINCT 53 )
----
-53

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

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

query I rowsort
SELECT ALL - 57 * - 66 - + 4
----
3758

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

query I rowsort
SELECT 62 * - 60 + - 80 col1
----
-3800

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

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

query I rowsort
SELECT 99 * + 46 + + 54 * - 79
----
288

query I rowsort
SELECT - 54 + 31
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT - COALESCE ( + + MAX( + 78 ), SUM( ALL + 23 ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4996
SELECT - COALESCE ( + + MAX ( + 78 ), SUM ( ALL + 23 ) ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL CASE + 29 WHEN + 28 THEN + 87 WHEN - 7 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL CASE + 29 WHEN + 28 THEN + 87 WHEN - 7 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT - MAX( DISTINCT 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - MAX ( DISTINCT 29 ) AS col0
----
-29

query I rowsort
SELECT + - 82 * + - NULLIF ( - 46, - 91 * + 56 + 80 ) + 92 AS col2
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL + 71 * SUM( DISTINCT + 47 ) AS col0
----
3337

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + 71 * SUM ( DISTINCT + 47 ) AS col0
----
3337

query I rowsort
SELECT ALL 43 * - 27
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ( + MAX( 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5002
SELECT ( + MAX ( 65 ) )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT + 31 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT + 31 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5004
SELECT + + SUM( ALL + ( + 74 ) ) * - - 55 * + 49 DIV - ( - COUNT( * ) )
----
199430

skipif mysql # not compatible
query I rowsort label-5004
SELECT + + SUM ( ALL + ( + 74 ) ) * - - 55 * + 49 / - ( - COUNT ( * ) )
----
199430

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - + MIN( + 26 ) * 8
----
-208

skipif mysql # not compatible
query I rowsort label-5005
SELECT - + MIN ( + 26 ) * 8
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + - 49 / 81 + + 65 * 92 + - NULLIF ( + + COUNT( * ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + - 49 / 81 + + 65 * 92 + - NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5007
SELECT DISTINCT + 28 DIV + 52 + + 37 * 53 * CAST( + - 18 AS SIGNED )
----
-35298

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + 28 / + 52 + + 37 * 53 * CAST ( + - 18 AS INTEGER )
----
-35298

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL + - MAX( DISTINCT + 18 ) + - ( + 15 ) + - - 48 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + - MAX ( DISTINCT + 18 ) + - ( + 15 ) + - - 48 AS col1
----
15

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

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

query I rowsort
SELECT ALL 73 + + - 10 * + 52
----
-447

query II rowsort
SELECT - 17 * 13 + 10 + + 88 AS col2, - 45 * - + 87
----
-123
3915

query I rowsort
SELECT ALL + - 61 + + - NULLIF ( 26, - 53 + + 25 * - 0 * + 85 ) + - COALESCE ( + 81, 27 ) * + - 64 + - - 32 * + - 5 + - 63
----
4874

query I rowsort
SELECT ALL - 34 + + - 18
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT + 69 + + CAST( NULL AS SIGNED ) + - + COUNT( DISTINCT - 95 ) * - COALESCE ( + - 40, + + 55, + 53 ) + + 4 + 69 / + - COUNT( * ) + - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT + 69 + + CAST ( NULL AS INTEGER ) + - + COUNT ( DISTINCT - 95 ) * - COALESCE ( + - 40, + + 55, + 53 ) + + 4 + 69 / + - COUNT ( * ) + - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - 74 - COUNT( * ) + + + 88 col2
----
13

skipif mysql # not compatible
query I rowsort label-5015
SELECT - 74 - COUNT ( * ) + + + 88 col2
----
13

query II rowsort
SELECT - 11, - 1 + - 95 AS col2
----
-11
-96

query I rowsort
SELECT - 44 + + 88 + + + 28 AS col2
----
72

query I rowsort
SELECT ALL + COALESCE ( + 15, 32 )
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT ALL 74 DIV COUNT( * ) * + 48 + CAST( - + COUNT( * ) AS SIGNED )
----
3551

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL 74 / COUNT ( * ) * + 48 + CAST ( - + COUNT ( * ) AS INTEGER )
----
3551

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

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

query I rowsort
SELECT DISTINCT + 48 * + + 98
----
4704

query I rowsort
SELECT - 90 + + ( + 55 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL CAST( NULL AS SIGNED ) / 86 - + 59 * + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL CAST ( NULL AS INTEGER ) / 86 - + 59 * + + 61 AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-5026
SELECT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS REAL ) * + - 58 AS col1
----
NULL

query II rowsort
SELECT ALL + 3 / + CASE - 63 WHEN + + 34 THEN - 41 ELSE NULL END AS col2, + 5 col0
----
NULL
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT COUNT( * ) DIV 57 * - + 35 + - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT COUNT ( * ) / 57 * - + 35 + - - COUNT ( * ) AS col0
----
1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + 54 * + 12 * 73 * + COUNT( * )
----
47304

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 54 * + 12 * 73 * + COUNT ( * )
----
47304

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL - 3 * + SUM( DISTINCT - - 24 ) - - + 21
----
-51

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - 3 * + SUM ( DISTINCT - - 24 ) - - + 21
----
-51

query I rowsort
SELECT DISTINCT - 86 * - 2
----
172

query I rowsort
SELECT DISTINCT + 31 * + 97 AS col2
----
3007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT ALL - SUM( + - 97 ) DIV - - 42 + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL - SUM ( + - 97 ) / - - 42 + + COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + + NULLIF ( + - COUNT( * ), 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + + NULLIF ( + - COUNT ( * ), 59 )
----
-1

query I rowsort
SELECT - 80 * - + 40 - - - 71
----
3129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + - ( CASE - 0 WHEN + 93 / + CAST( NULL AS SIGNED ) THEN + 42 WHEN - 83 * + - 19 - 89 THEN NULL ELSE NULL END ) - - 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - ( CASE - 0 WHEN + 93 / + CAST ( NULL AS INTEGER ) THEN + 42 WHEN - 83 * + - 19 - 89 THEN NULL ELSE NULL END ) - - 26 col0
----
NULL

query I rowsort
SELECT - 60 + + 88 - + 48
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL COALESCE ( - ( 86 ), - 22 + - MAX( DISTINCT - - ( ( 42 ) ) ) * + - 38, - COUNT( * ) * - 61 + 13 ) + 39 + + 65 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL COALESCE ( - ( 86 ), - 22 + - MAX ( DISTINCT - - ( ( 42 ) ) ) * + - 38, - COUNT ( * ) * - 61 + 13 ) + 39 + + 65 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT 91 + - 79 DIV + - 44
----
92

skipif mysql # not compatible
query I rowsort label-5042
SELECT 91 + - 79 / + - 44
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL 43 + + - MAX( DISTINCT - 76 ) + + + COUNT( * ) col1
----
120

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 43 + + - MAX ( DISTINCT - 76 ) + + + COUNT ( * ) col1
----
120

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT ALL + COUNT( * ) + - - 60 + - 20 * - 3 + - - 96 AS col1, + 79
----
217
79

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL + COUNT ( * ) + - - 60 + - 20 * - 3 + - - 96 AS col1, + 79
----
217
79

query I rowsort
SELECT ALL + ( 44 ) + + 88
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT - - COALESCE ( 52, - MIN( DISTINCT - + 15 ) + - 50 ), + 63 * + 48 col2
----
52
3024

skipif mysql # not compatible
query II rowsort label-5048
SELECT - - COALESCE ( 52, - MIN ( DISTINCT - + 15 ) + - 50 ), + 63 * + 48 col2
----
52
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ( - 69 ) + - 26 * + 99 * + + NULLIF ( + COALESCE ( 97, - + 42 ), - 72 - - COUNT( + + 84 ) )
----
-249747

skipif mysql # not compatible
query I rowsort label-5049
SELECT ( - 69 ) + - 26 * + 99 * + + NULLIF ( + COALESCE ( 97, - + 42 ), - 72 - - COUNT ( + + 84 ) )
----
-249747

query II rowsort
SELECT 14, 17 AS col1
----
14
17

query I rowsort
SELECT 84 + + 45
----
129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT - 88 DIV - CAST( + 43 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - 88 / - CAST ( + 43 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT ALL - 79 - + 53
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5054
SELECT 65 DIV CASE ( + 0 ) WHEN + COUNT( * ) THEN NULL ELSE 91 * + 49 * + 63 END * + 2 AS col0, + COUNT( * ) DIV - ( 41 )
----
0
0

skipif mysql # not compatible
query II rowsort label-5054
SELECT 65 / CASE ( + 0 ) WHEN + COUNT ( * ) THEN NULL ELSE 91 * + 49 * + 63 END * + 2 AS col0, + COUNT ( * ) / - ( 41 )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL 20 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 20 / 41
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT ALL - COUNT( * ), MAX( DISTINCT 3 ) col2
----
-1
3

skipif mysql # not compatible
query II rowsort label-5056
SELECT ALL - COUNT ( * ), MAX ( DISTINCT 3 ) col2
----
-1
3

query I rowsort
SELECT 90 * - - 67 AS col0
----
6030

query I rowsort
SELECT 61 + + 68 * + 34
----
2373

query I rowsort
SELECT DISTINCT - 62 - - 90
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5060
SELECT + 37 AS col2, 52 + 25 + - + SUM( DISTINCT + 48 ) AS col1
----
37
29

skipif mysql # not compatible
query II rowsort label-5060
SELECT + 37 AS col2, 52 + 25 + - + SUM ( DISTINCT + 48 ) AS col1
----
37
29

query I rowsort
SELECT 80 * + - 13 + 89 * - 13 AS col1
----
-2197

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT ALL - 45, - NULLIF ( + SUM( DISTINCT - 43 ), - - 1 * + 79 + - 34 * 0 ) + + 74 AS col1
----
-45
117

skipif mysql # not compatible
query II rowsort label-5062
SELECT ALL - 45, - NULLIF ( + SUM ( DISTINCT - 43 ), - - 1 * + 79 + - 34 * 0 ) + + 74 AS col1
----
-45
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - SUM( 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - SUM ( 42 ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT + 50 / MAX( ALL + - 56 ) * - 14 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 50 / MAX ( ALL + - 56 ) * - 14 + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 15 * - ( + 47 )
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT - + 7 + + COUNT( * ) / + 74 * + 73 / + MIN( CASE + 54 WHEN - - 55 THEN + 63 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - + 7 + + COUNT ( * ) / + 74 * + 73 / + MIN ( CASE + 54 WHEN - - 55 THEN + 63 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT 37 * NULLIF ( 0, 61 * + 43 + + 30 + NULLIF ( - - ( - 20 ), - ( - - 45 ) ) ) * + MIN( - 61 ) + 28, 51 * + + 14 AS col1
----
28
714

skipif mysql # not compatible
query II rowsort label-5068
SELECT 37 * NULLIF ( 0, 61 * + 43 + + 30 + NULLIF ( - - ( - 20 ), - ( - - 45 ) ) ) * + MIN ( - 61 ) + 28, 51 * + + 14 AS col1
----
28
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - COUNT( ALL 50 ) + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-5069
SELECT - COUNT ( ALL 50 ) + - 26
----
-27

query I rowsort
SELECT 26 + + 96 col2
----
122

query II rowsort
SELECT ALL 88 + + 67 AS col2, 66
----
155
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - MAX( DISTINCT 69 ) * - 86 AS col0
----
5934

skipif mysql # not compatible
query I rowsort label-5072
SELECT - MAX ( DISTINCT 69 ) * - 86 AS col0
----
5934

query I rowsort
SELECT ALL - - 65 + 19 + 19 + - + 9 * + ( + 97 ) * - 74 AS col2
----
64705

query I rowsort
SELECT ALL + - 2 * - 64
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 6 * - COUNT( * ) + + + 31 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5075
SELECT 6 * - COUNT ( * ) + + + 31 AS col1
----
25

query I rowsort
SELECT ALL - 36 + - 74 * - 37 * - - 27 + COALESCE ( 49, - 81 )
----
73939

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL 15 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL 15 / - - 66
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL - + AVG ( - 60 ) + 15 + - + ( 68 ) * + + 80 / + 58 * 69 * + CAST( NULL AS SIGNED ) * + 88 * + 58 / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL - + AVG ( - 60 ) + 15 + - + ( 68 ) * + + 80 / + 58 * 69 * + CAST ( NULL AS INTEGER ) * + 88 * + 58 / + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + COUNT( * ) - - COUNT( * ) + - CASE + 12 WHEN + 22 THEN NULL ELSE CASE + - 37 WHEN - + 9 THEN + 13 WHEN - + 68 THEN - 71 END * + + 51 / + 14 END / - 72 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT + COUNT ( * ) - - COUNT ( * ) + - CASE + 12 WHEN + 22 THEN NULL ELSE CASE + - 37 WHEN - + 9 THEN + 13 WHEN - + 68 THEN - 71 END * + + 51 / + 14 END / - 72 * + 74
----
NULL

query II rowsort
SELECT + 96 AS col2, 74 AS col2
----
96
74

query II rowsort
SELECT 35, + 24 + - 10 + 23 * ( + - 80 ) + + + ( + 21 ) * + 51 AS col2
----
35
-755

query II rowsort
SELECT DISTINCT + 49, + 25 + + + 47 AS col2
----
49
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT + - COUNT( * ) - - 23
----
22

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT + - COUNT ( * ) - - 23
----
22

query I rowsort
SELECT DISTINCT 79 * - NULLIF ( - - 78, - 39 * + - 49 / - - 37 + 86 )
----
-6162

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT 71 * - - 84 AS col2, COUNT( * ) * + 35 * - 40 AS col2
----
5964
-1400

skipif mysql # not compatible
query II rowsort label-5087
SELECT 71 * - - 84 AS col2, COUNT ( * ) * + 35 * - 40 AS col2
----
5964
-1400

query I rowsort
SELECT 6 + + 17 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL - SUM( - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - SUM ( - 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT + 46 DIV - COUNT( * ) + 55 - + + 83 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5090
SELECT + 46 / - COUNT ( * ) + 55 - + + 83 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL - 71 * - - 88 * 12 + - CAST( NULL AS SIGNED ) + 6 + - + 20 + + 57 + - CASE - CAST( + - 8 AS SIGNED ) WHEN ( + - 26 ) THEN 24 * - 46 END / + - 74 + - + ( + 64 ) * - 94 * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - 71 * - - 88 * 12 + - CAST ( NULL AS INTEGER ) + 6 + - + 20 + + 57 + - CASE - CAST ( + - 8 AS INTEGER ) WHEN ( + - 26 ) THEN 24 * - 46 END / + - 74 + - + ( + 64 ) * - 94 * - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT 59 * + - 2 AS col1, COUNT( * )
----
-118
1

skipif mysql # not compatible
query II rowsort label-5092
SELECT 59 * + - 2 AS col1, COUNT ( * )
----
-118
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + MAX( DISTINCT 7 ) * - 93 - - 90 col2
----
-561

skipif mysql # not compatible
query I rowsort label-5093
SELECT + MAX ( DISTINCT 7 ) * - 93 - - 90 col2
----
-561

query I rowsort
SELECT - 80 + 56 * 90 * - 1 AS col2
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - MAX( + 17 ) * - ( - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5095
SELECT - MAX ( + 17 ) * - ( - COUNT ( * ) )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT DISTINCT + 21 * COUNT( * ) col1, ( 30 ) AS col0
----
21
30

skipif mysql # not compatible
query II rowsort label-5096
SELECT DISTINCT + 21 * COUNT ( * ) col1, ( 30 ) AS col0
----
21
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT 93 * + CAST( 66 AS SIGNED ) * CASE - - 55 WHEN 45 THEN ( + + MIN( DISTINCT 9 ) ) WHEN - 33 * - COUNT( * ) + + + 74 THEN NULL END + + MIN( - 37 ) * 36 + - COUNT( * ) - - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT 93 * + CAST ( 66 AS INTEGER ) * CASE - - 55 WHEN 45 THEN ( + + MIN ( DISTINCT 9 ) ) WHEN - 33 * - COUNT ( * ) + + + 74 THEN NULL END + + MIN ( - 37 ) * 36 + - COUNT ( * ) - - - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5098
SELECT ALL - + ( 10 ) + 37 + 33 * + COUNT( * ), CAST( - + 84 AS SIGNED ) col1
----
60
-84

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL - + ( 10 ) + 37 + 33 * + COUNT ( * ), CAST ( - + 84 AS INTEGER ) col1
----
60
-84

query I rowsort
SELECT DISTINCT - 49 * + COALESCE ( + - 25, - 76, + 32 ) * 95 * - ( 7 ) AS col1
----
-814625

query II rowsort
SELECT + 9 + - - 79 + - 75 * + 28 + + 11 AS col0, + ( - 83 ) col1
----
-2001
-83

query I rowsort
SELECT - 92 - - 90
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL - 5 * COUNT( * ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - 5 * COUNT ( * ) col0
----
-5

query I rowsort
SELECT - 66 * - + 87 + 83 AS col1
----
5825

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - - NULLIF ( - 77, 57 + 39 + + MAX( - 66 ) * - ( - - 98 ) - - + 3 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5104
SELECT - - NULLIF ( - 77, 57 + 39 + + MAX ( - 66 ) * - ( - - 98 ) - - + 3 ) AS col2
----
-77

query I rowsort
SELECT ALL + 44 * - 2
----
-88

query I rowsort
SELECT - + 75 + - ( 55 ) * + - ( - + 65 )
----
-3650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT DISTINCT + 89 * - - CAST( + 66 AS SIGNED ) AS col2
----
5874

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + 89 * - - CAST ( + 66 AS INTEGER ) AS col2
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT - 34 * COUNT( - - 17 )
----
-34

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT - 34 * COUNT ( - - 17 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - NULLIF ( - + 45, 1 * COUNT( * ) ) * 99
----
4455

skipif mysql # not compatible
query I rowsort label-5109
SELECT - NULLIF ( - + 45, 1 * COUNT ( * ) ) * 99
----
4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5110
SELECT 20, + NULLIF ( + + 48, + NULLIF ( + - 57, + CAST( - MIN( - 56 ) AS DECIMAL ) ) / - - AVG ( ALL - - 46 ) + 49 + - - CAST( - - 73 AS SIGNED ) * + + COUNT( * ) * + + 5 + CAST( NULL AS SIGNED ) ) AS col1
----
20
48

skipif mysql # not compatible
query II rowsort label-5110
SELECT 20, + NULLIF ( + + 48, + NULLIF ( + - 57, + CAST ( - MIN ( - 56 ) AS REAL ) ) / - - AVG ( ALL - - 46 ) + 49 + - - CAST ( - - 73 AS INTEGER ) * + + COUNT ( * ) * + + 5 + CAST ( NULL AS INTEGER ) ) AS col1
----
20
48

query I rowsort
SELECT + 85 * 67
----
5695

query I rowsort
SELECT + 61 + + - 48
----
13

query II rowsort
SELECT - 25 AS col0, - 8 + COALESCE ( - 68, + 75 + + 61 ) AS col2
----
-25
-76

query I rowsort
SELECT + 37 + + 19
----
56

query I rowsort
SELECT + 55 * 37
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL ( - COUNT( + COALESCE ( + 46, - 13 + 75 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL ( - COUNT ( + COALESCE ( + 46, - 13 + 75 ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL 13 * + 9 AS col2
----
117

query I rowsort
SELECT + 19 * + 76
----
1444

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT DISTINCT - 72 + + 50 + - 4 DIV ( + + 42 )
----
-22

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - 72 + + 50 + - 4 / ( + + 42 )
----
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5121
SELECT ALL + COALESCE ( + COALESCE ( 53, - + 61 + 21 + - COUNT( * ) - 85 DIV CASE + - 82 WHEN - 94 THEN NULL ELSE - 8 * + + ( + + 35 ) DIV + 28 + - 2 END * + - 95 DIV 88 * + 44 DIV COUNT( * ) ), + 3 ) DIV + 59 * 38 + + + 35, 51 + + + COALESCE ( - 26, + 36 ) - - - 0 + - 71 * 33 AS col1
----
35
-2318

skipif mysql # not compatible
query II rowsort label-5121
SELECT ALL + COALESCE ( + COALESCE ( 53, - + 61 + 21 + - COUNT ( * ) - 85 / CASE + - 82 WHEN - 94 THEN NULL ELSE - 8 * + + ( + + 35 ) / + 28 + - 2 END * + - 95 / 88 * + 44 / COUNT ( * ) ), + 3 ) / + 59 * 38 + + + 35, 51 + + + COALESCE ( - 26, + 36 ) - - - 0 + - 71 * 33 AS col1
----
35
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + CASE 43 WHEN + MAX( - 43 ) * 75 THEN + 26 WHEN - 67 + + COUNT( * ) + 6 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT + CASE 43 WHEN + MAX ( - 43 ) * 75 THEN + 26 WHEN - 67 + + COUNT ( * ) + 6 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT - COUNT( * ) AS col2, + COUNT( - - NULLIF ( 11, - - 4 ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5123
SELECT - COUNT ( * ) AS col2, + COUNT ( - - NULLIF ( 11, - - 4 ) ) AS col2
----
-1
1

query I rowsort
SELECT ALL - 92 * NULLIF ( 26, - 38 ) + + 86 + - + 2 + 85
----
-2223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT ALL + + 87 AS col2, NULLIF ( + 92, - - CAST( NULL AS SIGNED ) * 61 * 89 ) - - 9
----
87
101

skipif mysql # not compatible
query II rowsort label-5125
SELECT ALL + + 87 AS col2, NULLIF ( + 92, - - CAST ( NULL AS INTEGER ) * 61 * 89 ) - - 9
----
87
101

query I rowsort
SELECT + + 22 - 50
----
-28

query I rowsort
SELECT + 40 + + - 88
----
-48

query I rowsort
SELECT ALL - 99 * - 45 + 84
----
4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT ALL - - COUNT( * ) * - 20 + + 51 + 29 DIV + 41 + - 11 DIV - 67
----
31

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - - COUNT ( * ) * - 20 + + 51 + 29 / + 41 + - 11 / - 67
----
31

query I rowsort
SELECT - 67 * - + 59 AS col2
----
3953

query I rowsort
SELECT + + 70 * - 72 + - 53 AS col1
----
-5093

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

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

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

query I rowsort
SELECT - + 90 + 90 AS col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5136
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0, ( - - 68 ) + + 73
----
NULL
141

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, ( - - 68 ) + + 73
----
NULL
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + MIN( + 78 ) - - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT + MIN ( + 78 ) - - - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL CASE - MAX( - 66 ) WHEN + 49 THEN NULL WHEN - 55 THEN COUNT( * ) WHEN + + 84 THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL CASE - MAX ( - 66 ) WHEN + 49 THEN NULL WHEN - 55 THEN COUNT ( * ) WHEN + + 84 THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT - 55 DIV - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 55 / - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - 26 - - ( - 81 ) * + + ( 24 ) + + NULLIF ( - 1, + COUNT( * ) * + 8 + - 79 - + + MAX( DISTINCT - + 43 ) * 52 )
----
-1971

skipif mysql # not compatible
query I rowsort label-5141
SELECT - 26 - - ( - 81 ) * + + ( 24 ) + + NULLIF ( - 1, + COUNT ( * ) * + 8 + - 79 - + + MAX ( DISTINCT - + 43 ) * 52 )
----
-1971

query I rowsort
SELECT ALL NULLIF ( COALESCE ( 57, - ( + 12 ) + - 72 + - 96 + 38 * ( ( 51 ) ) * - 50 * + 97 ), 92 ) AS col0
----
57

query I rowsort
SELECT ALL + 58 + - 71 * 56 * + - 98 AS col0
----
389706

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

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 19 / - 55
----
0

query I rowsort
SELECT DISTINCT + 40 + + 1 col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT - 54 / - + CASE - + 48 WHEN - 25 THEN NULL WHEN COUNT( * ) THEN + - 90 / + CAST( NULL AS SIGNED ) * + 73 - - 97 * - - MAX( + 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT - 54 / - + CASE - + 48 WHEN - 25 THEN NULL WHEN COUNT ( * ) THEN + - 90 / + CAST ( NULL AS INTEGER ) * + 73 - - 97 * - - MAX ( + 67 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5147
SELECT ALL CAST( + 50 AS SIGNED ) AS col2, 75 AS col1
----
50
75

skipif mysql # not compatible
query II rowsort label-5147
SELECT ALL CAST ( + 50 AS INTEGER ) AS col2, 75 AS col1
----
50
75

query I rowsort
SELECT 99 + + COALESCE ( + 5, 99 ) AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 95 DIV 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 95 / 35 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL + COUNT( * ) + + 8 - - COUNT( * ) * CAST( 37 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + COUNT ( * ) + + 8 - - COUNT ( * ) * CAST ( 37 AS INTEGER ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5151
SELECT + CAST( 2 AS SIGNED ) AS col0, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5151
SELECT + CAST ( 2 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER )
----
2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5152
SELECT DISTINCT + CASE 60 WHEN + COUNT( ALL - 53 ) THEN + 50 DIV - + COALESCE ( - + 54, 34 ) WHEN + 46 * - ( - - 78 ) + ( + SUM( ALL 95 ) ) * + 21 + - - 45 THEN + 96 DIV 6 + + 8 * - 87 + + 71 ELSE + - 81 END * - 12
----
972

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + CASE 60 WHEN + COUNT ( ALL - 53 ) THEN + 50 / - + COALESCE ( - + 54, 34 ) WHEN + 46 * - ( - - 78 ) + ( + SUM ( ALL 95 ) ) * + 21 + - - 45 THEN + 96 / 6 + + 8 * - 87 + + 71 ELSE + - 81 END * - 12
----
972

query I rowsort
SELECT ALL + ( 38 ) - 96 * + 64 AS col2
----
-6106

query I rowsort
SELECT + 77 + + + 43 AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT DISTINCT + 38 * 63 DIV + NULLIF ( + - 43, - - 58 * - + 89 )
----
-55

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + 38 * 63 / + NULLIF ( + - 43, - - 58 * - + 89 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5156
SELECT ALL - + COALESCE ( - + 53, SUM( ALL - 92 ) * + COALESCE ( 86, - + 47 ) ) AS col0, 38 + + MIN( 66 ) DIV + 45 AS col2
----
53
39

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL - + COALESCE ( - + 53, SUM ( ALL - 92 ) * + COALESCE ( 86, - + 47 ) ) AS col0, 38 + + MIN ( 66 ) / + 45 AS col2
----
53
39

query I rowsort
SELECT 50 * - 27 AS col1
----
-1350

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT - 27 - - + 13 + - - COALESCE ( + 9, NULLIF ( 0, + + CASE 96 WHEN - 12 * - 20 THEN MIN( 64 ) WHEN 52 THEN NULL WHEN + - 83 - + - 5 THEN NULL ELSE - COUNT( * ) END ) DIV - 91 * + - NULLIF ( + 32, + + 10 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5159
SELECT - 27 - - + 13 + - - COALESCE ( + 9, NULLIF ( 0, + + CASE 96 WHEN - 12 * - 20 THEN MIN ( 64 ) WHEN 52 THEN NULL WHEN + - 83 - + - 5 THEN NULL ELSE - COUNT ( * ) END ) / - 91 * + - NULLIF ( + 32, + + 10 ) ) AS col1
----
-5

query II rowsort
SELECT NULLIF ( - 0, 90 ) * 26 * 94, 32 AS col2
----
0
32

query I rowsort
SELECT ALL - - NULLIF ( 92, - 74 / 35 )
----
92

query II rowsort
SELECT DISTINCT - ( - 61 ) AS col2, + 1
----
61
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5163
SELECT DISTINCT - ( - 36 ) * + COUNT( * ) * 97 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - ( - 36 ) * + COUNT ( * ) * 97 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5164
SELECT DISTINCT COUNT( * ) DIV - MAX( + 68 ) + + 61 + 74 + 96
----
231

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT COUNT ( * ) / - MAX ( + 68 ) + + 61 + 74 + 96
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + 76 - - + 79 * - ( - COUNT( * ) )
----
155

skipif mysql # not compatible
query I rowsort label-5165
SELECT + 76 - - + 79 * - ( - COUNT ( * ) )
----
155

query I rowsort
SELECT DISTINCT - 62 * - + 83 AS col0
----
5146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5167
SELECT 0 - + - CAST( - 7 AS SIGNED ) AS col2, 60 AS col2
----
-7
60

skipif mysql # not compatible
query II rowsort label-5167
SELECT 0 - + - CAST ( - 7 AS INTEGER ) AS col2, 60 AS col2
----
-7
60

query I rowsort
SELECT 74 + - 53
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL 90 + - COALESCE ( - 50, + SUM( ( - - 65 ) ) + + 10 ) col0
----
140

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 90 + - COALESCE ( - 50, + SUM ( ( - - 65 ) ) + + 10 ) col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT 49 + - CAST( ( - 49 ) AS SIGNED ) * + 21 + - 49 AS col2
----
1029

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT 49 + - CAST ( ( - 49 ) AS INTEGER ) * + 21 + - 49 AS col2
----
1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT ALL + NULLIF ( 16, - + 55 ) + CAST( NULL AS SIGNED ) / + - COUNT( * ) * - COUNT( * ) AS col0, - 24
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-5172
SELECT ALL + NULLIF ( 16, - + 55 ) + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * - COUNT ( * ) AS col0, - 24
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT 18 + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5173
SELECT 18 + COUNT ( * ) AS col2
----
19

query II rowsort
SELECT 83, + 92 * - 9 AS col0
----
83
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT CAST( - ( + SUM( 40 ) ) AS SIGNED ) * - - 49
----
-1960

skipif mysql # not compatible
query I rowsort label-5175
SELECT CAST ( - ( + SUM ( 40 ) ) AS INTEGER ) * - - 49
----
-1960

query I rowsort
SELECT 34 + - + 90
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + NULLIF ( - 42, + ( - 42 ) ) + + - ( 76 ) + - ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + NULLIF ( - 42, + ( - 42 ) ) + + - ( 76 ) + - ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - 55 + - COUNT( 12 )
----
-56

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - 55 + - COUNT ( 12 )
----
-56

query I rowsort
SELECT 24 * + 46 col2
----
1104

query I rowsort
SELECT ALL - 82 * 22 AS col0
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - MAX( - CASE 43 WHEN + 67 * + 22 THEN + 64 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - MAX ( - CASE 43 WHEN + 67 * + 22 THEN + 64 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT 46 DIV - 78 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-5182
SELECT 46 / - 78 + - 52
----
-52

query I rowsort
SELECT 40 * 8
----
320

query I rowsort
SELECT 75 + 39 * + 10 AS col0
----
465

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

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - 47 / COUNT ( * )
----
-47

query I rowsort
SELECT 49 * 58 AS col1
----
2842

query I rowsort
SELECT ALL - CASE - 97 WHEN - 59 * - 57 + + NULLIF ( 47, 70 ) THEN 76 * - 31 WHEN + 96 / 48 - 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + 50 * + 35 + SUM( - 27 )
----
1723

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 50 * + 35 + SUM ( - 27 )
----
1723

query I rowsort
SELECT DISTINCT 51 * + 50
----
2550

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

query I rowsort
SELECT DISTINCT + 75 * 17 AS col0
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( 58, - 62 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( 58, - 62 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT ( + COUNT( * ) ) * + CAST( 42 * MAX( DISTINCT 47 * 82 ) AS SIGNED )
----
161868

skipif mysql # not compatible
query I rowsort label-5193
SELECT ( + COUNT ( * ) ) * + CAST ( 42 * MAX ( DISTINCT 47 * 82 ) AS INTEGER )
----
161868

query I rowsort
SELECT ALL 50 * + 35
----
1750

query I rowsort
SELECT 64 * - 54
----
-3456

query I rowsort
SELECT 85 * 74 + 88 AS col2
----
6378

query I rowsort
SELECT ALL 44 + + 63 AS col0
----
107

query I rowsort
SELECT DISTINCT - COALESCE ( 5, - 54 )
----
-5

query I rowsort
SELECT ALL - 58 + - ( - 82 ) AS col2
----
24

query I rowsort
SELECT DISTINCT + 3 + 72 * + 86 AS col0
----
6195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT 38 DIV CASE - 34 WHEN AVG ( ALL 56 ) * + 98 THEN - ( 39 ) + + 47 WHEN 50 * - COUNT( * ) THEN NULL ELSE 99 * + 19 + - 52 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT 38 / CASE - 34 WHEN AVG ( ALL 56 ) * + 98 THEN - ( 39 ) + + 47 WHEN 50 * - COUNT ( * ) THEN NULL ELSE 99 * + 19 + - 52 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL CASE - COUNT( * ) WHEN - 6 THEN NULL WHEN CAST( 41 AS SIGNED ) THEN + NULLIF ( - 84, 26 ) * 39 END + COUNT( * ) * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL CASE - COUNT ( * ) WHEN - 6 THEN NULL WHEN CAST ( 41 AS INTEGER ) THEN + NULLIF ( - 84, 26 ) * 39 END + COUNT ( * ) * 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT 2 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 2 / 44
----
0

query I rowsort
SELECT + 92 * 25 - 77 * + 23 col1
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - CASE 87 WHEN + 5 THEN - 45 WHEN 28 THEN + 38 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - CASE 87 WHEN + 5 THEN - 45 WHEN 28 THEN + 38 * + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL 37 * + 65 AS col0
----
2405

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT + 48 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT + 48 / 92
----
0

query I rowsort
SELECT + 60 * - 43
----
-2580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT ALL CAST( NULL AS SIGNED ) + - CAST( 76 AS SIGNED ) * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL CAST ( NULL AS INTEGER ) + - CAST ( 76 AS INTEGER ) * + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL COUNT( DISTINCT 2 )
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL COUNT ( DISTINCT 2 )
----
1

query I rowsort
SELECT ALL 95 - + 4
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - COUNT( * ) * 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5214
SELECT - COUNT ( * ) * 39 AS col2
----
-39

query I rowsort
SELECT + - 74 + - 82
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - COUNT( * ) - - 11
----
10

skipif mysql # not compatible
query I rowsort label-5216
SELECT - COUNT ( * ) - - 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - COUNT( * ) - + 3 * COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5217
SELECT - COUNT ( * ) - + 3 * COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ALL - 88 * 54
----
-4752

query I rowsort
SELECT + 86 * - 21 AS col1
----
-1806

query I rowsort
SELECT ALL + + COALESCE ( 96, 53 + 2 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT + CASE 85 WHEN + 55 THEN - 36 WHEN + ( 85 ) / + CAST( COUNT( * ) * 67 AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT + CASE 85 WHEN + 55 THEN - 36 WHEN + ( 85 ) / + CAST ( COUNT ( * ) * 67 AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 33 + 70 AS col0
----
103

query I rowsort
SELECT - - 17 * ( - 83 )
----
-1411

query I rowsort
SELECT DISTINCT - - 86 * 38 AS col2
----
3268

query I rowsort
SELECT ALL 24 * 33 + 99 col1
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + + 42 * + 68 + SUM( ALL - 61 )
----
2795

skipif mysql # not compatible
query I rowsort label-5226
SELECT + + 42 * + 68 + SUM ( ALL - 61 )
----
2795

query I rowsort
SELECT - NULLIF ( 66, 57 ) * - 16 + - 64
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - CASE 48 WHEN + MAX( ALL 74 ) * 76 THEN NULL ELSE 63 + + SUM( 26 ) END * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5228
SELECT - CASE 48 WHEN + MAX ( ALL 74 ) * 76 THEN NULL ELSE 63 + + SUM ( 26 ) END * - COUNT ( * )
----
89

query I rowsort
SELECT - 2 * - 78
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT - 72 * - COALESCE ( + 77 - 55, 43, - 33 * + 53, + CAST( NULL AS SIGNED ) * + COUNT( * ) )
----
1584

skipif mysql # not compatible
query I rowsort label-5230
SELECT - 72 * - COALESCE ( + 77 - 55, 43, - 33 * + 53, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) )
----
1584

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT - 15 DIV - 32 - 63 * 72
----
-4536

skipif mysql # not compatible
query I rowsort label-5231
SELECT - 15 / - 32 - 63 * 72
----
-4536

query I rowsort
SELECT ALL 89 * - 85 + ( + 10 ) AS col1
----
-7555

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT 90 * + MAX( + 84 ) + - 62 * - 17
----
8614

skipif mysql # not compatible
query I rowsort label-5233
SELECT 90 * + MAX ( + 84 ) + - 62 * - 17
----
8614

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL + 28 * 90 + COUNT( * ) * 26
----
2546

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + 28 * 90 + COUNT ( * ) * 26
----
2546

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

query I rowsort
SELECT - 67 + + 43
----
-24

query I rowsort
SELECT + 73 - - - COALESCE ( - 3, 10 ) + 11
----
87

query I rowsort
SELECT + CASE + + 89 WHEN - ( 89 ) * - 93 THEN NULL ELSE 15 * 47 END AS col0
----
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT + 49 - + NULLIF ( 77, 30 + CASE - 11 WHEN ( - 15 ) * 64 - - 52 * 35 THEN 84 END * + CAST( + 51 AS SIGNED ) ) * - 79
----
6132

skipif mysql # not compatible
query I rowsort label-5239
SELECT + 49 - + NULLIF ( 77, 30 + CASE - 11 WHEN ( - 15 ) * 64 - - 52 * 35 THEN 84 END * + CAST ( + 51 AS INTEGER ) ) * - 79
----
6132

query I rowsort
SELECT + 25 + - 49
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( * ) - - 95
----
94

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - COUNT ( * ) - - 95
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + 89 + COUNT( * ) + - 41 * - 81 AS col2
----
3411

skipif mysql # not compatible
query I rowsort label-5243
SELECT + 89 + COUNT ( * ) + - 41 * - 81 AS col2
----
3411

query I rowsort
SELECT ALL - ( + NULLIF ( 97, 94 ) ) - 68 AS col1
----
-165

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT + 41 * + 60 DIV COUNT( * ) col1
----
2460

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 41 * + 60 / COUNT ( * ) col1
----
2460

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

skipif mysql # not compatible
query I rowsort label-5248
SELECT + 4 / + - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + + MIN( - 70 ) + 11
----
-59

skipif mysql # not compatible
query I rowsort label-5249
SELECT + + MIN ( - 70 ) + 11
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + - 87 * - MAX( DISTINCT 83 ) + - 0
----
7221

skipif mysql # not compatible
query I rowsort label-5250
SELECT + - 87 * - MAX ( DISTINCT 83 ) + - 0
----
7221

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT + 62 * 56 DIV + ( 1 )
----
3472

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 62 * 56 / + ( 1 )
----
3472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT + 31 + + SUM( + 59 ) + - 15 DIV - ( 85 * - 64 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5252
SELECT + 31 + + SUM ( + 59 ) + - 15 / - ( 85 * - 64 ) AS col2
----
90

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

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

query I rowsort
SELECT ALL NULLIF ( + 61, 50 + 59 ) * - 60 AS col0
----
-3660

query I rowsort
SELECT ALL - COALESCE ( 99, - 26, + 11 ) * 71 AS col2
----
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT + MAX( ALL 87 ) + 9
----
96

skipif mysql # not compatible
query I rowsort label-5256
SELECT + MAX ( ALL 87 ) + 9
----
96

query I rowsort
SELECT - + ( 11 ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT DISTINCT + MAX( DISTINCT + 32 ) * 12 AS col1
----
384

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + MAX ( DISTINCT + 32 ) * 12 AS col1
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ALL ( 4 ) DIV 63 + - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL ( 4 ) / 63 + - 40 * COUNT ( * )
----
-40

query I rowsort
SELECT + + 53 * + 5 - - 95 * - 50 AS col1
----
-4485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT - CASE WHEN 86 NOT IN ( + 44 ) THEN + COUNT( * ) ELSE NULL END DIV 10 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - CASE WHEN 86 NOT IN ( + 44 ) THEN + COUNT ( * ) ELSE NULL END / 10 + - 93
----
-93

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

query I rowsort
SELECT - + COALESCE ( 87, 51 + - 58 * 58 ) + 70 AS col0
----
-17

query I rowsort
SELECT DISTINCT - 83 * + 82 * 89 + 88 AS col0
----
-605646

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT ALL - 52 DIV + 70 + + 60 + 22
----
82

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - 52 / + 70 + + 60 + 22
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5266
SELECT - 88 * + - ( CASE - 89 WHEN 17 THEN 56 * CAST( NULL AS DECIMAL ) WHEN 5 + + 35 * - 19 THEN NULL END ) * 79 + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 88 * + - ( CASE - 89 WHEN 17 THEN 56 * CAST ( NULL AS REAL ) WHEN 5 + + 35 * - 19 THEN NULL END ) * 79 + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT ALL + ( - COUNT( * ) ) DIV ( - COUNT( + 97 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + ( - COUNT ( * ) ) / ( - COUNT ( + 97 ) ) AS col1
----
1

query I rowsort
SELECT - COALESCE ( 31, 1 ) + 42 * + 22
----
893

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL - SUM( ALL 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - SUM ( ALL 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT ( 46 ) DIV + + 30 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5271
SELECT ( 46 ) / + + 30 * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 59 * 46 + + 25 + 30 * 67
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL - COUNT( * ) - - 79
----
78

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - COUNT ( * ) - - 79
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT ALL + 68 DIV 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + 68 / 49 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5275
SELECT COUNT( * ) + - - NULLIF ( - - 77, - 21 * - 14 + + COUNT( * ) ) + SUM( + 61 + 37 DIV 33 ) * 34
----
2186

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) + - - NULLIF ( - - 77, - 21 * - 14 + + COUNT ( * ) ) + SUM ( + 61 + 37 / 33 ) * 34
----
2186

query I rowsort
SELECT DISTINCT 84 - + 24 + 71 AS col2
----
131

query I rowsort
SELECT DISTINCT - 78 * + + 8 AS col0
----
-624

query I rowsort
SELECT 14 - - + 14 * 1 AS col2
----
28

query I rowsort
SELECT 50 * - - ( - 51 ) AS col1
----
-2550

query II rowsort
SELECT - 95 AS col0, 25 AS col0
----
-95
25

query I rowsort
SELECT 33 + - ( - NULLIF ( - 30, 66 + + 51 * 43 ) )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT - NULLIF ( + 72, 93 ) + 71 DIV + 86 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5283
SELECT - NULLIF ( + 72, 93 ) + 71 / + 86 AS col2
----
-72

query II rowsort
SELECT - 4 AS col1, - 97 AS col2
----
-4
-97

query I rowsort
SELECT DISTINCT + 94 * - 70
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + ( - - 59 ) + + 58 + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + ( - - 59 ) + + 58 + - COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - 68 - - 24 * + 65 * - COUNT( * ) AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-5287
SELECT - 68 - - 24 * + 65 * - COUNT ( * ) AS col1
----
-1628

query I rowsort
SELECT - 77 * - 76
----
5852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT ALL - - COUNT( * ) + - MAX( 34 ) + - 15 DIV + 48 col0
----
-33

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - - COUNT ( * ) + - MAX ( 34 ) + - 15 / + 48 col0
----
-33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT + 44 DIV - ( 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-5291
SELECT + 44 / - ( 23 )
----
-1

query I rowsort
SELECT 29 + + + 82
----
111

query I rowsort
SELECT ( 37 ) * ( - 91 )
----
-3367

query I rowsort
SELECT CASE + 35 WHEN - 89 / 34 THEN NULL WHEN 88 / - 68 THEN - 18 + - 68 END
----
NULL

query I rowsort
SELECT ALL - 45 * + + 34 AS col1
----
-1530

query I rowsort
SELECT - NULLIF ( 16, - - 55 + 88 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - + MAX( - + 55 ) + + + 94
----
149

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - + MAX ( - + 55 ) + + + 94
----
149

query I rowsort
SELECT DISTINCT + + 27 * + + 27 * - 3
----
-2187

query I rowsort
SELECT ALL 24 * + 17 * 1 - + 94 AS col1
----
314

query I rowsort
SELECT - 93 * 50 * + 77 * 11 AS col2
----
-3938550

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

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 68 AS col0
----
68

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

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

query I rowsort
SELECT DISTINCT CASE 75 WHEN - 37 - - 87 + - 19 * ( + 14 + 30 ) THEN NULL WHEN 7 * + 14 + + 20 THEN NULL ELSE - 69 END * 30 AS col0
----
-2070

query I rowsort
SELECT ( + 70 ) * + 51
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + 64 * 7 * + 42 * - + MIN( - 41 )
----
771456

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + 64 * 7 * + 42 * - + MIN ( - 41 )
----
771456

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ( - 53 ) + + MAX( ALL - 13 )
----
-66

skipif mysql # not compatible
query I rowsort label-5307
SELECT ( - 53 ) + + MAX ( ALL - 13 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5308
SELECT DISTINCT COALESCE ( 39, CASE + CAST( NULL AS SIGNED ) WHEN 85 THEN NULL WHEN + 0 THEN SUM( 87 ) END, 88 * - 52 ) * - COALESCE ( 37 DIV 78, - 2 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT COALESCE ( 39, CASE + CAST ( NULL AS INTEGER ) WHEN 85 THEN NULL WHEN + 0 THEN SUM ( 87 ) END, 88 * - 52 ) * - COALESCE ( 37 / 78, - 2 ) AS col2
----
0

query II rowsort
SELECT ALL - ( - 41 ) AS col1, - 76
----
41
-76

query I rowsort
SELECT ALL ( + 48 ) * - 71 * + + 96
----
-327168

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ( + 24 ) + ( + - 5 ) + NULLIF ( + 34, 47 - - COUNT( * ) ) * + 88 AS col1
----
3011

skipif mysql # not compatible
query I rowsort label-5311
SELECT ( + 24 ) + ( + - 5 ) + NULLIF ( + 34, 47 - - COUNT ( * ) ) * + 88 AS col1
----
3011

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT 50 DIV + 7
----
7

skipif mysql # not compatible
query I rowsort label-5312
SELECT 50 / + 7
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT - 79 * - 19 + + - 21 + - - 20 DIV + 34 AS col1
----
1480

skipif mysql # not compatible
query I rowsort label-5313
SELECT - 79 * - 19 + + - 21 + - - 20 / + 34 AS col1
----
1480

query I rowsort
SELECT 69 + - 34 - + 61
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT - MIN( 65 ) AS col0, - NULLIF ( + - 39, + 62 / - 29 ) + 70 * 87
----
-65
6129

skipif mysql # not compatible
query II rowsort label-5315
SELECT - MIN ( 65 ) AS col0, - NULLIF ( + - 39, + 62 / - 29 ) + 70 * 87
----
-65
6129

query I rowsort
SELECT DISTINCT - 20 + + - 14
----
-34

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

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

query I rowsort
SELECT - 53 + + + 40 AS col0
----
-13

query I rowsort
SELECT ALL + 10 * + 61 + 49
----
659

query I rowsort
SELECT 65 + + CASE - + 90 WHEN 21 THEN NULL WHEN + 13 THEN - 60 WHEN 74 THEN NULL END * + 74
----
NULL

query I rowsort
SELECT ALL - 40 + - NULLIF ( + 58, + + NULLIF ( 94, 56 ) + 27 ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5322
SELECT MIN( ALL 41 ) AS col1, - 40 * ( 67 ) + 49 DIV - 13 AS col0
----
41
-2683

skipif mysql # not compatible
query II rowsort label-5322
SELECT MIN ( ALL 41 ) AS col1, - 40 * ( 67 ) + 49 / - 13 AS col0
----
41
-2683

query I rowsort
SELECT 98 * 50
----
4900

query I rowsort
SELECT + 2 + + 36 + + + 14
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + ( + + 77 ) * - - MIN( ALL + - 85 )
----
-6545

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + ( + + 77 ) * - - MIN ( ALL + - 85 )
----
-6545

query I rowsort
SELECT - 42 + - + ( 85 )
----
-127

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT + - 67 * + COUNT( DISTINCT 34 ) + - 47 + 14 * + 82 AS col1
----
1034

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + - 67 * + COUNT ( DISTINCT 34 ) + - 47 + 14 * + 82 AS col1
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - ( - SUM( 18 ) ) + ( + 52 )
----
70

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - ( - SUM ( 18 ) ) + ( + 52 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT - 47 + + CAST( 14 AS SIGNED ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - 47 + + CAST ( 14 AS INTEGER ) col2
----
-33

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

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

query I rowsort
SELECT ALL 13 + - 35
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT CAST( + ( COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT + 91 + - 75, 43 AS col0
----
16
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT - 97 - + + COUNT( * ) + COALESCE ( - 11, + COALESCE ( + CASE - ( 51 ) WHEN - 33 THEN 78 WHEN + COUNT( DISTINCT + 48 ) - 10 THEN NULL ELSE NULL END, 87 * 63 ) )
----
-109

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 97 - + + COUNT ( * ) + COALESCE ( - 11, + COALESCE ( + CASE - ( 51 ) WHEN - 33 THEN 78 WHEN + COUNT ( DISTINCT + 48 ) - 10 THEN NULL ELSE NULL END, 87 * 63 ) )
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT ALL + 33 DIV + CASE WHEN NOT COUNT( * ) IS NULL THEN 70 END
----
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + 33 / + CASE WHEN NOT COUNT ( * ) IS NULL THEN 70 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT COALESCE ( + + 8, - ( + 16 ), COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5337
SELECT COALESCE ( + + 8, - ( + 16 ), COUNT ( * ) ) AS col1
----
8

query I rowsort
SELECT + 32 * + 34
----
1088

query I rowsort
SELECT ALL 38 * + - 52
----
-1976

query I rowsort
SELECT NULLIF ( + 85, - 37 * + 32 )
----
85

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

query I rowsort
SELECT + 8 * - 56 * + 45
----
-20160

query I rowsort
SELECT DISTINCT 73 * + + 32
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT - 51 * - + COUNT( * ) + - + 39 AS col0, + 55 col0
----
12
55

skipif mysql # not compatible
query II rowsort label-5344
SELECT - 51 * - + COUNT ( * ) + - + 39 AS col0, + 55 col0
----
12
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5345
SELECT 96 DIV - + COUNT( * ) + + COUNT( * ) AS col2, 21 AS col2
----
-95
21

skipif mysql # not compatible
query II rowsort label-5345
SELECT 96 / - + COUNT ( * ) + + COUNT ( * ) AS col2, 21 AS col2
----
-95
21

query I rowsort
SELECT + 72 * 93 AS col0
----
6696

query I rowsort
SELECT ALL + NULLIF ( + - 44, - + 88 + - + 26 ) * 87 AS col1
----
-3828

query II rowsort
SELECT ALL + 8 AS col0, - 7 - 10 AS col1
----
8
-17

query I rowsort
SELECT + ( + 98 ) * 6 + 85 + 43 + 18
----
734

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT MAX( 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5351
SELECT MAX ( 37 ) AS col0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5352
SELECT 33 * CAST( NULL AS DECIMAL ) * + ( - 13 ) + - 21 / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT 33 * CAST ( NULL AS REAL ) * + ( - 13 ) + - 21 / 34
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5354
SELECT + CASE + + 17 WHEN - 45 + - + CAST( - 65 AS DECIMAL ) THEN - 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + CASE + + 17 WHEN - 45 + - + CAST ( - 65 AS REAL ) THEN - 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + COALESCE ( 86, 26, - + 70 - + 1 + - 93 * COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-5355
SELECT + COALESCE ( 86, 26, - + 70 - + 1 + - 93 * COUNT ( * ) )
----
86

query I rowsort
SELECT ALL + 66 * + 47 + + - 66 * 41 AS col0
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL 11 DIV - - 20
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 11 / - - 20
----
0

query I rowsort
SELECT DISTINCT 16 + + 74
----
90

query II rowsort
SELECT ALL + 44 + 72 * - + 27, + 42 AS col0
----
-1900
42

query I rowsort
SELECT ALL - 69 + + 36 * - 46 * - 45
----
74451

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + + 89 + + 92 / CASE 88 WHEN 11 THEN - MAX( DISTINCT - 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT + + 89 + + 92 / CASE 88 WHEN 11 THEN - MAX ( DISTINCT - 87 ) END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + COUNT( * ) + + - 19 - - + ( + + 86 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5364
SELECT + COUNT ( * ) + + - 19 - - + ( + + 86 ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT - - 48 - + - COALESCE ( 7, 29 DIV 67 + + 9, - 96 * 47 ) col1
----
55

skipif mysql # not compatible
query I rowsort label-5365
SELECT - - 48 - + - COALESCE ( 7, 29 / 67 + + 9, - 96 * 47 ) col1
----
55

query I rowsort
SELECT ALL + NULLIF ( - 42, - CASE - 26 WHEN + - 3 THEN NULL ELSE - 65 + 71 END )
----
-42

query I rowsort
SELECT - + ( + 22 ) + + + 29 + - 98
----
-91

query I rowsort
SELECT ALL - 68 - + - 35
----
-33

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

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

query I rowsort
SELECT - - 99 + - 11
----
88

query I rowsort
SELECT + + 88 + 30 + 32 * - + 82
----
-2506

query I rowsort
SELECT - 9 - + 58
----
-67

query II rowsort
SELECT - 20 * 14 AS col0, 49 AS col2
----
-280
49

query II rowsort
SELECT + 60, - 46 - 91 * + 92 AS col1
----
60
-8418

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - MAX( ALL 7 ) * - 28
----
196

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - MAX ( ALL 7 ) * - 28
----
196

query I rowsort
SELECT - 78 + 52 + + 55
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT ALL - 49 DIV - 65 + 69 + 69 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - 49 / - 65 + 69 + 69 AS col2
----
138

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

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

query I rowsort
SELECT + 60 * - + ( - 60 ) * 41 * 20 * + 62 + ( 72 ) AS col0
----
183024072

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT - 34 DIV + 25 + - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-5380
SELECT - 34 / + 25 + - + 10
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - 7 + - ( - - 77 ) + - COUNT( * ) + - 1 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5382
SELECT - 7 + - ( - - 77 ) + - COUNT ( * ) + - 1 AS col2
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5383
SELECT - 24 + 58 * ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 24 + 58 * ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT - 29 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - 29 / - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT - 39 * 38 * - ( - CASE 25 WHEN 7 * 2 + + 24 THEN 21 END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - 39 * 38 * - ( - CASE 25 WHEN 7 * 2 + + 24 THEN 21 END ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL 2 * 10 + - - 15 - - ( - - 19 ) - - + COUNT( + 69 ) * - 46
----
8

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL 2 * 10 + - - 15 - - ( - - 19 ) - - + COUNT ( + 69 ) * - 46
----
8

query I rowsort
SELECT DISTINCT - 15 * + - ( + ( 34 ) ) * 21 + - + 56
----
10654

query I rowsort
SELECT - ( - 94 ) + + 86 * 40 AS col1
----
3534

query II rowsort
SELECT + 71 + - - 99 AS col2, + ( 51 ) + 56
----
170
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5390
SELECT ALL + 38, CAST( - + MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 17 * + 54 + 6 AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5390
SELECT ALL + 38, CAST ( - + MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 17 * + 54 + 6 AS col2
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + - 27 * - 19 + - - COUNT( * ) * + 39
----
552

skipif mysql # not compatible
query I rowsort label-5391
SELECT + - 27 * - 19 + - - COUNT ( * ) * + 39
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT + + 52 + + 31 - 68 DIV 18 * - COUNT( * ) + - COUNT( * ) + MIN( + 60 ) * + 15
----
985

skipif mysql # not compatible
query I rowsort label-5392
SELECT + + 52 + + 31 - 68 / 18 * - COUNT ( * ) + - COUNT ( * ) + MIN ( + 60 ) * + 15
----
985

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

query I rowsort
SELECT ALL - NULLIF ( - 11, - + 34 ) AS col2
----
11

query I rowsort
SELECT + - 77 + + 32 AS col2
----
-45

query I rowsort
SELECT ALL 90 * + - 75 AS col2
----
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT COUNT( * ) * - + 60 * + + 80 AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT COUNT ( * ) * - + 60 * + + 80 AS col1
----
-4800

query I rowsort
SELECT ALL ( 96 ) - + 35
----
61

query I rowsort
SELECT DISTINCT + 39 * - 31 * 91 AS col0
----
-110019

query I rowsort
SELECT 97 + - + 40 - 95 AS col1
----
-38

query II rowsort
SELECT DISTINCT + 32 AS col1, 41 AS col2
----
32
41

query II rowsort
SELECT - 25 AS col2, - 43 * - 50 AS col2
----
-25
2150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT - 14 + + 94 + + 86 * - CAST( - CAST( 68 AS SIGNED ) AS SIGNED ) * 12 + 2 AS col2
----
70258

skipif mysql # not compatible
query I rowsort label-5403
SELECT - 14 + + 94 + + 86 * - CAST ( - CAST ( 68 AS INTEGER ) AS INTEGER ) * 12 + 2 AS col2
----
70258

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + 45 * + 0 * - COUNT( * ) * - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + 45 * + 0 * - COUNT ( * ) * - 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + NULLIF ( + 71, + + 11 DIV + ( 29 ) - 88 - 70 ) DIV - NULLIF ( + 62 * 97, + COUNT( * ) * + CAST( NULL AS DECIMAL ) - COALESCE ( 28 + - 81, 25 * + 17, ( 52 ) ) DIV ( 76 + 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + NULLIF ( + 71, + + 11 / + ( 29 ) - 88 - 70 ) / - NULLIF ( + 62 * 97, + COUNT ( * ) * + CAST ( NULL AS REAL ) - COALESCE ( 28 + - 81, 25 * + 17, ( 52 ) ) / ( 76 + 90 ) )
----
0

query I rowsort
SELECT 24 + 17 + - - 36 * - 22 AS col0
----
-751

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

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

query I rowsort
SELECT 34 + 37 - - + 21 * - 82 AS col0
----
-1651

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + NULLIF ( + - 96, + 14 ) + COUNT( * ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + NULLIF ( + - 96, + 14 ) + COUNT ( * ) col1
----
-95

query II rowsort
SELECT DISTINCT - 51 + + 20 AS col1, + 65 * 67 AS col2
----
-31
4355

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

skipif mysql # not compatible
query I rowsort label-5411
SELECT 34 * - CAST ( NULL AS INTEGER ) * - + 18
----
NULL

query I rowsort
SELECT 69 + + + 89 + - 7
----
151

query I rowsort
SELECT ALL ( + 49 ) + - - 18 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - 15 + - SUM( ALL + + 83 ) * + 88 AS col0
----
-7319

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 15 + - SUM ( ALL + + 83 ) * + 88 AS col0
----
-7319

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

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - CAST ( NULL AS REAL ) * + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - 33 + 82 + - - MIN( + ( + 25 ) )
----
74

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - 33 + 82 + - - MIN ( + ( + 25 ) )
----
74

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

query I rowsort
SELECT 49 * + - 41 * - 11 AS col2
----
22099

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT DISTINCT + + 60 - + SUM( - 69 ) col2, + COUNT( * ) + 63
----
129
64

skipif mysql # not compatible
query II rowsort label-5419
SELECT DISTINCT + + 60 - + SUM ( - 69 ) col2, + COUNT ( * ) + 63
----
129
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT 93 / + MAX( DISTINCT - CASE + 96 WHEN - 52 THEN - - 69 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT 93 / + MAX ( DISTINCT - CASE + 96 WHEN - 52 THEN - - 69 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT ALL + 62 - CAST( NULL AS SIGNED ) + + - AVG ( - ( - CASE 52 WHEN + CASE 8 WHEN + 99 THEN + 74 * CAST( NULL AS SIGNED ) ELSE NULL END THEN 29 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + 62 - CAST ( NULL AS INTEGER ) + + - AVG ( - ( - CASE 52 WHEN + CASE 8 WHEN + 99 THEN + 74 * CAST ( NULL AS INTEGER ) ELSE NULL END THEN 29 END ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT CASE + 3 WHEN + ( - 78 ) THEN NULL WHEN 69 - 63 THEN NULL WHEN + COUNT( * ) * - 56 + - 66 THEN + 37 * COUNT( 6 * 15 ) ELSE NULL END * + CAST( - 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT CASE + 3 WHEN + ( - 78 ) THEN NULL WHEN 69 - 63 THEN NULL WHEN + COUNT ( * ) * - 56 + - 66 THEN + 37 * COUNT ( 6 * 15 ) ELSE NULL END * + CAST ( - 27 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT DISTINCT + - MIN( ALL - - 25 ) / - CAST( NULL AS SIGNED ) + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + - MIN ( ALL - - 25 ) / - CAST ( NULL AS INTEGER ) + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT ALL - ( 73 ), 38 + + - MIN( ALL + 79 ) AS col1
----
-73
-41

skipif mysql # not compatible
query II rowsort label-5424
SELECT ALL - ( 73 ), 38 + + - MIN ( ALL + 79 ) AS col1
----
-73
-41

query I rowsort
SELECT - 21 * - ( + + NULLIF ( + 15, - 50 ) )
----
315

query I rowsort
SELECT ALL + - 18 - 23 + + 67 AS col2
----
26

query II rowsort
SELECT ALL - 26 * 32, - 22 AS col1
----
-832
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COALESCE ( - 50, - - NULLIF ( 88, COUNT( DISTINCT 57 ) + 11 + - COALESCE ( + 19, 87, ( 7 ) / - 30 ) ) * + 18, - 20 )
----
-50

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COALESCE ( - 50, - - NULLIF ( 88, COUNT ( DISTINCT 57 ) + 11 + - COALESCE ( + 19, 87, ( 7 ) / - 30 ) ) * + 18, - 20 )
----
-50

query I rowsort
SELECT DISTINCT - + 6 * + + 1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT 98 + - 0 + + ( - CASE + - CAST( NULL AS SIGNED ) WHEN + 8 + 41 + 58 * 96 THEN COUNT( * ) + 33 END ) + + 22 * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT 98 + - 0 + + ( - CASE + - CAST ( NULL AS INTEGER ) WHEN + 8 + 41 + 58 * 96 THEN COUNT ( * ) + 33 END ) + + 22 * - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + COUNT( * ) + + 57 * + 90
----
5131

skipif mysql # not compatible
query I rowsort label-5431
SELECT + COUNT ( * ) + + 57 * + 90
----
5131

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT + COUNT( DISTINCT - 3 ), ( + 48 ) * 17 AS col0
----
1
816

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT + COUNT ( DISTINCT - 3 ), ( + 48 ) * 17 AS col0
----
1
816

query I rowsort
SELECT ALL 90 * - 34 * + + 48 AS col2
----
-146880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT COALESCE ( + ( 80 ), + 7 + + + 86 ) + 61 + - CAST( NULL AS SIGNED ) + - 48 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT COALESCE ( + ( 80 ), + 7 + + + 86 ) + 61 + - CAST ( NULL AS INTEGER ) + - 48 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL MIN( + 14 ) * + COUNT( * ) / CASE + 74 WHEN + 44 / - NULLIF ( ( + 4 ), 97 ) THEN COUNT( ALL - ( 86 ) ) WHEN + CASE WHEN + 57 IS NOT NULL THEN NULL ELSE 8 + 13 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL MIN ( + 14 ) * + COUNT ( * ) / CASE + 74 WHEN + 44 / - NULLIF ( ( + 4 ), 97 ) THEN COUNT ( ALL - ( 86 ) ) WHEN + CASE WHEN + 57 IS NOT NULL THEN NULL ELSE 8 + 13 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5436
SELECT DISTINCT 9 AS col2, COUNT( * ) DIV COUNT( * ) col2
----
9
1

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

query I rowsort
SELECT 18 + - 39 col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5438
SELECT DISTINCT ( - - 82 ) + - COUNT( * ), - ( + - COUNT( * ) ) DIV 2 DIV - ( - COUNT( * ) ) + - 72 AS col2
----
81
-72

skipif mysql # not compatible
query II rowsort label-5438
SELECT DISTINCT ( - - 82 ) + - COUNT ( * ), - ( + - COUNT ( * ) ) / 2 / - ( - COUNT ( * ) ) + - 72 AS col2
----
81
-72

query I rowsort
SELECT NULLIF ( + 1, - 72 ) + + - ( + + 46 ) AS col0
----
-45

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

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

query I rowsort
SELECT DISTINCT 43 + 75
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT DISTINCT CASE - 59 WHEN + 50 THEN 74 + + COALESCE ( - - 46, + - 62 ) WHEN 21 + ( - MIN( - 36 ) ) THEN 98 + - CAST( 89 + + ( + 96 ) AS SIGNED ) END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT CASE - 59 WHEN + 50 THEN 74 + + COALESCE ( - - 46, + - 62 ) WHEN 21 + ( - MIN ( - 36 ) ) THEN 98 + - CAST ( 89 + + ( + 96 ) AS INTEGER ) END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT ( 55 ) + - 34 DIV - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT ( 55 ) + - 34 / - + COUNT ( * )
----
89

query I rowsort
SELECT ( ( - 1 ) ) * - - 86 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT ALL + 74 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + 74 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL - 67 * + 21 + COUNT( * ) * ( - 82 )
----
-1489

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL - 67 * + 21 + COUNT ( * ) * ( - 82 )
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT 0 * - 40 + - COUNT( * ) + - + 40 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT 0 * - 40 + - COUNT ( * ) + - + 40 AS col1
----
-41

query I rowsort
SELECT ( - 48 ) * 51
----
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5449
SELECT CAST( NULL AS SIGNED ) + + 77 * + 37, 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-5449
SELECT CAST ( NULL AS INTEGER ) + + 77 * + 37, 10 AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL 70 * COUNT( * ) - - 77 + COUNT( + + 9 ) + - - 20 * + 0 + 81 * 41
----
3469

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL 70 * COUNT ( * ) - - 77 + COUNT ( + + 9 ) + - - 20 * + 0 + 81 * 41
----
3469

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5451
SELECT + 13, - CAST( NULL AS SIGNED ) * 99 / - - 7 AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5451
SELECT + 13, - CAST ( NULL AS INTEGER ) * 99 / - - 7 AS col2
----
13
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT DISTINCT - - 62 col0, 64 * CASE + ( - 3 ) WHEN - - NULLIF ( - - 43, + 73 ) THEN NULL WHEN - 1 + MAX( 40 ) THEN NULL ELSE 60 * - ( 50 ) END * - ( + 40 )
----
62
7680000

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT - - 62 col0, 64 * CASE + ( - 3 ) WHEN - - NULLIF ( - - 43, + 73 ) THEN NULL WHEN - 1 + MAX ( 40 ) THEN NULL ELSE 60 * - ( 50 ) END * - ( + 40 )
----
62
7680000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5453
SELECT DISTINCT - + 71 AS col2, 48 + - 56 - - + 7 * - CAST( + 76 AS SIGNED ) AS col0
----
-71
-540

skipif mysql # not compatible
query II rowsort label-5453
SELECT DISTINCT - + 71 AS col2, 48 + - 56 - - + 7 * - CAST ( + 76 AS INTEGER ) AS col0
----
-71
-540

query II rowsort
SELECT DISTINCT - ( - 71 ) * - 53 AS col2, 41
----
-3763
41

query I rowsort
SELECT ALL + 72 * 7
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT - - ( + 31 ) * CASE + 20 WHEN + 32 / - - 79 * - + 12 + 15 + 93 * - 64 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 12 * - 6 WHEN - 98 THEN NULL ELSE NULL END + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT - - ( + 31 ) * CASE + 20 WHEN + 32 / - - 79 * - + 12 + 15 + 93 * - 64 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 12 * - 6 WHEN - 98 THEN NULL ELSE NULL END + 54 AS col1
----
NULL

query II rowsort
SELECT - + 44 * + - ( + - 42 ), 97 AS col1
----
-1848
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT + NULLIF ( + 10, COALESCE ( 96, AVG ( - ( + 53 ) ) ) * + MAX( + CAST( NULL AS SIGNED ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5458
SELECT + NULLIF ( + 10, COALESCE ( 96, AVG ( - ( + 53 ) ) ) * + MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
10

query II rowsort
SELECT ALL + NULLIF ( + ( - 58 ), - 49 ) AS col2, 9 AS col2
----
-58
9

query I rowsort
SELECT - + 95 + - + 9 * 2 AS col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT ALL + 89 DIV + + NULLIF ( - 94, 57 + - 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + 89 / + + NULLIF ( - 94, 57 + - 67 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT - NULLIF ( - + COUNT( * ), - - 68 ), + SUM( + - 40 ) AS col1
----
1
-40

skipif mysql # not compatible
query II rowsort label-5462
SELECT - NULLIF ( - + COUNT ( * ), - - 68 ), + SUM ( + - 40 ) AS col1
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + - NULLIF ( - + 75, + COUNT( * ) ) + + 21 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5463
SELECT + - NULLIF ( - + 75, + COUNT ( * ) ) + + 21 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT + - COUNT( * ) * 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + - COUNT ( * ) * 31 col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT - + 51 DIV 10 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5465
SELECT - + 51 / 10 AS col2
----
-5

query I rowsort
SELECT ALL + - NULLIF ( - - 54, 74 ) + 59 * + 66 AS col0
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT ( - + NULLIF ( - + CAST( - 15 AS SIGNED ), + 17 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT ( - + NULLIF ( - + CAST ( - 15 AS INTEGER ), + 17 ) ) AS col2
----
-15

query I rowsort
SELECT ALL - ( - - 72 ) * - 8 * 90
----
51840

query II rowsort
SELECT - 49 + 24 - 39 AS col0, 32
----
-64
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT + + 49 * CAST( - 2 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + + 49 * CAST ( - 2 AS INTEGER )
----
-98

query I rowsort
SELECT - 62 + + 69 - - - 89 * 62 - + + 62
----
-5573

query I rowsort
SELECT DISTINCT + 59 * - 9 AS col2
----
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - ( + COUNT( * ) ) + - - 63
----
62

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - ( + COUNT ( * ) ) + - - 63
----
62

query I rowsort
SELECT - 55 + 20 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5475
SELECT DISTINCT ( + + 41 ) + - - 41 * 75 DIV + CAST( - 26 AS SIGNED ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT ( + + 41 ) + - - 41 * 75 / + CAST ( - 26 AS INTEGER ) col1
----
-77

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

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

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

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 19 + - COUNT ( ALL 15 ) AS col2
----
18

query I rowsort
SELECT + 1 + 66
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT - 70 + - COUNT( + 35 )
----
-71

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - 70 + - COUNT ( + 35 )
----
-71

query II rowsort
SELECT ALL ( 91 ) col1, 64
----
91
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT SUM( DISTINCT + 32 ) - - 0
----
32

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT SUM ( DISTINCT + 32 ) - - 0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT 1 * - + 71 AS col1, - 73 * 69 - + COUNT( * ) - - - 35 col1
----
-71
-5073

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT 1 * - + 71 AS col1, - 73 * 69 - + COUNT ( * ) - - - 35 col1
----
-71
-5073

query I rowsort
SELECT DISTINCT 18 - - + 17 * 27 AS col0
----
477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT - COALESCE ( - - 38, + SUM( ALL - 81 ) DIV + 87 - 78 ) - - 50
----
12

skipif mysql # not compatible
query I rowsort label-5484
SELECT - COALESCE ( - - 38, + SUM ( ALL - 81 ) / + 87 - 78 ) - - 50
----
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT + 21 DIV + + 30 + + + 82
----
82

skipif mysql # not compatible
query I rowsort label-5486
SELECT + 21 / + + 30 + + + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + MIN( DISTINCT ( + - 64 ) ) * - 14 col0
----
896

skipif mysql # not compatible
query I rowsort label-5487
SELECT + MIN ( DISTINCT ( + - 64 ) ) * - 14 col0
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT ALL CAST( - 55 AS SIGNED ) * CAST( - + ( 88 ) AS SIGNED ) * + - 57 * - 51 + - - 27 - 62
----
14069845

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL CAST ( - 55 AS INTEGER ) * CAST ( - + ( 88 ) AS INTEGER ) * + - 57 * - 51 + - - 27 - 62
----
14069845

query I rowsort
SELECT DISTINCT 55 * + 71 * - + 86 AS col0
----
-335830

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

query II rowsort
SELECT ALL + - ( + 16 ) AS col2, - 40
----
-16
-40

query I rowsort
SELECT + - 90 * + - CASE + ( - 47 ) WHEN + 7 * + 39 THEN NULL WHEN + + 85 THEN - 4 WHEN - 53 * 86 + + 0 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT + + COUNT( * ) * - 91 + - 74 + + - COALESCE ( - 27, + 36 - - - 82 - CAST( NULL AS SIGNED ) + - + 30 * + 90 ) AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-5493
SELECT + + COUNT ( * ) * - 91 + - 74 + + - COALESCE ( - 27, + 36 - - - 82 - CAST ( NULL AS INTEGER ) + - + 30 * + 90 ) AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + NULLIF ( 54, + - 22 + - COALESCE ( 96, - 63 * - ( + - 50 ) ) * + CASE 17 WHEN - MAX( - 64 ) THEN 34 END ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5494
SELECT + NULLIF ( 54, + - 22 + - COALESCE ( 96, - 63 * - ( + - 50 ) ) * + CASE 17 WHEN - MAX ( - 64 ) THEN 34 END ) AS col0
----
54

query I rowsort
SELECT ALL + - 88 * - 2 - - 15
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT + CAST( + 41 AS SIGNED ) * + 60
----
2460

skipif mysql # not compatible
query I rowsort label-5496
SELECT + CAST ( + 41 AS INTEGER ) * + 60
----
2460

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT DISTINCT - 51 * - COUNT( * ) + - 46 + - 80 AS col1, COALESCE ( + 79, + + 5 - - 32 + + + 66 * 3 ) * - 47 AS col1
----
-75
-3713

skipif mysql # not compatible
query II rowsort label-5497
SELECT DISTINCT - 51 * - COUNT ( * ) + - 46 + - 80 AS col1, COALESCE ( + 79, + + 5 - - 32 + + + 66 * 3 ) * - 47 AS col1
----
-75
-3713

query I rowsort
SELECT ALL + + 17 * 89 * 76 + + 69
----
115057

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + 67 * - + 52 - + COUNT( DISTINCT 31 ) + + CASE MAX( ALL + + 12 ) WHEN - - 15 THEN NULL WHEN - COALESCE ( 42, COALESCE ( 73, 92 / - 70, 15 - 51 ) ) THEN 50 ELSE 68 END * + 3 AS col2
----
-3281

skipif mysql # not compatible
query I rowsort label-5499
SELECT + 67 * - + 52 - + COUNT ( DISTINCT 31 ) + + CASE MAX ( ALL + + 12 ) WHEN - - 15 THEN NULL WHEN - COALESCE ( 42, COALESCE ( 73, 92 / - 70, 15 - 51 ) ) THEN 50 ELSE 68 END * + 3 AS col2
----
-3281

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL + + 18 * COUNT( * ) * + - 22 + - 1 * + 44 + 54
----
-386

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + + 18 * COUNT ( * ) * + - 22 + - 1 * + 44 + 54
----
-386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT - - ( + + ( COALESCE ( + 87, + - 84 + + MIN( DISTINCT 4 ) ) ) ) DIV + 95 - + 67 + - 80 * - 21
----
1613

skipif mysql # not compatible
query I rowsort label-5501
SELECT - - ( + + ( COALESCE ( + 87, + - 84 + + MIN ( DISTINCT 4 ) ) ) ) / + 95 - + 67 + - 80 * - 21
----
1613

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT 82 * - 20 + 28 + - 3 + 2 DIV - 46
----
-1615

skipif mysql # not compatible
query I rowsort label-5502
SELECT 82 * - 20 + 28 + - 3 + 2 / - 46
----
-1615

query I rowsort
SELECT - 14 + 5
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - SUM( 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5504
SELECT - SUM ( 89 ) AS col1
----
-89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT - 96 * - MAX( ALL + + 24 ) AS col2, 64 * - 49
----
2304
-3136

skipif mysql # not compatible
query II rowsort label-5506
SELECT - 96 * - MAX ( ALL + + 24 ) AS col2, 64 * - 49
----
2304
-3136

query I rowsort
SELECT - 8 * + 26 AS col2
----
-208

query I rowsort
SELECT ALL + 19 + 34 - - + 29
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5509
SELECT - 69 AS col2, - 10 + + 93 + + - 70 DIV - - 98
----
-69
83

skipif mysql # not compatible
query II rowsort label-5509
SELECT - 69 AS col2, - 10 + + 93 + + - 70 / - - 98
----
-69
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT - 60 + + - CASE + 4 WHEN - - 34 - + - 87 THEN - + 26 WHEN - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT - 60 + + - CASE + 4 WHEN - - 34 - + - 87 THEN - + 26 WHEN - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - ( + 83 ) * - - 2 AS col0
----
-166

query I rowsort
SELECT ALL - 74 * 96 * - 3 * 91
----
1939392

query I rowsort
SELECT ALL + 11 * + 57
----
627

query I rowsort
SELECT - 24 + - ( - ( - 39 ) )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5515
SELECT - COALESCE ( - 47, + 71 + - 98, - - 96 DIV - + COUNT( * ) - - 22 + + 40 * - - 76 + - MIN( 50 ) * 91 ) + - 56
----
-9

skipif mysql # not compatible
query I rowsort label-5515
SELECT - COALESCE ( - 47, + 71 + - 98, - - 96 / - + COUNT ( * ) - - 22 + + 40 * - - 76 + - MIN ( 50 ) * 91 ) + - 56
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT + CAST( NULL AS SIGNED ) - + CASE - 68 WHEN - 27 * + + 5 + + COUNT( DISTINCT NULLIF ( - - 12, + 73 * + 14 / 84 + 24 + 32 ) ) * + 75 THEN - CASE + COUNT( * ) WHEN - 89 - ( 37 + - 5 ) * 84 THEN - CASE + 0 WHEN - CAST( - 16 AS SIGNED ) * + 20 + + ( - 27 ) THEN 87 * 66 + 65 * CASE MIN( + ( CAST( NULL AS SIGNED ) ) ) WHEN + 81 * COUNT( * ) + COUNT( * ) * - 23 THEN 59 * 27 WHEN - 45 / + COUNT( * ) THEN NULL END ELSE NULL END END - 67 * - 35 ELSE NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT + CAST ( NULL AS INTEGER ) - + CASE - 68 WHEN - 27 * + + 5 + + COUNT ( DISTINCT NULLIF ( - - 12, + 73 * + 14 / 84 + 24 + 32 ) ) * + 75 THEN - CASE + COUNT ( * ) WHEN - 89 - ( 37 + - 5 ) * 84 THEN - CASE + 0 WHEN - CAST ( - 16 AS INTEGER ) * + 20 + + ( - 27 ) THEN 87 * 66 + 65 * CASE MIN ( + ( CAST ( NULL AS INTEGER ) ) ) WHEN + 81 * COUNT ( * ) + COUNT ( * ) * - 23 THEN 59 * 27 WHEN - 45 / + COUNT ( * ) THEN NULL END ELSE NULL END END - 67 * - 35 ELSE NULL END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5517
SELECT 40, COUNT( * ) * + - COUNT( * ) DIV + + ( 73 ) col0
----
40
0

skipif mysql # not compatible
query II rowsort label-5517
SELECT 40, COUNT ( * ) * + - COUNT ( * ) / + + ( 73 ) col0
----
40
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT + + 90 DIV + NULLIF ( - - 76, + + 55 * - 85 + + COUNT( * ) * 70 ) + + SUM( ALL + 19 )
----
20

skipif mysql # not compatible
query I rowsort label-5519
SELECT + + 90 / + NULLIF ( - - 76, + + 55 * - 85 + + COUNT ( * ) * 70 ) + + SUM ( ALL + 19 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT - - SUM( DISTINCT 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - - SUM ( DISTINCT 72 ) AS col1
----
72

query I rowsort
SELECT - 41 + 21 col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL 85 * 72 * - CAST( NULL AS SIGNED ) / ( + SUM( + 51 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 85 * 72 * - CAST ( NULL AS INTEGER ) / ( + SUM ( + 51 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT COUNT( * ) * - 96 + + NULLIF ( + 3, - - 6 ) + - MIN( 99 ) + + - 6 + + 64 + + 95 DIV - 92
----
-135

skipif mysql # not compatible
query I rowsort label-5523
SELECT COUNT ( * ) * - 96 + + NULLIF ( + 3, - - 6 ) + - MIN ( 99 ) + + - 6 + + 64 + + 95 / - 92
----
-135

query I rowsort
SELECT - 24 - - 51 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + COUNT( * ) * + 49 + + 80
----
129

skipif mysql # not compatible
query I rowsort label-5525
SELECT + COUNT ( * ) * + 49 + + 80
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT 48 - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5526
SELECT 48 - COUNT ( * )
----
47

query I rowsort
SELECT - 81 + + 36 * - + 63 * + - 34 AS col2
----
77031

onlyif mysql # aggregate syntax: 
query II rowsort label-5528
SELECT MIN( ALL - 91 ) * - COUNT( * ) AS col0, - COUNT( * ) * + 71 AS col1
----
91
-71

skipif mysql # not compatible
query II rowsort label-5528
SELECT MIN ( ALL - 91 ) * - COUNT ( * ) AS col0, - COUNT ( * ) * + 71 AS col1
----
91
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT + - 69 + 57 DIV - + 74 * + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + - 69 + 57 / - + 74 * + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT 30 + + + COUNT( * ) + 89 * 18 + 53 col2
----
1686

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT 30 + + + COUNT ( * ) + 89 * 18 + 53 col2
----
1686

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL - MAX( ALL 11 ) + - COUNT( * ) col0, - 52
----
-12
-52

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL - MAX ( ALL 11 ) + - COUNT ( * ) col0, - 52
----
-12
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT COUNT( * ) + 65 + - 21 + + 80 + - - 63 - - 19 * + 77 * + 64 * - ( - 49 )
----
4588156

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT COUNT ( * ) + 65 + - 21 + + 80 + - - 63 - - 19 * + 77 * + 64 * - ( - 49 )
----
4588156

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT ALL 57 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 57 / 43
----
1

query I rowsort
SELECT DISTINCT 96 + + + 21 AS col1
----
117

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

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

query I rowsort
SELECT 66 + + 71
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-5537
SELECT ALL 14 + 99 - - 82 + - 43 - + - 42 * + 84 AS col0, 82 + MIN( ALL + + 22 )
----
3680
104

skipif mysql # not compatible
query II rowsort label-5537
SELECT ALL 14 + 99 - - 82 + - 43 - + - 42 * + 84 AS col0, 82 + MIN ( ALL + + 22 )
----
3680
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT - 84 DIV - + 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 84 / - + 29 AS col2
----
2

query I rowsort
SELECT 63 + - 26
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL 26 * - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL 26 * - COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT DISTINCT 44 + + 40
----
84

query I rowsort
SELECT ALL - 88 - 91 * - 86 AS col2
----
7738

query I rowsort
SELECT ALL 90 * 70 AS col0
----
6300

query II rowsort
SELECT - 64 col2, - 98 * 21 * - 56 + - 74 * 35 * - - 96 * - + 38 + - 14 + - 67 + - 84
----
-64
9563403

query I rowsort
SELECT DISTINCT 25 * + 80 AS col2
----
2000

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT DISTINCT 68, COUNT( DISTINCT - + 32 ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-5546
SELECT DISTINCT 68, COUNT ( DISTINCT - + 32 ) AS col1
----
68
1

query I rowsort
SELECT ALL 43 - ( 92 )
----
-49

query I rowsort
SELECT DISTINCT - 70 - 7 * 80
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT CAST( + 18 AS SIGNED ) + + 70 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5549
SELECT CAST ( + 18 AS INTEGER ) + + 70 AS col2
----
88

query I rowsort
SELECT 68 * ( + 27 ) AS col2
----
1836

query I rowsort
SELECT 4 * - 78 * - - 10
----
-3120

query II rowsort
SELECT DISTINCT 36, 68 AS col0
----
36
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL - COUNT( * ) * - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - COUNT ( * ) * - 88 AS col2
----
88

query II rowsort
SELECT 18, - 18 AS col2
----
18
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-5555
SELECT ALL - 53 DIV + - 63 AS col0, 72
----
0
72

skipif mysql # not compatible
query II rowsort label-5555
SELECT ALL - 53 / + - 63 AS col0, 72
----
0
72

query II rowsort
SELECT DISTINCT 94, + 14 AS col0
----
94
14

query II rowsort
SELECT - 96 AS col2, 57 col1
----
-96
57

query I rowsort
SELECT DISTINCT - 1 * - 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT ALL + 37 AS col0, - 65 * + COUNT( * ) * + - COUNT( * ) AS col0
----
37
65

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL + 37 AS col0, - 65 * + COUNT ( * ) * + - COUNT ( * ) AS col0
----
37
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + + COALESCE ( - 7, 39 * + 96 + - COUNT( * ) / + 98 ) * - NULLIF ( + ( + 76 ), + - 16 ) * - CASE MAX( 68 ) WHEN 71 + 46 THEN NULL WHEN + 25 * + 93 + SUM( DISTINCT 70 + + 0 * 75 ) THEN + 16 WHEN 54 THEN NULL ELSE NULL END / 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + + COALESCE ( - 7, 39 * + 96 + - COUNT ( * ) / + 98 ) * - NULLIF ( + ( + 76 ), + - 16 ) * - CASE MAX ( 68 ) WHEN 71 + 46 THEN NULL WHEN + 25 * + 93 + SUM ( DISTINCT 70 + + 0 * 75 ) THEN + 16 WHEN 54 THEN NULL ELSE NULL END / 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT - SUM( DISTINCT - ( + 31 ) ) / + CASE 25 WHEN + 23 THEN - CAST( NULL AS SIGNED ) + + 13 + - COUNT( * ) + + - MAX( DISTINCT - + 47 ) + COUNT( ALL - ( 96 ) ) / 52 * - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT - SUM ( DISTINCT - ( + 31 ) ) / + CASE 25 WHEN + 23 THEN - CAST ( NULL AS INTEGER ) + + 13 + - COUNT ( * ) + + - MAX ( DISTINCT - + 47 ) + COUNT ( ALL - ( 96 ) ) / 52 * - 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + 38 * + - 86 * - 89 + - COUNT( * ) AS col1
----
290851

skipif mysql # not compatible
query I rowsort label-5562
SELECT + 38 * + - 86 * - 89 + - COUNT ( * ) AS col1
----
290851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT 70 + + - CAST( + 68 AS SIGNED ) + + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5563
SELECT 70 + + - CAST ( + 68 AS INTEGER ) + + + COUNT ( * ) AS col0
----
3

query II rowsort
SELECT DISTINCT - 14 AS col0, 14 - - 97 * + 18 AS col0
----
-14
1760

query II rowsort
SELECT ALL - - 82 col2, - 68 * 89
----
82
-6052

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT - 80 DIV + ( - + 88 ) + - 80 + + 21 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5566
SELECT - 80 / + ( - + 88 ) + - 80 + + 21 AS col0
----
-59

query II rowsort
SELECT DISTINCT - 93, - ( + + 71 ) * + + 88 * + 64 AS col2
----
-93
-399872

query I rowsort
SELECT ALL + 27 + + 64 col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT ALL - 39 AS col2, - 8 * + 63 * + ( COUNT( * ) ) * 78 * - 44 - - ( + + 76 ) * - 20 AS col2
----
-39
1728208

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL - 39 AS col2, - 8 * + 63 * + ( COUNT ( * ) ) * 78 * - 44 - - ( + + 76 ) * - 20 AS col2
----
-39
1728208

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT ALL - 29, + COUNT( * ) * + 54 AS col2
----
-29
54

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL - 29, + COUNT ( * ) * + 54 AS col2
----
-29
54

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

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

query I rowsort
SELECT ALL - 66 + 55 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT MAX( + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5573
SELECT MAX ( + 73 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5574
SELECT + 40, COUNT( * ) * CASE + 50 WHEN - 38 THEN COUNT( ALL + + 56 ) WHEN 60 * - 4 THEN CASE - 55 WHEN - MIN( DISTINCT + 21 ) * - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 86 + COUNT( * ) END * CAST( COUNT( * ) AS SIGNED ) END AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5574
SELECT + 40, COUNT ( * ) * CASE + 50 WHEN - 38 THEN COUNT ( ALL + + 56 ) WHEN 60 * - 4 THEN CASE - 55 WHEN - MIN ( DISTINCT + 21 ) * - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 86 + COUNT ( * ) END * CAST ( COUNT ( * ) AS INTEGER ) END AS col1
----
40
NULL

query I rowsort
SELECT + CASE - 19 WHEN - + 6 - - 22 THEN + + 44 WHEN - 19 THEN 77 END AS col0
----
77

query I rowsort
SELECT ALL 12 * - 6 AS col0
----
-72

query I rowsort
SELECT 11 * - 5
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-5578
SELECT + + COUNT( * ) AS col2, + 12 AS col0, - - CAST( NULL AS DECIMAL )
----
1
12
NULL

skipif mysql # not compatible
query III rowsort label-5578
SELECT + + COUNT ( * ) AS col2, + 12 AS col0, - - CAST ( NULL AS REAL )
----
1
12
NULL

query I rowsort
SELECT ALL + 25 - - 81
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5580
SELECT + 10 * 47 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT + 10 * 47 - - - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT 57 * - + 6 + - 1
----
-343

query I rowsort
SELECT 88 * - 74
----
-6512

query I rowsort
SELECT 71 + - + 11
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL 89 * + COUNT( 5 )
----
89

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL 89 * + COUNT ( 5 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT + CAST( + + 78 AS SIGNED ) + + ( - + 85 ) + 17 + - + ( 47 ) * + - 63 - - COUNT( * ) * + 45
----
3016

skipif mysql # not compatible
query I rowsort label-5586
SELECT + CAST ( + + 78 AS INTEGER ) + + ( - + 85 ) + 17 + - + ( 47 ) * + - 63 - - COUNT ( * ) * + 45
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL MIN( DISTINCT - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL MIN ( DISTINCT - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + COUNT( * ) + - - 13 + + 8 + + SUM( ALL 81 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-5588
SELECT + COUNT ( * ) + - - 13 + + 8 + + SUM ( ALL 81 ) AS col0
----
103

query I rowsort
SELECT ALL 71 + - 20
----
51

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

skipif mysql # not compatible
query I rowsort label-5590
SELECT - 6 * + CAST ( NULL AS INTEGER ) * + + 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT - - 53 + + COALESCE ( 7, + - COUNT( * ) DIV - MIN( DISTINCT + + 23 ) + + ( - + 45 ), + - COALESCE ( + - ( - - 44 ), ( ( + 67 ) ) ) * + 10, 36 * 84 - + 72 * - 17 ) + 11 DIV COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5591
SELECT - - 53 + + COALESCE ( 7, + - COUNT ( * ) / - MIN ( DISTINCT + + 23 ) + + ( - + 45 ), + - COALESCE ( + - ( - - 44 ), ( ( + 67 ) ) ) * + 10, 36 * 84 - + 72 * - 17 ) + 11 / COUNT ( * )
----
71

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

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

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

query I rowsort
SELECT DISTINCT + + 32 * + - 69
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - + 69 * 61 * - ( 84 ) * - COUNT( * ) + - - 62 + 14 col0
----
-353480

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - + 69 * 61 * - ( 84 ) * - COUNT ( * ) + - - 62 + 14 col0
----
-353480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT - 86 * + ( - 17 ) - 3 + + 24 + 2 + COUNT( * ) DIV + ( 62 )
----
1485

skipif mysql # not compatible
query I rowsort label-5596
SELECT - 86 * + ( - 17 ) - 3 + + 24 + 2 + COUNT ( * ) / + ( 62 )
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + + 90 + ( - 42 ) * + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5597
SELECT + + 90 + ( - 42 ) * + COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5598
SELECT - 81 DIV + - ( + - ( + 56 ) ) + + 95 + + COUNT( ALL + + 65 ) * - - 5 + 83 * - 68 * - 42 * COUNT( * ) AS col1
----
237147

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 81 / + - ( + - ( + 56 ) ) + + 95 + + COUNT ( ALL + + 65 ) * - - 5 + 83 * - 68 * - 42 * COUNT ( * ) AS col1
----
237147

query I rowsort
SELECT + - 94 * + 52 - + 62
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT - - ( + 91 ) + + ( + - ( NULLIF ( - 82, 54 ) ) ) + - - COUNT( * ) * + ( + + COUNT( * ) )
----
174

skipif mysql # not compatible
query I rowsort label-5600
SELECT - - ( + 91 ) + + ( + - ( NULLIF ( - 82, 54 ) ) ) + - - COUNT ( * ) * + ( + + COUNT ( * ) )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - COUNT( * ) * 69 * - - 28 - + COUNT( * ) + + 68
----
-1865

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - COUNT ( * ) * 69 * - - 28 - + COUNT ( * ) + + 68
----
-1865

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

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + - ( CAST ( ( 99 ) AS INTEGER ) ) AS col2
----
-99

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

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

query I rowsort
SELECT ALL 55 * - 1 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT + 43 * - 91 * - 98 * + - 86 DIV - - 86 + + 41
----
-383433

skipif mysql # not compatible
query I rowsort label-5605
SELECT + 43 * - 91 * - 98 * + - 86 / - - 86 + + 41
----
-383433

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

skipif mysql # not compatible
query I rowsort label-5606
SELECT NULLIF ( 55, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
55

query I rowsort
SELECT 61 * 72 + - 40 AS col1
----
4352

query I rowsort
SELECT NULLIF ( 56, + 44 * 0 * + - 66 ) AS col1
----
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT + COALESCE ( + ( + ( - 38 ) ), - 11 * - 44 - - - 30 + + - COUNT( * ), + 4 - CAST( NULL AS SIGNED ), + 96 + 40 * 6 * + 66 ) + 91 * 49 AS col1
----
4421

skipif mysql # not compatible
query I rowsort label-5610
SELECT + COALESCE ( + ( + ( - 38 ) ), - 11 * - 44 - - - 30 + + - COUNT ( * ), + 4 - CAST ( NULL AS INTEGER ), + 96 + 40 * 6 * + 66 ) + 91 * 49 AS col1
----
4421

query I rowsort
SELECT DISTINCT 54 * 54
----
2916

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

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

query II rowsort
SELECT ALL 31 AS col1, + 51 * - 55
----
31
-2805

query I rowsort
SELECT DISTINCT - 80 + 70 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT + 65 DIV + 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5615
SELECT + 65 / + 31 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5616
SELECT - NULLIF ( - + COUNT( * ), + COUNT( * ) ), 82 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-5616
SELECT - NULLIF ( - + COUNT ( * ), + COUNT ( * ) ), 82 AS col2
----
1
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL 30 + CAST( - 14 AS SIGNED ) * - - 80
----
-1090

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL 30 + CAST ( - 14 AS INTEGER ) * - - 80
----
-1090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5618
SELECT ALL 47 + ( - CAST( - 84 AS SIGNED ) ) * - COUNT( * ) + + 18 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL 47 + ( - CAST ( - 84 AS INTEGER ) ) * - COUNT ( * ) + + 18 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5619
SELECT - AVG ( 75 ) + - - 31 / + + 10 / CAST( NULL AS SIGNED ) / + + 96 AS col1, + 18 * - 18
----
NULL
-324

skipif mysql # not compatible
query II rowsort label-5619
SELECT - AVG ( 75 ) + - - 31 / + + 10 / CAST ( NULL AS INTEGER ) / + + 96 AS col1, + 18 * - 18
----
NULL
-324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5620
SELECT + CAST( NULL AS DECIMAL ) - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT + CAST ( NULL AS REAL ) - - 41
----
NULL

query II rowsort
SELECT 86 AS col0, 54 col2
----
86
54

query I rowsort
SELECT ALL 73 + - 7
----
66

query I rowsort
SELECT DISTINCT ( - 73 ) + - 17 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + + NULLIF ( + COUNT( - - 13 ), COUNT( * ) ) + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT + + NULLIF ( + COUNT ( - - 13 ), COUNT ( * ) ) + + 15 AS col0
----
NULL

query I rowsort
SELECT ALL + 99 + + 81 - - 16 AS col1
----
196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT CASE - - 52 WHEN 86 + + 70 - - 75 - - + MAX( ALL 57 ) * 78 + - + CASE WHEN NOT NULL <= 26 THEN + 41 + + - ( 83 ) ELSE NULL END + + 59 / COUNT( * ) THEN 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT CASE - - 52 WHEN 86 + + 70 - - 75 - - + MAX ( ALL 57 ) * 78 + - + CASE WHEN NOT NULL <= 26 THEN + 41 + + - ( 83 ) ELSE NULL END + + 59 / COUNT ( * ) THEN 49 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT ALL + - 37 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL + - 37 / + 28
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT + - ( - 3 ) DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT + - ( - 3 ) / 30
----
0

query II rowsort
SELECT + + 97 AS col2, 91
----
97
91

query II rowsort
SELECT DISTINCT + + 26 AS col0, - 71 * 42 * + 8
----
26
-23856

query I rowsort
SELECT ALL + - 62 * + + NULLIF ( + - 62, 43 ) + - 83
----
3761

query I rowsort
SELECT + ( COALESCE ( - + ( 56 ), - 56 ) ) AS col1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT ALL - 23 DIV ( 20 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - 23 / ( 20 ) col1
----
-1

query I rowsort
SELECT DISTINCT + 84 * 21
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - 29 * - 44 * + + SUM( 86 ) * + 41
----
4499176

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - 29 * - 44 * + + SUM ( 86 ) * + 41
----
4499176

query I rowsort
SELECT + 26 - - 18 + + 1 AS col0
----
45

query I rowsort
SELECT ALL + 66 * - 99 AS col1
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + COUNT( + - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5639
SELECT + COUNT ( + - 41 ) AS col2
----
1

query I rowsort
SELECT - NULLIF ( + 99, + 19 * 42 / - + 22 * - + 47 ) * + 10
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT DISTINCT 25 * + + COUNT( * ) * - - 80 DIV - 10
----
-200

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT 25 * + + COUNT ( * ) * - - 80 / - 10
----
-200

query I rowsort
SELECT DISTINCT - 12 + + - 8 col1
----
-20

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

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

query I rowsort
SELECT ALL - 67 + 6 + 58 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL - 94 + 55 * + 75 - + + 99 + + 14 + 33 * + CASE COUNT( * ) WHEN + 68 - 27 THEN - 6 + 3 * 90 ELSE COUNT( * ) + - 5 END
----
3814

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - 94 + 55 * + 75 - + + 99 + + 14 + 33 * + CASE COUNT ( * ) WHEN + 68 - 27 THEN - 6 + 3 * 90 ELSE COUNT ( * ) + - 5 END
----
3814

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

skipif mysql # not compatible
query I rowsort label-5646
SELECT COUNT ( * ) * CAST ( + 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT + COUNT( * ) * 82 * 70 + ( NULLIF ( + CAST( + COALESCE ( + 40, 9 * - COUNT( * ) + + 35 / - + SUM( + 82 ) + + 24 ) AS SIGNED ), 34 ) ) AS col1
----
5780

skipif mysql # not compatible
query I rowsort label-5647
SELECT + COUNT ( * ) * 82 * 70 + ( NULLIF ( + CAST ( + COALESCE ( + 40, 9 * - COUNT ( * ) + + 35 / - + SUM ( + 82 ) + + 24 ) AS INTEGER ), 34 ) ) AS col1
----
5780

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 87 + - 57 + - 11 + - + 78 * - 3 DIV - - 77 DIV + ( + + 8 )
----
19

skipif mysql # not compatible
query I rowsort label-5648
SELECT 87 + - 57 + - 11 + - + 78 * - 3 / - - 77 / + ( + + 8 )
----
19

query I rowsort
SELECT 96 + - + 59 * - 26 col1
----
1630

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT DISTINCT + - 60 + + COUNT( - + 9 ) + + + 84
----
25

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + - 60 + + COUNT ( - + 9 ) + + + 84
----
25

query I rowsort
SELECT DISTINCT - 28 - + 87
----
-115

query II rowsort
SELECT DISTINCT 94 - + + 44 AS col1, 52 AS col2
----
50
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5653
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN - 63 * + - ( + 99 ) - - 13 - + 52 THEN NULL ELSE + 17 END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5653
SELECT CASE - CAST ( NULL AS REAL ) WHEN - 63 * + - ( + 99 ) - - 13 - + 52 THEN NULL ELSE + 17 END AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - 82 * - + COALESCE ( - - NULLIF ( + 59, 17 * - + 14 * ( ( - 7 ) ) * 77 + + 38 * + 13 * COUNT( * ) + - MAX( DISTINCT + 65 ) * 55 ), 95 )
----
4838

skipif mysql # not compatible
query I rowsort label-5654
SELECT - 82 * - + COALESCE ( - - NULLIF ( + 59, 17 * - + 14 * ( ( - 7 ) ) * 77 + + 38 * + 13 * COUNT ( * ) + - MAX ( DISTINCT + 65 ) * 55 ), 95 )
----
4838

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT ALL 51 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 51 / + + 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT - SUM( DISTINCT 76 ) DIV - 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5656
SELECT - SUM ( DISTINCT 76 ) / - 49 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT + COUNT( * ) DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + COUNT ( * ) / - 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT ALL 78 * 89 AS col0, 49 + 84 * + 48 * + CASE 57 WHEN - COALESCE ( + 45, + 61 ) THEN - - 7 WHEN - COUNT( * ) + - - 96 THEN - COUNT( * ) END + - ( + 14 )
----
6942
NULL

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL 78 * 89 AS col0, 49 + 84 * + 48 * + CASE 57 WHEN - COALESCE ( + 45, + 61 ) THEN - - 7 WHEN - COUNT ( * ) + - - 96 THEN - COUNT ( * ) END + - ( + 14 )
----
6942
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT 96 - 31 + + 88 + + MIN( 35 ) + + + 1 + + + CAST( NULL AS SIGNED ) * + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT 96 - 31 + + 88 + + MIN ( 35 ) + + + 1 + + + CAST ( NULL AS INTEGER ) * + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5660
SELECT - COALESCE ( 46, + 66 ) DIV - 27 + - ( - CAST( + ( - 47 ) AS SIGNED ) ) DIV - 88 AS col0, NULLIF ( 41, - + COALESCE ( 62, + NULLIF ( 54, - 12 ) ) * COALESCE ( MAX( 56 ) * + 90, + 37 + SUM( - 42 + 11 ) * 84 ) ) * + 8
----
1
328

skipif mysql # not compatible
query II rowsort label-5660
SELECT - COALESCE ( 46, + 66 ) / - 27 + - ( - CAST ( + ( - 47 ) AS INTEGER ) ) / - 88 AS col0, NULLIF ( 41, - + COALESCE ( 62, + NULLIF ( 54, - 12 ) ) * COALESCE ( MAX ( 56 ) * + 90, + 37 + SUM ( - 42 + 11 ) * 84 ) ) * + 8
----
1
328

query I rowsort
SELECT ALL + 94 * 26 + + 13 * - 91
----
1261

query I rowsort
SELECT - 98 * - + 84 col0
----
8232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT 88 - 15 + + SUM( ALL 82 ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5664
SELECT 88 - 15 + + SUM ( ALL 82 ) AS col2
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT 91 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-5665
SELECT 91 / + 76
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT 98 DIV 72 + + 41 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5666
SELECT 98 / 72 + + 41 AS col1
----
42

query I rowsort
SELECT 61 * - - 68 - 84
----
4064

query II rowsort
SELECT + 7 AS col2, 8 col1
----
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL 84 + 79 * - 30 * CASE - 66 WHEN 17 + - - CASE + 95 WHEN + - COUNT( * ) * + - 90 + + + 3 * + + ( - 76 ) * + 80 THEN - + 30 * + NULLIF ( + ( 33 ) * 51, + 75 ) - 20 WHEN - 70 + - 14 * COUNT( * ) THEN NULL ELSE 14 + 85 * CASE + 9 WHEN NULLIF ( - 29, NULLIF ( 79, - 31 ) + 83 ) - + 2 THEN 44 ELSE NULL END END THEN ( 69 ) WHEN 28 * + 54 THEN - 92 WHEN - 73 THEN 34 * + SUM( ( 33 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL 84 + 79 * - 30 * CASE - 66 WHEN 17 + - - CASE + 95 WHEN + - COUNT ( * ) * + - 90 + + + 3 * + + ( - 76 ) * + 80 THEN - + 30 * + NULLIF ( + ( 33 ) * 51, + 75 ) - 20 WHEN - 70 + - 14 * COUNT ( * ) THEN NULL ELSE 14 + 85 * CASE + 9 WHEN NULLIF ( - 29, NULLIF ( 79, - 31 ) + 83 ) - + 2 THEN 44 ELSE NULL END END THEN ( 69 ) WHEN 28 * + 54 THEN - 92 WHEN - 73 THEN 34 * + SUM ( ( 33 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 53 + 22
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT ALL - SUM( ALL 13 ) + + - 53 * - 12 AS col0
----
623

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - SUM ( ALL 13 ) + + - 53 * - 12 AS col0
----
623

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT ALL 78 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL 78 / - 49
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT ALL + 35 + - ( - COALESCE ( - - COUNT( ALL - - 92 ), - 11 + 67 * + COUNT( * ) ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 35 + - ( - COALESCE ( - - COUNT ( ALL - - 92 ), - 11 + 67 * + COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 54 + + 13 - 69
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT 77 * 24 DIV + ( + ( 69 ) )
----
26

skipif mysql # not compatible
query I rowsort label-5675
SELECT 77 * 24 / + ( + ( 69 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - 90 * - + SUM( 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 90 * - + SUM ( 0 ) col0
----
0

query I rowsort
SELECT ALL + 35 + - + 32 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT - COUNT( DISTINCT + 11 ) + - 46 col0
----
-47

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - COUNT ( DISTINCT + 11 ) + - 46 col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT CAST( - - 62 AS SIGNED ) + - 91 * - COUNT( * )
----
153

skipif mysql # not compatible
query I rowsort label-5679
SELECT CAST ( - - 62 AS INTEGER ) + - 91 * - COUNT ( * )
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT 32 + + 56 DIV + 79 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5680
SELECT 32 + + 56 / + 79 AS col2
----
32

query I rowsort
SELECT 3 * 12 AS col2
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL MAX( DISTINCT - - 39 ) + - - 23 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL MAX ( DISTINCT - - 39 ) + - - 23 AS col1
----
62

query II rowsort
SELECT 11 AS col1, 52 AS col2
----
11
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT ALL - 85 - MAX( ALL 95 ) + - - 65 * 85, - 20 AS col0
----
5345
-20

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL - 85 - MAX ( ALL 95 ) + - - 65 * 85, - 20 AS col0
----
5345
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5686
SELECT - 39 + CASE - ( - 75 ) WHEN + + 11 + + ( - ( + + COUNT( * ) ) ) THEN + 11 ELSE + + ( + 46 ) END, + 93 + - ( + 43 ) - - 24 * 64 AS col1
----
7
1586

skipif mysql # not compatible
query II rowsort label-5686
SELECT - 39 + CASE - ( - 75 ) WHEN + + 11 + + ( - ( + + COUNT ( * ) ) ) THEN + 11 ELSE + + ( + 46 ) END, + 93 + - ( + 43 ) - - 24 * 64 AS col1
----
7
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT CAST( NULL AS SIGNED ) * + + 29 + - + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT CAST ( NULL AS INTEGER ) * + + 29 + - + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT + CAST( NULL AS SIGNED ) + + + CASE - 87 WHEN + 20 THEN NULL WHEN + + 8 THEN + + 4 * + 3 * + 30 + - 89 ELSE + - 59 * - CAST( - 37 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT + CAST ( NULL AS INTEGER ) + + + CASE - 87 WHEN + 20 THEN NULL WHEN + + 8 THEN + + 4 * + 3 * + 30 + - 89 ELSE + - 59 * - CAST ( - 37 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 11 - + + 20 + ( - 87 ) + - 44 * COUNT( * ) + - 80 - + COUNT( * ) * ( + 71 ) * + COUNT( * )
----
-291

skipif mysql # not compatible
query I rowsort label-5689
SELECT 11 - + + 20 + ( - 87 ) + - 44 * COUNT ( * ) + - 80 - + COUNT ( * ) * ( + 71 ) * + COUNT ( * )
----
-291

query I rowsort
SELECT 55 * - + 11
----
-605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL - COALESCE ( 23, + 29, CAST( NULL AS SIGNED ) * - 34 * - - CASE CAST( NULL AS SIGNED ) WHEN - MAX( - - 71 ) - 70 * - CAST( NULL AS SIGNED ) THEN 60 WHEN + - COUNT( DISTINCT - 57 ) * 31 * 27 + - COUNT( - CAST( NULL AS SIGNED ) ) THEN 80 ELSE + 52 END ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - COALESCE ( 23, + 29, CAST ( NULL AS INTEGER ) * - 34 * - - CASE CAST ( NULL AS INTEGER ) WHEN - MAX ( - - 71 ) - 70 * - CAST ( NULL AS INTEGER ) THEN 60 WHEN + - COUNT ( DISTINCT - 57 ) * 31 * 27 + - COUNT ( - CAST ( NULL AS INTEGER ) ) THEN 80 ELSE + 52 END ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT - + 20 * 82 * + 26 * - + COUNT( * )
----
42640

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - + 20 * 82 * + 26 * - + COUNT ( * )
----
42640

query I rowsort
SELECT DISTINCT - 89 * - 79 * - + 88 + - + 76
----
-618804

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

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( * ) / - 28 - 19
----
-19

query I rowsort
SELECT DISTINCT - - 53 * - 51 + - 95 AS col0
----
-2798

query II rowsort
SELECT ALL - 24, 78 AS col2
----
-24
78

query I rowsort
SELECT 11 + - + NULLIF ( + - 89, + - 77 ) * - 87 AS col2
----
-7732

query I rowsort
SELECT - + NULLIF ( 33, + + 9 - + + 64 + - + 58 * + 60 * - - 15 / - + 78 ) AS col2
----
-33

query I rowsort
SELECT 3 * - 56 - 31 AS col0
----
-199

query II rowsort
SELECT - 43 AS col2, 20
----
-43
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 4 + + SUM( - + 98 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 4 + + SUM ( - + 98 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5702
SELECT 62 / + COUNT( * ) * - - COUNT( DISTINCT - 32 ) * + CASE - + 72 WHEN - AVG ( - CASE 53 WHEN - - 89 THEN - - ( 85 ) WHEN - 32 THEN - ( 25 ) END ) THEN + + 99 - - 32 WHEN - AVG ( 41 ) + CAST( 32 AS SIGNED ) THEN - 22 - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT 62 / + COUNT ( * ) * - - COUNT ( DISTINCT - 32 ) * + CASE - + 72 WHEN - AVG ( - CASE 53 WHEN - - 89 THEN - - ( 85 ) WHEN - 32 THEN - ( 25 ) END ) THEN + + 99 - - 32 WHEN - AVG ( 41 ) + CAST ( 32 AS INTEGER ) THEN - 22 - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL 93 * CASE + 32 WHEN + 43 + + + CASE - 68 WHEN + 13 THEN - 94 END THEN + COUNT( * ) + - 31 WHEN - 33 THEN NULL ELSE NULL END + - + 8 + - - NULLIF ( 34, - - 34 ) + - + ( + 69 ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 93 * CASE + 32 WHEN + 43 + + + CASE - 68 WHEN + 13 THEN - 94 END THEN + COUNT ( * ) + - 31 WHEN - 33 THEN NULL ELSE NULL END + - + 8 + - - NULLIF ( 34, - - 34 ) + - + ( + 69 ) * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT + 79 * + COALESCE ( - + 4, + 87 DIV COUNT( * ) + + + MIN( DISTINCT - 1 ) + - COUNT( * ) ) * + 21
----
-6636

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 79 * + COALESCE ( - + 4, + 87 / COUNT ( * ) + + + MIN ( DISTINCT - 1 ) + - COUNT ( * ) ) * + 21
----
-6636

query I rowsort
SELECT CASE - + 99 WHEN - 96 THEN NULL WHEN - AVG ( ( - 81 ) ) THEN - 71 ELSE 51 END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + COUNT( ALL + COALESCE ( + 68, COALESCE ( - 13, - 46 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5706
SELECT + COUNT ( ALL + COALESCE ( + 68, COALESCE ( - 13, - 46 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL CAST( NULL AS SIGNED ) * + 10 + 81 + 56 * 43 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL CAST ( NULL AS INTEGER ) * + 10 + 81 + 56 * 43 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 37 * 70
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT + 49 * - MIN( + 66 )
----
-3234

skipif mysql # not compatible
query I rowsort label-5709
SELECT + 49 * - MIN ( + 66 )
----
-3234

query I rowsort
SELECT NULLIF ( - - 95, - 14 )
----
95

query I rowsort
SELECT DISTINCT 72 * 76 * 11 AS col0
----
60192

query I rowsort
SELECT + 55 * - 83 - + + 63 AS col0
----
-4628

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

skipif mysql # not compatible
query I rowsort label-5713
SELECT SUM ( - ( + 3 ) )
----
-3

query I rowsort
SELECT + NULLIF ( - 66, - 19 )
----
-66

query II rowsort
SELECT + 13 - + - 38 * + 74 * - 50 AS col0, 67 AS col0
----
-140587
67

query I rowsort
SELECT + 18 * 17 AS col1
----
306

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - COUNT( * ) * + - SUM( - - 22 ) - - 96 * 77 AS col2
----
7414

skipif mysql # not compatible
query I rowsort label-5720
SELECT - COUNT ( * ) * + - SUM ( - - 22 ) - - 96 * 77 AS col2
----
7414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5721
SELECT ALL + 57 AS col2, CAST( + COUNT( * ) AS SIGNED ) * ( + - COUNT( * ) ) - - 28 * + - 32 col2
----
57
-897

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL + 57 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) * ( + - COUNT ( * ) ) - - 28 * + - 32 col2
----
57
-897

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT 23 DIV + NULLIF ( 34, - 60 ) * + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT 23 / + NULLIF ( 34, - 60 ) * + 20 AS col1
----
0

query I rowsort
SELECT + 27 - - 90
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT + CASE + + 9 WHEN + 23 / - COUNT( ALL + 32 ) THEN COUNT( DISTINCT + 97 ) WHEN + + 89 + + 77 + + + CAST( COUNT( DISTINCT 53 ) AS SIGNED ) / 46 * 25 * + - 65 * - 77 - - 70 / + ( AVG ( ALL + CASE - 39 WHEN + 72 THEN NULL WHEN - 83 THEN 29 + 11 END ) ) THEN NULL ELSE NULL END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT + CASE + + 9 WHEN + 23 / - COUNT ( ALL + 32 ) THEN COUNT ( DISTINCT + 97 ) WHEN + + 89 + + 77 + + + CAST ( COUNT ( DISTINCT 53 ) AS INTEGER ) / 46 * 25 * + - 65 * - 77 - - 70 / + ( AVG ( ALL + CASE - 39 WHEN + 72 THEN NULL WHEN - 83 THEN 29 + 11 END ) ) THEN NULL ELSE NULL END * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - + 17 * COUNT( * ) + - 9 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5725
SELECT - + 17 * COUNT ( * ) + - 9 AS col2
----
-26

query II rowsort
SELECT ALL + 12 * ( 1 ) * + - 70 AS col2, + 77
----
-840
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT 48 * COUNT( * ) * + 95 + - 85 AS col0
----
4475

skipif mysql # not compatible
query I rowsort label-5727
SELECT 48 * COUNT ( * ) * + 95 + - 85 AS col0
----
4475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT + + CAST( - - COALESCE ( CAST( NULL AS SIGNED ), + 51 * + 52 + - 48 + CAST( - 12 AS SIGNED ) ) AS SIGNED ) + + - 35 AS col0
----
2557

skipif mysql # not compatible
query I rowsort label-5728
SELECT + + CAST ( - - COALESCE ( CAST ( NULL AS INTEGER ), + 51 * + 52 + - 48 + CAST ( - 12 AS INTEGER ) ) AS INTEGER ) + + - 35 AS col0
----
2557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5729
SELECT ALL 81 AS col0, CAST( + NULLIF ( + 37, COUNT( * ) ) AS SIGNED ) AS col1
----
81
37

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL 81 AS col0, CAST ( + NULLIF ( + 37, COUNT ( * ) ) AS INTEGER ) AS col1
----
81
37

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

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

query I rowsort
SELECT + 16 * - 61
----
-976

query II rowsort
SELECT + 26, - 69 * - + 64 AS col0
----
26
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT - 44 + MAX( DISTINCT + - 84 ) + + 6 AS col0, + ( + 79 ) AS col0
----
-122
79

skipif mysql # not compatible
query II rowsort label-5733
SELECT - 44 + MAX ( DISTINCT + - 84 ) + + 6 AS col0, + ( + 79 ) AS col0
----
-122
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT - + COUNT( * ) * ( ( ( - 49 ) ) ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT - + COUNT ( * ) * ( ( ( - 49 ) ) ) / + 81
----
0

query II rowsort
SELECT 46, - 38 AS col0
----
46
-38

query II rowsort
SELECT - 26, + 43 * - 90 AS col0
----
-26
-3870

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT + - 30 + - 42 col2, 93 * + 32 + - + COUNT( + 94 ) AS col2
----
-72
2975

skipif mysql # not compatible
query II rowsort label-5737
SELECT + - 30 + - 42 col2, 93 * + 32 + - + COUNT ( + 94 ) AS col2
----
-72
2975

query I rowsort
SELECT - + 55 + - - 47
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL + SUM( DISTINCT - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + SUM ( DISTINCT - 39 )
----
-39

query I rowsort
SELECT - - 80 + + 55
----
135

query I rowsort
SELECT ALL - - 76 * - 12 + 80 AS col1
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - SUM( 54 ) - 18 + - 41 * 13 AS col1
----
-605

skipif mysql # not compatible
query I rowsort label-5742
SELECT - SUM ( 54 ) - 18 + - 41 * 13 AS col1
----
-605

query I rowsort
SELECT DISTINCT + 25 * - + 28 AS col2
----
-700

query I rowsort
SELECT - 73 + - + 85 * 44
----
-3813

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - NULLIF ( + - 50, - 57 ) * - 70 * + - MAX( + 58 )
----
203000

skipif mysql # not compatible
query I rowsort label-5745
SELECT - NULLIF ( + - 50, - 57 ) * - 70 * + - MAX ( + 58 )
----
203000

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT ALL + 7 * - 86, - COUNT( * ) AS col0
----
-602
-1

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL + 7 * - 86, - COUNT ( * ) AS col0
----
-602
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + NULLIF ( 35, COUNT( 78 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5749
SELECT + NULLIF ( 35, COUNT ( 78 ) ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5750
SELECT CAST( + 37 AS SIGNED ), + 96 AS col1
----
37
96

skipif mysql # not compatible
query II rowsort label-5750
SELECT CAST ( + 37 AS INTEGER ), + 96 AS col1
----
37
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + 88 * + - MAX( 16 ) * + - 43 + + 65
----
60609

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 88 * + - MAX ( 16 ) * + - 43 + + 65
----
60609

query II rowsort
SELECT + 19 - + 39, + 24 * - 0 AS col1
----
-20
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT ALL + 63 DIV 39 * - SUM( + + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + 63 / 39 * - SUM ( + + 76 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT COUNT( * ) * - 92 + + 34 / + + 1 * - 79 + + COUNT( * ) * - COALESCE ( + 73, - NULLIF ( - 62, + - 78 ) ) * CAST( NULL AS SIGNED ) * - - 97 * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT COUNT ( * ) * - 92 + + 34 / + + 1 * - 79 + + COUNT ( * ) * - COALESCE ( + 73, - NULLIF ( - 62, + - 78 ) ) * CAST ( NULL AS INTEGER ) * - - 97 * 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT CASE 66 WHEN COUNT( * ) THEN - + 65 ELSE NULL END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT CASE 66 WHEN COUNT ( * ) THEN - + 65 ELSE NULL END * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT - 65 * + COALESCE ( - 32, 75 ) * - COUNT( * ), + ( + + ( + 55 ) ) AS col2
----
-2080
55

skipif mysql # not compatible
query II rowsort label-5756
SELECT - 65 * + COALESCE ( - 32, 75 ) * - COUNT ( * ), + ( + + ( + 55 ) ) AS col2
----
-2080
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT ALL + 80 DIV 41 * + - 6 - + - ( 39 )
----
33

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + 80 / 41 * + - 6 - + - ( 39 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL SUM( - 58 ) * - 1 + - - 41 * 93 * + 98
----
373732

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL SUM ( - 58 ) * - 1 + - - 41 * 93 * + 98
----
373732

query II rowsort
SELECT + 59 + - 97 AS col1, - 12 + + 54
----
-38
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL SUM( DISTINCT - 76 ) * 12 AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL SUM ( DISTINCT - 76 ) * 12 AS col1
----
-912

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT ALL COUNT( * ) * + 3 DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL COUNT ( * ) * + 3 / + + 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT NULLIF ( - 17, + - COUNT( * ) + COUNT( * ) * + 3 + 56 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT NULLIF ( - 17, + - COUNT ( * ) + COUNT ( * ) * + 3 + 56 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT ALL + 16 * + - 26 * - + 73 + - 15 DIV - 1
----
30383

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + 16 * + - 26 * - + 73 + - 15 / - 1
----
30383

query I rowsort
SELECT ALL + 51 * + 99 * + 85
----
429165

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT + - 45 + - + 46 - 39 DIV + 79 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5766
SELECT + - 45 + - + 46 - 39 / + 79 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT + COUNT( * ) * 4 + + 57
----
61

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + COUNT ( * ) * 4 + + 57
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5768
SELECT + 3 DIV - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 3 / - COUNT ( * ) AS col2
----
-3

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

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

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

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

query II rowsort
SELECT + 17 * + 96 AS col1, 14 AS col1
----
1632
14

query I rowsort
SELECT ALL 91 + - 49 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT ALL + - 11 + 10 col1, SUM( - 4 )
----
-1
-4

skipif mysql # not compatible
query II rowsort label-5773
SELECT ALL + - 11 + 10 col1, SUM ( - 4 )
----
-1
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ( - SUM( DISTINCT - - 75 ) ) + + 94
----
19

skipif mysql # not compatible
query I rowsort label-5774
SELECT ( - SUM ( DISTINCT - - 75 ) ) + + 94
----
19

query I rowsort
SELECT ALL 61 * - 82 AS col1
----
-5002

query I rowsort
SELECT 91 - - 46
----
137

query II rowsort
SELECT ALL 0 AS col2, 37 AS col0
----
0
37

query II rowsort
SELECT 11, - 41 + - - 92 * 95 col0
----
11
8699

query I rowsort
SELECT ALL 55 + + 86 * ( - + 11 ) col1
----
-891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5780
SELECT 13 + NULLIF ( + - 84, + - 12 ), 7 / - 24 * NULLIF ( CAST( NULL AS SIGNED ), + + ( 6 ) * + 53 ) AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-5780
SELECT 13 + NULLIF ( + - 84, + - 12 ), 7 / - 24 * NULLIF ( CAST ( NULL AS INTEGER ), + + ( 6 ) * + 53 ) AS col1
----
-71
NULL

query I rowsort
SELECT 26 * - 97
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT 54 - - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT 54 - - - COUNT ( * )
----
53

query II rowsort
SELECT ALL - 48 AS col1, 38
----
-48
38

query I rowsort
SELECT 5 * + 53 * - 33 * + - 38
----
332310

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT - 8 DIV 43 - - 17
----
17

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 8 / 43 - - 17
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT NULLIF ( - COUNT( * ), - 89 DIV + 12 - - + 12 DIV 19 * - 95 ) DIV - 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT NULLIF ( - COUNT ( * ), - 89 / + 12 - - + 12 / 19 * - 95 ) / - 36 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - CAST ( + 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 21 + + 29 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT 48 * - MIN( 65 )
----
-3120

skipif mysql # not compatible
query I rowsort label-5789
SELECT 48 * - MIN ( 65 )
----
-3120

onlyif mysql # DIV for integer division: 
query III rowsort label-5790
SELECT ALL - 7, + 41 DIV + - 59 * - 37 + + 12 * - + 39 AS col0, 21 AS col0
----
-7
-468
21

skipif mysql # not compatible
query III rowsort label-5790
SELECT ALL - 7, + 41 / + - 59 * - 37 + + 12 * - + 39 AS col0, 21 AS col0
----
-7
-468
21

query I rowsort
SELECT 9 * + - 73 * - 39 * - 59 - + + 90 * + + 77 * - ( 7 ) * + - 16
----
-2287917

query I rowsort
SELECT DISTINCT 33 * - 15 col1
----
-495

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT + 80 * - COUNT( * ) * - + 44 * + + 79 + + COUNT( * ) + - - CAST( - 94 AS SIGNED ) - - + COUNT( * ) - + 86
----
277902

skipif mysql # not compatible
query I rowsort label-5794
SELECT + 80 * - COUNT ( * ) * - + 44 * + + 79 + + COUNT ( * ) + - - CAST ( - 94 AS INTEGER ) - - + COUNT ( * ) - + 86
----
277902

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT + - 17, COUNT( - 57 ) AS col1
----
-17
1

skipif mysql # not compatible
query II rowsort label-5795
SELECT + - 17, COUNT ( - 57 ) AS col1
----
-17
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT - + ( 2 ) + - 95 DIV 25
----
-5

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - + ( 2 ) + - 95 / 25
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT ALL 0 AS col2, - COALESCE ( + COUNT( * ), - 61 )
----
0
-1

skipif mysql # not compatible
query II rowsort label-5798
SELECT ALL 0 AS col2, - COALESCE ( + COUNT ( * ), - 61 )
----
0
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5800
SELECT + + COALESCE ( - 86, - 47 + + 0 DIV + 89 + 19 - 93 ) * + SUM( + ( - - 89 ) ) + - 55 - - + CAST( - 47 AS SIGNED ) AS col0
----
-7756

skipif mysql # not compatible
query I rowsort label-5800
SELECT + + COALESCE ( - 86, - 47 + + 0 / + 89 + 19 - 93 ) * + SUM ( + ( - - 89 ) ) + - 55 - - + CAST ( - 47 AS INTEGER ) AS col0
----
-7756

query II rowsort
SELECT ALL - 99, 87 col1
----
-99
87

query I rowsort
SELECT DISTINCT + 28 + 3 * + - 6 + - 42 AS col1
----
-32

query I rowsort
SELECT DISTINCT + 17 * - 85
----
-1445

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT ALL + CASE + COUNT( * ) WHEN + 13 THEN NULL WHEN + 46 + + 59 + + 55 THEN 4 WHEN + 11 THEN + + 19 ELSE - CAST( NULL AS SIGNED ) END + ( - 78 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + CASE + COUNT ( * ) WHEN + 13 THEN NULL WHEN + 46 + + 59 + + 55 THEN 4 WHEN + 11 THEN + + 19 ELSE - CAST ( NULL AS INTEGER ) END + ( - 78 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * - - 65 / - 39 * - COUNT( * ) * + + ( - ( + 38 ) ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - 65 / - 39 * - COUNT ( * ) * + + ( - ( + 38 ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT DISTINCT 90 AS col0, COUNT( * ) * - - 49
----
90
49

skipif mysql # not compatible
query II rowsort label-5807
SELECT DISTINCT 90 AS col0, COUNT ( * ) * - - 49
----
90
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT CASE - COALESCE ( + - 87, 41 ) WHEN - - MIN( + 37 ) THEN NULL WHEN - 58 * - - 19 THEN - 3 * 29 ELSE + - 54 * + 43 + + COUNT( * ) + - - 24 * - - 36 - - + 60 * 27 * - - 96 - - + COUNT( * ) + COUNT( * ) END * - 42 AS col0
----
-6470730

skipif mysql # not compatible
query I rowsort label-5808
SELECT CASE - COALESCE ( + - 87, 41 ) WHEN - - MIN ( + 37 ) THEN NULL WHEN - 58 * - - 19 THEN - 3 * 29 ELSE + - 54 * + 43 + + COUNT ( * ) + - - 24 * - - 36 - - + 60 * 27 * - - 96 - - + COUNT ( * ) + COUNT ( * ) END * - 42 AS col0
----
-6470730

query I rowsort
SELECT 26 * + - 95 * 33
----
-81510

query I rowsort
SELECT DISTINCT 13 * + - 63 AS col2
----
-819

query I rowsort
SELECT ( + 7 ) + NULLIF ( 30, + 10 ) + + 63 * + 2 AS col0
----
163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - MIN( ALL 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - MIN ( ALL 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT ( - - COALESCE ( - + 7, + COUNT( * ) DIV - - CASE 8 WHEN - 26 THEN - + 81 * - + 0 - - - AVG ( + 77 ) WHEN + 44 + - + ( + 98 ) + ( + ( ( - COUNT( DISTINCT + + 73 ) ) ) ) * - 84 THEN 7 DIV 58 END ) ) + + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5814
SELECT ( - - COALESCE ( - + 7, + COUNT ( * ) / - - CASE 8 WHEN - 26 THEN - + 81 * - + 0 - - - AVG ( + 77 ) WHEN + 44 + - + ( + 98 ) + ( + ( ( - COUNT ( DISTINCT + + 73 ) ) ) ) * - 84 THEN 7 / 58 END ) ) + + 7 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT 41 + CASE 76 WHEN + 6 THEN - + 83 WHEN + 37 - ( - ( + + 38 ) ) THEN - + 78 ELSE + COUNT( * ) END AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5815
SELECT 41 + CASE 76 WHEN + 6 THEN - + 83 WHEN + 37 - ( - ( + + 38 ) ) THEN - + 78 ELSE + COUNT ( * ) END AS col0
----
42

query I rowsort
SELECT 73 * 98 + - 98 AS col2
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT 50 * + - MIN( ALL + 86 )
----
-4300

skipif mysql # not compatible
query I rowsort label-5817
SELECT 50 * + - MIN ( ALL + 86 )
----
-4300

query I rowsort
SELECT - 42 * 19 + - 84 AS col1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT 57 - - - COUNT( ALL + 77 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-5819
SELECT 57 - - - COUNT ( ALL + 77 ) col0
----
56

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

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

query I rowsort
SELECT + 74 * + ( + 72 ) AS col0
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + 83 + - - NULLIF ( + + COUNT( * ), - 6 + COUNT( * ) * + ( - + 1 ) * ( - 51 ) )
----
84

skipif mysql # not compatible
query I rowsort label-5822
SELECT + 83 + - - NULLIF ( + + COUNT ( * ), - 6 + COUNT ( * ) * + ( - + 1 ) * ( - 51 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT + COUNT( * ) DIV + - NULLIF ( - 37, 84 + - + ( - 31 ) * - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT + COUNT ( * ) / + - NULLIF ( - 37, 84 + - + ( - 31 ) * - 39 )
----
0

query I rowsort
SELECT - 53 * 60 * - 33 + 79
----
105019

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT - 23 + - ( - - COALESCE ( 66, - + ( + - 73 ), + 46 * + MIN( + 83 ) + + - 48 * - 27 ) ) * + 20 AS col0, 57 col1
----
-1343
57

skipif mysql # not compatible
query II rowsort label-5826
SELECT - 23 + - ( - - COALESCE ( 66, - + ( + - 73 ), + 46 * + MIN ( + 83 ) + + - 48 * - 27 ) ) * + 20 AS col0, 57 col1
----
-1343
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT SUM( DISTINCT + - 78 ) * 97 + - NULLIF ( COUNT( * ), - 75 * + - 9 - + 35 * + 90 + + - 16 ) DIV 22 AS col2
----
-7566

skipif mysql # not compatible
query I rowsort label-5827
SELECT SUM ( DISTINCT + - 78 ) * 97 + - NULLIF ( COUNT ( * ), - 75 * + - 9 - + 35 * + 90 + + - 16 ) / 22 AS col2
----
-7566

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT NULLIF ( 96, + + 2 ) + - 28, + COUNT( * ) col0
----
68
1

skipif mysql # not compatible
query II rowsort label-5828
SELECT NULLIF ( 96, + + 2 ) + - 28, + COUNT ( * ) col0
----
68
1

query I rowsort
SELECT - 90 * - 85 AS col2
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + - COUNT( ALL + ( 74 ) ) + + NULLIF ( 0, 89 / + 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + - COUNT ( ALL + ( 74 ) ) + + NULLIF ( 0, 89 / + 15 )
----
-1

query I rowsort
SELECT - - 18 * - 71 + + NULLIF ( - + 53, 90 ) * 70 + + 30 * - + 66 AS col0
----
-6968

query I rowsort
SELECT - 21 + - 27
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT ALL - 63 - 69 * + 34 - - 84 DIV - 1 * COUNT( * ) AS col0
----
-2493

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - 63 - 69 * + 34 - - 84 / - 1 * COUNT ( * ) AS col0
----
-2493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT - CAST( + COUNT( * ) AS SIGNED ) - ( + - 56 )
----
55

skipif mysql # not compatible
query I rowsort label-5834
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) - ( + - 56 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + 2 * MIN( - 34 ) * + 59
----
-4012

skipif mysql # not compatible
query I rowsort label-5835
SELECT + 2 * MIN ( - 34 ) * + 59
----
-4012

query I rowsort
SELECT + 20 + - ( + 11 )
----
9

query II rowsort
SELECT ALL 56 AS col0, COALESCE ( + 39, - ( - 50 ) - - 5 ) + - 52
----
56
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT ALL 65 AS col0, + 63 + + - ( 49 ) + + NULLIF ( - CASE - MAX( - 48 ) WHEN - 96 THEN 93 END, - 93 )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-5838
SELECT ALL 65 AS col0, + 63 + + - ( 49 ) + + NULLIF ( - CASE - MAX ( - 48 ) WHEN - 96 THEN 93 END, - 93 )
----
65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT 59 DIV NULLIF ( 95, - 52 - + CASE + - 24 WHEN 97 THEN 86 END + + 85 * + 84 * + 48 )
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT 59 / NULLIF ( 95, - 52 - + CASE + - 24 WHEN 97 THEN 86 END + + 85 * + 84 * + 48 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT + 88 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-5840
SELECT + 88 / - 45
----
-1

query I rowsort
SELECT + 0 * + + ( + 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + 6 + + MIN( DISTINCT - + 37 ) - - - 74 - + 11 * + 66
----
-831

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 6 + + MIN ( DISTINCT - + 37 ) - - - 74 - + 11 * + 66
----
-831

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT - 13 DIV + 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - 13 / + 42 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL - 54 * - COUNT( * ) + + CAST( + 35 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - 54 * - COUNT ( * ) + + CAST ( + 35 AS INTEGER ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL + - COUNT( * ) * + + 99 + + 18 + - 70
----
-151

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + - COUNT ( * ) * + + 99 + + 18 + - 70
----
-151

query I rowsort
SELECT - 21 * 16 + + 36
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5847
SELECT - COUNT( * ) DIV - NULLIF ( - COUNT( - - ( - 7 ) ), + - 86 ) - 20 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COUNT ( * ) / - NULLIF ( - COUNT ( - - ( - 7 ) ), + - 86 ) - 20 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + - COUNT( * ) + 87
----
86

skipif mysql # not compatible
query I rowsort label-5848
SELECT + - COUNT ( * ) + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + + MAX( - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5849
SELECT + + MAX ( - - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5850
SELECT - 73 col2, - 87 DIV - CAST( + ( - ( + 4 ) ) AS SIGNED )
----
-73
-21

skipif mysql # not compatible
query II rowsort label-5850
SELECT - 73 col2, - 87 / - CAST ( + ( - ( + 4 ) ) AS INTEGER )
----
-73
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5852
SELECT ALL - 39 * 40 - - 46 + - COUNT( * ) + + 58 + - 27 * ( - - 22 ) + - 34 + + COUNT( * ) * - COUNT( - 0 ) DIV ( - 30 ) * - CAST( 37 AS SIGNED ) + + NULLIF ( - 32, - 96 + - COUNT( * ) * - CAST( NULL AS SIGNED ) )
----
-2117

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - 39 * 40 - - 46 + - COUNT ( * ) + + 58 + - 27 * ( - - 22 ) + - 34 + + COUNT ( * ) * - COUNT ( - 0 ) / ( - 30 ) * - CAST ( 37 AS INTEGER ) + + NULLIF ( - 32, - 96 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) )
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 83 * COUNT( * ) * - SUM( + 14 )
----
-1162

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 83 * COUNT ( * ) * - SUM ( + 14 )
----
-1162

query I rowsort
SELECT + + 74 * + - 13 - - 48 * - 6
----
-1250

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

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

query II rowsort
SELECT ALL + - 40 AS col0, + COALESCE ( + 35, + 6 )
----
-40
35

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

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

query I rowsort
SELECT ALL 80 * - 54
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT CAST( NULL AS SIGNED ) * + 38 + + 3 + - + 28 * - ( - SUM( + 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT CAST ( NULL AS INTEGER ) * + 38 + + 3 + - + 28 * - ( - SUM ( + 74 ) )
----
NULL

query I rowsort
SELECT - + 6 * 99 * - + 13 + - 31
----
7691

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT - COUNT ( * ) * - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - 79 * + COALESCE ( - 55, - 74, - 36 + - - 59 ) - + CASE - COALESCE ( AVG ( - 95 ), 3 ) WHEN + 45 THEN 18 END + + MAX( DISTINCT - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 79 * + COALESCE ( - 55, - 74, - 36 + - - 59 ) - + CASE - COALESCE ( AVG ( - 95 ), 3 ) WHEN + 45 THEN 18 END + + MAX ( DISTINCT - 20 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT - 66 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-5863
SELECT - 66 / - 7
----
9

query I rowsort
SELECT ALL CASE 47 WHEN + 45 - - 53 * 13 THEN NULL ELSE + COALESCE ( + + 55, + 70 * - 33 + - 63, 40 * + 95 + + - 73 + - + 73 - + 11 ) END
----
55

query I rowsort
SELECT DISTINCT NULLIF ( + 34, 1 + 70 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT COALESCE ( + 92, + - AVG ( ALL + - 9 ) * NULLIF ( - COUNT( * ), + COUNT( * ) ) DIV - ( + COUNT( * ) ) - - + 75 + - 91 + 95 - + 14 * 21, + 72 + + - CAST( 15 AS SIGNED ) ) * + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT COALESCE ( + 92, + - AVG ( ALL + - 9 ) * NULLIF ( - COUNT ( * ), + COUNT ( * ) ) / - ( + COUNT ( * ) ) - - + 75 + - 91 + 95 - + 14 * 21, + 72 + + - CAST ( 15 AS INTEGER ) ) * + COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT - 19 + - + 22 + - 65 + - 47 + + MAX( ALL - 7 ) DIV + 15 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-5867
SELECT - 19 + - + 22 + - 65 + - 47 + + MAX ( ALL - 7 ) / + 15 AS col1
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - MAX( - + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5869
SELECT - MAX ( - + 8 ) AS col1
----
8

query I rowsort
SELECT - 48 + + 65 * 14 AS col1
----
862

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

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

query I rowsort
SELECT ALL - 45 + - 78 * 84
----
-6597

query I rowsort
SELECT - 24 + + + 80
----
56

query II rowsort
SELECT - 72, 10 AS col0
----
-72
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5875
SELECT - CASE 36 WHEN + 68 * + 65 THEN + + CAST( NULL AS SIGNED ) DIV 44 + - 53 - - + 57 * + 92 ELSE + 99 END
----
-99

skipif mysql # not compatible
query I rowsort label-5875
SELECT - CASE 36 WHEN + 68 * + 65 THEN + + CAST ( NULL AS INTEGER ) / 44 + - 53 - - + 57 * + 92 ELSE + 99 END
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - 0 + - SUM( + + 0 ) * - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 0 + - SUM ( + + 0 ) * - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + 73 + + MAX( + 15 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + 73 + + MAX ( + 15 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + 0 + - + NULLIF ( - 29, + ( AVG ( 88 ) ) ) * - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + 0 + - + NULLIF ( - 29, + ( AVG ( 88 ) ) ) * - COUNT ( * )
----
-29

query I rowsort
SELECT DISTINCT - 28 + - 89 * 21
----
-1897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT - COALESCE ( + - COALESCE ( - 89, 86 * + 18 * 58 ), - - ( 75 ) * CAST( NULL AS SIGNED ) + - 99 )
----
-89

skipif mysql # not compatible
query I rowsort label-5880
SELECT - COALESCE ( + - COALESCE ( - 89, 86 * + 18 * 58 ), - - ( 75 ) * CAST ( NULL AS INTEGER ) + - 99 )
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT + 47 + - 38 + - 50 * - - ( - COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-5882
SELECT + 47 + - 38 + - 50 * - - ( - COUNT ( * ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT ALL - COALESCE ( + + CAST( + 29 AS SIGNED ), + + 8 ) + 51
----
22

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - COALESCE ( + + CAST ( + 29 AS INTEGER ), + + 8 ) + 51
----
22

query II rowsort
SELECT ALL 50 AS col2, - 23
----
50
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT ALL 77 DIV + + 92 + 23
----
23

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 77 / + + 92 + 23
----
23

query I rowsort
SELECT - - 14 * ( - - 73 ) + - 26 AS col2
----
996

query I rowsort
SELECT + 1 - - 25
----
26

query I rowsort
SELECT + + NULLIF ( + 34, + 44 ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5890
SELECT DISTINCT + 79 DIV - 48 DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + 79 / - 48 / - COUNT ( * )
----
1

query II rowsort
SELECT + 46 AS col2, 28 AS col2
----
46
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT - COUNT( * ) - - NULLIF ( - 41, - 76 + 54 / 48 ) * + + 79
----
-3240

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - COUNT ( * ) - - NULLIF ( - 41, - 76 + 54 / 48 ) * + + 79
----
-3240

onlyif mysql # aggregate syntax: 
query III rowsort label-5894
SELECT ALL - + 20 AS col2, + 97 AS col1, - COUNT( * ) AS col1
----
-20
97
-1

skipif mysql # not compatible
query III rowsort label-5894
SELECT ALL - + 20 AS col2, + 97 AS col1, - COUNT ( * ) AS col1
----
-20
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5895
SELECT ALL COUNT( * ) DIV - COALESCE ( 93, - 52 + - - 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL COUNT ( * ) / - COALESCE ( 93, - 52 + - - 17 ) AS col1
----
0

query I rowsort
SELECT + 3 * + + 60 * 98 + 69 col0
----
17709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT 27 * - 52 * - 59 * - 80 + + SUM( ALL - CAST( ( 6 ) AS SIGNED ) ) + ( COUNT( * ) ) + + - 19 * - - 17
----
-6627208

skipif mysql # not compatible
query I rowsort label-5897
SELECT 27 * - 52 * - 59 * - 80 + + SUM ( ALL - CAST ( ( 6 ) AS INTEGER ) ) + ( COUNT ( * ) ) + + - 19 * - - 17
----
-6627208

query I rowsort
SELECT NULLIF ( + + 65, + - 57 ) * 96 + 23 * - - ( - + 58 ) AS col0
----
4906

query I rowsort
SELECT ALL - ( + NULLIF ( - - 60, - 8 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - MAX( ALL - + 31 ) + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5900
SELECT - MAX ( ALL - + 31 ) + - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT + - COALESCE ( - 59, - 77 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT 43 * + 71 * + COUNT( * ) col2
----
3053

skipif mysql # not compatible
query I rowsort label-5902
SELECT 43 * + 71 * + COUNT ( * ) col2
----
3053

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

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

query I rowsort
SELECT DISTINCT - 31 * - 64
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT 22 + - 25 - - COUNT( * ) * + 43
----
40

skipif mysql # not compatible
query I rowsort label-5905
SELECT 22 + - 25 - - COUNT ( * ) * + 43
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-5906
SELECT 41 DIV 4, + 36 DIV 87 DIV + 47 AS col2
----
10
0

skipif mysql # not compatible
query II rowsort label-5906
SELECT 41 / 4, + 36 / 87 / + 47 AS col2
----
10
0

query I rowsort
SELECT ( 18 ) * - 71 AS col2
----
-1278

query I rowsort
SELECT 15 - + 36 + + 50 * - 98
----
-4921

query I rowsort
SELECT ALL - 14 + + - ( - + 9 ) AS col1
----
-5

query I rowsort
SELECT 50 * 60
----
3000

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5912
SELECT 56 DIV CAST( - 25 AS SIGNED ) * 16
----
-32

skipif mysql # not compatible
query I rowsort label-5912
SELECT 56 / CAST ( - 25 AS INTEGER ) * 16
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT + ( + ( ( + SUM( ALL + CASE + ( 76 ) WHEN + 29 THEN - - 83 WHEN ( - - 58 ) - - - 56 THEN + 23 ELSE NULL END ) ) ) ) * + 96 * + 4 * + - CASE + + 38 WHEN - - 87 THEN NULL WHEN - COUNT( - - 24 ) * - 5 + - 61 + + 36 THEN - 65 - - 25 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + ( + ( ( + SUM ( ALL + CASE + ( 76 ) WHEN + 29 THEN - - 83 WHEN ( - - 58 ) - - - 56 THEN + 23 ELSE NULL END ) ) ) ) * + 96 * + 4 * + - CASE + + 38 WHEN - - 87 THEN NULL WHEN - COUNT ( - - 24 ) * - 5 + - 61 + + 36 THEN - 65 - - 25 ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 94 - 34 * - 38 - 7 + + 29 * - 34
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT 30 * + 76 * 32 * - - COUNT( * )
----
72960

skipif mysql # not compatible
query I rowsort label-5915
SELECT 30 * + 76 * 32 * - - COUNT ( * )
----
72960

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT ALL + + COUNT( * ) - 4 AS col2, 27
----
-3
27

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL + + COUNT ( * ) - 4 AS col2, 27
----
-3
27

query I rowsort
SELECT DISTINCT + + 8 * + 0 * ( - + 43 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL - + CASE COUNT( * ) WHEN + - 20 * COUNT( * ) - + COALESCE ( + CAST( NULL AS SIGNED ), - ( 49 ) ) THEN + 47 + 78 WHEN + + 98 * + COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - + CASE COUNT ( * ) WHEN + - 20 * COUNT ( * ) - + COALESCE ( + CAST ( NULL AS INTEGER ), - ( 49 ) ) THEN + 47 + 78 WHEN + + 98 * + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ALL - + NULLIF ( + COUNT( * ), COUNT( * ) * - ( COUNT( * ) ) + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL - + NULLIF ( + COUNT ( * ), COUNT ( * ) * - ( COUNT ( * ) ) + 43 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT 14 * - 3 - - SUM( - 30 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT 14 * - 3 - - SUM ( - 30 ) AS col2
----
-72

query I rowsort
SELECT + - 37 * - 1 + + 48 * - 4 AS col0
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT - MAX( + 72 ) DIV 5 DIV + + 19 + + + 35
----
35

skipif mysql # not compatible
query I rowsort label-5923
SELECT - MAX ( + 72 ) / 5 / + + 19 + + + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL 98 * + - 27 / CASE + NULLIF ( 96, 41 ) WHEN - CASE - 95 WHEN - 64 THEN + 51 WHEN + 8 / COUNT( * ) * - + NULLIF ( + + 89, - 34 ) / - - COUNT( - + 95 ) THEN NULL ELSE + 92 / - 26 * + 91 - - + 62 END THEN - 62 WHEN 49 THEN - 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL 98 * + - 27 / CASE + NULLIF ( 96, 41 ) WHEN - CASE - 95 WHEN - 64 THEN + 51 WHEN + 8 / COUNT ( * ) * - + NULLIF ( + + 89, - 34 ) / - - COUNT ( - + 95 ) THEN NULL ELSE + 92 / - 26 * + 91 - - + 62 END THEN - 62 WHEN 49 THEN - 99 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT + 68 / - - 84 + + 72 + - 10 * + ( + NULLIF ( - CASE - + 76 WHEN + + 77 THEN NULL WHEN 36 THEN COALESCE ( - + CAST( NULL AS SIGNED ), - + AVG ( + 79 ), - - NULLIF ( 69, + - 9 ) ) * - ( + 33 ) / - 15 - + NULLIF ( + 31, 65 ) ELSE NULL END, + MAX( 80 ) * + 82 ) ) - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT + 68 / - - 84 + + 72 + - 10 * + ( + NULLIF ( - CASE - + 76 WHEN + + 77 THEN NULL WHEN 36 THEN COALESCE ( - + CAST ( NULL AS INTEGER ), - + AVG ( + 79 ), - - NULLIF ( 69, + - 9 ) ) * - ( + 33 ) / - 15 - + NULLIF ( + 31, 65 ) ELSE NULL END, + MAX ( 80 ) * + 82 ) ) - 42 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5926
SELECT ALL + + 41 DIV + NULLIF ( - NULLIF ( - 57, - - CAST( NULL AS SIGNED ) ), + 30 * + AVG ( 55 ) * - 85 + - + 15 + - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL + + 41 / + NULLIF ( - NULLIF ( - 57, - - CAST ( NULL AS INTEGER ) ), + 30 * + AVG ( 55 ) * - 85 + - + 15 + - 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL - - NULLIF ( + - 50, - NULLIF ( + COUNT( * ), COUNT( * ) / + + 13 + + + 60 * + 69 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - - NULLIF ( + - 50, - NULLIF ( + COUNT ( * ), COUNT ( * ) / + + 13 + + + 60 * + 69 ) )
----
-50

query II rowsort
SELECT ALL - 93 + + - 58, - 36 * 73 AS col0
----
-151
-2628

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL NULLIF ( + 52, + 14 ) * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL NULLIF ( + 52, + 14 ) * - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT CAST( NULL AS SIGNED ) / SUM( + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT CAST ( NULL AS INTEGER ) / SUM ( + 2 ) AS col1
----
NULL

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

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

query II rowsort
SELECT 35 + - ( + ( + - 15 ) ) col2, 39
----
50
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT 57 * + COALESCE ( - NULLIF ( + + COUNT( * ), 19 + + 59 * 90 ), - NULLIF ( - COUNT( * ), COUNT( * ) + - - COUNT( * ) ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-5936
SELECT 57 * + COALESCE ( - NULLIF ( + + COUNT ( * ), 19 + + 59 * 90 ), - NULLIF ( - COUNT ( * ), COUNT ( * ) + - - COUNT ( * ) ) ) col2
----
-57

onlyif mysql # aggregate syntax: 
query III rowsort label-5937
SELECT ALL 15 AS col1, - 69 - NULLIF ( ( 79 ), - 72 + - 26 * - 37 * - 81 ), - NULLIF ( + 22, + NULLIF ( + - MIN( + 40 ), 97 ) * + 50 + + - 73 ) AS col0
----
15
-148
-22

skipif mysql # not compatible
query III rowsort label-5937
SELECT ALL 15 AS col1, - 69 - NULLIF ( ( 79 ), - 72 + - 26 * - 37 * - 81 ), - NULLIF ( + 22, + NULLIF ( + - MIN ( + 40 ), 97 ) * + 50 + + - 73 ) AS col0
----
15
-148
-22

query I rowsort
SELECT DISTINCT ( - ( - 34 ) ) * + - 65
----
-2210

onlyif mysql # aggregate syntax: 
query II rowsort label-5939
SELECT ( - COUNT( * ) ) * + + 66 * + 76 + + 69 * - 8, 97 AS col1
----
-5568
97

skipif mysql # not compatible
query II rowsort label-5939
SELECT ( - COUNT ( * ) ) * + + 66 * + 76 + + 69 * - 8, 97 AS col1
----
-5568
97

query I rowsort
SELECT 60 + + - 84 AS col0
----
-24

query II rowsort
SELECT - 83 AS col0, NULLIF ( + 4, - + 24 )
----
-83
4

query I rowsort
SELECT ALL 29 * - + 42 AS col1
----
-1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT ( + + CAST( - - 9 AS SIGNED ) ) + + ( 36 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5943
SELECT ( + + CAST ( - - 9 AS INTEGER ) ) + + ( 36 ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5944
SELECT + 11 + 44 - 56 * COUNT( * ) + + 74 DIV - 7 AS col0, ( - + 43 ) + - 37 AS col2
----
-11
-80

skipif mysql # not compatible
query II rowsort label-5944
SELECT + 11 + 44 - 56 * COUNT ( * ) + + 74 / - 7 AS col0, ( - + 43 ) + - 37 AS col2
----
-11
-80

query I rowsort
SELECT - ( + 77 ) * - 63 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT + COALESCE ( CASE COUNT( * ) WHEN + ( - + 73 ) THEN NULL WHEN 39 THEN - 44 ELSE NULL END, + 1 - - 30 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5946
SELECT + COALESCE ( CASE COUNT ( * ) WHEN + ( - + 73 ) THEN NULL WHEN 39 THEN - 44 ELSE NULL END, + 1 - - 30 ) AS col0
----
31

query I rowsort
SELECT - + 26 + + 31 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - COALESCE ( - + COUNT( * ), + + 35 + + - 14, - 35 + + - 86 * + 80 * + 92, + SUM( ALL + 1 ) * - + COALESCE ( + 88, - 47 + + ( - + 69 ) ) - - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - COALESCE ( - + COUNT ( * ), + + 35 + + - 14, - 35 + + - 86 * + 80 * + 92, + SUM ( ALL + 1 ) * - + COALESCE ( + 88, - 47 + + ( - + 69 ) ) - - 61 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5949
SELECT DISTINCT COALESCE ( + 36, + + SUM( + 74 ) ) - - - COALESCE ( + 60, - 18 + + 60 ) AS col0, - 76 + + 23 + + 90 + + 46 AS col1
----
-24
83

skipif mysql # not compatible
query II rowsort label-5949
SELECT DISTINCT COALESCE ( + 36, + + SUM ( + 74 ) ) - - - COALESCE ( + 60, - 18 + + 60 ) AS col0, - 76 + + 23 + + 90 + + 46 AS col1
----
-24
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT ALL - 40 * - 51 + - + ( + 7 ) + - + 13 DIV + - 18 * + 11 * + 55 AS col0
----
2033

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - 40 * - 51 + - + ( + 7 ) + - + 13 / + - 18 * + 11 * + 55 AS col0
----
2033

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - - COUNT( * ) + + 8 col0
----
9

skipif mysql # not compatible
query I rowsort label-5951
SELECT - - COUNT ( * ) + + 8 col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT ALL 19 DIV ( - ( + - 15 ) ) + - 17 + - - 19 * + + 86 * + 40 col0
----
65344

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL 19 / ( - ( + - 15 ) ) + - 17 + - - 19 * + + 86 * + 40 col0
----
65344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL CAST( + - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL CAST ( + - 63 AS INTEGER )
----
-63

query I rowsort
SELECT + 2 * + 66 - + 30 + 6 * - 45
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - MIN( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5956
SELECT - MIN ( 83 )
----
-83

query II rowsort
SELECT + 76, + 33 col1
----
76
33

query II rowsort
SELECT DISTINCT + 75 AS col2, - 99
----
75
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5959
SELECT ALL + ( + CASE 17 WHEN + - 29 DIV - - 44 THEN + 32 END ) * + 64 + + + 76, 54 DIV - - COUNT( * ) AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5959
SELECT ALL + ( + CASE 17 WHEN + - 29 / - - 44 THEN + 32 END ) * + 64 + + + 76, 54 / - - COUNT ( * ) AS col1
----
NULL
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT ALL + CASE - 62 WHEN - 3 THEN COUNT( * ) ELSE NULL END, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5960
SELECT ALL + CASE - 62 WHEN - 3 THEN COUNT ( * ) ELSE NULL END, 93 AS col2
----
NULL
93

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

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

query I rowsort
SELECT ALL 38 * 76 + + + 7 col1
----
2895

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5963
SELECT ALL - 39 * 49 + 56 * + + 9 AS col0, 52 DIV - COUNT( * ) AS col0
----
-1407
-52

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL - 39 * 49 + 56 * + + 9 AS col0, 52 / - COUNT ( * ) AS col0
----
-1407
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT - + NULLIF ( COUNT( * ), AVG ( ALL + + 33 ) ) * 3 + - MIN( - + 61 )
----
58

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - + NULLIF ( COUNT ( * ), AVG ( ALL + + 33 ) ) * 3 + - MIN ( - + 61 )
----
58

query I rowsort
SELECT - 4 * + ( 18 ) * + - 25 + - 61 * + COALESCE ( + 5, 90 * + - 16 * 38 ) * + 47 + + - 40 - + CASE + + 62 WHEN + 30 THEN NULLIF ( + 36, + 5 + - 35 ) * + 81 + - - 94 ELSE NULL END * - 95 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT + MAX( - + ( - + 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5966
SELECT + MAX ( - + ( - + 20 ) ) AS col1
----
20

query I rowsort
SELECT ALL - 11 * 22 + - 39 AS col2
----
-281

query I rowsort
SELECT NULLIF ( - + 25, - 20 ) col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT ALL 96 * + 27, SUM( DISTINCT 87 ) * 12 AS col1
----
2592
1044

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL 96 * + 27, SUM ( DISTINCT 87 ) * 12 AS col1
----
2592
1044

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT + MAX( DISTINCT 53 ) AS col1, - 67 col0
----
53
-67

skipif mysql # not compatible
query II rowsort label-5970
SELECT + MAX ( DISTINCT 53 ) AS col1, - 67 col0
----
53
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT 9 * + 30 + - + 6 + + COUNT( * )
----
265

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT 9 * + 30 + - + 6 + + COUNT ( * )
----
265

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5973
SELECT DISTINCT - CAST( + SUM( + 13 ) AS SIGNED ) * + - MIN( - - 7 )
----
91

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - CAST ( + SUM ( + 13 ) AS INTEGER ) * + - MIN ( - - 7 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT + 6 DIV - - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 6 / - - 12 AS col0
----
0

query I rowsort
SELECT - 18 * + 44 col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT + 24 + - COUNT( * ) + - COUNT( * ) * - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5976
SELECT + 24 + - COUNT ( * ) + - COUNT ( * ) * - - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5977
SELECT - 35 DIV - 47 AS col0, 81 + MIN( DISTINCT 49 )
----
0
130

skipif mysql # not compatible
query II rowsort label-5977
SELECT - 35 / - 47 AS col0, 81 + MIN ( DISTINCT 49 )
----
0
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT COUNT( - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5978
SELECT COUNT ( - 79 ) AS col1
----
1

query I rowsort
SELECT + ( + - 93 ) + + 22 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT - 11 * + COUNT( * ) * - 14
----
154

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT - 11 * + COUNT ( * ) * - 14
----
154

query I rowsort
SELECT + - 3 - - + ( 55 )
----
52

query I rowsort
SELECT - CASE 4 WHEN - 13 THEN NULL WHEN COALESCE ( 34, - 20 + + - 50 - - 24 ) THEN NULL ELSE 90 END
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5983
SELECT ( 7 ), NULLIF ( 9, - + MAX( DISTINCT + 57 ) ) AS col2
----
7
9

skipif mysql # not compatible
query II rowsort label-5983
SELECT ( 7 ), NULLIF ( 9, - + MAX ( DISTINCT + 57 ) ) AS col2
----
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - ( - MIN( ALL - + 62 ) ) + 21 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - ( - MIN ( ALL - + 62 ) ) + 21 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT - 90 * - SUM( DISTINCT 86 )
----
7740

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT - 90 * - SUM ( DISTINCT 86 )
----
7740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL + + CAST( NULL AS SIGNED ) / - 17 + + COUNT( ALL - NULLIF ( + 92, + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + + CAST ( NULL AS INTEGER ) / - 17 + + COUNT ( ALL - NULLIF ( + 92, + 35 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5987
SELECT DISTINCT + - 81 / - 92 * - CAST( NULL AS SIGNED ) * - 79 + - SUM( - 89 ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + - 81 / - 92 * - CAST ( NULL AS INTEGER ) * - 79 + - SUM ( - 89 ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5988
SELECT + - 70 DIV 47 + - NULLIF ( + 89, + CAST( NULL AS SIGNED ) * NULLIF ( + 77, + 15 + ( COUNT( * ) ) + - - 47 ) DIV 53 ) + + 72 * - NULLIF ( CAST( COUNT( * ) AS SIGNED ), SUM( DISTINCT - + 39 ) * - 8 ) * + - 37 + - 51 * + 43 col1
----
381

skipif mysql # not compatible
query I rowsort label-5988
SELECT + - 70 / 47 + - NULLIF ( + 89, + CAST ( NULL AS INTEGER ) * NULLIF ( + 77, + 15 + ( COUNT ( * ) ) + - - 47 ) / 53 ) + + 72 * - NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), SUM ( DISTINCT - + 39 ) * - 8 ) * + - 37 + - 51 * + 43 col1
----
381

query I rowsort
SELECT - 90 * 34
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL - 67 DIV + + 58 + + 67 * - - ( - 69 ) AS col0
----
-4624

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - 67 / + + 58 + + 67 * - - ( - 69 ) AS col0
----
-4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5991
SELECT - 62 * - ( - 72 ) + - CAST( NULL AS SIGNED ) + - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 62 * - ( - 72 ) + - CAST ( NULL AS INTEGER ) + - - 21 AS col2
----
NULL

query I rowsort
SELECT - 60 + + - 29 * + ( - 39 ) AS col1
----
1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT ALL + 90 DIV - 62 + COUNT( * ) + 52 AS col1
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - COUNT( * ) + + + 8 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5994
SELECT - COUNT ( * ) + + + 8 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT 40 * - - NULLIF ( - MAX( DISTINCT + + 37 ), + 90 + - + 82 ) AS col0, - 3 + + + 1 AS col0
----
-1480
-2

skipif mysql # not compatible
query II rowsort label-5996
SELECT 40 * - - NULLIF ( - MAX ( DISTINCT + + 37 ), + 90 + - + 82 ) AS col0, - 3 + + + 1 AS col0
----
-1480
-2

query I rowsort
SELECT 76 * 11 col1
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT ALL 80, COUNT( 57 ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-5998
SELECT ALL 80, COUNT ( 57 ) AS col1
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL - CASE - AVG ( ( - 10 ) ) WHEN - 58 THEN - 44 / + + ( - CASE - - 47 WHEN + 30 + + 77 THEN 34 END ) - - 43 ELSE NULL END / - COUNT( * ) * - NULLIF ( - + 63, - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - CASE - AVG ( ( - 10 ) ) WHEN - 58 THEN - 44 / + + ( - CASE - - 47 WHEN + 30 + + 77 THEN 34 END ) - - 43 ELSE NULL END / - COUNT ( * ) * - NULLIF ( - + 63, - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 66 * + - 50 * 76 AS col2
----
-250800

query I rowsort
SELECT ALL 76 * - 72 AS col0
----
-5472

query I rowsort
SELECT DISTINCT - 47 * - + 52 AS col0
----
2444

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

skipif mysql # not compatible
query I rowsort label-6003
SELECT COUNT ( * ) - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL CASE 24 WHEN - COUNT( * ) THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL CASE 24 WHEN - COUNT ( * ) THEN + 53 END
----
NULL

query I rowsort
SELECT 64 * - 85 AS col0
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - + COALESCE ( - MAX( ( + - 20 ) ), + 73 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-6006
SELECT - + COALESCE ( - MAX ( ( + - 20 ) ), + 73 ) col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT 84 - + CAST( 73 AS SIGNED ) * 84 - MAX( DISTINCT 49 ) col1
----
-6097

skipif mysql # not compatible
query I rowsort label-6007
SELECT 84 - + CAST ( 73 AS INTEGER ) * 84 - MAX ( DISTINCT 49 ) col1
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - ( + 9 ) + - - COUNT( + 12 )
----
-8

skipif mysql # not compatible
query I rowsort label-6008
SELECT - ( + 9 ) + - - COUNT ( + 12 )
----
-8

query I rowsort
SELECT ALL - - ( + 33 ) + - + 51
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT 33 + + - 96 - - 63 * + COALESCE ( 4, - COUNT( * ) )
----
189

skipif mysql # not compatible
query I rowsort label-6010
SELECT 33 + + - 96 - - 63 * + COALESCE ( 4, - COUNT ( * ) )
----
189

query I rowsort
SELECT ALL 64 + + 13 * - 60
----
-716

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT MAX( ALL - 90 ) + 41
----
-49

skipif mysql # not compatible
query I rowsort label-6012
SELECT MAX ( ALL - 90 ) + 41
----
-49

query I rowsort
SELECT + 48 + + + 0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT COALESCE ( 74, + CASE 51 WHEN + + 82 THEN 95 + + - 2 WHEN - 21 THEN + + 81 ELSE - - 98 - - 47 * + + COUNT( * ) END ) + - 74
----
0

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT COALESCE ( 74, + CASE 51 WHEN + + 82 THEN 95 + + - 2 WHEN - 21 THEN + + 81 ELSE - - 98 - - 47 * + + COUNT ( * ) END ) + - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL + COUNT( * ) + COALESCE ( - - 72, - 76, + - 2 ) + - 39
----
34

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL + COUNT ( * ) + COALESCE ( - - 72, - 76, + - 2 ) + - 39
----
34

query I rowsort
SELECT 2 + - + 82 * 70
----
-5738

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + COUNT( * ) * + 40 * - 17
----
-680

skipif mysql # not compatible
query I rowsort label-6018
SELECT + COUNT ( * ) * + 40 * - 17
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT ALL CASE 34 WHEN - 38 * + 62 - - - 52 + ( + COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) ) * + NULLIF ( - 19, - 45 ) * 3 + + 31 THEN - COUNT( + 64 ) WHEN - 59 * + 55 THEN - 18 + + 24 END * + COUNT( * ) * - + ( + + ( - COUNT( * ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL CASE 34 WHEN - 38 * + 62 - - - 52 + ( + COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) ) * + NULLIF ( - 19, - 45 ) * 3 + + 31 THEN - COUNT ( + 64 ) WHEN - 59 * + 55 THEN - 18 + + 24 END * + COUNT ( * ) * - + ( + + ( - COUNT ( * ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6020
SELECT ALL - 89 col0, 20 + + 7 + 83 + CAST( 46 AS SIGNED ) / SUM( - NULLIF ( + 40, + 20 * + ( - + 14 ) + - 73 ) ) + + 41 * 12 + 59 * CAST( NULL AS SIGNED ) * + - 45 AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-6020
SELECT ALL - 89 col0, 20 + + 7 + 83 + CAST ( 46 AS INTEGER ) / SUM ( - NULLIF ( + 40, + 20 * + ( - + 14 ) + - 73 ) ) + + 41 * 12 + 59 * CAST ( NULL AS INTEGER ) * + - 45 AS col0
----
-89
NULL

query II rowsort
SELECT DISTINCT - 63, - ( - 35 ) AS col2
----
-63
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT ALL - 96 - CAST( + + 99 AS SIGNED )
----
-195

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - 96 - CAST ( + + 99 AS INTEGER )
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT + 41 DIV + MIN( - 74 ) * + + 12
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + 41 / + MIN ( - 74 ) * + + 12
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6024
SELECT 50 DIV - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6024
SELECT 50 / - COUNT ( * ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT DISTINCT CASE 41 WHEN 26 * - 41 THEN NULL WHEN - + SUM( DISTINCT + ( - - 19 ) ) + 21 THEN NULL ELSE + 53 DIV + - ( - 37 ) END DIV + 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT CASE 41 WHEN 26 * - 41 THEN NULL WHEN - + SUM ( DISTINCT + ( - - 19 ) ) + 21 THEN NULL ELSE + 53 / + - ( - 37 ) END / + 47 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6026
SELECT ( - 68 ) - SUM( 59 ) AS col1, 30 + - - ( - 71 ) + - 69 col2
----
-127
-110

skipif mysql # not compatible
query II rowsort label-6026
SELECT ( - 68 ) - SUM ( 59 ) AS col1, 30 + - - ( - 71 ) + - 69 col2
----
-127
-110

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ( - 51 ) + 56 * + 9 DIV + 88 DIV NULLIF ( - - 42, + 31 * + CASE + + 67 WHEN + - 97 THEN + + ( - + 8 ) DIV - + 87 ELSE NULL END ) * 67 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6028
SELECT ( - 51 ) + 56 * + 9 / + 88 / NULLIF ( - - 42, + 31 * + CASE + + 67 WHEN + - 97 THEN + + ( - + 8 ) / - + 87 ELSE NULL END ) * 67 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT 85 * + + MIN( ALL - 71 ) AS col0
----
-6035

skipif mysql # not compatible
query I rowsort label-6029
SELECT 85 * + + MIN ( ALL - 71 ) AS col0
----
-6035

query II rowsort
SELECT + 76 AS col0, 41
----
76
41

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6032
SELECT ALL - COUNT( * ) AS col1, 66 + - 67 * + + CASE - 31 WHEN - 2 THEN - + 22 + - 85 * - - COUNT( * ) ELSE NULL END AS col2, - + 55 AS col2
----
-1
NULL
-55

skipif mysql # not compatible
query III rowsort label-6032
SELECT ALL - COUNT ( * ) AS col1, 66 + - 67 * + + CASE - 31 WHEN - 2 THEN - + 22 + - 85 * - - COUNT ( * ) ELSE NULL END AS col2, - + 55 AS col2
----
-1
NULL
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT 75 * 19 * - 34 * 29 AS col0, + COUNT( ALL - - 33 ) AS col0
----
-1405050
1

skipif mysql # not compatible
query II rowsort label-6033
SELECT 75 * 19 * - 34 * 29 AS col0, + COUNT ( ALL - - 33 ) AS col0
----
-1405050
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6034
SELECT ALL - 61 * + - 99 * 82 * + 31 AS col1, COUNT( DISTINCT 64 ) * 35 AS col1
----
15351138
35

skipif mysql # not compatible
query II rowsort label-6034
SELECT ALL - 61 * + - 99 * 82 * + 31 AS col1, COUNT ( DISTINCT 64 ) * 35 AS col1
----
15351138
35

query I rowsort
SELECT DISTINCT - NULLIF ( - - 96, + 74 )
----
-96

query I rowsort
SELECT 85 - - 69 AS col2
----
154

query I rowsort
SELECT ALL COALESCE ( - 50, + 59 + - + 38 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6038
SELECT NULLIF ( + 65, + - 76 * - + 10 ) + + COUNT( DISTINCT - 24 ) col2, 2 AS col2
----
66
2

skipif mysql # not compatible
query II rowsort label-6038
SELECT NULLIF ( + 65, + - 76 * - + 10 ) + + COUNT ( DISTINCT - 24 ) col2, 2 AS col2
----
66
2

query I rowsort
SELECT - + NULLIF ( - 53, + 19 + + 15 ) AS col0
----
53

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

query I rowsort
SELECT + 29 * - 4
----
-116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - + 11 + + COUNT( * ) + 74 + + 74 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - + 11 + + COUNT ( * ) + 74 + + 74 AS col2
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT 6, CASE COUNT( * ) WHEN 59 THEN + - NULLIF ( - ( - + 83 ), 38 - - + 48 ) + - - 30 * - 5 ELSE NULL END AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-6044
SELECT 6, CASE COUNT ( * ) WHEN 59 THEN + - NULLIF ( - ( - + 83 ), 38 - - + 48 ) + - - 30 * - 5 ELSE NULL END AS col0
----
6
NULL

query I rowsort
SELECT - 96 * - 5
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6046
SELECT DISTINCT + - ( + 57 ) DIV + - 82 + + - CAST( + - 67 AS SIGNED ) + + 18 + + NULLIF ( + + 56, + + ( COUNT( * ) ) ) DIV - + COALESCE ( + 98, + COALESCE ( 33, + 91 * + 18 * + MIN( ALL - 84 ), + - 84 * + 7 ) + - 62 + - + 65 + + CASE + COALESCE ( - 63, NULLIF ( + 51, + 82 * - 75 ) + - 62 * + 66 ) WHEN AVG ( DISTINCT 26 ) THEN NULL ELSE 55 END * + COUNT( * ) DIV 31 ) * - 44 col0
----
85

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + - ( + 57 ) / + - 82 + + - CAST ( + - 67 AS INTEGER ) + + 18 + + NULLIF ( + + 56, + + ( COUNT ( * ) ) ) / - + COALESCE ( + 98, + COALESCE ( 33, + 91 * + 18 * + MIN ( ALL - 84 ), + - 84 * + 7 ) + - 62 + - + 65 + + CASE + COALESCE ( - 63, NULLIF ( + 51, + 82 * - 75 ) + - 62 * + 66 ) WHEN AVG ( DISTINCT 26 ) THEN NULL ELSE 55 END * + COUNT ( * ) / 31 ) * - 44 col0
----
85

query I rowsort
SELECT DISTINCT 53 * - 52 AS col0
----
-2756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT ALL + CAST( - 32 AS SIGNED ) * - 30 + - - 15 AS col2
----
975

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + CAST ( - 32 AS INTEGER ) * - 30 + - - 15 AS col2
----
975

query I rowsort
SELECT ALL + - 7 + 41 + 60 * 68 AS col0
----
4114

query I rowsort
SELECT + 45 * - + 69
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - - COALESCE ( - 78, 99 * + CASE 9 WHEN - MIN( DISTINCT 60 ) THEN NULL ELSE 61 END + + 31 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6051
SELECT - - COALESCE ( - 78, 99 * + CASE 9 WHEN - MIN ( DISTINCT 60 ) THEN NULL ELSE 61 END + + 31 ) AS col2
----
-78

query I rowsort
SELECT - + ( + - 8 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT 58 - - 61 DIV 27 + - 7
----
53

skipif mysql # not compatible
query I rowsort label-6053
SELECT 58 - - 61 / 27 + - 7
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT - 68 * - 60 DIV COUNT( * )
----
4080

skipif mysql # not compatible
query I rowsort label-6054
SELECT - 68 * - 60 / COUNT ( * )
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT DISTINCT 12, MIN( ALL 74 ) col2
----
12
74

skipif mysql # not compatible
query II rowsort label-6055
SELECT DISTINCT 12, MIN ( ALL 74 ) col2
----
12
74

query I rowsort
SELECT 47 * - 17 * 27 AS col1
----
-21573

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT 29 AS col1, + COUNT( + - 41 ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-6057
SELECT 29 AS col1, + COUNT ( + - 41 ) AS col0
----
29
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT DISTINCT SUM( DISTINCT 64 ) AS col0, - ( 70 ) AS col2
----
64
-70

skipif mysql # not compatible
query II rowsort label-6058
SELECT DISTINCT SUM ( DISTINCT 64 ) AS col0, - ( 70 ) AS col2
----
64
-70

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

skipif mysql # not compatible
query I rowsort label-6059
SELECT 41 * - COUNT ( * )
----
-41

query II rowsort
SELECT DISTINCT 66 * + 72 AS col0, 17 AS col1
----
4752
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT CASE + + 93 WHEN - 12 + + 15 THEN - NULLIF ( NULLIF ( COUNT( * ), COUNT( * ) / 96 ), + - 65 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT CASE + + 93 WHEN - 12 + + 15 THEN - NULLIF ( NULLIF ( COUNT ( * ), COUNT ( * ) / 96 ), + - 65 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 28, - 50 ) * 63
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + COALESCE ( - - 76, 8 * - NULLIF ( - ( 88 ), + 30 + CASE 19 WHEN + 10 THEN - 56 * - - 32 ELSE NULL END + - COUNT( DISTINCT + 76 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-6063
SELECT + COALESCE ( - - 76, 8 * - NULLIF ( - ( 88 ), + 30 + CASE 19 WHEN + 10 THEN - 56 * - - 32 ELSE NULL END + - COUNT ( DISTINCT + 76 ) ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 5
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6065
SELECT ALL + 93 DIV + + 9 AS col0, - 35
----
10
-35

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL + 93 / + + 9 AS col0, - 35
----
10
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6066
SELECT 2 * + COUNT( * ) / + COUNT( 41 ) * + CAST( NULL AS SIGNED ) + ( 83 ) AS col1, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-6066
SELECT 2 * + COUNT ( * ) / + COUNT ( 41 ) * + CAST ( NULL AS INTEGER ) + ( 83 ) AS col1, 26
----
NULL
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT + COALESCE ( SUM( ALL + + 93 ), 87 - + + 5 ), 32 + + - 33 col0
----
93
-1

skipif mysql # not compatible
query II rowsort label-6067
SELECT + COALESCE ( SUM ( ALL + + 93 ), 87 - + + 5 ), 32 + + - 33 col0
----
93
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT - CAST( 52 AS SIGNED ) + ( 25 ) * - + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6068
SELECT - CAST ( 52 AS INTEGER ) + ( 25 ) * - + COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT + SUM( 1 ), + 21 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-6069
SELECT + SUM ( 1 ), + 21 AS col2
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + 53 - + ( - + 9 ) * - 8 + - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 53 - + ( - + 9 ) * - 8 + - COUNT ( * ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL - COUNT( * ) + 67 + - 32 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - COUNT ( * ) + 67 + - 32 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + CASE - 96 WHEN + - 27 THEN NULL WHEN + + 97 * ( 40 ) THEN COALESCE ( - 77, 80 ) * - AVG ( ALL 60 ) + + COUNT( * ) END * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT + CASE - 96 WHEN + - 27 THEN NULL WHEN + + 97 * ( 40 ) THEN COALESCE ( - 77, 80 ) * - AVG ( ALL 60 ) + + COUNT ( * ) END * - 3 AS col0
----
NULL

query I rowsort
SELECT ALL - 30 + ( + 66 ) AS col2
----
36

query II rowsort
SELECT ALL + 72 * - NULLIF ( + + 54, - 25 * - + CASE - 11 WHEN + + 22 THEN NULL ELSE + 37 END ) + - 25 * 70 col2, 46 AS col2
----
-5638
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL + 61 + + - 55 + + NULLIF ( + ( CAST( NULL AS SIGNED ) ), + 99 ) * + + 33 * 95 * + 92 / - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + 61 + + - 55 + + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + 99 ) * + + 33 * 95 * + 92 / - 91 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 68 + + + 84
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL - CAST( - CASE CAST( NULL AS SIGNED ) WHEN + - 86 THEN - 91 + + SUM( + 78 ) + - 38 END AS SIGNED ) + + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - CAST ( - CASE CAST ( NULL AS INTEGER ) WHEN + - 86 THEN - 91 + + SUM ( + 78 ) + - 38 END AS INTEGER ) + + 71 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT + CAST( + ( - - CAST( 55 AS SIGNED ) ) AS SIGNED ) + 26
----
81

skipif mysql # not compatible
query I rowsort label-6078
SELECT + CAST ( + ( - - CAST ( 55 AS INTEGER ) ) AS INTEGER ) + 26
----
81

query I rowsort
SELECT - + ( + 53 ) + + 52
----
-1

query I rowsort
SELECT - - 34 - + + 50 * + 40
----
-1966

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - - 65 + - NULLIF ( - 57, COUNT( 66 ) - 36 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-6081
SELECT - - 65 + - NULLIF ( - 57, COUNT ( 66 ) - 36 ) AS col0
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT ALL + - COALESCE ( COUNT( * ), - 17 ) * 31 * 78 AS col1, + 86 AS col0
----
-2418
86

skipif mysql # not compatible
query II rowsort label-6082
SELECT ALL + - COALESCE ( COUNT ( * ), - 17 ) * 31 * 78 AS col1, + 86 AS col0
----
-2418
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6083
SELECT - + 90 * + 40 AS col2, MIN( DISTINCT 7 ) AS col0
----
-3600
7

skipif mysql # not compatible
query II rowsort label-6083
SELECT - + 90 * + 40 AS col2, MIN ( DISTINCT 7 ) AS col0
----
-3600
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT - 2 * + 97 * + 70 * - + MAX( 40 )
----
543200

skipif mysql # not compatible
query I rowsort label-6084
SELECT - 2 * + 97 * + 70 * - + MAX ( 40 )
----
543200

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

skipif mysql # not compatible
query I rowsort label-6085
SELECT - 19 / - 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT + 25 DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT + 25 / - + 64
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT + 60 * 44 DIV - 8 * - COUNT( * ) AS col2
----
330

skipif mysql # not compatible
query I rowsort label-6088
SELECT + 60 * 44 / - 8 * - COUNT ( * ) AS col2
----
330

query II rowsort
SELECT + 9 col1, 97
----
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + 77 + - 21 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6090
SELECT + 77 + - 21 + + + COUNT ( * )
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL + COALESCE ( - + NULLIF ( + MAX( - - 48 ), 47 + + 94 + - ( - 7 ) + + - CAST( + 7 AS SIGNED ) / - 61 + + - 26 - + 80 ), + + ( + - 23 ) + - CASE - COALESCE ( + 82, 43 ) WHEN 4 THEN NULL WHEN - COALESCE ( - COUNT( * ), + COUNT( * ) ) THEN + 95 END ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + COALESCE ( - + NULLIF ( + MAX ( - - 48 ), 47 + + 94 + - ( - 7 ) + + - CAST ( + 7 AS INTEGER ) / - 61 + + - 26 - + 80 ), + + ( + - 23 ) + - CASE - COALESCE ( + 82, 43 ) WHEN 4 THEN NULL WHEN - COALESCE ( - COUNT ( * ), + COUNT ( * ) ) THEN + 95 END ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6093
SELECT ALL 74 DIV - 10 + + SUM( 33 ) * 78 * - 82
----
-211075

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL 74 / - 10 + + SUM ( 33 ) * 78 * - 82
----
-211075

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL COUNT( * ) DIV + 12 + - NULLIF ( 8, - 17 )
----
-8

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL COUNT ( * ) / + 12 + - NULLIF ( 8, - 17 )
----
-8

query II rowsort
SELECT ALL 92 * - 63 + - 86, + 14 AS col0
----
-5882
14

query I rowsort
SELECT DISTINCT 58 * + 52 AS col0
----
3016

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

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

query I rowsort
SELECT + + 45 + - 48 + - 25
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT - - 35 * - 47 + COUNT( * ) + 67 AS col0
----
-1577

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - - 35 * - 47 + COUNT ( * ) + 67 AS col0
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL 28 * + 90 * + 38 + 57 * - - 26 + + COUNT( * ) + - + 6 AS col2
----
97237

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL 28 * + 90 * + 38 + 57 * - - 26 + + COUNT ( * ) + - + 6 AS col2
----
97237

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT DISTINCT + 97 * - - 46 + COALESCE ( 32, - 83 ) - - COUNT( * ) * - COUNT( - COALESCE ( - 90, 5 ) ) * + + 37 AS col2, - 26 * - 94
----
4457
2444

skipif mysql # not compatible
query II rowsort label-6102
SELECT DISTINCT + 97 * - - 46 + COALESCE ( 32, - 83 ) - - COUNT ( * ) * - COUNT ( - COALESCE ( - 90, 5 ) ) * + + 37 AS col2, - 26 * - 94
----
4457
2444

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL + - NULLIF ( COUNT( * ), + 42 * + - 15 * 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL + - NULLIF ( COUNT ( * ), + 42 * + - 15 * 26 )
----
-1

query I rowsort
SELECT + 14 + 52 AS col2
----
66

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

skipif mysql # not compatible
query II rowsort label-6106
SELECT ALL ( ( + + COUNT ( * ) ) ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + - ( - 26 ) * + + MAX( 45 ) * 72 * 91 AS col2
----
7665840

skipif mysql # not compatible
query I rowsort label-6107
SELECT + - ( - 26 ) * + + MAX ( 45 ) * 72 * 91 AS col2
----
7665840

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT 78 AS col2, 89 * COUNT( * ) * - 49 col2
----
78
-4361

skipif mysql # not compatible
query II rowsort label-6108
SELECT 78 AS col2, 89 * COUNT ( * ) * - 49 col2
----
78
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT 20 * - 98 + 69 + + 97 + - - 0 * 99 * COUNT( * ) AS col1
----
-1794

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT 20 * - 98 + 69 + + 97 + - - 0 * 99 * COUNT ( * ) AS col1
----
-1794

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6111
SELECT DISTINCT - COUNT( * ) AS col0, + 74 - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6111
SELECT DISTINCT - COUNT ( * ) AS col0, + 74 - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT + SUM( ALL 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + SUM ( ALL 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL COALESCE ( - 37, MIN( - 91 ), + 18 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL COALESCE ( - 37, MIN ( - 91 ), + 18 ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT CAST( NULL AS SIGNED ) * - 76 / 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT CAST ( NULL AS INTEGER ) * - 76 / 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT 69 * + + NULLIF ( - COUNT( * ), - COALESCE ( - + ( - 2 ), + 55 ) * 85 - + 47 ), + 68 - + - 23 * - + 95 * - + 88 * - 6 + MIN( ALL ( + 89 ) ) + - 66 + - + 33 AS col0
----
-69
-1153622

skipif mysql # not compatible
query II rowsort label-6115
SELECT 69 * + + NULLIF ( - COUNT ( * ), - COALESCE ( - + ( - 2 ), + 55 ) * 85 - + 47 ), + 68 - + - 23 * - + 95 * - + 88 * - 6 + MIN ( ALL ( + 89 ) ) + - 66 + - + 33 AS col0
----
-69
-1153622

query I rowsort
SELECT 50 - - 94
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL 54 + - - 16 - + + CAST( 91 AS SIGNED ) + - 13 * + COUNT( - 49 ) - + 58 * - 63 + - 19
----
3601

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 54 + - - 16 - + + CAST ( 91 AS INTEGER ) + - 13 * + COUNT ( - 49 ) - + 58 * - 63 + - 19
----
3601

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT - MIN( 56 ) + - + 28 - - + 40 * + 51 + + COUNT( * )
----
1957

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - MIN ( 56 ) + - + 28 - - + 40 * + 51 + + COUNT ( * )
----
1957

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT - 20 + - - ( + - 89 ) + - COUNT( ALL + 58 ) + + 48 * - 81 * + - 74 * 98
----
28195666

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - 20 + - - ( + - 89 ) + - COUNT ( ALL + 58 ) + + 48 * - 81 * + - 74 * 98
----
28195666

query I rowsort
SELECT ALL - 75 + + - CASE - 61 WHEN - 62 THEN + 3 END
----
NULL

query I rowsort
SELECT 85 - 58
----
27

query I rowsort
SELECT ALL - 2 * + 70 AS col2
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT ALL + 30 + + COUNT( * ) DIV + 39 * 35 + - - 62 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + 30 + + COUNT ( * ) / + 39 * 35 + - - 62 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL - MIN( - 19 ) + - COUNT( * ) + + CASE - 48 WHEN 72 THEN + + 52 ELSE 71 END - + 89 - - - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - MIN ( - 19 ) + - COUNT ( * ) + + CASE - 48 WHEN 72 THEN + + 52 ELSE 71 END - + 89 - - - 95 AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT 84 + 25 * - CAST( NULL AS SIGNED ) * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT 84 + 25 * - CAST ( NULL AS INTEGER ) * + 32 AS col0
----
NULL

query I rowsort
SELECT ALL + 94 * + 11 + - + 27
----
1007

query I rowsort
SELECT ALL - 35 + 86 + + ( - 18 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT - + 75 + + - NULLIF ( - - 15, + - COUNT( * ) * - 32 + 83 ) - - + COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT - + 75 + + - NULLIF ( - - 15, + - COUNT ( * ) * - 32 + 83 ) - - + COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL 19 - + 68 * - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL 19 - + 68 * - COUNT ( * )
----
87

query I rowsort
SELECT ALL - 78 * 95 + - - 44 + 52 + 27 + 58 AS col0
----
-7229

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

skipif mysql # not compatible
query I rowsort label-6131
SELECT ( - ( COUNT ( * ) ) ) + + - 34 + 98 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + + CASE + SUM( ALL - ( 83 ) ) WHEN + 40 THEN 77 * 68 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT + + CASE + SUM ( ALL - ( 83 ) ) WHEN + 40 THEN 77 * 68 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - ( - + 25 ) * + MIN( 18 ) - 65 + COUNT( * ) + 53
----
439

skipif mysql # not compatible
query I rowsort label-6133
SELECT - ( - + 25 ) * + MIN ( 18 ) - 65 + COUNT ( * ) + 53
----
439

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT COUNT( * ) - + 33 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT COUNT ( * ) - + 33 AS col1
----
-32

query II rowsort
SELECT 56 * - 91 AS col2, 21 AS col2
----
-5096
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT COUNT( * ) + 86 AS col1, - SUM( - 91 ) * + COUNT( * ) * + - COALESCE ( 5, + 66 ) * + 13 DIV - COUNT( * ) + - NULLIF ( 70, + 11 ) + + 59 AS col2
----
87
5904

skipif mysql # not compatible
query II rowsort label-6137
SELECT COUNT ( * ) + 86 AS col1, - SUM ( - 91 ) * + COUNT ( * ) * + - COALESCE ( 5, + 66 ) * + 13 / - COUNT ( * ) + - NULLIF ( 70, + 11 ) + + 59 AS col2
----
87
5904

query II rowsort
SELECT ( - 81 ) + - - 66 + - + 71, + 32 + 29 + - - 58 AS col1
----
-86
119

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT 34 DIV + NULLIF ( 32, - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-6139
SELECT 34 / + NULLIF ( 32, - 60 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6140
SELECT 40 + + - 10 + - - COALESCE ( + 78, 13 * - 9 ) / CAST( NULL AS DECIMAL ) * 60 + + 4 + - 43 - CAST( 37 AS SIGNED ) * + - 68 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT 40 + + - 10 + - - COALESCE ( + 78, 13 * - 9 ) / CAST ( NULL AS REAL ) * 60 + + 4 + - 43 - CAST ( 37 AS INTEGER ) * + - 68 * + 83
----
NULL

query I rowsort
SELECT 79 * + 5 AS col2
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ( - 97 ) + + 59 + 84 + MIN( + + 96 )
----
142

skipif mysql # not compatible
query I rowsort label-6142
SELECT ( - 97 ) + + 59 + 84 + MIN ( + + 96 )
----
142

query I rowsort
SELECT ALL 42 * + - ( + 17 )
----
-714

query II rowsort
SELECT 69 * + 55 * 94, 33 * + + 59 * - 96 col1
----
356730
-186912

query I rowsort
SELECT 75 + + 46
----
121

query I rowsort
SELECT ALL 48 * - 0 AS col0
----
0

query I rowsort
SELECT ALL 6 + 71 AS col1
----
77

query I rowsort
SELECT 85 + + + 69
----
154

query I rowsort
SELECT DISTINCT 83 * 77
----
6391

query I rowsort
SELECT 94 + - 78 * + 29 - + 45 AS col0
----
-2213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT 4 + + 53 * + COUNT( * ) + 97 + - MAX( 78 ) * - 20 + - - 32
----
1746

skipif mysql # not compatible
query I rowsort label-6152
SELECT 4 + + 53 * + COUNT ( * ) + 97 + - MAX ( 78 ) * - 20 + - - 32
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL + COUNT( * ) + 10 * - 5
----
-49

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + COUNT ( * ) + 10 * - 5
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL - COALESCE ( CAST( - 25 AS SIGNED ), - 64 + + 30 - 86 )
----
25

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - COALESCE ( CAST ( - 25 AS INTEGER ), - 64 + + 30 - 86 )
----
25

query I rowsort
SELECT 84 * - COALESCE ( 8, 21 ) col2
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT ALL - MAX( 75 ) DIV - ( + 17 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - MAX ( 75 ) / - ( + 17 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - + COUNT( * ) * - 7 - - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - + COUNT ( * ) * - 7 - - + COUNT ( * )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6159
SELECT ALL - + 73 DIV 58 + + 76 AS col2, - 81
----
75
-81

skipif mysql # not compatible
query II rowsort label-6159
SELECT ALL - + 73 / 58 + + 76 AS col2, - 81
----
75
-81

query I rowsort
SELECT DISTINCT - 40 * 22 AS col2
----
-880

query I rowsort
SELECT ALL + + 98 - - + 6 + + 21 AS col1
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6162
SELECT CAST( NULL AS SIGNED ) * - + CAST( + - 42 AS SIGNED ) AS col0, + 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-6162
SELECT CAST ( NULL AS INTEGER ) * - + CAST ( + - 42 AS INTEGER ) AS col0, + 93 AS col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT COUNT( * ) - NULLIF ( + COUNT( * ), - - NULLIF ( + CASE - + 32 WHEN 35 + - 78 * - SUM( + - 24 ) + + 63 THEN 87 * - 78 + - - 75 END, - - 83 * - 39 + + 4 ) ) + 99
----
99

skipif mysql # not compatible
query I rowsort label-6163
SELECT COUNT ( * ) - NULLIF ( + COUNT ( * ), - - NULLIF ( + CASE - + 32 WHEN 35 + - 78 * - SUM ( + - 24 ) + + 63 THEN 87 * - 78 + - - 75 END, - - 83 * - 39 + + 4 ) ) + 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6164
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - + 17 * 99
----
-1683

query I rowsort
SELECT + + 11 + 84
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL - COUNT( * ) + MIN( DISTINCT - 90 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT - 90 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT + 72 + - NULLIF ( - + 46, + - 24 ) AS col1
----
118

query I rowsort
SELECT ALL 67 + - 12
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT - 72 * - 13 * + - CAST( AVG ( DISTINCT - 91 ) AS SIGNED ) AS col2
----
85176

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 72 * - 13 * + - CAST ( AVG ( DISTINCT - 91 ) AS INTEGER ) AS col2
----
85176

query I rowsort
SELECT ALL - ( 95 ) + 66 - + 25 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT 1 + 66 DIV - + 27
----
-1

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT 1 + 66 / - + 27
----
-1

query I rowsort
SELECT DISTINCT - 20 + + + 41
----
21

query I rowsort
SELECT DISTINCT CASE + + 78 WHEN - 99 THEN 83 ELSE - 42 END AS col0
----
-42

query I rowsort
SELECT ALL 36 + 32 * - 95 AS col1
----
-3004

query I rowsort
SELECT DISTINCT 95 + + 70
----
165

query I rowsort
SELECT DISTINCT 65 + + 61 + - 96 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT + ( 42 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT + ( 42 ) / - 74
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - COUNT( * ) - + + 64
----
-65

skipif mysql # not compatible
query I rowsort label-6180
SELECT - COUNT ( * ) - + + 64
----
-65

query I rowsort
SELECT + 12 * 45
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - NULLIF ( + + 86, COUNT( * ) * + 92 * - + 92 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6182
SELECT - NULLIF ( + + 86, COUNT ( * ) * + 92 * - + 92 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + 82 - SUM( + ( + ( + + 40 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-6183
SELECT + 82 - SUM ( + ( + ( + + 40 ) ) )
----
42

query I rowsort
SELECT - NULLIF ( - + 40, - + 23 * + AVG ( ALL 54 ) )
----
40

query I rowsort
SELECT + ( - 52 ) + + 50 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL 64 - - - NULLIF ( + ( + 83 ), + 36 - + + 6 + - + 96 * + 89 + CAST( 91 AS SIGNED ) * COALESCE ( + ( - 21 ), - - 87, 72 + + 28 ) + + + 30 * + 74 + 30 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL 64 - - - NULLIF ( + ( + 83 ), + 36 - + + 6 + - + 96 * + 89 + CAST ( 91 AS INTEGER ) * COALESCE ( + ( - 21 ), - - 87, 72 + + 28 ) + + + 30 * + 74 + 30 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT ALL 41 - NULLIF ( - 15, - 17 * - 25 ) + + 70, - COUNT( * ) AS col0
----
126
-1

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL 41 - NULLIF ( - 15, - 17 * - 25 ) + + 70, - COUNT ( * ) AS col0
----
126
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT DISTINCT 99 * - - 40 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT 99 * - - 40 * CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT - 79 DIV 98 - 62
----
-62

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 79 / 98 - 62
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT + + 33 - 29 + + COALESCE ( MIN( ALL - CAST( NULL AS SIGNED ) ), + - 9 )
----
-5

skipif mysql # not compatible
query I rowsort label-6192
SELECT + + 33 - 29 + + COALESCE ( MIN ( ALL - CAST ( NULL AS INTEGER ) ), + - 9 )
----
-5

query I rowsort
SELECT + 97 * 55 * 3 + + 74 - + 3 AS col0
----
16076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT 36 * - CASE + NULLIF ( 96, + 45 * 42 - - + 44 + 85 * - COUNT( * ) - - - 30 + - 61 - - - 13 + + 60 + 70 + + - 67 * - + COUNT( * ) * - 1 * COUNT( * ) ) WHEN - - 20 THEN NULL ELSE - COUNT( DISTINCT COALESCE ( + + 79, - + 55 ) ) DIV + - 22 * + 43 * - 54 + - COUNT( * ) + - 44 * - 88 END * - 52 + + - 1 + - ( 70 + - 47 ) * + COALESCE ( 40, 56 * ( CAST( 40 AS SIGNED ) ) + COUNT( * ) * 86 )
----
7245591

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT 36 * - CASE + NULLIF ( 96, + 45 * 42 - - + 44 + 85 * - COUNT ( * ) - - - 30 + - 61 - - - 13 + + 60 + 70 + + - 67 * - + COUNT ( * ) * - 1 * COUNT ( * ) ) WHEN - - 20 THEN NULL ELSE - COUNT ( DISTINCT COALESCE ( + + 79, - + 55 ) ) / + - 22 * + 43 * - 54 + - COUNT ( * ) + - 44 * - 88 END * - 52 + + - 1 + - ( 70 + - 47 ) * + COALESCE ( 40, 56 * ( CAST ( 40 AS INTEGER ) ) + COUNT ( * ) * 86 )
----
7245591

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6197
SELECT DISTINCT + + 3 AS col1, + 6 * 90 DIV + + 32 + - - 72 * - - 52 AS col0
----
3
3760

skipif mysql # not compatible
query II rowsort label-6197
SELECT DISTINCT + + 3 AS col1, + 6 * 90 / + + 32 + - - 72 * - - 52 AS col0
----
3
3760

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6199
SELECT - - 6 DIV + 6 AS col0, 79
----
1
79

skipif mysql # not compatible
query II rowsort label-6199
SELECT - - 6 / + 6 AS col0, 79
----
1
79

query II rowsort
SELECT ALL + + 4, + 96 AS col2
----
4
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT + 27 DIV - 34 + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6201
SELECT + 27 / - 34 + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT - MIN( ALL - 21 ) * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-6202
SELECT - MIN ( ALL - 21 ) * - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL - - COUNT( * ) * + 24 + 56 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - - COUNT ( * ) * + 24 + 56 AS col1
----
80

query II rowsort
SELECT + - 65, 95 - - 19 AS col2
----
-65
114

query I rowsort
SELECT - 10 * + - 34
----
340

onlyif mysql # DIV for integer division: 
query II rowsort label-6206
SELECT + + 11 col1, + 45 DIV + + 4 AS col1
----
11
11

skipif mysql # not compatible
query II rowsort label-6206
SELECT + + 11 col1, + 45 / + + 4 AS col1
----
11
11

query II rowsort
SELECT + - 54, - 48 AS col0
----
-54
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6208
SELECT ALL + NULLIF ( - + 73, + CAST( NULL AS SIGNED ) DIV CASE WHEN NULL IS NULL THEN + 56 ELSE 23 END - 64 ) * + + 47 + 99 + COUNT( * ) DIV - 39
----
-3332

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + NULLIF ( - + 73, + CAST ( NULL AS INTEGER ) / CASE WHEN NULL IS NULL THEN + 56 ELSE 23 END - 64 ) * + + 47 + 99 + COUNT ( * ) / - 39
----
-3332

query I rowsort
SELECT - 49 * + + 51 col0
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT DISTINCT NULLIF ( + + COUNT( * ), - 89 / 11 - + CAST( - 43 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT NULLIF ( + + COUNT ( * ), - 89 / 11 - + CAST ( - 43 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL CASE - 32 WHEN 13 + 77 - - 29 THEN NULL ELSE - + 15 + + + ( + 35 ) END AS col1
----
20

query II rowsort
SELECT ALL ( 52 ) AS col0, - 71
----
52
-71

query II rowsort
SELECT ALL + 6 + + - ( 66 ) col1, + CASE - + 13 WHEN - - NULLIF ( + COALESCE ( - 77, ( - + 4 ) * 67 * - ( + 30 ) * + + 2 * - 12 ), - ( - - 86 ) ) * 43 * - + 46 THEN - 5 END * + 82
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - 43 + 65 + COUNT( ALL - 87 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 43 + 65 + COUNT ( ALL - 87 ) col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6215
SELECT - 7 + + 28, + 49 DIV - 50 - - COUNT( 37 ) AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-6215
SELECT - 7 + + 28, + 49 / - 50 - - COUNT ( 37 ) AS col0
----
21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT - CASE + + 79 WHEN - 68 - - - COUNT( * ) THEN + 96 ELSE NULL END + + ( - 84 ) + + MIN( DISTINCT 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT - CASE + + 79 WHEN - 68 - - - COUNT ( * ) THEN + 96 ELSE NULL END + + ( - 84 ) + + MIN ( DISTINCT 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT + 89 - - + CASE 62 WHEN - - 67 * - 90 THEN + NULLIF ( - - 57, - + 71 * + COUNT( * ) * + ( SUM( + + 11 ) ) ) END + + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT + 89 - - + CASE 62 WHEN - - 67 * - 90 THEN + NULLIF ( - - 57, - + 71 * + COUNT ( * ) * + ( SUM ( + + 11 ) ) ) END + + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT + CASE + + ( - ( + 64 ) ) WHEN - - 26 THEN NULL WHEN - 92 * + + 10 * NULLIF ( + - 40, + 32 - - + 11 ) THEN + + COUNT( - + 92 ) * - - 99 + 99 + + 9 END * 37 + + 59 * - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + CASE + + ( - ( + 64 ) ) WHEN - - 26 THEN NULL WHEN - 92 * + + 10 * NULLIF ( + - 40, + 32 - - + 11 ) THEN + + COUNT ( - + 92 ) * - - 99 + 99 + + 9 END * 37 + + 59 * - + 27
----
NULL

query I rowsort
SELECT - 59 + - 9 * - 17 * 18 AS col2
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT ALL - 44 - + 54 - 77 + + 12 * - COUNT( * ), - COUNT( * ) AS col2
----
-187
-1

skipif mysql # not compatible
query II rowsort label-6220
SELECT ALL - 44 - + 54 - 77 + + 12 * - COUNT ( * ), - COUNT ( * ) AS col2
----
-187
-1

query I rowsort
SELECT DISTINCT + 89 * 9 AS col0
----
801

query I rowsort
SELECT - ( 51 ) + + + 43 + + 67 + 65 + 16
----
140

query I rowsort
SELECT - 53 * ( - ( - - 50 ) ) AS col0
----
2650

query II rowsort
SELECT ALL + 71 * - 33 col2, - 49 * - + 32 * + - 73 AS col2
----
-2343
-114464

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

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

query I rowsort
SELECT + 23 * + + 64 AS col2
----
1472

query I rowsort
SELECT + - 52 * 4
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6228
SELECT ALL - MAX( DISTINCT + 57 ) DIV 53 - - ( + 29 ) + ( + 7 ) + 3 + - 0 DIV - 56 AS col2, 2 * - 47 AS col2
----
38
-94

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL - MAX ( DISTINCT + 57 ) / 53 - - ( + 29 ) + ( + 7 ) + 3 + - 0 / - 56 AS col2, 2 * - 47 AS col2
----
38
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT + 97 + 2 + MIN( DISTINCT + 26 ) col1
----
125

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + 97 + 2 + MIN ( DISTINCT + 26 ) col1
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT + 55 DIV - 14 + + 14 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 55 / - 14 + + 14 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-6231
SELECT 69 * SUM( - ( 2 ) ) + - 31 + - 50 + - 89 + + 59, - 67 - + 79 AS col2, CAST( NULL AS DECIMAL ) AS col1
----
-249
-146
NULL

skipif mysql # not compatible
query III rowsort label-6231
SELECT 69 * SUM ( - ( 2 ) ) + - 31 + - 50 + - 89 + + 59, - 67 - + 79 AS col2, CAST ( NULL AS REAL ) AS col1
----
-249
-146
NULL

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

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

query I rowsort
SELECT ALL + 89 + + + 38
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + NULLIF ( 83, + - 37 + - COALESCE ( - + COUNT( * ), + - 42 * 57 + + 2 / + 44 * - 39 ) * - COUNT( 20 ) / + NULLIF ( 53, - 86 * 33 * - 96 ) + + 27 + 84 - AVG ( ALL - 84 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6234
SELECT + NULLIF ( 83, + - 37 + - COALESCE ( - + COUNT ( * ), + - 42 * 57 + + 2 / + 44 * - 39 ) * - COUNT ( 20 ) / + NULLIF ( 53, - 86 * 33 * - 96 ) + + 27 + 84 - AVG ( ALL - 84 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6235
SELECT DISTINCT MIN( DISTINCT + 83 ) + + 65 DIV - 69
----
83

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT MIN ( DISTINCT + 83 ) + + 65 / - 69
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + 67 * + - COUNT( ALL 90 ) * + - 7 - + 17 - 88 + 50 col2
----
414

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 67 * + - COUNT ( ALL 90 ) * + - 7 - + 17 - 88 + 50 col2
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL + 45 + - 55 + - - CAST( NULL AS SIGNED ) / 10 + - - NULLIF ( 95, - COUNT( DISTINCT CAST( + + 2 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + 45 + - 55 + - - CAST ( NULL AS INTEGER ) / 10 + - - NULLIF ( 95, - COUNT ( DISTINCT CAST ( + + 2 AS INTEGER ) ) )
----
NULL

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

query I rowsort
SELECT ALL + 23 + + 17
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT DISTINCT 90 + + 48 - + 22 DIV + MAX( DISTINCT + 62 ) col0
----
138

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT 90 + + 48 - + 22 / + MAX ( DISTINCT + 62 ) col0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT + 47 col1, COUNT( * ) + - - 40 AS col2
----
47
41

skipif mysql # not compatible
query II rowsort label-6241
SELECT + 47 col1, COUNT ( * ) + - - 40 AS col2
----
47
41

query I rowsort
SELECT DISTINCT - 57 - + 22
----
-79

query I rowsort
SELECT 69 * - ( + 54 )
----
-3726

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

query II rowsort
SELECT 95, - 33 AS col2
----
95
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6246
SELECT 10 + + NULLIF ( - 18, 49 * 61 DIV 88 * + CAST( + - 77 AS SIGNED ) * + 68 * 74 + 39 ) DIV - 6
----
13

skipif mysql # not compatible
query I rowsort label-6246
SELECT 10 + + NULLIF ( - 18, 49 * 61 / 88 * + CAST ( + - 77 AS INTEGER ) * + 68 * 74 + 39 ) / - 6
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT 33 AS col0, 40 * ( + 45 ) * - + 58 + - - COUNT( * )
----
33
-104399

skipif mysql # not compatible
query II rowsort label-6247
SELECT 33 AS col0, 40 * ( + 45 ) * - + 58 + - - COUNT ( * )
----
33
-104399

query II rowsort
SELECT 3 col1, 40 col0
----
3
40

query I rowsort
SELECT ALL 65 * 93 AS col0
----
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT 83 * + COUNT( * ) * + 76 AS col2
----
6308

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT 83 * + COUNT ( * ) * + 76 AS col2
----
6308

query I rowsort
SELECT 93 * - + 48 * + + 23
----
-102672

query I rowsort
SELECT 0 - - + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6253
SELECT CAST( + 72 AS SIGNED ) - - 84, + 63 AS col1
----
156
63

skipif mysql # not compatible
query II rowsort label-6253
SELECT CAST ( + 72 AS INTEGER ) - - 84, + 63 AS col1
----
156
63

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

query I rowsort
SELECT ALL + + 78 * - + 57 AS col2
----
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT - 15 * 14 * - - COUNT( * ) - + 46 + COUNT( * ) + 7 * + 47 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6256
SELECT - 15 * 14 * - - COUNT ( * ) - + 46 + COUNT ( * ) + 7 * + 47 AS col2
----
74

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

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL COUNT ( * ), 17 col2
----
1
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT ALL - - 11 + - + 42 + 9 + 11 + COALESCE ( 11, - ( - - 21 ) - + 15 ) DIV + + 38 * 97 * - 22
----
-11

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - - 11 + - + 42 + 9 + 11 + COALESCE ( 11, - ( - - 21 ) - + 15 ) / + + 38 * 97 * - 22
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT + 82 DIV + - 27
----
-3

skipif mysql # not compatible
query I rowsort label-6259
SELECT + 82 / + - 27
----
-3

query I rowsort
SELECT - 56 - - 34
----
-22

query II rowsort
SELECT 64 col0, - 61
----
64
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - 19 * - 31 * - 62 * - 56 + - COUNT( * ) + 46 + + 83
----
2045136

skipif mysql # not compatible
query I rowsort label-6262
SELECT - 19 * - 31 * - 62 * - 56 + - COUNT ( * ) + 46 + + 83
----
2045136

query I rowsort
SELECT ALL - 60 + 84
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + 22 + + SUM( 21 )
----
43

skipif mysql # not compatible
query I rowsort label-6264
SELECT + 22 + + SUM ( 21 )
----
43

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

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

query I rowsort
SELECT ALL 75 * - + ( + + 95 )
----
-7125

query I rowsort
SELECT ALL 89 + + 25 - - 75 AS col1
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT + 90 col0, 66 * COUNT( * ) * + 96 AS col1
----
90
6336

skipif mysql # not compatible
query II rowsort label-6269
SELECT + 90 col0, 66 * COUNT ( * ) * + 96 AS col1
----
90
6336

query I rowsort
SELECT DISTINCT 32 + + - 36
----
-4

query I rowsort
SELECT DISTINCT - 66 + - 72 AS col1
----
-138

query I rowsort
SELECT ALL 84 * + ( - - 25 )
----
2100

query II rowsort
SELECT ( + 21 ) * - - COALESCE ( - + 31, + 92 * - - 5 ) - + 15 - 72 * 97 + 47, 93 AS col1
----
-7603
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 14 * MIN( ALL - 43 ) AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-6274
SELECT 14 * MIN ( ALL - 43 ) AS col0
----
-602

query I rowsort
SELECT ALL 71 - + 40
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT CASE + ( 7 ) WHEN 19 THEN + 62 * + - 58 WHEN 0 THEN - - CASE + - 32 WHEN - 89 THEN - COALESCE ( CASE + 29 WHEN + ( + 9 ) / + ( 85 ) * CASE + + CASE MAX( 14 ) WHEN + 50 THEN NULL WHEN - + 98 THEN NULL ELSE + 85 END WHEN - ( 83 ) * - + CAST( + 7 AS SIGNED ) THEN NULL WHEN 8 - - 22 + + 79 THEN 7 ELSE NULL END THEN - 82 END, - 76 + COALESCE ( 17, + 31 ) ) END * 71 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT CASE + ( 7 ) WHEN 19 THEN + 62 * + - 58 WHEN 0 THEN - - CASE + - 32 WHEN - 89 THEN - COALESCE ( CASE + 29 WHEN + ( + 9 ) / + ( 85 ) * CASE + + CASE MAX ( 14 ) WHEN + 50 THEN NULL WHEN - + 98 THEN NULL ELSE + 85 END WHEN - ( 83 ) * - + CAST ( + 7 AS INTEGER ) THEN NULL WHEN 8 - - 22 + + 79 THEN 7 ELSE NULL END THEN - 82 END, - 76 + COALESCE ( 17, + 31 ) ) END * 71 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT 10 + + COUNT( * ) - 96 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6277
SELECT 10 + + COUNT ( * ) - 96 AS col2
----
-85

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

skipif mysql # not compatible
query I rowsort label-6278
SELECT - COUNT ( 27 )
----
-1

query I rowsort
SELECT 94 * + + 47
----
4418

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT 0 + + 7 DIV - - 2
----
3

skipif mysql # not compatible
query I rowsort label-6280
SELECT 0 + + 7 / - - 2
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT ALL 34 * 10 * - 43 * - - 95 AS col0, - NULLIF ( 96, + 84 * + ( + - 82 ) + ( 77 ) * - + 11 ) * + ( 7 ) * + 73 + COUNT( * )
----
-1388900
-49055

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL 34 * 10 * - 43 * - - 95 AS col0, - NULLIF ( 96, + 84 * + ( + - 82 ) + ( 77 ) * - + 11 ) * + ( 7 ) * + 73 + COUNT ( * )
----
-1388900
-49055

query I rowsort
SELECT DISTINCT - 21 * - 34 AS col2
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - MAX( ALL - 18 ) + 20 * 41 AS col1
----
838

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - MAX ( ALL - 18 ) + 20 * 41 AS col1
----
838

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT 60 DIV - 26
----
-2

skipif mysql # not compatible
query I rowsort label-6285
SELECT 60 / - 26
----
-2

query I rowsort
SELECT ALL 87 + + 17
----
104

query I rowsort
SELECT ALL - 24 + 76 * 26
----
1952

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT - SUM( ALL - - 74 ) AS col0, + 31 * + + 36 * - 99
----
-74
-110484

skipif mysql # not compatible
query II rowsort label-6288
SELECT - SUM ( ALL - - 74 ) AS col0, + 31 * + + 36 * - 99
----
-74
-110484

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - + 44 + + SUM( DISTINCT 92 )
----
48

skipif mysql # not compatible
query I rowsort label-6289
SELECT - + 44 + + SUM ( DISTINCT 92 )
----
48

query I rowsort
SELECT DISTINCT - 22 + + 96
----
74

query I rowsort
SELECT ALL - 89 + 53 * + 50 * - - 72 AS col0
----
190711

query I rowsort
SELECT - 6 * + 87 AS col1
----
-522

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6294
SELECT DISTINCT COUNT( * ) * - 2 + 42 + - + 12 AS col1, - 67 * - CAST( NULL AS SIGNED ) + + + 87
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6294
SELECT DISTINCT COUNT ( * ) * - 2 + 42 + - + 12 AS col1, - 67 * - CAST ( NULL AS INTEGER ) + + + 87
----
28
NULL

query I rowsort
SELECT - - 17 * - - 25 AS col1
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6296
SELECT ALL MIN( + + 80 ) * 94 - + NULLIF ( 35, 85 ) * - 23 * - - 45 + - 70 - - 51 DIV + + 56 + + 97 * + 7 + - 93 AS col0, + CAST( NULL AS DECIMAL ) DIV - 8 * 88 * 61 + CAST( NULL AS SIGNED ) AS col1
----
44261
NULL

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL MIN ( + + 80 ) * 94 - + NULLIF ( 35, 85 ) * - 23 * - - 45 + - 70 - - 51 / + + 56 + + 97 * + 7 + - 93 AS col0, + CAST ( NULL AS REAL ) / - 8 * 88 * 61 + CAST ( NULL AS INTEGER ) AS col1
----
44261
NULL

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

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

query II rowsort
SELECT + ( + 78 ) AS col1, + 19 * + 96 AS col2
----
78
1824

query I rowsort
SELECT - - 26 + - + 46 - + 7
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT + - 68 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT + - 68 / 72 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + + COALESCE ( - MAX( ALL + + 14 ), + - 23 * - 47 + - - 77 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + + COALESCE ( - MAX ( ALL + + 14 ), + - 23 * - 47 + - - 77 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT COALESCE ( - - 50, - + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-6302
SELECT COALESCE ( - - 50, - + COUNT ( * ) )
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6303
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), - - CAST( + - CASE 84 WHEN + + 67 DIV + + 89 * + + ( - 5 ) + + - 57 + - 12 THEN 63 WHEN 31 THEN NULL WHEN 76 + 59 THEN 45 DIV 23 WHEN - 34 * + - 45 + + 34 THEN NULL END AS SIGNED ), 45 DIV - 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6303
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), - - CAST ( + - CASE 84 WHEN + + 67 / + + 89 * + + ( - 5 ) + + - 57 + - 12 THEN 63 WHEN 31 THEN NULL WHEN 76 + 59 THEN 45 / 23 WHEN - 34 * + - 45 + + 34 THEN NULL END AS INTEGER ), 45 / - 45 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 72 * + 10 AS col0
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT + 30 DIV ( + 27 )
----
1

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + 30 / ( + 27 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6306
SELECT + 12 DIV + SUM( - 75 ), 77 AS col1
----
0
77

skipif mysql # not compatible
query II rowsort label-6306
SELECT + 12 / + SUM ( - 75 ), 77 AS col1
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6307
SELECT ALL + 75, 51 * MIN( + + ( 65 ) ) AS col1
----
75
3315

skipif mysql # not compatible
query II rowsort label-6307
SELECT ALL + 75, 51 * MIN ( + + ( 65 ) ) AS col1
----
75
3315

query I rowsort
SELECT DISTINCT + 12 * - 89
----
-1068

query II rowsort
SELECT + 11 AS col2, 11
----
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( DISTINCT + ( + + CASE WHEN - 72 = NULL THEN NULL ELSE + 50 END ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( DISTINCT + ( + + CASE WHEN - 72 = NULL THEN NULL ELSE + 50 END ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT MAX( - - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6311
SELECT MAX ( - - 77 )
----
77

query I rowsort
SELECT + 58 * - 97
----
-5626

onlyif mysql # aggregate syntax: 
query II rowsort label-6313
SELECT ALL 64 + - 80 - 47 AS col0, COUNT( * ) * + + 64 AS col0
----
-63
64

skipif mysql # not compatible
query II rowsort label-6313
SELECT ALL 64 + - 80 - 47 AS col0, COUNT ( * ) * + + 64 AS col0
----
-63
64

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 59, + 19 ) + 82
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6316
SELECT ALL CAST( 13 AS SIGNED ) + 48
----
61

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL CAST ( 13 AS INTEGER ) + 48
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT DISTINCT CAST( + - 48 AS SIGNED ) + + - 69 + 63 - - - 91 * + + 20 + 99 * + ( 86 ) * 49 + + + 70 AS col0
----
415382

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT CAST ( + - 48 AS INTEGER ) + + - 69 + 63 - - - 91 * + + 20 + 99 * + ( 86 ) * 49 + + + 70 AS col0
----
415382

query I rowsort
SELECT DISTINCT 62 + - COALESCE ( + 50, 43 ) + - + 53 * 58
----
-3062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT - CAST( - 96 AS SIGNED ) col1
----
96

skipif mysql # not compatible
query I rowsort label-6319
SELECT - CAST ( - 96 AS INTEGER ) col1
----
96

query I rowsort
SELECT + - 73 * 5 + - 37
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT DISTINCT - CASE + + ( - - 43 ) WHEN - 46 THEN + COALESCE ( - 7, 32, + 36 * - 88 ) * + + COUNT( - CAST( + + 84 AS SIGNED ) ) WHEN - - 83 * 33 + NULLIF ( + + 41, + 44 + - + 52 + 51 + 15 ) + + 97 * + ( + MAX( NULLIF ( 4, - 26 ) ) ) / + + 67 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - CASE + + ( - - 43 ) WHEN - 46 THEN + COALESCE ( - 7, 32, + 36 * - 88 ) * + + COUNT ( - CAST ( + + 84 AS INTEGER ) ) WHEN - - 83 * 33 + NULLIF ( + + 41, + 44 + - + 52 + 51 + 15 ) + + 97 * + ( + MAX ( NULLIF ( 4, - 26 ) ) ) / + + 67 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 7 + - 72 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + 77 - COUNT( * ) + 84 col0
----
160

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 77 - COUNT ( * ) + 84 col0
----
160

query I rowsort
SELECT ALL 21 + + - 72 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT + ( - - 8 ) + + - NULLIF ( + - 33, - + 65 * - 24 ) DIV - 85
----
8

skipif mysql # not compatible
query I rowsort label-6325
SELECT + ( - - 8 ) + + - NULLIF ( + - 33, - + 65 * - 24 ) / - 85
----
8

query I rowsort
SELECT - 60 * - 36 AS col2
----
2160

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6327
SELECT ALL NULLIF ( CAST( NULL AS DECIMAL ), + - 36 * CAST( + 96 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + + 52 * - 31 + - COALESCE ( - 95, + 40 ) * - 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL NULLIF ( CAST ( NULL AS REAL ), + - 36 * CAST ( + 96 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + + 52 * - 31 + - COALESCE ( - 95, + 40 ) * - 76 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6328
SELECT + SUM ( 99 )
----
99

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT ALL + ( - 95 ) DIV + - 8
----
11

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + ( - 95 ) / + - 8
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT COUNT( * ) - 40 + - MIN( DISTINCT + 37 )
----
-76

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT COUNT ( * ) - 40 + - MIN ( DISTINCT + 37 )
----
-76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT DISTINCT + 8 DIV + - 44 + - 68 + + + 59
----
-9

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + 8 / + - 44 + - 68 + + + 59
----
-9

query I rowsort
SELECT - - 97 + - 25 AS col1
----
72

query II rowsort
SELECT + 36, + 80 AS col2
----
36
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT - 73 * - 47 * - 35 + + - COUNT( DISTINCT 59 ) AS col2
----
-120086

skipif mysql # not compatible
query I rowsort label-6337
SELECT - 73 * - 47 * - 35 + + - COUNT ( DISTINCT 59 ) AS col2
----
-120086

query I rowsort
SELECT + 7 * ( + 48 ) AS col0
----
336

query I rowsort
SELECT - ( 3 ) * + 23 col1
----
-69

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

query I rowsort
SELECT - ( + 67 ) + + 72
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT ALL + COUNT( * ) AS col2, - ( + 36 ) * - - 24 + + ( + 65 ) AS col2
----
1
-799

skipif mysql # not compatible
query II rowsort label-6342
SELECT ALL + COUNT ( * ) AS col2, - ( + 36 ) * - - 24 + + ( + 65 ) AS col2
----
1
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - 25 * + + MIN( ALL - + 46 )
----
1150

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - 25 * + + MIN ( ALL - + 46 )
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - COUNT( * ) * + - COUNT( + - NULLIF ( - + 70, - 71 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6344
SELECT - COUNT ( * ) * + - COUNT ( + - NULLIF ( - + 70, - 71 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL - COUNT( * ) * - COALESCE ( - COUNT( * ), + 74, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL - COUNT ( * ) * - COALESCE ( - COUNT ( * ), + 74, COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT - 44 * 28 AS col2
----
-1232

query I rowsort
SELECT ( 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6348
SELECT ALL + COALESCE ( + 49, - MIN( DISTINCT 82 ) * + - 45 DIV - + 26 * - 98 ) * - + 72 AS col0
----
-3528

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + COALESCE ( + 49, - MIN ( DISTINCT 82 ) * + - 45 / - + 26 * - 98 ) * - + 72 AS col0
----
-3528

query I rowsort
SELECT - 6 * - 4 * COALESCE ( - + 24, - + 75 * - + 86 * - 84 - 13, - 44 )
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT - 65 + - 80 DIV + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 65 + - 80 / + - COUNT ( * )
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + 4 * + SUM( ALL - + 95 ) + + 84 + - - 81 + 90 - - COUNT( 87 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + 4 * + SUM ( ALL - + 95 ) + + 84 + - - 81 + 90 - - COUNT ( 87 ) AS col1
----
-124

query I rowsort
SELECT - 94 + 80 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT + 59 DIV 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6354
SELECT + 59 / 45 AS col2
----
1

query I rowsort
SELECT DISTINCT + 10 * + 53 + + 88 + - + 41 AS col1
----
577

query I rowsort
SELECT ALL ( - 57 ) * ( + 71 ) AS col0
----
-4047

query I rowsort
SELECT - 23 + + 82 + - 55 AS col2
----
4

query I rowsort
SELECT 44 + - 12 AS col1
----
32

query I rowsort
SELECT ALL + + 5 * - 70
----
-350

query I rowsort
SELECT - 8 + + 40
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT COUNT( * ), 37 * - 76 AS col0
----
1
-2812

skipif mysql # not compatible
query II rowsort label-6361
SELECT COUNT ( * ), 37 * - 76 AS col0
----
1
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MAX( ALL - - 23 ) + 63
----
86

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MAX ( ALL - - 23 ) + 63
----
86

query I rowsort
SELECT + 61 + + + ( + 82 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - - CASE - 29 WHEN - COALESCE ( 58, - 32 ) * + 5 THEN - COUNT( * ) + + + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT - - CASE - 29 WHEN - COALESCE ( 58, - 32 ) * + 5 THEN - COUNT ( * ) + + + 82 END
----
NULL

query I rowsort
SELECT - 36 + + - 49 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT + 75 + - NULLIF ( SUM( DISTINCT + CAST( NULL AS SIGNED ) ), 80 * 70 + + 91 - + - COUNT( * ) + 45 / - + 13 ) * - 23 * + COUNT( * ) - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT + 75 + - NULLIF ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), 80 * 70 + + 91 - + - COUNT ( * ) + 45 / - + 13 ) * - 23 * + COUNT ( * ) - - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL + - COUNT( * ) - 99 + - 54 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + - COUNT ( * ) - 99 + - 54 AS col0
----
-154

query I rowsort
SELECT 31 * + ( - - 82 ) * - + 65 AS col1
----
-165230

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT - NULLIF ( + SUM( ALL 91 ), + 53 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-6369
SELECT - NULLIF ( + SUM ( ALL 91 ), + 53 ) col2
----
-91

query I rowsort
SELECT ALL - 81 - - + 4 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT 10 * + - 48 - - SUM( DISTINCT + 4 ) AS col1, + 0 AS col1
----
-476
0

skipif mysql # not compatible
query II rowsort label-6371
SELECT 10 * + - 48 - - SUM ( DISTINCT + 4 ) AS col1, + 0 AS col1
----
-476
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT - 52 + - MAX( ALL - 29 ) + 58 DIV 95 + - 46 DIV + 60
----
-23

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 52 + - MAX ( ALL - 29 ) + 58 / 95 + - 46 / + 60
----
-23

query I rowsort
SELECT + NULLIF ( + 90, + 83 ) col0
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6375
SELECT CAST( CAST( - 10 AS SIGNED ) AS SIGNED ) * 24 DIV - 80
----
3

skipif mysql # not compatible
query I rowsort label-6375
SELECT CAST ( CAST ( - 10 AS INTEGER ) AS INTEGER ) * 24 / - 80
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6376
SELECT CAST( 70 AS SIGNED ) DIV + 2
----
35

skipif mysql # not compatible
query I rowsort label-6376
SELECT CAST ( 70 AS INTEGER ) / + 2
----
35

query II rowsort
SELECT 10 + ( + 16 ) AS col0, 95
----
26
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6378
SELECT CAST( - - 74 AS SIGNED ) DIV + 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT CAST ( - - 74 AS INTEGER ) / + 73 AS col1
----
1

query I rowsort
SELECT ALL 12 + 63 * - 17
----
-1059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6380
SELECT - 55 * + COUNT( * ) * 39 - - 19 * + + 81 AS col1, 46 * - 51 * - 3 * - - ( 62 ) * + COALESCE ( + ( + + 15 ), + + 36 ) + + + CAST( - 8 AS SIGNED ) DIV + 17 - + NULLIF ( + 67, 65 ) AS col1
----
-606
6545273

skipif mysql # not compatible
query II rowsort label-6380
SELECT - 55 * + COUNT ( * ) * 39 - - 19 * + + 81 AS col1, 46 * - 51 * - 3 * - - ( 62 ) * + COALESCE ( + ( + + 15 ), + + 36 ) + + + CAST ( - 8 AS INTEGER ) / + 17 - + NULLIF ( + 67, 65 ) AS col1
----
-606
6545273

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + COUNT( ALL + 56 ) * + COUNT( * ) * 81 * - - 40 AS col1
----
3240

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( ALL + 56 ) * + COUNT ( * ) * 81 * - - 40 AS col1
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT 19 * 92 * + 79 * - COUNT( * ) * + 3 * - 92
----
38113392

skipif mysql # not compatible
query I rowsort label-6382
SELECT 19 * 92 * + 79 * - COUNT ( * ) * + 3 * - 92
----
38113392

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL MAX( - 57 ) + - - 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL MAX ( - 57 ) + - - 56 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT ALL 11 + + 91 * - CAST( - 28 AS SIGNED )
----
2559

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL 11 + + 91 * - CAST ( - 28 AS INTEGER )
----
2559

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL - COUNT( * ) + - MAX( 62 ) - CASE 81 WHEN - ( + - SUM( - 77 ) ) - + - 99 + - CASE - - 7 WHEN 0 THEN 77 END + - 97 THEN 6 ELSE + 10 END
----
-73

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - COUNT ( * ) + - MAX ( 62 ) - CASE 81 WHEN - ( + - SUM ( - 77 ) ) - + - 99 + - CASE - - 7 WHEN 0 THEN 77 END + - 97 THEN 6 ELSE + 10 END
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL + 68 + 18 + - COUNT( * ) * + + CAST( ( + 41 ) AS SIGNED ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + 68 + 18 + - COUNT ( * ) * + + CAST ( ( + 41 ) AS INTEGER ) AS col1
----
45

query I rowsort
SELECT ALL + 95 * + 42 AS col1
----
3990

query I rowsort
SELECT 44 * - 16
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-6389
SELECT 76 * + MAX( DISTINCT CASE + ( + 91 ) WHEN 56 THEN - + 85 ELSE - + 43 END ) * 36 * - - COUNT( * ) AS col2, 51 + + 5 + 94 + - 30 + - COUNT( + ( 15 ) )
----
-117648
119

skipif mysql # not compatible
query II rowsort label-6389
SELECT 76 * + MAX ( DISTINCT CASE + ( + 91 ) WHEN 56 THEN - + 85 ELSE - + 43 END ) * 36 * - - COUNT ( * ) AS col2, 51 + + 5 + 94 + - 30 + - COUNT ( + ( 15 ) )
----
-117648
119

query I rowsort
SELECT + 15 * + 16 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT SUM( - 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6391
SELECT SUM ( - 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT ALL + 2 DIV + 47 * + COUNT( * ) * + 82 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + 2 / + 47 * + COUNT ( * ) * + 82 / - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT + 69 * + 89 * - + COUNT( * ) AS col0
----
-6141

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + 69 * + 89 * - + COUNT ( * ) AS col0
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT - 52 * - COUNT( ALL + 38 ) * - - 45 AS col0
----
2340

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - 52 * - COUNT ( ALL + 38 ) * - - 45 AS col0
----
2340

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT ALL - 41 DIV + 4
----
-10

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - 41 / + 4
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT + ( - 42 ) DIV 22 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6397
SELECT + ( - 42 ) / 22 col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT 94 + + 37 - + 38 AS col2, ( + COALESCE ( + - 14, - ( + ( - - 47 ) ) * MIN( DISTINCT - 64 ) + + + 67, - COUNT( ALL - 51 ) ) )
----
93
-14

skipif mysql # not compatible
query II rowsort label-6398
SELECT 94 + + 37 - + 38 AS col2, ( + COALESCE ( + - 14, - ( + ( - - 47 ) ) * MIN ( DISTINCT - 64 ) + + + 67, - COUNT ( ALL - 51 ) ) )
----
93
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + CAST( + 34 AS SIGNED ) * - 96
----
-3264

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + CAST ( + 34 AS INTEGER ) * - 96
----
-3264

query I rowsort
SELECT 25 * - 63
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - - MAX( DISTINCT + ( + 98 ) ) col1
----
98

skipif mysql # not compatible
query I rowsort label-6401
SELECT - - MAX ( DISTINCT + ( + 98 ) ) col1
----
98

query I rowsort
SELECT ALL + NULLIF ( + + 91, - + 60 * - 21 )
----
91

query I rowsort
SELECT + ( + 16 ) + + 90 + - + 77
----
29

query I rowsort
SELECT + 49 * - 61 * ( + 67 )
----
-200263

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - SUM( ALL - + ( + ( - 75 ) ) ) * + MIN( - 50 ) AS col2
----
3750

skipif mysql # not compatible
query I rowsort label-6405
SELECT - SUM ( ALL - + ( + ( - 75 ) ) ) * + MIN ( - 50 ) AS col2
----
3750

query I rowsort
SELECT DISTINCT 49 + - 65 + + 48 + - + ( - 40 ) * + 7
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT ALL 85 AS col0, SUM( - 46 ) - 79
----
85
-125

skipif mysql # not compatible
query II rowsort label-6407
SELECT ALL 85 AS col0, SUM ( - 46 ) - 79
----
85
-125

query I rowsort
SELECT 78 + 55 AS col0
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT COUNT( * ) + - 83 DIV 11 DIV COUNT( * ) + + + 37 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6409
SELECT COUNT ( * ) + - 83 / 11 / COUNT ( * ) + + + 37 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT NULLIF ( + + 84, + COUNT( * ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6410
SELECT NULLIF ( + + 84, + COUNT ( * ) ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL + ( 0 ) * COUNT( * ) + COUNT( * ) + - 81 + - 31 + - - 79 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + ( 0 ) * COUNT ( * ) + COUNT ( * ) + - 81 + - 31 + - - 79 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT CASE + 69 WHEN + + 44 THEN - + 42 * + + COUNT( * ) WHEN + 3 + - - 55 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT CASE + 69 WHEN + + 44 THEN - + 42 * + + COUNT ( * ) WHEN + 3 + - - 55 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT MIN( + - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6414
SELECT MIN ( + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT COUNT( * ) * - - 43 * + 2 + 90
----
176

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT COUNT ( * ) * - - 43 * + 2 + 90
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL 41 * - NULLIF ( - ( - 33 ), 85 / + CASE 93 WHEN + - COUNT( * ) + + - 29 THEN - - 84 WHEN + - 5 * 39 THEN NULL ELSE NULL END * + 45 * + NULLIF ( - 46, 51 ) + - + 45 + - - ( ( - + 31 ) ) + + + COUNT( * ) + + 84 ) AS col0
----
-1353

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL 41 * - NULLIF ( - ( - 33 ), 85 / + CASE 93 WHEN + - COUNT ( * ) + + - 29 THEN - - 84 WHEN + - 5 * 39 THEN NULL ELSE NULL END * + 45 * + NULLIF ( - 46, 51 ) + - + 45 + - - ( ( - + 31 ) ) + + + COUNT ( * ) + + 84 ) AS col0
----
-1353

query I rowsort
SELECT DISTINCT - 33 * 19 + 78 col2
----
-549

query I rowsort
SELECT DISTINCT 70 * + + 52 AS col2
----
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT ALL COUNT( * ) * 72 + + 25 + + - ( + + 53 ) DIV + NULLIF ( - + 72, - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL COUNT ( * ) * 72 + + 25 + + - ( + + 53 ) / + NULLIF ( - + 72, - COUNT ( * ) )
----
97

query I rowsort
SELECT + 0 * - ( - 20 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6421
SELECT + 17 DIV + - SUM( - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT + 17 / + - SUM ( - 18 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT - 38 DIV + + 34 + + 16
----
15

skipif mysql # not compatible
query I rowsort label-6422
SELECT - 38 / + + 34 + + 16
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT SUM( 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-6423
SELECT SUM ( 56 ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6424
SELECT ALL 58 DIV COUNT( * ) * + - COUNT( DISTINCT + ( - CAST( + - 13 AS SIGNED ) ) ) AS col2, - COUNT( - 99 ) * + COUNT( DISTINCT - 34 ) AS col1
----
-58
-1

skipif mysql # not compatible
query II rowsort label-6424
SELECT ALL 58 / COUNT ( * ) * + - COUNT ( DISTINCT + ( - CAST ( + - 13 AS INTEGER ) ) ) AS col2, - COUNT ( - 99 ) * + COUNT ( DISTINCT - 34 ) AS col1
----
-58
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-6425
SELECT COUNT( * ), CASE + + 30 WHEN - 62 THEN NULL ELSE 97 END + 86 AS col0, + COALESCE ( + + 3, - 30 ) col0
----
1
183
3

skipif mysql # not compatible
query III rowsort label-6425
SELECT COUNT ( * ), CASE + + 30 WHEN - 62 THEN NULL ELSE 97 END + 86 AS col0, + COALESCE ( + + 3, - 30 ) col0
----
1
183
3

query I rowsort
SELECT + 81 + - 82
----
-1

query I rowsort
SELECT + - 17 * 56
----
-952

query I rowsort
SELECT - - 75 * - 32 + + 99
----
-2301

query I rowsort
SELECT ALL 13 - 54
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + MAX( - + 58 ) + 50
----
-8

skipif mysql # not compatible
query I rowsort label-6430
SELECT + MAX ( - + 58 ) + 50
----
-8

query I rowsort
SELECT ALL + + 25 * - 81 AS col2
----
-2025

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

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

query I rowsort
SELECT - NULLIF ( - 69, + - ( - - 66 ) )
----
69

query I rowsort
SELECT + + 90 * 77
----
6930

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

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 41 * + + 28 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT ALL - + ( COUNT( * ) ) * 40 AS col0, - 44 + + - 75
----
-40
-119

skipif mysql # not compatible
query II rowsort label-6436
SELECT ALL - + ( COUNT ( * ) ) * 40 AS col0, - 44 + + - 75
----
-40
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT SUM( ALL - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT SUM ( ALL - 39 )
----
-39

query I rowsort
SELECT - - 9 + 64 + - 24 * - + 60 + + 44 * 58
----
4065

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - + COUNT( * ) * + + COUNT( * ) + + + 63 - + 4
----
58

skipif mysql # not compatible
query I rowsort label-6439
SELECT - + COUNT ( * ) * + + COUNT ( * ) + + + 63 - + 4
----
58

query I rowsort
SELECT DISTINCT + NULLIF ( - ( - - 80 ), - 69 - 66 ) AS col1
----
-80

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

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

query I rowsort
SELECT ALL 39 + + 20 * + 55
----
1139

query I rowsort
SELECT DISTINCT - 85 + + + 31 AS col2
----
-54

query I rowsort
SELECT - 7 * - 3
----
21

query I rowsort
SELECT DISTINCT + 21 + 13 col2
----
34

query I rowsort
SELECT DISTINCT + 12 * + + 15 AS col2
----
180

query I rowsort
SELECT DISTINCT ( COALESCE ( + 29, - - 33, 88 * + 50 * + - 79 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL CAST( 11 AS SIGNED ) * + - 57 AS col0
----
-627

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL CAST ( 11 AS INTEGER ) * + - 57 AS col0
----
-627

query I rowsort
SELECT - 71 + 0 + + + 24 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT + COUNT( * ) + - 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT + COUNT ( * ) + - 61 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL CASE + 1 WHEN + MIN( DISTINCT - - 22 ) * 87 THEN 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL CASE + 1 WHEN + MIN ( DISTINCT - - 22 ) * 87 THEN 41 END AS col1
----
NULL

query I rowsort
SELECT - 6 * + 51
----
-306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT ( + CASE - - 50 WHEN + CAST( - 15 AS SIGNED ) THEN + 31 + 83 * - - 53 WHEN + + 10 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT ( + CASE - - 50 WHEN + CAST ( - 15 AS INTEGER ) THEN + 31 + 83 * - - 53 WHEN + + 10 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT + COUNT( * ) + - COALESCE ( + 63, - COUNT( ALL - NULLIF ( + + 68, + 81 ) ) * + 71 * + 7, - 48 - - 41 + + MIN( ALL + + 67 ) + + 6 + - + 86 ) + NULLIF ( CAST( + - 2 AS SIGNED ), - 96 + + 3 ) * + - 42 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6454
SELECT + COUNT ( * ) + - COALESCE ( + 63, - COUNT ( ALL - NULLIF ( + + 68, + 81 ) ) * + 71 * + 7, - 48 - - 41 + + MIN ( ALL + + 67 ) + + 6 + - + 86 ) + NULLIF ( CAST ( + - 2 AS INTEGER ), - 96 + + 3 ) * + - 42 AS col0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-6455
SELECT DISTINCT - 29 DIV - 68 - - 7 + + 30, 71 AS col1
----
37
71

skipif mysql # not compatible
query II rowsort label-6455
SELECT DISTINCT - 29 / - 68 - - 7 + + 30, 71 AS col1
----
37
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + ( + + CASE 86 WHEN COUNT( * ) THEN + - 41 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT + ( + + CASE 86 WHEN COUNT ( * ) THEN + - 41 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + 96 * + 86 * 78 - + COUNT( * ) col2
----
643967

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + 96 * + 86 * 78 - + COUNT ( * ) col2
----
643967

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6458
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col1, - 45 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-6458
SELECT ( - CAST ( NULL AS REAL ) ) AS col1, - 45 AS col0
----
NULL
-45

query I rowsort
SELECT + ( CASE - + NULLIF ( + 59, + 10 * 90 + + 82 ) WHEN + - 94 THEN + 29 + - + 99 * - 80 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT + MAX( DISTINCT - + 98 ) AS col2, - 90 + COUNT( * ) * + 10
----
-98
-80

skipif mysql # not compatible
query II rowsort label-6460
SELECT + MAX ( DISTINCT - + 98 ) AS col2, - 90 + COUNT ( * ) * + 10
----
-98
-80

query I rowsort
SELECT + 46 * - + 30 * - - 24 * 51 AS col2
----
-1689120

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT ALL 52 * ( - - SUM( - + 71 ) ) AS col0, + 24 * CASE + 59 WHEN - 19 THEN + MIN( ALL 8 ) END * + - ( + SUM( + 17 ) )
----
-3692
NULL

skipif mysql # not compatible
query II rowsort label-6462
SELECT ALL 52 * ( - - SUM ( - + 71 ) ) AS col0, + 24 * CASE + 59 WHEN - 19 THEN + MIN ( ALL 8 ) END * + - ( + SUM ( + 17 ) )
----
-3692
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6463
SELECT ALL + CAST( - 28 AS SIGNED ) AS col0, + 38 * + 68 + + 0 AS col2
----
-28
2584

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL + CAST ( - 28 AS INTEGER ) AS col0, + 38 * + 68 + + 0 AS col2
----
-28
2584

query I rowsort
SELECT DISTINCT + + ( - 13 ) AS col0
----
-13

query I rowsort
SELECT + COALESCE ( + 92, 82 ) AS col2
----
92

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

query I rowsort
SELECT + 91 * 30
----
2730

query I rowsort
SELECT - 4 * 89
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL NULLIF ( - 40, 84 ) * 12 * - + 85 + + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - NULLIF ( 4, 77 + - 81 / - 9 + 22 * + 47 + + + 52 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL NULLIF ( - 40, 84 ) * 12 * - + 85 + + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - NULLIF ( 4, 77 + - 81 / - 9 + 22 * + 47 + + + 52 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 55 * 68 + 98 + + 10 + - 89 AS col2
----
3759

query I rowsort
SELECT - NULLIF ( - 68, - 90 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL + 20 * - + 57 + + + 91 + + 61 + + - 97 * COUNT( * )
----
-1085

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + 20 * - + 57 + + + 91 + + 61 + + - 97 * COUNT ( * )
----
-1085

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

skipif mysql # not compatible
query I rowsort label-6473
SELECT - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - ( + + 17 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + - COUNT( * ) + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-6474
SELECT + - COUNT ( * ) + - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - - 12 * - 79 + ( - MAX( ALL - 28 ) ) AS col1
----
-920

skipif mysql # not compatible
query I rowsort label-6475
SELECT - - 12 * - 79 + ( - MAX ( ALL - 28 ) ) AS col1
----
-920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT + + 43 + - 32 + - 12 DIV + 11 - - - 90 + COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6476
SELECT + + 43 + - 32 + - 12 / + 11 - - - 90 + COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + COUNT( * ) + + 46
----
47

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + COUNT ( * ) + + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT - 42 DIV - ( - + 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT - 42 / - ( - + 76 ) AS col2
----
0

query I rowsort
SELECT + 54 + - 20 + 65 AS col0
----
99

query I rowsort
SELECT - 60 * - 89 AS col1
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - 30 + 56 + - NULLIF ( - 28, 20 * + 89 + - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6481
SELECT - 30 + 56 + - NULLIF ( - 28, 20 * + 89 + - COUNT ( * ) ) AS col1
----
54

query I rowsort
SELECT DISTINCT COALESCE ( - 91, 54 ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT ALL - 36 DIV + + 88 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 36 / + + 88 * - 30
----
0

query I rowsort
SELECT 29 * 83
----
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT + 18 * + 18 * - 79 * COUNT( * ) * + ( + - 23 ) AS col1
----
588708

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + 18 * + 18 * - 79 * COUNT ( * ) * + ( + - 23 ) AS col1
----
588708

query II rowsort
SELECT 2 AS col0, - 8 AS col1
----
2
-8

query II rowsort
SELECT ALL + ( - 34 ) * + 54 AS col1, - 12 * - + NULLIF ( - 48, - 82 * - 50 / - - AVG ( DISTINCT 50 ) + 26 ) + 84
----
-1836
-492

query I rowsort
SELECT 19 * - 97 AS col2
----
-1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT COUNT( * ) * - COALESCE ( + MIN( 86 ), + + 13 + + - MAX( 38 ), - + 54 ) * - + 11 DIV + COUNT( * ) + - + 84 + - 78 + 63
----
847

skipif mysql # not compatible
query I rowsort label-6489
SELECT COUNT ( * ) * - COALESCE ( + MIN ( 86 ), + + 13 + + - MAX ( 38 ), - + 54 ) * - + 11 / + COUNT ( * ) + - + 84 + - 78 + 63
----
847

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6490
SELECT ALL - CAST( + ( 15 ) AS SIGNED ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, 22 AS col0, + + 44 DIV - CAST( 26 AS SIGNED )
----
NULL
22
-1

skipif mysql # not compatible
query III rowsort label-6490
SELECT ALL - CAST ( + ( 15 ) AS INTEGER ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, 22 AS col0, + + 44 / - CAST ( 26 AS INTEGER )
----
NULL
22
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT COUNT( * ) * + + 87 - - + 11
----
98

skipif mysql # not compatible
query I rowsort label-6491
SELECT COUNT ( * ) * + + 87 - - + 11
----
98

query I rowsort
SELECT ALL - ( - 55 ) AS col0
----
55

query I rowsort
SELECT 47 + - 84 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT DISTINCT - CASE NULLIF ( - - COUNT( + + 80 ), - 23 * + - MIN( DISTINCT - 21 ) ) WHEN + 83 + - + 98 * COUNT( * ) / 1 * - 67 * 68 THEN - 67 ELSE + 74 * + ( + 24 ) * 0 + + AVG ( ALL 27 ) * - CAST( NULL AS SIGNED ) + 35 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT - CASE NULLIF ( - - COUNT ( + + 80 ), - 23 * + - MIN ( DISTINCT - 21 ) ) WHEN + 83 + - + 98 * COUNT ( * ) / 1 * - 67 * 68 THEN - 67 ELSE + 74 * + ( + 24 ) * 0 + + AVG ( ALL 27 ) * - CAST ( NULL AS INTEGER ) + 35 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + ( - 80 ) * + - 24 - + 16 + COUNT( * )
----
1905

skipif mysql # not compatible
query I rowsort label-6495
SELECT + ( - 80 ) * + - 24 - + 16 + COUNT ( * )
----
1905

query II rowsort
SELECT COALESCE ( 67, 23 * 80 + - 88 ) + + 42 + + ( - 47 ) + - 67 * - - 95, - 83 AS col2
----
-6303
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT 31 + - SUM( + 96 )
----
-65

skipif mysql # not compatible
query I rowsort label-6497
SELECT 31 + - SUM ( + 96 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL 58 + - SUM( + 42 ) * - 18 * + 58 * - SUM( 97 )
----
-4253198

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL 58 + - SUM ( + 42 ) * - 18 * + 58 * - SUM ( 97 )
----
-4253198

query I rowsort
SELECT 82 * - + 37 + 85
----
-2949

query I rowsort
SELECT DISTINCT - 60 + - + 67 + - 37
----
-164

query I rowsort
SELECT DISTINCT 3 + 15 + + 1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6502
SELECT DISTINCT - MAX( + NULLIF ( + 80, 93 ) ) + - 80 * - 11 + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - MAX ( + NULLIF ( + 80, 93 ) ) + - 80 * - 11 + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - - CASE - 86 WHEN - - 27 THEN + 46 * + 78 + 80 ELSE SUM( - 46 ) * + - COUNT( * ) END
----
46

skipif mysql # not compatible
query I rowsort label-6503
SELECT - - CASE - 86 WHEN - - 27 THEN + 46 * + 78 + 80 ELSE SUM ( - 46 ) * + - COUNT ( * ) END
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT 48 DIV - 57 * - 63 + + + ( - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6504
SELECT 48 / - 57 * - 63 + + + ( - 11 ) AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - - CASE - + 24 WHEN - COUNT( * ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT - - CASE - + 24 WHEN - COUNT ( * ) THEN - COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6508
SELECT ALL 88 + CASE + 2 WHEN - 52 + + - COUNT( * ) THEN NULL WHEN + 60 THEN - - CASE - + 0 WHEN + 82 THEN NULL WHEN + 18 / + - MIN( ALL + 97 ) / + 31 * 51 + + 3 * + NULLIF ( + + CAST( NULL AS SIGNED ), + + 94 * - 38 ) + + 28 * 39 THEN - - COUNT( * ) - - 41 + + 84 - + 19 END / - - 5 ELSE NULL END / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 88 + CASE + 2 WHEN - 52 + + - COUNT ( * ) THEN NULL WHEN + 60 THEN - - CASE - + 0 WHEN + 82 THEN NULL WHEN + 18 / + - MIN ( ALL + 97 ) / + 31 * 51 + + 3 * + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 94 * - 38 ) + + 28 * 39 THEN - - COUNT ( * ) - - 41 + + 84 - + 19 END / - - 5 ELSE NULL END / + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 39 * + + MIN( + + 50 )
----
1950

skipif mysql # not compatible
query I rowsort label-6509
SELECT 39 * + + MIN ( + + 50 )
----
1950

query II rowsort
SELECT ALL 35 AS col1, + 26
----
35
26

query I rowsort
SELECT 13 * - 70
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT ( + 68 ) - 98 + + COALESCE ( + 92, - + 40, - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT ( + 68 ) - 98 + + COALESCE ( + 92, - + 40, - COUNT ( * ) )
----
62

query II rowsort
SELECT - 2, + 34 AS col1
----
-2
34

query II rowsort
SELECT - 5, - 39 + + 22 * 47 AS col1
----
-5
995

query II rowsort
SELECT - 57 AS col0, 50
----
-57
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT COALESCE ( - - ( - SUM( 36 ) ), + 54 + + - 36, COUNT( * ) * - 25 - 48 ) * - MIN( DISTINCT - 9 )
----
-324

skipif mysql # not compatible
query I rowsort label-6516
SELECT COALESCE ( - - ( - SUM ( 36 ) ), + 54 + + - 36, COUNT ( * ) * - 25 - 48 ) * - MIN ( DISTINCT - 9 )
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT 44 + - + COUNT( * ) - - + 57
----
100

skipif mysql # not compatible
query I rowsort label-6517
SELECT 44 + - + COUNT ( * ) - - + 57
----
100

query II rowsort
SELECT DISTINCT 19, - 81 * 11 AS col2
----
19
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6519
SELECT DISTINCT 21 col1, 15 + + + ( - 59 ) + - - CASE - 29 WHEN CASE 30 WHEN - + 7 THEN NULL WHEN + 72 THEN - 29 END * - + 35 + + - 49 + - CAST( NULL AS SIGNED ) + NULLIF ( - 35, + - 95 * 70 * - - CAST( + 88 AS SIGNED ) ) / + - 82 THEN 47 END * - + CAST( - + 53 AS SIGNED ) + + COUNT( 27 )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-6519
SELECT DISTINCT 21 col1, 15 + + + ( - 59 ) + - - CASE - 29 WHEN CASE 30 WHEN - + 7 THEN NULL WHEN + 72 THEN - 29 END * - + 35 + + - 49 + - CAST ( NULL AS INTEGER ) + NULLIF ( - 35, + - 95 * 70 * - - CAST ( + 88 AS INTEGER ) ) / + - 82 THEN 47 END * - + CAST ( - + 53 AS INTEGER ) + + COUNT ( 27 )
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL - MIN( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - MIN ( - 8 )
----
8

query II rowsort
SELECT ALL - 28, 47 AS col0
----
-28
47

query I rowsort
SELECT DISTINCT + 87 * - 59 * - 21 AS col1
----
107793

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

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

query II rowsort
SELECT + + 81 AS col2, 51 * 90 + - 90
----
81
4500

query I rowsort
SELECT 69 * + + 70 AS col0
----
4830

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT 72 * + COUNT( * ) + 32 + + + 76
----
180

skipif mysql # not compatible
query I rowsort label-6526
SELECT 72 * + COUNT ( * ) + 32 + + + 76
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL + - COUNT( * ) + - 14
----
-15

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + - COUNT ( * ) + - 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT 45 * COUNT( * ) * 74 AS col0
----
3330

skipif mysql # not compatible
query I rowsort label-6528
SELECT 45 * COUNT ( * ) * 74 AS col0
----
3330

query I rowsort
SELECT - COALESCE ( 87, + 48 + - - 9 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT + + 13 + - - 78 + 9 AS col2
----
100

query II rowsort
SELECT ALL - 94 AS col1, - 48 * 85 AS col0
----
-94
-4080

query I rowsort
SELECT ALL - 31 + 4 + - - 0 AS col0
----
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL ( + 99 ) + - CASE + - 80 WHEN + - 75 * - + NULLIF ( - + 49, + 96 ) THEN NULL WHEN 19 * 18 + + 33 THEN + SUM( - 38 ) - - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL ( + 99 ) + - CASE + - 80 WHEN + - 75 * - + NULLIF ( - + 49, + 96 ) THEN NULL WHEN 19 * 18 + + 33 THEN + SUM ( - 38 ) - - 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT COUNT( * ) * - NULLIF ( - + ( 16 ), + + 53 )
----
16

skipif mysql # not compatible
query I rowsort label-6535
SELECT COUNT ( * ) * - NULLIF ( - + ( 16 ), + + 53 )
----
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6537
SELECT 55 AS col2, + CAST( + COUNT( * ) AS SIGNED ) + 76 AS col2, - - 19
----
55
77
19

skipif mysql # not compatible
query III rowsort label-6537
SELECT 55 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) + 76 AS col2, - - 19
----
55
77
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6538
SELECT + - COUNT( ALL CAST( NULL AS SIGNED ) ) * + 83 - + 44 * 13 AS col2
----
-572

skipif mysql # not compatible
query I rowsort label-6538
SELECT + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 83 - + 44 * 13 AS col2
----
-572

query I rowsort
SELECT + 98 * - + 23
----
-2254

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

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - SUM ( 51 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT - - CAST( 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6541
SELECT - - CAST ( 32 AS INTEGER ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT ALL CASE - COUNT( * ) WHEN 81 - + 82 + - + 39 / - 18 * - 97 * 59 + + 79 THEN 13 + + 21 END, + COUNT( * ) * + 13 + + COALESCE ( - 8, 88 ) AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL CASE - COUNT ( * ) WHEN 81 - + 82 + - + 39 / - 18 * - 97 * 59 + + 79 THEN 13 + + 21 END, + COUNT ( * ) * + 13 + + COALESCE ( - 8, 88 ) AS col1
----
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6543
SELECT ALL ( - + 12 ) * CAST( + 25 AS SIGNED ) + + + 72 AS col2, 44 + - 37
----
-228
7

skipif mysql # not compatible
query II rowsort label-6543
SELECT ALL ( - + 12 ) * CAST ( + 25 AS INTEGER ) + + + 72 AS col2, 44 + - 37
----
-228
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT + MIN( DISTINCT - - 75 ) * - 44 * + COUNT( * )
----
-3300

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + MIN ( DISTINCT - - 75 ) * - 44 * + COUNT ( * )
----
-3300

query I rowsort
SELECT ALL COALESCE ( - 79, + - 59 * 10 + 99 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT + COUNT( 16 ) * + + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6546
SELECT + COUNT ( 16 ) * + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + COUNT( * ) - - + 95 + + 95
----
191

skipif mysql # not compatible
query I rowsort label-6547
SELECT + COUNT ( * ) - - + 95 + + 95
----
191

query I rowsort
SELECT ALL ( + + 14 ) * + 20
----
280

query I rowsort
SELECT - 71 + - 24 + + 80 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6550
SELECT + 77 - + COALESCE ( + ( + - 60 ), - + COUNT( * ) * 58 + 56 + COUNT( * ) * - - 8 DIV + ( - + 67 ), + NULLIF ( - 75, + 26 - - 60 * - + CAST( NULL AS SIGNED ) ) ) col1
----
137

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 77 - + COALESCE ( + ( + - 60 ), - + COUNT ( * ) * 58 + 56 + COUNT ( * ) * - - 8 / + ( - + 67 ), + NULLIF ( - 75, + 26 - - 60 * - + CAST ( NULL AS INTEGER ) ) ) col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT - 47 + 3 * - - CAST( NULL AS SIGNED ) + + 62 / - MIN( DISTINCT 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 47 + 3 * - - CAST ( NULL AS INTEGER ) + + 62 / - MIN ( DISTINCT 9 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT + 65 DIV + - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT + 65 / + - 94 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6553
SELECT + 71 DIV NULLIF ( - - 59, - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6553
SELECT + 71 / NULLIF ( - - 59, - CAST ( NULL AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT - CASE 68 WHEN - 97 THEN - + 23 * + 88 WHEN + 78 * - 45 THEN + ( - 89 ) * - + 6 END
----
NULL

query I rowsort
SELECT + 41 + 80
----
121

query I rowsort
SELECT + 17 + + + 62 * - - 86 AS col0
----
5349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT - CASE + + 51 WHEN - + 0 * CAST( + - 57 AS SIGNED ) * - COUNT( * ) + COUNT( * ) + - COUNT( * ) + 56 + - 53 THEN 99 + + ( + + COUNT( * ) ) WHEN COUNT( - + 46 ) + + AVG ( DISTINCT + 29 ) * - - 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT - CASE + + 51 WHEN - + 0 * CAST ( + - 57 AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) + 56 + - 53 THEN 99 + + ( + + COUNT ( * ) ) WHEN COUNT ( - + 46 ) + + AVG ( DISTINCT + 29 ) * - - 4 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL + 1 + + - 9 * + COUNT( * ) + + + 56 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL + 1 + + - 9 * + COUNT ( * ) + + + 56 AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT - COALESCE ( - 70, + 27 ) AS col2, 95 + - 38 + - MIN( ALL - 49 )
----
70
106

skipif mysql # not compatible
query II rowsort label-6559
SELECT - COALESCE ( - 70, + 27 ) AS col2, 95 + - 38 + - MIN ( ALL - 49 )
----
70
106

query I rowsort
SELECT + ( - 30 ) + 40 col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT DISTINCT 36 * - 29 + COUNT( * ) - 88 + 40 DIV + 31 + + - ( + - 46 )
----
-1084

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT 36 * - 29 + COUNT ( * ) - 88 + 40 / + 31 + + - ( + - 46 )
----
-1084

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL 74 * - 57 + + NULLIF ( - + COUNT( * ), - + 63 + + 46 / COUNT( * ) )
----
-4219

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL 74 * - 57 + + NULLIF ( - + COUNT ( * ), - + 63 + + 46 / COUNT ( * ) )
----
-4219

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - 78 * 86 + + 97 + NULLIF ( + 55, 80 * - - COUNT( * ) / + + 71 ) - - + COALESCE ( - MAX( DISTINCT + 81 ), + 12, COUNT( * ) ) AS col0
----
-6637

skipif mysql # not compatible
query I rowsort label-6563
SELECT - 78 * 86 + + 97 + NULLIF ( + 55, 80 * - - COUNT ( * ) / + + 71 ) - - + COALESCE ( - MAX ( DISTINCT + 81 ), + 12, COUNT ( * ) ) AS col0
----
-6637

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT + COUNT( * ) * + 6 + + 42 * - 64 + - COUNT( * ) + + 13 * + - 43 + - + 81 * ( - + 93 ) + COALESCE ( - + 67, 81, + 33 + + 82 ) AS col2
----
4224

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + COUNT ( * ) * + 6 + + 42 * - 64 + - COUNT ( * ) + + 13 * + - 43 + - + 81 * ( - + 93 ) + COALESCE ( - + 67, 81, + 33 + + 82 ) AS col2
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT DISTINCT 74 * + 52 * - CAST( - + MAX( ALL 77 ) AS SIGNED ) + + 27 AS col2
----
296323

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT 74 * + 52 * - CAST ( - + MAX ( ALL 77 ) AS INTEGER ) + + 27 AS col2
----
296323

query I rowsort
SELECT DISTINCT + + ( 77 ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6567
SELECT DISTINCT + 29 * + 91 + - + CAST( - + 79 AS SIGNED ) * + + 91, 28 AS col2
----
9828
28

skipif mysql # not compatible
query II rowsort label-6567
SELECT DISTINCT + 29 * + 91 + - + CAST ( - + 79 AS INTEGER ) * + + 91, 28 AS col2
----
9828
28

query I rowsort
SELECT DISTINCT + + 16 col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6569
SELECT + + CAST( NULL AS SIGNED ) + 13 col0, - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6569
SELECT + + CAST ( NULL AS INTEGER ) + 13 col0, - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT - ( 68 ) * + + 63 * + - ( COALESCE ( - COALESCE ( + 58, - + 1 + - + COUNT( * ) ), - - NULLIF ( COALESCE ( - + 99, AVG ( ALL 71 ) DIV 21 ), 75 * + 80 DIV + + MIN( DISTINCT - 5 ) ) * - COUNT( * ), + 23 * + 41, COUNT( * ) ) ) + - MAX( - 45 )
----
-248427

skipif mysql # not compatible
query I rowsort label-6570
SELECT - ( 68 ) * + + 63 * + - ( COALESCE ( - COALESCE ( + 58, - + 1 + - + COUNT ( * ) ), - - NULLIF ( COALESCE ( - + 99, AVG ( ALL 71 ) / 21 ), 75 * + 80 / + + MIN ( DISTINCT - 5 ) ) * - COUNT ( * ), + 23 * + 41, COUNT ( * ) ) ) + - MAX ( - 45 )
----
-248427

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + + SUM( + - 56 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-6571
SELECT + + SUM ( + - 56 ) col0
----
-56

query I rowsort
SELECT ALL + 71 * + 24 - 51 - - 18
----
1671

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6573
SELECT + NULLIF ( + 77, + + 40 ) + + ( + + COALESCE ( + + 50, 51 + - 84, - CASE - 64 WHEN - MAX( ALL - + 73 ) THEN + 17 WHEN 94 DIV - 19 THEN 24 END DIV + 29 ) ) * - 65 AS col2, + 22 AS col2
----
-3173
22

skipif mysql # not compatible
query II rowsort label-6573
SELECT + NULLIF ( + 77, + + 40 ) + + ( + + COALESCE ( + + 50, 51 + - 84, - CASE - 64 WHEN - MAX ( ALL - + 73 ) THEN + 17 WHEN 94 / - 19 THEN 24 END / + 29 ) ) * - 65 AS col2, + 22 AS col2
----
-3173
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - 10 * + 45 + - 50 + + + COUNT( * ) AS col0
----
-499

skipif mysql # not compatible
query I rowsort label-6574
SELECT - 10 * + 45 + - 50 + + + COUNT ( * ) AS col0
----
-499

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT - 53 + - 85 + - 87 + - - CASE 61 WHEN ( + 33 ) + + COUNT( * ) THEN - 78 END + - SUM( - + ( + 2 ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT - 53 + - 85 + - 87 + - - CASE 61 WHEN ( + 33 ) + + COUNT ( * ) THEN - 78 END + - SUM ( - + ( + 2 ) ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6577
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, ( + - 61 )
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-6577
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, ( + - 61 )
----
NULL
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6578
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - CASE 99 WHEN + - 67 / 45 + + + 85 * + 4 THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) * - 52 ELSE - 58 END )
----
58

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - CASE 99 WHEN + - 67 / 45 + + + 85 * + 4 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) * - 52 ELSE - 58 END )
----
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6580
SELECT - COALESCE ( - 39, + 99 * - + ( - COALESCE ( COUNT( * ), + - 35 ) ) * 28 DIV ( + 91 ) * + 73 - - 76 * + CAST( NULL AS SIGNED ) + + 39 - + 91 )
----
39

skipif mysql # not compatible
query I rowsort label-6580
SELECT - COALESCE ( - 39, + 99 * - + ( - COALESCE ( COUNT ( * ), + - 35 ) ) * 28 / ( + 91 ) * + 73 - - 76 * + CAST ( NULL AS INTEGER ) + + 39 - + 91 )
----
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT CAST( + - NULLIF ( 67, + 91 * + 37 + + + 21 - 17 + 92 * ( - COUNT( DISTINCT - 96 ) ) * - 29 ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT CAST ( + - NULLIF ( 67, + 91 * + 37 + + + 21 - 17 + 92 * ( - COUNT ( DISTINCT - 96 ) ) * - 29 ) AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - MIN( - 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6583
SELECT - MIN ( - 47 ) AS col2
----
47

query I rowsort
SELECT - 94 * - + 41 col2
----
3854

query I rowsort
SELECT ALL - 14 + + 93 * - 18
----
-1688

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

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

query I rowsort
SELECT DISTINCT 23 + + COALESCE ( 20, - 77, - - 96 ) * + 47
----
963

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL 82 + - COALESCE ( + + SUM( DISTINCT + 48 ), NULLIF ( - 10, + 1 + - - 65 ) * - COUNT( * ) * - - 48 )
----
34

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL 82 + - COALESCE ( + + SUM ( DISTINCT + 48 ), NULLIF ( - 10, + 1 + - - 65 ) * - COUNT ( * ) * - - 48 )
----
34

query II rowsort
SELECT 61 col2, 31
----
61
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT - 88 + + 82 + + SUM( ALL + 56 ) + - CASE - + 65 WHEN + 10 THEN NULL WHEN - 18 THEN + 42 ELSE NULL END * - - CAST( - 44 AS SIGNED ) * - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - 88 + + 82 + + SUM ( ALL + 56 ) + - CASE - + 65 WHEN + 10 THEN NULL WHEN - 18 THEN + 42 ELSE NULL END * - - CAST ( - 44 AS INTEGER ) * - + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT + 81 DIV 6
----
13

skipif mysql # not compatible
query I rowsort label-6591
SELECT + 81 / 6
----
13

query I rowsort
SELECT DISTINCT 87 + + - 49 AS col2
----
38

query I rowsort
SELECT ALL 46 + - 12
----
34

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

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

query I rowsort
SELECT + 81 + + + 20 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + COUNT( ALL + - 70 ) - + + 37 + - 2 + 99 / - + ( CASE 34 WHEN + ( ( + 3 ) ) THEN + + NULLIF ( + - 96, - + 25 * - 1 - + 9 + 43 * - COUNT( * ) * - 33 ) WHEN + MAX( - 12 ) THEN NULL ELSE NULL END ) * - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT + COUNT ( ALL + - 70 ) - + + 37 + - 2 + 99 / - + ( CASE 34 WHEN + ( ( + 3 ) ) THEN + + NULLIF ( + - 96, - + 25 * - 1 - + 9 + 43 * - COUNT ( * ) * - 33 ) WHEN + MAX ( - 12 ) THEN NULL ELSE NULL END ) * - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT ALL COALESCE ( + + COUNT( * ), - 83 ) DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL COALESCE ( + + COUNT ( * ), - 83 ) / - 39 AS col1
----
0

query II rowsort
SELECT - 72, - 62 - - 48 AS col0
----
-72
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL - + COUNT( * ) + ( - - 18 ) + - + 73 - - 3
----
-53

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL - + COUNT ( * ) + ( - - 18 ) + - + 73 - - 3
----
-53

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6601
SELECT ALL - SUM( - 58 ) DIV + - 68 + - - NULLIF ( - CASE + + 41 WHEN 31 THEN - CAST( - - 94 AS SIGNED ) * - - 31 + + - 57 * 38 WHEN + 57 THEN NULL ELSE + NULLIF ( MIN( 97 ), 94 + + - 55 + 93 * - 36 * - 25 - 27 ) - - 34 END, + 48 )
----
-131

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - SUM ( - 58 ) / + - 68 + - - NULLIF ( - CASE + + 41 WHEN 31 THEN - CAST ( - - 94 AS INTEGER ) * - - 31 + + - 57 * 38 WHEN + 57 THEN NULL ELSE + NULLIF ( MIN ( 97 ), 94 + + - 55 + 93 * - 36 * - 25 - 27 ) - - 34 END, + 48 )
----
-131

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6603
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 42 * 94
----
NULL
3948

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 42 * 94
----
NULL
3948

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT 3 DIV + + 60 + + 62 + - + 91
----
-29

skipif mysql # not compatible
query I rowsort label-6604
SELECT 3 / + + 60 + + 62 + - + 91
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL - 39 * + ( 7 ) + - 81 - + + COUNT( * ) - + 69 * - 69 + - - COUNT( * )
----
4407

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - 39 * + ( 7 ) + - 81 - + + COUNT ( * ) - + 69 * - 69 + - - COUNT ( * )
----
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + - SUM( + 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-6606
SELECT + - SUM ( + 69 ) col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT + NULLIF ( 5, - 88 - + 18 ) + + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-6607
SELECT + NULLIF ( 5, - 88 - + 18 ) + + COUNT ( * ) col2
----
6

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

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

query II rowsort
SELECT + 57 col2, - 32 AS col1
----
57
-32

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

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

query II rowsort
SELECT ALL - - 54 AS col1, - CASE - 34 WHEN ( + + 32 ) * + 93 THEN NULL WHEN - 46 THEN NULL ELSE + 74 END
----
54
-74

query II rowsort
SELECT ALL - 26 AS col2, + 20 AS col0
----
-26
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT + NULLIF ( 43, - - 46 ) * + + 10 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT + NULLIF ( 43, - - 46 ) * + + 10 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT ALL - COALESCE ( - 8, + - COUNT( * ) + 93 ) DIV - NULLIF ( - ( + NULLIF ( + 16, - 61 + AVG ( + - 22 ) + - 30 ) ), - - 59 * - 6 ) * - 84
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - COALESCE ( - 8, + - COUNT ( * ) + 93 ) / - NULLIF ( - ( + NULLIF ( + 16, - 61 + AVG ( + - 22 ) + - 30 ) ), - - 59 * - 6 ) * - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT + 46 DIV - 1 + - MIN( DISTINCT - - 73 ) + - + 60 AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-6615
SELECT + 46 / - 1 + - MIN ( DISTINCT - - 73 ) + - + 60 AS col2
----
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT ALL 66 DIV - 18 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL 66 / - 18 AS col0
----
-3

query I rowsort
SELECT 13 * + - 86
----
-1118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT COUNT( * ) DIV + COUNT( ALL - 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6618
SELECT COUNT ( * ) / + COUNT ( ALL - 94 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT 67 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-6620
SELECT 67 / 37
----
1

query I rowsort
SELECT ALL + 19 + + 1 AS col2
----
20

query II rowsort
SELECT ALL 24 + + + 23, 22 AS col1
----
47
22

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

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - 1 + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6624
SELECT ALL + 46 + + 42 * ( CAST( 90 AS SIGNED ) ) * 6 + + 92 * + 75 + CAST( - 4 AS SIGNED ), 86 AS col2
----
29622
86

skipif mysql # not compatible
query II rowsort label-6624
SELECT ALL + 46 + + 42 * ( CAST ( 90 AS INTEGER ) ) * 6 + + 92 * + 75 + CAST ( - 4 AS INTEGER ), 86 AS col2
----
29622
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT 37 + - 33 DIV - 28 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6625
SELECT 37 + - 33 / - 28 AS col1
----
38

query I rowsort
SELECT 92 * 14 AS col0
----
1288

query I rowsort
SELECT ALL - 83 + + - 29
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT 72 + 68 + - MAX( DISTINCT - 40 )
----
180

skipif mysql # not compatible
query I rowsort label-6628
SELECT 72 + 68 + - MAX ( DISTINCT - 40 )
----
180

query I rowsort
SELECT DISTINCT + 93 + - 18 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT ALL - + 40 + 53 AS col2, 96 - + ( + + COUNT( - 52 ) )
----
13
95

skipif mysql # not compatible
query II rowsort label-6630
SELECT ALL - + 40 + 53 AS col2, 96 - + ( + + COUNT ( - 52 ) )
----
13
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT 31 + + 91 + + SUM( ALL 79 ) AS col0
----
201

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT 31 + + 91 + + SUM ( ALL 79 ) AS col0
----
201

query I rowsort
SELECT ALL - 54 - 54 + + NULLIF ( 86, + 38 ) + - 66 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT + COUNT( * ) * - - 80 * - COALESCE ( - CAST( CASE - - COUNT( * ) WHEN - 24 * 85 + + CASE - COALESCE ( 22, - 81 * - COALESCE ( + COUNT( DISTINCT + 3 ), - 63 * - + MAX( ALL + 11 ), - + 47 + - - 15 - + 58 ) ) WHEN + NULLIF ( - 20, + COUNT( * ) * 8 ) / 95 + + 54 * SUM( 80 ) + 4 THEN + + 29 WHEN 11 THEN 5 END THEN - - 69 END AS SIGNED ), + + COALESCE ( 1, 38, + + 59, + 31 + - + COUNT( * ) - - 87 * + 62 ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6633
SELECT + COUNT ( * ) * - - 80 * - COALESCE ( - CAST ( CASE - - COUNT ( * ) WHEN - 24 * 85 + + CASE - COALESCE ( 22, - 81 * - COALESCE ( + COUNT ( DISTINCT + 3 ), - 63 * - + MAX ( ALL + 11 ), - + 47 + - - 15 - + 58 ) ) WHEN + NULLIF ( - 20, + COUNT ( * ) * 8 ) / 95 + + 54 * SUM ( 80 ) + 4 THEN + + 29 WHEN 11 THEN 5 END THEN - - 69 END AS INTEGER ), + + COALESCE ( 1, 38, + + 59, + 31 + - + COUNT ( * ) - - 87 * + 62 ) ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6634
SELECT DISTINCT ( + COALESCE ( 10, - - 88 DIV COUNT( * ) + - 79 + + - 6 - - - 28 * + + 54 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT ( + COALESCE ( 10, - - 88 / COUNT ( * ) + - 79 + + - 6 - - - 28 * + + 54 ) ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT - 52 - - COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - 52 - - COUNT ( * ) AS col1
----
-51

query I rowsort
SELECT ALL ( 50 ) - - + 58
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - 86 DIV 62 + ( - ( + - 92 ) ) + - 52 * - 87 DIV - 86
----
39

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 86 / 62 + ( - ( + - 92 ) ) + - 52 * - 87 / - 86
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6638
SELECT 59 * - + COALESCE ( 53, - - 13 * + COALESCE ( + + 93, + 57, + - NULLIF ( + + 71, 8 DIV + MAX( + 8 ) + 67 - ( + COUNT( * ) ) + + + ( 59 ) ) DIV - 1 + ( COALESCE ( - 95, - 51 ) ) - - SUM( CAST( - COALESCE ( + + COALESCE ( + 78, NULLIF ( + 80, - 18 + 1 ) ), - 13 ) AS SIGNED ) ) * + + 7, - 43 ) ) * - - 81
----
-253287

skipif mysql # not compatible
query I rowsort label-6638
SELECT 59 * - + COALESCE ( 53, - - 13 * + COALESCE ( + + 93, + 57, + - NULLIF ( + + 71, 8 / + MAX ( + 8 ) + 67 - ( + COUNT ( * ) ) + + + ( 59 ) ) / - 1 + ( COALESCE ( - 95, - 51 ) ) - - SUM ( CAST ( - COALESCE ( + + COALESCE ( + 78, NULLIF ( + 80, - 18 + 1 ) ), - 13 ) AS INTEGER ) ) * + + 7, - 43 ) ) * - - 81
----
-253287

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT 61 * - 13 / CASE + 10 WHEN 89 + - 89 + + - 72 THEN NULL WHEN - 13 + - 19 * + 25 / + 63 + - + CASE 65 WHEN - 17 * + - 55 THEN 80 * + 83 + 42 ELSE 75 END + 29 THEN NULL WHEN - + ( - + COUNT( * ) ) + 18 THEN - 94 ELSE NULL END + + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT 61 * - 13 / CASE + 10 WHEN 89 + - 89 + + - 72 THEN NULL WHEN - 13 + - 19 * + 25 / + 63 + - + CASE 65 WHEN - 17 * + - 55 THEN 80 * + 83 + 42 ELSE 75 END + 29 THEN NULL WHEN - + ( - + COUNT ( * ) ) + 18 THEN - 94 ELSE NULL END + + - 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - NULLIF ( 43, + NULLIF ( - SUM( 43 ), - 78 - + + 33 * 21 ) * 92 + + 46 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - NULLIF ( 43, + NULLIF ( - SUM ( 43 ), - 78 - + + 33 * 21 ) * 92 + + 46 ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6641
SELECT + 43 DIV + CAST( + 55 AS SIGNED ) * - ( - MIN( DISTINCT + ( 66 ) ) ) + 31 * 10 + COUNT( * ) AS col2
----
311

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 43 / + CAST ( + 55 AS INTEGER ) * - ( - MIN ( DISTINCT + ( 66 ) ) ) + 31 * 10 + COUNT ( * ) AS col2
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT COUNT( * ) * 51 * MAX( - + 59 )
----
-3009

skipif mysql # not compatible
query I rowsort label-6642
SELECT COUNT ( * ) * 51 * MAX ( - + 59 )
----
-3009

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6643
SELECT + CAST( NULL AS DECIMAL ) * + - ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT + CAST ( NULL AS REAL ) * + - ( 71 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT DISTINCT + 34 * + CAST( - CASE + - 67 WHEN MIN( + 23 ) / + - 37 THEN + AVG ( DISTINCT + 4 ) * + 37 WHEN + 25 THEN NULL END AS SIGNED ) * + 89 - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + 34 * + CAST ( - CASE + - 67 WHEN MIN ( + 23 ) / + - 37 THEN + AVG ( DISTINCT + 4 ) * + 37 WHEN + 25 THEN NULL END AS INTEGER ) * + 89 - 83
----
NULL

query I rowsort
SELECT 22 * 47
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT 89 + + - 63 + COUNT( DISTINCT 68 ) - - ( 12 ) + + CASE 88 WHEN - 35 / - 73 * - - 16 + + 79 THEN - 11 WHEN 6 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT 89 + + - 63 + COUNT ( DISTINCT 68 ) - - ( 12 ) + + CASE 88 WHEN - 35 / - 73 * - - 16 + + 79 THEN - 11 WHEN 6 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6647
SELECT ALL 12 + + 25 * + 13 AS col2, NULLIF ( - ( + 38 ), - COUNT( * ) )
----
337
-38

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL 12 + + 25 * + 13 AS col2, NULLIF ( - ( + 38 ), - COUNT ( * ) )
----
337
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6648
SELECT 50 * - - 50 * + - CASE - 90 WHEN - 74 THEN NULL WHEN - 54 THEN NULL WHEN - + CAST( 1 AS SIGNED ) THEN NULL WHEN + + 17 THEN - 75 + - 74 ELSE - - 31 + 16 + 69 + 90 + 92 * + COUNT( * ) * - 88 * + 81 + + 53 + COUNT( * ) END + 30 AS col2
----
1638790030

skipif mysql # not compatible
query I rowsort label-6648
SELECT 50 * - - 50 * + - CASE - 90 WHEN - 74 THEN NULL WHEN - 54 THEN NULL WHEN - + CAST ( 1 AS INTEGER ) THEN NULL WHEN + + 17 THEN - 75 + - 74 ELSE - - 31 + 16 + 69 + 90 + 92 * + COUNT ( * ) * - 88 * + 81 + + 53 + COUNT ( * ) END + 30 AS col2
----
1638790030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT CAST( + 10 AS SIGNED ) + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6649
SELECT CAST ( + 10 AS INTEGER ) + COUNT ( * )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + 60 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + 60 / - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + SUM( ALL NULLIF ( - 43, - 5 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-6651
SELECT + SUM ( ALL NULLIF ( - 43, - 5 ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6652
SELECT ALL 76 + COUNT( * ) - + 16 * 63 DIV - - 98 AS col1, 17 AS col1
----
67
17

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL 76 + COUNT ( * ) - + 16 * 63 / - - 98 AS col1, 17 AS col1
----
67
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT 11 + + 41 * COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT 11 + + 41 * COUNT ( * ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT ALL 70 + - ( 69 ) + - - 87 + - - ( - 13 ) DIV - 99 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL 70 + - ( 69 ) + - - 87 + - - ( - 13 ) / - 99 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT 92 + + 7 * - - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6655
SELECT 92 + + 7 * - - COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6656
SELECT 98 * + ( COUNT( * ) ), 68 AS col0
----
98
68

skipif mysql # not compatible
query II rowsort label-6656
SELECT 98 * + ( COUNT ( * ) ), 68 AS col0
----
98
68

query I rowsort
SELECT ALL + 43 * - 88
----
-3784

query I rowsort
SELECT DISTINCT 75 + 48
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT 82 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-6659
SELECT 82 / + 66
----
1

query I rowsort
SELECT ALL 10 - 39 * + + 96 / + - CASE + + 48 WHEN - 11 THEN - - 73 / 91 ELSE NULL END
----
NULL

query I rowsort
SELECT 88 * + NULLIF ( + - 2, - 56 )
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL - - CASE + - 84 WHEN COUNT( * ) THEN NULL WHEN + 26 THEN + COUNT( 99 ) * - 80 ELSE NULL END * - ( - 87 ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - - CASE + - 84 WHEN COUNT ( * ) THEN NULL WHEN + 26 THEN + COUNT ( 99 ) * - 80 ELSE NULL END * - ( - 87 ) + + 85
----
NULL

query II rowsort
SELECT - 34 - 57 + 11 AS col0, 57 * - 58 col1
----
-80
-3306

query II rowsort
SELECT - + 92, + 28 AS col2
----
-92
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT COUNT( * ) + + + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6665
SELECT COUNT ( * ) + + + 15 AS col1
----
16

query I rowsort
SELECT 38 * - 33 AS col1
----
-1254

query I rowsort
SELECT + 26 + - + 92 AS col0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + ( - - COUNT( DISTINCT - 45 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + ( - - COUNT ( DISTINCT - 45 ) ) AS col2
----
1

query I rowsort
SELECT - 92 * - 33 * 44
----
133584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT - + CAST( + 66 AS SIGNED ) - + 16 * - MAX( ALL + 91 ) AS col1
----
1390

skipif mysql # not compatible
query I rowsort label-6671
SELECT - + CAST ( + 66 AS INTEGER ) - + 16 * - MAX ( ALL + 91 ) AS col1
----
1390

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6673
SELECT - 20 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT - 20 / CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 59 * - - 45 * + 48
----
-127440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6675
SELECT - - 51 DIV - COUNT( * ) + 14 * COUNT( ALL - 52 )
----
-37

skipif mysql # not compatible
query I rowsort label-6675
SELECT - - 51 / - COUNT ( * ) + 14 * COUNT ( ALL - 52 )
----
-37

query I rowsort
SELECT + - 10 + - 9 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6677
SELECT ALL + - NULLIF ( 98, - + CASE - - 8 WHEN - + 53 THEN - - 51 WHEN - 48 * + ( 93 ) + + 92 - 81 + + 10 + - MAX( DISTINCT + - 58 ) * - 2 * 98 - + 15 THEN NULL ELSE 87 * 93 END * - + 74 ) AS col1, CAST( - 21 AS SIGNED )
----
-98
-21

skipif mysql # not compatible
query II rowsort label-6677
SELECT ALL + - NULLIF ( 98, - + CASE - - 8 WHEN - + 53 THEN - - 51 WHEN - 48 * + ( 93 ) + + 92 - 81 + + 10 + - MAX ( DISTINCT + - 58 ) * - 2 * 98 - + 15 THEN NULL ELSE 87 * 93 END * - + 74 ) AS col1, CAST ( - 21 AS INTEGER )
----
-98
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT - + 41 DIV 34 + + MIN( DISTINCT + - 11 )
----
-12

skipif mysql # not compatible
query I rowsort label-6678
SELECT - + 41 / 34 + + MIN ( DISTINCT + - 11 )
----
-12

query I rowsort
SELECT - + ( - - COALESCE ( + 91, - + 26, - + 62 ) ) * 19
----
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT NULLIF ( + + 74, + + NULLIF ( - COUNT( * ), + 46 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6680
SELECT NULLIF ( + + 74, + + NULLIF ( - COUNT ( * ), + 46 ) ) AS col0
----
74

query I rowsort
SELECT ALL 81 * - 55 + - 83 - ( - 38 ) AS col0
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT NULLIF ( 55, COUNT( * ) * + MIN( 99 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6682
SELECT NULLIF ( 55, COUNT ( * ) * + MIN ( 99 ) ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - 60 * + SUM( + 33 ) + + 93 + - + 41
----
-1928

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - 60 * + SUM ( + 33 ) + + 93 + - + 41
----
-1928

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL 25 * - CAST( NULL AS SIGNED ) + + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL 25 * - CAST ( NULL AS INTEGER ) + + 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT 24 * + + COUNT( DISTINCT 70 ) * 86
----
2064

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT 24 * + + COUNT ( DISTINCT 70 ) * 86
----
2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT - AVG ( - + ( - 87 ) ) + - + AVG ( + 50 ) - - ( - 73 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT - AVG ( - + ( - 87 ) ) + - + AVG ( + 50 ) - - ( - 73 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + CASE + ( + - ( - 93 ) ) WHEN 65 * 7 * MAX( DISTINCT 63 ) THEN + + 79 ELSE NULL END * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT + CASE + ( + - ( - 93 ) ) WHEN 65 * 7 * MAX ( DISTINCT 63 ) THEN + + 79 ELSE NULL END * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL ( + 6 ) * 57 * - + COUNT( * ) + - + COUNT( * ) * 76 - - - 12 * - - 28 AS col0
----
-754

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL ( + 6 ) * 57 * - + COUNT ( * ) + - + COUNT ( * ) * 76 - - - 12 * - - 28 AS col0
----
-754

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT + COALESCE ( + - 70, - + 81, - 35 DIV COUNT( * ) * + + 36 + - + COUNT( - 25 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6691
SELECT + COALESCE ( + - 70, - + 81, - 35 / COUNT ( * ) * + + 36 + - + COUNT ( - 25 ) ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6692
SELECT DISTINCT + 34 AS col2, SUM( - CAST( NULL AS SIGNED ) ) + - 64 + + - 92 * - 21
----
34
NULL

skipif mysql # not compatible
query II rowsort label-6692
SELECT DISTINCT + 34 AS col2, SUM ( - CAST ( NULL AS INTEGER ) ) + - 64 + + - 92 * - 21
----
34
NULL

query I rowsort
SELECT ALL 23 * + - NULLIF ( + - NULLIF ( + 16, - 90 ), + 6 ) * 66 + + + 53
----
24341

onlyif mysql # aggregate syntax: 
query II rowsort label-6694
SELECT ALL COUNT( * ) * ( 45 ) - 56 * ( + COUNT( * ) ) * - MIN( + 75 ) + + 22, 64 * + 75 AS col0
----
4267
4800

skipif mysql # not compatible
query II rowsort label-6694
SELECT ALL COUNT ( * ) * ( 45 ) - 56 * ( + COUNT ( * ) ) * - MIN ( + 75 ) + + 22, 64 * + 75 AS col0
----
4267
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + 5 + + ( + 84 ) + + 43 + ( - + 40 ) + 73 * + + 19 * + 23 * COUNT( * ) * - - 12 * + - 25 + + 8
----
-9570200

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 5 + + ( + 84 ) + + 43 + ( - + 40 ) + 73 * + + 19 * + 23 * COUNT ( * ) * - - 12 * + - 25 + + 8
----
-9570200

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL COUNT( * ) AS col0, - 45 * - 69
----
1
3105

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL COUNT ( * ) AS col0, - 45 * - 69
----
1
3105

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT + CAST( + 9 AS SIGNED ) * 34 AS col1
----
306

skipif mysql # not compatible
query I rowsort label-6698
SELECT + CAST ( + 9 AS INTEGER ) * 34 AS col1
----
306

query I rowsort
SELECT + 18 + + 94 + 5 - + 59 * - 44 * 44 * - 47 + - + 66 AS col0
----
-5368477

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6701
SELECT + 32 + - + 86 - + 25 * - - CAST( 61 AS SIGNED ) DIV - COUNT( * ) AS col0
----
1471

skipif mysql # not compatible
query I rowsort label-6701
SELECT + 32 + - + 86 - + 25 * - - CAST ( 61 AS INTEGER ) / - COUNT ( * ) AS col0
----
1471

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT - - 57 - + 70 + + 62 DIV + 25 + + + 36 * + 90 + + + 39 AS col1
----
3268

skipif mysql # not compatible
query I rowsort label-6702
SELECT - - 57 - + 70 + + 62 / + 25 + + + 36 * + 90 + + + 39 AS col1
----
3268

query I rowsort
SELECT - + 41 * - 93
----
3813

query I rowsort
SELECT - ( + CASE 19 WHEN + 73 THEN - - 74 * - 93 + - 39 WHEN 55 * - 7 + 19 THEN - + 67 * 64 ELSE - 64 * - 79 END )
----
-5056

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + - SUM( ALL - 5 ) * 71 AS col1
----
355

skipif mysql # not compatible
query I rowsort label-6705
SELECT + - SUM ( ALL - 5 ) * 71 AS col1
----
355

query I rowsort
SELECT ALL + + 97 * + NULLIF ( - 13, + - 64 * - - ( + 72 ) * 8 * - 49 - + 44 )
----
-1261

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

skipif mysql # not compatible
query I rowsort label-6707
SELECT + + ( + ( 39 ) ) + + + COUNT ( * ) / + 84 * + 79
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + COUNT( DISTINCT - - 18 ) * - - 14
----
14

skipif mysql # not compatible
query I rowsort label-6708
SELECT + COUNT ( DISTINCT - - 18 ) * - - 14
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT DISTINCT - 58 * 37 * + CAST( - - 40 AS SIGNED ) + - 27 AS col0
----
-85867

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - 58 * 37 * + CAST ( - - 40 AS INTEGER ) + - 27 AS col0
----
-85867

query I rowsort
SELECT ALL 60 * 21 * - 79
----
-99540

query II rowsort
SELECT - 32 AS col1, 83 * 54
----
-32
4482

query I rowsort
SELECT DISTINCT ( - ( + 22 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6713
SELECT - + 39 * + COUNT( * ) - 84 * - - 7, 96 AS col0
----
-627
96

skipif mysql # not compatible
query II rowsort label-6713
SELECT - + 39 * + COUNT ( * ) - 84 * - - 7, 96 AS col0
----
-627
96

query II rowsort
SELECT - 21, ( - - 47 ) AS col0
----
-21
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6716
SELECT - 83 AS col0, + CASE NULLIF ( - 99, + COUNT( * ) ) WHEN + 90 THEN 80 END + 26 + CAST( NULL AS DECIMAL ) AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-6716
SELECT - 83 AS col0, + CASE NULLIF ( - 99, + COUNT ( * ) ) WHEN + 90 THEN 80 END + 26 + CAST ( NULL AS REAL ) AS col2
----
-83
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT - + ( - + 18 ) DIV - 88 + - - 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6717
SELECT - + ( - + 18 ) / - 88 + - - 13 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT ALL - + 47 DIV + + 57 + + 17 + + 46
----
63

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - + 47 / + + 57 + + 17 + + 46
----
63

query II rowsort
SELECT - 19 + - - 54 AS col2, 4
----
35
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT ALL 52 DIV - COALESCE ( - 74, - - 73 ) + + 28 * - - 86
----
2408

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 52 / - COALESCE ( - 74, - - 73 ) + + 28 * - - 86
----
2408

query II rowsort
SELECT ALL + 60 * 71 AS col0, 80 AS col2
----
4260
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT - CASE + 62 WHEN - - 69 + + - COUNT( * ) THEN + COUNT( * ) * + - 95 WHEN - 2 + + - 2 THEN NULL END * - 86 * + ( + + 59 ) - - 82 AS col1, - 53 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-6722
SELECT - CASE + 62 WHEN - - 69 + + - COUNT ( * ) THEN + COUNT ( * ) * + - 95 WHEN - 2 + + - 2 THEN NULL END * - 86 * + ( + + 59 ) - - 82 AS col1, - 53 AS col2
----
NULL
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6723
SELECT + NULLIF ( 1, - 92 * - 85 + 81 + - AVG ( DISTINCT 30 ) + 55 - ( - - 0 ) + - - 3 + + 93 * 15 * CASE + + 34 WHEN + 69 * 72 * + - MAX( - 49 ) THEN NULL WHEN - 72 / + 86 THEN NULL ELSE - + 60 END * + AVG ( - 14 ) ) + - 34 + - - 82 * + CAST( NULL AS DECIMAL ) + - ( - ( + + COUNT( * ) ) ) + + + MIN( ALL 68 ) + - 84 * SUM( 60 ) * - 41 * + COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT + NULLIF ( 1, - 92 * - 85 + 81 + - AVG ( DISTINCT 30 ) + 55 - ( - - 0 ) + - - 3 + + 93 * 15 * CASE + + 34 WHEN + 69 * 72 * + - MAX ( - 49 ) THEN NULL WHEN - 72 / + 86 THEN NULL ELSE - + 60 END * + AVG ( - 14 ) ) + - 34 + - - 82 * + CAST ( NULL AS REAL ) + - ( - ( + + COUNT ( * ) ) ) + + + MIN ( ALL 68 ) + - 84 * SUM ( 60 ) * - 41 * + COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT 88 * 91 + 13 DIV + 26 AS col2
----
8008

skipif mysql # not compatible
query I rowsort label-6724
SELECT 88 * 91 + 13 / + 26 AS col2
----
8008

query I rowsort
SELECT ALL 32 * - + 92 - + 88 AS col2
----
-3032

query I rowsort
SELECT ALL - 35 * - 27 - + 57 * 40 AS col2
----
-1335

query I rowsort
SELECT + CASE - 57 WHEN - 62 THEN + - 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT DISTINCT + NULLIF ( - 76, - + 5 ), - COUNT( * ) col1
----
-76
-1

skipif mysql # not compatible
query II rowsort label-6728
SELECT DISTINCT + NULLIF ( - 76, - + 5 ), - COUNT ( * ) col1
----
-76
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL - 25 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - 25 / 66 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6730
SELECT + 99 / + COUNT ( * ) col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT + 75 + + 40 DIV + ( - 66 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-6731
SELECT + 75 + + 40 / + ( - 66 ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT + CAST( NULL AS SIGNED ) * 89 + CAST( NULL AS SIGNED ) + - + 11 + + - ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT + CAST ( NULL AS INTEGER ) * 89 + CAST ( NULL AS INTEGER ) + - + 11 + + - ( 61 )
----
NULL

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

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

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

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

query I rowsort
SELECT 67 + + ( - 34 ) AS col2
----
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL 38 DIV + 28 col2
----
1

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 38 / + 28 col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT COUNT ( * ) / - 63 AS col0
----
0

query I rowsort
SELECT 73 + - 68
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT 95 - + - 85 + - SUM( ALL 25 ) + 97
----
252

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT 95 - + - 85 + - SUM ( ALL 25 ) + 97
----
252

query II rowsort
SELECT + 5 AS col1, - 45 + + 53
----
5
8

query I rowsort
SELECT DISTINCT - 11 * ( + 27 ) AS col0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT - 39 * COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT - 39 * COUNT ( * ) AS col2
----
-39

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

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

query I rowsort
SELECT + 96 * 85 + 68
----
8228

query II rowsort
SELECT 45 AS col2, + 75 - - - 96
----
45
-21

query I rowsort
SELECT 26 * - 6 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT 30 * + + 1 - + COUNT( + 79 )
----
29

skipif mysql # not compatible
query I rowsort label-6748
SELECT 30 * + + 1 - + COUNT ( + 79 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6749
SELECT ALL + - ( - 41 ) * + 37 * + CAST( - 8 AS SIGNED ) + + COUNT( * ) * - + 30 * + 40, - ( + 87 ) + + 41 * + SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) col1
----
-13336
NULL

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL + - ( - 41 ) * + 37 * + CAST ( - 8 AS INTEGER ) + + COUNT ( * ) * - + 30 * + 40, - ( + 87 ) + + 41 * + SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) col1
----
-13336
NULL

query I rowsort
SELECT - 36 + 7 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT ALL 98, + MAX( + 26 ) * + 96 + 58 AS col2
----
98
2554

skipif mysql # not compatible
query II rowsort label-6751
SELECT ALL 98, + MAX ( + 26 ) * + 96 + 58 AS col2
----
98
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + 45 * + 57 * - MIN( ALL - CASE - 30 WHEN 97 THEN - 8 END ) + - + ( - + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 45 * + 57 * - MIN ( ALL - CASE - 30 WHEN 97 THEN - 8 END ) + - + ( - + 45 )
----
NULL

query II rowsort
SELECT 89 AS col1, + 43
----
89
43

query I rowsort
SELECT + 63 * 46
----
2898

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT - 12 * + + 48 * ( + CASE - 54 WHEN + 7 * - - COUNT( * ) THEN NULL ELSE + COUNT( * ) END ), 30 AS col1
----
-576
30

skipif mysql # not compatible
query II rowsort label-6755
SELECT - 12 * + + 48 * ( + CASE - 54 WHEN + 7 * - - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END ), 30 AS col1
----
-576
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT - 86 - + COUNT( * ) + + 70 * + MIN( - - 82 ) + - 63 AS col0
----
5590

skipif mysql # not compatible
query I rowsort label-6756
SELECT - 86 - + COUNT ( * ) + + 70 * + MIN ( - - 82 ) + - 63 AS col0
----
5590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6757
SELECT + 30 + CAST( + 12 AS SIGNED ) + - 3 AS col1, 85 * + - CAST( NULL AS SIGNED ) col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6757
SELECT + 30 + CAST ( + 12 AS INTEGER ) + - 3 AS col1, 85 * + - CAST ( NULL AS INTEGER ) col2
----
39
NULL

query I rowsort
SELECT 51 - - 47 * 24
----
1179

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

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + 17 + COUNT ( * ) AS col2
----
18

query II rowsort
SELECT - ( - - 62 ) + ( - - 11 ) AS col0, - NULLIF ( - + 48, 2 ) + 94
----
-51
142

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

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

query I rowsort
SELECT DISTINCT - 90 * - + ( + 51 ) AS col1
----
4590

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT 30 + 5 * + COUNT( * ) AS col2, - 6 * - - 67 AS col2
----
35
-402

skipif mysql # not compatible
query II rowsort label-6763
SELECT 30 + 5 * + COUNT ( * ) AS col2, - 6 * - - 67 AS col2
----
35
-402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT ALL - - 9 + 93 DIV + COUNT( * ) + + - COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - - 9 + 93 / + COUNT ( * ) + + - COUNT ( * )
----
101

query I rowsort
SELECT ALL + - COALESCE ( - - 33, + 54, 33 * - + 61 ) + - 0
----
-33

query I rowsort
SELECT + NULLIF ( + 6, - + 41 + - - 12 + + 10 + + 56 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL COUNT( * ) + + ( ( - - ( - - CASE + - AVG ( ALL - + 43 ) WHEN + - 78 THEN NULL WHEN - - 95 THEN NULL ELSE + NULLIF ( - 84, - 92 ) * + 4 END ) ) ) AS col1
----
-335

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL COUNT ( * ) + + ( ( - - ( - - CASE + - AVG ( ALL - + 43 ) WHEN + - 78 THEN NULL WHEN - - 95 THEN NULL ELSE + NULLIF ( - 84, - 92 ) * + 4 END ) ) ) AS col1
----
-335

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

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

query I rowsort
SELECT ( 74 ) + + 39
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - COUNT( ALL + 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6770
SELECT - COUNT ( ALL + 51 ) AS col2
----
-1

query I rowsort
SELECT 57 * + 87
----
4959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6772
SELECT ALL 47 DIV SUM( ALL - 5 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL 47 / SUM ( ALL - 5 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT SUM( - + 8 ) * 11 * + 2 + 8 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-6773
SELECT SUM ( - + 8 ) * 11 * + 2 + 8 AS col0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT 77 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT 77 / 11
----
7

query I rowsort
SELECT ALL 0 * + + ( + 19 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT CAST( - 31 AS SIGNED ) * - - COALESCE ( - + CAST( NULL AS SIGNED ), - ( + 63 ), - 11 * + 92 * + - 70 - + 40 ) + + 52 AS col0
----
2005

skipif mysql # not compatible
query I rowsort label-6776
SELECT CAST ( - 31 AS INTEGER ) * - - COALESCE ( - + CAST ( NULL AS INTEGER ), - ( + 63 ), - 11 * + 92 * + - 70 - + 40 ) + + 52 AS col0
----
2005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT 46 * 70 * CAST( 56 AS SIGNED ) * - 21
----
-3786720

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT 46 * 70 * CAST ( 56 AS INTEGER ) * - 21
----
-3786720

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT DISTINCT 5 * - 89 DIV - 75 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT 5 * - 89 / - 75 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT 62 / - 5 + + - 65 + - 90 * CASE - - 35 WHEN + - 49 * - - 22 THEN + - COUNT( * ) + - - 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT 62 / - 5 + + - 65 + - 90 * CASE - - 35 WHEN + - 49 * - - 22 THEN + - COUNT ( * ) + - - 2 END AS col0
----
NULL

query I rowsort
SELECT - 28 + + - 49 * + 92 + + 42 - 13 col0
----
-4507

query I rowsort
SELECT + ( 36 ) + + 97
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT NULLIF ( + - 4, COUNT( * ) * 54 ) * 53 + - 21 + - 55
----
-288

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT NULLIF ( + - 4, COUNT ( * ) * 54 ) * 53 + - 21 + - 55
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL + + CASE + 29 WHEN - 76 THEN + MAX( - - 10 ) * - AVG ( + 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + + CASE + 29 WHEN - 76 THEN + MAX ( - - 10 ) * - AVG ( + 63 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT ALL + 4 + + - SUM( - CAST( - 87 AS SIGNED ) ), 0 * + 83 * ( + 75 ) AS col2
----
-83
0

skipif mysql # not compatible
query II rowsort label-6784
SELECT ALL + 4 + + - SUM ( - CAST ( - 87 AS INTEGER ) ), 0 * + 83 * ( + 75 ) AS col2
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - - COALESCE ( - COUNT( * ), + 90 ) * - COUNT( * ) * 63 + + 51
----
114

skipif mysql # not compatible
query I rowsort label-6785
SELECT - - COALESCE ( - COUNT ( * ), + 90 ) * - COUNT ( * ) * 63 + + 51
----
114

query I rowsort
SELECT - 57 + ( 65 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT DISTINCT - 80 * COUNT( * ) AS col0, 10 * 38 AS col2
----
-80
380

skipif mysql # not compatible
query II rowsort label-6787
SELECT DISTINCT - 80 * COUNT ( * ) AS col0, 10 * 38 AS col2
----
-80
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT + COUNT( * ) DIV - - 24 + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6788
SELECT + COUNT ( * ) / - - 24 + + 21 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT - 97 + + - CAST( - + 44 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6789
SELECT - 97 + + - CAST ( - + 44 AS INTEGER ) AS col1
----
-53

query I rowsort
SELECT ALL - 88 + + - 85 + ( - 75 ) AS col2
----
-248

query II rowsort
SELECT DISTINCT 11 * 16, 83 AS col1
----
176
83

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

query II rowsort
SELECT ALL 16 - 46 AS col2, ( 31 ) AS col1
----
-30
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - 86 * - CASE COUNT( DISTINCT - + 15 ) WHEN 66 * 47 THEN NULL ELSE + 72 END AS col0
----
6192

skipif mysql # not compatible
query I rowsort label-6794
SELECT - 86 * - CASE COUNT ( DISTINCT - + 15 ) WHEN 66 * 47 THEN NULL ELSE + 72 END AS col0
----
6192

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

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL + COUNT ( * ) / - + 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT ALL ( CASE - 89 WHEN - - NULLIF ( - 27, + - CAST( - - 31 AS SIGNED ) ) THEN - 61 ELSE + 43 END )
----
43

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL ( CASE - 89 WHEN - - NULLIF ( - 27, + - CAST ( - - 31 AS INTEGER ) ) THEN - 61 ELSE + 43 END )
----
43

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

skipif mysql # not compatible
query I rowsort label-6797
SELECT - COUNT ( - 93 )
----
-1

query II rowsort
SELECT 32 AS col1, 30 + + - 29 * 89
----
32
-2551

query I rowsort
SELECT - 12 * 11
----
-132

query I rowsort
SELECT ALL NULLIF ( - 11, + ( - ( + 80 ) ) ) AS col2
----
-11

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

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( - 95 )
----
-1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT - COALESCE ( - COUNT( * ), + 13 + - + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) + - MIN( - 25 ) ) * + COUNT( * ) + + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6804
SELECT - COALESCE ( - COUNT ( * ), + 13 + - + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) + - MIN ( - 25 ) ) * + COUNT ( * ) + + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT + COUNT( DISTINCT + - 25 ) * 58 - 80 - ( + + 85 ) * 10 - ( - 16 )
----
-856

skipif mysql # not compatible
query I rowsort label-6805
SELECT + COUNT ( DISTINCT + - 25 ) * 58 - 80 - ( + + 85 ) * 10 - ( - 16 )
----
-856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6806
SELECT + COALESCE ( + 82, 16 DIV - COUNT( * ) * CAST( NULL AS SIGNED ), - 38 ) AS col1, + 91 * 90 AS col1
----
82
8190

skipif mysql # not compatible
query II rowsort label-6806
SELECT + COALESCE ( + 82, 16 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 38 ) AS col1, + 91 * 90 AS col1
----
82
8190

query I rowsort
SELECT ( + NULLIF ( 57, - CASE 1 WHEN ( + 59 ) * 94 THEN - - 10 END ) ) col1
----
57

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) + COALESCE ( + 13, - 5 * + + 12 ) DIV + - 95 * 96
----
-1

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) + COALESCE ( + 13, - 5 * + + 12 ) / + - 95 * 96
----
-1

query I rowsort
SELECT ALL 87 * - 55 * + - 78 * + 8 AS col0
----
2985840

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

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

query I rowsort
SELECT ALL + 11 * + 9 + - 0
----
99

query I rowsort
SELECT + 86 * + 41
----
3526

query I rowsort
SELECT ALL 51 * 55
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + 56 + + ( - ( COUNT( * ) ) )
----
55

skipif mysql # not compatible
query I rowsort label-6815
SELECT + 56 + + ( - ( COUNT ( * ) ) )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT CASE + 1 WHEN - 91 - - 79 THEN - CAST( 89 AS SIGNED ) WHEN - 14 * - 87 + 41 THEN - 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT CASE + 1 WHEN - 91 - - 79 THEN - CAST ( 89 AS INTEGER ) WHEN - 14 * - 87 + 41 THEN - 41 END AS col0
----
NULL

query I rowsort
SELECT CASE + 79 WHEN 7 THEN 98 * 73 + 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6818
SELECT ALL - 34 * COUNT( * ) + 2 DIV 65 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - 34 * COUNT ( * ) + 2 / 65 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT COALESCE ( ( 38 ), - 15 + SUM( 49 + ( 1 + 60 ) ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6819
SELECT COALESCE ( ( 38 ), - 15 + SUM ( 49 + ( 1 + 60 ) ) ) AS col1
----
38

query I rowsort
SELECT 32 * + 12 + - 51 AS col2
----
333

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT + 2 + 8 DIV - 26
----
2

skipif mysql # not compatible
query I rowsort label-6821
SELECT + 2 + 8 / - 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL + 7 * - COUNT( * ) - COALESCE ( ( - 69 ), - 9 )
----
62

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + 7 * - COUNT ( * ) - COALESCE ( ( - 69 ), - 9 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - COUNT( 64 ) * + 86
----
-86

skipif mysql # not compatible
query I rowsort label-6823
SELECT - COUNT ( 64 ) * + 86
----
-86

query I rowsort
SELECT + 67 + - 71 col0
----
-4

query I rowsort
SELECT + 43 + 2 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT - COALESCE ( - COUNT( * ), 52 + COALESCE ( 80, 22 ) * - 43, 17 * 47 ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-6826
SELECT - COALESCE ( - COUNT ( * ), 52 + COALESCE ( 80, 22 ) * - 43, 17 * 47 ) - + 51
----
-50

query I rowsort
SELECT DISTINCT + 24 * 63 AS col0
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6828
SELECT ALL - 69 - COUNT( * ) DIV 68 col1
----
-69

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - 69 - COUNT ( * ) / 68 col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT - COALESCE ( + 65, - CASE 82 WHEN AVG ( DISTINCT + COALESCE ( + 89, + 83 ) ) THEN NULL WHEN - 59 THEN NULL WHEN 2 + - 29 THEN + 91 DIV 76 ELSE + 86 END + 77 DIV 32 ) + 68 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6829
SELECT - COALESCE ( + 65, - CASE 82 WHEN AVG ( DISTINCT + COALESCE ( + 89, + 83 ) ) THEN NULL WHEN - 59 THEN NULL WHEN 2 + - 29 THEN + 91 / 76 ELSE + 86 END + 77 / 32 ) + 68 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT - ( - 1 ) * CASE COALESCE ( 59, + 33 ) WHEN - 5 * + 92 + COUNT( * ) THEN NULL WHEN + 62 * CAST( NULL AS SIGNED ) + COUNT( * ) THEN 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT - ( - 1 ) * CASE COALESCE ( 59, + 33 ) WHEN - 5 * + 92 + COUNT ( * ) THEN NULL WHEN + 62 * CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL ( + MIN( DISTINCT 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL ( + MIN ( DISTINCT 30 ) ) AS col1
----
30

query I rowsort
SELECT - 35 + - 8 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT - 47 DIV 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 47 / 19 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT - 52 DIV + 23
----
-2

skipif mysql # not compatible
query I rowsort label-6834
SELECT - 52 / + 23
----
-2

query I rowsort
SELECT + 22 * + 78 + + 1 * 29 AS col1
----
1745

query I rowsort
SELECT ALL - 35 + - COALESCE ( 97, ( 72 ), 89 + + 2 ) AS col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6837
SELECT 99 DIV 89 + - 99 * CAST( - MAX( DISTINCT - 40 ) AS SIGNED ) col2
----
-3959

skipif mysql # not compatible
query I rowsort label-6837
SELECT 99 / 89 + - 99 * CAST ( - MAX ( DISTINCT - 40 ) AS INTEGER ) col2
----
-3959

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 62 + + COUNT ( * )
----
-61

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL ( CASE COUNT( * ) WHEN AVG ( - 2 ) THEN 59 / 51 WHEN + MAX( ALL + 8 ) THEN NULL END ) + + ( + 70 ) * ( - 14 * 11 + + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL ( CASE COUNT ( * ) WHEN AVG ( - 2 ) THEN 59 / 51 WHEN + MAX ( ALL + 8 ) THEN NULL END ) + + ( + 70 ) * ( - 14 * 11 + + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT + 90 * - COALESCE ( + ( - COUNT( * ) ), 54 )
----
90

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + 90 * - COALESCE ( + ( - COUNT ( * ) ), 54 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ALL - COALESCE ( 17, - MAX( DISTINCT 54 ), 87 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - COALESCE ( 17, - MAX ( DISTINCT 54 ), 87 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT 67 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-6844
SELECT 67 / - 35
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6845
SELECT + 15 DIV - COUNT( * ) + ( - 88 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 15 / - COUNT ( * ) + ( - 88 ) AS col1
----
-103

query I rowsort
SELECT ALL 22 + 78
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT + 66 + - COUNT( DISTINCT ( - 80 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6847
SELECT + 66 + - COUNT ( DISTINCT ( - 80 ) ) AS col2
----
65

query I rowsort
SELECT DISTINCT - 94 - + 85 AS col2
----
-179

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

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL ( + 70 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT - + ( - NULLIF ( COUNT( * ), - 67 - - NULLIF ( - 35, + 2 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - + ( - NULLIF ( COUNT ( * ), - 67 - - NULLIF ( - 35, + 2 ) ) )
----
1

query I rowsort
SELECT ALL - ( 5 ) - - 38 AS col1
----
33

query I rowsort
SELECT + 41 * - COALESCE ( + 75 * - 60, - 59 ) AS col2
----
184500

query I rowsort
SELECT ALL + 69 * 99 AS col1
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT 59 + NULLIF ( COALESCE ( 24, - ( NULLIF ( + 6, - 9 - 53 * COUNT( * ) ) ) ), - 11 + + 25 )
----
83

skipif mysql # not compatible
query I rowsort label-6854
SELECT 59 + NULLIF ( COALESCE ( 24, - ( NULLIF ( + 6, - 9 - 53 * COUNT ( * ) ) ) ), - 11 + + 25 )
----
83

query I rowsort
SELECT ALL + 36 * + 64 col2
----
2304

query I rowsort
SELECT DISTINCT 33 * + 5 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT - 8 DIV 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 8 / 54 col0
----
0

query I rowsort
SELECT 36 * - 43
----
-1548

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

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

query I rowsort
SELECT 39 * 38 col1
----
1482

query I rowsort
SELECT - ( 53 ) * + 44 AS col0
----
-2332

query I rowsort
SELECT DISTINCT - 17 * - 90
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT 73 + - - MIN( DISTINCT 30 )
----
103

skipif mysql # not compatible
query I rowsort label-6863
SELECT 73 + - - MIN ( DISTINCT 30 )
----
103

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

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

query I rowsort
SELECT DISTINCT + 93 * - 91
----
-8463

query I rowsort
SELECT ALL 47 + + 47 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ( 48 ) - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6867
SELECT ( 48 ) - COUNT ( * )
----
47

query I rowsort
SELECT ( 49 ) * - 22 AS col0
----
-1078

query I rowsort
SELECT 8 + ( + 60 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT COUNT( COALESCE ( 1, - 3, 77 ) ) + 42 col2
----
43

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT COUNT ( COALESCE ( 1, - 3, 77 ) ) + 42 col2
----
43

query I rowsort
SELECT ALL + 75 + + + 76 + 25 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT 46 + MAX( ALL 57 ) * 90 AS col1
----
5176

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT 46 + MAX ( ALL 57 ) * 90 AS col1
----
5176

query I rowsort
SELECT ALL 81 * - - 32 AS col0
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - 31 + - + COALESCE ( + 2, + 18 + + 23, 24 * + COUNT( * ) - - 0, + COUNT( * ) * + MAX( ALL - 65 * + 72 ) ) * - 28 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - 31 + - + COALESCE ( + 2, + 18 + + 23, 24 * + COUNT ( * ) - - 0, + COUNT ( * ) * + MAX ( ALL - 65 * + 72 ) ) * - 28 AS col1
----
25

query I rowsort
SELECT ( - - 26 ) * + 28
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL - NULLIF ( - 12, COUNT( * ) ) - 80 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - NULLIF ( - 12, COUNT ( * ) ) - 80 AS col0
----
-68

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

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

query I rowsort
SELECT ALL + 1 * + - 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - - NULLIF ( + + 49, + MIN( - 60 ) + MIN( DISTINCT 76 ) )
----
49

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - - NULLIF ( + + 49, + MIN ( - 60 ) + MIN ( DISTINCT 76 ) )
----
49

query I rowsort
SELECT DISTINCT + ( - - 61 ) * 57
----
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL - 9 - 93 + - 76 * + COUNT( * ) * - 49
----
3622

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - 9 - 93 + - 76 * + COUNT ( * ) * - 49
----
3622

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + - MAX( - - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6882
SELECT + - MAX ( - - 33 )
----
-33

query I rowsort
SELECT + NULLIF ( 97, - 24 + + 12 ) * + 83 col2
----
8051

query I rowsort
SELECT ALL + - 0 * + 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 83 * - COUNT( DISTINCT 53 ) - - 18
----
101

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 83 * - COUNT ( DISTINCT 53 ) - - 18
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT - COALESCE ( - 40, - CAST( 43 AS SIGNED ) + + 73 ) * 38 + - 47 AS col0
----
1473

skipif mysql # not compatible
query I rowsort label-6886
SELECT - COALESCE ( - 40, - CAST ( 43 AS INTEGER ) + + 73 ) * 38 + - 47 AS col0
----
1473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) + + CASE 49 WHEN 77 THEN NULL WHEN CASE - 4 WHEN 32 THEN + COUNT( * ) WHEN - 59 THEN NULL WHEN - 18 - - 43 THEN NULL ELSE NULL END THEN NULL WHEN - 94 - - 57 THEN + COALESCE ( 60, COUNT( * ) + + 30 ) / 63 + 28 / - 19 END * + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + CASE 49 WHEN 77 THEN NULL WHEN CASE - 4 WHEN 32 THEN + COUNT ( * ) WHEN - 59 THEN NULL WHEN - 18 - - 43 THEN NULL ELSE NULL END THEN NULL WHEN - 94 - - 57 THEN + COALESCE ( 60, COUNT ( * ) + + 30 ) / 63 + 28 / - 19 END * + 14 AS col2
----
NULL

query I rowsort
SELECT 51 * + - 86 col2
----
-4386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL - + CAST( + + COUNT( - 21 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - + CAST ( + + COUNT ( - 21 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 63 + 77 - ( 82 )
----
58

query I rowsort
SELECT 0 + 66 + 1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT ALL - 13 DIV MIN( DISTINCT - 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 13 / MIN ( DISTINCT - 76 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT NULLIF ( 88, 7 DIV - 22 ) DIV + 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6893
SELECT NULLIF ( 88, 7 / - 22 ) / + 60 AS col1
----
1

query I rowsort
SELECT DISTINCT - 97 + - 6 - + 14 + + 60
----
-57

query I rowsort
SELECT ALL 48 + 15 * - 81 AS col2
----
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT 66 + - COUNT( + - 15 ) - + 19 * COUNT( * ) col0
----
46

skipif mysql # not compatible
query I rowsort label-6896
SELECT 66 + - COUNT ( + - 15 ) - + 19 * COUNT ( * ) col0
----
46

query I rowsort
SELECT 72 / - ( + + CASE 25 WHEN 77 THEN 91 WHEN - 13 * 2 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT 8 DIV + 82 * - + 32
----
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT 8 / + 82 * - + 32
----
0

query I rowsort
SELECT DISTINCT 83 + + 53 AS col2
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT DISTINCT 94 col2, 61 + COUNT( * ) AS col1
----
94
62

skipif mysql # not compatible
query II rowsort label-6900
SELECT DISTINCT 94 col2, 61 + COUNT ( * ) AS col1
----
94
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL COUNT( * ) + + + 91 + + ( 26 ) * - 74
----
-1832

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL COUNT ( * ) + + + 91 + + ( 26 ) * - 74
----
-1832

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

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

query I rowsort
SELECT + 17 * + 11 * - + 53
----
-9911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT + 76 + - + 19 * + + COALESCE ( 59, + 54 + 50 * ( - COUNT( * ) * ( 13 DIV + CASE - 51 DIV - 38 WHEN + 63 + - 13 * + CASE ( - 92 ) + ( 9 ) WHEN - CASE 64 WHEN + 12 THEN NULL ELSE 33 END + 87 THEN 29 WHEN 39 THEN 56 ELSE 4 * 87 + 63 * 50 END THEN + 4 WHEN - 3 * 87 THEN - 10 END ) + 19 ) )
----
-1045

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 76 + - + 19 * + + COALESCE ( 59, + 54 + 50 * ( - COUNT ( * ) * ( 13 / + CASE - 51 / - 38 WHEN + 63 + - 13 * + CASE ( - 92 ) + ( 9 ) WHEN - CASE 64 WHEN + 12 THEN NULL ELSE 33 END + 87 THEN 29 WHEN 39 THEN 56 ELSE 4 * 87 + 63 * 50 END THEN + 4 WHEN - 3 * 87 THEN - 10 END ) + 19 ) )
----
-1045

query I rowsort
SELECT ALL 82 + - 63
----
19

query I rowsort
SELECT ALL - ( - 38 ) * - + 93
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - NULLIF ( + - 56, ( - COUNT( * ) ) * - 58 )
----
56

skipif mysql # not compatible
query I rowsort label-6907
SELECT - NULLIF ( + - 56, ( - COUNT ( * ) ) * - 58 )
----
56

query I rowsort
SELECT + 81 + + + 36 col2
----
117

query I rowsort
SELECT + 87 - - - 97
----
-10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT + 57 + COALESCE ( - + MIN( 79 ), - 65 * + CAST( NULL AS SIGNED ) + 8 * + 33 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 57 + COALESCE ( - + MIN ( 79 ), - 65 * + CAST ( NULL AS INTEGER ) + 8 * + 33 ) AS col0
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT + 51 + + 76 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 51 + + 76 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT ALL CASE - 50 WHEN + 7 THEN NULL WHEN + 66 THEN NULL ELSE + 39 DIV + 52 END
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL CASE - 50 WHEN + 7 THEN NULL WHEN + 66 THEN NULL ELSE + 39 / + 52 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - 96 * - MIN( - 47 ) - + 31 * - NULLIF ( 7, - 59 * - COALESCE ( 35, 14 * + 9 ) - 55 / - 28 )
----
-4295

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - 96 * - MIN ( - 47 ) - + 31 * - NULLIF ( 7, - 59 * - COALESCE ( 35, 14 * + 9 ) - 55 / - 28 )
----
-4295

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + COUNT( * ) * + 22 * - 19 + - 42
----
-460

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + COUNT ( * ) * + 22 * - 19 + - 42
----
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT ( - - 97 ) DIV - 49 + ( + ( 93 ) - 82 ) + - ( + 90 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6917
SELECT ( - - 97 ) / - 49 + ( + ( 93 ) - 82 ) + - ( + 90 ) AS col2
----
-80

query I rowsort
SELECT ALL - 31 * 51 - - - 31 AS col2
----
-1612

query I rowsort
SELECT DISTINCT 66 * - ( - - 36 )
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - NULLIF ( + 91, 24 + - MAX( DISTINCT 11 ) ) * 51
----
-4641

skipif mysql # not compatible
query I rowsort label-6920
SELECT - NULLIF ( + 91, 24 + - MAX ( DISTINCT 11 ) ) * 51
----
-4641

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT - + 0 * - 65 + + 84 DIV + 71 col2
----
1

skipif mysql # not compatible
query I rowsort label-6921
SELECT - + 0 * - 65 + + 84 / + 71 col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6922
SELECT ALL + 86, + 64 DIV - NULLIF ( - 92, - 35 * + 15 + - 61 ) col2
----
86
0

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL + 86, + 64 / - NULLIF ( - 92, - 35 * + 15 + - 61 ) col2
----
86
0

query I rowsort
SELECT + - 72 * - 79 AS col1
----
5688

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

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 81 / - COUNT ( * ) col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT - CASE - - COUNT( * ) WHEN - + 16 * - ( 14 + 29 ) THEN NULL ELSE - 78 DIV 40 END + MIN( ALL 92 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6925
SELECT - CASE - - COUNT ( * ) WHEN - + 16 * - ( 14 + 29 ) THEN NULL ELSE - 78 / 40 END + MIN ( ALL 92 ) AS col0
----
93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT ALL - 80 * + 5 + - + 93 DIV - MAX( DISTINCT 73 DIV 39 )
----
-307

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - 80 * + 5 + - + 93 / - MAX ( DISTINCT 73 / 39 )
----
-307

query I rowsort
SELECT + NULLIF ( - 3, - 36 + 92 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT + + MIN( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + + MIN ( ALL + 86 )
----
86

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

query II rowsort
SELECT ALL + 55 AS col0, + 23
----
55
23

query I rowsort
SELECT DISTINCT 43 * + - 97 + + ( - 85 ) AS col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL 5 * - COUNT( * ) * - 77 + - 81
----
304

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL 5 * - COUNT ( * ) * - 77 + - 81
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT 73 * - 4 + - + CASE + COUNT( * ) WHEN 63 * 4 THEN NULL WHEN 88 THEN 1 WHEN - NULLIF ( 45, COUNT( * ) + + 97 ) THEN NULL WHEN + 57 THEN NULL ELSE 14 END + CASE + 41 WHEN 36 THEN - ( + 38 ) WHEN 64 * + 94 + MIN( ALL - 30 ) THEN NULL ELSE + 73 * CASE + 61 WHEN 93 THEN - 34 + 70 WHEN + 86 + + ( + 8 + + 74 ) THEN NULL ELSE 56 END END AS col0
----
3782

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT 73 * - 4 + - + CASE + COUNT ( * ) WHEN 63 * 4 THEN NULL WHEN 88 THEN 1 WHEN - NULLIF ( 45, COUNT ( * ) + + 97 ) THEN NULL WHEN + 57 THEN NULL ELSE 14 END + CASE + 41 WHEN 36 THEN - ( + 38 ) WHEN 64 * + 94 + MIN ( ALL - 30 ) THEN NULL ELSE + 73 * CASE + 61 WHEN 93 THEN - 34 + 70 WHEN + 86 + + ( + 8 + + 74 ) THEN NULL ELSE 56 END END AS col0
----
3782

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

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

skipif mysql # not compatible
query I rowsort label-6936
SELECT - 30 * + COUNT ( * ) / 93 col1
----
0

query I rowsort
SELECT + 36 * 74 AS col2
----
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL + SUM( DISTINCT - 31 ) * + + MAX( ALL + 43 ) + - 54 * - COUNT( * ) AS col2
----
-1279

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + SUM ( DISTINCT - 31 ) * + + MAX ( ALL + 43 ) + - 54 * - COUNT ( * ) AS col2
----
-1279

query I rowsort
SELECT ALL NULLIF ( - 24, - 1 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT ( COALESCE ( - + SUM( - 74 ), + 28 ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT ( COALESCE ( - + SUM ( - 74 ), + 28 ) ) col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT - 58 DIV + + 17 col2
----
-3

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT - 58 / + + 17 col2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + 70 * - 19 * + + 37 * - COALESCE ( + 46, MAX( DISTINCT + 19 ) * - 29 ) AS col0
----
2263660

skipif mysql # not compatible
query I rowsort label-6943
SELECT + 70 * - 19 * + + 37 * - COALESCE ( + 46, MAX ( DISTINCT + 19 ) * - 29 ) AS col0
----
2263660

query I rowsort
SELECT - 40 + - 71 AS col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + 63 + - 25 - - - COUNT( * ) + 83
----
120

skipif mysql # not compatible
query I rowsort label-6945
SELECT + 63 + - 25 - - - COUNT ( * ) + 83
----
120

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

skipif mysql # not compatible
query I rowsort label-6946
SELECT + COUNT ( * ) / 26
----
0

query I rowsort
SELECT - 34 * + 50 AS col1
----
-1700

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

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

query I rowsort
SELECT + 10 * 5 col0
----
50

query I rowsort
SELECT DISTINCT - 68 * - 95 AS col1
----
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT - + 58 * - 99 * CASE 30 WHEN - COUNT( * ) THEN NULL WHEN + 8 - - 98 THEN 49 - ( + AVG ( ALL + 29 ) + ( 22 + 77 * - 51 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - + 58 * - 99 * CASE 30 WHEN - COUNT ( * ) THEN NULL WHEN + 8 - - 98 THEN 49 - ( + AVG ( ALL + 29 ) + ( 22 + 77 * - 51 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 86, + AVG ( ALL 25 ) ) AS col1
----
86

query I rowsort
SELECT + 12 * 25 * + - 15 AS col2
----
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT + - COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6954
SELECT + - COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6956
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT CAST ( NULL AS REAL ) * - 59 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ALL 20 / 22 + CAST( NULL AS SIGNED ) + + - 97 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 20 / 22 + CAST ( NULL AS INTEGER ) + + - 97 * 26
----
NULL

query I rowsort
SELECT + ( 97 ) * + 70 * 1
----
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL MIN( - 69 ) * - + 94 * 20 * + 53 + - 34 AS col0
----
6875126

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL MIN ( - 69 ) * - + 94 * 20 * + 53 + - 34 AS col0
----
6875126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT DISTINCT + 40 DIV + - 62 + - COUNT( * ) + 34 * + NULLIF ( 1, 47 ) DIV - 92
----
-1

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + 40 / + - 62 + - COUNT ( * ) + 34 * + NULLIF ( 1, 47 ) / - 92
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT ALL CAST( NULL AS SIGNED ) / - 11 + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL CAST ( NULL AS INTEGER ) / - 11 + + 96 AS col1
----
NULL

query I rowsort
SELECT + 67 + 31 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT + 36 DIV + + 86 * + 31 DIV 29 - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 36 / + + 86 * + 31 / 29 - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL + NULLIF ( - 78, - COUNT( * ) * - - 95 )
----
-78

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + NULLIF ( - 78, - COUNT ( * ) * - - 95 )
----
-78

query I rowsort
SELECT + 50 * 28 + + + 86 AS col1
----
1486

query I rowsort
SELECT ( + - 37 ) * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 52 * + - COUNT( * ) * + 34 + + 85 - 43 * 46 AS col1
----
-3661

skipif mysql # not compatible
query I rowsort label-6967
SELECT 52 * + - COUNT ( * ) * + 34 + + 85 - 43 * 46 AS col1
----
-3661

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT 20 * + MAX( ( + 24 ) ) AS col2
----
480

skipif mysql # not compatible
query I rowsort label-6968
SELECT 20 * + MAX ( ( + 24 ) ) AS col2
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT ALL - 80 + + + CAST( + 91 AS SIGNED ) * + - 81
----
-7451

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 80 + + + CAST ( + 91 AS INTEGER ) * + - 81
----
-7451

query I rowsort
SELECT ALL + ( + 80 ) + + - ( + - 17 ) AS col2
----
97

query I rowsort
SELECT 1 + - ( + + 89 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT 10 + - ( - CAST( + COUNT( - 29 ) AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-6972
SELECT 10 + - ( - CAST ( + COUNT ( - 29 ) AS INTEGER ) )
----
11

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

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - CAST ( NULL AS INTEGER ) * - 6 AS col0
----
NULL

query I rowsort
SELECT ALL - 71 * - 94 AS col1
----
6674

query I rowsort
SELECT DISTINCT - 62 * + 84 AS col0
----
-5208

query II rowsort
SELECT - 99 col2, 99 AS col0
----
-99
99

query I rowsort
SELECT 0 * - 58
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT ALL + COUNT( * ) * - - SUM( 77 ) AS col0, + 32 * + 18 AS col2
----
77
576

skipif mysql # not compatible
query II rowsort label-6978
SELECT ALL + COUNT ( * ) * - - SUM ( 77 ) AS col0, + 32 * + 18 AS col2
----
77
576

query II rowsort
SELECT DISTINCT 58 AS col1, 91 * - 18
----
58
-1638

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT DISTINCT + 0 DIV + COALESCE ( - 1, + + 98 + - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + 0 / + COALESCE ( - 1, + + 98 + - - COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT ALL 99 * 63 DIV + 72 - - 21
----
107

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL 99 * 63 / + 72 - - 21
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT SUM( - 25 ) * + 95 AS col2, + 25 * + 79
----
-2375
1975

skipif mysql # not compatible
query II rowsort label-6983
SELECT SUM ( - 25 ) * + 95 AS col2, + 25 * + 79
----
-2375
1975

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

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + 86 / + ( + COUNT ( * ) ) AS col0
----
86

query I rowsort
SELECT + 92 - + 71 col0
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL + + MIN( ALL + 69 ) * - 85
----
-5865

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + + MIN ( ALL + 69 ) * - 85
----
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6988
SELECT CAST( NULL AS SIGNED ) + + - SUM( ALL + 10 ) + - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT CAST ( NULL AS INTEGER ) + + - SUM ( ALL + 10 ) + - - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT 80 * + CASE + + 62 WHEN + CASE 35 WHEN - 83 / - 32 THEN 97 WHEN 34 THEN - COUNT( * ) END THEN NULL ELSE + 67 + - 84 END AS col2
----
-1360

skipif mysql # not compatible
query I rowsort label-6989
SELECT 80 * + CASE + + 62 WHEN + CASE 35 WHEN - 83 / - 32 THEN 97 WHEN 34 THEN - COUNT ( * ) END THEN NULL ELSE + 67 + - 84 END AS col2
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + COUNT( * ) * + 51 - 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6990
SELECT + COUNT ( * ) * + 51 - 26 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - CASE - 8 WHEN + 64 * + 15 + - 5 THEN - ( 54 ) WHEN + MAX( DISTINCT 65 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - CASE - 8 WHEN + 64 * + 15 + - 5 THEN - ( 54 ) WHEN + MAX ( DISTINCT 65 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 58 + - 68 * + + 25
----
-1758

query I rowsort
SELECT ALL + 92 + + 72 + 71 AS col2
----
235

query I rowsort
SELECT ALL - - 14 * 36 * 31 + 91 - + + 53 AS col2
----
15662

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT - - COUNT( 10 ) + - ( + 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - - COUNT ( 10 ) + - ( + 40 )
----
-39

query I rowsort
SELECT ALL + - 88 + - CASE - + 10 WHEN + 78 + - + 72 - - 56 * + 20 THEN 99 END AS col0
----
NULL

query I rowsort
SELECT - 99 + + 54
----
-45

query I rowsort
SELECT DISTINCT - ( + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT 85 * - MAX( - - ( - + 83 ) )
----
7055

skipif mysql # not compatible
query I rowsort label-6999
SELECT 85 * - MAX ( - - ( - + 83 ) )
----
7055

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT - 97 * NULLIF ( - 9, 17 ) * 83 * + 59 + 46 DIV + 52 + - 65
----
4275016

skipif mysql # not compatible
query I rowsort label-7000
SELECT - 97 * NULLIF ( - 9, 17 ) * 83 * + 59 + 46 / + 52 + - 65
----
4275016

query II rowsort
SELECT ALL - + 91, 38 * + + 77 + 34 AS col0
----
-91
2960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7003
SELECT DISTINCT 0 + + - SUM( DISTINCT - ( CAST( + + 93 AS DECIMAL ) ) ) + COALESCE ( 79, 45, + 74 * CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT 0 + + - SUM ( DISTINCT - ( CAST ( + + 93 AS REAL ) ) ) + COALESCE ( 79, 45, + 74 * CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT - 89 AS col2, COUNT( * ) * - NULLIF ( 63, + 70 )
----
-89
-63

skipif mysql # not compatible
query II rowsort label-7004
SELECT - 89 AS col2, COUNT ( * ) * - NULLIF ( 63, + 70 )
----
-89
-63

query I rowsort
SELECT + 48 + - 57
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT ALL 30 DIV - - 60 * + SUM( DISTINCT + 86 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL 30 / - - 60 * + SUM ( DISTINCT + 86 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT CASE COUNT( * ) WHEN - CASE + + 73 WHEN 91 THEN NULL ELSE 16 * - 65 END THEN 55 WHEN 36 THEN NULL WHEN 99 * - ( + 41 ) THEN NULL ELSE NULL END - + 9 * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT CASE COUNT ( * ) WHEN - CASE + + 73 WHEN 91 THEN NULL ELSE 16 * - 65 END THEN 55 WHEN 36 THEN NULL WHEN 99 * - ( + 41 ) THEN NULL ELSE NULL END - + 9 * 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT + 83, - MIN( ALL - + 59 ) AS col2
----
83
59

skipif mysql # not compatible
query II rowsort label-7008
SELECT + 83, - MIN ( ALL - + 59 ) AS col2
----
83
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7009
SELECT CAST( NULL AS DECIMAL ) * + SUM( - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT CAST ( NULL AS REAL ) * + SUM ( - 96 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT 36 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT 36 / + 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT ALL - MIN( - COALESCE ( - CAST( NULL AS SIGNED ), + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL - MIN ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 86 ) )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT CAST( NULL AS SIGNED ) * 79 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT CAST ( NULL AS INTEGER ) * 79 * - 93
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT 26 DIV 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT 26 / 62 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7015
SELECT ALL 16 DIV COUNT( 13 ) * - - COUNT( * ) AS col2, + 34 * 32 * - 34
----
16
-36992

skipif mysql # not compatible
query II rowsort label-7015
SELECT ALL 16 / COUNT ( 13 ) * - - COUNT ( * ) AS col2, + 34 * 32 * - 34
----
16
-36992

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

query I rowsort
SELECT ALL + - 41 * 56
----
-2296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7018
SELECT - 6 * - - CAST( NULL AS DECIMAL ) * + 51 + + ( - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 6 * - - CAST ( NULL AS REAL ) * + 51 + + ( - 64 ) AS col1
----
NULL

query I rowsort
SELECT 2 + - 17 + - 8 * + ( 85 )
----
-695

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7020
SELECT - CAST( NULL AS SIGNED ) AS col0, + 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7020
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 98
----
NULL
98

query I rowsort
SELECT ALL COALESCE ( - 75, - 87 + + 67, 77 * - 85 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT 95 + + COALESCE ( - - COALESCE ( - 92, 46, + ( - 97 ) + + COUNT( * ) * 52 ), COUNT( * ) ) - + ( ( 94 ) ) * + 37
----
-3475

skipif mysql # not compatible
query I rowsort label-7022
SELECT 95 + + COALESCE ( - - COALESCE ( - 92, 46, + ( - 97 ) + + COUNT ( * ) * 52 ), COUNT ( * ) ) - + ( ( 94 ) ) * + 37
----
-3475

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT 82 * - COUNT( * ) * - 50 AS col1
----
4100

skipif mysql # not compatible
query I rowsort label-7023
SELECT 82 * - COUNT ( * ) * - 50 AS col1
----
4100

query I rowsort
SELECT DISTINCT - 79 * + 62
----
-4898

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7025
SELECT DISTINCT + + 99 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + + 99 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 43 + - + 52
----
-9

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

query II rowsort
SELECT - ( 55 ) AS col2, + 97
----
-55
97

query I rowsort
SELECT + ( + 67 ) * - 10
----
-670

query II rowsort
SELECT 80 AS col0, 91
----
80
91

query I rowsort
SELECT DISTINCT - ( + + 56 ) * - 63 col2
----
3528

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7032
SELECT ALL + NULLIF ( + - 13, - 63 * - + 65 + + 19 + + 1 + + 6 ) * 94 - - 94 / + CASE 64 - 86 WHEN AVG ( 80 ) THEN NULL WHEN - 20 THEN - ( - COALESCE ( COALESCE ( COALESCE ( - 67, + 69 / 16, 40 * 86 ), 5 ), MAX( 68 ) ) ) WHEN 99 THEN 72 WHEN - 39 THEN + NULLIF ( 9, CAST( + 89 AS DECIMAL ) * 56 ) + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + NULLIF ( + - 13, - 63 * - + 65 + + 19 + + 1 + + 6 ) * 94 - - 94 / + CASE 64 - 86 WHEN AVG ( 80 ) THEN NULL WHEN - 20 THEN - ( - COALESCE ( COALESCE ( COALESCE ( - 67, + 69 / 16, 40 * 86 ), 5 ), MAX ( 68 ) ) ) WHEN 99 THEN 72 WHEN - 39 THEN + NULLIF ( 9, CAST ( + 89 AS REAL ) * 56 ) + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - 3 * + MIN( + 89 ) col0
----
-267

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - 3 * + MIN ( + 89 ) col0
----
-267

query I rowsort
SELECT DISTINCT - 87 * - 78
----
6786

query I rowsort
SELECT DISTINCT + 71 * 4 AS col2
----
284

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT - CAST( + 61 AS SIGNED ) + COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7037
SELECT - CAST ( + 61 AS INTEGER ) + COUNT ( * ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT + 71 * - - COUNT( * ), - 89 + - NULLIF ( + 33, 53 + 45 ) AS col0
----
71
-122

skipif mysql # not compatible
query II rowsort label-7038
SELECT + 71 * - - COUNT ( * ), - 89 + - NULLIF ( + 33, 53 + 45 ) AS col0
----
71
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - 41 + + - 63 - - CASE + COUNT( * ) WHEN - 95 + - - 92 THEN + 74 + 32 ELSE - COUNT( * ) * + 17 END * 10 AS col2
----
-274

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 41 + + - 63 - - CASE + COUNT ( * ) WHEN - 95 + - - 92 THEN + 74 + 32 ELSE - COUNT ( * ) * + 17 END * 10 AS col2
----
-274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT + 47 - COALESCE ( - + 59, - + ( - - CAST( NULL AS SIGNED ) ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7040
SELECT + 47 - COALESCE ( - + 59, - + ( - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL CAST( NULL AS SIGNED ) * + 10 / + + COUNT( DISTINCT - - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL CAST ( NULL AS INTEGER ) * + 10 / + + COUNT ( DISTINCT - - 53 ) AS col0
----
NULL

query I rowsort
SELECT + 35 * - - ( + 46 ) col1
----
1610

query I rowsort
SELECT + NULLIF ( + ( 53 ), - 22 * 91 - - 61 ) * 79
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + COALESCE ( - + COUNT( * ), 25, - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-7044
SELECT + COALESCE ( - + COUNT ( * ), 25, - 29 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL + CASE + - 69 WHEN COUNT( * ) THEN - 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + CASE + - 69 WHEN COUNT ( * ) THEN - 50 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT DISTINCT - NULLIF ( - 96, - 95 - + + 5 ) DIV 85 DIV + MAX( + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT - NULLIF ( - 96, - 95 - + + 5 ) / 85 / + MAX ( + 1 ) col1
----
1

query I rowsort
SELECT + 87 + ( + 1 )
----
88

query I rowsort
SELECT + 5 * 42 AS col2
----
210

query I rowsort
SELECT DISTINCT - 48 * + + 52 + 81
----
-2415

query I rowsort
SELECT DISTINCT 28 * 98 AS col0
----
2744

query II rowsort
SELECT DISTINCT + 9 + + + 96 + 47 AS col0, 21 AS col2
----
152
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7052
SELECT + COALESCE ( + 99, NULLIF ( + - 69, + COUNT( * ) ) DIV + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7052
SELECT + COALESCE ( + 99, NULLIF ( + - 69, + COUNT ( * ) ) / + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2
----
100

query I rowsort
SELECT + 4 * 56 AS col0
----
224

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

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

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

query II rowsort
SELECT DISTINCT + 34 + 16 * - 44 * 27 + - - 29, + 25 AS col1
----
-18945
25

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

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

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

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

query I rowsort
SELECT ALL 23 + - 27 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL + + 13 + - COUNT( * ) * + - NULLIF ( + + 82, - 33 )
----
95

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + + 13 + - COUNT ( * ) * + - NULLIF ( + + 82, - 33 )
----
95

query I rowsort
SELECT + 20 + + + 33 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - 90 - 90 + 81 DIV 69 DIV - 7 * - 85 * - 95 * - 80
----
-180

skipif mysql # not compatible
query I rowsort label-7062
SELECT - 90 - 90 + 81 / 69 / - 7 * - 85 * - 95 * - 80
----
-180

query II rowsort
SELECT DISTINCT - ( + 18 ), 53 AS col0
----
-18
53

query I rowsort
SELECT ALL - + 21 - 53 AS col2
----
-74

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

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

query I rowsort
SELECT ALL - ( - - ( 70 ) )
----
-70

query I rowsort
SELECT - - ( - - CASE - - 23 WHEN 13 + + - 18 THEN NULL ELSE 31 + + ( - ( + 65 ) ) END ) + - 39
----
-73

query I rowsort
SELECT ALL - 57 - + ( + + 86 ) - + + 45
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT - + MIN( ALL - 15 ) + + - 51 + - COUNT( * ) * + 39 * - CAST( CASE WHEN NOT ( 92 ) BETWEEN ( - 54 ) AND + 64 THEN NULL ELSE 43 END AS SIGNED ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT - + MIN ( ALL - 15 ) + + - 51 + - COUNT ( * ) * + 39 * - CAST ( CASE WHEN NOT ( 92 ) BETWEEN ( - 54 ) AND + 64 THEN NULL ELSE 43 END AS INTEGER ) * + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL + - CASE + 90 WHEN + - 71 THEN NULL ELSE + 95 * - 19 + - COUNT( * ) - + COUNT( * ) * - 45 END
----
1761

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + - CASE + 90 WHEN + - 71 THEN NULL ELSE + 95 * - 19 + - COUNT ( * ) - + COUNT ( * ) * - 45 END
----
1761

query I rowsort
SELECT - 71 + - 31
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT ALL - NULLIF ( - 86, + ( - CASE - 55 WHEN + 40 THEN 82 WHEN - + 22 THEN NULL END ) + 35 ) DIV + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - NULLIF ( - 86, + ( - CASE - 55 WHEN + 40 THEN 82 WHEN - + 22 THEN NULL END ) + 35 ) / + COUNT ( * ) AS col1
----
86

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

query I rowsort
SELECT DISTINCT - ( - 84 ) * - 52 * + 11 AS col2
----
-48048

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT 22 DIV + 91 + 84 AS col1, - 65 AS col0
----
84
-65

skipif mysql # not compatible
query II rowsort label-7075
SELECT 22 / + 91 + 84 AS col1, - 65 AS col0
----
84
-65

query I rowsort
SELECT ALL - 85 * - 21
----
1785

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT + 41 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 41 / 84
----
0

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

query I rowsort
SELECT ALL - ( + 95 ) * + + 99 col0
----
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT + CASE ( + COUNT( * ) ) WHEN - 11 * ( 24 ) + 37 THEN - + 99 ELSE - ( 78 ) END
----
-78

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT + CASE ( + COUNT ( * ) ) WHEN - 11 * ( 24 ) + 37 THEN - + 99 ELSE - ( 78 ) END
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT ALL + 54 * - 71 + - + 62 + - 46 + - + CASE - 26 WHEN + - 25 THEN NULL WHEN + COALESCE ( - 25, COALESCE ( - COUNT( * ), COUNT( DISTINCT - 78 ) ) * 7 + + 4, 16 ) THEN NULL ELSE - CASE + 31 WHEN COUNT( * ) THEN 90 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + 54 * - 71 + - + 62 + - 46 + - + CASE - 26 WHEN + - 25 THEN NULL WHEN + COALESCE ( - 25, COALESCE ( - COUNT ( * ), COUNT ( DISTINCT - 78 ) ) * 7 + + 4, 16 ) THEN NULL ELSE - CASE + 31 WHEN COUNT ( * ) THEN 90 END END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT - 18 * + - 24 - - 63 * - + 48 DIV COUNT( * )
----
-2592

skipif mysql # not compatible
query I rowsort label-7082
SELECT - 18 * + - 24 - - 63 * - + 48 / COUNT ( * )
----
-2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7083
SELECT COALESCE ( + 7, - + 7 * NULLIF ( + 51, - + ( COUNT( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) + 80 + 8, 55 DIV 43 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7083
SELECT COALESCE ( + 7, - + 7 * NULLIF ( + 51, - + ( COUNT ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) + 80 + 8, 55 / 43 ) AS col0
----
7

query I rowsort
SELECT - 28 * - - 98 * ( 71 )
----
-194824

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

query I rowsort
SELECT + 51 + + NULLIF ( 24, 93 * - + ( - + 49 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL 55 * + COALESCE ( - + NULLIF ( + CAST( - 33 AS SIGNED ), 88 ), - 54 ) * 52 + CASE 99 WHEN COUNT( * ) THEN NULL WHEN NULLIF ( + 22, MIN( - COALESCE ( 61, + 35 * 58 ) ) * - 4 ) - NULLIF ( 23 + + 77, 52 * 48 ) * - 78 THEN 20 / - 88 WHEN 24 + 5 * 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL 55 * + COALESCE ( - + NULLIF ( + CAST ( - 33 AS INTEGER ), 88 ), - 54 ) * 52 + CASE 99 WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( + 22, MIN ( - COALESCE ( 61, + 35 * 58 ) ) * - 4 ) - NULLIF ( 23 + + 77, 52 * 48 ) * - 78 THEN 20 / - 88 WHEN 24 + 5 * 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7088
SELECT + COUNT( * ), 14 + - 72 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-7088
SELECT + COUNT ( * ), 14 + - 72 AS col2
----
1
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL + + 70 * - 8 * COUNT( * ) + CASE - 58 WHEN MAX( DISTINCT - ( + CASE + 95 WHEN COALESCE ( + NULLIF ( 56, NULLIF ( 74, 4 - 79 ) ), - 91 + 19 * + 41 ) / - 56 THEN NULL ELSE 61 END ) ) THEN - 99 WHEN + 35 + - NULLIF ( 54, COUNT( * ) ) THEN - CAST( NULL AS SIGNED ) WHEN 44 * 7 + 32 * + 37 THEN - 65 * + 91 - - 11 * + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + + 70 * - 8 * COUNT ( * ) + CASE - 58 WHEN MAX ( DISTINCT - ( + CASE + 95 WHEN COALESCE ( + NULLIF ( 56, NULLIF ( 74, 4 - 79 ) ), - 91 + 19 * + 41 ) / - 56 THEN NULL ELSE 61 END ) ) THEN - 99 WHEN + 35 + - NULLIF ( 54, COUNT ( * ) ) THEN - CAST ( NULL AS INTEGER ) WHEN 44 * 7 + 32 * + 37 THEN - 65 * + 91 - - 11 * + 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT DISTINCT - 6 AS col1, 73 * + 88 * - 82 + - 80 - - 27 + COUNT( * ) + 99 * 8 * - 47
----
-6
-564044

skipif mysql # not compatible
query II rowsort label-7090
SELECT DISTINCT - 6 AS col1, 73 * + 88 * - 82 + - 80 - - 27 + COUNT ( * ) + 99 * 8 * - 47
----
-6
-564044

query I rowsort
SELECT ALL + 74 * - + 10 AS col1
----
-740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7092
SELECT DISTINCT ( + 83 ) * - CASE - 56 WHEN + + AVG ( DISTINCT + 46 ) THEN NULL WHEN + - CASE 40 WHEN MAX( 46 ) THEN NULL WHEN - 32 + - 73 THEN CAST( 0 AS DECIMAL ) WHEN ( COUNT( * ) ) / - 60 THEN NULL WHEN 51 THEN - 4 END THEN 66 * + 61 END + 42 + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT ( + 83 ) * - CASE - 56 WHEN + + AVG ( DISTINCT + 46 ) THEN NULL WHEN + - CASE 40 WHEN MAX ( 46 ) THEN NULL WHEN - 32 + - 73 THEN CAST ( 0 AS REAL ) WHEN ( COUNT ( * ) ) / - 60 THEN NULL WHEN 51 THEN - 4 END THEN 66 * + 61 END + 42 + 14 AS col1
----
NULL

query II rowsort
SELECT ALL - 24 AS col1, 44
----
-24
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL 21 * 86 + - 69 - + 92 * - SUM( - 46 ) * + 35 + - COUNT( * ) * + NULLIF ( NULLIF ( 84, 47 + - 49 ), 70 )
----
-146467

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL 21 * 86 + - 69 - + 92 * - SUM ( - 46 ) * + 35 + - COUNT ( * ) * + NULLIF ( NULLIF ( 84, 47 + - 49 ), 70 )
----
-146467

query I rowsort
SELECT - 95 + - + 96 AS col2
----
-191

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

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

query II rowsort
SELECT + 88 + 30 * + 28 AS col0, 51
----
928
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT + 45 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT + 45 / - 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT ALL 24 DIV + 1 + + + 34 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL 24 / + 1 + + + 34 AS col1
----
58

query II rowsort
SELECT - + 6 AS col0, + ( NULLIF ( + + 31, - - 13 ) )
----
-6
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT COUNT( + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT COUNT ( + 37 ) AS col1
----
1

query II rowsort
SELECT ALL + 96 AS col1, - 97 AS col1
----
96
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - COUNT( * ) - - - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7105
SELECT - COUNT ( * ) - - - 84 AS col1
----
-85

query I rowsort
SELECT 30 * + 71
----
2130

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT ALL 36 * - 69, - 66 * - + ( + + MAX( DISTINCT - 12 ) ) + - - COUNT( * ) AS col1
----
-2484
-791

skipif mysql # not compatible
query II rowsort label-7107
SELECT ALL 36 * - 69, - 66 * - + ( + + MAX ( DISTINCT - 12 ) ) + - - COUNT ( * ) AS col1
----
-2484
-791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT 1 + - NULLIF ( + - 25, - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) ) * - - 91 AS col0
----
2276

skipif mysql # not compatible
query I rowsort label-7108
SELECT 1 + - NULLIF ( + - 25, - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) * - - 91 AS col0
----
2276

query I rowsort
SELECT ALL 53 * - 87 * ( + 25 )
----
-115275

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL - CASE 25 WHEN ( - 48 ) THEN - - 1 + COUNT( * ) WHEN - 71 / + ( - - 66 ) * + SUM( ALL - 39 ) THEN - 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - CASE 25 WHEN ( - 48 ) THEN - - 1 + COUNT ( * ) WHEN - 71 / + ( - - 66 ) * + SUM ( ALL - 39 ) THEN - 17 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT COUNT( * ) * + + 91 * - 68
----
-6188

skipif mysql # not compatible
query I rowsort label-7111
SELECT COUNT ( * ) * + + 91 * - 68
----
-6188

query I rowsort
SELECT 55 * 14
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + 27 + ( - + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + 27 + ( - + COUNT ( * ) )
----
26

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

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

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

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

query I rowsort
SELECT ALL - 54 + + 27 * + - 89 * + 6 AS col2
----
-14472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT + CAST( 63 AS SIGNED ) + + 89 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + CAST ( 63 AS INTEGER ) + + 89 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT 25 + COUNT( - + 53 ) * - 46
----
-21

skipif mysql # not compatible
query I rowsort label-7118
SELECT 25 + COUNT ( - + 53 ) * - 46
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL + 64 + - 73 - - COALESCE ( + 58, + COUNT( * ) + - 88 + - 35 * - ( - 98 ), - 63 + + 39 )
----
49

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + 64 + - 73 - - COALESCE ( + 58, + COUNT ( * ) + - 88 + - 35 * - ( - 98 ), - 63 + + 39 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - 51 * + 4 + - ( - + COUNT( * ) ) * 54
----
-150

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 51 * + 4 + - ( - + COUNT ( * ) ) * 54
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 70 - - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7121
SELECT 70 - - + COUNT ( * )
----
71

query II rowsort
SELECT ALL + 55 * - 88, + 56 AS col0
----
-4840
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT 64 * - 13 + + - NULLIF ( - COUNT( * ), - 91 ) AS col2
----
-831

skipif mysql # not compatible
query I rowsort label-7123
SELECT 64 * - 13 + + - NULLIF ( - COUNT ( * ), - 91 ) AS col2
----
-831

query I rowsort
SELECT ALL - 92 + - + 91 * 59 * - 95
----
509963

query I rowsort
SELECT DISTINCT + 37 * + - 8 AS col2
----
-296

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

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

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

query I rowsort
SELECT - 27 + + 10 * - 10 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL - CASE - 82 WHEN + COUNT( * ) THEN + 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - CASE - 82 WHEN + COUNT ( * ) THEN + 41 END AS col2
----
NULL

query I rowsort
SELECT + 49 * + - 29 AS col2
----
-1421

query I rowsort
SELECT 59 + - 75 + + 91 * 2 * + 75 AS col0
----
13634

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT - - 29 - - + 82 + - - COUNT( * ) * + + 28 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - - 29 - - + 82 + - - COUNT ( * ) * + + 28 AS col2
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT + 76 + - + COUNT( * ) AS col0, + 7
----
75
7

skipif mysql # not compatible
query II rowsort label-7133
SELECT + 76 + - + COUNT ( * ) AS col0, + 7
----
75
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL 55 * CAST( + - 83 AS SIGNED )
----
-4565

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL 55 * CAST ( + - 83 AS INTEGER )
----
-4565

query II rowsort
SELECT - COALESCE ( + - 37, + + 93 ) + - 14 AS col0, COALESCE ( 18, 73 * + + 82 ) AS col1
----
23
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT 28 + + - NULLIF ( 16, COUNT( ALL 30 ) ) + + 83 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7136
SELECT 28 + + - NULLIF ( 16, COUNT ( ALL 30 ) ) + + 83 AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT DISTINCT - 10 - - + 40, - CASE WHEN NOT - 76 BETWEEN + NULLIF ( - + COUNT( * ), - 3 ) AND + - 38 THEN 25 END * + MAX( 36 * 4 ) AS col1
----
30
-3600

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT - 10 - - + 40, - CASE WHEN NOT - 76 BETWEEN + NULLIF ( - + COUNT ( * ), - 3 ) AND + - 38 THEN 25 END * + MAX ( 36 * 4 ) AS col1
----
30
-3600

query II rowsort
SELECT ALL + ( - + 27 ) AS col1, 57
----
-27
57

query I rowsort
SELECT DISTINCT - 24 * - 12 AS col2
----
288

query I rowsort
SELECT 8 + - 35 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT + COALESCE ( + 52, - 7, + - 9 DIV 40 + + 5 ) + - - COUNT( * ) + - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7141
SELECT + COALESCE ( + 52, - 7, + - 9 / 40 + + 5 ) + - - COUNT ( * ) + - - COUNT ( * )
----
54

query I rowsort
SELECT 46 + - + ( - 92 )
----
138

query I rowsort
SELECT 16 + + 31
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT COALESCE ( 94, - 76, + - 41 * + - 60 ) DIV - 76 * - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7144
SELECT COALESCE ( 94, - 76, + - 41 * + - 60 ) / - 76 * - - COUNT ( * ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL CAST ( NULL AS INTEGER ) + - + 38
----
NULL

query I rowsort
SELECT NULLIF ( 67, 77 + - - 69 ) + + 94
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT 35 + 48 * - + CASE - 63 WHEN + 19 + 74 + CAST( NULL AS SIGNED ) + 49 + - + 75 THEN - 16 * 18 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT 35 + 48 * - + CASE - 63 WHEN + 19 + 74 + CAST ( NULL AS INTEGER ) + 49 + - + 75 THEN - 16 * 18 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT - 16 * - - 25 + COUNT( * )
----
-399

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - 16 * - - 25 + COUNT ( * )
----
-399

query I rowsort
SELECT ALL 66 * - 36 * + 2 + + - NULLIF ( + 62, + 25 )
----
-4814

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT DISTINCT CAST( 85 AS SIGNED ) * - 20 * - + COUNT( * )
----
1700

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT CAST ( 85 AS INTEGER ) * - 20 * - + COUNT ( * )
----
1700

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT ALL - ( - - 85 ) * - 34 + - - MAX( ALL - 75 ) AS col2, + 55 AS col0
----
2815
55

skipif mysql # not compatible
query II rowsort label-7152
SELECT ALL - ( - - 85 ) * - 34 + - - MAX ( ALL - 75 ) AS col2, + 55 AS col0
----
2815
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT ( - - 32 ) * - ( + 35 ) + COUNT( * ) + - ( + 83 ) AS col1
----
-1202

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT ( - - 32 ) * - ( + 35 ) + COUNT ( * ) + - ( + 83 ) AS col1
----
-1202

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7154
SELECT MIN ( - 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT + 97 DIV 33 + + 60 * - 96 * COUNT( * ) * + - 74 * - 30 - + 11 * + 31
----
-12787539

skipif mysql # not compatible
query I rowsort label-7155
SELECT + 97 / 33 + + 60 * - 96 * COUNT ( * ) * + - 74 * - 30 - + 11 * + 31
----
-12787539

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

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

query I rowsort
SELECT 70 * + - 89 AS col0
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL - COALESCE ( - + COUNT( * ), - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL - COALESCE ( - + COUNT ( * ), - 33 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT + CAST( ( - - 36 ) AS SIGNED ) * 87 + - 74 + + + 62 * + COUNT( ALL - + 58 ) + + ( - 86 ) + 45 * COUNT( * ) * 59 AS col0
----
5689

skipif mysql # not compatible
query I rowsort label-7159
SELECT + CAST ( ( - - 36 ) AS INTEGER ) * 87 + - 74 + + + 62 * + COUNT ( ALL - + 58 ) + + ( - 86 ) + 45 * COUNT ( * ) * 59 AS col0
----
5689

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT - + ( + - CASE + ( 87 ) WHEN - MAX( + - 75 ) - + 10 * 0 THEN - 90 WHEN + 10 THEN 64 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT - + ( + - CASE + ( 87 ) WHEN - MAX ( + - 75 ) - + 10 * 0 THEN - 90 WHEN + 10 THEN 64 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT + COUNT( * ) * + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + COUNT ( * ) * + 5 AS col1
----
5

query II rowsort
SELECT ALL + 53 AS col1, 43 AS col1
----
53
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT + + 79 * - 35 - + 48 DIV ( + ( + - 20 ) ) + - 49 + + 61 * 82 - 31 - 21
----
2138

skipif mysql # not compatible
query I rowsort label-7163
SELECT + + 79 * - 35 - + 48 / ( + ( + - 20 ) ) + - 49 + + 61 * 82 - 31 - 21
----
2138

query I rowsort
SELECT - + 2 * + 21
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT COUNT( * ) * 11 + + - 80 + 66 - - 79 * ( - + 58 ) AS col0
----
-4585

skipif mysql # not compatible
query I rowsort label-7165
SELECT COUNT ( * ) * 11 + + - 80 + 66 - - 79 * ( - + 58 ) AS col0
----
-4585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT + 64 * - 71 DIV - - COUNT( * ) + + 48 * + 18 + + 32 + - NULLIF ( - 93, - + 97 + 41 ) AS col1
----
-3555

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + 64 * - 71 / - - COUNT ( * ) + + 48 * + 18 + + 32 + - NULLIF ( - 93, - + 97 + 41 ) AS col1
----
-3555

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT - 0 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 0 / + 46
----
0

query I rowsort
SELECT ALL + 31 * + 98
----
3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT - 14 * - 31 + + COALESCE ( - 40, + 31 * + COUNT( * ), + 16 DIV + - NULLIF ( + - 76, - CASE 11 WHEN 80 THEN 97 + 61 * 61 END ) )
----
394

skipif mysql # not compatible
query I rowsort label-7170
SELECT - 14 * - 31 + + COALESCE ( - 40, + 31 * + COUNT ( * ), + 16 / + - NULLIF ( + - 76, - CASE 11 WHEN 80 THEN 97 + 61 * 61 END ) )
----
394

query I rowsort
SELECT DISTINCT + 28 * + 23
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7172
SELECT + 92 col0, - CAST( NULL AS SIGNED ) * - MIN( ALL + 88 ) * 39 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-7172
SELECT + 92 col0, - CAST ( NULL AS INTEGER ) * - MIN ( ALL + 88 ) * 39 AS col1
----
92
NULL

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

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

query I rowsort
SELECT + + ( - COALESCE ( + 94, + - 98 ) ) - - - 3
----
-97

query I rowsort
SELECT + 86 + - 23 + + 3
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + SUM( 12 ) * + + 37 + 18 * + 19
----
786

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + SUM ( 12 ) * + + 37 + 18 * + 19
----
786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT ALL 6 + - + 69 + - 17 + + 49 - 49 DIV 9 + + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 6 + - + 69 + - 17 + + 49 - 49 / 9 + + COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT ( + - 96 ) + COUNT( * ) + + + 86 + + 20 * + 53 * + + 62 - + 8
----
65703

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT ( + - 96 ) + COUNT ( * ) + + + 86 + + 20 * + 53 * + + 62 - + 8
----
65703

query I rowsort
SELECT - 88 * + 51 * 45 AS col2
----
-201960

query I rowsort
SELECT DISTINCT + 81 * 77
----
6237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL + COUNT( + - 95 ) + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + COUNT ( + - 95 ) + 85 AS col0
----
86

query I rowsort
SELECT - 52 + + 57
----
5

query I rowsort
SELECT ALL 40 + 68
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT + MIN( + + 16 ), + 11 * + 66 AS col0
----
16
726

skipif mysql # not compatible
query II rowsort label-7185
SELECT + MIN ( + + 16 ), + 11 * + 66 AS col0
----
16
726

query I rowsort
SELECT + 22 * - + 84 AS col2
----
-1848

query I rowsort
SELECT + 28 * + - 14 AS col0
----
-392

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT ALL + 25 AS col0, + COUNT( * ) * - - 98 col0
----
25
98

skipif mysql # not compatible
query II rowsort label-7188
SELECT ALL + 25 AS col0, + COUNT ( * ) * - - 98 col0
----
25
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + MAX( ALL ( + 91 ) ) - 71 + ( - 93 )
----
-73

skipif mysql # not compatible
query I rowsort label-7189
SELECT + MAX ( ALL ( + 91 ) ) - 71 + ( - 93 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT ALL + CASE - - 30 WHEN - ( + COUNT( 29 ) ) THEN NULL WHEN + + CAST( 96 AS SIGNED ) / - 42 * - 41 THEN + ( + 62 ) WHEN - ( 25 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + CASE - - 30 WHEN - ( + COUNT ( 29 ) ) THEN NULL WHEN + + CAST ( 96 AS INTEGER ) / - 42 * - 41 THEN + ( + 62 ) WHEN - ( 25 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 99 AS col1, + 6 AS col2
----
99
6

query I rowsort
SELECT ALL 86 * + - 14 AS col2
----
-1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7193
SELECT DISTINCT 98 DIV 74 * - CAST( + COUNT( - 93 ) AS SIGNED ) * + 53 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT 98 / 74 * - CAST ( + COUNT ( - 93 ) AS INTEGER ) * + 53 / + 68 AS col2
----
0

query II rowsort
SELECT ALL + 15 col1, 56 AS col2
----
15
56

query I rowsort
SELECT + 27 * 20 AS col1
----
540

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT ALL + 42 * - 54 AS col2, + MAX( DISTINCT 99 ) AS col2
----
-2268
99

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL + 42 * - 54 AS col2, + MAX ( DISTINCT 99 ) AS col2
----
-2268
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT + 41 AS col2, + 17 + - CASE + - 78 WHEN - 86 THEN NULL WHEN 75 THEN NULL WHEN + - 57 * + 64 THEN 53 / 81 * + + CASE + 10 WHEN 35 * NULLIF ( + 79, 84 ) THEN 34 WHEN - NULLIF ( 40, - 14 + 36 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 0 END END + - ( + 95 + - 75 / 64 ) / 99
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7197
SELECT + 41 AS col2, + 17 + - CASE + - 78 WHEN - 86 THEN NULL WHEN 75 THEN NULL WHEN + - 57 * + 64 THEN 53 / 81 * + + CASE + 10 WHEN 35 * NULLIF ( + 79, 84 ) THEN 34 WHEN - NULLIF ( 40, - 14 + 36 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 0 END END + - ( + 95 + - 75 / 64 ) / 99
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + COUNT( * ) - - - COUNT( * ) * - 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7198
SELECT + COUNT ( * ) - - - COUNT ( * ) * - 44 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT ALL CAST( NULL AS SIGNED ) * - 70 + AVG ( DISTINCT CAST( - - 6 AS SIGNED ) ) + 2 * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL CAST ( NULL AS INTEGER ) * - 70 + AVG ( DISTINCT CAST ( - - 6 AS INTEGER ) ) + 2 * - 38 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) * 1 - - 75 + + + 1 + - AVG ( DISTINCT 86 ) - - + 78 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 1 - - 75 + + + 1 + - AVG ( DISTINCT 86 ) - - + 78 * 28
----
NULL

query I rowsort
SELECT DISTINCT - 35 * - 8 col2
----
280

query II rowsort
SELECT + 42 col2, + 69 - 96 + - 32 + + 7
----
42
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + + COALESCE ( - + COUNT( * ), - 53 - + 57 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + + COALESCE ( - + COUNT ( * ), - 53 - + 57 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL + MAX( - 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + MAX ( - 79 ) AS col2
----
-79

query I rowsort
SELECT + - 79 * + + 21 AS col0
----
-1659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT + - 21 + - CASE 59 WHEN - 41 * + COUNT( * ) THEN + CAST( ( - 10 ) AS SIGNED ) ELSE CAST( - - ( - - SUM( ALL 53 ) ) AS SIGNED ) END
----
-74

skipif mysql # not compatible
query I rowsort label-7206
SELECT + - 21 + - CASE 59 WHEN - 41 * + COUNT ( * ) THEN + CAST ( ( - 10 ) AS INTEGER ) ELSE CAST ( - - ( - - SUM ( ALL 53 ) ) AS INTEGER ) END
----
-74

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

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

query II rowsort
SELECT ALL + 71 AS col1, 57
----
71
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT - 34 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 34 / - 79 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7210
SELECT COUNT( * ) * - 18 + - 15 * - CAST( NULL AS SIGNED ) AS col2, 77 col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7210
SELECT COUNT ( * ) * - 18 + - 15 * - CAST ( NULL AS INTEGER ) AS col2, 77 col1
----
NULL
77

query II rowsort
SELECT - 65 AS col0, 29
----
-65
29

query I rowsort
SELECT - 61 + - 52 AS col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT - + ( - 44 ) DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT - + ( - 44 ) / - + 93
----
0

query I rowsort
SELECT - - 78 + - + CASE 69 WHEN + 49 THEN + ( - + 56 ) + + 68 * - 93 / - 45 + + 27 + 65 ELSE NULL END * - 73 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7215
SELECT - 71 * 21 AS col0, - 5 DIV + + 14
----
-1491
0

skipif mysql # not compatible
query II rowsort label-7215
SELECT - 71 * 21 AS col0, - 5 / + + 14
----
-1491
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT ALL 77 * + 51, COUNT( * ) + + + 44 * - COUNT( ( + 91 ) ) AS col0
----
3927
-43

skipif mysql # not compatible
query II rowsort label-7216
SELECT ALL 77 * + 51, COUNT ( * ) + + + 44 * - COUNT ( ( + 91 ) ) AS col0
----
3927
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - MAX( ALL + - 27 ) + + 70
----
97

skipif mysql # not compatible
query I rowsort label-7217
SELECT - MAX ( ALL + - 27 ) + + 70
----
97

query II rowsort
SELECT ALL + ( - 1 ) + + 11 AS col2, - 91 AS col0
----
10
-91

query I rowsort
SELECT DISTINCT - 41 + + - 30 * ( + - 42 ) - + ( - 18 ) AS col2
----
1237

query II rowsort
SELECT + 35 * - 26, - 98 col1
----
-910
-98

query II rowsort
SELECT - 53 + 13 AS col0, + 99 * + - 37 * - 56 + - 18
----
-40
205110

query I rowsort
SELECT - 59 - - 36 + + - 34
----
-57

query II rowsort
SELECT DISTINCT ( - CASE + 14 WHEN + 50 * + 69 - - 92 THEN + 93 END ), 5 AS col1
----
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT ALL - 96 - AVG ( ALL 83 ) + - - 76 + MAX( CAST( NULL AS SIGNED ) ) * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - 96 - AVG ( ALL 83 ) + - - 76 + MAX ( CAST ( NULL AS INTEGER ) ) * 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 72, + 43 + 20 )
----
72

query I rowsort
SELECT - ( - - COALESCE ( - 81, 96 * - - 16 ) ) + - 77 + + 26 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT DISTINCT 10 * - 20 DIV 1
----
-200

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT 10 * - 20 / 1
----
-200

query II rowsort
SELECT DISTINCT ( + 21 ), - NULLIF ( - + 73, - 81 ) AS col1
----
21
73

query I rowsort
SELECT ALL 45 * + 82
----
3690

query II rowsort
SELECT ALL - 33 * 17 AS col0, 81 + - + 3
----
-561
78

query I rowsort
SELECT DISTINCT - NULLIF ( + + 58, 85 ) AS col1
----
-58

query I rowsort
SELECT DISTINCT - 15 * + + 28 col1
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT ALL - 6 * 30 DIV + 50
----
-3

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - 6 * 30 / + 50
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT + 55 * - 36 - + 92 + - COUNT( * ) - 33 + + 57 * + - 99, 7 AS col1
----
-7749
7

skipif mysql # not compatible
query II rowsort label-7234
SELECT + 55 * - 36 - + 92 + - COUNT ( * ) - 33 + + 57 * + - 99, 7 AS col1
----
-7749
7

query I rowsort
SELECT ALL - COALESCE ( - NULLIF ( - 48, - 53 ), 37 ) col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT ALL - 31 DIV - + 70 * + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL - 31 / - + 70 * + 47 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT ALL ( COALESCE ( - + 42, COALESCE ( + COUNT( * ), - + 37 * - 82, - 54 ) DIV + 40 - CASE AVG ( - 95 ) WHEN 10 - 10 THEN + 76 + - COUNT( * ) WHEN 20 THEN NULL END ) ) DIV - 13
----
3

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL ( COALESCE ( - + 42, COALESCE ( + COUNT ( * ), - + 37 * - 82, - 54 ) / + 40 - CASE AVG ( - 95 ) WHEN 10 - 10 THEN + 76 + - COUNT ( * ) WHEN 20 THEN NULL END ) ) / - 13
----
3

query I rowsort
SELECT DISTINCT - + 31 + - 11
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT - 5 * 1 DIV - + 25 + - + 52 * - - 41 + + - 3
----
-2135

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 5 * 1 / - + 25 + - + 52 * - - 41 + + - 3
----
-2135

query I rowsort
SELECT DISTINCT - ( - ( ( + 48 ) ) ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 14 DIV - + 92 + + + 33
----
33

skipif mysql # not compatible
query I rowsort label-7241
SELECT 14 / - + 92 + + + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + SUM( DISTINCT - 14 ) * - 46 * - - 82
----
52808

skipif mysql # not compatible
query I rowsort label-7242
SELECT + SUM ( DISTINCT - 14 ) * - 46 * - - 82
----
52808

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT NULLIF ( + + 22, + 79 ) + CASE + 48 WHEN + ( - - 4 ) * + ( + - 47 ) * + + COUNT( * ) + + AVG ( DISTINCT 88 ) / - 87 THEN NULL WHEN + MIN( ALL - 62 ) * + 16 - + 79 THEN NULL ELSE 84 + - SUM( DISTINCT 98 ) END + + COUNT( ALL - 19 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7243
SELECT NULLIF ( + + 22, + 79 ) + CASE + 48 WHEN + ( - - 4 ) * + ( + - 47 ) * + + COUNT ( * ) + + AVG ( DISTINCT 88 ) / - 87 THEN NULL WHEN + MIN ( ALL - 62 ) * + 16 - + 79 THEN NULL ELSE 84 + - SUM ( DISTINCT 98 ) END + + COUNT ( ALL - 19 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL - 87 + 84 + 1 - - 73 - - 10 * + 83 + - COUNT( * ) * - 87 * CASE 58 WHEN - 89 * - 14 + + 30 THEN NULL WHEN 16 * - 73 THEN NULL ELSE - ( 90 ) END AS col2
----
-6929

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - 87 + 84 + 1 - - 73 - - 10 * + 83 + - COUNT ( * ) * - 87 * CASE 58 WHEN - 89 * - 14 + + 30 THEN NULL WHEN 16 * - 73 THEN NULL ELSE - ( 90 ) END AS col2
----
-6929

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

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + ( - ( + - CAST ( NULL AS REAL ) ) ) * + - 89
----
NULL

query I rowsort
SELECT + 12 - + 79 + - - 65 * 1 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL MAX( ALL + 3 ) + - 60
----
-57

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL MAX ( ALL + 3 ) + - 60
----
-57

query I rowsort
SELECT ALL - 27 + + 68
----
41

query II rowsort
SELECT 70 AS col1, - 37 + - 23 + 54 + 23 AS col2
----
70
17

query I rowsort
SELECT 61 + + + 63
----
124

query II rowsort
SELECT DISTINCT 79 col2, + 69 AS col2
----
79
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL 23 DIV 3
----
7

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL 23 / 3
----
7

query I rowsort
SELECT 74 - 79
----
-5

query I rowsort
SELECT ALL - 10 * - - 20
----
-200

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

skipif mysql # not compatible
query I rowsort label-7255
SELECT COUNT ( DISTINCT - ( + 17 ) ) * - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT ALL MAX( ALL + - 26 ) DIV - 35 * - 84 - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL MAX ( ALL + - 26 ) / - 35 * - 84 - - COUNT ( * ) col0
----
1

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

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

query I rowsort
SELECT DISTINCT 22 * 18 AS col2
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT 86 DIV - + 31
----
-2

skipif mysql # not compatible
query I rowsort label-7259
SELECT 86 / - + 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 60 + - COUNT( DISTINCT 78 )
----
59

skipif mysql # not compatible
query I rowsort label-7260
SELECT 60 + - COUNT ( DISTINCT 78 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT 99 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-7261
SELECT 99 / - 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT 70 + + MAX( ALL - 51 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7262
SELECT 70 + + MAX ( ALL - 51 ) AS col0
----
19

query II rowsort
SELECT 37 AS col0, 30
----
37
30

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

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

query I rowsort
SELECT 72 - 36 * - 20
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL - 85 + + 82 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - 85 + + 82 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT - ( + + 2 ) * + 33 + 15 DIV + 73 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( + + 2 ) * + 33 + 15 / + 73 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT ALL - COUNT( * ) AS col2, 12 * 75
----
-1
900

skipif mysql # not compatible
query II rowsort label-7268
SELECT ALL - COUNT ( * ) AS col2, 12 * 75
----
-1
900

query I rowsort
SELECT 87 - + 3
----
84

query I rowsort
SELECT ALL - 58 + + 18 col1
----
-40

query I rowsort
SELECT 21 * + - 25
----
-525

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT DISTINCT - CASE + 76 WHEN - 14 / 33 + + 69 + + - 40 - 81 + COUNT( * ) / + + 81 * - + COUNT( * ) THEN - ( + 89 ) + + - MIN( CAST( - 72 AS SIGNED ) ) ELSE + 83 * 3 + + COUNT( DISTINCT + 64 ) END + - COUNT( * )
----
-251

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - CASE + 76 WHEN - 14 / 33 + + 69 + + - 40 - 81 + COUNT ( * ) / + + 81 * - + COUNT ( * ) THEN - ( + 89 ) + + - MIN ( CAST ( - 72 AS INTEGER ) ) ELSE + 83 * 3 + + COUNT ( DISTINCT + 64 ) END + - COUNT ( * )
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL - - COALESCE ( + + COUNT( - 42 ), + + 83 + + 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - - COALESCE ( + + COUNT ( - 42 ), + + 83 + + 35 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT + - CASE - + 49 WHEN - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - 31 THEN - AVG ( DISTINCT - 43 ) + + - 14 END AS col2, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-7275
SELECT + - CASE - + 49 WHEN - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - 31 THEN - AVG ( DISTINCT - 43 ) + + - 14 END AS col2, 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT DISTINCT + 76 - + COUNT( DISTINCT ( 74 ) ) AS col0, + 45 AS col1
----
75
45

skipif mysql # not compatible
query II rowsort label-7276
SELECT DISTINCT + 76 - + COUNT ( DISTINCT ( 74 ) ) AS col0, + 45 AS col1
----
75
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT 97 DIV - 35 - - - 84
----
-86

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT 97 / - 35 - - - 84
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7278
SELECT 32 * - - CAST( + + COUNT( * ) AS SIGNED ) + - 64 AS col0, 93 DIV 68
----
-32
1

skipif mysql # not compatible
query II rowsort label-7278
SELECT 32 * - - CAST ( + + COUNT ( * ) AS INTEGER ) + - 64 AS col0, 93 / 68
----
-32
1

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

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT - SUM( 11 ) AS col1, - 90 * 43 * - 98 + + COALESCE ( + 27, + - NULLIF ( 61, - 20 * + 53 ) * 14 + + 55 + + 56 )
----
-11
379287

skipif mysql # not compatible
query II rowsort label-7280
SELECT - SUM ( 11 ) AS col1, - 90 * 43 * - 98 + + COALESCE ( + 27, + - NULLIF ( 61, - 20 * + 53 ) * 14 + + 55 + + 56 )
----
-11
379287

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL 76 - ( 76 ) - - - 52 DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 76 - ( 76 ) - - - 52 / - + 64
----
0

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

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

query I rowsort
SELECT ALL CASE WHEN 29 IS NOT NULL THEN - 92 ELSE NULL END AS col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 64 * + ( + + 68 )
----
4352

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT SUM( ALL + 33 ) + - 41 * + ( + 75 ) * 81 * + 3 AS col1, + 51 col2
----
-747192
51

skipif mysql # not compatible
query II rowsort label-7286
SELECT SUM ( ALL + 33 ) + - 41 * + ( + 75 ) * 81 * + 3 AS col1, + 51 col2
----
-747192
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT + CAST( 99 AS SIGNED ) + + CASE + 8 WHEN + - 19 THEN NULL ELSE 9 END
----
108

skipif mysql # not compatible
query I rowsort label-7287
SELECT + CAST ( 99 AS INTEGER ) + + CASE + 8 WHEN + - 19 THEN NULL ELSE 9 END
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + NULLIF ( + 99, + 2 ) * COUNT( * ) * 21
----
2079

skipif mysql # not compatible
query I rowsort label-7288
SELECT + NULLIF ( + 99, + 2 ) * COUNT ( * ) * 21
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT - SUM( + 50 ) AS col1, 67 * + 9
----
-50
603

skipif mysql # not compatible
query II rowsort label-7289
SELECT - SUM ( + 50 ) AS col1, 67 * + 9
----
-50
603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL + 70 * CAST( AVG ( DISTINCT - - 61 ) AS SIGNED ) * + 80
----
341600

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 70 * CAST ( AVG ( DISTINCT - - 61 ) AS INTEGER ) * + 80
----
341600

query I rowsort
SELECT ALL 74 + + 42
----
116

query I rowsort
SELECT - 64 + - + 10 + - 36
----
-110

query I rowsort
SELECT - 78 * - 17
----
1326

query I rowsort
SELECT ALL - + 29 * 68 + 68
----
-1904

query I rowsort
SELECT + - 48 * 36 AS col0
----
-1728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7296
SELECT + + 73 * + 66 AS col2, CAST( NULL AS SIGNED ) AS col0
----
4818
NULL

skipif mysql # not compatible
query II rowsort label-7296
SELECT + + 73 * + 66 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
4818
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT + 9 / - - CASE CAST( - 40 AS SIGNED ) WHEN + 63 / - 47 THEN NULL WHEN 6 THEN - ( - 49 ) - + 91 END + - 0 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 9 / - - CASE CAST ( - 40 AS INTEGER ) WHEN + 63 / - 47 THEN NULL WHEN 6 THEN - ( - 49 ) - + 91 END + - 0 * - 57
----
NULL

query I rowsort
SELECT ALL - + 98 * 68 + + 37 + - + 17
----
-6644

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + + 99 * COALESCE ( + MIN( ALL - 26 ), + 83 ) * + 41 + + 61 col2
----
-105473

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + + 99 * COALESCE ( + MIN ( ALL - 26 ), + 83 ) * + 41 + + 61 col2
----
-105473

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

query I rowsort
SELECT ALL + 96 * - ( + + 41 )
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ALL + - COUNT( * ) * - - 75 * - 92 * 68 + + ( - COUNT( * ) ) * + 73 * + CASE + 5 WHEN + 10 - 84 - + - 68 - - 83 / - + MIN( + 69 ) * - 97 THEN NULL WHEN 6 + 51 / + 50 THEN - NULLIF ( 16, 49 ) + 46 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL + - COUNT ( * ) * - - 75 * - 92 * 68 + + ( - COUNT ( * ) ) * + 73 * + CASE + 5 WHEN + 10 - 84 - + - 68 - - 83 / - + MIN ( + 69 ) * - 97 THEN NULL WHEN 6 + 51 / + 50 THEN - NULLIF ( 16, 49 ) + 46 ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT + NULLIF ( - - 66, - 74 ) * - 85 - + 92 * + - 79 + + CAST( 17 AS SIGNED ) * - 47 * COUNT( * ) + - + 24 AS col1
----
835

skipif mysql # not compatible
query I rowsort label-7303
SELECT + NULLIF ( - - 66, - 74 ) * - 85 - + 92 * + - 79 + + CAST ( 17 AS INTEGER ) * - 47 * COUNT ( * ) + - + 24 AS col1
----
835

query I rowsort
SELECT + 36 + - 22
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT + ( - COALESCE ( COUNT( * ), + + 28 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT + ( - COALESCE ( COUNT ( * ), + + 28 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT ( - + COUNT( ALL - 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT ( - + COUNT ( ALL - 2 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT ALL + 74 DIV - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL + 74 / - - 86 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7308
SELECT - ( + 66 ) * - 46 AS col1, + 43 + - + 22 * - ( - SUM( DISTINCT 36 ) ) + - NULLIF ( 21, MIN( 32 ) * + + 88 + 67 * - CAST( + COUNT( * ) AS SIGNED ) * SUM( + 54 ) ) AS col1
----
3036
-770

skipif mysql # not compatible
query II rowsort label-7308
SELECT - ( + 66 ) * - 46 AS col1, + 43 + - + 22 * - ( - SUM ( DISTINCT 36 ) ) + - NULLIF ( 21, MIN ( 32 ) * + + 88 + 67 * - CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( + 54 ) ) AS col1
----
3036
-770

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

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

query I rowsort
SELECT - COALESCE ( 54, - 83 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT ALL SUM( ALL + - 49 ) + - 4, 94 * - 23 AS col2
----
-53
-2162

skipif mysql # not compatible
query II rowsort label-7311
SELECT ALL SUM ( ALL + - 49 ) + - 4, 94 * - 23 AS col2
----
-53
-2162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL 56 + - MIN( + 85 ) + - 19
----
-48

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL 56 + - MIN ( + 85 ) + - 19
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7314
SELECT DISTINCT COALESCE ( 75, - 0 + - 49 + NULLIF ( + ( + 39 ), + 51 * - 52 ) / - 78 / - + 71 * 58 * - COUNT( * ) ) + NULLIF ( 41, 89 * 9 ) + + 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT COALESCE ( 75, - 0 + - 49 + NULLIF ( + ( + 39 ), + 51 * - 52 ) / - 78 / - + 71 * 58 * - COUNT ( * ) ) + NULLIF ( 41, 89 * 9 ) + + 34 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + COUNT( * ) + 61 * 84
----
5125

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + COUNT ( * ) + 61 * 84
----
5125

query I rowsort
SELECT + - 63 * - - 72
----
-4536

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT - COUNT( * ) + - + MIN( DISTINCT 31 ), 44 * + 37 AS col2
----
-32
1628

skipif mysql # not compatible
query II rowsort label-7317
SELECT - COUNT ( * ) + - + MIN ( DISTINCT 31 ), 44 * + 37 AS col2
----
-32
1628

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7318
SELECT 81 AS col2, - 4 * - 64 col0, 60 * + CAST( NULL AS SIGNED ) + + - 38 * - - 64 - - CAST( 50 AS SIGNED ) + - 40 AS col0
----
81
256
NULL

skipif mysql # not compatible
query III rowsort label-7318
SELECT 81 AS col2, - 4 * - 64 col0, 60 * + CAST ( NULL AS INTEGER ) + + - 38 * - - 64 - - CAST ( 50 AS INTEGER ) + - 40 AS col0
----
81
256
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL + SUM( 20 ) + 4
----
24

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL + SUM ( 20 ) + 4
----
24

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT + COUNT ( * ) + - - 57 * ( 47 ) AS col2
----
2680

query I rowsort
SELECT - 98 * + - 86 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL COUNT( DISTINCT + 35 ) + - 38 * - 88 * - 26 AS col0
----
-86943

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL COUNT ( DISTINCT + 35 ) + - 38 * - 88 * - 26 AS col0
----
-86943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7323
SELECT + + 86 * - 37 * NULLIF ( - + 15, - CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) + 94 + - 51 + + COUNT( * ) * + 99 * - 33 * - COUNT( * ) + - 9 + 58 + COUNT( * ) * - MAX( 97 ) )
----
47730

skipif mysql # not compatible
query I rowsort label-7323
SELECT + + 86 * - 37 * NULLIF ( - + 15, - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) + 94 + - 51 + + COUNT ( * ) * + 99 * - 33 * - COUNT ( * ) + - 9 + 58 + COUNT ( * ) * - MAX ( 97 ) )
----
47730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7324
SELECT COUNT( * ) DIV + COUNT( * ) - - 74 + + 7 + + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7324
SELECT COUNT ( * ) / + COUNT ( * ) - - 74 + + 7 + + + COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL + + MIN( + CAST( 0 AS SIGNED ) ) * + + 77
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT + + 36 + + 24 DIV 50
----
36

skipif mysql # not compatible
query I rowsort label-7326
SELECT + + 36 + + 24 / 50
----
36

query II rowsort
SELECT ALL + 6, 25 col2
----
6
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7328
SELECT COUNT( ALL + + 88 ) * + - 61 * + - COALESCE ( - 54, - 65 + + 82 + - + 10 + 1 + - + 54 * 51 + - - 0 * - 47 * + + 87 * + - CAST( NULL AS SIGNED ) + 43 DIV 7 ) * - 6 + + COUNT( * ) + - 91 AS col1
----
19674

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( ALL + + 88 ) * + - 61 * + - COALESCE ( - 54, - 65 + + 82 + - + 10 + 1 + - + 54 * 51 + - - 0 * - 47 * + + 87 * + - CAST ( NULL AS INTEGER ) + 43 / 7 ) * - 6 + + COUNT ( * ) + - 91 AS col1
----
19674

query I rowsort
SELECT DISTINCT 57 * + 50 * - + 10 * CASE + 52 WHEN - 2 THEN 23 ELSE + 83 END * 70
----
-165585000

query I rowsort
SELECT + + 75 + + 99 + + - 31 * + + 13
----
-229

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT - 1 * + + 33 - + 98 + - 45 + - 29 + + 14 + + - 43 + - + 96 + + - 5 * + + 3, 17 + - - COUNT( * ) + + 91 AS col0
----
-345
109

skipif mysql # not compatible
query II rowsort label-7331
SELECT - 1 * + + 33 - + 98 + - 45 + - 29 + + 14 + + - 43 + - + 96 + + - 5 * + + 3, 17 + - - COUNT ( * ) + + 91 AS col0
----
-345
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + 44 + - COUNT( + + 11 ) + 54 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 44 + - COUNT ( + + 11 ) + 54 AS col0
----
97

query II rowsort
SELECT 42 AS col2, 54
----
42
54

query I rowsort
SELECT - 28 + + 13
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7335
SELECT ALL - ( 1 ) DIV 92 col2, - COUNT( * ) DIV - - 81 * + 20 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL - ( 1 ) / 92 col2, - COUNT ( * ) / - - 81 * + 20 AS col1
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7336
SELECT ALL + 99 col1, - 57 DIV - 30 + ( - + 41 ) + 39 DIV 52
----
99
-40

skipif mysql # not compatible
query II rowsort label-7336
SELECT ALL + 99 col1, - 57 / - 30 + ( - + 41 ) + 39 / 52
----
99
-40

query II rowsort
SELECT 16, + 6 AS col0
----
16
6

query I rowsort
SELECT 80 * - + 64 AS col0
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL + 6 * 36 * - CASE + 1 WHEN + 74 THEN - 61 * - 84 WHEN - - 7 + COUNT( * ) * - 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + 6 * 36 * - CASE + 1 WHEN + 74 THEN - 61 * - 84 WHEN - - 7 + COUNT ( * ) * - 46 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT CAST( + - 29 AS SIGNED ) + + - 85 + + - COUNT( * ) + COUNT( * ) * + 31 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7340
SELECT CAST ( + - 29 AS INTEGER ) + + - 85 + + - COUNT ( * ) + COUNT ( * ) * + 31 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT 6 * 89 * - + 0 + COUNT( * ) * 8 * + 55 AS col1
----
440

skipif mysql # not compatible
query I rowsort label-7341
SELECT 6 * 89 * - + 0 + COUNT ( * ) * 8 * + 55 AS col1
----
440

query I rowsort
SELECT 70 + 6
----
76

query I rowsort
SELECT DISTINCT + 61 + - 86 + - - 37
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT - 88 + + - MAX( - + 0 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - 88 + + - MAX ( - + 0 ) AS col2
----
-88

query I rowsort
SELECT 95 + + + 48 AS col2
----
143

query I rowsort
SELECT 5 + - + 1 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL CASE + 95 WHEN - 25 THEN + CAST( - 28 AS SIGNED ) WHEN + COUNT( * ) THEN NULL END + - 89 / - + 25 / + 14 + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL CASE + 95 WHEN - 25 THEN + CAST ( - 28 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL END + - 89 / - + 25 / + 14 + 67 col2
----
NULL

query I rowsort
SELECT ALL 33 * - 56
----
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT 14 + - COUNT( * ) + + - 53 DIV + 19 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7349
SELECT 14 + - COUNT ( * ) + + - 53 / + 19 AS col0
----
11

query I rowsort
SELECT ALL - 44 + + NULLIF ( 29, - 31 - 43 ) AS col2
----
-15

query I rowsort
SELECT 57 * + - 77 * + - 5
----
21945

query I rowsort
SELECT - 55 + + - 45 AS col0
----
-100

query I rowsort
SELECT 3 * - 68 * + - 77
----
15708

query II rowsort
SELECT 47 + 45 + - 7 * - 52 * - + 63 * + 26 AS col2, ( - + 10 ) AS col0
----
-596140
-10

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

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

query II rowsort
SELECT - - 96, 35 + 83 col0
----
96
118

query I rowsort
SELECT DISTINCT - + 80 - 0 + 95
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT DISTINCT 74 * 47 AS col2, MAX( DISTINCT - - 94 ) - - 19
----
3478
113

skipif mysql # not compatible
query II rowsort label-7358
SELECT DISTINCT 74 * 47 AS col2, MAX ( DISTINCT - - 94 ) - - 19
----
3478
113

query I rowsort
SELECT DISTINCT + - 67 * + 75 AS col1
----
-5025

query II rowsort
SELECT ALL - 6, - 4 AS col0
----
-6
-4

query I rowsort
SELECT - 71 * - 37 AS col1
----
2627

query II rowsort
SELECT ALL - - 45, + 29 AS col1
----
45
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT COUNT( * ) * - - 66 + 54
----
120

skipif mysql # not compatible
query I rowsort label-7363
SELECT COUNT ( * ) * - - 66 + 54
----
120

query II rowsort
SELECT ALL - 85 AS col2, - 41
----
-85
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7365
SELECT + 38 * - COALESCE ( 56, + - COUNT( ALL - 72 ) DIV + ( 50 ) - + 2, - 70 ) AS col2
----
-2128

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 38 * - COALESCE ( 56, + - COUNT ( ALL - 72 ) / + ( 50 ) - + 2, - 70 ) AS col2
----
-2128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT + - COUNT( * ) / - CAST( NULL AS SIGNED ) * 59 * + CASE - 82 WHEN + + 49 * COUNT( * ) * + 67 THEN NULL ELSE 61 * + ( - 23 ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) END - 32 + - + ( 38 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 59 * + CASE - 82 WHEN + + 49 * COUNT ( * ) * + 67 THEN NULL ELSE 61 * + ( - 23 ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) END - 32 + - + ( 38 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7367
SELECT DISTINCT - 62 AS col0, + 54 + + CAST( + 54 AS SIGNED )
----
-62
108

skipif mysql # not compatible
query II rowsort label-7367
SELECT DISTINCT - 62 AS col0, + 54 + + CAST ( + 54 AS INTEGER )
----
-62
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT ALL 94 * - ( MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL 94 * - ( MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7369
SELECT DISTINCT 12 * - 70 AS col0, - 57 + CASE + COUNT( * ) WHEN + 67 THEN + COUNT( * ) WHEN + + 32 + 92 * - 87 THEN NULL WHEN - 84 * 86 DIV 25 THEN - 98 + + + 81 DIV 42 + 1 * 41 ELSE 79 END * + 63 col2
----
-840
4920

skipif mysql # not compatible
query II rowsort label-7369
SELECT DISTINCT 12 * - 70 AS col0, - 57 + CASE + COUNT ( * ) WHEN + 67 THEN + COUNT ( * ) WHEN + + 32 + 92 * - 87 THEN NULL WHEN - 84 * 86 / 25 THEN - 98 + + + 81 / 42 + 1 * 41 ELSE 79 END * + 63 col2
----
-840
4920

query I rowsort
SELECT DISTINCT 24 * + 5
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT 73 * - CAST( - - 48 AS SIGNED ) AS col1
----
-3504

skipif mysql # not compatible
query I rowsort label-7371
SELECT 73 * - CAST ( - - 48 AS INTEGER ) AS col1
----
-3504

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT 80 DIV - + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7372
SELECT 80 / - + 42 AS col2
----
-1

query I rowsort
SELECT ALL 59 + + 97 + + 69 col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + 25 * + SUM( 67 ) - + 58 * 33 + ( - + 12 ) AS col0
----
-251

skipif mysql # not compatible
query I rowsort label-7374
SELECT + 25 * + SUM ( 67 ) - + 58 * 33 + ( - + 12 ) AS col0
----
-251

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT DISTINCT - 29 DIV 22 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - 29 / 22 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 57 + 2 col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT COALESCE ( - COUNT( * ), 13, - 8 DIV + + NULLIF ( + - 56, + 37 ) ) * + 13 * 69 DIV + 16 - + 33 * 51 AS col0
----
-1739

skipif mysql # not compatible
query I rowsort label-7377
SELECT COALESCE ( - COUNT ( * ), 13, - 8 / + + NULLIF ( + - 56, + 37 ) ) * + 13 * 69 / + 16 - + 33 * 51 AS col0
----
-1739

query I rowsort
SELECT 5 * - + 98 AS col2
----
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL SUM( 30 ) col1, 46 * COALESCE ( COALESCE ( + 42, - - 33 ), 91 * 64 + + 33 ) AS col2
----
30
1932

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL SUM ( 30 ) col1, 46 * COALESCE ( COALESCE ( + 42, - - 33 ), 91 * 64 + + 33 ) AS col2
----
30
1932

query II rowsort
SELECT DISTINCT - 57 + - + 65 AS col0, - 7
----
-122
-7

query I rowsort
SELECT 30 * - 76
----
-2280

query I rowsort
SELECT ALL - 24 - 4 * 78
----
-336

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

skipif mysql # not compatible
query I rowsort label-7383
SELECT ( MAX ( ALL 90 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT - 22 - - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - 22 - - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT - - COUNT( * ) - - - 92
----
-91

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - - COUNT ( * ) - - - 92
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7386
SELECT ALL CASE AVG ( DISTINCT 89 ) WHEN + - CAST( - 96 AS SIGNED ) + + ( + 80 ) * + 34 / ( - 77 ) * + 19 + - 70 + 15 THEN NULL WHEN - CAST( - 26 AS DECIMAL ) THEN 72 - + - 95 END - MAX( DISTINCT 40 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL CASE AVG ( DISTINCT 89 ) WHEN + - CAST ( - 96 AS INTEGER ) + + ( + 80 ) * + 34 / ( - 77 ) * + 19 + - 70 + 15 THEN NULL WHEN - CAST ( - 26 AS REAL ) THEN 72 - + - 95 END - MAX ( DISTINCT 40 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7387
SELECT COUNT( * ) * - - COUNT( * ) - - 8 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7387
SELECT COUNT ( * ) * - - COUNT ( * ) - - 8 / 79 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7388
SELECT 21 + 64 + - COUNT( * ) + + 5 * 85 + - 36 + - NULLIF ( + 54, - COALESCE ( + 75, + ( + - 50 ), 12, - 55 ) ) - + CASE - 57 WHEN COALESCE ( - ( ( 33 ) ), NULLIF ( - 95, ( + 19 ) + 87 ) * + SUM( ALL CAST( 67 AS SIGNED ) ) ) * 4 THEN + 65 ELSE + 91 END DIV COUNT( * ) AS col2
----
328

skipif mysql # not compatible
query I rowsort label-7388
SELECT 21 + 64 + - COUNT ( * ) + + 5 * 85 + - 36 + - NULLIF ( + 54, - COALESCE ( + 75, + ( + - 50 ), 12, - 55 ) ) - + CASE - 57 WHEN COALESCE ( - ( ( 33 ) ), NULLIF ( - 95, ( + 19 ) + 87 ) * + SUM ( ALL CAST ( 67 AS INTEGER ) ) ) * 4 THEN + 65 ELSE + 91 END / COUNT ( * ) AS col2
----
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT 80 * + CAST( NULL AS SIGNED ) * 41 / - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT 80 * + CAST ( NULL AS INTEGER ) * 41 / - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + COUNT( * ) + - 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7390
SELECT + COUNT ( * ) + - 16 AS col0
----
-15

query I rowsort
SELECT ALL - + 2 * + 86 AS col0
----
-172

query I rowsort
SELECT + 26 + 68 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT + - 54 DIV 36 + + + ( + 89 ) + - 78 * + 7 col0
----
-458

skipif mysql # not compatible
query I rowsort label-7393
SELECT + - 54 / 36 + + + ( + 89 ) + - 78 * + 7 col0
----
-458

query I rowsort
SELECT - 63 + + 19
----
-44

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT 24 DIV 92 * - MIN( DISTINCT 15 ) * + 49 + COUNT( * ) + + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-7396
SELECT 24 / 92 * - MIN ( DISTINCT 15 ) * + 49 + COUNT ( * ) + + - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL 40 * + + COUNT( * ) * NULLIF ( 42, - 35 ) + 51
----
1731

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL 40 * + + COUNT ( * ) * NULLIF ( 42, - 35 ) + 51
----
1731

query I rowsort
SELECT - 23 + - + 30 AS col1
----
-53

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

skipif mysql # not compatible
query II rowsort label-7399
SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT - 41 * 57 AS col0
----
-2337

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT + 58 * - 26 * 24 + + + 6 + - 3 DIV + 51 + - 50
----
-36236

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 58 * - 26 * 24 + + + 6 + - 3 / + 51 + - 50
----
-36236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7402
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + - 95 AS col1, + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7402
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 95 AS col1, + 2 AS col1
----
NULL
2

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

skipif mysql # not compatible
query II rowsort label-7403
SELECT COUNT ( * ) AS col2, - MIN ( - ( 76 ) )
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + CASE - 74 WHEN + + COUNT( * ) + + + CASE 99 WHEN ( + ( - 93 ) ) THEN 86 ELSE NULL END THEN 65 WHEN 27 * + 32 * + 60 / + - 43 / - - 42 + + 19 THEN NULL WHEN - 3 THEN + 40 * 16 ELSE - 10 END AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7404
SELECT + CASE - 74 WHEN + + COUNT ( * ) + + + CASE 99 WHEN ( + ( - 93 ) ) THEN 86 ELSE NULL END THEN 65 WHEN 27 * + 32 * + 60 / + - 43 / - - 42 + + 19 THEN NULL WHEN - 3 THEN + 40 * 16 ELSE - 10 END AS col0
----
-10

query I rowsort
SELECT ALL - 22 * 1 + - 72 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + COUNT( DISTINCT - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7406
SELECT + COUNT ( DISTINCT - 64 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT + COUNT( ALL - ( + - CAST( + - 65 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7407
SELECT + COUNT ( ALL - ( + - CAST ( + - 65 AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT MIN( - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7408
SELECT MIN ( - 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) * ( - 44 ) - + + 73 + ( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) * ( - 44 ) - + + 73 + ( - 87 )
----
NULL

query I rowsort
SELECT + 16 * + - 19
----
-304

query I rowsort
SELECT + 88 * - 13 + + + 59
----
-1085

query I rowsort
SELECT - 33 - + + 26
----
-59

query II rowsort
SELECT ALL 12 col2, + 28 + 71 AS col2
----
12
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT + 3 + COALESCE ( COUNT( * ), + + 62 ) - ( + NULLIF ( 65, + + COUNT( DISTINCT ( - 15 ) ) ) ) DIV 69 * + 95 * 31 + + - ( + 23 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7414
SELECT + 3 + COALESCE ( COUNT ( * ), + + 62 ) - ( + NULLIF ( 65, + + COUNT ( DISTINCT ( - 15 ) ) ) ) / 69 * + 95 * 31 + + - ( + 23 ) AS col0
----
-19

query I rowsort
SELECT + 95 * - 24
----
-2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT ALL + - 54 DIV + + CASE - 31 WHEN 53 - 90 THEN - + 35 * - 19 ELSE SUM( - 11 ) + - COUNT( DISTINCT + CASE 51 WHEN - + 42 THEN + + 86 + - + 9 + + + 98 * ( 75 ) END ) END
----
4

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + - 54 / + + CASE - 31 WHEN 53 - 90 THEN - + 35 * - 19 ELSE SUM ( - 11 ) + - COUNT ( DISTINCT + CASE 51 WHEN - + 42 THEN + + 86 + - + 9 + + + 98 * ( 75 ) END ) END
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7417
SELECT + ( + 13 ) + - COALESCE ( - + 81, + + CAST( NULL AS SIGNED ) DIV - - ( + 25 ) ) - - 77 DIV + COUNT( * ) AS col2
----
171

skipif mysql # not compatible
query I rowsort label-7417
SELECT + ( + 13 ) + - COALESCE ( - + 81, + + CAST ( NULL AS INTEGER ) / - - ( + 25 ) ) - - 77 / + COUNT ( * ) AS col2
----
171

query I rowsort
SELECT + 17 + + COALESCE ( + 86, 17 ) AS col0
----
103

query I rowsort
SELECT DISTINCT - CASE + - 21 WHEN + 94 THEN NULL WHEN COALESCE ( + 53, 20 ) * 5 * 2 - + 81 THEN - AVG ( - + 34 ) END
----
NULL

query I rowsort
SELECT - + 49 + - 59 AS col0
----
-108

query II rowsort
SELECT - - 74 + - + NULLIF ( 58, + + 37 * 39 ) - + + 25 AS col1, 93 + - 24
----
-9
69

query I rowsort
SELECT - ( + ( - - 51 ) ) AS col1
----
-51

query I rowsort
SELECT - + 57 + 98 + + - 8
----
33

query I rowsort
SELECT DISTINCT - + 50 * - - 27 * - 26 AS col1
----
35100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7425
SELECT - 14, SUM( 9 ) + + + CAST( - CAST( - - ( - 6 ) AS DECIMAL ) AS SIGNED ) col0
----
-14
15

skipif mysql # not compatible
query II rowsort label-7425
SELECT - 14, SUM ( 9 ) + + + CAST ( - CAST ( - - ( - 6 ) AS REAL ) AS INTEGER ) col0
----
-14
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT ALL - - 0 * 35 DIV + 43 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - - 0 * 35 / + 43 * - 62
----
0

query I rowsort
SELECT ALL - 27 + - - 78 + - 49 * - 74 * + - 40 + + + 96 + + + 95 AS col0
----
-144798

query I rowsort
SELECT DISTINCT ( + ( - + NULLIF ( - 91, + 20 ) ) )
----
91

query I rowsort
SELECT ALL 7 * - - 49 AS col2
----
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT - 47 * 76 DIV + 90 - MIN( + 52 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7430
SELECT - 47 * 76 / + 90 - MIN ( + 52 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT DISTINCT + 25 + COUNT( * ) + 33 + + - 22 * 19 * 85
----
-35471

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + 25 + COUNT ( * ) + 33 + + - 22 * 19 * 85
----
-35471

query I rowsort
SELECT ALL - + 95 + - 58
----
-153

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

skipif mysql # not compatible
query I rowsort label-7433
SELECT - - CAST ( + + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT - COALESCE ( + 68, - + 14 * - CASE 35 WHEN + - COALESCE ( + 89, - + 73 * + + COUNT( * ) - 81 * 65 - - 25 + - ( 89 ), 12 + - - 33 ) THEN - - NULLIF ( 45, - 88 ) END, 6 * COALESCE ( AVG ( - 13 ), + CAST( NULL AS SIGNED ), + 88 * - 25 ) ) / CAST( CASE + 15 WHEN + COUNT( * ) * 81 + + 19 THEN CAST( NULL AS SIGNED ) WHEN 75 + - 14 * 55 THEN NULL WHEN - 11 THEN NULL ELSE NULL END / 59 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT - COALESCE ( + 68, - + 14 * - CASE 35 WHEN + - COALESCE ( + 89, - + 73 * + + COUNT ( * ) - 81 * 65 - - 25 + - ( 89 ), 12 + - - 33 ) THEN - - NULLIF ( 45, - 88 ) END, 6 * COALESCE ( AVG ( - 13 ), + CAST ( NULL AS INTEGER ), + 88 * - 25 ) ) / CAST ( CASE + 15 WHEN + COUNT ( * ) * 81 + + 19 THEN CAST ( NULL AS INTEGER ) WHEN 75 + - 14 * 55 THEN NULL WHEN - 11 THEN NULL ELSE NULL END / 59 AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7436
SELECT ALL + 47 / + CAST( NULL AS DECIMAL ) * + COUNT( * ) * - + 54 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + 47 / + CAST ( NULL AS REAL ) * + COUNT ( * ) * - + 54 * 49
----
NULL

query I rowsort
SELECT DISTINCT + 29 * - 58
----
-1682

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT + 82 DIV - 10
----
-8

skipif mysql # not compatible
query I rowsort label-7438
SELECT + 82 / - 10
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT - ( 26 ) * + 6 * 64 + 45 DIV + - 53 * + 10
----
-9984

skipif mysql # not compatible
query I rowsort label-7439
SELECT - ( 26 ) * + 6 * 64 + 45 / + - 53 * + 10
----
-9984

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT + 22 * - + 49 DIV - + COUNT( * )
----
1078

skipif mysql # not compatible
query I rowsort label-7442
SELECT + 22 * - + 49 / - + COUNT ( * )
----
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT - COUNT( * ) * - 92 AS col1, 3 AS col1
----
92
3

skipif mysql # not compatible
query II rowsort label-7443
SELECT - COUNT ( * ) * - 92 AS col1, 3 AS col1
----
92
3

query I rowsort
SELECT + NULLIF ( + 70, + 81 )
----
70

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

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

query I rowsort
SELECT + 78 * + + 46 + - 96 AS col2
----
3492

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

query I rowsort
SELECT + 10 + + ( 53 )
----
63

query I rowsort
SELECT DISTINCT + NULLIF ( + - 38, + 10 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT 94 * - 64 - + + ( SUM( - + 85 ) ) - 74 - - COUNT( * ) - + - 20 AS col2
----
-5984

skipif mysql # not compatible
query I rowsort label-7450
SELECT 94 * - 64 - + + ( SUM ( - + 85 ) ) - 74 - - COUNT ( * ) - + - 20 AS col2
----
-5984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - - COALESCE ( 22, 15 ) * + 31 - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - - COALESCE ( 22, 15 ) * + 31 - - 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT - + 9 DIV - 43 * - - 47
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT - + 9 / - 43 * - - 47
----
0

query I rowsort
SELECT + 68 - + 17 + + + 54 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT CASE - 74 WHEN - - COUNT( * ) * + COUNT( ( - 36 ) ) + + ( - 96 ) THEN 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT CASE - 74 WHEN - - COUNT ( * ) * + COUNT ( ( - 36 ) ) + + ( - 96 ) THEN 93 END
----
NULL

query I rowsort
SELECT DISTINCT 96 + + 47
----
143

query II rowsort
SELECT 19 * + 73 col0, 12 + - + 76 AS col1
----
1387
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT - 84 + - 92 * + - 95 * - 5 + + CAST( NULL AS SIGNED ) - + 17 + + - 96 - - 23 * 90 + + + 15 * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT - 84 + - 92 * + - 95 * - 5 + + CAST ( NULL AS INTEGER ) - + 17 + + - 96 - - 23 * 90 + + + 15 * + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT - CASE + 37 WHEN - COALESCE ( 35, + + 17 * + - 41 ) THEN - + 45 WHEN COUNT( * ) * + + 85 THEN NULL ELSE - 40 DIV - 84 + + - 13 END col0
----
13

skipif mysql # not compatible
query I rowsort label-7458
SELECT - CASE + 37 WHEN - COALESCE ( 35, + + 17 * + - 41 ) THEN - + 45 WHEN COUNT ( * ) * + + 85 THEN NULL ELSE - 40 / - 84 + + - 13 END col0
----
13

query I rowsort
SELECT 99 - - 24 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL - MIN( + 64 ) + + - 19
----
-83

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - MIN ( + 64 ) + + - 19
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT 93 - + CAST( + SUM( + 84 ) AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT 93 - + CAST ( + SUM ( + 84 ) AS INTEGER ) AS col0
----
9

query I rowsort
SELECT - 75 * - 63 + 93
----
4818

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT 14 * - COUNT( * ) * + + 84 * 87 * - + 14 * + 4 AS col2
----
5729472

skipif mysql # not compatible
query I rowsort label-7463
SELECT 14 * - COUNT ( * ) * + + 84 * 87 * - + 14 * + 4 AS col2
----
5729472

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - MAX( ALL + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - MAX ( ALL + 15 ) AS col1
----
-15

query I rowsort
SELECT 4 * - 56 AS col2
----
-224

query I rowsort
SELECT DISTINCT - 80 * - - 72 AS col2
----
-5760

query I rowsort
SELECT ALL + ( - 68 ) - + + 50 * - 55 AS col1
----
2682

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT 23 / - - CASE - - MIN( + - 46 ) WHEN + 1 THEN COUNT( * ) WHEN + + COUNT( ( + + 47 ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT 23 / - - CASE - - MIN ( + - 46 ) WHEN + 1 THEN COUNT ( * ) WHEN + + COUNT ( ( + + 47 ) ) THEN NULL END AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 65 AS col1, + 90 AS col2
----
-65
90

query I rowsort
SELECT DISTINCT - - 39 col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT + CASE - MAX( ALL 80 ) WHEN + - 87 THEN NULL ELSE + - MAX( DISTINCT + 10 ) + - + COUNT( * ) + + 98 * + 60 END * - COUNT( * ) + + COALESCE ( - SUM( 38 ), + 39 ) + 73 DIV ( + 33 ) * COUNT( * ) + - 98 AS col2
----
-6003

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + CASE - MAX ( ALL 80 ) WHEN + - 87 THEN NULL ELSE + - MAX ( DISTINCT + 10 ) + - + COUNT ( * ) + + 98 * + 60 END * - COUNT ( * ) + + COALESCE ( - SUM ( 38 ), + 39 ) + 73 / ( + 33 ) * COUNT ( * ) + - 98 AS col2
----
-6003

query II rowsort
SELECT ALL - - 96 AS col0, - 50 - + 69 AS col0
----
96
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT - 66 + 55 * - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT 73 ) + + 90 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT - 66 + 55 * - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT 73 ) + + 90 * - 19
----
NULL

query I rowsort
SELECT ALL + 91 + - + 12 col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT CASE 82 WHEN - ( + - ( + ( + - COALESCE ( 61, + ( - 21 ) + - CAST( NULL AS SIGNED ), - - 47 ) ) ) ) + - - 74 + - NULLIF ( + + 30, - 41 / + 94 * 57 + - - ( - 47 ) ) - + - CAST( 48 AS SIGNED ) * + 64 THEN + 35 * 28 END + + 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT CASE 82 WHEN - ( + - ( + ( + - COALESCE ( 61, + ( - 21 ) + - CAST ( NULL AS INTEGER ), - - 47 ) ) ) ) + - - 74 + - NULLIF ( + + 30, - 41 / + 94 * 57 + - - ( - 47 ) ) - + - CAST ( 48 AS INTEGER ) * + 64 THEN + 35 * 28 END + + 21 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7477
SELECT + 15 + + - 46 + 15 AS col0, + MIN( ALL - 62 ) / + 93 / CAST( - 82 AS SIGNED ) + 52 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * - - COUNT( + 43 ) + 53 * 97 / CAST( 14 AS SIGNED ) col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-7477
SELECT + 15 + + - 46 + 15 AS col0, + MIN ( ALL - 62 ) / + 93 / CAST ( - 82 AS INTEGER ) + 52 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - COUNT ( + 43 ) + 53 * 97 / CAST ( 14 AS INTEGER ) col0
----
-16
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7479
SELECT - NULLIF ( 9, + COUNT( * ) + + - COUNT( * ) + + 8 ) + + 86 * + - 17 DIV - COUNT( * ), - 10 + - 63 col2
----
1453
-73

skipif mysql # not compatible
query II rowsort label-7479
SELECT - NULLIF ( 9, + COUNT ( * ) + + - COUNT ( * ) + + 8 ) + + 86 * + - 17 / - COUNT ( * ), - 10 + - 63 col2
----
1453
-73

query I rowsort
SELECT 75 * - 28 * + + 69
----
-144900

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT - 9 * - + COUNT( * ) * + 54 AS col1
----
486

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - 9 * - + COUNT ( * ) * + 54 AS col1
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL 26 * - - CASE 87 WHEN + - 71 THEN NULL WHEN COUNT( * ) THEN 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL 26 * - - CASE 87 WHEN + - 71 THEN NULL WHEN COUNT ( * ) THEN 78 END AS col1
----
NULL

query I rowsort
SELECT + 65 + - 27
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT ( + + 83 ) + + - 92 DIV + + 9
----
73

skipif mysql # not compatible
query I rowsort label-7484
SELECT ( + + 83 ) + + - 92 / + + 9
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT ALL MIN( DISTINCT 95 ) - - 9 DIV + 90 col2
----
95

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL MIN ( DISTINCT 95 ) - - 9 / + 90 col2
----
95

query II rowsort
SELECT 65 col0, 53
----
65
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT 89 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-7487
SELECT 89 / + 28
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT ( 14 ) * - CAST( - - ( - 39 ) AS SIGNED ) * - 57 * + - 40 + - COUNT( * )
----
1244879

skipif mysql # not compatible
query I rowsort label-7489
SELECT ( 14 ) * - CAST ( - - ( - 39 ) AS INTEGER ) * - 57 * + - 40 + - COUNT ( * )
----
1244879

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT + ( - 87 ) * + - MIN( ALL CASE - 4 WHEN 12 THEN NULL WHEN + - 52 THEN + 35 * + - 71 + - COALESCE ( - + 96, - 1 / + 65 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT + ( - 87 ) * + - MIN ( ALL CASE - 4 WHEN 12 THEN NULL WHEN + - 52 THEN + 35 * + - 71 + - COALESCE ( - + 96, - 1 / + 65 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT 79 - 49 col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7492
SELECT + 33 DIV - COUNT( * ) - - COUNT( * ) - 97 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-7492
SELECT + 33 / - COUNT ( * ) - - COUNT ( * ) - 97 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT 24 * + MAX( ALL + 79 ) AS col0
----
1896

skipif mysql # not compatible
query I rowsort label-7493
SELECT 24 * + MAX ( ALL + 79 ) AS col0
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT MIN( DISTINCT + - ( + 99 ) ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-7494
SELECT MIN ( DISTINCT + - ( + 99 ) ) col1
----
-99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7496
SELECT ALL + ( - MIN( + COALESCE ( + 6, - + 44, - + 38 + + 76 ) ) ) * 73 DIV + 4 - + MIN( DISTINCT 38 ) AS col2, - 80 AS col2
----
-147
-80

skipif mysql # not compatible
query II rowsort label-7496
SELECT ALL + ( - MIN ( + COALESCE ( + 6, - + 44, - + 38 + + 76 ) ) ) * 73 / + 4 - + MIN ( DISTINCT 38 ) AS col2, - 80 AS col2
----
-147
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL CASE + 86 WHEN 14 * + - 15 + 14 + + - COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) / + + 0 THEN CASE 17 WHEN + 77 THEN + 94 WHEN - CASE - ( COUNT( * ) ) WHEN + 35 THEN + 44 WHEN 69 THEN NULL END + 11 THEN + NULLIF ( 39, + COALESCE ( 32, 13 - 10 ) ) * + 88 END / + ( 59 / - 49 ) END * + ( - 98 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL CASE + 86 WHEN 14 * + - 15 + 14 + + - COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) / + + 0 THEN CASE 17 WHEN + 77 THEN + 94 WHEN - CASE - ( COUNT ( * ) ) WHEN + 35 THEN + 44 WHEN 69 THEN NULL END + 11 THEN + NULLIF ( 39, + COALESCE ( 32, 13 - 10 ) ) * + 88 END / + ( 59 / - 49 ) END * + ( - 98 ) col1
----
NULL

query I rowsort
SELECT DISTINCT 4 * - 32
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT 30 + ( COUNT( * ) ) * 27
----
57

skipif mysql # not compatible
query I rowsort label-7500
SELECT 30 + ( COUNT ( * ) ) * 27
----
57

query I rowsort
SELECT ALL 39 * - + 22
----
-858

query I rowsort
SELECT 39 * - - ( 18 ) * - - 61 col1
----
42822

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL + MIN( ALL + 9 ) + 67 * + 12 * + + COALESCE ( 66, ( 15 ) * - COUNT( * ) * MIN( + - 29 ) * 93 ) * - 18 * - + 80 + + NULLIF ( 52, - 79 * + 26 + - + 25 ) AS col0
----
76412221

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + MIN ( ALL + 9 ) + 67 * + 12 * + + COALESCE ( 66, ( 15 ) * - COUNT ( * ) * MIN ( + - 29 ) * 93 ) * - 18 * - + 80 + + NULLIF ( 52, - 79 * + 26 + - + 25 ) AS col0
----
76412221

query I rowsort
SELECT 92 * + 65 + 65
----
6045

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT ( - MIN( 63 ) ) DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT ( - MIN ( 63 ) ) / 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT - 64 + 73 + - 68 DIV - 96
----
9

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT - 64 + 73 + - 68 / - 96
----
9

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

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

query II rowsort
SELECT ALL - + 93 * - - 50 * ( - + 72 ) AS col1, 27
----
334800
27

query II rowsort
SELECT DISTINCT + - 12 AS col2, 60 * 61
----
-12
3660

query I rowsort
SELECT DISTINCT + CASE 82 WHEN + 5 * 29 * AVG ( + 96 ) + - + 79 / - 72 THEN - 3 ELSE NULL END + + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT - 4 + 63 * + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT - 4 + 63 * + COUNT ( * ) AS col1
----
59

query I rowsort
SELECT - 0 * + 41 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT ALL + + 63 + + COUNT( DISTINCT 18 ) * CAST( NULL AS SIGNED ) + + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + + 63 + + COUNT ( DISTINCT 18 ) * CAST ( NULL AS INTEGER ) + + - 79
----
NULL

query I rowsort
SELECT - - 68 * - 29 AS col2
----
-1972

query II rowsort
SELECT - + 25 AS col0, 78 * + 40 * 86 + - 59 + + 86 AS col0
----
-25
268347

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

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

query I rowsort
SELECT ALL 41 * - - 5 * - - 27 * 27
----
149445

query I rowsort
SELECT ALL - 25 - - 45 + - 59
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT - ( + + 46 ) + COUNT( * ) AS col2, 88
----
-45
88

skipif mysql # not compatible
query II rowsort label-7520
SELECT - ( + + 46 ) + COUNT ( * ) AS col2, 88
----
-45
88

query I rowsort
SELECT DISTINCT ( - 71 ) col0
----
-71

query I rowsort
SELECT ALL 5 * - 63
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + 17 - - - 46 + - SUM( - ( - 24 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7523
SELECT + 17 - - - 46 + - SUM ( - ( - 24 ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7524
SELECT - CAST( 38 AS SIGNED ) + 54 + - 1 DIV - + MAX( - - 40 ) * 64 + - - 89
----
105

skipif mysql # not compatible
query I rowsort label-7524
SELECT - CAST ( 38 AS INTEGER ) + 54 + - 1 / - + MAX ( - - 40 ) * 64 + - - 89
----
105

query II rowsort
SELECT + 63 + - 28 col2, 77
----
35
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT + CASE + 93 WHEN + + 63 THEN - CASE + COALESCE ( + - AVG ( + + ( - 66 ) ), + + CASE - 5 WHEN + 19 * + - 88 THEN - 97 * + 0 END / - - AVG ( DISTINCT 69 ) * + 73 + ( + 90 ) + - - 45, - 48 * - 22 / 27 - + 62 * ( ( + 0 ) ) + - 56 ) WHEN MIN( - 32 ) THEN COUNT( * ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + CASE + 93 WHEN + + 63 THEN - CASE + COALESCE ( + - AVG ( + + ( - 66 ) ), + + CASE - 5 WHEN + 19 * + - 88 THEN - 97 * + 0 END / - - AVG ( DISTINCT 69 ) * + 73 + ( + 90 ) + - - 45, - 48 * - 22 / 27 - + 62 * ( ( + 0 ) ) + - 56 ) WHEN MIN ( - 32 ) THEN COUNT ( * ) END END AS col1
----
NULL

query I rowsort
SELECT + CASE + 85 WHEN - 35 THEN 27 - + COALESCE ( 3, + 29 ) END AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7531
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) * 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-7531
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) * 6
----
NULL
6

query I rowsort
SELECT + + 46 * - - 45 - ( 52 )
----
2018

query I rowsort
SELECT - + 41 + - 31 * - - 44 AS col1
----
-1405

query I rowsort
SELECT ALL + 35 * + 95 AS col0
----
3325

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7535
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 74 + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 74 + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL - 41 * COALESCE ( + COALESCE ( 91, - MAX( 22 ) + - + 39 * - + 35, - ( + 50 ) ), - 82 ) + - + 19
----
-3750

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 41 * COALESCE ( + COALESCE ( 91, - MAX ( 22 ) + - + 39 * - + 35, - ( + 50 ) ), - 82 ) + - + 19
----
-3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT + 20 * - CAST( NULL AS SIGNED ) + - - 34 * + ( - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT + 20 * - CAST ( NULL AS INTEGER ) + - - 34 * + ( - COUNT ( * ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + 27 * ( COUNT( DISTINCT - - 62 ) ) - - + COUNT( * ) + - ( + + 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + 27 * ( COUNT ( DISTINCT - - 62 ) ) - - + COUNT ( * ) + - ( + + 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ( + 18 ) * 95 - + - COUNT( DISTINCT - 26 ) + - + 94 AS col0
----
1617

skipif mysql # not compatible
query I rowsort label-7539
SELECT ( + 18 ) * 95 - + - COUNT ( DISTINCT - 26 ) + - + 94 AS col0
----
1617

query I rowsort
SELECT DISTINCT - 62 * 65 + + 30 + + 70 * - 82 * 73 * NULLIF ( + 5, 97 + + 82 - + 53 + - 95 + + 35 - + 76 * + 49 )
----
-2099100

query I rowsort
SELECT + - 20 * - + 75 AS col1
----
1500

query I rowsort
SELECT + - NULLIF ( 29, - 5 * - 54 ) col2
----
-29

query I rowsort
SELECT + 44 * + 54 * - - 46 - 52
----
109244

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL - 59 DIV + 23
----
-2

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 59 / + 23
----
-2

query I rowsort
SELECT DISTINCT CASE + 68 WHEN - 20 * 49 THEN - - 53 / 38 END * + 1 - - + 80 * + + 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 26 * 29 AS col2
----
754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL - 68 * - 4 / - 75 - + 61 * - CAST( NULL AS SIGNED ) * + NULLIF ( ( - - ( ( + - 82 ) ) ), - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - 68 * - 4 / - 75 - + 61 * - CAST ( NULL AS INTEGER ) * + NULLIF ( ( - - ( ( + - 82 ) ) ), - 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7548
SELECT - 0 + + 33, CAST( + + 5 AS SIGNED ) AS col2
----
33
5

skipif mysql # not compatible
query II rowsort label-7548
SELECT - 0 + + 33, CAST ( + + 5 AS INTEGER ) AS col2
----
33
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL CAST( + 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL CAST ( + 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT ALL ( - - 40 )
----
40

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

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

query I rowsort
SELECT - 5 * - - 17 AS col2
----
-85

query I rowsort
SELECT ALL CASE + 42 WHEN - 95 THEN NULL WHEN + 6 THEN - 12 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 67, - CASE 7 WHEN - + 79 THEN - 41 END * + + 96 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7555
SELECT ALL SUM( - - 96 ) + - 9 * - 81 AS col0, - CASE 28 WHEN - - 61 THEN NULL WHEN - + 96 THEN - + 25 / - 81 * - COALESCE ( CAST( NULL AS SIGNED ), - 90, - 19, - 13 * - + 6 + + 50 + - 60 - 78 + - + 55 + - CAST( + COUNT( DISTINCT + 92 ) AS SIGNED ) * - 4 ) + - 76 / 57 + - 96 ELSE NULL END * - 79 - 84 col1
----
825
NULL

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL SUM ( - - 96 ) + - 9 * - 81 AS col0, - CASE 28 WHEN - - 61 THEN NULL WHEN - + 96 THEN - + 25 / - 81 * - COALESCE ( CAST ( NULL AS INTEGER ), - 90, - 19, - 13 * - + 6 + + 50 + - 60 - 78 + - + 55 + - CAST ( + COUNT ( DISTINCT + 92 ) AS INTEGER ) * - 4 ) + - 76 / 57 + - 96 ELSE NULL END * - 79 - 84 col1
----
825
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT ( NULLIF ( COUNT( + 95 ), - - 85 / - + 66 + - 70 + 2 * 7 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT ( NULLIF ( COUNT ( + 95 ), - - 85 / - + 66 + - 70 + 2 * 7 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT DISTINCT 86 + COALESCE ( + COUNT( * ), CAST( MAX( + 10 ) AS SIGNED ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT 86 + COALESCE ( + COUNT ( * ), CAST ( MAX ( + 10 ) AS INTEGER ) ) col0
----
87

query I rowsort
SELECT - 21 - - 91 AS col2
----
70

query I rowsort
SELECT - 74 * - 73 AS col2
----
5402

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT + SUM( - 40 ) * + + 22 AS col2, COALESCE ( 35, - COUNT( - - 58 ), - 10 + + 69 ) + - ( 16 ) AS col0
----
-880
19

skipif mysql # not compatible
query II rowsort label-7560
SELECT + SUM ( - 40 ) * + + 22 AS col2, COALESCE ( 35, - COUNT ( - - 58 ), - 10 + + 69 ) + - ( 16 ) AS col0
----
-880
19

query I rowsort
SELECT ALL - + 22 + 56 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7562
SELECT DISTINCT + + 59 * - NULLIF ( 70, - SUM( - - 97 ) * + COALESCE ( - - 69, - 75, + - COUNT( DISTINCT + CAST( 22 AS SIGNED ) ) + - - 97 + - 13 * + 54 / - ( - MIN( - CAST( - 42 AS DECIMAL ) ) ) * - + 80, - ( - AVG ( DISTINCT - + 59 ) ) ) ) + + - COUNT( * ) AS col0
----
-4131

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + + 59 * - NULLIF ( 70, - SUM ( - - 97 ) * + COALESCE ( - - 69, - 75, + - COUNT ( DISTINCT + CAST ( 22 AS INTEGER ) ) + - - 97 + - 13 * + 54 / - ( - MIN ( - CAST ( - 42 AS REAL ) ) ) * - + 80, - ( - AVG ( DISTINCT - + 59 ) ) ) ) + + - COUNT ( * ) AS col0
----
-4131

query I rowsort
SELECT ALL 89 + + 90
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT + 17 * + + ( + + COALESCE ( 84, 34, - 23 * - + 84 + - NULLIF ( - ( - + ( COUNT( * ) ) ), - - CASE - 25 WHEN + + 90 * + 3 - + 34 + - MIN( - 36 ) THEN - 54 WHEN - 73 THEN 66 ELSE NULL END * + - 41 * 72 / - 30 + - 57 + - CAST( NULL AS SIGNED ) ) ) ) * - 35 + - CASE 33 WHEN - 25 THEN 27 END - - AVG ( ALL 25 ) * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT + 17 * + + ( + + COALESCE ( 84, 34, - 23 * - + 84 + - NULLIF ( - ( - + ( COUNT ( * ) ) ), - - CASE - 25 WHEN + + 90 * + 3 - + 34 + - MIN ( - 36 ) THEN - 54 WHEN - 73 THEN 66 ELSE NULL END * + - 41 * 72 / - 30 + - 57 + - CAST ( NULL AS INTEGER ) ) ) ) * - 35 + - CASE 33 WHEN - 25 THEN 27 END - - AVG ( ALL 25 ) * - 86 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 40, - 55 ) AS col1
----
40

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

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

query II rowsort
SELECT DISTINCT - 99 AS col0, 61 AS col2
----
-99
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT 74 * - CAST( NULL AS SIGNED ) + - 82 + - ( 96 ) + + - ( MAX( 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT 74 * - CAST ( NULL AS INTEGER ) + - 82 + - ( 96 ) + + - ( MAX ( 2 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT + 9 * - 78 DIV + + COUNT( * )
----
-702

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 9 * - 78 / + + COUNT ( * )
----
-702

query I rowsort
SELECT - 18 + 92
----
74

query I rowsort
SELECT ALL - - ( - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL + 97 * CAST( + CASE + CASE + COUNT( * ) WHEN MIN( + 31 ) THEN + 87 END WHEN - SUM( 24 ) * + MAX( + 28 ) THEN + 72 END AS SIGNED ) * + 83 * - 64 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + 97 * CAST ( + CASE + CASE + COUNT ( * ) WHEN MIN ( + 31 ) THEN + 87 END WHEN - SUM ( 24 ) * + MAX ( + 28 ) THEN + 72 END AS INTEGER ) * + 83 * - 64 * + 75
----
NULL

query I rowsort
SELECT ALL + 86 - - 21 AS col1
----
107

query I rowsort
SELECT DISTINCT 63 * + 3 * - - 69 * - 34 * - - 81 + + 61 + 25
----
-35914828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT ALL - - 8 - ( + - 25 ) * - - COUNT( - ( + 92 ) ) DIV - 37 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - - 8 - ( + - 25 ) * - - COUNT ( - ( + 92 ) ) / - 37 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL CASE + 67 WHEN - - 1 * + 39 + - 63 + 5 + + 68 THEN NULL WHEN - + COUNT( * ) + + - 47 * - 83 + 42 THEN + - ( - COUNT( * ) ) ELSE CASE - 82 WHEN - + 33 THEN 50 + - + 32 - + 92 * - 85 WHEN - + 5 THEN - 95 + + 30 + 98 / SUM( DISTINCT ( 18 ) + - 77 * 95 ) ELSE 82 END END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL CASE + 67 WHEN - - 1 * + 39 + - 63 + 5 + + 68 THEN NULL WHEN - + COUNT ( * ) + + - 47 * - 83 + 42 THEN + - ( - COUNT ( * ) ) ELSE CASE - 82 WHEN - + 33 THEN 50 + - + 32 - + 92 * - 85 WHEN - + 5 THEN - 95 + + 30 + 98 / SUM ( DISTINCT ( 18 ) + - 77 * 95 ) ELSE 82 END END AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT MAX( ALL + 3 ) - - 73 * - 89
----
-6494

skipif mysql # not compatible
query I rowsort label-7577
SELECT MAX ( ALL + 3 ) - - 73 * - 89
----
-6494

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT 27 DIV - + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT 27 / - + 57 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7579
SELECT 17 DIV 41 col2, 47
----
0
47

skipif mysql # not compatible
query II rowsort label-7579
SELECT 17 / 41 col2, 47
----
0
47

query I rowsort
SELECT 23 - - ( - 36 ) * 0 * + - 74 AS col1
----
23

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

query I rowsort
SELECT ALL - 63 * 40
----
-2520

query I rowsort
SELECT COALESCE ( + 76, - 56 ) + 53 col1
----
129

query I rowsort
SELECT 58 - + 23
----
35

query I rowsort
SELECT 68 - + 9
----
59

query I rowsort
SELECT 42 + - 64 col1
----
-22

query I rowsort
SELECT DISTINCT - 18 + + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - - COUNT( - - 64 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - - COUNT ( - - 64 ) + + 76
----
77

query I rowsort
SELECT 85 + - 68
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-7590
SELECT DISTINCT - 16 - - + 29 AS col0, 98 DIV - 89 AS col2
----
13
-1

skipif mysql # not compatible
query II rowsort label-7590
SELECT DISTINCT - 16 - - + 29 AS col0, 98 / - 89 AS col2
----
13
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT ALL 96 * + - COUNT( * ) AS col1, - 13 AS col0
----
-96
-13

skipif mysql # not compatible
query II rowsort label-7591
SELECT ALL 96 * + - COUNT ( * ) AS col1, - 13 AS col0
----
-96
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT - 23 DIV + SUM( ( - 39 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 23 / + SUM ( ( - 39 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 54 * + + 82 * + - 43 * - - 79 * 13 + - MIN( + - 60 )
----
-195544848

skipif mysql # not compatible
query I rowsort label-7593
SELECT 54 * + + 82 * + - 43 * - - 79 * 13 + - MIN ( + - 60 )
----
-195544848

query I rowsort
SELECT ALL + + ( + + ( + 65 ) ) * - + 98
----
-6370

query I rowsort
SELECT - 7 + + 69 + + 96
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + - MIN( - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7596
SELECT + - MIN ( - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT + - 15 * COALESCE ( + 89, + + 31, - - 73 ) + - - CASE 65 WHEN + - COUNT( * ) THEN ( ( 42 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + - 15 * COALESCE ( + 89, + + 31, - - 73 ) + - - CASE 65 WHEN + - COUNT ( * ) THEN ( ( 42 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7598
SELECT 34 DIV - 50 AS col0, - 63 + - - 80 - - 83 AS col2
----
0
100

skipif mysql # not compatible
query II rowsort label-7598
SELECT 34 / - 50 AS col0, - 63 + - - 80 - - 83 AS col2
----
0
100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT COUNT( * ) DIV - COALESCE ( - + 9, + - 75 DIV 43 )
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT COUNT ( * ) / - COALESCE ( - + 9, + - 75 / 43 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7601
SELECT 57 * + + 2 AS col2, 77 DIV - NULLIF ( + + 40, + 54 ) AS col2
----
114
-1

skipif mysql # not compatible
query II rowsort label-7601
SELECT 57 * + + 2 AS col2, 77 / - NULLIF ( + + 40, + 54 ) AS col2
----
114
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL 65 DIV + + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL 65 / + + 93 col2
----
0

query I rowsort
SELECT - 81 * + 39 + + + 72 + - 81 AS col1
----
-3168

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

skipif mysql # not compatible
query I rowsort label-7604
SELECT + - CAST ( NULL AS INTEGER ) * 74 + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT NULLIF ( + ( 7 ), + + 61 ) - - + 45 + - - 37 * + + 42 * + - COUNT( * )
----
-1502

skipif mysql # not compatible
query I rowsort label-7605
SELECT NULLIF ( + ( 7 ), + + 61 ) - - + 45 + - - 37 * + + 42 * + - COUNT ( * )
----
-1502

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7606
SELECT ALL - 63 AS col1, - CAST( + - 30 AS SIGNED )
----
-63
30

skipif mysql # not compatible
query II rowsort label-7606
SELECT ALL - 63 AS col1, - CAST ( + - 30 AS INTEGER )
----
-63
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT COUNT( * ) * - - ( - 97 ) * - 62
----
6014

skipif mysql # not compatible
query I rowsort label-7607
SELECT COUNT ( * ) * - - ( - 97 ) * - 62
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT COALESCE ( - 41, - - 57 + + COUNT( * ) ) + + + 1 - + 82 - - COUNT( * ) * COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-7608
SELECT COALESCE ( - 41, - - 57 + + COUNT ( * ) ) + + + 1 - + 82 - - COUNT ( * ) * COUNT ( * )
----
-121

query I rowsort
SELECT ALL 46 + + - 13 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 24 + + + COUNT( * ) * 41
----
65

skipif mysql # not compatible
query I rowsort label-7610
SELECT 24 + + + COUNT ( * ) * 41
----
65

query I rowsort
SELECT ALL COALESCE ( 69, + 31 * + 62 + + 70 ) * - + 69 col2
----
-4761

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL COUNT( * ) + + NULLIF ( + 32, - 30 ) - - + 13
----
46

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL COUNT ( * ) + + NULLIF ( + 32, - 30 ) - - + 13
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT CAST( - 34 AS SIGNED ) + + 19 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT CAST ( - 34 AS INTEGER ) + + 19 AS col0
----
-15

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

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

query II rowsort
SELECT ALL 94 AS col1, 82
----
94
82

query I rowsort
SELECT 68 + - + 17 + - 42
----
9

query I rowsort
SELECT DISTINCT - 87 - + 18 * - 39 * - - 23 AS col1
----
16059

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

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

query I rowsort
SELECT ALL 11 - 9 * 9 * - - 62
----
-5011

query I rowsort
SELECT - 50 * - - 27 AS col2
----
-1350

query I rowsort
SELECT + 94 - - + 61 + - 32
----
123

query I rowsort
SELECT - ( + 21 ) * - 57
----
1197

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7623
SELECT ALL + 96 * 51 + 3 AS col1, CAST( NULL AS DECIMAL ) * - CASE + COUNT( * ) WHEN - 47 THEN - 11 + - ( - - COUNT( * ) ) ELSE NULL END - 23 + + NULLIF ( 70, 97 * - SUM( DISTINCT - 18 ) + - 38 ) AS col0
----
4899
NULL

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL + 96 * 51 + 3 AS col1, CAST ( NULL AS REAL ) * - CASE + COUNT ( * ) WHEN - 47 THEN - 11 + - ( - - COUNT ( * ) ) ELSE NULL END - 23 + + NULLIF ( 70, 97 * - SUM ( DISTINCT - 18 ) + - 38 ) AS col0
----
4899
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - ( + NULLIF ( - 84, COUNT( - 73 ) - 89 ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7624
SELECT - ( + NULLIF ( - 84, COUNT ( - 73 ) - 89 ) ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT + 25 * + 33 + ( + - 8 ) + + ( - 22 ) + + - COUNT( * ) + + - 58 AS col0, 24 + - 29 AS col0
----
736
-5

skipif mysql # not compatible
query II rowsort label-7625
SELECT + 25 * + 33 + ( + - 8 ) + + ( - 22 ) + + - COUNT ( * ) + + - 58 AS col0, 24 + - 29 AS col0
----
736
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + - CASE MAX( ALL + 32 ) WHEN - 80 THEN + 22 * 3 - - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT + - CASE MAX ( ALL + 32 ) WHEN - 80 THEN + 22 * 3 - - 61 END
----
NULL

query I rowsort
SELECT - - 41 * 1 + - + 59
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - SUM( 96 ) * + 36
----
-3456

skipif mysql # not compatible
query I rowsort label-7628
SELECT - SUM ( 96 ) * + 36
----
-3456

query I rowsort
SELECT - ( - 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT - MAX( DISTINCT - - ( + 34 ) ) DIV + MAX( DISTINCT + - ( + 76 ) ) + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7630
SELECT - MAX ( DISTINCT - - ( + 34 ) ) / + MAX ( DISTINCT + - ( + 76 ) ) + + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL - - 62 * SUM( + 96 ) AS col1
----
5952

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - - 62 * SUM ( + 96 ) AS col1
----
5952

query II rowsort
SELECT - + 9 + 9 * - 82, + 27 AS col0
----
-747
27

query I rowsort
SELECT NULLIF ( + + 29, + 93 * - 58 + 89 ) col0
----
29

query I rowsort
SELECT ALL + 8 * 92 * - 16 * - + 65 col0
----
765440

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT - COUNT( * ) * - AVG ( - 69 ) + CASE + 99 WHEN - 91 THEN + - 35 * - 12 + + - COUNT( * ) - - 2 WHEN + 42 / - 43 - + 56 + + 19 / - 53 - - - 54 THEN + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - COUNT ( * ) * - AVG ( - 69 ) + CASE + 99 WHEN - 91 THEN + - 35 * - 12 + + - COUNT ( * ) - - 2 WHEN + 42 / - 43 - + 56 + + 19 / - 53 - - - 54 THEN + 17 END
----
NULL

query I rowsort
SELECT - 17 * + 60 AS col1
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT ALL 29 DIV 6 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL 29 / 6 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT ALL - 16 * - 55 DIV COUNT( * ) + + 54 - - 47 AS col0
----
981

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - 16 * - 55 / COUNT ( * ) + + 54 - - 47 AS col0
----
981

query I rowsort
SELECT - 22 - - - 69
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - 98 + - + COUNT( * ) * ( 39 ) - + 65 AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-7641
SELECT - 98 + - + COUNT ( * ) * ( 39 ) - + 65 AS col0
----
-202

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + ( + 75 ) * - ( + - MAX( + - 44 ) ) AS col1
----
-3300

skipif mysql # not compatible
query I rowsort label-7643
SELECT + ( + 75 ) * - ( + - MAX ( + - 44 ) ) AS col1
----
-3300

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

query I rowsort
SELECT ALL 63 - - - 15 AS col0
----
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL MAX( + NULLIF ( + - COALESCE ( 38, 25 + 22 - + 83 ), + - 97 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL MAX ( + NULLIF ( + - COALESCE ( 38, 25 + 22 - + 83 ), + - 97 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-7649
SELECT + COUNT ( * ) + + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL 27 - - COUNT( - 78 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL 27 - - COUNT ( - 78 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - MAX( + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7651
SELECT - MAX ( + 59 ) AS col1
----
-59

query II rowsort
SELECT 81 AS col0, ( + 59 ) AS col1
----
81
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + - 36 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - 36 + COUNT ( * )
----
-35

query I rowsort
SELECT + - 31 * - - ( 45 )
----
-1395

query II rowsort
SELECT DISTINCT + 51, 96 AS col2
----
51
96

query I rowsort
SELECT + - 86 + 81
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - - MAX( - 64 ) - + - 74 + + 32 * 42
----
1354

skipif mysql # not compatible
query I rowsort label-7657
SELECT - - MAX ( - 64 ) - + - 74 + + 32 * 42
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT MIN( ALL - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT MIN ( ALL - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL - 69 col1, COUNT( * ) * 29 AS col0
----
-69
29

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL - 69 col1, COUNT ( * ) * 29 AS col0
----
-69
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT - 42 * - - SUM( DISTINCT 70 )
----
-2940

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - 42 * - - SUM ( DISTINCT 70 )
----
-2940

query I rowsort
SELECT DISTINCT + NULLIF ( 58, + 52 )
----
58

query I rowsort
SELECT ALL - - 14 * + + 17
----
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT + - 4 * + MAX( + 11 ) * + 93 DIV + + COUNT( 2 ) + - 98 + - 15 * + - 51
----
-3425

skipif mysql # not compatible
query I rowsort label-7663
SELECT + - 4 * + MAX ( + 11 ) * + 93 / + + COUNT ( 2 ) + - 98 + - 15 * + - 51
----
-3425

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7665
SELECT - + ( + 67 ) * ( - COALESCE ( - + 57, - ( - CAST( - 81 AS SIGNED ) ) + - - 65 DIV - + 10 ) ) AS col2
----
-3819

skipif mysql # not compatible
query I rowsort label-7665
SELECT - + ( + 67 ) * ( - COALESCE ( - + 57, - ( - CAST ( - 81 AS INTEGER ) ) + - - 65 / - + 10 ) ) AS col2
----
-3819

query III rowsort
SELECT + 93 AS col1, - 39 col1, + 87 * - ( - 59 ) AS col2
----
93
-39
5133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT 43 DIV COUNT( ALL 36 ) + + 48
----
91

skipif mysql # not compatible
query I rowsort label-7667
SELECT 43 / COUNT ( ALL 36 ) + + 48
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT DISTINCT + NULLIF ( COUNT( * ), + 55 ) DIV - + SUM( ALL + 97 ) + - ( - - SUM( - + COALESCE ( - 4, - 61 ) ) ) * - ( + 62 ) * 30 AS col1
----
7440

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 55 ) / - + SUM ( ALL + 97 ) + - ( - - SUM ( - + COALESCE ( - 4, - 61 ) ) ) * - ( + 62 ) * 30 AS col1
----
7440

query II rowsort
SELECT - 35 + - 49, + ( - 86 ) * 78 + + + 99 AS col1
----
-84
-6609

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

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 46 + + COUNT ( * ) * 5 AS col0
----
51

query I rowsort
SELECT 4 * - + ( 30 ) + - 58
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - 28 - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7672
SELECT - 28 - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT - COUNT( + 90 ) * - 17 + + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7673
SELECT - COUNT ( + 90 ) * - 17 + + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT - NULLIF ( + ( 32 ), 83 ) + + 0 + + 48 + + - 7 * - 88
----
632

query I rowsort
SELECT ALL - 4 - + 88 + + 65 * 97 AS col1
----
6213

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

skipif mysql # not compatible
query I rowsort label-7676
SELECT 39 * + + COUNT ( * ) / + 44 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT + CAST( + 77 AS SIGNED ) * - ( 95 )
----
-7315

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) * - ( 95 )
----
-7315

query I rowsort
SELECT 68 + - + 67 AS col0
----
1

query I rowsort
SELECT 38 * 56
----
2128

query I rowsort
SELECT 42 * + + 37 AS col2
----
1554

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT ALL + 69 DIV - 1
----
-69

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + 69 / - 1
----
-69

query I rowsort
SELECT 60 + + 4 * + 27
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - SUM( DISTINCT + 35 ) * 79 * + 89
----
-246085

skipif mysql # not compatible
query I rowsort label-7684
SELECT - SUM ( DISTINCT + 35 ) * 79 * + 89
----
-246085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7685
SELECT DISTINCT CASE + - CASE - + 47 WHEN + COUNT( * ) * + + CAST( NULL AS SIGNED ) + + + 3 * - - COALESCE ( + 64, CASE + 11 WHEN - - 5 + - - CAST( + MIN( ALL + 13 ) AS SIGNED ) THEN - 49 + - 77 + SUM( - CAST( NULL AS SIGNED ) ) WHEN + + ( + COUNT( * ) ) THEN + 27 WHEN + - NULLIF ( - 80, + + ( - - COUNT( + 68 ) ) ) THEN NULL END ) + + 98 * + COALESCE ( - CAST( NULL AS DECIMAL ), - COUNT( * ) * - 85 ) THEN - 88 ELSE NULL END WHEN - 46 + + 74 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 48 * 77 + + 61 END
----
3757

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT CASE + - CASE - + 47 WHEN + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + + 3 * - - COALESCE ( + 64, CASE + 11 WHEN - - 5 + - - CAST ( + MIN ( ALL + 13 ) AS INTEGER ) THEN - 49 + - 77 + SUM ( - CAST ( NULL AS INTEGER ) ) WHEN + + ( + COUNT ( * ) ) THEN + 27 WHEN + - NULLIF ( - 80, + + ( - - COUNT ( + 68 ) ) ) THEN NULL END ) + + 98 * + COALESCE ( - CAST ( NULL AS REAL ), - COUNT ( * ) * - 85 ) THEN - 88 ELSE NULL END WHEN - 46 + + 74 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 48 * 77 + + 61 END
----
3757

query I rowsort
SELECT DISTINCT - 2 * - 6 col2
----
12

query I rowsort
SELECT + 35 + + + 40 + - 10 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL 18 + + COALESCE ( + COUNT( * ), + 57 + SUM( ALL 25 ) ) - 32 * - 82 - + 31 - + 70
----
2542

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL 18 + + COALESCE ( + COUNT ( * ), + 57 + SUM ( ALL 25 ) ) - 32 * - 82 - + 31 - + 70
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + COUNT( ALL + + 65 ) - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-7689
SELECT + COUNT ( ALL + + 65 ) - + 45
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT CAST( + - 96 AS SIGNED ) * - - 78 - + - 97 + + + 96 + + 12 * + 10
----
-7175

skipif mysql # not compatible
query I rowsort label-7690
SELECT CAST ( + - 96 AS INTEGER ) * - - 78 - + - 97 + + + 96 + + 12 * + 10
----
-7175

query II rowsort
SELECT DISTINCT + 86 + 79 col2, ( - ( - + 72 ) ) + - 53
----
165
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7692
SELECT ALL - - MAX( - 5 ), - 17 * - CAST( NULL AS SIGNED ) * + - COUNT( * ) * 54 * - 15 AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-7692
SELECT ALL - - MAX ( - 5 ), - 17 * - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * 54 * - 15 AS col0
----
-5
NULL

query I rowsort
SELECT ALL - COALESCE ( - - 31, + 52 ) col1
----
-31

query I rowsort
SELECT DISTINCT 2 + 40 - 18 * - 19
----
384

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT + 26 + - COUNT( * ) / - 40 - - 54 * - 2 + - + CASE 17 WHEN 18 / + 72 - - 15 / - 93 + - NULLIF ( - 21, + + 89 + + + ( - COUNT( DISTINCT - + 21 ) ) ) + - - 60 + MAX( ALL - 55 ) + - - 32 THEN + 25 * + SUM( DISTINCT - 85 ) WHEN - AVG ( DISTINCT + 65 ) THEN + - 60 + - 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + 26 + - COUNT ( * ) / - 40 - - 54 * - 2 + - + CASE 17 WHEN 18 / + 72 - - 15 / - 93 + - NULLIF ( - 21, + + 89 + + + ( - COUNT ( DISTINCT - + 21 ) ) ) + - - 60 + MAX ( ALL - 55 ) + - - 32 THEN + 25 * + SUM ( DISTINCT - 85 ) WHEN - AVG ( DISTINCT + 65 ) THEN + - 60 + - 21 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT ALL - 62, + COUNT( ALL 13 ) AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-7698
SELECT ALL - 62, + COUNT ( ALL 13 ) AS col2
----
-62
1

query II rowsort
SELECT DISTINCT + 90 * ( + 15 ) col0, - 99 AS col2
----
1350
-99

query I rowsort
SELECT ALL NULLIF ( 44, - 83 * 55 ) + + 69 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT DISTINCT - 75 AS col1, 53 * + COUNT( * ) AS col1
----
-75
53

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT - 75 AS col1, 53 * + COUNT ( * ) AS col1
----
-75
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7702
SELECT ALL NULLIF ( 99, + CAST( + + 63 AS DECIMAL ) - + ( + 1 ) ) * + - 18 + - - COUNT( * ) + - NULLIF ( 85, 22 + + 55 - - 59 ) AS col0
----
-1866

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL NULLIF ( 99, + CAST ( + + 63 AS REAL ) - + ( + 1 ) ) * + - 18 + - - COUNT ( * ) + - NULLIF ( 85, 22 + + 55 - - 59 ) AS col0
----
-1866

query II rowsort
SELECT 6, 27 AS col1
----
6
27

query I rowsort
SELECT ALL 93 * 32 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT - MIN( DISTINCT 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - MIN ( DISTINCT 69 ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT 11 - + CASE + - 83 WHEN + - 12 * - 21 THEN + 60 ELSE - 64 END + + 21 + + COUNT( * ) * - 50 * + - CAST( 21 AS SIGNED )
----
1146

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT 11 - + CASE + - 83 WHEN + - 12 * - 21 THEN + 60 ELSE - 64 END + + 21 + + COUNT ( * ) * - 50 * + - CAST ( 21 AS INTEGER )
----
1146

query I rowsort
SELECT ALL + 72 - 12 AS col1
----
60

query I rowsort
SELECT ALL 57 * 13
----
741

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

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

query II rowsort
SELECT 1 AS col0, - 86
----
1
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL CAST( 84 AS SIGNED ) - - 29 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL CAST ( 84 AS INTEGER ) - - 29 AS col2
----
113

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT 73 * 14 - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT 73 * 14 - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 87 * - 95 AS col0
----
-8265

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT 58 + + 23 * + + COUNT( - 84 ) * - 47
----
-1023

skipif mysql # not compatible
query I rowsort label-7715
SELECT 58 + + 23 * + + COUNT ( - 84 ) * - 47
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL + 74 * SUM( ALL - + 97 )
----
-7178

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + 74 * SUM ( ALL - + 97 )
----
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( DISTINCT - + 44 ) * - - 23
----
23

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( DISTINCT - + 44 ) * - - 23
----
23

query I rowsort
SELECT ALL + 64 + + - 61 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT ALL - + ( - ( - + ( - 63 ) ) ) * - CAST( NULL AS SIGNED ) * + - 79 / - + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - + ( - ( - + ( - 63 ) ) ) * - CAST ( NULL AS INTEGER ) * + - 79 / - + 36 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + + 30 + - 22 + + 82 * + 36
----
2960

query I rowsort
SELECT ALL - + 68 + + 47
----
-21

query I rowsort
SELECT 34 + + 80
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - CASE + 53 WHEN 66 - - AVG ( ( - 74 ) ) THEN NULL ELSE - COUNT( ALL - 61 ) END + + 25
----
26

skipif mysql # not compatible
query I rowsort label-7724
SELECT - CASE + 53 WHEN 66 - - AVG ( ( - 74 ) ) THEN NULL ELSE - COUNT ( ALL - 61 ) END + + 25
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT 24 - - CAST( 34 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7725
SELECT 24 - - CAST ( 34 AS INTEGER )
----
58

query I rowsort
SELECT ALL - 57 + + 25
----
-32

query II rowsort
SELECT DISTINCT 44, + 70 AS col0
----
44
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ALL + 41 + - CAST( 72 AS SIGNED ) AS col2, - COUNT( * ) + - 0
----
-31
-1

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL + 41 + - CAST ( 72 AS INTEGER ) AS col2, - COUNT ( * ) + - 0
----
-31
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT - - 26 + + CAST( - 58 AS SIGNED ) + + 7 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - - 26 + + CAST ( - 58 AS INTEGER ) + + 7 AS col1
----
-25

query I rowsort
SELECT ALL - 8 + + 38
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7731
SELECT ALL + + 76 * - COUNT( * ) + - 94 + - CAST( + 82 AS SIGNED ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + + 76 * - COUNT ( * ) + - 94 + - CAST ( + 82 AS INTEGER ) AS col0
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT 13 AS col2, COUNT( * ) * + - MIN( + 65 ) AS col0
----
13
-65

skipif mysql # not compatible
query II rowsort label-7732
SELECT 13 AS col2, COUNT ( * ) * + - MIN ( + 65 ) AS col0
----
13
-65

query I rowsort
SELECT + 96 * + + NULLIF ( + 85, - ( 9 ) ) + 59 AS col1
----
8219

query I rowsort
SELECT 40 * + 60 + + 13 col2
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT 17 * + MAX( DISTINCT - 12 ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-7735
SELECT 17 * + MAX ( DISTINCT - 12 ) AS col0
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT CASE + 38 WHEN + - COALESCE ( 2, - COUNT( * ) + - + 40 * + - COUNT( * ) ) THEN COUNT( * ) * 20 + - 7 - - ( + ( - - 75 ) ) END * COUNT( * ) * + 84 / + + ( - 92 ) col2, 26 + + - 27 + - + NULLIF ( + 3, + 94 - - 51 ) + - 35 AS col0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-7736
SELECT CASE + 38 WHEN + - COALESCE ( 2, - COUNT ( * ) + - + 40 * + - COUNT ( * ) ) THEN COUNT ( * ) * 20 + - 7 - - ( + ( - - 75 ) ) END * COUNT ( * ) * + 84 / + + ( - 92 ) col2, 26 + + - 27 + - + NULLIF ( + 3, + 94 - - 51 ) + - 35 AS col0
----
NULL
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT COUNT( * ) + - 35 DIV - 51 - + - 91 + - - 22 + + 77 * - 12 AS col2
----
-810

skipif mysql # not compatible
query I rowsort label-7737
SELECT COUNT ( * ) + - 35 / - 51 - + - 91 + - - 22 + + 77 * - 12 AS col2
----
-810

query I rowsort
SELECT DISTINCT - 18 * 62 - + ( + 76 ) AS col1
----
-1192

query I rowsort
SELECT + 76 + - 13
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7740
SELECT + MIN( DISTINCT + 5 ) * - ( + + CAST( + - 22 AS SIGNED ) ) * - 90 AS col0
----
-9900

skipif mysql # not compatible
query I rowsort label-7740
SELECT + MIN ( DISTINCT + 5 ) * - ( + + CAST ( + - 22 AS INTEGER ) ) * - 90 AS col0
----
-9900

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7742
SELECT ALL CAST( NULL AS DECIMAL ) / - 71 AS col1, - 41
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL CAST ( NULL AS REAL ) / - 71 AS col1, - 41
----
NULL
-41

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

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

query I rowsort
SELECT + 92 * - 94
----
-8648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT + MIN( - CAST( - + 52 AS SIGNED ) ) + 41 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7745
SELECT + MIN ( - CAST ( - + 52 AS INTEGER ) ) + 41 AS col0
----
93

query I rowsort
SELECT DISTINCT 62 * + 77 * + 38
----
181412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7747
SELECT - CAST( - + CAST( 52 AS SIGNED ) AS SIGNED ) DIV - 36 + 14 - + ( - COUNT( * ) ), 68 * MIN( 41 ) - - 19 DIV 82 AS col2
----
14
2788

skipif mysql # not compatible
query II rowsort label-7747
SELECT - CAST ( - + CAST ( 52 AS INTEGER ) AS INTEGER ) / - 36 + 14 - + ( - COUNT ( * ) ), 68 * MIN ( 41 ) - - 19 / 82 AS col2
----
14
2788

query I rowsort
SELECT + ( 87 ) * ( - - 13 )
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + MIN( ALL - - 93 ) * - MAX( - 96 ) col1
----
8928

skipif mysql # not compatible
query I rowsort label-7749
SELECT + MIN ( ALL - - 93 ) * - MAX ( - 96 ) col1
----
8928

query I rowsort
SELECT ALL 68 + + 32
----
100

query I rowsort
SELECT - COALESCE ( + + 82, 68 * + 41 - + COALESCE ( - 31, 31 - + ( - 91 ) ) + - 37 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL 44 + - CAST( - + ( - + MAX( + + CAST( 50 AS SIGNED ) ) ) AS SIGNED ) * + 86 AS col0
----
-4256

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL 44 + - CAST ( - + ( - + MAX ( + + CAST ( 50 AS INTEGER ) ) ) AS INTEGER ) * + 86 AS col0
----
-4256

query I rowsort
SELECT ALL - - 8 + 42 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7754
SELECT + + ( + 72 ) + + CAST( + 3 AS SIGNED ) * - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7754
SELECT + + ( + 72 ) + + CAST ( + 3 AS INTEGER ) * - + COUNT ( * )
----
69

query I rowsort
SELECT ALL + 13 + - 49 AS col2
----
-36

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

query I rowsort
SELECT - 21 * - 84
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7758
SELECT ALL + + COALESCE ( + 74, 1 DIV 73, 37 + - 93 ) + - 82, MIN( DISTINCT 49 ) * 42 col2
----
-8
2058

skipif mysql # not compatible
query II rowsort label-7758
SELECT ALL + + COALESCE ( + 74, 1 / 73, 37 + - 93 ) + - 82, MIN ( DISTINCT 49 ) * 42 col2
----
-8
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + 61 * - COALESCE ( - + MIN( DISTINCT + + 41 ), - - 1 ) AS col0
----
2501

skipif mysql # not compatible
query I rowsort label-7759
SELECT + 61 * - COALESCE ( - + MIN ( DISTINCT + + 41 ), - - 1 ) AS col0
----
2501

query I rowsort
SELECT DISTINCT + 20 + + 17
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7761
SELECT - - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1, 31 AS col0
----
0
31

skipif mysql # not compatible
query II rowsort label-7761
SELECT - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1, 31 AS col0
----
0
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT - + 81 * + 20 AS col1, - MIN( 18 ) AS col0
----
-1620
-18

skipif mysql # not compatible
query II rowsort label-7762
SELECT - + 81 * + 20 AS col1, - MIN ( 18 ) AS col0
----
-1620
-18

query I rowsort
SELECT DISTINCT + 70 * - 78
----
-5460

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

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL CAST ( + 72 AS INTEGER ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT - 24 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT - 24 / 80
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - 33 + + 79 - + MIN( DISTINCT - 53 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7767
SELECT - 33 + + 79 - + MIN ( DISTINCT - 53 ) AS col0
----
99

query I rowsort
SELECT - 0 * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - 58 + 89 + + + ( - - CASE + + 9 WHEN + + 80 THEN NULL WHEN 68 THEN 47 END ) * + 77 * 61 * + 42 * 57 * + COALESCE ( + - COUNT( * ), - + SUM( + 82 ) ) - - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT - 58 + 89 + + + ( - - CASE + + 9 WHEN + + 80 THEN NULL WHEN 68 THEN 47 END ) * + 77 * 61 * + 42 * 57 * + COALESCE ( + - COUNT ( * ), - + SUM ( + 82 ) ) - - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + MIN( DISTINCT + 19 ) * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7770
SELECT + MIN ( DISTINCT + 19 ) * COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL + COUNT( 62 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + COUNT ( 62 ) col1
----
1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7774
SELECT ALL + CASE - - 51 WHEN - 9 THEN NULL WHEN - 50 THEN - 43 WHEN + CAST( CAST( + ( + 76 ) AS DECIMAL ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + CASE - - 51 WHEN - 9 THEN NULL WHEN - 50 THEN - 43 WHEN + CAST ( CAST ( + ( + 76 ) AS REAL ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col1, - 80 AS col0
----
26
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7776
SELECT 91 DIV + 77 - CAST( - 23 AS SIGNED ) DIV + 92, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7776
SELECT 91 / + 77 - CAST ( - 23 AS INTEGER ) / + 92, + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT DISTINCT + 0 * + + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7778
SELECT - MIN( + - 73 ) * 42 + + + CAST( + + 5 AS SIGNED ) - - 66 DIV - ( COALESCE ( + + COUNT( * ), COUNT( * ) ) ) + - 22 col1
----
2983

skipif mysql # not compatible
query I rowsort label-7778
SELECT - MIN ( + - 73 ) * 42 + + + CAST ( + + 5 AS INTEGER ) - - 66 / - ( COALESCE ( + + COUNT ( * ), COUNT ( * ) ) ) + - 22 col1
----
2983

query I rowsort
SELECT ALL + 82 * - 82
----
-6724

query I rowsort
SELECT ( + - 29 ) AS col1
----
-29

query I rowsort
SELECT DISTINCT 21 * + ( 5 )
----
105

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

query I rowsort
SELECT - ( + 63 ) * - 18 AS col0
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-7784
SELECT ALL CASE - 27 WHEN - 51 / 29 + + NULLIF ( + 77, + + 36 + + - 29 * - 73 / - 50 ) THEN + SUM( 73 ) / + 35 END * + + 12 + + 95 AS col0, + ( - + 5 )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-7784
SELECT ALL CASE - 27 WHEN - 51 / 29 + + NULLIF ( + 77, + + 36 + + - 29 * - 73 / - 50 ) THEN + SUM ( 73 ) / + 35 END * + + 12 + + 95 AS col0, + ( - + 5 )
----
NULL
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT DISTINCT 64 * - 86 + + COUNT( * ) + - + 28 - 85 * - - ( - COUNT( * ) ) + 82 AS col0, + ( 56 )
----
-5364
56

skipif mysql # not compatible
query II rowsort label-7785
SELECT DISTINCT 64 * - 86 + + COUNT ( * ) + - + 28 - 85 * - - ( - COUNT ( * ) ) + 82 AS col0, + ( 56 )
----
-5364
56

query II rowsort
SELECT CASE - + 12 WHEN - 20 THEN NULL ELSE COALESCE ( 93, 25, - ( + 64 ) ) END AS col2, 90 + 13
----
93
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL COUNT( * ) * + 88 + 82 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL COUNT ( * ) * + 88 + 82 AS col2
----
170

query II rowsort
SELECT ALL + COALESCE ( + 86, - 49 ), + 44 AS col0
----
86
44

query I rowsort
SELECT ALL - 26 * + - 12 AS col0
----
312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT 71 * + - ( NULLIF ( 23, 65 ) ) - - 10 * - 67 / + CASE - CAST( NULL AS SIGNED ) WHEN + + 70 THEN COUNT( * ) + - + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT 71 * + - ( NULLIF ( 23, 65 ) ) - - 10 * - 67 / + CASE - CAST ( NULL AS INTEGER ) WHEN + + 70 THEN COUNT ( * ) + - + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - CASE + + 95 WHEN - + 61 THEN + 72 / - + 11 - - 77 + - MIN( DISTINCT + - 40 ) + - COUNT( * ) WHEN COUNT( * ) THEN + 50 END * 65 * 65 + + 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - CASE + + 95 WHEN - + 61 THEN + 72 / - + 11 - - 77 + - MIN ( DISTINCT + - 40 ) + - COUNT ( * ) WHEN COUNT ( * ) THEN + 50 END * 65 * 65 + + 51 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + + 1 + - + CASE + 65 WHEN - NULLIF ( ( - - 54 ), COUNT( - 16 ) / - 74 - SUM( + 28 ) ) THEN NULL ELSE + COALESCE ( - - 4, - + 67, + NULLIF ( - - 6, - 35 ) ) * + 52 END * 18 AS col0
----
-3743

skipif mysql # not compatible
query I rowsort label-7793
SELECT + + 1 + - + CASE + 65 WHEN - NULLIF ( ( - - 54 ), COUNT ( - 16 ) / - 74 - SUM ( + 28 ) ) THEN NULL ELSE + COALESCE ( - - 4, - + 67, + NULLIF ( - - 6, - 35 ) ) * + 52 END * 18 AS col0
----
-3743

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

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

query I rowsort
SELECT ALL 98 * + 70
----
6860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7796
SELECT NULLIF ( - - 95, 10 ) * + 86 * 43 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT NULLIF ( - - 95, 10 ) * + 86 * 43 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 97 * + - 37 + + - 6
----
-3595

query I rowsort
SELECT + + 52 + - - 69 col0
----
121

query I rowsort
SELECT ALL + + 1 - + + 58
----
-57

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

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

query I rowsort
SELECT ALL 64 * - 72
----
-4608

query II rowsort
SELECT 68 AS col1, 63 * 57 + - 70 + 92 + + + 29 * 80 + - 6 * - 15
----
68
6023

query I rowsort
SELECT DISTINCT ( - 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + - 75 * 16 * + COUNT( * ) AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-7804
SELECT + - 75 * 16 * + COUNT ( * ) AS col0
----
-1200

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

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

query I rowsort
SELECT + 88 + + 81 col2
----
169

query I rowsort
SELECT ALL - 14 * 56
----
-784

query I rowsort
SELECT 33 * - 11 * + 47 * + - 49
----
835989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT ALL 9 AS col0, + CAST( NULL AS SIGNED ) - 68 col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7809
SELECT ALL 9 AS col0, + CAST ( NULL AS INTEGER ) - 68 col2
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT DISTINCT 0 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 0 / + 71
----
0

query I rowsort
SELECT ALL 34 * - + 47 * + - 12
----
19176

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT DISTINCT 70 AS col0, COUNT( 48 )
----
70
1

skipif mysql # not compatible
query II rowsort label-7812
SELECT DISTINCT 70 AS col0, COUNT ( 48 )
----
70
1

query I rowsort
SELECT 61 + 12 AS col0
----
73

query I rowsort
SELECT DISTINCT - 68 * - 92
----
6256

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT ALL + 14 + - 24 + - 24 * - 45 * ( - + NULLIF ( - 8, 13 + - 97 ) ) * - - 41 * + COUNT( * ), + 67 AS col1
----
354230
67

skipif mysql # not compatible
query II rowsort label-7815
SELECT ALL + 14 + - 24 + - 24 * - 45 * ( - + NULLIF ( - 8, 13 + - 97 ) ) * - - 41 * + COUNT ( * ), + 67 AS col1
----
354230
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT 14 DIV - 3 + + 90
----
86

skipif mysql # not compatible
query I rowsort label-7816
SELECT 14 / - 3 + + 90
----
86

query II rowsort
SELECT + 87 AS col0, ( - ( 3 ) ) AS col0
----
87
-3

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

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

query I rowsort
SELECT ALL - 51 + + 50
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT + 95 AS col0, + COALESCE ( 19, - + 90 * COUNT( * ) * - COUNT( * ) + + 16, + COUNT( * ) ) AS col0
----
95
19

skipif mysql # not compatible
query II rowsort label-7820
SELECT + 95 AS col0, + COALESCE ( 19, - + 90 * COUNT ( * ) * - COUNT ( * ) + + 16, + COUNT ( * ) ) AS col0
----
95
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL + 51 + CAST( NULL AS SIGNED ) * - ( + 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + 51 + CAST ( NULL AS INTEGER ) * - ( + 5 ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 68 * 89
----
6052

query I rowsort
SELECT DISTINCT - 70 + - ( + + 84 )
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7825
SELECT + 5 AS col1, ( + + COALESCE ( + 16, - + 11 * - 93 + - 79 ) ) DIV - - 63 * - COUNT( * ) + 5 AS col1
----
5
5

skipif mysql # not compatible
query II rowsort label-7825
SELECT + 5 AS col1, ( + + COALESCE ( + 16, - + 11 * - 93 + - 79 ) ) / - - 63 * - COUNT ( * ) + 5 AS col1
----
5
5

query I rowsort
SELECT 2 + - 19 col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT 94 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT 94 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - - 69 AS col2
----
69

query II rowsort
SELECT + 23 AS col1, 21 AS col0
----
23
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT 25 * + CASE + + NULLIF ( + NULLIF ( - - 82, + 26 * + 51 + + + 14 - + + COALESCE ( + + 18, + COUNT( * ) ) * - ( NULLIF ( - - ( + - COUNT( * ) ), 43 ) ) ), + - COUNT( * ) + 60 + - COUNT( * ) ) WHEN - 93 THEN + 72 WHEN 18 THEN NULL END / 33 * COUNT( * ) / + CAST( + - COUNT( * ) AS SIGNED ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT 25 * + CASE + + NULLIF ( + NULLIF ( - - 82, + 26 * + 51 + + + 14 - + + COALESCE ( + + 18, + COUNT ( * ) ) * - ( NULLIF ( - - ( + - COUNT ( * ) ), 43 ) ) ), + - COUNT ( * ) + 60 + - COUNT ( * ) ) WHEN - 93 THEN + 72 WHEN 18 THEN NULL END / 33 * COUNT ( * ) / + CAST ( + - COUNT ( * ) AS INTEGER ) + + 37 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL - + CASE + 18 WHEN CAST( - COALESCE ( - COALESCE ( 25, 52 * ( 53 ) ), 5 + - SUM( - + CAST( NULL AS SIGNED ) ) + + - 87 - 62 * - 17 * - + ( COUNT( * ) ), 44 ) AS SIGNED ) * + 11 / + + 24 THEN - - COALESCE ( - - 77, + - 48 ) + 48 * - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - + CASE + 18 WHEN CAST ( - COALESCE ( - COALESCE ( 25, 52 * ( 53 ) ), 5 + - SUM ( - + CAST ( NULL AS INTEGER ) ) + + - 87 - 62 * - 17 * - + ( COUNT ( * ) ), 44 ) AS INTEGER ) * + 11 / + + 24 THEN - - COALESCE ( - - 77, + - 48 ) + 48 * - + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT 9 AS col1, 14
----
9
14

query II rowsort
SELECT + 23 col2, + 10 AS col1
----
23
10

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

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL COUNT ( * ) / + COUNT ( * ) + - 20
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT + 79 DIV + COUNT( 12 )
----
79

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 79 / + COUNT ( 12 )
----
79

query II rowsort
SELECT ALL 68 AS col1, 28 AS col2
----
68
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT DISTINCT + 53 DIV - COUNT( * ) + 65
----
12

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + 53 / - COUNT ( * ) + 65
----
12

query II rowsort
SELECT ALL 30, 12 * + 5 AS col2
----
30
60

query I rowsort
SELECT + 36 * - 96 + + 55 * + 81 AS col1
----
999

onlyif mysql # aggregate syntax: 
query III rowsort label-7841
SELECT 64 AS col0, COUNT( * ) AS col2, 59 + - 15 AS col0
----
64
1
44

skipif mysql # not compatible
query III rowsort label-7841
SELECT 64 AS col0, COUNT ( * ) AS col2, 59 + - 15 AS col0
----
64
1
44

query I rowsort
SELECT 32 * 4 + - - 52 + + + ( + 50 ) + - 86 AS col1
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT - + COUNT( * ) AS col2, + 78 * - 29
----
-1
-2262

skipif mysql # not compatible
query II rowsort label-7843
SELECT - + COUNT ( * ) AS col2, + 78 * - 29
----
-1
-2262

query I rowsort
SELECT ALL + 60 * - + 31 AS col1
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT - 42 + + 93 * - MAX( CAST( NULL AS SIGNED ) ) - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 42 + + 93 * - MAX ( CAST ( NULL AS INTEGER ) ) - 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT 11 DIV - 50 + + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7846
SELECT 11 / - 50 + + 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - SUM( DISTINCT + + 16 ) * + ( + - 87 ) * + - 76
----
-105792

skipif mysql # not compatible
query I rowsort label-7847
SELECT - SUM ( DISTINCT + + 16 ) * + ( + - 87 ) * + - 76
----
-105792

query II rowsort
SELECT ALL 59 * + 51, + 71 AS col2
----
3009
71

query I rowsort
SELECT DISTINCT ( + - 44 ) + + 64
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT 68 * - CAST( NULL AS SIGNED ) / - COUNT( * ) / - CAST( NULL AS SIGNED ) * - 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT 68 * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 35 col1
----
NULL

query II rowsort
SELECT ALL 87 + 73, 68 - - + 57 AS col0
----
160
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT 51 - + COUNT( ALL - 98 )
----
50

skipif mysql # not compatible
query I rowsort label-7852
SELECT 51 - + COUNT ( ALL - 98 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT 58 * - + SUM( + 43 ) * + 32
----
-79808

skipif mysql # not compatible
query I rowsort label-7853
SELECT 58 * - + SUM ( + 43 ) * + 32
----
-79808

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

skipif mysql # not compatible
query I rowsort label-7854
SELECT + SUM ( DISTINCT + + CAST ( - + ( 87 ) AS INTEGER ) )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT ALL ( - - 62 ) * 18 + + + ( - - 41 ) AS col1, - COUNT( * ) * SUM( - 80 ) AS col0
----
1157
80

skipif mysql # not compatible
query II rowsort label-7855
SELECT ALL ( - - 62 ) * 18 + + + ( - - 41 ) AS col1, - COUNT ( * ) * SUM ( - 80 ) AS col0
----
1157
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT MIN( DISTINCT - 30 ) * + 30 * + 81 - - COALESCE ( + CAST( - 7 AS SIGNED ), - 33 ) + + + 83
----
-72824

skipif mysql # not compatible
query I rowsort label-7856
SELECT MIN ( DISTINCT - 30 ) * + 30 * + 81 - - COALESCE ( + CAST ( - 7 AS INTEGER ), - 33 ) + + + 83
----
-72824

query II rowsort
SELECT ALL - ( + + 47 ) AS col1, 98 + + 65 AS col0
----
-47
163

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

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

query I rowsort
SELECT ALL 5 * - 0 + 71 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT CASE + + 65 WHEN + 18 * 29 * 59 * - - ( - 96 ) THEN + 99 WHEN + AVG ( DISTINCT - 43 ) THEN + 84 / + - MIN( + CAST( NULL AS SIGNED ) ) + + - 66 * - 23 * + 57 WHEN 81 * ( CASE - 70 WHEN + CAST( + 29 AS SIGNED ) THEN + 83 END ) THEN NULL END - 1 - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT CASE + + 65 WHEN + 18 * 29 * 59 * - - ( - 96 ) THEN + 99 WHEN + AVG ( DISTINCT - 43 ) THEN + 84 / + - MIN ( + CAST ( NULL AS INTEGER ) ) + + - 66 * - 23 * + 57 WHEN 81 * ( CASE - 70 WHEN + CAST ( + 29 AS INTEGER ) THEN + 83 END ) THEN NULL END - 1 - 56
----
NULL

query I rowsort
SELECT 83 * - 15 AS col1
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + 38 * MAX( 51 ) + - - 55 + - - 58 + + + 82 AS col0
----
2133

skipif mysql # not compatible
query I rowsort label-7862
SELECT + 38 * MAX ( 51 ) + - - 55 + - - 58 + + + 82 AS col0
----
2133

query I rowsort
SELECT 67 * + - 59 AS col0
----
-3953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT COUNT( ALL - - 79 ) DIV 2 + + + COUNT( ALL - 31 ) + + 13 - + ( - 42 ) * + - 54
----
-2254

skipif mysql # not compatible
query I rowsort label-7864
SELECT COUNT ( ALL - - 79 ) / 2 + + + COUNT ( ALL - 31 ) + + 13 - + ( - 42 ) * + - 54
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT DISTINCT + COALESCE ( ( - 35 ), MIN( 14 ) + - - 99 * + + 8 DIV - 4, 50 ) DIV + MIN( ALL + 42 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + COALESCE ( ( - 35 ), MIN ( 14 ) + - - 99 * + + 8 / - 4, 50 ) / + MIN ( ALL + 42 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - + ( - + 60 ) - - ( + - 45 ) + + + COUNT( * ) * 73
----
88

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - + ( - + 60 ) - - ( + - 45 ) + + + COUNT ( * ) * 73
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - COUNT( * ) * + + 58 * SUM( + + 51 ) - 54 AS col2
----
-3012

skipif mysql # not compatible
query I rowsort label-7867
SELECT - COUNT ( * ) * + + 58 * SUM ( + + 51 ) - 54 AS col2
----
-3012

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT - ( + - MIN( ALL - 21 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT - ( + - MIN ( ALL - 21 ) ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT ALL - CAST( - - SUM( ALL - 29 ) AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - CAST ( - - SUM ( ALL - 29 ) AS INTEGER ) AS col0
----
29

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

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

query I rowsort
SELECT 57 + 17 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - + 69 * - - NULLIF ( - 77, + 31 ) * + - COUNT( * ) * - 57 + 0 * - 68 + 55 col1
----
302896

skipif mysql # not compatible
query I rowsort label-7872
SELECT - + 69 * - - NULLIF ( - 77, + 31 ) * + - COUNT ( * ) * - 57 + 0 * - 68 + 55 col1
----
302896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT - 43 + + COUNT( * ) + + MAX( ALL CAST( NULL AS SIGNED ) ) + - 79 + + 42 + 79 / - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT - 43 + + COUNT ( * ) + + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 79 + + 42 + 79 / - 75 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT - 57 + - + 60 * + 92 AS col2, + NULLIF ( - - COUNT( * ), + 90 + 22 - + + COUNT( * ) )
----
-5577
1

skipif mysql # not compatible
query II rowsort label-7875
SELECT - 57 + - + 60 * + 92 AS col2, + NULLIF ( - - COUNT ( * ), + 90 + 22 - + + COUNT ( * ) )
----
-5577
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7876
SELECT DISTINCT - - 75 * 77 AS col1, 16 DIV + - 47 AS col0
----
5775
0

skipif mysql # not compatible
query II rowsort label-7876
SELECT DISTINCT - - 75 * 77 AS col1, 16 / + - 47 AS col0
----
5775
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT + 58 * - 98 + + - 29 + COALESCE ( 47, 29 * - 5 ) DIV - - 78
----
-5713

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 58 * - 98 + + - 29 + COALESCE ( 47, 29 * - 5 ) / - - 78
----
-5713

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT - + ( - - 5 ) + + 0 DIV - 79
----
-5

skipif mysql # not compatible
query I rowsort label-7878
SELECT - + ( - - 5 ) + + 0 / - 79
----
-5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7880
SELECT + COUNT( * ) + - CAST( NULL AS DECIMAL ) / + AVG ( DISTINCT + - 66 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT + COUNT ( * ) + - CAST ( NULL AS REAL ) / + AVG ( DISTINCT + - 66 ) * + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 82 + + 35 col1
----
117

query I rowsort
SELECT ALL - 96 + - 85 + 81 - - - 53
----
-153

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

query I rowsort
SELECT ALL 5 + - - 39 * + - 8 * + 71 col1
----
-22147

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

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL 81 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT DISTINCT + 42 * COUNT( DISTINCT 2 ), 49 AS col0
----
42
49

skipif mysql # not compatible
query II rowsort label-7887
SELECT DISTINCT + 42 * COUNT ( DISTINCT 2 ), 49 AS col0
----
42
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT 75 + - 85 * - - COUNT( * ) - - + 40 - - 16 - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT 75 + - 85 * - - COUNT ( * ) - - + 40 - - 16 - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL COUNT( * ) + - COUNT( - 48 ) * + + COALESCE ( + - 24, + 77 ) - - 51 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL COUNT ( * ) + - COUNT ( - 48 ) * + + COALESCE ( + - 24, + 77 ) - - 51 AS col2
----
76

query I rowsort
SELECT DISTINCT 4 + + - 51 * - - 1
----
-47

query I rowsort
SELECT ( + NULLIF ( 10, - 28 ) ) AS col1
----
10

query II rowsort
SELECT ALL + 57 AS col0, 8 AS col1
----
57
8

query I rowsort
SELECT + 73 + - 8 AS col0
----
65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT ALL - COUNT( * ) * + 97 * - + 40 AS col0, 69 AS col1
----
3880
69

skipif mysql # not compatible
query II rowsort label-7895
SELECT ALL - COUNT ( * ) * + 97 * - + 40 AS col0, 69 AS col1
----
3880
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT + 34 + - - CASE - 54 WHEN NULLIF ( + ( AVG ( ALL + - 65 ) ), - ( - 20 ) + + + COUNT( * ) ) + - - MIN( DISTINCT - 17 ) THEN + 56 + + 10 + - 41 END * - 1 + 55 * 11, + ( - 93 ) AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7896
SELECT + 34 + - - CASE - 54 WHEN NULLIF ( + ( AVG ( ALL + - 65 ) ), - ( - 20 ) + + + COUNT ( * ) ) + - - MIN ( DISTINCT - 17 ) THEN + 56 + + 10 + - 41 END * - 1 + 55 * 11, + ( - 93 ) AS col1
----
NULL
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT + 75 * COUNT( * ) * + 83 * - 43 / CASE + + 72 WHEN COUNT( * ) THEN 91 / MIN( + 25 ) END + COALESCE ( - + 68, + 91 * - - 65 - + 50, + 59 + - 73 * 19 / - + NULLIF ( + - MIN( DISTINCT + 68 ), + MIN( ALL - 87 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + 75 * COUNT ( * ) * + 83 * - 43 / CASE + + 72 WHEN COUNT ( * ) THEN 91 / MIN ( + 25 ) END + COALESCE ( - + 68, + 91 * - - 65 - + 50, + 59 + - 73 * 19 / - + NULLIF ( + - MIN ( DISTINCT + 68 ), + MIN ( ALL - 87 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL 31 * - MAX( ALL - 37 ) * + 29 + + + 73 - - - 62
----
33274

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 31 * - MAX ( ALL - 37 ) * + 29 + + + 73 - - - 62
----
33274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT - 74 + + COUNT( * ) DIV - - COUNT( * ) + - 97 * 30 * + 3 * + 34
----
-296893

skipif mysql # not compatible
query I rowsort label-7900
SELECT - 74 + + COUNT ( * ) / - - COUNT ( * ) + - 97 * 30 * + 3 * + 34
----
-296893

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT - - ( - MIN( + - 97 ) ) * 41
----
3977

skipif mysql # not compatible
query I rowsort label-7901
SELECT - - ( - MIN ( + - 97 ) ) * 41
----
3977

query II rowsort
SELECT ALL + - 58 AS col0, 71
----
-58
71

query I rowsort
SELECT - 1 * 91 AS col2
----
-91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT + + CASE - 43 WHEN + - AVG ( - - 15 ) * - + NULLIF ( 27, + 22 / + 10 ) + + - 28 + - 9 + - CAST( - 59 AS SIGNED ) * 34 THEN 98 END / 39 + + SUM( DISTINCT - 37 ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT + + CASE - 43 WHEN + - AVG ( - - 15 ) * - + NULLIF ( 27, + 22 / + 10 ) + + - 28 + - 9 + - CAST ( - 59 AS INTEGER ) * 34 THEN 98 END / 39 + + SUM ( DISTINCT - 37 ) * 54
----
NULL

query II rowsort
SELECT DISTINCT + 92, NULLIF ( 3, 81 ) AS col1
----
92
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7907
SELECT ALL + + 2 DIV COUNT( * ) + + 78 AS col2, + 22 col1
----
80
22

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL + + 2 / COUNT ( * ) + + 78 AS col2, + 22 col1
----
80
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7908
SELECT - + 63 * + 12 + - 35, + 42 DIV + COUNT( * ) AS col2
----
-791
42

skipif mysql # not compatible
query II rowsort label-7908
SELECT - + 63 * + 12 + - 35, + 42 / + COUNT ( * ) AS col2
----
-791
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - 85 * - 16 * - 38 + COUNT( * ) AS col1
----
-51679

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - 85 * - 16 * - 38 + COUNT ( * ) AS col1
----
-51679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7910
SELECT - 77 col0, - 25 DIV - 63 + + COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-7910
SELECT - 77 col0, - 25 / - 63 + + COUNT ( * )
----
-77
1

query II rowsort
SELECT ALL - + 51 * - 60 + + CASE - 28 WHEN - - 47 * + COALESCE ( + + 25, 6 + - 36 ) THEN + 30 ELSE - 7 END + - 69 * 76, - 33 AS col1
----
-2191
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - 94 - MAX( - 36 )
----
-58

skipif mysql # not compatible
query I rowsort label-7912
SELECT - 94 - MAX ( - 36 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL - 0 + - MAX( DISTINCT - 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - 0 + - MAX ( DISTINCT - 23 ) AS col0
----
23

query I rowsort
SELECT ALL + 37 * NULLIF ( + 31, + 75 )
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - COUNT( * ) * 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7915
SELECT - COUNT ( * ) * 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT NULLIF ( + NULLIF ( + - 66, 12 / - COUNT( * ) ), + CASE + - 90 WHEN - COUNT( ALL + 70 ) * - 24 THEN NULL ELSE 83 END / + MIN( DISTINCT 35 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT NULLIF ( + NULLIF ( + - 66, 12 / - COUNT ( * ) ), + CASE + - 90 WHEN - COUNT ( ALL + 70 ) * - 24 THEN NULL ELSE 83 END / + MIN ( DISTINCT 35 ) )
----
-66

query I rowsort
SELECT ALL - 65 + 98 AS col0
----
33

query I rowsort
SELECT DISTINCT - 83 - - COALESCE ( + ( - 43 ), - + 16 + + 33 * - 19, 77 + + 70 ) * - 69 + 47
----
2931

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7919
SELECT ALL COALESCE ( + COUNT( - 51 ), NULLIF ( - 61, 77 * 44 + + + 26 ), - + 52 ) DIV - 59 AS col0, 27 AS col1
----
0
27

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL COALESCE ( + COUNT ( - 51 ), NULLIF ( - 61, 77 * 44 + + + 26 ), - + 52 ) / - 59 AS col0, 27 AS col1
----
0
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT + 20 - COUNT( * ) + - COUNT( * ) * - - ( + NULLIF ( - 70, - + AVG ( + 17 ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT + 20 - COUNT ( * ) + - COUNT ( * ) * - - ( + NULLIF ( - 70, - + AVG ( + 17 ) ) ) AS col2
----
89

query I rowsort
SELECT - ( - 83 ) * - 46 AS col2
----
-3818

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT + 86 * 83, COUNT( * ) * - + 47 AS col1
----
7138
-47

skipif mysql # not compatible
query II rowsort label-7923
SELECT + 86 * 83, COUNT ( * ) * - + 47 AS col1
----
7138
-47

query I rowsort
SELECT ALL 44 * + + ( + - 48 ) AS col2
----
-2112

query I rowsort
SELECT - 50 * 63 AS col0
----
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7926
SELECT ALL - 93 * COUNT( * ), + 55 DIV - COUNT( * ) AS col2
----
-93
-55

skipif mysql # not compatible
query II rowsort label-7926
SELECT ALL - 93 * COUNT ( * ), + 55 / - COUNT ( * ) AS col2
----
-93
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT - COUNT( * ) * - - ( + 72 )
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - 89 * - 1 + + ( + 10 ) + - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 89 * - 1 + + ( + 10 ) + - COUNT ( * ) AS col2
----
98

query I rowsort
SELECT + 59 * - 42
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + CASE + - 76 WHEN - + COUNT( * ) * - - 5 + 8 + - - 87 + AVG ( - ( + + 68 ) ) THEN 3 + + 18 / - 89 ELSE NULL END - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT + CASE + - 76 WHEN - + COUNT ( * ) * - - 5 + 8 + - - 87 + AVG ( - ( + + 68 ) ) THEN 3 + + 18 / - 89 ELSE NULL END - 25
----
NULL

query II rowsort
SELECT DISTINCT - + ( 35 ), 88 * - 53 AS col2
----
-35
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT + COALESCE ( - - CAST( + 74 AS SIGNED ), + + 7 + + - CAST( - ( - - 55 ) AS SIGNED ) * CAST( NULL AS SIGNED ), 63 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7932
SELECT + COALESCE ( - - CAST ( + 74 AS INTEGER ), + + 7 + + - CAST ( - ( - - 55 ) AS INTEGER ) * CAST ( NULL AS INTEGER ), 63 ) AS col1
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT MIN( + 37 ) * CAST( NULL AS SIGNED ) - 60 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT MIN ( + 37 ) * CAST ( NULL AS INTEGER ) - 60 * 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT - 61 - + 62 * + 53 + 14 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT - 61 - + 62 * + 53 + 14 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 6 + + 7 * 16 + 19 + + 13 * - 50 AS col1
----
-525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + 28 + + MIN( - + 20 ) + + - CASE - - 19 WHEN - 19 + + AVG ( + - 37 ) THEN 61 WHEN - 20 THEN - - COALESCE ( + 26, + 13 ) * - 32 WHEN + 76 THEN + 20 ELSE NULL END + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 28 + + MIN ( - + 20 ) + + - CASE - - 19 WHEN - 19 + + AVG ( + - 37 ) THEN 61 WHEN - 20 THEN - - COALESCE ( + 26, + 13 ) * - 32 WHEN + 76 THEN + 20 ELSE NULL END + + 31 AS col0
----
NULL

query I rowsort
SELECT 67 * + 34 AS col1
----
2278

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT ( + COUNT( * ) ) + - 88 AS col1, + COUNT( * ) * - 72
----
-87
-72

skipif mysql # not compatible
query II rowsort label-7940
SELECT ( + COUNT ( * ) ) + - 88 AS col1, + COUNT ( * ) * - 72
----
-87
-72

query I rowsort
SELECT ALL 28 + + - 96 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT ALL + NULLIF ( 65, 11 ) * + - 34 + - 11, + ( - 66 ) * + - COUNT( * ) * - COUNT( * ) * - + MIN( ALL 97 ) AS col2
----
-2221
6402

skipif mysql # not compatible
query II rowsort label-7942
SELECT ALL + NULLIF ( 65, 11 ) * + - 34 + - 11, + ( - 66 ) * + - COUNT ( * ) * - COUNT ( * ) * - + MIN ( ALL 97 ) AS col2
----
-2221
6402

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

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

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

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + COUNT ( * ) - + - 56 AS col0
----
57

query II rowsort
SELECT - 35, 66 AS col2
----
-35
66

query I rowsort
SELECT 83 + + 26 AS col0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT ALL 45 AS col0, 52 * - 82 * ( COUNT( ALL 85 ) ) * 44
----
45
-187616

skipif mysql # not compatible
query II rowsort label-7947
SELECT ALL 45 AS col0, 52 * - 82 * ( COUNT ( ALL 85 ) ) * 44
----
45
-187616

query I rowsort
SELECT ALL + 7 * - - 18
----
126

query I rowsort
SELECT 11 * 64 AS col0
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT 18 + + + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7950
SELECT 18 + + + COUNT ( * ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7951
SELECT COALESCE ( - CAST( CAST( + + AVG ( DISTINCT 76 ) AS SIGNED ) AS SIGNED ), + ( + COUNT( * ) ) ) DIV - + 74
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT COALESCE ( - CAST ( CAST ( + + AVG ( DISTINCT 76 ) AS INTEGER ) AS INTEGER ), + ( + COUNT ( * ) ) ) / - + 74
----
1

query I rowsort
SELECT + ( - 0 ) * + 46
----
0

query I rowsort
SELECT ALL - - 10 + - 8 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT NULLIF ( - COUNT( * ), + - 88 ) * - MAX( - + 33 ) * - COUNT( * ) + + - 56
----
-23

skipif mysql # not compatible
query I rowsort label-7954
SELECT NULLIF ( - COUNT ( * ), + - 88 ) * - MAX ( - + 33 ) * - COUNT ( * ) + + - 56
----
-23

query I rowsort
SELECT ALL + 51 + + 5 AS col0
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - 9 + - SUM( + 32 ) + 89 - 1 * + 47 + - 60 + ( 77 )
----
18

skipif mysql # not compatible
query I rowsort label-7957
SELECT - 9 + - SUM ( + 32 ) + 89 - 1 * + 47 + - 60 + ( 77 )
----
18

query I rowsort
SELECT ALL 49 + - 27 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT ALL + - CAST( NULL AS SIGNED ) + - 22 * 95 col2
----
NULL

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

query I rowsort
SELECT DISTINCT - + 71 col2
----
-71

query I rowsort
SELECT ALL 76 + 47 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT COUNT( * ) * 94 + + 92 * - 85 AS col0
----
-7726

skipif mysql # not compatible
query I rowsort label-7962
SELECT COUNT ( * ) * 94 + + 92 * - 85 AS col0
----
-7726

query I rowsort
SELECT ALL - 99 + + 9 AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7964
SELECT ALL + - 55 * - + 51 + 78 + + COALESCE ( COUNT( * ), - 66 ) DIV 15 DIV - + 37 + - - 89 AS col1
----
2972

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + - 55 * - + 51 + 78 + + COALESCE ( COUNT ( * ), - 66 ) / 15 / - + 37 + - - 89 AS col1
----
2972

query I rowsort
SELECT 70 + + 65 * + 4 * 46
----
12030

query I rowsort
SELECT ALL + 49 + - 91 * - 39 + - 55 * + 73
----
-417

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT ALL - 60 AS col2, + COUNT( * ) + + + 59 * MAX( + 49 )
----
-60
2892

skipif mysql # not compatible
query II rowsort label-7969
SELECT ALL - 60 AS col2, + COUNT ( * ) + + + 59 * MAX ( + 49 )
----
-60
2892

query II rowsort
SELECT ALL - 91 AS col0, + 82
----
-91
82

query II rowsort
SELECT 63 AS col0, - 10
----
63
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-7972
SELECT DISTINCT - 38 AS col0, + 76 DIV + 58 AS col2
----
-38
1

skipif mysql # not compatible
query II rowsort label-7972
SELECT DISTINCT - 38 AS col0, + 76 / + 58 AS col2
----
-38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT DISTINCT 87 - 52 DIV 78 + + - 68 DIV - 3
----
109

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 87 - 52 / 78 + + - 68 / - 3
----
109

query I rowsort
SELECT DISTINCT 52 * + 92 AS col0
----
4784

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT - COUNT( + 80 ), ( 30 ) * + 33 AS col0
----
-1
990

skipif mysql # not compatible
query II rowsort label-7975
SELECT - COUNT ( + 80 ), ( 30 ) * + 33 AS col0
----
-1
990

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

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

query I rowsort
SELECT 67 * 11
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT 2 * 67 * - MIN( ALL 22 ) AS col1
----
-2948

skipif mysql # not compatible
query I rowsort label-7978
SELECT 2 * 67 * - MIN ( ALL 22 ) AS col1
----
-2948

query I rowsort
SELECT DISTINCT 16 * - 35
----
-560

query II rowsort
SELECT ALL 32 AS col2, 75 + 40 + + 60 * 33 * 96 + + - 54 * 40
----
32
188035

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT 21 DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT 21 / - + 75
----
0

query II rowsort
SELECT ALL 35 AS col0, 62 + 85 + + + 64
----
35
211

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT CAST( NULL AS SIGNED ) * - 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT CAST ( NULL AS INTEGER ) * - 87 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT DISTINCT 92 col2, - 24 * - COUNT( * ) AS col1
----
92
24

skipif mysql # not compatible
query II rowsort label-7985
SELECT DISTINCT 92 col2, - 24 * - COUNT ( * ) AS col1
----
92
24

query I rowsort
SELECT 21 - + 58 AS col2
----
-37

query I rowsort
SELECT 27 + + 48 col0
----
75

query II rowsort
SELECT - + 44, 56 AS col1
----
-44
56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7989
SELECT - - CAST( NULL AS DECIMAL ) col1, 22 + + - 39 AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-7989
SELECT - - CAST ( NULL AS REAL ) col1, 22 + + - 39 AS col2
----
NULL
-17

query II rowsort
SELECT - + 24 AS col2, - 97 AS col0
----
-24
-97

query I rowsort
SELECT ALL - 73 * 44 + + 35 - 82 AS col0
----
-3259

query I rowsort
SELECT - - 8 * - 80 * 42 AS col1
----
-26880

query I rowsort
SELECT - - 75 * - 96 * + + 60 + 92 AS col0
----
-431908

query II rowsort
SELECT DISTINCT + - 8, + 48 col1
----
-8
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT - 96 - COUNT( * ) DIV 26 * 52 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 96 - COUNT ( * ) / 26 * 52 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - - 15 * - SUM( + + 19 )
----
-285

skipif mysql # not compatible
query I rowsort label-7996
SELECT - - 15 * - SUM ( + + 19 )
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7997
SELECT + 45 AS col0, CAST( NULL AS SIGNED ) - - 17 + + SUM( 67 ) * + 49 * + 93 * - MAX( DISTINCT 90 ) * - 67 AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7997
SELECT + 45 AS col0, CAST ( NULL AS INTEGER ) - - 17 + + SUM ( 67 ) * + 49 * + 93 * - MAX ( DISTINCT 90 ) * - 67 AS col1
----
45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7998
SELECT ALL 67 * - COALESCE ( - 0, CAST( NULL AS SIGNED ) ) * ( + 6 ) AS col1, 42 + 93 AS col2
----
0
135

skipif mysql # not compatible
query II rowsort label-7998
SELECT ALL 67 * - COALESCE ( - 0, CAST ( NULL AS INTEGER ) ) * ( + 6 ) AS col1, 42 + 93 AS col2
----
0
135

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT - NULLIF ( - 55, + 25 ) * - 70 AS col2, + NULLIF ( - + 7, AVG ( DISTINCT 63 ) * + - ( + COUNT( * ) ) - 67 + COUNT( * ) - - COUNT( * ) + - 67 - - - MIN( - - 78 ) )
----
-3850
-7

skipif mysql # not compatible
query II rowsort label-7999
SELECT - NULLIF ( - 55, + 25 ) * - 70 AS col2, + NULLIF ( - + 7, AVG ( DISTINCT 63 ) * + - ( + COUNT ( * ) ) - 67 + COUNT ( * ) - - COUNT ( * ) + - 67 - - - MIN ( - - 78 ) )
----
-3850
-7

query I rowsort
SELECT - 17 - + + 11 * - 94 AS col1
----
1017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL + COALESCE ( - CAST( - + 50 AS SIGNED ), - - 31 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + COALESCE ( - CAST ( - + 50 AS INTEGER ), - - 31 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + COUNT( - 57 ) * - COUNT( * ) + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-8002
SELECT + COUNT ( - 57 ) * - COUNT ( * ) + - 74
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT + NULLIF ( - + 76, + - 8 * - COUNT( * ) * + + 86 ) AS col0, + 50
----
-76
50

skipif mysql # not compatible
query II rowsort label-8003
SELECT + NULLIF ( - + 76, + - 8 * - COUNT ( * ) * + + 86 ) AS col0, + 50
----
-76
50

query II rowsort
SELECT - 81 + - + 91 AS col2, 6
----
-172
6

query I rowsort
SELECT + 87 * + 66 * + 21 * 87 AS col1
----
10490634

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT SUM( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8006
SELECT SUM ( - 67 ) AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT - ( - 16 ) + - 46 DIV + 25 - 17
----
-2

skipif mysql # not compatible
query I rowsort label-8007
SELECT - ( - 16 ) + - 46 / + 25 - 17
----
-2

query I rowsort
SELECT + 63 - + 19
----
44

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

query I rowsort
SELECT + 51 * 31 col0
----
1581

query I rowsort
SELECT + 9 + + - 60 * - - 6 AS col0
----
-351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT DISTINCT ( - + CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT ( - + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT ALL COUNT( * ) * - 34, + ( + + 22 ) AS col2
----
-34
22

skipif mysql # not compatible
query II rowsort label-8014
SELECT ALL COUNT ( * ) * - 34, + ( + + 22 ) AS col2
----
-34
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + 21 * - 79 * - + COALESCE ( - - COUNT( + + COALESCE ( - - NULLIF ( - 79, 8 ), + 31 + 73 - 82 ) ), - 87 + 57 + - + 8 ) AS col2
----
1659

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 21 * - 79 * - + COALESCE ( - - COUNT ( + + COALESCE ( - - NULLIF ( - 79, 8 ), + 31 + 73 - 82 ) ), - 87 + 57 + - + 8 ) AS col2
----
1659

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT COUNT( * ) + - + 70 + - - 88 * CASE + 81 WHEN - + 33 / - + 87 * + - COUNT( * ) THEN - COUNT( * ) + - 30 + - + NULLIF ( + + COALESCE ( + - 54, 71 ), AVG ( ALL - 83 ) ) WHEN 98 - + 37 THEN NULL ELSE + + 55 * - COUNT( * ) END * + - 18 AS col1
----
87051

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT COUNT ( * ) + - + 70 + - - 88 * CASE + 81 WHEN - + 33 / - + 87 * + - COUNT ( * ) THEN - COUNT ( * ) + - 30 + - + NULLIF ( + + COALESCE ( + - 54, 71 ), AVG ( ALL - 83 ) ) WHEN 98 - + 37 THEN NULL ELSE + + 55 * - COUNT ( * ) END * + - 18 AS col1
----
87051

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL MIN( - 4 ) + - 72
----
-76

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL MIN ( - 4 ) + - 72
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + + COUNT( * ) + - 77 + 77 + + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-8018
SELECT + + COUNT ( * ) + - 77 + 77 + + - 45
----
-44

query I rowsort
SELECT DISTINCT + 93 + + + 72 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT 13 + - + 37 / + 31 * - 24 + + - CASE - 17 WHEN 63 THEN + COUNT( * ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT 13 + - + 37 / + 31 * - 24 + + - CASE - 17 WHEN 63 THEN + COUNT ( * ) END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 52 + 21 - - 31 * - 99
----
-2996

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL + - 43 + + - ( + COUNT( * ) ) - 91 AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + - 43 + + - ( + COUNT ( * ) ) - 91 AS col1
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT ALL - 85 + - ( COUNT( * ) ) + + + CASE + - 75 WHEN + + 1 * CASE - - COUNT( * ) WHEN + - MIN( DISTINCT - + 92 ) THEN NULL ELSE + COUNT( * ) END / COUNT( * ) + - COALESCE ( - 58, + - 99, - 61 ) + 41 THEN - ( + 40 ) * - + COALESCE ( + CAST( - 41 AS SIGNED ), + 95 * + 70 - - MIN( 26 ) - + - 66 ) ELSE NULL END / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - 85 + - ( COUNT ( * ) ) + + + CASE + - 75 WHEN + + 1 * CASE - - COUNT ( * ) WHEN + - MIN ( DISTINCT - + 92 ) THEN NULL ELSE + COUNT ( * ) END / COUNT ( * ) + - COALESCE ( - 58, + - 99, - 61 ) + 41 THEN - ( + 40 ) * - + COALESCE ( + CAST ( - 41 AS INTEGER ), + 95 * + 70 - - MIN ( 26 ) - + - 66 ) ELSE NULL END / + 14
----
NULL

query I rowsort
SELECT + 14 + + + 21
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + + 5 * - + COUNT( * ) + - - COUNT( * ) + - 25 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8025
SELECT + + 5 * - + COUNT ( * ) + - - COUNT ( * ) + - 25 AS col2
----
-29

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

query II rowsort
SELECT ALL 97 + + 36 * - 62 AS col1, 90 AS col1
----
-2135
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT + 55 DIV 78 + + NULLIF ( + + COALESCE ( - - 82, 35 * + 40, + 19 ), + 7 ) * + - 49 * - + 75
----
301350

skipif mysql # not compatible
query I rowsort label-8028
SELECT + 55 / 78 + + NULLIF ( + + COALESCE ( - - 82, 35 * + 40, + 19 ), + 7 ) * + - 49 * - + 75
----
301350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT - 68 * + ( + - COUNT( * ) ) * COUNT( * ) DIV 81 + + - ( - - 92 ) + - 37
----
-129

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 68 * + ( + - COUNT ( * ) ) * COUNT ( * ) / 81 + + - ( - - 92 ) + - 37
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL + 47 * + MAX( + + 8 ) AS col0
----
376

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL + 47 * + MAX ( + + 8 ) AS col0
----
376

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8031
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 26 * 25 - - AVG ( ALL 83 ) * - 9 * + NULLIF ( - + 94, + ( + + CAST( NULL AS DECIMAL ) ) ) + - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 26 * 25 - - AVG ( ALL 83 ) * - 9 * + NULLIF ( - + 94, + ( + + CAST ( NULL AS REAL ) ) ) + - - 61 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT ALL + COALESCE ( - 30, CASE NULLIF ( - 8, - + ( 23 ) - - CASE 97 WHEN - 91 THEN - + 72 WHEN - 67 THEN NULL END ) WHEN + 45 THEN 52 DIV - 46 * + - 31 END, - 73 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + COALESCE ( - 30, CASE NULLIF ( - 8, - + ( 23 ) - - CASE 97 WHEN - 91 THEN - + 72 WHEN - 67 THEN NULL END ) WHEN + 45 THEN 52 / - 46 * + - 31 END, - 73 ) AS col0
----
-30

query I rowsort
SELECT - + 3 * + 73 + + - ( - 85 ) AS col2
----
-134

query I rowsort
SELECT ALL + 97 * - + 98
----
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN 99 THEN COUNT( * ) WHEN + COUNT( * ) / - 36 + - + CASE - 20 WHEN + 78 THEN NULL ELSE + 40 END + + + 93 * - CAST( NULL AS SIGNED ) * + 75 + 28 * - - ( - 18 ) + - CAST( + 53 AS SIGNED ) THEN - 61 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN 99 THEN COUNT ( * ) WHEN + COUNT ( * ) / - 36 + - + CASE - 20 WHEN + 78 THEN NULL ELSE + 40 END + + + 93 * - CAST ( NULL AS INTEGER ) * + 75 + 28 * - - ( - 18 ) + - CAST ( + 53 AS INTEGER ) THEN - 61 END col2
----
NULL

query I rowsort
SELECT - 69 + 47 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT 38 * + 91 * - - MAX( + 8 ) + - - ( - 32 )
----
27632

skipif mysql # not compatible
query I rowsort label-8037
SELECT 38 * + 91 * - - MAX ( + 8 ) + - - ( - 32 )
----
27632

query I rowsort
SELECT ALL + 47 * - 48 AS col2
----
-2256

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT ALL + 75 DIV - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + 75 / - 8 AS col0
----
-9

query I rowsort
SELECT DISTINCT + 87 * + 9 + - 94 + + 42 + + + 97 + + - 86 * 80
----
-6052

query I rowsort
SELECT ALL - ( + 21 ) * + 58 + 4 + 8 * + 21 AS col0
----
-1046

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT NULLIF ( + + 66, 32 * + COALESCE ( COUNT( - 85 ), - - 35 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8042
SELECT NULLIF ( + + 66, 32 * + COALESCE ( COUNT ( - 85 ), - - 35 ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL + COUNT( * ) * - ( + 89 ) + - 19
----
-108

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + COUNT ( * ) * - ( + 89 ) + - 19
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 3 * - CASE + 26 WHEN + + 92 THEN COUNT( + + 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 3 * - CASE + 26 WHEN + + 92 THEN COUNT ( + + 94 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8045
SELECT COUNT( * ) + 82 + - - COALESCE ( - ( + - MIN( ALL + CAST( - 99 AS SIGNED ) ) ), 18 DIV + + 34 + 5 - + 97 * - 50, + - 58 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8045
SELECT COUNT ( * ) + 82 + - - COALESCE ( - ( + - MIN ( ALL + CAST ( - 99 AS INTEGER ) ) ), 18 / + + 34 + 5 - + 97 * - 50, + - 58 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + 30 + + + 32 - - COUNT( * ) - + ( - 41 )
----
104

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + 30 + + + 32 - - COUNT ( * ) - + ( - 41 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8047
SELECT ALL - CASE 57 WHEN + 89 THEN 17 WHEN - 24 THEN NULL WHEN + COUNT( * ) * - AVG ( DISTINCT 50 ) * + - CAST( NULL AS SIGNED ) + + 69 THEN NULL ELSE 73 END + 31 DIV + 65 * 15 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - CASE 57 WHEN + 89 THEN 17 WHEN - 24 THEN NULL WHEN + COUNT ( * ) * - AVG ( DISTINCT 50 ) * + - CAST ( NULL AS INTEGER ) + + 69 THEN NULL ELSE 73 END + 31 / + 65 * 15 AS col0
----
-73

query II rowsort
SELECT - 0, - 88 col0
----
0
-88

query I rowsort
SELECT - 55 * - 39 - - ( 54 ) * - - 15 * + 79
----
66135

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

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

query I rowsort
SELECT ALL - COALESCE ( + 85, + + 74 + + 84 ) AS col0
----
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT DISTINCT NULLIF ( CAST( - 16 AS SIGNED ), + + 76 ) + 97 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT NULLIF ( CAST ( - 16 AS INTEGER ), + + 76 ) + 97 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL COUNT( * ) + + 72 + + + 62 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL COUNT ( * ) + + 72 + + + 62 AS col0
----
135

query I rowsort
SELECT 99 - + 44
----
55

query II rowsort
SELECT 36, + 4 + - + 75 AS col2
----
36
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT - MIN( - 6 ) * + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8058
SELECT - MIN ( - 6 ) * + COUNT ( * ) AS col2
----
6

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

skipif mysql # not compatible
query I rowsort label-8059
SELECT ( + CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT - - 79 AS col1, ( + COUNT( * ) ) + - MAX( + 98 ) AS col0
----
79
-97

skipif mysql # not compatible
query II rowsort label-8060
SELECT - - 79 AS col1, ( + COUNT ( * ) ) + - MAX ( + 98 ) AS col0
----
79
-97

query I rowsort
SELECT - - ( + + 45 ) AS col1
----
45

query I rowsort
SELECT + COALESCE ( - 26, - 6 ) + 66 col1
----
40

query I rowsort
SELECT 55 * + 31 * + - ( - 56 )
----
95480

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

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

query I rowsort
SELECT DISTINCT - - 70 AS col0
----
70

query I rowsort
SELECT DISTINCT - COALESCE ( 76, + + 97 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8067
SELECT + - COALESCE ( 64, 59 * + 45 DIV + 77 + 22, + NULLIF ( COUNT( + 4 ), 4 DIV - 49 * - 92 * + 52 ) DIV - 22 ) DIV + + 10 * + + COUNT( * ) - + 21 + - 60 + CAST( + - 1 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8067
SELECT + - COALESCE ( 64, 59 * + 45 / + 77 + 22, + NULLIF ( COUNT ( + 4 ), 4 / - 49 * - 92 * + 52 ) / - 22 ) / + + 10 * + + COUNT ( * ) - + 21 + - 60 + CAST ( + - 1 AS INTEGER ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT + 72 DIV 12 - 53
----
-47

skipif mysql # not compatible
query I rowsort label-8068
SELECT + 72 / 12 - 53
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL SUM( ALL 36 ) * - + 28
----
-1008

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL SUM ( ALL 36 ) * - + 28
----
-1008

query II rowsort
SELECT + 84 * 93 * 4 + - + ( 56 ) col0, 23
----
31192
23

query I rowsort
SELECT DISTINCT + CASE + 96 WHEN + 51 THEN + - 22 ELSE NULL END + + 97
----
NULL

query I rowsort
SELECT DISTINCT 98 * + 28 * 3 AS col0
----
8232

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 11 - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8075
SELECT 11 - - COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT - ( + 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + ( + 60 ) + + COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + ( + 60 ) + + COUNT ( * ) col1
----
61

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

skipif mysql # not compatible
query I rowsort label-8078
SELECT COUNT ( * ) + - ( - 19 ) AS col0
----
20

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

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL + COUNT( * ) + MAX( DISTINCT - 65 ) * - + 73 * - COUNT( * )
----
-4744

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + COUNT ( * ) + MAX ( DISTINCT - 65 ) * - + 73 * - COUNT ( * )
----
-4744

query I rowsort
SELECT 20 + - 45 * - 49 AS col0
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT MIN( - 36 ) - - - 58
----
-94

skipif mysql # not compatible
query I rowsort label-8082
SELECT MIN ( - 36 ) - - - 58
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - 89 * + 94 + MAX( DISTINCT + 48 )
----
-8318

skipif mysql # not compatible
query I rowsort label-8083
SELECT - 89 * + 94 + MAX ( DISTINCT + 48 )
----
-8318

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + 44 + MIN( + - 75 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + 44 + MIN ( + - 75 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8085
SELECT DISTINCT + 85 * - NULLIF ( + + 93, + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) / - 94 * - 23 )
----
-7905

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + 85 * - NULLIF ( + + 93, + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + - COUNT ( * ) / - 94 * - 23 )
----
-7905

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8086
SELECT DISTINCT - + 59 - - 18 / + 35 - - - 36 - - 88 * + 65 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - + 59 - - 18 / + 35 - - - 36 - - 88 * + 65 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 14 + - 16
----
-2

query I rowsort
SELECT DISTINCT + + 46 * - 14 + - 54 AS col2
----
-698

query I rowsort
SELECT 91 * 83 col1
----
7553

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT - 62 + - 71 DIV + + 43 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8090
SELECT - 62 + - 71 / + + 43 AS col2
----
-63

query I rowsort
SELECT + 12 + 12 + + 39 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT MIN( ALL - 93 ) * + 41 * 3 AS col1
----
-11439

skipif mysql # not compatible
query I rowsort label-8092
SELECT MIN ( ALL - 93 ) * + 41 * 3 AS col1
----
-11439

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT + ( + 89 ) DIV - + 5 + + + 86 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8093
SELECT + ( + 89 ) / - + 5 + + + 86 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - COUNT( * ) * + 75 - + 41 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-8094
SELECT - COUNT ( * ) * + 75 - + 41 AS col0
----
-116

query I rowsort
SELECT ALL 52 * 42 AS col2
----
2184

query I rowsort
SELECT 74 * 89 + 14 AS col2
----
6600

query I rowsort
SELECT ALL - NULLIF ( + 33, 19 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT SUM( ALL + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8098
SELECT SUM ( ALL + 70 ) AS col0
----
70

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT 75 * - - 33 + - 16 DIV 37 * + - MAX( 71 ) * MIN( ALL 25 ) AS col0
----
2475

skipif mysql # not compatible
query I rowsort label-8100
SELECT 75 * - - 33 + - 16 / 37 * + - MAX ( 71 ) * MIN ( ALL 25 ) AS col0
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT SUM( 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8101
SELECT SUM ( 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + 66 * + + 17 + - ( - - COUNT( * ) ) * - 48
----
1170

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + 66 * + + 17 + - ( - - COUNT ( * ) ) * - 48
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT - 67 DIV - 86 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8103
SELECT - 67 / - 86 + + COUNT ( * ) AS col1
----
1

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

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

query I rowsort
SELECT + 80 + + 79 + ( - - ( + ( - 29 ) ) ) + + 97 + - 65 * + 5
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT MAX( + - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8106
SELECT MAX ( + - 27 ) AS col0
----
-27

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

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT 4 / - COUNT ( * )
----
-4

query I rowsort
SELECT + 68 * 82 AS col1
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT MAX( - 70 ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-8109
SELECT MAX ( - 70 ) col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT COUNT( * ) * ( - 52 ) + + 78 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8110
SELECT COUNT ( * ) * ( - 52 ) + + 78 AS col1
----
26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT ALL + 13 - + 93 + - + 8 AS col2, SUM( DISTINCT - - 4 ) AS col0
----
-88
4

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL + 13 - + 93 + - + 8 AS col2, SUM ( DISTINCT - - 4 ) AS col0
----
-88
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT ALL ( - 28 ) * 28 AS col1, 80 * + + COUNT( * )
----
-784
80

skipif mysql # not compatible
query II rowsort label-8113
SELECT ALL ( - 28 ) * 28 AS col1, 80 * + + COUNT ( * )
----
-784
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL - MIN( ALL + 61 ) * 49
----
-2989

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - MIN ( ALL + 61 ) * 49
----
-2989

query I rowsort
SELECT + + 81 * 13 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + ( 16 ) * COUNT( * ) * + - COUNT( * ) + SUM( ALL - 85 ) + 7
----
-94

skipif mysql # not compatible
query I rowsort label-8116
SELECT + ( 16 ) * COUNT ( * ) * + - COUNT ( * ) + SUM ( ALL - 85 ) + 7
----
-94

query I rowsort
SELECT DISTINCT NULLIF ( + COALESCE ( 40, - 67, - ( - - 43 ) ), 10 * + 35 + - 49 )
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - COUNT( * ) * 75 + - - 90 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8119
SELECT - COUNT ( * ) * 75 + - - 90 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + NULLIF ( + 85, COALESCE ( - - COALESCE ( + 19, + - 43 + - 88 + 49 - 49 / - 21 + + 52 + 48 ), - + 65 * 44 / - 75 * - - 67 ) + - SUM( - + ( + 10 ) ) ) * 75 - + + 20 + + 38 * 73 AS col2
----
9129

skipif mysql # not compatible
query I rowsort label-8120
SELECT + NULLIF ( + 85, COALESCE ( - - COALESCE ( + 19, + - 43 + - 88 + 49 - 49 / - 21 + + 52 + 48 ), - + 65 * 44 / - 75 * - - 67 ) + - SUM ( - + ( + 10 ) ) ) * 75 - + + 20 + + 38 * 73 AS col2
----
9129

query I rowsort
SELECT ALL ( 32 ) col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - + 16 - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8122
SELECT - + 16 - COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - 23 * COUNT( * ) + - MIN( ALL + - 48 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 23 * COUNT ( * ) + - MIN ( ALL + - 48 ) AS col0
----
25

query I rowsort
SELECT - 67 + + - 92 - + - 48 AS col0
----
-111

query I rowsort
SELECT DISTINCT - - 27 + + - ( - + 63 ) * - ( 15 )
----
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8126
SELECT DISTINCT + COUNT( * ) + 95 * - + NULLIF ( + MIN( - 10 ), + 21 * - - 65 * + 98 ) + 90 * 36 DIV + 29 AS col0, - 60 + + COUNT( DISTINCT - - 68 ) * + 86 - - + 3 * + 21
----
1062
89

skipif mysql # not compatible
query II rowsort label-8126
SELECT DISTINCT + COUNT ( * ) + 95 * - + NULLIF ( + MIN ( - 10 ), + 21 * - - 65 * + 98 ) + 90 * 36 / + 29 AS col0, - 60 + + COUNT ( DISTINCT - - 68 ) * + 86 - - + 3 * + 21
----
1062
89

query II rowsort
SELECT ALL 59 AS col1, 42 col1
----
59
42

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

skipif mysql # not compatible
query II rowsort label-8128
SELECT CAST ( NULL AS INTEGER ), - 70 AS col1
----
NULL
-70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT + 4 * + - 9 AS col0, 98 * - NULLIF ( + - 9, - - COUNT( * ) * - + ( - COUNT( * ) ) + 48 - + 9 - - + 2 ) AS col2
----
-36
882

skipif mysql # not compatible
query II rowsort label-8130
SELECT + 4 * + - 9 AS col0, 98 * - NULLIF ( + - 9, - - COUNT ( * ) * - + ( - COUNT ( * ) ) + 48 - + 9 - - + 2 ) AS col2
----
-36
882

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

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

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

skipif mysql # not compatible
query I rowsort label-8132
SELECT - COUNT ( * ) / 55 - + 80
----
-80

query I rowsort
SELECT ALL 63 * 16 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + 74 * MAX( DISTINCT - NULLIF ( 78, 85 ) ) col0
----
-5772

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 74 * MAX ( DISTINCT - NULLIF ( 78, 85 ) ) col0
----
-5772

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

query I rowsort
SELECT - 37 * - 47 + NULLIF ( + 26, - 9 ) AS col2
----
1765

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT DISTINCT - 26 * 99 DIV + 67
----
-38

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - 26 * 99 / + 67
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT 53 DIV 63 + - 51 - - 26
----
-25

skipif mysql # not compatible
query I rowsort label-8138
SELECT 53 / 63 + - 51 - - 26
----
-25

query I rowsort
SELECT + 38 * - 66
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + COUNT( * ) * - 74 - + 82
----
-156

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + COUNT ( * ) * - 74 - + 82
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT ALL 85 DIV + NULLIF ( + SUM( DISTINCT - ( 49 ) ), + - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL 85 / + NULLIF ( + SUM ( DISTINCT - ( 49 ) ), + - 10 )
----
-1

query I rowsort
SELECT + 91 - - + 79 AS col0
----
170

query I rowsort
SELECT ALL + 2 * - 40 - 68 AS col0
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT - 2 * + 8 DIV - 23 * SUM( DISTINCT - 11 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 2 * + 8 / - 23 * SUM ( DISTINCT - 11 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 8 * CASE + 24 WHEN - CASE + ( - 23 ) WHEN - 8 THEN + + SUM( ( + - 99 ) ) END THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 8 * CASE + 24 WHEN - CASE + ( - 23 ) WHEN - 8 THEN + + SUM ( ( + - 99 ) ) END THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + ( - + 16 ) * + 9
----
-144

query I rowsort
SELECT + 22 + + - 20
----
2

query II rowsort
SELECT + + 28 AS col0, 79
----
28
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT + 35 + 51 + NULLIF ( + - CAST( + - 40 AS SIGNED ), - COUNT( * ) ) + - 23 * - COUNT( - + 95 )
----
149

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 35 + 51 + NULLIF ( + - CAST ( + - 40 AS INTEGER ), - COUNT ( * ) ) + - 23 * - COUNT ( - + 95 )
----
149

query I rowsort
SELECT ALL + 75 * - 75
----
-5625

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL + 31 * + - CAST( + 7 AS SIGNED ) + - COUNT( * ) + 99 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + 31 * + - CAST ( + 7 AS INTEGER ) + - COUNT ( * ) + 99 AS col2
----
-119

query II rowsort
SELECT DISTINCT 92 AS col0, 31 AS col1
----
92
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + - 45 + 72 * COALESCE ( + 45, - COUNT( - 55 ) * - 98 * 14 ) * - - CASE 41 WHEN 26 THEN - 16 ELSE 65 END AS col0
----
210555

skipif mysql # not compatible
query I rowsort label-8154
SELECT + - 45 + 72 * COALESCE ( + 45, - COUNT ( - 55 ) * - 98 * 14 ) * - - CASE 41 WHEN 26 THEN - 16 ELSE 65 END AS col0
----
210555

query I rowsort
SELECT ALL 77 + 43 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + + COUNT( * ) + + 41 + + - 84
----
-42

skipif mysql # not compatible
query I rowsort label-8156
SELECT + + COUNT ( * ) + + 41 + + - 84
----
-42

query I rowsort
SELECT + - 68 + + 14 AS col2
----
-54

query I rowsort
SELECT + 65 * ( 94 ) AS col1
----
6110

query II rowsort
SELECT ALL - 98 * - - 24 col0, 93
----
-2352
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + + MIN( DISTINCT - 95 ) + + 54
----
-41

skipif mysql # not compatible
query I rowsort label-8160
SELECT + + MIN ( DISTINCT - 95 ) + + 54
----
-41

query I rowsort
SELECT ALL + 87 + + + NULLIF ( - - 6, + 40 * 21 + + 77 * + 1 * - 82 / - - 20 ) + + 55 AS col1
----
148

query I rowsort
SELECT DISTINCT + NULLIF ( - - 6, + 50 ) * 60 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL - 48 + - SUM( DISTINCT + - 32 )
----
-16

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - 48 + - SUM ( DISTINCT + - 32 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT 34 + + COUNT( * ) + + 29 + - + 26
----
38

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT 34 + + COUNT ( * ) + + 29 + - + 26
----
38

query II rowsort
SELECT DISTINCT + 3 * - 20 AS col0, COALESCE ( - 45, 67 ) * 24
----
-60
-1080

query I rowsort
SELECT 2 + + - 45 AS col0
----
-43

query II rowsort
SELECT 5 * + + 32, 63 AS col0
----
160
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL - ( COALESCE ( COUNT( * ), - NULLIF ( + - 89, - SUM( ALL - 44 ) * + + 9 * - COUNT( * ) / - COUNT( * ) ), + - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - ( COALESCE ( COUNT ( * ), - NULLIF ( + - 89, - SUM ( ALL - 44 ) * + + 9 * - COUNT ( * ) / - COUNT ( * ) ), + - 56 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8169
SELECT ALL - CASE + + COUNT( * ) WHEN 84 THEN + 2 * COUNT( * ) ELSE NULL END, - CASE - COUNT( * ) WHEN - CASE - COUNT( * ) WHEN COUNT( * ) THEN 85 ELSE + ( + 99 ) / - ( - COUNT( * ) ) END * + 82 - + 17 + + 67 + + COUNT( * ) * - MAX( DISTINCT 84 ) THEN + CASE 0 WHEN 36 THEN 39 WHEN + 7 THEN + 34 * + 57 + - 24 + + ( + COUNT( * ) ) WHEN + + 31 + - - 51 * 51 * + 77 THEN - - 90 END * + 62 + + - 66 END * + CAST( + 43 AS SIGNED ) + - - 93 + + 45 + 82 * - COUNT( * ) / + 55 * 43 + + 31
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL - CASE + + COUNT ( * ) WHEN 84 THEN + 2 * COUNT ( * ) ELSE NULL END, - CASE - COUNT ( * ) WHEN - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 85 ELSE + ( + 99 ) / - ( - COUNT ( * ) ) END * + 82 - + 17 + + 67 + + COUNT ( * ) * - MAX ( DISTINCT 84 ) THEN + CASE 0 WHEN 36 THEN 39 WHEN + 7 THEN + 34 * + 57 + - 24 + + ( + COUNT ( * ) ) WHEN + + 31 + - - 51 * 51 * + 77 THEN - - 90 END * + 62 + + - 66 END * + CAST ( + 43 AS INTEGER ) + - - 93 + + 45 + 82 * - COUNT ( * ) / + 55 * 43 + + 31
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT + CAST( NULL AS SIGNED ) / 38 * - 78 + - 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT + CAST ( NULL AS INTEGER ) / 38 * - 78 + - 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - MIN( ALL - + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - MIN ( ALL - + 20 )
----
20

query I rowsort
SELECT 30 * + - 62 * + 12 * + + 96
----
-2142720

query II rowsort
SELECT 65 + - 47 AS col0, + ( + 41 ) AS col0
----
18
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT 82 + - MIN( - 56 )
----
138

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT 82 + - MIN ( - 56 )
----
138

query I rowsort
SELECT ALL - - NULLIF ( + 39, 30 ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT - 0 + + CAST( 83 AS SIGNED ) + 10
----
93

skipif mysql # not compatible
query I rowsort label-8176
SELECT - 0 + + CAST ( 83 AS INTEGER ) + 10
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT CAST( 29 AS SIGNED ) * + 77 + 58 AS col0
----
2291

skipif mysql # not compatible
query I rowsort label-8177
SELECT CAST ( 29 AS INTEGER ) * + 77 + 58 AS col0
----
2291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT DISTINCT - 52 + - 21 DIV MIN( + 71 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - 52 + - 21 / MIN ( + 71 ) AS col0
----
-52

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

skipif mysql # not compatible
query II rowsort label-8179
SELECT COUNT ( - 10 ) AS col1, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL 66 + 21 + ( 5 ) * + - 57
----
-198

query I rowsort
SELECT - NULLIF ( - 0, 44 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT 61 col2, COUNT( * ) * + 32 * 14 * - 53 AS col1
----
61
-23744

skipif mysql # not compatible
query II rowsort label-8182
SELECT 61 col2, COUNT ( * ) * + 32 * 14 * - 53 AS col1
----
61
-23744

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT COUNT( * ) * + 36 * 55, 59 + - - 67 AS col0
----
1980
126

skipif mysql # not compatible
query II rowsort label-8183
SELECT COUNT ( * ) * + 36 * 55, 59 + - - 67 AS col0
----
1980
126

query II rowsort
SELECT ALL 23 AS col2, 23 * - 44
----
23
-1012

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

skipif mysql # not compatible
query I rowsort label-8185
SELECT CAST ( NULL AS INTEGER ) * + 77 AS col0
----
NULL

query I rowsort
SELECT ALL + 54 * 59
----
3186

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL ( - + ( - 14 ) ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL ( - + ( - 14 ) ) / - 61
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8188
SELECT ALL - 85 AS col2, 16 DIV 81
----
-85
0

skipif mysql # not compatible
query II rowsort label-8188
SELECT ALL - 85 AS col2, 16 / 81
----
-85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT 90 / 12 * MAX( - 45 ) + + CASE - + 35 WHEN + 41 THEN - 42 * + - 22 * - ( + 38 ) + + 63 + + - 71 END + - 48 + 53 * + ( + - COUNT( * ) ) * - 59 - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT 90 / 12 * MAX ( - 45 ) + + CASE - + 35 WHEN + 41 THEN - 42 * + - 22 * - ( + 38 ) + + 63 + + - 71 END + - 48 + 53 * + ( + - COUNT ( * ) ) * - 59 - + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT CAST( NULL AS SIGNED ) * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT CAST ( NULL AS INTEGER ) * - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT 65 * + - 65 * + 74 * + - COUNT( * )
----
312650

skipif mysql # not compatible
query I rowsort label-8191
SELECT 65 * + - 65 * + 74 * + - COUNT ( * )
----
312650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT CAST( NULL AS SIGNED ) + - - 39 * + ( + 48 ) * 90 + + 66 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT CAST ( NULL AS INTEGER ) + - - 39 * + ( + 48 ) * 90 + + 66 * + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT 71 DIV + - 37
----
-1

skipif mysql # not compatible
query I rowsort label-8193
SELECT 71 / + - 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT + 79 DIV - + 87 + 45 + - 85
----
-40

skipif mysql # not compatible
query I rowsort label-8194
SELECT + 79 / - + 87 + 45 + - 85
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL - - ( - 99 ) + + + MIN( ALL + + 58 )
----
-41

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - - ( - 99 ) + + + MIN ( ALL + + 58 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT ALL + 14 + - 6 DIV + 94 * + 96 DIV 50 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + 14 + - 6 / + 94 * + 96 / 50 AS col2
----
14

query I rowsort
SELECT - 54 + + + 85
----
31

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

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

query I rowsort
SELECT + ( - - 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT + 81 + - 13 AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8201
SELECT + - COUNT( * ) AS col2, 17 DIV - - SUM( ALL + + 4 )
----
-1
4

skipif mysql # not compatible
query II rowsort label-8201
SELECT + - COUNT ( * ) AS col2, 17 / - - SUM ( ALL + + 4 )
----
-1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT + 81 + ( COUNT( * ) ) - - + 55 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8202
SELECT + 81 + ( COUNT ( * ) ) - - + 55 AS col2
----
137

query I rowsort
SELECT ALL + 31 * - + 12
----
-372

query I rowsort
SELECT ALL - 62 + + 56 * + + ( - 18 )
----
-1070

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

query I rowsort
SELECT DISTINCT + ( + - 25 ) + + 21 AS col2
----
-4

query I rowsort
SELECT - 56 * + 76 col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + ( + 1 ) + - CASE - + MIN( DISTINCT - 33 ) WHEN + 8 THEN - - 92 WHEN + 78 + - 47 - - - 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT + ( + 1 ) + - CASE - + MIN ( DISTINCT - 33 ) WHEN + 8 THEN - - 92 WHEN + 78 + - 47 - - - 3 THEN NULL END
----
NULL

query I rowsort
SELECT + 83 + 57
----
140

query I rowsort
SELECT - 76 * + - 36
----
2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8211
SELECT ALL 87 DIV + - 96 AS col0, COUNT( * ) DIV - + COALESCE ( + + 86, + + 64 ) DIV - - 2 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-8211
SELECT ALL 87 / + - 96 AS col0, COUNT ( * ) / - + COALESCE ( + + 86, + + 64 ) / - - 2 AS col1
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT - MIN( DISTINCT + + 65 ) col1, COALESCE ( + - 42, 3 ) AS col2
----
-65
-42

skipif mysql # not compatible
query II rowsort label-8213
SELECT - MIN ( DISTINCT + + 65 ) col1, COALESCE ( + - 42, 3 ) AS col2
----
-65
-42

query I rowsort
SELECT - 69 + - 41 + - 83 col0
----
-193

query I rowsort
SELECT ALL 33 * + - 42
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + MAX( + 66 ) * 44
----
2904

skipif mysql # not compatible
query I rowsort label-8216
SELECT + MAX ( + 66 ) * 44
----
2904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL ( - - 63 ) * - 21 + - 30 + COALESCE ( - 31, - + COUNT( * ), - + NULLIF ( 59, - COALESCE ( - + COUNT( * ), - 19 + + 58, - COUNT( * ), - 95 ) ) + + 61 ) * - + ( - CAST( + - CAST( - 96 AS SIGNED ) AS SIGNED ) ) col2
----
-4329

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL ( - - 63 ) * - 21 + - 30 + COALESCE ( - 31, - + COUNT ( * ), - + NULLIF ( 59, - COALESCE ( - + COUNT ( * ), - 19 + + 58, - COUNT ( * ), - 95 ) ) + + 61 ) * - + ( - CAST ( + - CAST ( - 96 AS INTEGER ) AS INTEGER ) ) col2
----
-4329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT + 68 + 45 * CAST( NULL AS SIGNED ) * ( 35 ) * 41 + + + 94 * + 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT + 68 + 45 * CAST ( NULL AS INTEGER ) * ( 35 ) * 41 + + + 94 * + 41 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8219
SELECT + COUNT ( * ) / + COUNT ( * ) * + - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8220
SELECT + ( 19 ) * + + 84 + + 24, + 3 DIV + + NULLIF ( + 80, + - SUM( DISTINCT + + 98 ) ) * SUM( + 20 ) + COUNT( * ) AS col1
----
1620
1

skipif mysql # not compatible
query II rowsort label-8220
SELECT + ( 19 ) * + + 84 + + 24, + 3 / + + NULLIF ( + 80, + - SUM ( DISTINCT + + 98 ) ) * SUM ( + 20 ) + COUNT ( * ) AS col1
----
1620
1

query I rowsort
SELECT + CASE - 1 WHEN + - 86 - + - 58 THEN - + 77 * + - 58 ELSE + 26 END
----
26

query I rowsort
SELECT + ( - 43 ) * + ( - - 28 )
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL - 81 * - 50 + COUNT( * ) AS col2
----
4051

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - 81 * - 50 + COUNT ( * ) AS col2
----
4051

query I rowsort
SELECT - NULLIF ( - + 99, + 98 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT + + COUNT( - - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT + + COUNT ( - - 40 ) AS col0
----
1

query I rowsort
SELECT ALL - 45 * - - 46 + - 53 + 63 + 45 * - 88 AS col1
----
-6020

query I rowsort
SELECT DISTINCT - - 80 * 23
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL + - COALESCE ( COUNT( * ), - 4, - 66 * + 27 + - - 52 * + 74 - - 21 + + 17 + COALESCE ( + + COUNT( * ), + SUM( CAST( NULL AS SIGNED ) ), 94 ) - + 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + - COALESCE ( COUNT ( * ), - 4, - 66 * + 27 + - - 52 * + 74 - - 21 + + 17 + COALESCE ( + + COUNT ( * ), + SUM ( CAST ( NULL AS INTEGER ) ), 94 ) - + 56 )
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 34, + 53 ) * - 99 * - 73
----
245718

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL + COALESCE ( - + 76, - 46 + - + COUNT( * ), + - 4 * + 29 ) * - 62 * - + 49 + + 71
----
-230817

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + COALESCE ( - + 76, - 46 + - + COUNT ( * ), + - 4 * + 29 ) * - 62 * - + 49 + + 71
----
-230817

query I rowsort
SELECT - COALESCE ( 24, - + 9 )
----
-24

query I rowsort
SELECT ALL + + NULLIF ( + 55, + 50 ) AS col2
----
55

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

skipif mysql # not compatible
query I rowsort label-8233
SELECT - - COUNT ( * ) * + + COUNT ( * ) / 5
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8234
SELECT - CASE - + 63 WHEN + - COUNT( * ) THEN NULL WHEN CAST( - - 79 AS DECIMAL ) * 73 + + COUNT( * ) THEN - 65 * + - 6 + 80 END + - + 97 + - ( 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT - CASE - + 63 WHEN + - COUNT ( * ) THEN NULL WHEN CAST ( - - 79 AS REAL ) * 73 + + COUNT ( * ) THEN - 65 * + - 6 + 80 END + - + 97 + - ( 46 ) AS col2
----
NULL

query I rowsort
SELECT - 20 * + 91 AS col0
----
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT - 58 * 42 DIV 7 AS col2
----
-348

skipif mysql # not compatible
query I rowsort label-8236
SELECT - 58 * 42 / 7 AS col2
----
-348

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

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

query I rowsort
SELECT - 5 + 82
----
77

query I rowsort
SELECT ALL - 99 * + 12
----
-1188

query II rowsort
SELECT ALL 65, 27 AS col2
----
65
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL ( CASE + 70 WHEN - ( 48 ) THEN - 24 + + + 76 WHEN - COALESCE ( - 76, + - 84 * CASE - 43 WHEN - SUM( DISTINCT + - 45 ) THEN NULL ELSE + 92 * + + 5 + + 1 END * + - 21, + - COUNT( * ) * - + 71 * - 22, 52 ) + + + 25 * - - 18 THEN 94 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL ( CASE + 70 WHEN - ( 48 ) THEN - 24 + + + 76 WHEN - COALESCE ( - 76, + - 84 * CASE - 43 WHEN - SUM ( DISTINCT + - 45 ) THEN NULL ELSE + 92 * + + 5 + + 1 END * + - 21, + - COUNT ( * ) * - + 71 * - 22, 52 ) + + + 25 * - - 18 THEN 94 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8242
SELECT 43 AS col1, + 2 * - ( - COUNT( * ) )
----
43
2

skipif mysql # not compatible
query II rowsort label-8242
SELECT 43 AS col1, + 2 * - ( - COUNT ( * ) )
----
43
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8243
SELECT - COUNT( * ), - 39 + - - COUNT( * ) DIV - 73 * - 86 AS col2
----
-1
-39

skipif mysql # not compatible
query II rowsort label-8243
SELECT - COUNT ( * ), - 39 + - - COUNT ( * ) / - 73 * - 86 AS col2
----
-1
-39

query I rowsort
SELECT + 92 * - + 34 * 1 AS col0
----
-3128

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL - 36 DIV + + 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - 36 / + + 22 AS col2
----
-1

query II rowsort
SELECT DISTINCT 82, 38 AS col2
----
82
38

query II rowsort
SELECT - 56 * - 24 * - 19 AS col1, 63 AS col2
----
-25536
63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT - NULLIF ( - - 74, - 70 / + + 84 * + 34 / - COALESCE ( CAST( 5 AS SIGNED ), 31 * + 52 / + + CAST( NULL AS SIGNED ) + - COUNT( * ), + COUNT( * ) ) - + SUM( DISTINCT 77 ) - + 23 ) * + 79 + - 97
----
-5943

skipif mysql # not compatible
query I rowsort label-8250
SELECT - NULLIF ( - - 74, - 70 / + + 84 * + 34 / - COALESCE ( CAST ( 5 AS INTEGER ), 31 * + 52 / + + CAST ( NULL AS INTEGER ) + - COUNT ( * ), + COUNT ( * ) ) - + SUM ( DISTINCT 77 ) - + 23 ) * + 79 + - 97
----
-5943

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL + MIN( ALL 21 ) + 53
----
74

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + MIN ( ALL 21 ) + 53
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8252
SELECT ALL 20 + + 49 DIV COUNT( * ) DIV + - 56 * - - 52 * - COUNT( * ) AS col0, 76 AS col0
----
20
76

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL 20 + + 49 / COUNT ( * ) / + - 56 * - - 52 * - COUNT ( * ) AS col0, 76 AS col0
----
20
76

query II rowsort
SELECT 62 col0, 28 AS col1
----
62
28

query I rowsort
SELECT + - 36 * + 31 AS col2
----
-1116

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

skipif mysql # not compatible
query I rowsort label-8255
SELECT + COUNT ( * ) / ( 21 ) + + 25 AS col1
----
25

query II rowsort
SELECT + + 61 AS col1, - 7 * - 36 * + 81 AS col2
----
61
20412

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT + 75 + - + 16 - - 23 - - 6 * 55 / + COUNT( * ) / - + CASE 52 WHEN COUNT( * ) * - MIN( + 85 ) THEN NULL WHEN + 12 * + - 65 * + 26 THEN + + SUM( + 26 ) * + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 75 + - + 16 - - 23 - - 6 * 55 / + COUNT ( * ) / - + CASE 52 WHEN COUNT ( * ) * - MIN ( + 85 ) THEN NULL WHEN + 12 * + - 65 * + 26 THEN + + SUM ( + 26 ) * + + COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT + + 51, - 1 + + 7 * - 99 AS col0
----
51
-694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8259
SELECT 26 * - 11 + - 2 + COUNT( DISTINCT + + 77 ) DIV + 22 * + 17
----
-288

skipif mysql # not compatible
query I rowsort label-8259
SELECT 26 * - 11 + - 2 + COUNT ( DISTINCT + + 77 ) / + 22 * + 17
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + + 51 + + COUNT( * ) - + + 5 * - - 70 + - 88 col0
----
-386

skipif mysql # not compatible
query I rowsort label-8260
SELECT + + 51 + + COUNT ( * ) - + + 5 * - - 70 + - 88 col0
----
-386

query I rowsort
SELECT ALL - 40 - - 7 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT - MIN( ALL - 97 ) * + - ( + - 75 ) * - 3 + - 43 * - + 96 - - + MAX( + 24 ) - COUNT( * )
----
-17674

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT - MIN ( ALL - 97 ) * + - ( + - 75 ) * - 3 + - 43 * - + 96 - - + MAX ( + 24 ) - COUNT ( * )
----
-17674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8263
SELECT ALL + MAX( + + 7 ) DIV + + 6
----
1

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + MAX ( + + 7 ) / + + 6
----
1

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

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

query I rowsort
SELECT - 78 * 64 AS col2
----
-4992

query I rowsort
SELECT DISTINCT 17 * - 94 col2
----
-1598

query I rowsort
SELECT ALL 21 - + + 95 + - 2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT COALESCE ( 53, 45 - COALESCE ( - - 43, 82, + CAST( NULL AS SIGNED ) * - 28 ) + - 77 + - 88 * + - 35 )
----
53

skipif mysql # not compatible
query I rowsort label-8268
SELECT COALESCE ( 53, 45 - COALESCE ( - - 43, 82, + CAST ( NULL AS INTEGER ) * - 28 ) + - 77 + - 88 * + - 35 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT - 44 * COUNT( * ) + - 52 DIV - - 99 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8269
SELECT - 44 * COUNT ( * ) + - 52 / - - 99 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT 2 + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT 2 + COUNT ( * ) col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT - 74 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 74 / - 40
----
1

query II rowsort
SELECT ALL - + 44 AS col0, 48 AS col2
----
-44
48

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8274
SELECT DISTINCT 69 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT 69 * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 56 AS col2, - 60 AS col1
----
56
-60

query II rowsort
SELECT ALL 8, - 66 AS col2
----
8
-66

query I rowsort
SELECT 40 * - 48 * - - 65 AS col0
----
-124800

query I rowsort
SELECT 49 + 96 + 80 * + ( 48 ) AS col2
----
3985

query I rowsort
SELECT DISTINCT - 50 * + - 76
----
3800

query I rowsort
SELECT ALL + 95 + 14 * - 97
----
-1263

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT SUM( 81 ) - 27 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8281
SELECT SUM ( 81 ) - 27 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8282
SELECT 55 + - COUNT( * ) + - CAST( NULL AS SIGNED ) * 96, NULLIF ( - 62, + COUNT( * ) + - - 14 ) col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-8282
SELECT 55 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 96, NULLIF ( - 62, + COUNT ( * ) + - - 14 ) col1
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL - 23 + + MAX( ALL 90 ) * + + 1
----
67

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - 23 + + MAX ( ALL 90 ) * + + 1
----
67

query I rowsort
SELECT 71 + 18
----
89

query II rowsort
SELECT - 41 col2, - 75 + - 42
----
-41
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - 32 * + - NULLIF ( 57, + 70 / + 71 ) * - - 92 + COUNT( * ) col1
----
167809

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - 32 * + - NULLIF ( 57, + 70 / + 71 ) * - - 92 + COUNT ( * ) col1
----
167809

query I rowsort
SELECT DISTINCT + 78 + 29 * + - 28 AS col0
----
-734

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT 39 col0, CASE 75 WHEN + 93 THEN NULL WHEN - - ( + 61 ) / - 48 THEN - + COUNT( - 64 ) END * + AVG ( DISTINCT - + 90 ) + + + 87 AS col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8288
SELECT 39 col0, CASE 75 WHEN + 93 THEN NULL WHEN - - ( + 61 ) / - 48 THEN - + COUNT ( - 64 ) END * + AVG ( DISTINCT - + 90 ) + + + 87 AS col0
----
39
NULL

query I rowsort
SELECT 89 + + 83 col1
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT + ( + 29 ) DIV CAST( - 54 AS SIGNED ) * 21 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + ( + 29 ) / CAST ( - 54 AS INTEGER ) * 21 * + - COUNT ( * )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 73 * 22 + - 47 + - + 91 + + CASE + - 4 WHEN + 54 + + + 40 THEN NULL WHEN + - 73 THEN NULL ELSE + - 99 END + + - 95 * - 50 + 60 * + 21 + + - COUNT( * )
----
7378

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 73 * 22 + - 47 + - + 91 + + CASE + - 4 WHEN + 54 + + + 40 THEN NULL WHEN + - 73 THEN NULL ELSE + - 99 END + + - 95 * - 50 + 60 * + 21 + + - COUNT ( * )
----
7378

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + 59 * - COUNT( * ) + + NULLIF ( - 20, - 96 * ( - + SUM( - 42 ) ) * 16 + - - COUNT( * ) / - ( + - 27 ) ) + ( + 5 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8293
SELECT + 59 * - COUNT ( * ) + + NULLIF ( - 20, - 96 * ( - + SUM ( - 42 ) ) * 16 + - - COUNT ( * ) / - ( + - 27 ) ) + ( + 5 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT + + COUNT( * ), - 36 + - ( + 75 ) AS col0
----
1
-111

skipif mysql # not compatible
query II rowsort label-8294
SELECT + + COUNT ( * ), - 36 + - ( + 75 ) AS col0
----
1
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT - 42 * COUNT( * ) * ( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT - 42 * COUNT ( * ) * ( + 0 )
----
0

query II rowsort
SELECT - 57 AS col1, 96 AS col0
----
-57
96

query II rowsort
SELECT 27 AS col0, 11 AS col1
----
27
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL CAST( NULL AS SIGNED ) * NULLIF ( + - 5, - 33 ) * CAST( NULL AS SIGNED ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL CAST ( NULL AS INTEGER ) * NULLIF ( + - 5, - 33 ) * CAST ( NULL AS INTEGER ) + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + 75 * ( - + 37 ) + - 16 * 90 + - ( + 76 ) * - 77 - + - 36 - - - 8 * + + COUNT( * )
----
1665

skipif mysql # not compatible
query I rowsort label-8299
SELECT + 75 * ( - + 37 ) + - 16 * 90 + - ( + 76 ) * - 77 - + - 36 - - - 8 * + + COUNT ( * )
----
1665

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8303
SELECT ALL - + CAST( NULL AS SIGNED ), + SUM( ALL 70 ) AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8303
SELECT ALL - + CAST ( NULL AS INTEGER ), + SUM ( ALL 70 ) AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT COUNT( * ) * - 77, ( + 19 ) AS col2
----
-77
19

skipif mysql # not compatible
query II rowsort label-8304
SELECT COUNT ( * ) * - 77, ( + 19 ) AS col2
----
-77
19

query II rowsort
SELECT ALL 10 * + 73 AS col1, - 19
----
730
-19

query I rowsort
SELECT ( 75 ) * - 8 AS col0
----
-600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8307
SELECT ( + CAST( NULL AS DECIMAL ) ) / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ( + CAST ( NULL AS REAL ) ) / + 64
----
NULL

query I rowsort
SELECT ALL 51 + - 72 * + 87 + + 54 AS col0
----
-6159

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT - 63 * - MAX( ALL - + 70 ) + + 64 + + NULLIF ( - 90, AVG ( ALL - - 80 ) ) * COALESCE ( + CASE - 74 WHEN - - 91 THEN + + 97 WHEN 35 * + - 3 * + ( 29 ) * + 32 / - 82 THEN NULL ELSE NULL END, 40 ), ( + 88 ) AS col2
----
-7946
88

skipif mysql # not compatible
query II rowsort label-8309
SELECT - 63 * - MAX ( ALL - + 70 ) + + 64 + + NULLIF ( - 90, AVG ( ALL - - 80 ) ) * COALESCE ( + CASE - 74 WHEN - - 91 THEN + + 97 WHEN 35 * + - 3 * + ( 29 ) * + 32 / - 82 THEN NULL ELSE NULL END, 40 ), ( + 88 ) AS col2
----
-7946
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL ( + ( - COUNT( * ) ) ) * + CASE - - 24 WHEN - 57 * COUNT( * ) + - 60 THEN - - AVG ( - + 6 ) * - 88 * - 19 WHEN - 97 THEN + - 24 / - - 19 ELSE NULL END * - - 70 - - + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL ( + ( - COUNT ( * ) ) ) * + CASE - - 24 WHEN - 57 * COUNT ( * ) + - 60 THEN - - AVG ( - + 6 ) * - 88 * - 19 WHEN - 97 THEN + - 24 / - - 19 ELSE NULL END * - - 70 - - + 44 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT ( + 7 ) DIV + - NULLIF ( 18, - 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8311
SELECT ( + 7 ) / + - NULLIF ( 18, - 43 ) AS col0
----
0

query II rowsort
SELECT DISTINCT + 91 + + 13 + 62 AS col1, + 35 AS col1
----
166
35

query I rowsort
SELECT ALL 15 * - ( + - 80 )
----
1200

query I rowsort
SELECT DISTINCT 74 + - 87
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT ALL MIN( DISTINCT + 84 ) AS col2, 52 + + 0 AS col1
----
84
52

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL MIN ( DISTINCT + 84 ) AS col2, 52 + + 0 AS col1
----
84
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT + COALESCE ( CAST( + - 77 AS SIGNED ), - 38 - - 11 ) * + + 68 AS col2
----
-5236

skipif mysql # not compatible
query I rowsort label-8316
SELECT + COALESCE ( CAST ( + - 77 AS INTEGER ), - 38 - - 11 ) * + + 68 AS col2
----
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL + - COALESCE ( + - 66, + - 92 * - + 74 + - - 35 * - NULLIF ( 65, + COUNT( - 95 ) * - - 53 + 34 ) ) * - 6 * + 5 + - 57 col0
----
-2037

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + - COALESCE ( + - 66, + - 92 * - + 74 + - - 35 * - NULLIF ( 65, + COUNT ( - 95 ) * - - 53 + 34 ) ) * - 6 * + 5 + - 57 col0
----
-2037

query II rowsort
SELECT DISTINCT - ( + 41 ) - - - 84 AS col2, 88
----
-125
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT ALL COALESCE ( COUNT( * ), - + 25 * - 75 DIV + - 8 + + + MAX( DISTINCT 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL COALESCE ( COUNT ( * ), - + 25 * - 75 / + - 8 + + + MAX ( DISTINCT 97 ) )
----
1

query I rowsort
SELECT ALL - - 23 - + - 93
----
116

query I rowsort
SELECT ALL + - 61 * + 87 + - + 27 * + ( + 41 ) AS col1
----
-6414

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT - 84 * + COUNT( * ) AS col2, + ( - 72 ) AS col0
----
-84
-72

skipif mysql # not compatible
query II rowsort label-8322
SELECT - 84 * + COUNT ( * ) AS col2, + ( - 72 ) AS col0
----
-84
-72

query I rowsort
SELECT - 93 - 61
----
-154

query I rowsort
SELECT COALESCE ( - 68, + 67 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT + + CASE + - 88 WHEN ( + CAST( NULL AS SIGNED ) ) THEN - 53 WHEN + - 30 THEN NULL WHEN + - 2 * 57 * - 36 * - COUNT( * ) / + CAST( NULL AS SIGNED ) - + 14 + COUNT( * ) * - - 35 * + 7 * + 76 * - - MAX( ALL + + 7 ) THEN 22 END * + COUNT( ALL 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + + CASE + - 88 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN - 53 WHEN + - 30 THEN NULL WHEN + - 2 * 57 * - 36 * - COUNT ( * ) / + CAST ( NULL AS INTEGER ) - + 14 + COUNT ( * ) * - - 35 * + 7 * + 76 * - - MAX ( ALL + + 7 ) THEN 22 END * + COUNT ( ALL 30 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + - MIN( 53 ) * - 80
----
4240

skipif mysql # not compatible
query I rowsort label-8327
SELECT + - MIN ( 53 ) * - 80
----
4240

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT + - CASE - 79 WHEN + 13 * + 0 THEN + COUNT( DISTINCT + - 86 ) + - 28 ELSE NULL END * - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT + - CASE - 79 WHEN + 13 * + 0 THEN + COUNT ( DISTINCT + - 86 ) + - 28 ELSE NULL END * - ( - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8329
SELECT ALL + - 69 DIV - 19, 53 AS col2
----
3
53

skipif mysql # not compatible
query II rowsort label-8329
SELECT ALL + - 69 / - 19, 53 AS col2
----
3
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8330
SELECT - 96 DIV - - 28 AS col1, 47 * COUNT( * )
----
-3
47

skipif mysql # not compatible
query II rowsort label-8330
SELECT - 96 / - - 28 AS col1, 47 * COUNT ( * )
----
-3
47

query I rowsort
SELECT DISTINCT + - 65 AS col1
----
-65

query I rowsort
SELECT DISTINCT + 38 * - 73 AS col0
----
-2774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL + - 89 * + 76 + + COUNT( * ) + + 2 + SUM( - 13 ) * + 33 * + 81 + 46 DIV + 7 - + COUNT( * ) AS col1
----
-41505

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + - 89 * + 76 + + COUNT ( * ) + + 2 + SUM ( - 13 ) * + 33 * + 81 + 46 / + 7 - + COUNT ( * ) AS col1
----
-41505

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL 34 * + 88 * - - 35 * - + 13 + + ( + SUM( DISTINCT - - 43 ) ) AS col1
----
-1361317

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 34 * + 88 * - - 35 * - + 13 + + ( + SUM ( DISTINCT - - 43 ) ) AS col1
----
-1361317

query I rowsort
SELECT + 75 + + 25
----
100

query I rowsort
SELECT ALL + ( 36 ) * + 13 * - - 83
----
38844

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8338
SELECT + 8, - 8 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 80 AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8338
SELECT + 8, - 8 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 80 AS col0
----
8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT - COUNT( - - CAST( + - 35 AS SIGNED ) ) * 1
----
-1

skipif mysql # not compatible
query I rowsort label-8339
SELECT - COUNT ( - - CAST ( + - 35 AS INTEGER ) ) * 1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 27 * 74 / + 8 + ( 9 ) / - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 27 * 74 / + 8 + ( 9 ) / - 12 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - SUM( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8341
SELECT - SUM ( 74 ) AS col2
----
-74

query I rowsort
SELECT ALL - 77 + 89 AS col1
----
12

query I rowsort
SELECT DISTINCT 33 + - - 89 AS col0
----
122

query II rowsort
SELECT - COALESCE ( - + 27, - 68 ), 52 + 69 + - 10 AS col1
----
27
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT DISTINCT 9 - 64 * + MAX( DISTINCT - COALESCE ( 84, 8 DIV + - 93, 50 ) ) AS col0
----
5385

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT 9 - 64 * + MAX ( DISTINCT - COALESCE ( 84, 8 / + - 93, 50 ) ) AS col0
----
5385

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT ALL 68 DIV 6 * 86 AS col0
----
946

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL 68 / 6 * 86 AS col0
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + COUNT( * ) + + + COUNT( * ) * - - 82
----
83

skipif mysql # not compatible
query I rowsort label-8347
SELECT + COUNT ( * ) + + + COUNT ( * ) * - - 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + COUNT( + - 77 ) + + - 77 + - + 83
----
-159

skipif mysql # not compatible
query I rowsort label-8348
SELECT + COUNT ( + - 77 ) + + - 77 + - + 83
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8349
SELECT + 32 * - CAST( 18 AS SIGNED ) AS col2, COUNT( - + ( + 27 ) ) AS col0, - CAST( + 72 AS SIGNED ) + - 17
----
-576
1
-89

skipif mysql # not compatible
query III rowsort label-8349
SELECT + 32 * - CAST ( 18 AS INTEGER ) AS col2, COUNT ( - + ( + 27 ) ) AS col0, - CAST ( + 72 AS INTEGER ) + - 17
----
-576
1
-89

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

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

query I rowsort
SELECT DISTINCT - 66 * - - 58
----
-3828

query II rowsort
SELECT ALL - 8 AS col0, - 35
----
-8
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT + MAX( + 16 ) * CASE - COUNT( * ) WHEN 89 THEN NULL WHEN + COALESCE ( + + ( + COUNT( * ) ), 25 + + 87 * + 12 ) * - + 22 + 40 + 54 - 58 * + COUNT( * ) / 48 + + 59 + + + 55 / - 97 * + COUNT( * ) * + + 76 * - 94 - - 56 + 86 THEN - 55 ELSE + ( - 28 ) * 73 END / CASE + COUNT( * ) WHEN + NULLIF ( - COUNT( * ), - 99 * CASE ( - 67 ) WHEN - 29 THEN + + ( - COUNT( * ) ) WHEN + COUNT( * ) - 65 THEN - - ( - + 77 ) ELSE NULL END / 76 - - + 95 ) * - + 41 + + AVG ( ALL - 33 ) THEN + 78 / - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT + MAX ( + 16 ) * CASE - COUNT ( * ) WHEN 89 THEN NULL WHEN + COALESCE ( + + ( + COUNT ( * ) ), 25 + + 87 * + 12 ) * - + 22 + 40 + 54 - 58 * + COUNT ( * ) / 48 + + 59 + + + 55 / - 97 * + COUNT ( * ) * + + 76 * - 94 - - 56 + 86 THEN - 55 ELSE + ( - 28 ) * 73 END / CASE + COUNT ( * ) WHEN + NULLIF ( - COUNT ( * ), - 99 * CASE ( - 67 ) WHEN - 29 THEN + + ( - COUNT ( * ) ) WHEN + COUNT ( * ) - 65 THEN - - ( - + 77 ) ELSE NULL END / 76 - - + 95 ) * - + 41 + + AVG ( ALL - 33 ) THEN + 78 / - 59 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT DISTINCT 43 * - - CAST( - - 27 AS SIGNED ) + + CASE + + COUNT( * ) WHEN - 86 THEN SUM( 45 ) + COUNT( * ) + + 96 WHEN - COUNT( * ) THEN + - 64 * 80 WHEN 42 * + ( + 32 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT 43 * - - CAST ( - - 27 AS INTEGER ) + + CASE + + COUNT ( * ) WHEN - 86 THEN SUM ( 45 ) + COUNT ( * ) + + 96 WHEN - COUNT ( * ) THEN + - 64 * 80 WHEN 42 * + ( + 32 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT DISTINCT NULLIF ( 24, CAST( NULL AS SIGNED ) - - 76 * + COUNT( * ) / 12 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT NULLIF ( 24, CAST ( NULL AS INTEGER ) - - 76 * + COUNT ( * ) / 12 ) AS col2
----
24

query I rowsort
SELECT + - 47 + - 74
----
-121

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

query I rowsort
SELECT - + 72 + 4 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + - COUNT( * ) * + 30 * + - 43 * - 83
----
-107070

skipif mysql # not compatible
query I rowsort label-8360
SELECT + - COUNT ( * ) * + 30 * + - 43 * - 83
----
-107070

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8361
SELECT - - 97 + CAST( - 12 AS SIGNED ), - 32 + - - 96 AS col2
----
85
64

skipif mysql # not compatible
query II rowsort label-8361
SELECT - - 97 + CAST ( - 12 AS INTEGER ), - 32 + - - 96 AS col2
----
85
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT 19, COUNT( * ) * + 30 col2
----
19
30

skipif mysql # not compatible
query II rowsort label-8362
SELECT 19, COUNT ( * ) * + 30 col2
----
19
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT ALL - - 11 DIV + 5 + - 76 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - - 11 / + 5 + - 76 AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT DISTINCT 91 DIV + COUNT( * ) + 50 * ( + - 4 ) * + 32 * - + COUNT( * ) + + + COUNT( * )
----
6492

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT 91 / + COUNT ( * ) + 50 * ( + - 4 ) * + 32 * - + COUNT ( * ) + + + COUNT ( * )
----
6492

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT - + 45 DIV + 55 + + - NULLIF ( 26, + - 4 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - + 45 / + 55 + + - NULLIF ( 26, + - 4 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT ALL + ( - 81 ) * + ( - 25 ) + - - ( 54 ) AS col0, COUNT( * )
----
2079
1

skipif mysql # not compatible
query II rowsort label-8366
SELECT ALL + ( - 81 ) * + ( - 25 ) + - - ( 54 ) AS col0, COUNT ( * )
----
2079
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT - 28 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT - 28 / 93
----
0

query I rowsort
SELECT 72 * 41 - - - 45
----
2907

query I rowsort
SELECT - 46 * 61
----
-2806

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + NULLIF ( + COUNT( * ), + ( + 7 ) * - - 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + NULLIF ( + COUNT ( * ), + ( + 7 ) * - - 21 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8373
SELECT ALL + 39 * - 87 + + - 48 DIV 28, + 44 + + ( 89 ) * + + 9 * 78 DIV - CAST( NULL AS SIGNED ) DIV + 68 AS col0
----
-3394
NULL

skipif mysql # not compatible
query II rowsort label-8373
SELECT ALL + 39 * - 87 + + - 48 / 28, + 44 + + ( 89 ) * + + 9 * 78 / - CAST ( NULL AS INTEGER ) / + 68 AS col0
----
-3394
NULL

query I rowsort
SELECT - 10 * 41 AS col0
----
-410

query II rowsort
SELECT DISTINCT 21 * + 86 AS col2, 60
----
1806
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT + COALESCE ( + - COUNT( ALL + - 33 ), COUNT( * ) * - COALESCE ( 73, + 76, - - ( - CAST( 69 AS SIGNED ) ) ) + CAST( + AVG ( - 57 ) AS SIGNED ), + CAST( 43 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8377
SELECT + COALESCE ( + - COUNT ( ALL + - 33 ), COUNT ( * ) * - COALESCE ( 73, + 76, - - ( - CAST ( 69 AS INTEGER ) ) ) + CAST ( + AVG ( - 57 ) AS INTEGER ), + CAST ( 43 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8378
SELECT NULLIF ( 47, + ( + CAST( NULL AS SIGNED ) ) ), + 58 + - 71 / - - ( CAST( NULL AS SIGNED ) ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8378
SELECT NULLIF ( 47, + ( + CAST ( NULL AS INTEGER ) ) ), + 58 + - 71 / - - ( CAST ( NULL AS INTEGER ) ) AS col1
----
47
NULL

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

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

query I rowsort
SELECT - 26 + + 52
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT ALL + 1 * + ( - COUNT( - 89 ) ) AS col0, 35 * + - 60
----
-1
-2100

skipif mysql # not compatible
query II rowsort label-8381
SELECT ALL + 1 * + ( - COUNT ( - 89 ) ) AS col0, 35 * + - 60
----
-1
-2100

query I rowsort
SELECT + NULLIF ( 31, 72 )
----
31

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

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

query I rowsort
SELECT 12 + + 18 AS col2
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - 28 - + - 31 * - 72 + + SUM( - 96 ) AS col1
----
-2356

skipif mysql # not compatible
query I rowsort label-8386
SELECT - 28 - + - 31 * - 72 + + SUM ( - 96 ) AS col1
----
-2356

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT 46 DIV 90 * - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT 46 / 90 * - 88 AS col2
----
0

query I rowsort
SELECT - 2 * 66
----
-132

query I rowsort
SELECT ALL 72 + 78 + + 73 + - - 51 AS col1
----
274

query II rowsort
SELECT 76 - + - 91, 30 + - + 56 + - 54 AS col1
----
167
-80

query I rowsort
SELECT 35 * - 66 + 28 - + + 69 + + + 93 + + - 84 AS col2
----
-2342

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT - COUNT( * ) + - 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - COUNT ( * ) + - 69 AS col1
----
-70

query I rowsort
SELECT ALL - 60 + - 5
----
-65

query I rowsort
SELECT DISTINCT 43 + + 69
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT COALESCE ( - 86, COUNT( ALL - 80 ) * - + 13, - ( - CAST( NULL AS SIGNED ) ) ) * - CAST( NULL AS SIGNED ) * + 49 + - - MIN( ALL + 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT COALESCE ( - 86, COUNT ( ALL - 80 ) * - + 13, - ( - CAST ( NULL AS INTEGER ) ) ) * - CAST ( NULL AS INTEGER ) * + 49 + - - MIN ( ALL + 4 ) AS col1
----
NULL

query I rowsort
SELECT ALL 61 * + + ( - + 99 )
----
-6039

query I rowsort
SELECT + 35 + 23 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + 93 * - + 25 - - + 90 - + + MIN( DISTINCT + ( + 10 ) ) AS col1
----
-2245

skipif mysql # not compatible
query I rowsort label-8398
SELECT + 93 * - + 25 - - + 90 - + + MIN ( DISTINCT + ( + 10 ) ) AS col1
----
-2245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT ALL - CAST( + 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - CAST ( + 93 AS INTEGER )
----
-93

query I rowsort
SELECT ALL 88 + 62
----
150

query I rowsort
SELECT ALL 34 + - COALESCE ( - 91, - 37 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT COUNT( * ) + - 41 + - 11 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8402
SELECT COUNT ( * ) + - 41 + - 11 AS col0
----
-51

query I rowsort
SELECT DISTINCT 57 * 19 AS col1
----
1083

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8404
SELECT 68 + - CAST( - ( - 46 ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT 68 + - CAST ( - ( - 46 ) AS INTEGER ) * - CAST ( NULL AS REAL ) * + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8405
SELECT ALL - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) - 34 AS col2, CAST( + + 86 AS SIGNED ) DIV + + 48 + + + 44
----
-34
45

skipif mysql # not compatible
query II rowsort label-8405
SELECT ALL - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) - 34 AS col2, CAST ( + + 86 AS INTEGER ) / + + 48 + + + 44
----
-34
45

onlyif mysql # DIV for integer division: 
query II rowsort label-8406
SELECT ALL 92 * 1 DIV - 87 col0, - 45 * - ( - 77 )
----
-1
-3465

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL 92 * 1 / - 87 col0, - 45 * - ( - 77 )
----
-1
-3465

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT ALL - COUNT( * ) AS col2, + 41 + 98 * + 97 + + 90 + + 96 * + + 54 * + + 46 * 81 AS col1
----
-1
19325221

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL - COUNT ( * ) AS col2, + 41 + 98 * + 97 + + 90 + + 96 * + + 54 * + + 46 * 81 AS col1
----
-1
19325221

query I rowsort
SELECT DISTINCT - 87 * - + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT COUNT( * ) * COUNT( * ) + + + 82 + + 13
----
96

skipif mysql # not compatible
query I rowsort label-8409
SELECT COUNT ( * ) * COUNT ( * ) + + + 82 + + 13
----
96

query I rowsort
SELECT ALL - 78 - - 57 AS col1
----
-21

query I rowsort
SELECT 64 * - 45 AS col0
----
-2880

query I rowsort
SELECT 0 * - - 3 * - - 82 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT ALL - 42 DIV - 33
----
1

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - 42 / - 33
----
1

query I rowsort
SELECT 90 * 49
----
4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8415
SELECT ALL - COALESCE ( + 1, - COALESCE ( - ( + COUNT( * ) ), - 60 + + 84 + - + 90 * + 80 ) + + - CAST( + 5 AS SIGNED ) DIV NULLIF ( + + 48, - - 0 * 22 ) * - 96 * 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - COALESCE ( + 1, - COALESCE ( - ( + COUNT ( * ) ), - 60 + + 84 + - + 90 * + 80 ) + + - CAST ( + 5 AS INTEGER ) / NULLIF ( + + 48, - - 0 * 22 ) * - 96 * 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL - COALESCE ( - 14, ( + 65 ) * - 88 + 56 * 54, - 53 * 0 ) * - COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - COALESCE ( - 14, ( + 65 ) * - 88 + 56 * 54, - 53 * 0 ) * - COUNT ( * ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - ( CASE 13 WHEN 4 THEN COUNT( * ) * + 35 WHEN + ( + 56 ) * 14 - + 53 * 44 THEN NULL ELSE NULL END ) * - COUNT( * ) + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT - ( CASE 13 WHEN 4 THEN COUNT ( * ) * + 35 WHEN + ( + 56 ) * 14 - + 53 * 44 THEN NULL ELSE NULL END ) * - COUNT ( * ) + 6 AS col0
----
NULL

query I rowsort
SELECT 89 * - 68
----
-6052

query I rowsort
SELECT 25 * - 12 AS col1
----
-300

query I rowsort
SELECT ALL - CASE + 17 WHEN + 17 * + ( 36 ) THEN 96 * 61 END + 32 AS col2
----
NULL

query I rowsort
SELECT 5 + 29 * 54
----
1571

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

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT SUM ( DISTINCT 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT 15 + - MIN( 9 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8423
SELECT 15 + - MIN ( 9 ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT 59 + - MIN( 54 - + 0 )
----
5

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT 59 + - MIN ( 54 - + 0 )
----
5

query I rowsort
SELECT ALL 94 + + 49 AS col2
----
143

query I rowsort
SELECT 40 + 76
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL SUM( DISTINCT - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL SUM ( DISTINCT - 25 )
----
-25

query I rowsort
SELECT DISTINCT - 26 + + 11 AS col2
----
-15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT 30 * + CASE - CAST( 55 AS SIGNED ) WHEN 6 THEN - 15 WHEN 70 - 6 THEN NULL WHEN + COUNT( 62 ) THEN + 69 * - CASE - 45 WHEN MAX( 15 ) THEN 84 WHEN - 26 + + 51 * + 13 THEN + 84 END ELSE + 85 * 41 END AS col1
----
104550

skipif mysql # not compatible
query I rowsort label-8430
SELECT 30 * + CASE - CAST ( 55 AS INTEGER ) WHEN 6 THEN - 15 WHEN 70 - 6 THEN NULL WHEN + COUNT ( 62 ) THEN + 69 * - CASE - 45 WHEN MAX ( 15 ) THEN 84 WHEN - 26 + + 51 * + 13 THEN + 84 END ELSE + 85 * 41 END AS col1
----
104550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT CAST( ( - 77 ) AS SIGNED ) + 43
----
-34

skipif mysql # not compatible
query I rowsort label-8431
SELECT CAST ( ( - 77 ) AS INTEGER ) + 43
----
-34

query I rowsort
SELECT DISTINCT 93 + 16
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL 11 * + COUNT( DISTINCT - 42 )
----
11

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL 11 * + COUNT ( DISTINCT - 42 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT 49 DIV COUNT( DISTINCT + 43 )
----
49

skipif mysql # not compatible
query I rowsort label-8434
SELECT 49 / COUNT ( DISTINCT + 43 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL - 1 * MAX( + 34 ) - + 14
----
-48

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL - 1 * MAX ( + 34 ) - + 14
----
-48

query I rowsort
SELECT ALL 16 * 6 col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT ALL 81 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL 81 / 65
----
1

query I rowsort
SELECT 55 * + COALESCE ( 30 * 87, - 78 )
----
143550

query I rowsort
SELECT + COALESCE ( 31, + 42 * 70 + - 27 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT SUM( COALESCE ( - NULLIF ( + 67, - 61 - + 61 * + 28 ), - 91 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8440
SELECT SUM ( COALESCE ( - NULLIF ( + 67, - 61 - + 61 * + 28 ), - 91 ) ) AS col0
----
-67

query I rowsort
SELECT 9 * 8 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT SUM( ALL 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8442
SELECT SUM ( ALL 70 ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT + CASE CAST( NULL AS SIGNED ) WHEN 96 + - MAX( ALL 83 ) THEN NULL WHEN 0 THEN NULL ELSE 78 END
----
78

skipif mysql # not compatible
query I rowsort label-8443
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN 96 + - MAX ( ALL 83 ) THEN NULL WHEN 0 THEN NULL ELSE 78 END
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT + CASE + 13 WHEN 81 THEN - COUNT( * ) WHEN ( MAX( 67 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT + CASE + 13 WHEN 81 THEN - COUNT ( * ) WHEN ( MAX ( 67 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 2 * - 91
----
-182

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

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

query I rowsort
SELECT DISTINCT 37 + 87
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + COUNT( * ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-8448
SELECT + COUNT ( * ) + 82
----
83

query I rowsort
SELECT 84 * 48 - - 70
----
4102

query I rowsort
SELECT ALL - - 85 + + 16 * - 68 AS col1
----
-1003

query I rowsort
SELECT - 27 * 39 + 89
----
-964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT CAST( - 80 AS SIGNED ) + ( - ( 56 ) - 32 ) AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT CAST ( - 80 AS INTEGER ) + ( - ( 56 ) - 32 ) AS col2
----
-168

query I rowsort
SELECT DISTINCT - - 47 + + 52 col2
----
99

query I rowsort
SELECT - - 41 + 28 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL + 44 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + 44 / 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT - - NULLIF ( 54, - 48 - + 26 * CAST( NULL AS SIGNED ) ) * - 88
----
-4752

skipif mysql # not compatible
query I rowsort label-8456
SELECT - - NULLIF ( 54, - 48 - + 26 * CAST ( NULL AS INTEGER ) ) * - 88
----
-4752

query I rowsort
SELECT DISTINCT + ( + 46 ) * 4
----
184

query I rowsort
SELECT DISTINCT + + 68 + 67 col0
----
135

query I rowsort
SELECT ALL - + 5 + 58 AS col0
----
53

query I rowsort
SELECT ALL + 78 + 90
----
168

query I rowsort
SELECT - - 72 - 90 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - MAX( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8462
SELECT - MAX ( 63 ) AS col0
----
-63

query I rowsort
SELECT - + 97 - 43 AS col1
----
-140

query I rowsort
SELECT + 9 * - 45
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8465
SELECT DISTINCT - CAST( NULLIF ( - 19, 17 * 50 - - 27 * COUNT( * ) ) AS SIGNED ) * - 64 AS col2
----
-1216

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - CAST ( NULLIF ( - 19, 17 * 50 - - 27 * COUNT ( * ) ) AS INTEGER ) * - 64 AS col2
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - - COUNT( * ) + CAST( + CAST( 95 AS SIGNED ) + + MAX( + 56 ) AS SIGNED ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-8466
SELECT - - COUNT ( * ) + CAST ( + CAST ( 95 AS INTEGER ) + + MAX ( + 56 ) AS INTEGER ) AS col1
----
152

query I rowsort
SELECT ALL + + 26 - 4 col1
----
22

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

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

query I rowsort
SELECT ALL 5 - 37
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - COUNT( * ) * 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( * ) * 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT DISTINCT NULLIF ( + COUNT( * ), - SUM( + 66 ) * 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT NULLIF ( + COUNT ( * ), - SUM ( + 66 ) * 98 )
----
1

query I rowsort
SELECT ALL NULLIF ( + - 59, 25 ) AS col0
----
-59

query I rowsort
SELECT - 57 + 7 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - MIN( DISTINCT - 37 ) * - 11 AS col1
----
-407

skipif mysql # not compatible
query I rowsort label-8474
SELECT - MIN ( DISTINCT - 37 ) * - 11 AS col1
----
-407

query I rowsort
SELECT + COALESCE ( - 84, 25, 35 - ( + 84 ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT - 51 + + - 97 DIV 41 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8476
SELECT - 51 + + - 97 / 41 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8477
SELECT + NULLIF ( 7, CAST( - MAX( 25 ) AS DECIMAL ) )
----
7

skipif mysql # not compatible
query I rowsort label-8477
SELECT + NULLIF ( 7, CAST ( - MAX ( 25 ) AS REAL ) )
----
7

query I rowsort
SELECT + 15 * + - 8 AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT - NULLIF ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - SUM( 26 ) + + 41 ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT - NULLIF ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - SUM ( 26 ) + + 41 ) + 47
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT + 69 DIV 63 * + COALESCE ( 95, 77 * + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + 69 / 63 * + COALESCE ( 95, 77 * + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT MAX( ALL 29 ) * 3 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT MAX ( ALL 29 ) * 3 AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT + ( - - 69 ) DIV - COUNT( * ) + COALESCE ( 56, + 18 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8484
SELECT + ( - - 69 ) / - COUNT ( * ) + COALESCE ( 56, + 18 ) AS col1
----
-13

query I rowsort
SELECT ALL + 42 * + + 68
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL NULLIF ( - 26, NULLIF ( 35, COUNT( * ) * + 70 ) * COUNT( * ) ) * - COUNT( * ) + CAST( NULL AS SIGNED ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL NULLIF ( - 26, NULLIF ( 35, COUNT ( * ) * + 70 ) * COUNT ( * ) ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) * 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT DISTINCT ( - + 91 ) DIV - 13 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT ( - + 91 ) / - 13 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) * - CAST( - 39 / + 24 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - CAST ( - 39 / + 24 AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8489
SELECT + 49 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + COUNT( DISTINCT - 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT + COUNT ( DISTINCT - 50 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 88 * - MAX( DISTINCT 75 ) + + CASE 85 WHEN 69 THEN - MAX( ALL + 15 ) WHEN + 40 THEN - 90 ELSE NULL END * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT 88 * - MAX ( DISTINCT 75 ) + + CASE 85 WHEN 69 THEN - MAX ( ALL + 15 ) WHEN + 40 THEN - 90 ELSE NULL END * - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL - COUNT( * ) * 90 * - 96 + - MAX( DISTINCT 12 )
----
8628

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - COUNT ( * ) * 90 * - 96 + - MAX ( DISTINCT 12 )
----
8628

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL - 82 * - 81 + COUNT( * )
----
6643

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - 82 * - 81 + COUNT ( * )
----
6643

query I rowsort
SELECT + 8 + - 80
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT - - COUNT( * ) * + 24 + - 91 * - COUNT( * ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - - COUNT ( * ) * + 24 + - 91 * - COUNT ( * ) AS col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT - 3 * - + 4 + 95 * 34 + 56 DIV + 63 AS col0
----
3242

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT - 3 * - + 4 + 95 * 34 + 56 / + 63 AS col0
----
3242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT DISTINCT - - CASE 82 WHEN + CAST( NULL AS SIGNED ) * 78 THEN + COALESCE ( 46, 49, 4, 26 * 27 - 46, 50 ) END * + 32 + - 6 * + CASE - 71 * - 34 WHEN 5 THEN 27 + 8 WHEN 94 THEN 71 - 48 ELSE - CASE - 36 WHEN + 75 THEN 27 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT - - CASE 82 WHEN + CAST ( NULL AS INTEGER ) * 78 THEN + COALESCE ( 46, 49, 4, 26 * 27 - 46, 50 ) END * + 32 + - 6 * + CASE - 71 * - 34 WHEN 5 THEN 27 + 8 WHEN 94 THEN 71 - 48 ELSE - CASE - 36 WHEN + 75 THEN 27 END END
----
NULL

query I rowsort
SELECT + ( - 77 ) * - 62
----
4774

query I rowsort
SELECT ( + 97 ) col1
----
97

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

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

query I rowsort
SELECT + 10 + - 35 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + - 43 * + SUM( DISTINCT ( 90 ) ) + 38 * COALESCE ( 26, + 81 + + ( SUM( 24 ) ), 10 + 39 )
----
-2882

skipif mysql # not compatible
query I rowsort label-8502
SELECT + - 43 * + SUM ( DISTINCT ( 90 ) ) + 38 * COALESCE ( 26, + 81 + + ( SUM ( 24 ) ), 10 + 39 )
----
-2882

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + COUNT( * ) + + 92 + - 79
----
14

skipif mysql # not compatible
query I rowsort label-8503
SELECT + COUNT ( * ) + + 92 + - 79
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + 38 + + 79 * ( 20 + + COUNT( * ) ) AS col1
----
1697

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 38 + + 79 * ( 20 + + COUNT ( * ) ) AS col1
----
1697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL - 41 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - 41 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - SUM( + + 61 ) * 72 col2
----
-4392

skipif mysql # not compatible
query I rowsort label-8507
SELECT - SUM ( + + 61 ) * 72 col2
----
-4392

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT - + 60 + - COUNT( * ) + 16 DIV 55 col0
----
-61

skipif mysql # not compatible
query I rowsort label-8509
SELECT - + 60 + - COUNT ( * ) + 16 / 55 col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT + 55 DIV + - 98 * CAST( - 94 * - 5 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 55 / + - 98 * CAST ( - 94 * - 5 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT 34 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT 34 / - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8512
SELECT - CAST ( NULL AS INTEGER ) / + + 30
----
NULL

query I rowsort
SELECT + 57 * 45
----
2565

query I rowsort
SELECT ALL - 46 * + 58 AS col0
----
-2668

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

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

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

query I rowsort
SELECT DISTINCT + 73 * + NULLIF ( + - 46, 77 * 13 )
----
-3358

query I rowsort
SELECT 10 + 83 AS col2
----
93

query I rowsort
SELECT ALL + 83 * 87 AS col1
----
7221

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

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

skipif mysql # not compatible
query I rowsort label-8521
SELECT 90 * CAST ( NULL AS INTEGER ) * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT + 74 * - + 8 * + SUM( DISTINCT + 50 )
----
-29600

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT + 74 * - + 8 * + SUM ( DISTINCT + 50 )
----
-29600

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT 32, - 16 + COUNT( * ) + + 4 AS col2
----
32
-11

skipif mysql # not compatible
query II rowsort label-8523
SELECT 32, - 16 + COUNT ( * ) + + 4 AS col2
----
32
-11

query I rowsort
SELECT 3 * + 18
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL + 56 + + SUM( + 17 ) + - 72 * 41 col0
----
-2879

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + 56 + + SUM ( + 17 ) + - 72 * 41 col0
----
-2879

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT DISTINCT - 2 + + + 38 + 49 DIV 9
----
41

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT - 2 + + + 38 + 49 / 9
----
41

query II rowsort
SELECT 13, 65 AS col1
----
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL - COUNT( ALL 38 ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - COUNT ( ALL 38 ) + - 24 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8529
SELECT 11 DIV COALESCE ( + - ( - 28 ), 81 * COUNT( * ), 66 ) + 26
----
26

skipif mysql # not compatible
query I rowsort label-8529
SELECT 11 / COALESCE ( + - ( - 28 ), 81 * COUNT ( * ), 66 ) + 26
----
26

query I rowsort
SELECT NULLIF ( + 77, ( 65 ) ) * - 75
----
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT - COUNT( DISTINCT - 20 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - COUNT ( DISTINCT - 20 ) col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT 27 + + + COUNT( DISTINCT - - 9 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT 27 + + + COUNT ( DISTINCT - - 9 ) AS col0
----
28

query I rowsort
SELECT - 97 - - - 91 * - - 53 AS col1
----
-4920

query I rowsort
SELECT ALL - + ( - 34 ) * - 0 * - 61
----
0

query I rowsort
SELECT ALL + 13 + 95
----
108

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - COALESCE ( + 52, + + ( - 47 ) - - COUNT( * ) DIV CASE - 62 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE - 11 END ) * - 72
----
3744

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - COALESCE ( + 52, + + ( - 47 ) - - COUNT ( * ) / CASE - 62 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE - 11 END ) * - 72
----
3744

query I rowsort
SELECT DISTINCT + ( - 98 ) - - ( - 34 )
----
-132

query I rowsort
SELECT 66 + 54
----
120

query I rowsort
SELECT DISTINCT 12 - - 36 + - - 52 * 71
----
3740

onlyif mysql # DIV for integer division: 
query II rowsort label-8543
SELECT ALL - 25, + 79 DIV 65 + + 48 AS col0
----
-25
49

skipif mysql # not compatible
query II rowsort label-8543
SELECT ALL - 25, + 79 / 65 + + 48 AS col0
----
-25
49

onlyif mysql # DIV for integer division: 
query II rowsort label-8544
SELECT + 73, COALESCE ( + 17, 86 DIV + 86 ) * 71 col1
----
73
1207

skipif mysql # not compatible
query II rowsort label-8544
SELECT + 73, COALESCE ( + 17, 86 / + 86 ) * 71 col1
----
73
1207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT - - CAST( NULL AS SIGNED ) * + - NULLIF ( + ( - 30 ), - 9 ) + 37 / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT - - CAST ( NULL AS INTEGER ) * + - NULLIF ( + ( - 30 ), - 9 ) + 37 / - 23
----
NULL

query II rowsort
SELECT ALL 35, 59 col1
----
35
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8547
SELECT DISTINCT + CASE 31 WHEN - CASE SUM( ALL + CAST( NULL AS DECIMAL ) ) WHEN + 19 THEN + NULLIF ( + 3, + ( + MIN( 30 ) ) + 40 ) WHEN 76 * + 6 THEN NULL ELSE NULL END * 79 THEN 45 END - + 97 * ( 37 * + ( - 22 ) + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT + CASE 31 WHEN - CASE SUM ( ALL + CAST ( NULL AS REAL ) ) WHEN + 19 THEN + NULLIF ( + 3, + ( + MIN ( 30 ) ) + 40 ) WHEN 76 * + 6 THEN NULL ELSE NULL END * 79 THEN 45 END - + 97 * ( 37 * + ( - 22 ) + + 25 )
----
NULL

query I rowsort
SELECT ALL - CASE + + 56 WHEN - COALESCE ( + 82, NULLIF ( + 7, 91 ) ) THEN + 25 WHEN + 36 THEN 93 END col0
----
NULL

query I rowsort
SELECT + NULLIF ( 8, 87 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT ALL - COUNT( * ) * + SUM( + ( - 85 ) ) * 78 - - 49 DIV 12 AS col0
----
6634

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - COUNT ( * ) * + SUM ( + ( - 85 ) ) * 78 - - 49 / 12 AS col0
----
6634

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT MIN( 72 ) * - 77 AS col2
----
-5544

skipif mysql # not compatible
query I rowsort label-8551
SELECT MIN ( 72 ) * - 77 AS col2
----
-5544

query I rowsort
SELECT ALL + 26 * + - 86 col2
----
-2236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT DISTINCT 28 * - CAST( NULL AS SIGNED ) + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT 28 * - CAST ( NULL AS INTEGER ) + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8554
SELECT - + COUNT( * ), 82 - - 0 + - COUNT( + 5 ) DIV 71 AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-8554
SELECT - + COUNT ( * ), 82 - - 0 + - COUNT ( + 5 ) / 71 AS col2
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL 28 * + - 29 * + - 74 * SUM( ALL 19 )
----
1141672

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL 28 * + - 29 * + - 74 * SUM ( ALL 19 )
----
1141672

query I rowsort
SELECT 94 * + 58 AS col1
----
5452

query II rowsort
SELECT ALL 92 * - 63 AS col0, 11
----
-5796
11

query I rowsort
SELECT 84 + - - 68 + - 57 + + + 23 * + 76
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT + 42 + - COALESCE ( + CASE + - 69 WHEN 7 * + 53 THEN + 43 + - 74 END, 78 - COUNT( * ), 89 * - COUNT( * ) - 88 )
----
-35

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + 42 + - COALESCE ( + CASE + - 69 WHEN 7 * + 53 THEN + 43 + - 74 END, 78 - COUNT ( * ), 89 * - COUNT ( * ) - 88 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT DISTINCT COUNT( * ) + + 75, + COALESCE ( + COUNT( * ), + 42 ) AS col0
----
76
1

skipif mysql # not compatible
query II rowsort label-8560
SELECT DISTINCT COUNT ( * ) + + 75, + COALESCE ( + COUNT ( * ), + 42 ) AS col0
----
76
1

query I rowsort
SELECT 19 - - - 74 + + 10 * - 74
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL + MAX( + 72 ) + + 42 col2
----
114

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + MAX ( + 72 ) + + 42 col2
----
114

query I rowsort
SELECT DISTINCT - 97 * - 5
----
485

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT 25 DIV 15 + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8564
SELECT 25 / 15 + 31 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT MAX( ALL + 12 ) + + 41
----
53

skipif mysql # not compatible
query I rowsort label-8565
SELECT MAX ( ALL + 12 ) + + 41
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8566
SELECT 25 * + + COALESCE ( 86, + 21 DIV NULLIF ( - 81, + NULLIF ( 99, + 95 ) * + 67 + 46 ) + - 28 DIV - COUNT( * ) ) + + ( - 50 )
----
2100

skipif mysql # not compatible
query I rowsort label-8566
SELECT 25 * + + COALESCE ( 86, + 21 / NULLIF ( - 81, + NULLIF ( 99, + 95 ) * + 67 + 46 ) + - 28 / - COUNT ( * ) ) + + ( - 50 )
----
2100

query I rowsort
SELECT + 95 + + + 91 + + + 88 AS col1
----
274

query I rowsort
SELECT ALL + NULLIF ( 38, - 20 ) - + 46
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + COUNT( * ) * COUNT( * ) * 28 * - - 77
----
2156

skipif mysql # not compatible
query I rowsort label-8569
SELECT + COUNT ( * ) * COUNT ( * ) * 28 * - - 77
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT - 15 - + - 86 + + + 47 * - 4 * - CAST( - 95 * - 86 AS SIGNED ) + 91 * + COUNT( * ) AS col0
----
1536122

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - 15 - + - 86 + + + 47 * - 4 * - CAST ( - 95 * - 86 AS INTEGER ) + 91 * + COUNT ( * ) AS col0
----
1536122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT - + 73 * + NULLIF ( + + CAST( NULL AS SIGNED ), + 15 ) + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT - + 73 * + NULLIF ( + + CAST ( NULL AS INTEGER ), + 15 ) + 66
----
NULL

query I rowsort
SELECT ALL - + 9 col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT ALL - MAX( ALL + 96 ) AS col0, 33 col0
----
-96
33

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL - MAX ( ALL + 96 ) AS col0, 33 col0
----
-96
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT - CAST( NULL AS SIGNED ) * - 96 + 0 + 66 / 30 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT - CAST ( NULL AS INTEGER ) * - 96 + 0 + 66 / 30 + 61
----
NULL

query I rowsort
SELECT DISTINCT + - 86 - + 21 * 12
----
-338

query I rowsort
SELECT 60 + 68
----
128

query I rowsort
SELECT DISTINCT 45 * + - 50 + - 75
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL - + MIN( - NULLIF ( - 90, - 31 + 80 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - + MIN ( - NULLIF ( - 90, - 31 + 80 ) ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + + NULLIF ( + 44, + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-8579
SELECT + + NULLIF ( + 44, + COUNT ( * ) )
----
44

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

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

query I rowsort
SELECT DISTINCT + 97 * + + 76 * + + 52 AS col1
----
383344

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + COUNT( ALL + 66 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT + COUNT ( ALL + 66 ) - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + - 44 * 79
----
-3476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8584
SELECT - 0 / - SUM( ALL CAST( NULL AS SIGNED ) ) * - + COUNT( * ) - 37 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 0 / - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) - 37 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - COUNT( 16 ) + + 19 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8585
SELECT - COUNT ( 16 ) + + 19 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL + 89 + - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + 89 + - - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + 16 * - + SUM( ALL + 17 ) AS col2
----
-272

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 16 * - + SUM ( ALL + 17 ) AS col2
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL COUNT( * ) + - COUNT( * ) * - + 64 * 67 AS col1
----
4289

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL COUNT ( * ) + - COUNT ( * ) * - + 64 * 67 AS col1
----
4289

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL CASE - COALESCE ( + - 48, + + COUNT( * ) ) WHEN + COUNT( * ) THEN 90 * CAST( - ( + 9 ) AS SIGNED ) - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL CASE - COALESCE ( + - 48, + + COUNT ( * ) ) WHEN + COUNT ( * ) THEN 90 * CAST ( - ( + 9 ) AS INTEGER ) - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 74 * + 74 * + + 9 AS col1
----
49284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT + 80 * + - COALESCE ( + 53, - 51 DIV - COALESCE ( + 67, 45 ) + 30, MIN( ALL 14 ) ) AS col2
----
-4240

skipif mysql # not compatible
query I rowsort label-8592
SELECT + 80 * + - COALESCE ( + 53, - 51 / - COALESCE ( + 67, 45 ) + 30, MIN ( ALL 14 ) ) AS col2
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT 45 + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT ALL CASE + COUNT( * ) WHEN + + COUNT( * ) + + - COUNT( * ) + - COUNT( * ) THEN COUNT( * ) ELSE CASE 20 WHEN - ( 19 ) * - 12 + COUNT( ( + 4 ) ) DIV 55 THEN - 25 ELSE 42 END END + + CASE 56 WHEN NULLIF ( 46, 19 ) * + COUNT( * ) THEN - ( + 12 ) ELSE 90 + - ( 37 + + ( + 12 ) ) END DIV - ( 63 * - 53 )
----
42

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL CASE + COUNT ( * ) WHEN + + COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) THEN COUNT ( * ) ELSE CASE 20 WHEN - ( 19 ) * - 12 + COUNT ( ( + 4 ) ) / 55 THEN - 25 ELSE 42 END END + + CASE 56 WHEN NULLIF ( 46, 19 ) * + COUNT ( * ) THEN - ( + 12 ) ELSE 90 + - ( 37 + + ( + 12 ) ) END / - ( 63 * - 53 )
----
42

query I rowsort
SELECT + 74 + + 19 + - - COALESCE ( + - 43, 71 ) * 67
----
-2788

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8596
SELECT ALL 39 * CASE 61 WHEN CAST( NULL AS SIGNED ) THEN - 77 * 87 - 84 ELSE 97 DIV - 71 END col2
----
-39

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL 39 * CASE 61 WHEN CAST ( NULL AS INTEGER ) THEN - 77 * 87 - 84 ELSE 97 / - 71 END col2
----
-39

query I rowsort
SELECT + 44 * - - 40 AS col1
----
1760

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

skipif mysql # not compatible
query I rowsort label-8598
SELECT - COUNT ( 15 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL COALESCE ( + SUM( - 83 ), + 88, + - CAST( NULL AS SIGNED ) * MAX( ALL + 81 ) + - 9 ) + - CAST( - COUNT( * ) AS SIGNED ) * ( 98 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL COALESCE ( + SUM ( - 83 ), + 88, + - CAST ( NULL AS INTEGER ) * MAX ( ALL + 81 ) + - 9 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * ( 98 ) AS col2
----
15

query I rowsort
SELECT + 14 * + - 1 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-8601
SELECT DISTINCT 83, 16 DIV - - 10 AS col0
----
83
1

skipif mysql # not compatible
query II rowsort label-8601
SELECT DISTINCT 83, 16 / - - 10 AS col0
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + CASE - + 83 WHEN + - MAX( ALL - 83 ) * AVG ( ALL + 38 ) * 31 + 75 THEN + 43 * + 97 + - COUNT( * ) * ( 40 + - 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + CASE - + 83 WHEN + - MAX ( ALL - 83 ) * AVG ( ALL + 38 ) * 31 + 75 THEN + 43 * + 97 + - COUNT ( * ) * ( 40 + - 90 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( + + 23, 12 - 77 ) AS col2
----
23

query I rowsort
SELECT DISTINCT - 6 * + CASE WHEN NULL NOT IN ( 63 ) THEN NULL ELSE 39 END - 70 AS col2
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT DISTINCT - 55 * - 74 + - 36 DIV - 26 - 96 + 36 * - 7
----
3723

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - 55 * - 74 + - 36 / - 26 - 96 + 36 * - 7
----
3723

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8606
SELECT + 32 + - - 74 DIV - - 29, + MIN( DISTINCT 75 ) AS col2
----
34
75

skipif mysql # not compatible
query II rowsort label-8606
SELECT + 32 + - - 74 / - - 29, + MIN ( DISTINCT 75 ) AS col2
----
34
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT + + CASE ( + 13 ) WHEN - NULLIF ( 54, + 74 ) THEN NULL ELSE + SUM( ALL + ( CAST( NULL AS SIGNED ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT + + CASE ( + 13 ) WHEN - NULLIF ( 54, + 74 ) THEN NULL ELSE + SUM ( ALL + ( CAST ( NULL AS INTEGER ) ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT - - 83 * + 16 + + - 9 AS col0, COUNT( * )
----
1319
1

skipif mysql # not compatible
query II rowsort label-8608
SELECT - - 83 * + 16 + + - 9 AS col0, COUNT ( * )
----
1319
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8609
SELECT + - 5 DIV - + CAST( - + 57 AS SIGNED ) + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8609
SELECT + - 5 / - + CAST ( - + 57 AS INTEGER ) + 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - - 0 * + SUM( + + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT - - 0 * + SUM ( + + 70 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + + COUNT( * ) * - - ( + 47 ) + 3
----
50

skipif mysql # not compatible
query I rowsort label-8611
SELECT + + COUNT ( * ) * - - ( + 47 ) + 3
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT - + COUNT( * ) * - CAST( 18 AS SIGNED ) col0
----
18

skipif mysql # not compatible
query I rowsort label-8612
SELECT - + COUNT ( * ) * - CAST ( 18 AS INTEGER ) col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT - + 97 DIV + 99 - - 65 - 76 + - 47 + + 37 * - ( CASE ( - 19 ) WHEN - COUNT( * ) THEN - 89 DIV ( + COUNT( * ) ) - + 1 * 54 ELSE + ( + 71 ) - - ( - 1 ) END )
----
-2648

skipif mysql # not compatible
query I rowsort label-8613
SELECT - + 97 / + 99 - - 65 - 76 + - 47 + + 37 * - ( CASE ( - 19 ) WHEN - COUNT ( * ) THEN - 89 / ( + COUNT ( * ) ) - + 1 * 54 ELSE + ( + 71 ) - - ( - 1 ) END )
----
-2648

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL + CASE 25 WHEN - COUNT( * ) THEN + 78 WHEN + 28 + - 7 THEN 89 + 25 / - 29 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + CASE 25 WHEN - COUNT ( * ) THEN + 78 WHEN + 28 + - 7 THEN 89 + 25 / - 29 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 34 col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT - 4 * + + CAST( - CASE + - 67 WHEN + + 30 THEN 59 * 37 WHEN 9 THEN ( 10 ) * 55 END AS SIGNED ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT - 4 * + + CAST ( - CASE + - 67 WHEN + + 30 THEN 59 * 37 WHEN 9 THEN ( 10 ) * 55 END AS INTEGER ) * 72
----
NULL

query I rowsort
SELECT ALL 74 * + - 34 * + - 85 AS col2
----
213860

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + COALESCE ( - 60, 6 - 34 + - + COUNT( * ) * 15 )
----
-60

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + COALESCE ( - 60, 6 - 34 + - + COUNT ( * ) * 15 )
----
-60

query I rowsort
SELECT ALL + - 57 col0
----
-57

query I rowsort
SELECT + 61 + - - 33
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + - COUNT( * ) * + + 35 * - 36 AS col1
----
1260

skipif mysql # not compatible
query I rowsort label-8622
SELECT + - COUNT ( * ) * + + 35 * - 36 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - + COUNT( - - 10 ) * + ( + 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8623
SELECT - + COUNT ( - - 10 ) * + ( + 60 ) AS col2
----
-60

query I rowsort
SELECT - 44 - - 36 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - 67 * + COUNT( * ) + + SUM( + ( - - 55 ) ) + 15
----
3

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - 67 * + COUNT ( * ) + + SUM ( + ( - - 55 ) ) + 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + ( - - NULLIF ( + MIN( DISTINCT - 73 ), - 14 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-8626
SELECT + ( - - NULLIF ( + MIN ( DISTINCT - 73 ), - 14 ) )
----
-73

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL 20 * 11 * 2 + + - ( 24 ) - - SUM( ALL + NULLIF ( 74, - 9 ) )
----
490

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL 20 * 11 * 2 + + - ( 24 ) - - SUM ( ALL + NULLIF ( 74, - 9 ) )
----
490

query I rowsort
SELECT ALL + CASE + 43 WHEN CASE - 73 WHEN - + 34 THEN NULL WHEN + 81 * + 1 THEN + 51 + + 25 ELSE + 29 + 90 END THEN - 74 * + ( + 68 ) END * 86
----
NULL

query I rowsort
SELECT DISTINCT 33 + - ( + - 51 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - 98 * + - SUM( - 85 ) AS col2
----
-8330

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 98 * + - SUM ( - 85 ) AS col2
----
-8330

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + 15 * - 68 * COUNT( * ) AS col0
----
-1020

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + 15 * - 68 * COUNT ( * ) AS col0
----
-1020

query I rowsort
SELECT - 68 + - + 20 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL - SUM( DISTINCT 34 ) + - 14 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - SUM ( DISTINCT 34 ) + - 14 AS col2
----
-48

query II rowsort
SELECT ALL ( - - 34 ) col1, 9 * + ( + 34 )
----
34
306

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - COALESCE ( + 28, 52, - 35 ) + - CASE + 24 WHEN 67 THEN 76 + 96 WHEN ( CASE - 44 WHEN 94 / 24 THEN NULL WHEN 49 THEN + ( 20 ) + - 57 ELSE COUNT( * ) * + 46 END ) THEN NULL ELSE - 81 - + 97 * 62 END
----
6067

skipif mysql # not compatible
query I rowsort label-8637
SELECT - COALESCE ( + 28, 52, - 35 ) + - CASE + 24 WHEN 67 THEN 76 + 96 WHEN ( CASE - 44 WHEN 94 / 24 THEN NULL WHEN 49 THEN + ( 20 ) + - 57 ELSE COUNT ( * ) * + 46 END ) THEN NULL ELSE - 81 - + 97 * 62 END
----
6067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8638
SELECT + 50 DIV COUNT( ALL + COALESCE ( - 96, - 22 ) ) * - - 94 AS col0
----
4700

skipif mysql # not compatible
query I rowsort label-8638
SELECT + 50 / COUNT ( ALL + COALESCE ( - 96, - 22 ) ) * - - 94 AS col0
----
4700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT DISTINCT CAST( - ( CASE 6 WHEN 85 + 74 + 31 THEN - 4 * ( + 30 ) ELSE NULL END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT CAST ( - ( CASE 6 WHEN 85 + 74 + 31 THEN - 4 * ( + 30 ) ELSE NULL END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - 25 + - 88 * + + COUNT( * ) col1
----
-113

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - 25 + - 88 * + + COUNT ( * ) col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT - 38 - 52 DIV 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 38 - 52 / 39 AS col0
----
-39

query I rowsort
SELECT - 15 + - 90
----
-105

query II rowsort
SELECT ALL 76 AS col0, + 26
----
76
26

query II rowsort
SELECT ALL 28 col2, 41 AS col1
----
28
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT + 91 + - - 71 + + COUNT( * ) - + 49 AS col2, COUNT( * )
----
114
1

skipif mysql # not compatible
query II rowsort label-8645
SELECT + 91 + - - 71 + + COUNT ( * ) - + 49 AS col2, COUNT ( * )
----
114
1

query I rowsort
SELECT + 8 * - 44 * - ( - 16 ) AS col0
----
-5632

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT COUNT( * ) * + + 6 * + - 2 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT COUNT ( * ) * + + 6 * + - 2 AS col0
----
-12

query I rowsort
SELECT - CASE - + 24 WHEN - 16 THEN NULL WHEN - 26 * - 11 THEN - 60 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 55 + 7
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL COUNT( ALL + 58 ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL COUNT ( ALL + 58 ) * + 34
----
34

query I rowsort
SELECT - 29 + CASE - + 37 WHEN 83 THEN + + 31 END AS col0
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( 78, - 1 + + 88 ) AS col2
----
78

query II rowsort
SELECT DISTINCT + 62 AS col1, - 98
----
62
-98

query I rowsort
SELECT ALL - ( - NULLIF ( - 12, + NULLIF ( - - 5, + 19 ) * 65 ) ) * 71 AS col2
----
-852

query I rowsort
SELECT + - 60 + + 13 + + - 72 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + COUNT( * ) * - + ( - + 93 ) * + - 58 - - + 74 * + ( 1 ) AS col2
----
-5320

skipif mysql # not compatible
query I rowsort label-8657
SELECT + COUNT ( * ) * - + ( - + 93 ) * + - 58 - - + 74 * + ( 1 ) AS col2
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + CASE - + 55 WHEN 24 * + 91 + + 63 - + + COUNT( * ) + 63 * CASE + 34 WHEN 65 THEN NULL ELSE - 10 END THEN - 77 END * 51 + + 81 * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT + CASE - + 55 WHEN 24 * + 91 + + 63 - + + COUNT ( * ) + 63 * CASE + 34 WHEN 65 THEN NULL ELSE - 10 END THEN - 77 END * 51 + + 81 * 9 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT + 73 DIV + 47 + - + NULLIF ( - - 11, - - 47 ) + + - 19 + 90 * - 94 AS col0
----
-8489

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 73 / + 47 + - + NULLIF ( - - 11, - - 47 ) + + - 19 + 90 * - 94 AS col0
----
-8489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT + COUNT( 80 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT + COUNT ( 80 ) / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8661
SELECT ALL + ( + NULLIF ( - 65, - - 18 ) ) DIV - CAST( + 80 AS SIGNED ) * COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + ( + NULLIF ( - 65, - - 18 ) ) / - CAST ( + 80 AS INTEGER ) * COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT + + 33 DIV - COALESCE ( - 39, ( - 91 ), - COUNT( * ) + 54 * - 51, + 19 * + 4 ) * - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT + + 33 / - COALESCE ( - 39, ( - 91 ), - COUNT ( * ) + 54 * - 51, + 19 * + 4 ) * - 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT - - 27 DIV 44 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT - - 27 / 44 / + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT DISTINCT 39 DIV 49 + - + 80 + ( + 62 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT 39 / 49 + - + 80 + ( + 62 ) AS col2
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8666
SELECT ALL + 89 + - 0 - CAST( - 18 AS SIGNED ) DIV + 48
----
89

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + 89 + - 0 - CAST ( - 18 AS INTEGER ) / + 48
----
89

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

skipif mysql # not compatible
query II rowsort label-8667
SELECT - ( - COUNT ( * ) ) AS col0, 10 AS col1
----
1
10

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

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

query I rowsort
SELECT DISTINCT + - 39 + + 94 + - 30 + - + 45 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8670
SELECT ALL - - COUNT( + 15 ) * - ( - + CASE - + COUNT( * ) WHEN - 92 THEN NULL WHEN 84 - 3 DIV + CAST( NULL AS SIGNED ) THEN NULL ELSE 71 END ) DIV + 38
----
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - - COUNT ( + 15 ) * - ( - + CASE - + COUNT ( * ) WHEN - 92 THEN NULL WHEN 84 - 3 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE 71 END ) / + 38
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8671
SELECT - CAST( NULL AS DECIMAL ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT - CAST ( NULL AS REAL ) + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL COUNT( DISTINCT - - 26 ) + + + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL COUNT ( DISTINCT - - 26 ) + + + 3 AS col1
----
4

query I rowsort
SELECT ALL 69 + 66 + - 65 col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT DISTINCT - MAX( 8 ) AS col2, + 55 AS col0
----
-8
55

skipif mysql # not compatible
query II rowsort label-8674
SELECT DISTINCT - MAX ( 8 ) AS col2, + 55 AS col0
----
-8
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL + ( + 35 ) + - COUNT( DISTINCT 50 )
----
34

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + ( + 35 ) + - COUNT ( DISTINCT 50 )
----
34

query I rowsort
SELECT ALL 63 * ( + 73 )
----
4599

query I rowsort
SELECT 19 + + - 48 + + 48 * - 86
----
-4157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT 99 + + COUNT( * ) + - 61 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8679
SELECT 99 + + COUNT ( * ) + - 61 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT 9 + + CAST( - SUM( - + ( + 18 ) ) AS SIGNED ) + - 64 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8680
SELECT 9 + + CAST ( - SUM ( - + ( + 18 ) ) AS INTEGER ) + - 64 AS col2
----
-37

query I rowsort
SELECT DISTINCT + 75 * 66 AS col2
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + MIN( ALL + 92 ) * + - 71 * + COUNT( * ) AS col0
----
-6532

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + MIN ( ALL + 92 ) * + - 71 * + COUNT ( * ) AS col0
----
-6532

query I rowsort
SELECT 53 + - 71 + + 62 + - 83 - - + 35 * + 80 * + ( 96 ) AS col0
----
268761

query I rowsort
SELECT 24 * ( - NULLIF ( - 81, + 66 * - 8 ) )
----
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT - 6 DIV - 24 + - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8685
SELECT - 6 / - 24 + - 43 AS col0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT COALESCE ( + 27, + 26 * + 52 * + + SUM( + 23 ), + 83 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT COALESCE ( + 27, + 26 * + 52 * + + SUM ( + 23 ), + 83 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT ALL + 53 * 57 + + - 0 DIV - + 67
----
3021

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + 53 * 57 + + - 0 / - + 67
----
3021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT 46 * CAST( 56 AS SIGNED ) * - - 16
----
41216

skipif mysql # not compatible
query I rowsort label-8689
SELECT 46 * CAST ( 56 AS INTEGER ) * - - 16
----
41216

query I rowsort
SELECT + 54 * + 50 - 70 + + 10 AS col1
----
2640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL - - NULLIF ( - + COUNT( * ), - - 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - - NULLIF ( - + COUNT ( * ), - - 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT - + COUNT( * ) + - CASE + - 36 WHEN + + 8 / + + 49 THEN - ( - COUNT( * ) ) * COUNT( * ) ELSE + 28 END + 71 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - + COUNT ( * ) + - CASE + - 36 WHEN + + 8 / + + 49 THEN - ( - COUNT ( * ) ) * COUNT ( * ) ELSE + 28 END + 71 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT 76 + - COUNT( * ) - + + 3 + + COUNT( - ( + + NULLIF ( + - 6, + 22 ) ) ) * 26 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8694
SELECT 76 + - COUNT ( * ) - + + 3 + + COUNT ( - ( + + NULLIF ( + - 6, + 22 ) ) ) * 26 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL - COUNT( * ) + COUNT( DISTINCT + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT + 50 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8696
SELECT ALL - 38 col1, 48 DIV 17
----
-38
2

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL - 38 col1, 48 / 17
----
-38
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT CAST( NULL AS SIGNED ) / 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT CAST ( NULL AS INTEGER ) / 22 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8698
SELECT 70 * + COALESCE ( ( + + COALESCE ( + 54, 19, + 47 ) ), - + 35 * ( CAST( - ( SUM( DISTINCT - 42 ) ) AS SIGNED ) * COUNT( * ) ) ) * 85 - CAST( COUNT( * ) + - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT 70 * + COALESCE ( ( + + COALESCE ( + 54, 19, + 47 ) ), - + 35 * ( CAST ( - ( SUM ( DISTINCT - 42 ) ) AS INTEGER ) * COUNT ( * ) ) ) * 85 - CAST ( COUNT ( * ) + - CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT ALL 16 DIV + - 67
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL 16 / + - 67
----
0

query I rowsort
SELECT 93 * - 12 AS col2
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT 99 DIV ( + - SUM( ALL + 95 ) ) * 92 * + 13 * - 37 AS col0
----
44252

skipif mysql # not compatible
query I rowsort label-8701
SELECT 99 / ( + - SUM ( ALL + 95 ) ) * 92 * + 13 * - 37 AS col0
----
44252

query I rowsort
SELECT ALL COALESCE ( - + 50, - 80, - 79 ) * + 1 AS col0
----
-50

query I rowsort
SELECT ALL 21 - + - 15
----
36

query II rowsort
SELECT ALL 73 AS col2, 90 col0
----
73
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT CASE COUNT( * ) WHEN + + 27 * - 91 * - COALESCE ( - - 17, 13 + + 11 / - 49 ) + 97 THEN NULL WHEN + 50 + - 76 / + 52 THEN NULL ELSE COUNT( * ) END * - 18
----
-18

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT CASE COUNT ( * ) WHEN + + 27 * - 91 * - COALESCE ( - - 17, 13 + + 11 / - 49 ) + 97 THEN NULL WHEN + 50 + - 76 / + 52 THEN NULL ELSE COUNT ( * ) END * - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 8 + + 35 - COUNT( * ) * - 4 * - 77
----
-265

skipif mysql # not compatible
query I rowsort label-8706
SELECT 8 + + 35 - COUNT ( * ) * - 4 * - 77
----
-265

query II rowsort
SELECT ALL 84 AS col0, 58 AS col0
----
84
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT COUNT( * ) + - 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8708
SELECT COUNT ( * ) + - 49 AS col1
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + 34 + NULLIF ( - + 46, + + 98 ) * CASE - - ( + + 5 ) WHEN + 25 * + 95 + 26 * 28 THEN 73 + 0 / + 32 WHEN 53 THEN NULL END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 34 + NULLIF ( - + 46, + + 98 ) * CASE - - ( + + 5 ) WHEN + 25 * + 95 + 26 * 28 THEN 73 + 0 / + 32 WHEN 53 THEN NULL END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT MIN( DISTINCT + - 23 ) + - 38 col1, + 1
----
-61
1

skipif mysql # not compatible
query II rowsort label-8711
SELECT MIN ( DISTINCT + - 23 ) + - 38 col1, + 1
----
-61
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL - 82 + 3 + - COUNT( * ) + + 19 + + CAST( - + 1 AS SIGNED ) + + 6 - - 83 * 78 * 23 * - COALESCE ( - NULLIF ( + CASE 32 WHEN + 52 + 85 THEN 87 * COALESCE ( ( - COUNT( * ) ), 56 + 6 ) + 21 END, + 23 * - 62 ), - 65, ( + MIN( + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
9678574

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - 82 + 3 + - COUNT ( * ) + + 19 + + CAST ( - + 1 AS INTEGER ) + + 6 - - 83 * 78 * 23 * - COALESCE ( - NULLIF ( + CASE 32 WHEN + 52 + 85 THEN 87 * COALESCE ( ( - COUNT ( * ) ), 56 + 6 ) + 21 END, + 23 * - 62 ), - 65, ( + MIN ( + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
9678574

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + + 10 + CASE - 32 WHEN 45 THEN NULL WHEN SUM( ALL + 23 ) THEN - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + + 10 + CASE - 32 WHEN 45 THEN NULL WHEN SUM ( ALL + 23 ) THEN - 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) + COALESCE ( + 32, - - 74 * - 44 ) * 83 + - 79 * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) + COALESCE ( + 32, - - 74 * - 44 ) * 83 + - 79 * - 4 AS col0
----
NULL

query I rowsort
SELECT 73 + - 15 col0
----
58

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

skipif mysql # not compatible
query I rowsort label-8716
SELECT - 28 / 91
----
0

query I rowsort
SELECT 19 + 22 AS col2
----
41

query I rowsort
SELECT DISTINCT + ( 55 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8719
SELECT ALL 5 * 83 + 83 DIV + + CAST( - + 42 AS SIGNED ) + 49 + + ( 37 ) * 16 + + 84 * - ( - 84 * - 52 - 85 ) AS col1
----
-358717

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL 5 * 83 + 83 / + + CAST ( - + 42 AS INTEGER ) + 49 + + ( 37 ) * 16 + + 84 * - ( - 84 * - 52 - 85 ) AS col1
----
-358717

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT - 94, - COUNT( * ) + - 5 * 59 + - - 58 + - + 57 + MIN( DISTINCT + + 34 ) * - 62 AS col2
----
-94
-2403

skipif mysql # not compatible
query II rowsort label-8720
SELECT - 94, - COUNT ( * ) + - 5 * 59 + - - 58 + - + 57 + MIN ( DISTINCT + + 34 ) * - 62 AS col2
----
-94
-2403

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8721
SELECT + CAST( NULL AS DECIMAL ) / + + 54 + - COUNT( ALL - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT + CAST ( NULL AS REAL ) / + + 54 + - COUNT ( ALL - 42 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + 76 * - 52 - + + MAX( - 46 )
----
-3906

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + 76 * - 52 - + + MAX ( - 46 )
----
-3906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8723
SELECT - 39 + - 90 DIV - - 5 * + COUNT( 31 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 39 + - 90 / - - 5 * + COUNT ( 31 ) AS col1
----
-57

query I rowsort
SELECT ALL - 7 * + + 21 - 79 + + NULLIF ( - + 46, 15 )
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - 98 * - MAX( - + 49 ) * + - 60 * + - 48
----
-13829760

skipif mysql # not compatible
query I rowsort label-8725
SELECT - 98 * - MAX ( - + 49 ) * + - 60 * + - 48
----
-13829760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT + 15 + ( CAST( 69 AS SIGNED ) ) - + - 91 AS col2
----
175

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 15 + ( CAST ( 69 AS INTEGER ) ) - + - 91 AS col2
----
175

query I rowsort
SELECT + 68 * - 54
----
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT SUM( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8728
SELECT SUM ( - 58 )
----
-58

query I rowsort
SELECT - 38 * - + 24 + + - 97 AS col1
----
815

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT MAX( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8730
SELECT MAX ( - 18 )
----
-18

query I rowsort
SELECT + 32 * + ( + 59 ) * + ( + 35 ) AS col1
----
66080

query II rowsort
SELECT + 38 + + 91 + + 37 * 26 AS col1, - 53 + + + 59 AS col0
----
1091
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT ALL 44 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL 44 / 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT MAX( - - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-8734
SELECT MAX ( - - 3 )
----
3

query I rowsort
SELECT - CASE ( - 31 ) WHEN - + 17 THEN + 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - ( - + 4 ) + + - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8736
SELECT - ( - + 4 ) + + - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL 96 + 94
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL COUNT( * ) + - - 86 + - MIN( + 44 ) + 22 + + 79
----
144

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL COUNT ( * ) + - - 86 + - MIN ( + 44 ) + 22 + + 79
----
144

query I rowsort
SELECT + - 97 * + 59 AS col1
----
-5723

query I rowsort
SELECT ALL + 86 + + 57
----
143

query I rowsort
SELECT ALL ( + 72 ) AS col1
----
72

query I rowsort
SELECT ALL 15 + + 21 + - 61 AS col2
----
-25

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

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

query I rowsort
SELECT - 68 + - 95
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL NULLIF ( - - 21, COALESCE ( - 91, + 97 - COUNT( * ), + 98 ) ) + - - 37
----
58

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL NULLIF ( - - 21, COALESCE ( - 91, + 97 - COUNT ( * ), + 98 ) ) + - - 37
----
58

query I rowsort
SELECT ALL - 51 + NULLIF ( + ( - 62 ), + - 77 ) - + 40 * + - 27 AS col1
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - COUNT( * ) + - - 51 + + 35 * - - 25 + - 2 AS col1
----
923

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - COUNT ( * ) + - - 51 + + 35 * - - 25 + - 2 AS col1
----
923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL - - 70 - - COALESCE ( + + CASE WHEN NULL IS NOT NULL THEN 75 END, + COALESCE ( + CASE + ( + + 98 ) WHEN ( - MAX( + 27 ) ) * 84 THEN 37 + ( 36 ) WHEN - AVG ( ALL - 3 ) + 65 * 41 THEN NULL ELSE COUNT( * ) * CAST( 24 AS SIGNED ) END, + 85, - COUNT( * ) + 99 ) * + 98 ) AS col2
----
2422

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - - 70 - - COALESCE ( + + CASE WHEN NULL IS NOT NULL THEN 75 END, + COALESCE ( + CASE + ( + + 98 ) WHEN ( - MAX ( + 27 ) ) * 84 THEN 37 + ( 36 ) WHEN - AVG ( ALL - 3 ) + 65 * 41 THEN NULL ELSE COUNT ( * ) * CAST ( 24 AS INTEGER ) END, + 85, - COUNT ( * ) + 99 ) * + 98 ) AS col2
----
2422

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT ALL 40 DIV + - 94 * - 49
----
0

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL 40 / + - 94 * - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + + MAX( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8750
SELECT + + MAX ( 14 )
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8751
SELECT + CAST( NULL AS DECIMAL ) + 93 AS col0, ( - + 41 ) + + 18
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-8751
SELECT + CAST ( NULL AS REAL ) + 93 AS col0, ( - + 41 ) + + 18
----
NULL
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT 38 DIV + 21 + + 23 - + COUNT( * ) + - 93
----
-70

skipif mysql # not compatible
query I rowsort label-8752
SELECT 38 / + 21 + + 23 - + COUNT ( * ) + - 93
----
-70

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

skipif mysql # not compatible
query II rowsort label-8753
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) - + 78, - 7 + - 67 / COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + SUM( ALL - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + SUM ( ALL - + 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT ALL + CAST( + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + CAST ( + 52 AS INTEGER )
----
52

query I rowsort
SELECT - 16 * - 2 * - 79 AS col1
----
-2528

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT - 74 + - COUNT( * ) * 96 * COUNT( + + 23 ) AS col0, 97 * - COALESCE ( + - COUNT( * ), + - 97 ) AS col2
----
-170
97

skipif mysql # not compatible
query II rowsort label-8757
SELECT - 74 + - COUNT ( * ) * 96 * COUNT ( + + 23 ) AS col0, 97 * - COALESCE ( + - COUNT ( * ), + - 97 ) AS col2
----
-170
97

query I rowsort
SELECT - 44 * - 36
----
1584

query I rowsort
SELECT - 56 * 69 * - + 73
----
282072

query II rowsort
SELECT DISTINCT + 79 AS col1, - 99 col1
----
79
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT COALESCE ( COUNT( * ), COUNT( * ) * + - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8761
SELECT COALESCE ( COUNT ( * ), COUNT ( * ) * + - 90 )
----
1

query I rowsort
SELECT ALL - 44 * - - 65
----
-2860

query I rowsort
SELECT + 14 * + - NULLIF ( - - 97, - 6 ) * - - 1 * - 18 + 19 AS col0
----
24463

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - MIN( 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8764
SELECT - MIN ( 18 ) AS col2
----
-18

query I rowsort
SELECT ALL + - 69 * - 54 * + 51 + + 14 AS col1
----
190040

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + - 60 * - MIN( ALL 20 ) * + 30 AS col1
----
36000

skipif mysql # not compatible
query I rowsort label-8766
SELECT + - 60 * - MIN ( ALL 20 ) * + 30 AS col1
----
36000

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT 13 + - - 29 DIV + 54
----
13

skipif mysql # not compatible
query I rowsort label-8767
SELECT 13 + - - 29 / + 54
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + MIN( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8769
SELECT + MIN ( 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL - 5 + + 7 + - CAST( NULL AS SIGNED ) * - 25 * + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - 5 + + 7 + - CAST ( NULL AS INTEGER ) * - 25 * + + 95 AS col0
----
NULL

query I rowsort
SELECT 90 + - 17 AS col2
----
73

query I rowsort
SELECT ALL + ( + 71 ) * 27 * + - 22
----
-42174

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT - 32 + - - 63 + - 71 + ( + COUNT( * ) ) AS col1, 69 AS col0
----
-39
69

skipif mysql # not compatible
query II rowsort label-8773
SELECT - 32 + - - 63 + - 71 + ( + COUNT ( * ) ) AS col1, 69 AS col0
----
-39
69

query I rowsort
SELECT ALL 72 * 48
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT 82 + + MAX( + 44 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-8775
SELECT 82 + + MAX ( + 44 ) AS col2
----
126

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 33 - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL MIN( DISTINCT + 50 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL MIN ( DISTINCT + 50 ) col2
----
50

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

skipif mysql # not compatible
query II rowsort label-8780
SELECT - 79 AS col0, - COUNT ( * ) col1
----
-79
-1

query I rowsort
SELECT 51 + + - 33 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT 38 * - 5 DIV + COUNT( * ) + - - 16 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-8782
SELECT 38 * - 5 / + COUNT ( * ) + - - 16 AS col0
----
-174

query I rowsort
SELECT 82 * + 85
----
6970

query I rowsort
SELECT ALL - ( - - 96 )
----
-96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT 11 * + 38 + + COUNT( 44 ) AS col0, 25 + 12
----
419
37

skipif mysql # not compatible
query II rowsort label-8786
SELECT 11 * + 38 + + COUNT ( 44 ) AS col0, 25 + 12
----
419
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8787
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE + + 52 WHEN + - 3 THEN + 76 WHEN + ( - 76 ) THEN + CASE - CAST( NULL AS SIGNED ) WHEN - 14 THEN NULL WHEN + - 86 THEN NULL ELSE AVG ( 13 ) + NULLIF ( 58, - 62 + - 72 ) END + + CAST( ( + 11 ) + 15 * 33 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE + + 52 WHEN + - 3 THEN + 76 WHEN + ( - 76 ) THEN + CASE - CAST ( NULL AS INTEGER ) WHEN - 14 THEN NULL WHEN + - 86 THEN NULL ELSE AVG ( 13 ) + NULLIF ( 58, - 62 + - 72 ) END + + CAST ( ( + 11 ) + 15 * 33 AS REAL ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - 11 DIV + 41 * - - COALESCE ( - 11, + 30 ) * - 99 + + NULLIF ( - + 35, + 55 ) + - 8 col2
----
-43

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 11 / + 41 * - - COALESCE ( - 11, + 30 ) * - 99 + + NULLIF ( - + 35, + 55 ) + - 8 col2
----
-43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT ALL COUNT( * ) DIV + MIN( - 65 ) * + + COUNT( DISTINCT - 21 )
----
0

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL COUNT ( * ) / + MIN ( - 65 ) * + + COUNT ( DISTINCT - 21 )
----
0

query II rowsort
SELECT DISTINCT - 70 col1, 82
----
-70
82

query I rowsort
SELECT 44 * + - 17 AS col1
----
-748

query I rowsort
SELECT 47 + - + 15
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 77 * - 57 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 77 * - 57 * + 3
----
NULL

query I rowsort
SELECT - 29 * - 70 + + 67 + + 25 AS col1
----
2122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8796
SELECT DISTINCT NULLIF ( + 9, + CAST( NULL AS DECIMAL ) * COALESCE ( + + COUNT( * ), + + 37 ) ) + + 28 + - - 23 + 41 / + + 9 * - CASE NULLIF ( + 33, + SUM( ALL - 15 ) ) WHEN - ( 0 ) THEN CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT NULLIF ( + 9, + CAST ( NULL AS REAL ) * COALESCE ( + + COUNT ( * ), + + 37 ) ) + + 28 + - - 23 + 41 / + + 9 * - CASE NULLIF ( + 33, + SUM ( ALL - 15 ) ) WHEN - ( 0 ) THEN CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT ALL 91 * - + 45
----
-4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8798
SELECT 43 + + 5, NULLIF ( + 16, CASE - NULLIF ( 93, 50 ) WHEN - - 92 + - ( - - COUNT( * ) ) THEN 41 END ) * - CASE + CAST( COUNT( * ) AS SIGNED ) + 61 WHEN - 80 THEN - 97 END AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-8798
SELECT 43 + + 5, NULLIF ( + 16, CASE - NULLIF ( 93, 50 ) WHEN - - 92 + - ( - - COUNT ( * ) ) THEN 41 END ) * - CASE + CAST ( COUNT ( * ) AS INTEGER ) + 61 WHEN - 80 THEN - 97 END AS col0
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL + 76 DIV - 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 76 / - 60 AS col2
----
-1

query I rowsort
SELECT 53 + + 90 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT CASE + 89 WHEN - + 49 THEN NULL ELSE - 93 * - + 19 + 21 END * - + CASE + COUNT( * ) WHEN + - 51 THEN + 86 / COUNT( * ) / 65 WHEN 5 THEN NULL ELSE NULL END + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT CASE + 89 WHEN - + 49 THEN NULL ELSE - 93 * - + 19 + 21 END * - + CASE + COUNT ( * ) WHEN + - 51 THEN + 86 / COUNT ( * ) / 65 WHEN 5 THEN NULL ELSE NULL END + 91
----
NULL

query II rowsort
SELECT 7 AS col1, - 60 - - - 5 AS col0
----
7
-65

query I rowsort
SELECT + - ( + 20 ) * + NULLIF ( - + 35, 88 - - 74 ) + - 47
----
653

query I rowsort
SELECT - ( ( - 40 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT 25 + + COUNT( * ) + 37 * - + 50 + - + 48 AS col1
----
-1872

skipif mysql # not compatible
query I rowsort label-8805
SELECT 25 + + COUNT ( * ) + 37 * - + 50 + - + 48 AS col1
----
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-8806
SELECT - 78 AS col2, 60 + - - MAX( ALL 0 ) * - + 1 + CASE - COUNT( * ) WHEN - + 9 / - SUM( + + ( - 55 ) ) + - 59 THEN + 26 WHEN + 30 THEN 46 + 90 END + 62 * + 20 * + 19 AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8806
SELECT - 78 AS col2, 60 + - - MAX ( ALL 0 ) * - + 1 + CASE - COUNT ( * ) WHEN - + 9 / - SUM ( + + ( - 55 ) ) + - 59 THEN + 26 WHEN + 30 THEN 46 + 90 END + 62 * + 20 * + 19 AS col1
----
-78
NULL

query I rowsort
SELECT + COALESCE ( + 66, - 54 ) col1
----
66

query I rowsort
SELECT 97 * 98 AS col1
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + COUNT( DISTINCT 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( DISTINCT 10 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8810
SELECT COALESCE ( 53, 66 * 88 * - ( + - 19 ) * - 48 + - - CAST( NULL AS SIGNED ) ) DIV 74 + 38
----
38

skipif mysql # not compatible
query I rowsort label-8810
SELECT COALESCE ( 53, 66 * 88 * - ( + - 19 ) * - 48 + - - CAST ( NULL AS INTEGER ) ) / 74 + 38
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT 7 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT 7 / + 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT - CASE + 18 WHEN - 14 * - + 28 THEN - COALESCE ( + + 4, - CAST( + - 2 AS SIGNED ) ) END / - 9 - - CAST( NULL AS SIGNED ) + - - 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT - CASE + 18 WHEN - 14 * - + 28 THEN - COALESCE ( + + 4, - CAST ( + - 2 AS INTEGER ) ) END / - 9 - - CAST ( NULL AS INTEGER ) + - - 57 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT ( + 84 ) DIV 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8813
SELECT ( + 84 ) / 37 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT CASE + 44 WHEN + COUNT( * ) THEN + 67 WHEN + CAST( NULL AS SIGNED ) * 83 * + + 22 * + - ( - 70 ) * + 84 / - 38 + 77 + 19 THEN ( - COUNT( * ) ) END * - NULLIF ( 38, + COUNT( 58 ) * 66 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT CASE + 44 WHEN + COUNT ( * ) THEN + 67 WHEN + CAST ( NULL AS INTEGER ) * 83 * + + 22 * + - ( - 70 ) * + 84 / - 38 + 77 + 19 THEN ( - COUNT ( * ) ) END * - NULLIF ( 38, + COUNT ( 58 ) * 66 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT MIN( + 72 ), 74 AS col1
----
72
74

skipif mysql # not compatible
query II rowsort label-8815
SELECT MIN ( + 72 ), 74 AS col1
----
72
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT DISTINCT + 92 * - 80 + ( - + CASE + CAST( NULL AS SIGNED ) WHEN - 90 THEN - - 92 WHEN 14 / + NULLIF ( + - 66, 85 - - 3 * 16 ) THEN + 15 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + 92 * - 80 + ( - + CASE + CAST ( NULL AS INTEGER ) WHEN - 90 THEN - - 92 WHEN 14 / + NULLIF ( + - 66, 85 - - 3 * 16 ) THEN + 15 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT NULLIF ( + 3, - 96 ) + - CASE - 47 WHEN 57 THEN + ( 11 ) * + COUNT( * ) / + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT NULLIF ( + 3, - 96 ) + - CASE - 47 WHEN 57 THEN + ( 11 ) * + COUNT ( * ) / + 79 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT DISTINCT - 15 * ( + 65 ) + - CAST( NULL AS SIGNED ) + 81 + 20 * 62 * + ( + + 74 ) + - - 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - 15 * ( + 65 ) + - CAST ( NULL AS INTEGER ) + 81 + 20 * 62 * + ( + + 74 ) + - - 28 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT ALL 13 * - + 17 + + COUNT( * ) AS col0, - COUNT( * )
----
-220
-1

skipif mysql # not compatible
query II rowsort label-8819
SELECT ALL 13 * - + 17 + + COUNT ( * ) AS col0, - COUNT ( * )
----
-220
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT 46 + - ( + + 24 ) + - - 74 * - 18 * + - CASE + + 81 WHEN - + ( 40 ) * MAX( + 46 ) THEN 72 ELSE NULL END * CAST( 66 * - 26 + ( 82 + + 38 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT 46 + - ( + + 24 ) + - - 74 * - 18 * + - CASE + + 81 WHEN - + ( 40 ) * MAX ( + 46 ) THEN 72 ELSE NULL END * CAST ( 66 * - 26 + ( 82 + + 38 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT + 90 * - NULLIF ( COUNT( * ), - COALESCE ( 15, - 34 * + - 32 * + 64, + 17 * + 30 * - - CASE WHEN NOT 70 BETWEEN NULL AND - NULLIF ( 93, AVG ( 81 ) ) THEN 59 WHEN COALESCE ( COALESCE ( + MIN( 40 ), + MAX( ALL 17 ) * + NULLIF ( 92, + 94 ) + 12 / - 79, 15 ), 27 * - 99 ) IS NOT NULL THEN - 53 * 23 ELSE NULL END ) + 9 * 61 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT + 90 * - NULLIF ( COUNT ( * ), - COALESCE ( 15, - 34 * + - 32 * + 64, + 17 * + 30 * - - CASE WHEN NOT 70 BETWEEN NULL AND - NULLIF ( 93, AVG ( 81 ) ) THEN 59 WHEN COALESCE ( COALESCE ( + MIN ( 40 ), + MAX ( ALL 17 ) * + NULLIF ( 92, + 94 ) + 12 / - 79, 15 ), 27 * - 99 ) IS NOT NULL THEN - 53 * 23 ELSE NULL END ) + 9 * 61 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - 5 * + 88 + + COUNT( * )
----
-439

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - 5 * + 88 + + COUNT ( * )
----
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT 69 * - - MIN( - 36 )
----
-2484

skipif mysql # not compatible
query I rowsort label-8823
SELECT 69 * - - MIN ( - 36 )
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT 78 + - - 99 - - CASE + COUNT( * ) WHEN 49 - 45 THEN - - 93 - - - 4 ELSE NULL END + 75 + 76 * + 1 * - + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT 78 + - - 99 - - CASE + COUNT ( * ) WHEN 49 - 45 THEN - - 93 - - - 4 ELSE NULL END + 75 + 76 * + 1 * - + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT COUNT( ALL - 27 ), + 92 AS col0
----
1
92

skipif mysql # not compatible
query II rowsort label-8825
SELECT COUNT ( ALL - 27 ), + 92 AS col0
----
1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL + - 38 - + 76 * + - COUNT( * ) - 98
----
-60

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + - 38 - + 76 * + - COUNT ( * ) - 98
----
-60

query I rowsort
SELECT + ( + 7 ) - - + 67 + + 45 AS col0
----
119

query I rowsort
SELECT + + 96 col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT - 92 DIV SUM( DISTINCT + 93 ) + + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 92 / SUM ( DISTINCT + 93 ) + + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 66 * + NULLIF ( - 15, + - 49 )
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT DISTINCT - CASE ( COALESCE ( - AVG ( ALL - 24 ), + + 20 + + COUNT( * ) ) ) WHEN + + 3 THEN + + 82 * - 86 - - COUNT( * ) * - 58 - - 4 * 17 ELSE + 74 DIV + 35 + - 21 END DIV + 14
----
1

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - CASE ( COALESCE ( - AVG ( ALL - 24 ), + + 20 + + COUNT ( * ) ) ) WHEN + + 3 THEN + + 82 * - 86 - - COUNT ( * ) * - 58 - - 4 * 17 ELSE + 74 / + 35 + - 21 END / + 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT - + COUNT( + + 87 ) - + + 41 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - + COUNT ( + + 87 ) - + + 41 AS col0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - ( MIN( 42 ) ) + + + ( - 70 ) * 91 col2
----
-6412

skipif mysql # not compatible
query I rowsort label-8834
SELECT - ( MIN ( 42 ) ) + + + ( - 70 ) * 91 col2
----
-6412

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT - COUNT( * ) + - CASE + 72 WHEN - + 6 THEN - - 80 / 40 ELSE NULL END * + 47 - + + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT - COUNT ( * ) + - CASE + 72 WHEN - + 6 THEN - - 80 / 40 ELSE NULL END * + 47 - + + 79 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL + 71 * + CAST( + + 4 AS SIGNED )
----
284

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + 71 * + CAST ( + + 4 AS INTEGER )
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8837
SELECT - - CAST( - + MIN( 43 ) AS SIGNED ), - 49 AS col0
----
-43
-49

skipif mysql # not compatible
query II rowsort label-8837
SELECT - - CAST ( - + MIN ( 43 ) AS INTEGER ), - 49 AS col0
----
-43
-49

query I rowsort
SELECT - + 32 + - 93
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT ALL + 26 + 39 DIV 90 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + 26 + 39 / 90 AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT COALESCE ( - COUNT( * ), - - 39 + 81, + COALESCE ( - + 77, + 31 ) DIV + - COUNT( * ) - + 73 * - COUNT( * ) - - 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT COALESCE ( - COUNT ( * ), - - 39 + 81, + COALESCE ( - + 77, + 31 ) / + - COUNT ( * ) - + 73 * - COUNT ( * ) - - 15 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT - 28 + + 16 + 91 DIV + - COUNT( * ) * - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 28 + + 16 + 91 / + - COUNT ( * ) * - COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT + 45 + + + CASE + 16 WHEN + + 44 - + 21 THEN ( 57 ) + COUNT( * ) * - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + 45 + + + CASE + 16 WHEN + + 44 - + 21 THEN ( 57 ) + COUNT ( * ) * - 83 END
----
NULL

query I rowsort
SELECT DISTINCT + 21 + - 49
----
-28

query I rowsort
SELECT - 16 * - 8
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT + NULLIF ( COUNT( * ), 50 ) + + - CAST( NULL AS SIGNED ) - + - 84 / 49 + CASE + 51 WHEN - - 8 THEN NULL ELSE + 23 * + 67 END + + 16 / - ( - 16 ) + + ( 46 + 42 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT + NULLIF ( COUNT ( * ), 50 ) + + - CAST ( NULL AS INTEGER ) - + - 84 / 49 + CASE + 51 WHEN - - 8 THEN NULL ELSE + 23 * + 67 END + + 16 / - ( - 16 ) + + ( 46 + 42 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 45 + - - 15
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8847
SELECT ALL NULLIF ( - 47, - 39 DIV - SUM( ALL CAST( NULL AS SIGNED ) ) + 45 ) + - 0 - 92 DIV - 95 * 78
----
-47

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL NULLIF ( - 47, - 39 / - SUM ( ALL CAST ( NULL AS INTEGER ) ) + 45 ) + - 0 - 92 / - 95 * 78
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT 38 AS col0, + COUNT( ALL 66 ) - 8 - + 23 col2
----
38
-30

skipif mysql # not compatible
query II rowsort label-8848
SELECT 38 AS col0, + COUNT ( ALL 66 ) - 8 - + 23 col2
----
38
-30

query I rowsort
SELECT + CASE + - ( + 50 ) WHEN + 15 THEN + - ( + 71 ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 94 * - - 16 + 1 AS col2
----
-1503

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL 73 * COUNT( * ) * - 30
----
-2190

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 73 * COUNT ( * ) * - 30
----
-2190

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT DISTINCT 21 * + 0 * + COUNT( * ) * 30 * + 94 * + ( - - 95 ) + + + 42 col0, - 70
----
42
-70

skipif mysql # not compatible
query II rowsort label-8854
SELECT DISTINCT 21 * + 0 * + COUNT ( * ) * 30 * + 94 * + ( - - 95 ) + + + 42 col0, - 70
----
42
-70

query I rowsort
SELECT + 55 * 48
----
2640

query I rowsort
SELECT - 67 + 17
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT - 26 * + ( SUM( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT - 26 * + ( SUM ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8858
SELECT 86 * 35 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - - 40 )
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8860
SELECT + CASE 4 WHEN + - 84 * - - 47 + + + 96 * - 4 + + 40 + - 21 + + 77 * - + CAST( 85 AS DECIMAL ) * + ( - - 33 ) + 31 / + 35 THEN + 69 * 73 ELSE + 28 * 21 END * 22
----
12936

skipif mysql # not compatible
query I rowsort label-8860
SELECT + CASE 4 WHEN + - 84 * - - 47 + + + 96 * - 4 + + 40 + - 21 + + 77 * - + CAST ( 85 AS REAL ) * + ( - - 33 ) + 31 / + 35 THEN + 69 * 73 ELSE + 28 * 21 END * 22
----
12936

query I rowsort
SELECT + 83 * + + ( - 18 ) + 93 AS col0
----
-1401

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + NULLIF ( + + 95, + COUNT( * ) * - 89 )
----
95

skipif mysql # not compatible
query I rowsort label-8862
SELECT + NULLIF ( + + 95, + COUNT ( * ) * - 89 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT DISTINCT + - 50 AS col1, MIN( ALL - 79 )
----
-50
-79

skipif mysql # not compatible
query II rowsort label-8863
SELECT DISTINCT + - 50 AS col1, MIN ( ALL - 79 )
----
-50
-79

query II rowsort
SELECT ALL + 85 AS col2, 80 + 76 AS col0
----
85
156

query I rowsort
SELECT ALL + 43 * + 23 AS col1
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL - COUNT( * ) * ( 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL - COUNT ( * ) * ( 14 ) AS col2
----
-14

query II rowsort
SELECT DISTINCT + - 77, NULLIF ( + 96, + + AVG ( ALL - ( + 7 ) ) ) AS col1
----
-77
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL 95 * - - SUM( DISTINCT - - 7 ) + - CAST( - 55 AS SIGNED )
----
720

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 95 * - - SUM ( DISTINCT - - 7 ) + - CAST ( - 55 AS INTEGER )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT - 35 + - CASE - 27 WHEN 75 THEN NULL WHEN + COUNT( * ) * + 86 * - 61 - + 64 + + 90 - + - 80 + 29 * + + 5 THEN + - ( - COUNT( * ) ) ELSE + COUNT( * ) END + + CASE 14 WHEN - ( 26 ) THEN 20 * 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - 35 + - CASE - 27 WHEN 75 THEN NULL WHEN + COUNT ( * ) * + 86 * - 61 - + 64 + + 90 - + - 80 + 29 * + + 5 THEN + - ( - COUNT ( * ) ) ELSE + COUNT ( * ) END + + CASE 14 WHEN - ( 26 ) THEN 20 * 46 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT - MIN( DISTINCT + CAST( COALESCE ( 79, - NULLIF ( - + 35, 91 / 19 * - 87 * + + 11 + 38 ) + - 45 ) AS SIGNED ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8872
SELECT - MIN ( DISTINCT + CAST ( COALESCE ( 79, - NULLIF ( - + 35, 91 / 19 * - 87 * + + 11 + 38 ) + - 45 ) AS INTEGER ) ) AS col1
----
-79

query I rowsort
SELECT - - 22 + - 0 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + + 56 + + + 85 * + + ( - 27 ) - COUNT( * )
----
-2240

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + + 56 + + + 85 * + + ( - 27 ) - COUNT ( * )
----
-2240

query I rowsort
SELECT ALL 84 + + 59 AS col0
----
143

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8879
SELECT - CASE COUNT( * ) WHEN + + 26 THEN NULL WHEN - + COUNT( + 38 ) THEN CAST( + 82 AS SIGNED ) DIV CAST( - 7 AS SIGNED ) ELSE 22 + + + ( + 2 ) END * - ( - + 1 ) - 69 * - 5 col0
----
321

skipif mysql # not compatible
query I rowsort label-8879
SELECT - CASE COUNT ( * ) WHEN + + 26 THEN NULL WHEN - + COUNT ( + 38 ) THEN CAST ( + 82 AS INTEGER ) / CAST ( - 7 AS INTEGER ) ELSE 22 + + + ( + 2 ) END * - ( - + 1 ) - 69 * - 5 col0
----
321

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

skipif mysql # not compatible
query II rowsort label-8880
SELECT - 86 - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL - 90 * - COUNT( * ) * CASE - 92 WHEN + 83 - ( - 46 ) THEN 23 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL - 90 * - COUNT ( * ) * CASE - 92 WHEN + 83 - ( - 46 ) THEN 23 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 62 * + + 71 AS col1
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - MIN( + NULLIF ( - 38, + 39 + ( + 57 ) + ( 17 ) - 9 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8883
SELECT - MIN ( + NULLIF ( - 38, + 39 + ( + 57 ) + ( 17 ) - 9 ) ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + CASE - + 18 WHEN + 41 * 15 + + 29 + + + MAX( + 50 ) + + + 94 + - 70 THEN + 46 * + 40 + + - 30 * + COUNT( * ) * MIN( 63 ) * - 77 + 69 ELSE 27 + 37 * 73 END
----
2728

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + CASE - + 18 WHEN + 41 * 15 + + 29 + + + MAX ( + 50 ) + + + 94 + - 70 THEN + 46 * + 40 + + - 30 * + COUNT ( * ) * MIN ( 63 ) * - 77 + 69 ELSE 27 + 37 * 73 END
----
2728

query I rowsort
SELECT - 26 + - - 51
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - 55 - + - SUM( ALL + 72 ) + 4
----
21

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - 55 - + - SUM ( ALL + 72 ) + 4
----
21

query I rowsort
SELECT 97 * 2
----
194

query II rowsort
SELECT DISTINCT 43 * - 93, 53 col0
----
-3999
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT + 74 + 67 + - 49 + + 27 DIV - 75 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 74 + 67 + - 49 + + 27 / - 75 AS col2
----
92

query I rowsort
SELECT - 83 * + 91
----
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 3 * + CASE + 64 WHEN 73 + 64 THEN - ( - - 22 ) ELSE - COUNT( * ) END
----
-3

skipif mysql # not compatible
query I rowsort label-8892
SELECT 3 * + CASE + 64 WHEN 73 + 64 THEN - ( - - 22 ) ELSE - COUNT ( * ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + CASE - 82 WHEN - COUNT( * ) * 81 * COUNT( * ) * 4 * 52 * - + ( + 34 ) + + 69 THEN COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT + CASE - 82 WHEN - COUNT ( * ) * 81 * COUNT ( * ) * 4 * 52 * - + ( + 34 ) + + 69 THEN COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT + SUM( - - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8894
SELECT + SUM ( - - 80 ) AS col2
----
80

query I rowsort
SELECT 13 - + 30
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - 99 * - - COALESCE ( - 45, + ( + ( - COUNT( * ) ) ) ) * NULLIF ( + - COUNT( * ), + 26 ) * - + 54 + - 43 AS col0
----
240527

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 99 * - - COALESCE ( - 45, + ( + ( - COUNT ( * ) ) ) ) * NULLIF ( + - COUNT ( * ), + 26 ) * - + 54 + - 43 AS col0
----
240527

query I rowsort
SELECT ALL 52 + - 62 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT - COUNT( * ) * 62 * + 18 * 27 - - 53 AS col1
----
-30079

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - COUNT ( * ) * 62 * + 18 * 27 - - 53 AS col1
----
-30079

query I rowsort
SELECT ALL 96 + + + COALESCE ( + - 48, + - 26 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - 29 * + 74 + + 53 + + 55 + + COUNT( * ) AS col1
----
-2037

skipif mysql # not compatible
query I rowsort label-8901
SELECT - 29 * + 74 + + 53 + + 55 + + COUNT ( * ) AS col1
----
-2037

query I rowsort
SELECT - ( - + 45 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT 57 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-8903
SELECT 57 / - 45
----
-1

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

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

query I rowsort
SELECT 63 * - 12
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT DISTINCT COUNT( * ) + + - 39 col0
----
-38

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT COUNT ( * ) + + - 39 col0
----
-38

query I rowsort
SELECT DISTINCT 27 * 48
----
1296

query I rowsort
SELECT 56 + - 47
----
9

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

skipif mysql # not compatible
query I rowsort label-8909
SELECT 72 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT 82 + + - 46 + - 5 + - 17 * 58 AS col1, - 70
----
-955
-70

query I rowsort
SELECT ALL - 86 - + 11 AS col0
----
-97

query I rowsort
SELECT 52 * 12 AS col1
----
624

query I rowsort
SELECT 91 + + 65 - - 99 * + + 14 AS col2
----
1542

query I rowsort
SELECT DISTINCT - 68 * + 18
----
-1224

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT 78 * - 28 * - + 79 col0, 30 * COUNT( * ) AS col0
----
172536
30

skipif mysql # not compatible
query II rowsort label-8915
SELECT 78 * - 28 * - + 79 col0, 30 * COUNT ( * ) AS col0
----
172536
30

query I rowsort
SELECT DISTINCT - 69 * + - 54
----
3726

query I rowsort
SELECT ALL - - 52 * - 74
----
-3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8918
SELECT - 35 DIV - 59 * 90 - 60 * - COUNT( * ) AS col2, 92
----
60
92

skipif mysql # not compatible
query II rowsort label-8918
SELECT - 35 / - 59 * 90 - 60 * - COUNT ( * ) AS col2, 92
----
60
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT COUNT( * ) + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8919
SELECT COUNT ( * ) + 42 AS col1
----
43

query I rowsort
SELECT ALL + ( 54 ) + 44
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL - COALESCE ( 16, + + COALESCE ( + CAST( + 79 AS SIGNED ), CASE 96 WHEN 10 THEN NULL WHEN - 90 * + COALESCE ( + 53, - + ( 30 ) ) THEN NULL WHEN + + 91 THEN + - 2 END * 78 ) * 4, + 87 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - COALESCE ( 16, + + COALESCE ( + CAST ( + 79 AS INTEGER ), CASE 96 WHEN 10 THEN NULL WHEN - 90 * + COALESCE ( + 53, - + ( 30 ) ) THEN NULL WHEN + + 91 THEN + - 2 END * 78 ) * 4, + 87 ) AS col0
----
-16

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

skipif mysql # not compatible
query I rowsort label-8922
SELECT + COUNT ( * ) / + - 34
----
0

query I rowsort
SELECT + + 11 * + - ( 42 ) + - 64 AS col2
----
-526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) DIV 49 * - 66 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) / 49 * - 66 * + - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 74 + - - 91 * - + 11 * + 69 AS col0
----
-69143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT - CASE 48 WHEN - 67 - + MAX( 5 ) * + CAST( 90 AS SIGNED ) / - 5 THEN NULL WHEN - ( 60 ) THEN - 26 - AVG ( DISTINCT - 94 ) END / - COUNT( * ) + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT - CASE 48 WHEN - 67 - + MAX ( 5 ) * + CAST ( 90 AS INTEGER ) / - 5 THEN NULL WHEN - ( 60 ) THEN - 26 - AVG ( DISTINCT - 94 ) END / - COUNT ( * ) + 29 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT ALL - + 48 + 13 * COALESCE ( + COUNT( * ), COUNT( * ) + CAST( + NULLIF ( - ( - 26 ), 15 * - - SUM( 3 ) + 64 * - 76 ) AS SIGNED ), ( 23 ) DIV COALESCE ( + 64 * 72, + CAST( NULL AS SIGNED ) + 72 * 21 ) ) + - 23 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - + 48 + 13 * COALESCE ( + COUNT ( * ), COUNT ( * ) + CAST ( + NULLIF ( - ( - 26 ), 15 * - - SUM ( 3 ) + 64 * - 76 ) AS INTEGER ), ( 23 ) / COALESCE ( + 64 * 72, + CAST ( NULL AS INTEGER ) + 72 * 21 ) ) + - 23 AS col1
----
-58

query II rowsort
SELECT ALL - 83 + + 68 * - NULLIF ( + 22, + 16 + - + 44 ), + 16 AS col2
----
-1579
16

query I rowsort
SELECT ALL + 39 * - ( + 29 ) + - 80 * - 56 + 45 AS col0
----
3394

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT - - 10 * - + 11 + + + 22 + - COUNT( ALL - ( - + 6 ) ) + + 60 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8930
SELECT - - 10 * - + 11 + + + 22 + - COUNT ( ALL - ( - + 6 ) ) + + 60 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT 85 col1, NULLIF ( 93, + 78 / - 68 + + MIN( 90 ) + + 85 + 1 + 55 * - - COUNT( * ) / + + 86 * + 10 + - + 19 )
----
85
93

skipif mysql # not compatible
query II rowsort label-8931
SELECT 85 col1, NULLIF ( 93, + 78 / - 68 + + MIN ( 90 ) + + 85 + 1 + 55 * - - COUNT ( * ) / + + 86 * + 10 + - + 19 )
----
85
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL 2 + + 17 * COUNT( * ) * + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL 2 + + 17 * COUNT ( * ) * + - COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8933
SELECT - COUNT( * ) + 86 / - - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) + 86 / - - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8934
SELECT ALL 38, - 67 DIV - CAST( + ( - ( ( 77 ) ) ) AS SIGNED ) * - - 38 AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL 38, - 67 / - CAST ( + ( - ( ( 77 ) ) ) AS INTEGER ) * - - 38 AS col0
----
38
0

query II rowsort
SELECT 62 AS col2, + 51
----
62
51

query I rowsort
SELECT ALL 74 - + 89
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT 80 DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT 80 / - + 48
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT 57 AS col0, SUM( ALL - 14 ) AS col2
----
57
-14

skipif mysql # not compatible
query II rowsort label-8938
SELECT 57 AS col0, SUM ( ALL - 14 ) AS col2
----
57
-14

query II rowsort
SELECT 92 AS col2, + 4
----
92
4

query I rowsort
SELECT ALL 15 - + 48 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + COUNT( * ) * + COALESCE ( + 31, - 54 )
----
31

skipif mysql # not compatible
query I rowsort label-8941
SELECT + COUNT ( * ) * + COALESCE ( + 31, - 54 )
----
31

query I rowsort
SELECT + COALESCE ( - + 23, - - 22 ) * + 36 * ( + ( - 84 ) )
----
69552

query II rowsort
SELECT 0, 75 AS col1
----
0
75

query I rowsort
SELECT + 97 - + 1
----
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + 66 * + 7 * COUNT( * )
----
462

skipif mysql # not compatible
query I rowsort label-8947
SELECT + 66 * + 7 * COUNT ( * )
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8948
SELECT + ( 70 ) DIV - 2 - 76 - - - MIN( 33 ) + + - 33 * - ( + 56 )
----
1704

skipif mysql # not compatible
query I rowsort label-8948
SELECT + ( 70 ) / - 2 - 76 - - - MIN ( 33 ) + + - 33 * - ( + 56 )
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - - COUNT( * ) - - - 70 + - 95 col0
----
-164

skipif mysql # not compatible
query I rowsort label-8949
SELECT - - COUNT ( * ) - - - 70 + - 95 col0
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8950
SELECT ALL + - 62 AS col1, CASE - 68 WHEN - - 3 THEN + ( - COUNT( * ) ) WHEN + COUNT( ALL 57 ) THEN + 23 ELSE - 60 DIV - 7 END DIV - 70
----
-62
0

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL + - 62 AS col1, CASE - 68 WHEN - - 3 THEN + ( - COUNT ( * ) ) WHEN + COUNT ( ALL 57 ) THEN + 23 ELSE - 60 / - 7 END / - 70
----
-62
0

query II rowsort
SELECT + 43 AS col0, - ( 74 ) AS col2
----
43
-74

query I rowsort
SELECT + - CASE + + ( - ( 60 ) ) WHEN - + 86 THEN + 33 END * + AVG ( DISTINCT + 7 )
----
NULL

query I rowsort
SELECT DISTINCT 8 * - + 74 + 92 * - + 63 col2
----
-6388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8954
SELECT + - COALESCE ( + - 46, + + NULLIF ( - - 12, COUNT( * ) * + 39 - 79 - + + CAST( NULL AS SIGNED ) ) + - + 33 ), 32 AS col0
----
46
32

skipif mysql # not compatible
query II rowsort label-8954
SELECT + - COALESCE ( + - 46, + + NULLIF ( - - 12, COUNT ( * ) * + 39 - 79 - + + CAST ( NULL AS INTEGER ) ) + - + 33 ), 32 AS col0
----
46
32

query I rowsort
SELECT DISTINCT + 28 * - - 66 + 58 AS col1
----
1906

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL + - 9 * + COUNT( * ) + - 53 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + - 9 * + COUNT ( * ) + - 53 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8957
SELECT + 55 AS col1, COALESCE ( - ( 90 ), + 62 * + 51 + + - COUNT( * ) + 36 * + + 94 * - + ( + - 36 ) )
----
55
-90

skipif mysql # not compatible
query II rowsort label-8957
SELECT + 55 AS col1, COALESCE ( - ( 90 ), + 62 * + 51 + + - COUNT ( * ) + 36 * + + 94 * - + ( + - 36 ) )
----
55
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT + + 77 * + + 27 * + CAST( NULL AS SIGNED ) + 2 * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + + 77 * + + 27 * + CAST ( NULL AS INTEGER ) + 2 * 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT 12, COUNT( * ) col0
----
12
1

skipif mysql # not compatible
query II rowsort label-8959
SELECT 12, COUNT ( * ) col0
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - - MAX( + 58 ) - - + 68
----
126

skipif mysql # not compatible
query I rowsort label-8960
SELECT - - MAX ( + 58 ) - - + 68
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT ALL + - 57 DIV + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + - 57 / + COUNT ( * ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - COALESCE ( - 82, 47 ) * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-8962
SELECT - COALESCE ( - 82, 47 ) * COUNT ( * ) col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT ALL + COUNT( ALL 10 ) DIV + 9 * 91
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + COUNT ( ALL 10 ) / + 9 * 91
----
0

query I rowsort
SELECT - 27 + + ( 30 )
----
3

query I rowsort
SELECT ALL + 86 * + 33 AS col2
----
2838

query I rowsort
SELECT - 44 * 63 * - 23 AS col0
----
63756

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - 3 + + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8967
SELECT - 3 + + + COUNT ( * )
----
-2

query I rowsort
SELECT + 9 - 88 AS col1
----
-79

query II rowsort
SELECT ALL + 86 * + 64, 20 AS col1
----
5504
20

query I rowsort
SELECT - 73 + - 50 + - 9 * + + 31 * - 85 AS col1
----
23592

query I rowsort
SELECT + COALESCE ( + 30, - 38 ) + + 27
----
57

query I rowsort
SELECT + ( + 63 ) * - - 8
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8973
SELECT ALL CAST( + 67 AS SIGNED ), 55 AS col1
----
67
55

skipif mysql # not compatible
query II rowsort label-8973
SELECT ALL CAST ( + 67 AS INTEGER ), 55 AS col1
----
67
55

query II rowsort
SELECT ALL - 96 + + + 40 * - + 98 * 77 + + 35 col1, - 58 * 35 AS col2
----
-301901
-2030

query I rowsort
SELECT - 55 + + 72 + + ( + - 23 ) AS col2
----
-6

query I rowsort
SELECT + 19 + 55 + + 10 * + - 24 AS col0
----
-166

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

skipif mysql # not compatible
query I rowsort label-8977
SELECT - SUM ( + 85 )
----
-85

query I rowsort
SELECT + 37 * + - 38 * - - 87
----
-122322

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 95 + - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 95 + - - COUNT ( * )
----
96

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

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

query I rowsort
SELECT DISTINCT - ( 10 ) + - + 6 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT ALL + CAST( NULL AS SIGNED ) * - - 50 / + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 50 / + + 92 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT + + 27 + - CASE ( - + COUNT( * ) ) WHEN + NULLIF ( 81, + 11 ) + - - 49 THEN NULL ELSE + 87 * + 65 END / + 3 / - CAST( NULL AS SIGNED ) - - - 19 + - ( - - MIN( - + 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT + + 27 + - CASE ( - + COUNT ( * ) ) WHEN + NULLIF ( 81, + 11 ) + - - 49 THEN NULL ELSE + 87 * + 65 END / + 3 / - CAST ( NULL AS INTEGER ) - - - 19 + - ( - - MIN ( - + 83 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 17 * 23 AS col2
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT + - 94 DIV - 93 + + + 71
----
72

skipif mysql # not compatible
query I rowsort label-8985
SELECT + - 94 / - 93 + + + 71
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT + NULLIF ( 17, - 46 + 55 + + - COUNT( * ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + NULLIF ( 17, - 46 + 55 + + - COUNT ( * ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + - 30 * + - COUNT( * ) * 93 - - - 85
----
2705

skipif mysql # not compatible
query I rowsort label-8987
SELECT + - 30 * + - COUNT ( * ) * 93 - - - 85
----
2705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT + + COUNT( * ) DIV CAST( - 81 AS SIGNED ) + + + 63 - ( - 37 ) + + ( COUNT( * ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + + COUNT ( * ) / CAST ( - 81 AS INTEGER ) + + + 63 - ( - 37 ) + + ( COUNT ( * ) ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8989
SELECT ALL CAST( - 40 AS SIGNED ) DIV - 44 * CAST( + + 88 AS SIGNED ) + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL CAST ( - 40 AS INTEGER ) / - 44 * CAST ( + + 88 AS INTEGER ) + - 58
----
-58

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

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

query I rowsort
SELECT - 6 * - + 87
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + + CASE COALESCE ( - COUNT( * ), + 78 ) WHEN + 94 + - COUNT( * ) THEN - 58 + + 2 + + 77 WHEN + + 68 * + + COUNT( * ) + - 8 - + COUNT( * ) THEN + + 49 ELSE - + 22 END
----
-22

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + + CASE COALESCE ( - COUNT ( * ), + 78 ) WHEN + 94 + - COUNT ( * ) THEN - 58 + + 2 + + 77 WHEN + + 68 * + + COUNT ( * ) + - 8 - + COUNT ( * ) THEN + + 49 ELSE - + 22 END
----
-22

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8994
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( - + COUNT( + - 17 ) ) * - - COUNT( * ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( - + COUNT ( + - 17 ) ) * - - COUNT ( * ) * 82
----
NULL

query I rowsort
SELECT ALL + 54 * - NULLIF ( 96, + 76 + + ( 19 ) + - 54 + 23 )
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT ALL - 11 AS col1, - CASE - 45 WHEN - 81 THEN NULL WHEN - 23 * COUNT( * ) + - 19 * 6 / 44 + 19 THEN 89 * 93 END - + 68 + 0 * - 49 * + 20 * 59 col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-8996
SELECT ALL - 11 AS col1, - CASE - 45 WHEN - 81 THEN NULL WHEN - 23 * COUNT ( * ) + - 19 * 6 / 44 + 19 THEN 89 * 93 END - + 68 + 0 * - 49 * + 20 * 59 col0
----
-11
NULL

query I rowsort
SELECT 82 + + + 53
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT 56 * - NULLIF ( 19, - NULLIF ( + 30, + 57 * - 99 + - + NULLIF ( - - MIN( - + 57 ), + + 48 - - 75 * + - 79 ) * 22 + + 35 - 46 ) ) * - 90
----
95760

skipif mysql # not compatible
query I rowsort label-8998
SELECT 56 * - NULLIF ( 19, - NULLIF ( + 30, + 57 * - 99 + - + NULLIF ( - - MIN ( - + 57 ), + + 48 - - 75 * + - 79 ) * 22 + + 35 - 46 ) ) * - 90
----
95760

query I rowsort
SELECT 91 + - 16 * + ( + 5 )
----
11

query II rowsort
SELECT 17 col0, - 88 AS col2
----
17
-88

query II rowsort
SELECT ALL 60, 70 AS col0
----
60
70

query II rowsort
SELECT 30, 77 AS col0
----
30
77

query II rowsort
SELECT - 67 AS col0, - 39 * 72 * - + 58 AS col2
----
-67
162864

query I rowsort
SELECT ALL + 64 + + 22
----
86

query I rowsort
SELECT 62 - - 40 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT 71 - 18 + - + COUNT( DISTINCT - 90 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9006
SELECT 71 - 18 + - + COUNT ( DISTINCT - 90 ) AS col2
----
52

query I rowsort
SELECT 7 * 42
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - 92 * + - COALESCE ( + 17, + COUNT( * ) )
----
1564

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - 92 * + - COALESCE ( + 17, + COUNT ( * ) )
----
1564

query I rowsort
SELECT 81 * - + 20
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT 60 AS col1, + 37 * COUNT( * ) * 3 AS col2
----
60
111

skipif mysql # not compatible
query II rowsort label-9010
SELECT 60 AS col1, + 37 * COUNT ( * ) * 3 AS col2
----
60
111

query I rowsort
SELECT 96 - + 86
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9012
SELECT ALL + 46 AS col1, + COALESCE ( - CASE + CAST( NULL AS SIGNED ) WHEN - MIN( DISTINCT - + 88 ) * - MAX( ALL - 86 ) + 93 * - + 18 THEN - + MAX( DISTINCT + + 2 ) * + 45 DIV 66 * + 60 + - ( - - 77 ) WHEN - + CASE 97 WHEN 57 THEN + ( 68 ) + 48 * 19 ELSE NULL END + - 16 THEN + 18 END, 12 )
----
46
12

skipif mysql # not compatible
query II rowsort label-9012
SELECT ALL + 46 AS col1, + COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN - MIN ( DISTINCT - + 88 ) * - MAX ( ALL - 86 ) + 93 * - + 18 THEN - + MAX ( DISTINCT + + 2 ) * + 45 / 66 * + 60 + - ( - - 77 ) WHEN - + CASE 97 WHEN 57 THEN + ( 68 ) + 48 * 19 ELSE NULL END + - 16 THEN + 18 END, 12 )
----
46
12

query II rowsort
SELECT ALL + 36 col2, - 5
----
36
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT - + 79, + 93 * ( + + NULLIF ( 74, - 38 * + - COUNT( * ) ) ) * - + 5 AS col2
----
-79
-34410

skipif mysql # not compatible
query II rowsort label-9014
SELECT - + 79, + 93 * ( + + NULLIF ( 74, - 38 * + - COUNT ( * ) ) ) * - + 5 AS col2
----
-79
-34410

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

skipif mysql # not compatible
query II rowsort label-9015
SELECT 93 AS col0, COUNT ( * ) AS col1
----
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT NULLIF ( - 99, + COUNT( * ) * - CASE + - 63 WHEN - NULLIF ( - COUNT( * ), + - 51 + + 18 ) THEN + 42 + + 81 + 92 / - 0 * + SUM( 79 ) * - - AVG ( DISTINCT - 38 ) END * + 58 + 28 + - SUM( ALL 74 - 19 * 43 ) * COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-9016
SELECT NULLIF ( - 99, + COUNT ( * ) * - CASE + - 63 WHEN - NULLIF ( - COUNT ( * ), + - 51 + + 18 ) THEN + 42 + + 81 + 92 / - 0 * + SUM ( 79 ) * - - AVG ( DISTINCT - 38 ) END * + 58 + 28 + - SUM ( ALL 74 - 19 * 43 ) * COUNT ( * ) )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT ALL - + 91 - NULLIF ( + + 39, + + 5 ) + - - MAX( DISTINCT + - 8 ) - + 82 * - + 34 * - + CASE 67 WHEN + COUNT( * ) * + 37 + - COUNT( * ) + - 22 / - - CAST( NULL AS SIGNED ) * + 86 + + 49 + + 76 + 48 THEN + 85 ELSE ( 43 ) * + 82 END AS col2
----
-9830626

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - + 91 - NULLIF ( + + 39, + + 5 ) + - - MAX ( DISTINCT + - 8 ) - + 82 * - + 34 * - + CASE 67 WHEN + COUNT ( * ) * + 37 + - COUNT ( * ) + - 22 / - - CAST ( NULL AS INTEGER ) * + 86 + + 49 + + 76 + 48 THEN + 85 ELSE ( 43 ) * + 82 END AS col2
----
-9830626

query I rowsort
SELECT - 93 + + ( - + 24 )
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT SUM( + 31 ) * - 95 AS col2, 52
----
-2945
52

skipif mysql # not compatible
query II rowsort label-9019
SELECT SUM ( + 31 ) * - 95 AS col2, 52
----
-2945
52

query I rowsort
SELECT 15 * + 4 + - + 49 * - 34 * + 84 * + + 70 * 48
----
470211900

query II rowsort
SELECT ALL - 61, 83 col0
----
-61
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9022
SELECT 67 AS col1, - NULLIF ( + 96, 14 + + + AVG ( ALL - 3 ) + + + NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), - - 58 * - 32 + + ( - - 37 ) * 52 ) + 81 DIV + 10 + - + 3 + 89 + - COUNT( * ) * + ( + COUNT( * ) * - 83 + - 7 ) ) DIV CAST( 37 * - 50 AS SIGNED )
----
67
0

skipif mysql # not compatible
query II rowsort label-9022
SELECT 67 AS col1, - NULLIF ( + 96, 14 + + + AVG ( ALL - 3 ) + + + NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), - - 58 * - 32 + + ( - - 37 ) * 52 ) + 81 / + 10 + - + 3 + 89 + - COUNT ( * ) * + ( + COUNT ( * ) * - 83 + - 7 ) ) / CAST ( 37 * - 50 AS INTEGER )
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT + CASE + CAST( 96 AS SIGNED ) WHEN + 97 THEN NULL WHEN 2 THEN - - 83 ELSE 68 END AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9023
SELECT + CASE + CAST ( 96 AS INTEGER ) WHEN + 97 THEN NULL WHEN 2 THEN - - 83 ELSE 68 END AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT COUNT( DISTINCT 43 ) - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9024
SELECT COUNT ( DISTINCT 43 ) - 96 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT 51 * MAX( ALL - 82 ) * + + 94 + - COUNT( * ) * + 75 + + - 39
----
-393222

skipif mysql # not compatible
query I rowsort label-9025
SELECT 51 * MAX ( ALL - 82 ) * + + 94 + - COUNT ( * ) * + 75 + + - 39
----
-393222

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9026
SELECT + CAST( NULL AS DECIMAL ) AS col1, + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-9026
SELECT + CAST ( NULL AS REAL ) AS col1, + 78 AS col2
----
NULL
78

query I rowsort
SELECT ALL - 60 * + + 21
----
-1260

query I rowsort
SELECT DISTINCT - + 24 * + 24 + + 18 * - 60 + + 84 AS col2
----
-1572

query I rowsort
SELECT 43 + - 44 + - + 53
----
-54

query I rowsort
SELECT 95 * + 70 * - 99 + + 97
----
-658253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT ALL 92 + + 23 + + COUNT( * ) + 93 DIV 6 + 46 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL 92 + + 23 + + COUNT ( * ) + 93 / 6 + 46 AS col1
----
177

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

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

query II rowsort
SELECT DISTINCT 21 + - 12, + 29 + - 95 AS col0
----
9
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL - COUNT( * ) * + SUM( DISTINCT + - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT + - 12 )
----
12

query I rowsort
SELECT ALL + 68 + + 90 col0
----
158

query I rowsort
SELECT + 21 * + + 51 + + 59 + + - 32 AS col1
----
1098

query I rowsort
SELECT ALL 56 + 15
----
71

query I rowsort
SELECT 62 + 68 * - 11 AS col2
----
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT ALL 49 * 91 DIV + - 78
----
-57

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 49 * 91 / + - 78
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT 7 - - - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9040
SELECT 7 - - - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT 16 + + - 74 col1
----
-58

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

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT COUNT ( * ) + - - ( + COUNT ( * ) ) + + + 2 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9043
SELECT ALL - 16 DIV 20 * 50 + - CAST( - 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - 16 / 20 * 50 + - CAST ( - 25 AS INTEGER )
----
25

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

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + COUNT ( + - 99 ) AS col2
----
1

query I rowsort
SELECT ALL + - COALESCE ( - 8, - 76, 53 ) - 16 + - + 26 + 16 * + 35
----
526

query I rowsort
SELECT ALL - 56 * 35 * - 25 AS col0
----
49000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9047
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, 53 * - 88 + ( + 38 ) AS col0
----
NULL
-4626

skipif mysql # not compatible
query II rowsort label-9047
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, 53 * - 88 + ( + 38 ) AS col0
----
NULL
-4626

query I rowsort
SELECT DISTINCT + 23 * + + 46
----
1058

query I rowsort
SELECT DISTINCT - 64 * ( - + 5 )
----
320

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT - 14 DIV 28 * + 45 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT - 14 / 28 * + 45 * - 56
----
0

query I rowsort
SELECT 66 * - 49 AS col2
----
-3234

query I rowsort
SELECT ALL - 20 * - 29 + 69
----
649

query I rowsort
SELECT 97 + 53 AS col0
----
150

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

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

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

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - - CAST ( + CAST ( - 20 AS INTEGER ) AS INTEGER ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - 42 * - - CASE - 5 WHEN + + 90 + - + NULLIF ( - - ( + 12 ), + - 65 ) THEN NULL WHEN + - 78 * - 78 THEN + - 36 * + 45 * 10 + NULLIF ( MIN( + 94 ), + - 15 ) + + 44 * + 67 ELSE 43 END * 52 + + 2
----
-93910

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 42 * - - CASE - 5 WHEN + + 90 + - + NULLIF ( - - ( + 12 ), + - 65 ) THEN NULL WHEN + - 78 * - 78 THEN + - 36 * + 45 * 10 + NULLIF ( MIN ( + 94 ), + - 15 ) + + 44 * + 67 ELSE 43 END * 52 + + 2
----
-93910

query I rowsort
SELECT - + 48 + + 70 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - - ( + - 56 ) * - 83 - ( + COUNT( * ) ) AS col0
----
4647

skipif mysql # not compatible
query I rowsort label-9058
SELECT - - ( + - 56 ) * - 83 - ( + COUNT ( * ) ) AS col0
----
4647

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + COALESCE ( + SUM( ALL + 85 ), 99 )
----
85

skipif mysql # not compatible
query I rowsort label-9059
SELECT + COALESCE ( + SUM ( ALL + 85 ), 99 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + 99 + + COUNT( * ) + + 34 * 26 * MAX( 23 ) + - + 95 * - 92 * + MIN( DISTINCT - + 43 ) col1
----
-355388

skipif mysql # not compatible
query I rowsort label-9060
SELECT + 99 + + COUNT ( * ) + + 34 * 26 * MAX ( 23 ) + - + 95 * - 92 * + MIN ( DISTINCT - + 43 ) col1
----
-355388

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL 18 * + + 56 * 82 + - COUNT( * ) * ( - 49 )
----
82705

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL 18 * + + 56 * 82 + - COUNT ( * ) * ( - 49 )
----
82705

query I rowsort
SELECT + 12 * 45 + - 44 - - 51 + + + 12
----
559

query I rowsort
SELECT + 37 * 5 + + 76 AS col2
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT ALL - 36 DIV - 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - 36 / - 30 AS col0
----
1

query I rowsort
SELECT ALL 55 * + 65 + + + 6
----
3581

query I rowsort
SELECT DISTINCT 30 * + 69 + + 51 * + COALESCE ( + 51, - 61 ) + + 14 * + 19 * - 20 AS col1
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + 92 * COUNT( DISTINCT - + 58 ) * + + 19 + + ( - 15 ) AS col2
----
1733

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 92 * COUNT ( DISTINCT - + 58 ) * + + 19 + + ( - 15 ) AS col2
----
1733

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

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

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

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

query I rowsort
SELECT + 96 + 21 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9071
SELECT ALL COUNT( * ) + MIN( 10 ) + - 48 + 60 DIV + COALESCE ( - 70, + 32 - MAX( - - 99 ) ) AS col1, CAST( NULL AS SIGNED ) DIV - 24
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL COUNT ( * ) + MIN ( 10 ) + - 48 + 60 / + COALESCE ( - 70, + 32 - MAX ( - - 99 ) ) AS col1, CAST ( NULL AS INTEGER ) / - 24
----
-37
NULL

query I rowsort
SELECT + 14 * - + 12 AS col2
----
-168

query II rowsort
SELECT 85 AS col2, - ( + 5 )
----
85
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT COUNT( ALL - - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT COUNT ( ALL - - 90 ) AS col0
----
1

query I rowsort
SELECT + - 65 * - 19
----
1235

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT - 12 col2, - 25 + MAX( ALL - - 46 ) * - CASE - 95 WHEN + - MIN( - 32 ) * 93 + - 51 + + 83 * 49 THEN - 66 ELSE NULL END
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-9077
SELECT - 12 col2, - 25 + MAX ( ALL - - 46 ) * - CASE - 95 WHEN + - MIN ( - 32 ) * 93 + - 51 + + 83 * 49 THEN - 66 ELSE NULL END
----
-12
NULL

query I rowsort
SELECT + - 21 + 83
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + 84 * NULLIF ( + 60, + + 46 + + + ( + 60 ) ) - + COUNT( * ) AS col0
----
5039

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 84 * NULLIF ( + 60, + + 46 + + + ( + 60 ) ) - + COUNT ( * ) AS col0
----
5039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT - ( + 40 ) + - 42 + - + ( + CASE + - 23 WHEN + - 74 THEN CASE + ( + 34 ) WHEN - 65 / - - 97 * CAST( NULL AS SIGNED ) * - AVG ( + + 2 ) THEN + 77 * - 68 END * + - 98 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT - ( + 40 ) + - 42 + - + ( + CASE + - 23 WHEN + - 74 THEN CASE + ( + 34 ) WHEN - 65 / - - 97 * CAST ( NULL AS INTEGER ) * - AVG ( + + 2 ) THEN + 77 * - 68 END * + - 98 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 72 * - 92
----
-6624

query I rowsort
SELECT + 11 - + 3
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9083
SELECT ALL - COALESCE ( - - 22, - + 45 ) AS col2, ( CAST( NULL AS DECIMAL ) ) * + + 68
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-9083
SELECT ALL - COALESCE ( - - 22, - + 45 ) AS col2, ( CAST ( NULL AS REAL ) ) * + + 68
----
-22
NULL

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

skipif mysql # not compatible
query I rowsort label-9084
SELECT - + 38 * - + CAST ( + 46 AS INTEGER ) AS col1
----
1748

query I rowsort
SELECT - 25 - + - ( + 31 )
----
6

query I rowsort
SELECT - 39 + + + 94 + + 89 AS col2
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-9087
SELECT - + 89 DIV 24 + - 3 AS col1, ( + 47 ) - + 65 * + 38 + 10
----
-6
-2413

skipif mysql # not compatible
query II rowsort label-9087
SELECT - + 89 / 24 + - 3 AS col1, ( + 47 ) - + 65 * + 38 + 10
----
-6
-2413

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT ALL + 83 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + 83 / + 77
----
1

query I rowsort
SELECT + 87 * + 94 * + 52
----
425256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9090
SELECT DISTINCT - COUNT( - NULLIF ( - CAST( + 13 AS SIGNED ), - 11 + + 1 ) ) DIV 73 DIV + + MAX( DISTINCT - + 19 ) * + 6 * 41 * 17 * 41 + + 36 + - ( + 28 ) col2, - 93 AS col1
----
8
-93

skipif mysql # not compatible
query II rowsort label-9090
SELECT DISTINCT - COUNT ( - NULLIF ( - CAST ( + 13 AS INTEGER ), - 11 + + 1 ) ) / 73 / + + MAX ( DISTINCT - + 19 ) * + 6 * 41 * 17 * 41 + + 36 + - ( + 28 ) col2, - 93 AS col1
----
8
-93

query I rowsort
SELECT + + 45 + + + 70
----
115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9092
SELECT + + 74 DIV + - CAST( + 66 AS SIGNED ) + - 69 * + + 13 - 26 AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-9092
SELECT + + 74 / + - CAST ( + 66 AS INTEGER ) + - 69 * + + 13 - 26 AS col2
----
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9093
SELECT - 84 DIV + COUNT( + 46 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9093
SELECT - 84 / + COUNT ( + 46 ) AS col1
----
-84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL + - 33 / - - CAST( NULL AS SIGNED ) + COUNT( ALL - 7 ) * - 46 / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + - 33 / - - CAST ( NULL AS INTEGER ) + COUNT ( ALL - 7 ) * - 46 / 57
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT - ( - - COUNT( * ) ) DIV + - 69 + - COUNT( * ) + - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT - ( - - COUNT ( * ) ) / + - 69 + - COUNT ( * ) + - + 94 AS col2
----
-95

query II rowsort
SELECT + 89 AS col2, + 70
----
89
70

query I rowsort
SELECT + 20 * 83
----
1660

query I rowsort
SELECT - 91 + - + ( 61 )
----
-152

query I rowsort
SELECT + NULLIF ( 85, - 0 * + 97 * 33 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT ALL - 0 * + COUNT( * ) + + - CASE - MAX( ALL - 29 ) WHEN 62 + - ( + 98 ) / CAST( NULL AS SIGNED ) THEN + 82 WHEN 0 + 73 THEN + NULLIF ( - - 99, + 10 ) ELSE NULL END / - 84 * ( + + 6 ) * + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - 0 * + COUNT ( * ) + + - CASE - MAX ( ALL - 29 ) WHEN 62 + - ( + 98 ) / CAST ( NULL AS INTEGER ) THEN + 82 WHEN 0 + 73 THEN + NULLIF ( - - 99, + 10 ) ELSE NULL END / - 84 * ( + + 6 ) * + 76 AS col2
----
NULL

query I rowsort
SELECT - 8 - - + 91 * - + 71 col0
----
-6469

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT COALESCE ( + + COUNT( * ), - - COALESCE ( + COUNT( * ), 14 + 96, + COUNT( * ) * 85 * 68 + + 69 ) * - 66 + 24 * 0 + + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9103
SELECT COALESCE ( + + COUNT ( * ), - - COALESCE ( + COUNT ( * ), 14 + 96, + COUNT ( * ) * 85 * 68 + + 69 ) * - 66 + 24 * 0 + + - 1 )
----
1

query I rowsort
SELECT DISTINCT 6 * - 83 - + - 96 AS col1
----
-402

query I rowsort
SELECT DISTINCT + 88 * 32 AS col2
----
2816

query I rowsort
SELECT DISTINCT + 79 * - + 37
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - 75 * - + 30 + - COUNT( * ) AS col1
----
2249

skipif mysql # not compatible
query I rowsort label-9107
SELECT - 75 * - + 30 + - COUNT ( * ) AS col1
----
2249

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL - 85 * - MIN( DISTINCT - + 77 ) - - + 10
----
-6535

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - 85 * - MIN ( DISTINCT - + 77 ) - - + 10
----
-6535

query I rowsort
SELECT + 54 * - 72
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - COUNT( * ) + 73 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9110
SELECT - COUNT ( * ) + 73 AS col1
----
72

query I rowsort
SELECT + 30 - - 92 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - + COUNT( * ) * - 57 + 12
----
69

skipif mysql # not compatible
query I rowsort label-9112
SELECT - + COUNT ( * ) * - 57 + 12
----
69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT - 69 DIV COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9114
SELECT - 69 / COUNT ( * ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + COUNT( * ) + + 1 + + MIN( ALL + 70 ) + + 82 + 76 * 94
----
7298

skipif mysql # not compatible
query I rowsort label-9115
SELECT + COUNT ( * ) + + 1 + + MIN ( ALL + 70 ) + + 82 + 76 * 94
----
7298

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + - 84 + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9117
SELECT + - 84 + + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL + MAX( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + MAX ( DISTINCT - 10 ) AS col1
----
-10

query I rowsort
SELECT 95 + + 52
----
147

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

onlyif mysql # DIV for integer division: 
query II rowsort label-9121
SELECT ALL 64 AS col2, - COALESCE ( + 20, - + COALESCE ( - 65, + + 41 + - - 78 ) ) DIV - 73 + - + 41
----
64
-41

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL 64 AS col2, - COALESCE ( + 20, - + COALESCE ( - 65, + + 41 + - - 78 ) ) / - 73 + - + 41
----
64
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9122
SELECT - 92, + 77 DIV - COUNT( * ) - + 42 AS col1
----
-92
-119

skipif mysql # not compatible
query II rowsort label-9122
SELECT - 92, + 77 / - COUNT ( * ) - + 42 AS col1
----
-92
-119

query I rowsort
SELECT - 85 + + 35 + - - NULLIF ( + 81, - 99 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9124
SELECT - - 75 AS col2, CAST( NULL AS SIGNED ) AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9124
SELECT - - 75 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT 18 + - 38 * COUNT( * ) / + ( - CASE - 2 WHEN + 31 + + - 49 + - NULLIF ( - - 89, AVG ( + - ( 58 ) ) ) / 67 + 76 THEN + - 90 END ), + NULLIF ( - 48, ( - + 5 ) * + - 51 ) * COUNT( * ) - + 21 * + 77 AS col2
----
NULL
-1665

skipif mysql # not compatible
query II rowsort label-9125
SELECT 18 + - 38 * COUNT ( * ) / + ( - CASE - 2 WHEN + 31 + + - 49 + - NULLIF ( - - 89, AVG ( + - ( 58 ) ) ) / 67 + 76 THEN + - 90 END ), + NULLIF ( - 48, ( - + 5 ) * + - 51 ) * COUNT ( * ) - + 21 * + 77 AS col2
----
NULL
-1665

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT 64 + - 44 DIV + CASE 31 WHEN 10 THEN NULL ELSE 46 END AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9126
SELECT 64 + - 44 / + CASE 31 WHEN 10 THEN NULL ELSE 46 END AS col2
----
64

query I rowsort
SELECT ALL 42 + + - 1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT + COUNT( * ) AS col2, - 39 * - 40 * + - 9
----
1
-14040

skipif mysql # not compatible
query II rowsort label-9128
SELECT + COUNT ( * ) AS col2, - 39 * - 40 * + - 9
----
1
-14040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT ALL - CAST( - 40 AS SIGNED ) * + + 78 AS col1
----
3120

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - CAST ( - 40 AS INTEGER ) * + + 78 AS col1
----
3120

query I rowsort
SELECT DISTINCT 90 + 86 * 5 * + + 94 + - 30 + + 92 + + 64 + 65 + 23
----
40724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL - CAST( + 12 AS SIGNED ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - CAST ( + 12 AS INTEGER ) col1
----
-12

query I rowsort
SELECT 28 + - - 15
----
43

query I rowsort
SELECT ALL 80 + - 71
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL - MAX( + 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - MAX ( + 38 ) col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT 92 + + 50 / 96 - - + CASE - COUNT( ALL 56 ) WHEN - + AVG ( + + ( CASE + 65 WHEN - 81 THEN - 54 WHEN + + 37 THEN - - COALESCE ( - 54, 33 ) WHEN + 89 THEN - 1 END ) ) THEN - 74 WHEN 46 THEN - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT 92 + + 50 / 96 - - + CASE - COUNT ( ALL 56 ) WHEN - + AVG ( + + ( CASE + 65 WHEN - 81 THEN - 54 WHEN + + 37 THEN - - COALESCE ( - 54, 33 ) WHEN + 89 THEN - 1 END ) ) THEN - 74 WHEN 46 THEN - 6 END
----
NULL

query II rowsort
SELECT + COALESCE ( - 97, + + ( - 47 ) ) * - - 94 + - 92 - 28 AS col0, 55
----
-9238
55

query I rowsort
SELECT 7 + + - 72 - 71 AS col0
----
-136

query I rowsort
SELECT ALL - 64 - + 35 AS col0
----
-99

query I rowsort
SELECT 90 * - 19
----
-1710

query II rowsort
SELECT ALL 73 * + 6 AS col2, 42 * + - 82 AS col1
----
438
-3444

query I rowsort
SELECT ALL 91 - 78
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9142
SELECT ALL - CASE + COALESCE ( + - 5, - CAST( 70 AS SIGNED ) + + + CASE - - NULLIF ( 55, 29 + - 28 ) WHEN - CAST( - 65 AS SIGNED ) DIV CAST( - - 83 AS SIGNED ) THEN - + 91 * - 51 END ) WHEN - 4 DIV SUM( ALL + 50 ) - 60 THEN NULL WHEN - 2 THEN 9 * ( 68 ) ELSE + 17 DIV + 9 + + 40 END AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - CASE + COALESCE ( + - 5, - CAST ( 70 AS INTEGER ) + + + CASE - - NULLIF ( 55, 29 + - 28 ) WHEN - CAST ( - 65 AS INTEGER ) / CAST ( - - 83 AS INTEGER ) THEN - + 91 * - 51 END ) WHEN - 4 / SUM ( ALL + 50 ) - 60 THEN NULL WHEN - 2 THEN 9 * ( 68 ) ELSE + 17 / + 9 + + 40 END AS col2
----
-41

query I rowsort
SELECT ALL + 2 * 12 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT 25 * + MIN( - 98 )
----
-2450

skipif mysql # not compatible
query I rowsort label-9144
SELECT 25 * + MIN ( - 98 )
----
-2450

query II rowsort
SELECT DISTINCT - ( 97 ) col2, 51
----
-97
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9146
SELECT + 27 + + 56 * + 15 + - + CAST( + 41 AS SIGNED ), + ( - 29 ) AS col0
----
826
-29

skipif mysql # not compatible
query II rowsort label-9146
SELECT + 27 + + 56 * + 15 + - + CAST ( + 41 AS INTEGER ), + ( - 29 ) AS col0
----
826
-29

query I rowsort
SELECT DISTINCT + 77 * 45 col2
----
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT - - ( CAST( COALESCE ( + 73, + 8 ) AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-9148
SELECT - - ( CAST ( COALESCE ( + 73, + 8 ) AS INTEGER ) )
----
73

query I rowsort
SELECT ALL - 44 + - - 38
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT ALL + COUNT( * ) * 91 AS col1, MAX( 83 ) * 67
----
91
5561

skipif mysql # not compatible
query II rowsort label-9150
SELECT ALL + COUNT ( * ) * 91 AS col1, MAX ( 83 ) * 67
----
91
5561

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT ( + - ( + CASE + AVG ( DISTINCT + + 56 ) WHEN SUM( 17 ) THEN + 18 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT ( + - ( + CASE + AVG ( DISTINCT + + 56 ) WHEN SUM ( 17 ) THEN + 18 END ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 15 + - + 71 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9153
SELECT + 69 DIV - 47 + + CAST( - NULLIF ( - ( 82 ), - - 29 ) AS SIGNED ) * - 20 AS col2
----
-1641

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 69 / - 47 + + CAST ( - NULLIF ( - ( 82 ), - - 29 ) AS INTEGER ) * - 20 AS col2
----
-1641

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT COUNT( * ) + - 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9154
SELECT COUNT ( * ) + - 62 AS col2
----
-61

query II rowsort
SELECT + 52 + + 15, 45 AS col2
----
67
45

query I rowsort
SELECT ( + - 35 ) * NULLIF ( 21, + 61 * 51 )
----
-735

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT ALL 35 DIV + 82 * 66 * - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL 35 / + 82 * 66 * - 63 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9159
SELECT ALL COALESCE ( - NULLIF ( - 39, + - 69 / - CAST( NULL AS SIGNED ) ), 55, - NULLIF ( 36, - AVG ( 69 ) ) ) * - + 34 * + - 53 - COUNT( * ), - ( CASE + 4 WHEN - COUNT( * ) / - 20 * ( + + MAX( ALL + 54 ) ) + 83 * - 38 THEN + COUNT( * ) / - 61 WHEN COUNT( 51 ) + 70 THEN NULL ELSE NULL END ) * CASE ( 27 ) WHEN 48 THEN + 4 ELSE NULL END AS col0
----
70277
NULL

skipif mysql # not compatible
query II rowsort label-9159
SELECT ALL COALESCE ( - NULLIF ( - 39, + - 69 / - CAST ( NULL AS INTEGER ) ), 55, - NULLIF ( 36, - AVG ( 69 ) ) ) * - + 34 * + - 53 - COUNT ( * ), - ( CASE + 4 WHEN - COUNT ( * ) / - 20 * ( + + MAX ( ALL + 54 ) ) + 83 * - 38 THEN + COUNT ( * ) / - 61 WHEN COUNT ( 51 ) + 70 THEN NULL ELSE NULL END ) * CASE ( 27 ) WHEN 48 THEN + 4 ELSE NULL END AS col0
----
70277
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL 33 * + COALESCE ( - 60, - - 28 * - 11, 91 + 91, + - COUNT( * ) ) AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL 33 * + COALESCE ( - 60, - - 28 * - 11, 91 + 91, + - COUNT ( * ) ) AS col0
----
-1980

query II rowsort
SELECT - 87 AS col1, + 33
----
-87
33

query I rowsort
SELECT 65 + - 87
----
-22

query I rowsort
SELECT DISTINCT 93 * - 33 - 88 * + 55 AS col2
----
-7909

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

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

query I rowsort
SELECT DISTINCT 32 * + 85 col1
----
2720

query I rowsort
SELECT DISTINCT + 46 * + + 7 - 69 * + 6 * - 73 + 63
----
30607

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT 90 DIV 77
----
1

skipif mysql # not compatible
query I rowsort label-9167
SELECT 90 / 77
----
1

query I rowsort
SELECT 25 * + 13
----
325

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT ALL 19 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL 19 / + 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT DISTINCT 37 DIV + ( - - 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT 37 / + ( - - 49 ) AS col1
----
0

query I rowsort
SELECT 15 + - - 47 * - + 13
----
-596

query I rowsort
SELECT 51 * - 82
----
-4182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9173
SELECT COUNT( * ) + + - 20 / CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 25 END, 83 * + 89 * + - COALESCE ( + + 92, 14 ) + - COALESCE ( - + COALESCE ( - + 64, - + 84 * - 98, + + 95 ), + NULLIF ( - + COALESCE ( - - 95, 12, CAST( 97 AS SIGNED ) * + COUNT( * ) ), - 61 ) ) - - 98 col2
----
NULL
-679570

skipif mysql # not compatible
query II rowsort label-9173
SELECT COUNT ( * ) + + - 20 / CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 25 END, 83 * + 89 * + - COALESCE ( + + 92, 14 ) + - COALESCE ( - + COALESCE ( - + 64, - + 84 * - 98, + + 95 ), + NULLIF ( - + COALESCE ( - - 95, 12, CAST ( 97 AS INTEGER ) * + COUNT ( * ) ), - 61 ) ) - - 98 col2
----
NULL
-679570

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT 40 + - 10 + - 88 + - MIN( DISTINCT 39 ) * - + 17
----
605

skipif mysql # not compatible
query I rowsort label-9175
SELECT 40 + - 10 + - 88 + - MIN ( DISTINCT 39 ) * - + 17
----
605

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL + MAX( + + 69 ) * - 19 - MAX( DISTINCT + + 6 ) + - 31 + + 10 / + CASE - 91 WHEN - + 52 / + 19 THEN + 97 END * + COALESCE ( 17, + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + MAX ( + + 69 ) * - 19 - MAX ( DISTINCT + + 6 ) + - 31 + + 10 / + CASE - 91 WHEN - + 52 / + 19 THEN + 97 END * + COALESCE ( 17, + 86 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9178
SELECT + NULLIF ( - 13, MAX( DISTINCT - 66 ) ) * - 28 + - MIN( + 13 ) + 32 + - CAST( NULL AS SIGNED ) + + 56 / + 7 AS col2, 26 * + 25 + + 52 AS col2
----
NULL
702

skipif mysql # not compatible
query II rowsort label-9178
SELECT + NULLIF ( - 13, MAX ( DISTINCT - 66 ) ) * - 28 + - MIN ( + 13 ) + 32 + - CAST ( NULL AS INTEGER ) + + 56 / + 7 AS col2, 26 * + 25 + + 52 AS col2
----
NULL
702

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT 52 * + COUNT( * ) * - 83
----
-4316

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT 52 * + COUNT ( * ) * - 83
----
-4316

query I rowsort
SELECT - ( + 46 ) + + ( 60 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL + - 25 + + MIN( COALESCE ( + 38, 87 * + - 66 + + 31 * - + 14 + + 96, - - 35 ) )
----
13

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + - 25 + + MIN ( COALESCE ( + 38, 87 * + - 66 + + 31 * - + 14 + + 96, - - 35 ) )
----
13

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

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

query I rowsort
SELECT - - 1 - 71 + + 16
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9184
SELECT 96, CAST( + 97 AS SIGNED ) AS col1
----
96
97

skipif mysql # not compatible
query II rowsort label-9184
SELECT 96, CAST ( + 97 AS INTEGER ) AS col1
----
96
97

query I rowsort
SELECT - 29 * - - 14 * 31 + 73 * 25 AS col0
----
-10761

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

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

query I rowsort
SELECT ALL - + 12 + + CASE + 10 WHEN - 92 + 52 THEN + + 42 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT + NULLIF ( - MIN ( ALL 23 ), - 53 )
----
-23

query I rowsort
SELECT ALL - + 37 + - - 14 + + 58
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9190
SELECT - SUM( 55 ) + + ( - 6 ) DIV 3 * + 46, 59 col1
----
-147
59

skipif mysql # not compatible
query II rowsort label-9190
SELECT - SUM ( 55 ) + + ( - 6 ) / 3 * + 46, 59 col1
----
-147
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT DISTINCT COALESCE ( - 19, + 75, - 93 DIV + 22 - - 88 + - + 81 - - MIN( + - 34 ) - + COUNT( * ) * - 47 + - 56 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT COALESCE ( - 19, + 75, - 93 / + 22 - - 88 + - + 81 - - MIN ( + - 34 ) - + COUNT ( * ) * - 47 + - 56 ) col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9192
SELECT - COUNT( * ) + + 35 * - - MAX( - 19 ) * + ( - - COUNT( * ) ) * - - 63 * + 4 + - + 15 + + 95 + + 23 DIV + 10 + + ( + + COALESCE ( - NULLIF ( 28, ( - + CAST( - COUNT( * ) AS SIGNED ) ) + - - 80 ), + + 56 + + COALESCE ( ( + COUNT( * ) ), + CAST( - 37 AS SIGNED ), - 90 + - 32, - 66 ) ) ) + MAX( ALL COALESCE ( + 88, - 52 ) ) * 7 col0
----
-166911

skipif mysql # not compatible
query I rowsort label-9192
SELECT - COUNT ( * ) + + 35 * - - MAX ( - 19 ) * + ( - - COUNT ( * ) ) * - - 63 * + 4 + - + 15 + + 95 + + 23 / + 10 + + ( + + COALESCE ( - NULLIF ( 28, ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) + - - 80 ), + + 56 + + COALESCE ( ( + COUNT ( * ) ), + CAST ( - 37 AS INTEGER ), - 90 + - 32, - 66 ) ) ) + MAX ( ALL COALESCE ( + 88, - 52 ) ) * 7 col0
----
-166911

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9193
SELECT ALL 61 AS col0, CASE - + 89 WHEN CAST( NULL AS SIGNED ) + - 74 THEN NULL ELSE 45 END AS col0
----
61
45

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL 61 AS col0, CASE - + 89 WHEN CAST ( NULL AS INTEGER ) + - 74 THEN NULL ELSE 45 END AS col0
----
61
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - ( - + MIN( ALL + + 59 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - ( - + MIN ( ALL + + 59 ) ) AS col2
----
59

query I rowsort
SELECT ALL - ( + - 81 ) - - ( - 25 )
----
56

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

skipif mysql # not compatible
query I rowsort label-9196
SELECT - + SUM ( 91 ) AS col1
----
-91

query I rowsort
SELECT ALL ( - - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - ( - - 46 ) + 40 + - 51 * + - COUNT( * ) * + + 0 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9198
SELECT - ( - - 46 ) + 40 + - 51 * + - COUNT ( * ) * + + 0 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9199
SELECT + 80 + + + 16 + COUNT( * ) * - CAST( NULL AS SIGNED ) col0, - 58
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-9199
SELECT + 80 + + + 16 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0, - 58
----
NULL
-58

query II rowsort
SELECT + 97 * - 59 col1, - ( + + 37 )
----
-5723
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9201
SELECT + 56 + + - 74 + - 44 DIV + 80 + + MAX( ALL + 43 ) * 34 * - + 24
----
-35106

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 56 + + - 74 + - 44 / + 80 + + MAX ( ALL + 43 ) * 34 * - + 24
----
-35106

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT CASE - 84 WHEN - - 93 + - 64 + + - 67 * + 11 + + 57 + - - 68 - - 90 * - 89 / + 36 + + + 18 + + 91 * - MIN( DISTINCT - - 73 ) * + - 74 THEN NULL ELSE - + ( + 69 ) + + MAX( + + 51 ) * 84 * + + 13 END
----
55623

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT CASE - 84 WHEN - - 93 + - 64 + + - 67 * + 11 + + 57 + - - 68 - - 90 * - 89 / + 36 + + + 18 + + 91 * - MIN ( DISTINCT - - 73 ) * + - 74 THEN NULL ELSE - + ( + 69 ) + + MAX ( + + 51 ) * 84 * + + 13 END
----
55623

query II rowsort
SELECT DISTINCT ( + + 16 ) AS col1, + 86 + 53 col0
----
16
139

query I rowsort
SELECT ALL 32 * 69 * 6
----
13248

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT + CASE + COUNT( * ) WHEN + 29 THEN NULL WHEN + CASE 13 WHEN - - COALESCE ( 92, - + 81, - 65 - 93 ) THEN + + 65 / - + 49 + 9 WHEN - 70 THEN NULL END * + - 0 + + - COUNT( * ) THEN NULL ELSE - + 12 * - + 54 * - + ( 94 ) + + 77 + + 11 END, 89 * + + 48 col2
----
-60824
4272

skipif mysql # not compatible
query II rowsort label-9205
SELECT + CASE + COUNT ( * ) WHEN + 29 THEN NULL WHEN + CASE 13 WHEN - - COALESCE ( 92, - + 81, - 65 - 93 ) THEN + + 65 / - + 49 + 9 WHEN - 70 THEN NULL END * + - 0 + + - COUNT ( * ) THEN NULL ELSE - + 12 * - + 54 * - + ( 94 ) + + 77 + + 11 END, 89 * + + 48 col2
----
-60824
4272

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT - 0 DIV - 1 + + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9206
SELECT - 0 / - 1 + + 83 AS col0
----
83

query I rowsort
SELECT ( - - 52 ) col1
----
52

query I rowsort
SELECT ALL 96 * 26 col0
----
2496

query I rowsort
SELECT + 2 * 15
----
30

query I rowsort
SELECT + 8 + - 53 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9211
SELECT + CASE + 15 WHEN COALESCE ( - - 14, COUNT( * ) * + AVG ( ALL + 20 ) + - 27 ) * ( + + ( + NULLIF ( ( + 41 ), - 53 ) ) ) / - ( 48 ) * - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) THEN 29 WHEN + - 16 THEN - ( - 46 ) * - + 30 + - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT + CASE + 15 WHEN COALESCE ( - - 14, COUNT ( * ) * + AVG ( ALL + 20 ) + - 27 ) * ( + + ( + NULLIF ( ( + 41 ), - 53 ) ) ) / - ( 48 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) THEN 29 WHEN + - 16 THEN - ( - 46 ) * - + 30 + - 58 END AS col1
----
NULL

query I rowsort
SELECT ALL + 26 * + 89 + + + 74
----
2388

query II rowsort
SELECT ( - 0 ) AS col2, - 55 AS col0
----
0
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + 76 * + + COUNT( * ) + + 39
----
115

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 76 * + + COUNT ( * ) + + 39
----
115

query II rowsort
SELECT ALL 77 * - 25, 57 AS col1
----
-1925
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL 52 * - ( + - COUNT( * ) ) + + 7 * 73 + 13 + 5 + 12
----
593

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL 52 * - ( + - COUNT ( * ) ) + + 7 * 73 + 13 + 5 + 12
----
593

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL - + 89 DIV + 77 - + 60 + + 20
----
-41

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - + 89 / + 77 - + 60 + + 20
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT + + 22 / - COALESCE ( MAX( DISTINCT - 10 ), + 86, 11 ) * + CAST( NULL AS SIGNED ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT + + 22 / - COALESCE ( MAX ( DISTINCT - 10 ), + 86, 11 ) * + CAST ( NULL AS INTEGER ) + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL - 86 * - - MIN( - - 94 ) + + 36 + - 83 AS col1
----
-8131

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL - 86 * - - MIN ( - - 94 ) + + 36 + - 83 AS col1
----
-8131

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + - 11 * - - CASE 38 WHEN 22 THEN + COUNT( * ) - - 60 * + NULLIF ( + ( - 50 ), - + COALESCE ( - COUNT( * ), + + 84 - - 45 + - 74 * - 68 + + 86 ) ) ELSE + 93 + 54 END AS col2
----
-1617

skipif mysql # not compatible
query I rowsort label-9220
SELECT + - 11 * - - CASE 38 WHEN 22 THEN + COUNT ( * ) - - 60 * + NULLIF ( + ( - 50 ), - + COALESCE ( - COUNT ( * ), + + 84 - - 45 + - 74 * - 68 + + 86 ) ) ELSE + 93 + 54 END AS col2
----
-1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9221
SELECT + - COUNT( + CAST( + 55 AS SIGNED ) ) DIV 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT + - COUNT ( + CAST ( + 55 AS INTEGER ) ) / 48 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9222
SELECT - 12 * + - 74, - ( + + 0 ) DIV - - 18 AS col2
----
888
0

skipif mysql # not compatible
query II rowsort label-9222
SELECT - 12 * + - 74, - ( + + 0 ) / - - 18 AS col2
----
888
0

query I rowsort
SELECT + 51 * + 73
----
3723

query I rowsort
SELECT + + ( - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - COALESCE ( COUNT( * ), - COUNT( * ) ) * + 89 * MIN( ALL - ( - + 41 ) ) * - 99 / CASE - + 47 WHEN - + 38 THEN - 8 * - - 99 END / 73 + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COALESCE ( COUNT ( * ), - COUNT ( * ) ) * + 89 * MIN ( ALL - ( - + 41 ) ) * - 99 / CASE - + 47 WHEN - + 38 THEN - 8 * - - 99 END / 73 + - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9226
SELECT + + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT + + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9227
SELECT + 78 DIV + + 93 col1, - 88
----
0
-88

skipif mysql # not compatible
query II rowsort label-9227
SELECT + 78 / + + 93 col1, - 88
----
0
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9228
SELECT ALL + 89 * + - 83 * COUNT( + - 35 ) AS col2, 21 + + 26
----
-7387
47

skipif mysql # not compatible
query II rowsort label-9228
SELECT ALL + 89 * + - 83 * COUNT ( + - 35 ) AS col2, 21 + + 26
----
-7387
47

query I rowsort
SELECT ALL NULLIF ( + 78, + 10 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9230
SELECT DISTINCT - 98 * + - CAST( NULL AS DECIMAL ) / + COALESCE ( + + ( - CASE + - 89 WHEN - 54 THEN NULL WHEN 79 THEN 91 + 21 ELSE + 87 * + COUNT( * ) END ), - + CAST( NULL AS SIGNED ) * + AVG ( ALL - 23 ) / - 27 * + NULLIF ( + + 60, - + 48 ) * - 75 / - 75 + + + 86, - 65 * - NULLIF ( 7, 86 ) ) * + 34 - + AVG ( 84 ) * + ( 9 * + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - 98 * + - CAST ( NULL AS REAL ) / + COALESCE ( + + ( - CASE + - 89 WHEN - 54 THEN NULL WHEN 79 THEN 91 + 21 ELSE + 87 * + COUNT ( * ) END ), - + CAST ( NULL AS INTEGER ) * + AVG ( ALL - 23 ) / - 27 * + NULLIF ( + + 60, - + 48 ) * - 75 / - 75 + + + 86, - 65 * - NULLIF ( 7, 86 ) ) * + 34 - + AVG ( 84 ) * + ( 9 * + 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT + + COUNT( * ) + + + 30 + + 86 DIV - COALESCE ( - - 70, COALESCE ( 50, 32 - + - 45 + + 64 ) * + + COUNT( 35 ) * + + 41 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9231
SELECT + + COUNT ( * ) + + + 30 + + 86 / - COALESCE ( - - 70, COALESCE ( 50, 32 - + - 45 + + 64 ) * + + COUNT ( 35 ) * + + 41 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9232
SELECT - CAST( 85 AS SIGNED ) col1, + 75 * + + 18
----
-85
1350

skipif mysql # not compatible
query II rowsort label-9232
SELECT - CAST ( 85 AS INTEGER ) col1, + 75 * + + 18
----
-85
1350

query I rowsort
SELECT + - 59 + + 28 + + + 44
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT - NULLIF ( COUNT( * ), 61 + - - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - NULLIF ( COUNT ( * ), 61 + - - 8 )
----
-1

query I rowsort
SELECT ALL ( + 42 ) AS col0
----
42

query II rowsort
SELECT - 41 AS col2, 28 * + + 21
----
-41
588

query I rowsort
SELECT - 44 - + 95
----
-139

query I rowsort
SELECT ALL - 15 * + + 49
----
-735

query I rowsort
SELECT - 38 * + 84 AS col1
----
-3192

query I rowsort
SELECT ALL + 43 * + - 50
----
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT + COUNT( * ) * + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + COUNT ( * ) * + 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - ( + COUNT( * ) ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-9242
SELECT - ( + COUNT ( * ) ) + + 59
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - CASE - - 50 WHEN + + 95 THEN SUM( ALL + - 26 ) + + 85 ELSE 34 + 97 END AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-9243
SELECT - CASE - - 50 WHEN + + 95 THEN SUM ( ALL + - 26 ) + + 85 ELSE 34 + 97 END AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - 2 * - 56 * - - SUM( + - 47 ) * 54 * - 12 + - 4 AS col0
----
3411068

skipif mysql # not compatible
query I rowsort label-9244
SELECT - 2 * - 56 * - - SUM ( + - 47 ) * 54 * - 12 + - 4 AS col0
----
3411068

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + 8 * 50 * - - SUM( - 42 )
----
-16800

skipif mysql # not compatible
query I rowsort label-9245
SELECT + 8 * 50 * - - SUM ( - 42 )
----
-16800

query II rowsort
SELECT + 67 - + NULLIF ( 47, - + 15 + + - 21 ), - 83 AS col0
----
20
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - 96 - - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9247
SELECT - 96 - - COUNT ( * )
----
-95

query I rowsort
SELECT - 72 * 7
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT 89 DIV + 76 + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-9249
SELECT 89 / + 76 + - 12
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + ( + - CASE + 80 WHEN + - 73 THEN - 65 WHEN - COUNT( * ) THEN 79 ELSE + 56 END ) + 53 + - 47 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + ( + - CASE + 80 WHEN + - 73 THEN - 65 WHEN - COUNT ( * ) THEN 79 ELSE + 56 END ) + 53 + - 47 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL - COUNT( * ) + - 23 col1
----
-24

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - COUNT ( * ) + - 23 col1
----
-24

query II rowsort
SELECT ALL 19 * + 67 * + 75 col1, - 38 AS col0
----
95475
-38

query I rowsort
SELECT DISTINCT 95 + - + CASE + 95 WHEN - 44 + - CASE + 25 WHEN + 54 THEN + - CASE + 30 WHEN - ( + ( + - 1 ) ) + - 48 THEN + 40 END WHEN 37 / 72 + 32 + + 19 / 33 / + 21 THEN NULL WHEN + 56 THEN - 27 + - - 39 + - 78 END THEN NULL WHEN + - 57 THEN 13 END / 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT 57 + + + 29 * + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9254
SELECT 57 + + + 29 * + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT 1 - - 4
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT 47 * + - CAST( 95 AS SIGNED ) * - 30 AS col2
----
133950

skipif mysql # not compatible
query I rowsort label-9256
SELECT 47 * + - CAST ( 95 AS INTEGER ) * - 30 AS col2
----
133950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL MIN( + 69 ) * - CAST( NULL AS SIGNED ) * + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL MIN ( + 69 ) * - CAST ( NULL AS INTEGER ) * + + 68 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT - 49 DIV + 76 * - + COALESCE ( 96, - 30 ) - - 55 + + 3 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9258
SELECT - 49 / + 76 * - + COALESCE ( 96, - 30 ) - - 55 + + 3 AS col1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9259
SELECT + 0 AS col0, - 28 - CAST( NULL AS DECIMAL ) + + 34 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9259
SELECT + 0 AS col0, - 28 - CAST ( NULL AS REAL ) + + 34 col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - ( - 33 ) + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - ( - 33 ) + - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT COUNT( * ) + + - 14 * + 32 col1
----
-447

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( * ) + + - 14 * + 32 col1
----
-447

query I rowsort
SELECT ALL + + 28 * 33
----
924

query I rowsort
SELECT ALL - - ( + 85 )
----
85

query I rowsort
SELECT + 62 + + - 89 + - 20
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + SUM( ALL + + 81 ) * - 97 * + + 74 + - 76 + 33 - 17
----
-581478

skipif mysql # not compatible
query I rowsort label-9265
SELECT + SUM ( ALL + + 81 ) * - 97 * + + 74 + - 76 + 33 - 17
----
-581478

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL + COUNT( * ) - + ( + 90 ) + - - 90 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL + COUNT ( * ) - + ( + 90 ) + - - 90 AS col1
----
1

query I rowsort
SELECT 49 * - - 38 + ( + 38 ) AS col2
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT + 89 + COUNT( * ) * - 77 AS col1, + COUNT( DISTINCT ( 78 ) )
----
12
1

skipif mysql # not compatible
query II rowsort label-9268
SELECT + 89 + COUNT ( * ) * - 77 AS col1, + COUNT ( DISTINCT ( 78 ) )
----
12
1

query I rowsort
SELECT DISTINCT - 11 - + + 46 AS col2
----
-57

query II rowsort
SELECT - - 98, - 64 * - 6 * + + 98 AS col0
----
98
37632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9271
SELECT - COUNT( * ) + CAST( + 23 AS SIGNED ) + - 18 + + 96 + 11 * + SUM( ALL + - 63 ) * + - COUNT( * ) * SUM( + ( 11 ) ) + 92 + - + 10
----
7805

skipif mysql # not compatible
query I rowsort label-9271
SELECT - COUNT ( * ) + CAST ( + 23 AS INTEGER ) + - 18 + + 96 + 11 * + SUM ( ALL + - 63 ) * + - COUNT ( * ) * SUM ( + ( 11 ) ) + 92 + - + 10
----
7805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL CAST( CASE - 84 WHEN - 47 * 67 - 80 * - - 59 THEN + 71 WHEN + ( + 61 ) + 7 + 99 * - + 19 + COALESCE ( 96, + - 26, - NULLIF ( + + ( - 14 ), 24 * + + 29 * + COUNT( * ) ) + + 28 ) * + + 59 THEN NULL END AS SIGNED ) / - MAX( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL CAST ( CASE - 84 WHEN - 47 * 67 - 80 * - - 59 THEN + 71 WHEN + ( + 61 ) + 7 + 99 * - + 19 + COALESCE ( 96, + - 26, - NULLIF ( + + ( - 14 ), 24 * + + 29 * + COUNT ( * ) ) + + 28 ) * + + 59 THEN NULL END AS INTEGER ) / - MAX ( 9 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9273
SELECT DISTINCT - 61 DIV 19 * - 7 + - 67 + 64 AS col1, - 83
----
18
-83

skipif mysql # not compatible
query II rowsort label-9273
SELECT DISTINCT - 61 / 19 * - 7 + - 67 + 64 AS col1, - 83
----
18
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - - SUM( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9274
SELECT - - SUM ( DISTINCT 15 )
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9275
SELECT ( 46 ) DIV + 22 - + - 15, + 91 AS col1
----
17
91

skipif mysql # not compatible
query II rowsort label-9275
SELECT ( 46 ) / + 22 - + - 15, + 91 AS col1
----
17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL 74 / ( + CASE + 73 WHEN - - MAX( + 50 ) THEN - + 60 * + 23 + + 78 / 97 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL 74 / ( + CASE + 73 WHEN - - MAX ( + 50 ) THEN - + 60 * + 23 + + 78 / 97 END )
----
NULL

query I rowsort
SELECT DISTINCT 68 * - 26
----
-1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT ALL COUNT( * ) * - 51 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL COUNT ( * ) * - 51 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL 3 * + 4 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 3 * + 4 / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT MAX( - 19 ) + - 88
----
-107

skipif mysql # not compatible
query I rowsort label-9280
SELECT MAX ( - 19 ) + - 88
----
-107

query II rowsort
SELECT - 2 AS col0, 87
----
-2
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL 4 col1, + 58 * - COUNT( * ) - + + 96
----
4
-154

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL 4 col1, + 58 * - COUNT ( * ) - + + 96
----
4
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + COUNT( * ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + COUNT ( * ) + - 50
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT - 59, 94 + + - COUNT( * ) col2
----
-59
93

skipif mysql # not compatible
query II rowsort label-9284
SELECT - 59, 94 + + - COUNT ( * ) col2
----
-59
93

query I rowsort
SELECT 51 * - ( - 29 ) AS col2
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL + CAST( NULL AS SIGNED ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + CAST ( NULL AS INTEGER ) + - 13
----
NULL

query I rowsort
SELECT ALL - CASE - 85 WHEN + 72 + + 33 THEN NULL ELSE - 84 + + - 62 END + - - 27 * + 87
----
2495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT DISTINCT + 2 * 14 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + 2 * 14 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT COUNT( * ) + + 91 - - - 5
----
87

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT COUNT ( * ) + + 91 - - - 5
----
87

query II rowsort
SELECT DISTINCT 18, 31 AS col1
----
18
31

query I rowsort
SELECT ALL + 85 * - - 88 * + + 22
----
164560

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT 41 + 18 + - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9292
SELECT 41 + 18 + - + COUNT ( * )
----
58

query I rowsort
SELECT ALL - 57 + - + 50 * - 99
----
4893

query II rowsort
SELECT + 25 AS col0, 73 AS col0
----
25
73

query II rowsort
SELECT + 80 AS col0, 33 col0
----
80
33

query I rowsort
SELECT ALL + 85 * 93 AS col1
----
7905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT COUNT( DISTINCT + 93 ) DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT COUNT ( DISTINCT + 93 ) / 67 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT + ( 50 ) DIV - COUNT( * ) + - COUNT( * ) + - 5 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9298
SELECT + ( 50 ) / - COUNT ( * ) + - COUNT ( * ) + - 5 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + - MAX( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9299
SELECT + - MAX ( + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + COUNT( * ) * 37 + - 78 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9300
SELECT + COUNT ( * ) * 37 + - 78 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9301
SELECT 95 DIV - 75, 1 + 30 * + CASE - + 80 WHEN - 44 * - COUNT( * ) THEN + + 57 * - - 11 - + CAST( - 22 AS SIGNED ) + - - 53 + - + 4 WHEN + - 84 * ( - 27 ) + MAX( ALL CAST( NULL AS SIGNED ) ) THEN NULL END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT 95 / - 75, 1 + 30 * + CASE - + 80 WHEN - 44 * - COUNT ( * ) THEN + + 57 * - - 11 - + CAST ( - 22 AS INTEGER ) + - - 53 + - + 4 WHEN + - 84 * ( - 27 ) + MAX ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL END AS col1
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT + ( - 45 ) DIV + + 17 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + ( - 45 ) / + + 17 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT DISTINCT - - COUNT( * ), + 6 * 86 col2
----
1
516

skipif mysql # not compatible
query II rowsort label-9303
SELECT DISTINCT - - COUNT ( * ), + 6 * 86 col2
----
1
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9304
SELECT ALL + MAX( DISTINCT - + 60 ) DIV - 86 + + 85 + 48 + - NULLIF ( + - 10, + 23 + - CAST( + 14 AS SIGNED ) ) * + 66 - - 37 * + 5 DIV - COUNT( * ) AS col2
----
608

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + MAX ( DISTINCT - + 60 ) / - 86 + + 85 + 48 + - NULLIF ( + - 10, + 23 + - CAST ( + 14 AS INTEGER ) ) * + 66 - - 37 * + 5 / - COUNT ( * ) AS col2
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT - + 63 - - - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - + 63 - - - COUNT ( * ) AS col1
----
-64

query II rowsort
SELECT + + 79 AS col2, + 82 AS col0
----
79
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9307
SELECT ALL - 23 AS col1, - CAST( NULL AS SIGNED ) + 76 / COUNT( * ) + - - 47
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - 23 AS col1, - CAST ( NULL AS INTEGER ) + 76 / COUNT ( * ) + - - 47
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT + COUNT( * ) AS col0, - 65 * - 10 AS col2
----
1
650

skipif mysql # not compatible
query II rowsort label-9308
SELECT + COUNT ( * ) AS col0, - 65 * - 10 AS col2
----
1
650

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ( + MAX( + - 43 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9309
SELECT ( + MAX ( + - 43 ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - 32 * - 89 * COUNT( * )
----
2848

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 32 * - 89 * COUNT ( * )
----
2848

query I rowsort
SELECT 43 * 6 AS col2
----
258

query I rowsort
SELECT + 19 * + 40 AS col0
----
760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9313
SELECT ALL - + 93 AS col1, COUNT( * ) DIV - 51 * - 96
----
-93
0

skipif mysql # not compatible
query II rowsort label-9313
SELECT ALL - + 93 AS col1, COUNT ( * ) / - 51 * - 96
----
-93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT + COUNT( * ) * - COUNT( * ) * 61 - MAX( DISTINCT CAST( + 50 AS SIGNED ) ) * - + 8
----
339

skipif mysql # not compatible
query I rowsort label-9314
SELECT + COUNT ( * ) * - COUNT ( * ) * 61 - MAX ( DISTINCT CAST ( + 50 AS INTEGER ) ) * - + 8
----
339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9315
SELECT COALESCE ( - COUNT( * ), 54 * + 87 * - 57 ) * - SUM( - 70 ) AS col0, + CAST( NULL AS SIGNED )
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-9315
SELECT COALESCE ( - COUNT ( * ), 54 * + 87 * - 57 ) * - SUM ( - 70 ) AS col0, + CAST ( NULL AS INTEGER )
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT MIN( + 96 ) + 40 + - NULLIF ( + + 62, 16 ) + ( + 3 )
----
77

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT MIN ( + 96 ) + 40 + - NULLIF ( + + 62, 16 ) + ( + 3 )
----
77

query II rowsort
SELECT ( 6 ) * + 94 col0, + 0 + - 13 AS col0
----
564
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT - MAX( - 6 ) AS col2, NULLIF ( 15, + - 18 )
----
6
15

skipif mysql # not compatible
query II rowsort label-9318
SELECT - MAX ( - 6 ) AS col2, NULLIF ( 15, + - 18 )
----
6
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT 0 + 60 + - 92 - - MAX( - + ( + COALESCE ( - + 85, - 51 * 63 * - + 14 ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-9319
SELECT 0 + 60 + - 92 - - MAX ( - + ( + COALESCE ( - + 85, - 51 * 63 * - + 14 ) ) )
----
53

query I rowsort
SELECT 45 * - + 52
----
-2340

query I rowsort
SELECT ALL 73 + 97 * + + 89
----
8706

query I rowsort
SELECT ALL NULLIF ( - - 10, 8 ) + 17
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9323
SELECT ALL ( 54 ) * - 67 / - CAST( NULL AS DECIMAL ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL ( 54 ) * - 67 / - CAST ( NULL AS REAL ) * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT 72 * + NULLIF ( 63, - 74 + + + 50 - 43 + - COUNT( * ) * - 9 ) * 63
----
285768

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT 72 * + NULLIF ( 63, - 74 + + + 50 - 43 + - COUNT ( * ) * - 9 ) * 63
----
285768

query I rowsort
SELECT + 37 - + + ( 56 ) * + + 39
----
-2147

query I rowsort
SELECT + 95 + - - 78 AS col0
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT CAST( - + 3 AS SIGNED ) + - 12 + 21
----
6

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT CAST ( - + 3 AS INTEGER ) + - 12 + 21
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL + + SUM( DISTINCT - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + + SUM ( DISTINCT - 65 ) AS col2
----
-65

query I rowsort
SELECT + + 99 * - - ( - 98 ) AS col1
----
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL - COALESCE ( - COUNT( ALL - + 35 ), - 34 ) * - 85 * + 40 - - + 17
----
-3383

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - COALESCE ( - COUNT ( ALL - + 35 ), - 34 ) * - 85 * + 40 - - + 17
----
-3383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT - 58 * - COUNT( * ) DIV - + 81 + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 58 * - COUNT ( * ) / - + 81 + - 21 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT - - 16 - + + COUNT( - COALESCE ( 82, 65 ) ) - - 43 + + COUNT( * ) * - 52 * + CASE - ( + - 21 ) WHEN COUNT( * ) THEN NULL WHEN + CASE + MAX( ALL - 60 ) WHEN - - 22 / + - 45 THEN + 15 WHEN - + 4 * + COUNT( * ) THEN + 6 END + + 13 * + 88 THEN NULL WHEN - SUM( ALL - 22 ) * - 17 + 50 + - COALESCE ( + CAST( - 1 AS SIGNED ) + 98, COUNT( * ) * ( 97 * 44 ) - 88 ) * - COALESCE ( 62, - 73 ) THEN 27 * - 60 END - + 87 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT - - 16 - + + COUNT ( - COALESCE ( 82, 65 ) ) - - 43 + + COUNT ( * ) * - 52 * + CASE - ( + - 21 ) WHEN COUNT ( * ) THEN NULL WHEN + CASE + MAX ( ALL - 60 ) WHEN - - 22 / + - 45 THEN + 15 WHEN - + 4 * + COUNT ( * ) THEN + 6 END + + 13 * + 88 THEN NULL WHEN - SUM ( ALL - 22 ) * - 17 + 50 + - COALESCE ( + CAST ( - 1 AS INTEGER ) + 98, COUNT ( * ) * ( 97 * 44 ) - 88 ) * - COALESCE ( 62, - 73 ) THEN 27 * - 60 END - + 87 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT + 90 * ( + - 18 ) - - - 72 - + CAST( NULL AS SIGNED ) * CASE + 12 WHEN + 91 - - COUNT( * ) THEN 36 * 52 * - - 81 WHEN 49 THEN + 39 END + - COUNT( * ) + - COUNT( * ) + 98 + + 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + 90 * ( + - 18 ) - - - 72 - + CAST ( NULL AS INTEGER ) * CASE + 12 WHEN + 91 - - COUNT ( * ) THEN 36 * 52 * - - 81 WHEN 49 THEN + 39 END + - COUNT ( * ) + - COUNT ( * ) + 98 + + 72 col2
----
NULL

query I rowsort
SELECT - - 72 + - - 18 AS col0
----
90

query II rowsort
SELECT ALL + ( - 24 ), 45 AS col2
----
-24
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT + + ( + SUM( ALL 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + + ( + SUM ( ALL 89 ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9337
SELECT ALL + + ( - - 55 ), + ( + 76 ) - 37 + - - CASE + - COUNT( * ) WHEN + 3 / + 5 * - - 43 THEN - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + - 48 - 75 + - + 24 + + 2 END col2
----
55
-106

skipif mysql # not compatible
query II rowsort label-9337
SELECT ALL + + ( - - 55 ), + ( + 76 ) - 37 + - - CASE + - COUNT ( * ) WHEN + 3 / + 5 * - - 43 THEN - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + - 48 - 75 + - + 24 + + 2 END col2
----
55
-106

query I rowsort
SELECT ALL + NULLIF ( 0, - 20 + + 38 )
----
0

query I rowsort
SELECT ALL - - 68 * + 9 + - 6 AS col2
----
606

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT - + 28 * - - 56 + - 68 + - 28 DIV + ( - + 48 )
----
-1636

skipif mysql # not compatible
query I rowsort label-9340
SELECT - + 28 * - - 56 + - 68 + - 28 / + ( - + 48 )
----
-1636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL - 71 * - 57 + + 71 - - CAST( 2 AS SIGNED ) + - 44
----
4076

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - 71 * - 57 + + 71 - - CAST ( 2 AS INTEGER ) + - 44
----
4076

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT MAX( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9342
SELECT MAX ( - 67 )
----
-67

query I rowsort
SELECT ALL ( - ( - 0 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + 32 * + + 78 + + + 83 + + 48 + + 59 * - + ( + COUNT( * ) )
----
2568

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + 32 * + + 78 + + + 83 + + 48 + + 59 * - + ( + COUNT ( * ) )
----
2568

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + MIN( DISTINCT 94 ) + - - 43
----
137

skipif mysql # not compatible
query I rowsort label-9345
SELECT + MIN ( DISTINCT 94 ) + - - 43
----
137

query I rowsort
SELECT DISTINCT + 11 + + 93 + 75
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL MIN( ALL 62 ) + + + 14 * - 29 + + 2 * - - 20 - + ( + + 39 ) AS col2
----
-343

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL MIN ( ALL 62 ) + + + 14 * - 29 + + 2 * - - 20 - + ( + + 39 ) AS col2
----
-343

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT - COALESCE ( + + COUNT( * ), + 33 ) + - - 4 * + - 98 AS col1
----
-393

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - COALESCE ( + + COUNT ( * ), + 33 ) + - - 4 * + - 98 AS col1
----
-393

query II rowsort
SELECT 58 AS col2, - 28 AS col2
----
58
-28

query I rowsort
SELECT + 8 * - 76
----
-608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT CAST( 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT CAST ( 26 AS INTEGER )
----
26

query II rowsort
SELECT 74 AS col1, - 48
----
74
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-9353
SELECT - 13 + + - 60 DIV + 5, 34 + - 30 AS col1
----
-25
4

skipif mysql # not compatible
query II rowsort label-9353
SELECT - 13 + + - 60 / + 5, 34 + - 30 AS col1
----
-25
4

query I rowsort
SELECT DISTINCT 25 - - 31
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT - NULLIF ( + + NULLIF ( + COUNT( * ), + - 97 ), - 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9355
SELECT - NULLIF ( + + NULLIF ( + COUNT ( * ), + - 97 ), - 42 ) AS col1
----
-1

query I rowsort
SELECT - CASE 17 WHEN - 40 * - 26 / + - NULLIF ( - + 3, - 98 ) THEN - 95 * + + ( - + 54 ) + - 69 WHEN + - 41 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL CAST( ( + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL CAST ( ( + COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9358
SELECT DISTINCT - COUNT( * ) DIV + - 39 - MIN( - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - COUNT ( * ) / + - 39 - MIN ( - 95 )
----
95

query I rowsort
SELECT ALL 45 * + 44
----
1980

query I rowsort
SELECT + + 11 + + 5 col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL + 6 * + CAST( - + 24 AS SIGNED ) * + - 21
----
3024

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + 6 * + CAST ( - + 24 AS INTEGER ) * + - 21
----
3024

query I rowsort
SELECT + - 37 + 67 + + 22 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL COUNT( * ) * + + 61
----
61

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL COUNT ( * ) * + + 61
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9364
SELECT ALL + + 73 AS col1, 11 DIV + + CAST( - 51 AS SIGNED )
----
73
0

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL + + 73 AS col1, 11 / + + CAST ( - 51 AS INTEGER )
----
73
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9365
SELECT ALL + 56 * - COALESCE ( + 2, - CASE ( + NULLIF ( + - 42, - 29 ) ) WHEN + 25 THEN NULL WHEN + + 84 * + COALESCE ( CASE - 93 WHEN 71 + - - ( + 11 ) THEN + + COUNT( * ) ELSE NULL END, - - CASE - 55 WHEN - - COALESCE ( - + COUNT( DISTINCT - 4 ), - + 16 ) * CASE - COALESCE ( - + 34, - 58 + COUNT( * ) ) WHEN - COUNT( * ) * 78 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 19 ELSE NULL END THEN - 41 ELSE NULL END ) THEN + 10 + CASE + CASE + 97 WHEN - 16 + 13 * + 51 THEN - 81 END WHEN 93 THEN MAX( DISTINCT + 26 ) END ELSE - 54 + 2 END, ( 6 ) DIV + 5 + - COUNT( * ) * ( + 33 + - COUNT( * ) ) )
----
-112

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + 56 * - COALESCE ( + 2, - CASE ( + NULLIF ( + - 42, - 29 ) ) WHEN + 25 THEN NULL WHEN + + 84 * + COALESCE ( CASE - 93 WHEN 71 + - - ( + 11 ) THEN + + COUNT ( * ) ELSE NULL END, - - CASE - 55 WHEN - - COALESCE ( - + COUNT ( DISTINCT - 4 ), - + 16 ) * CASE - COALESCE ( - + 34, - 58 + COUNT ( * ) ) WHEN - COUNT ( * ) * 78 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 19 ELSE NULL END THEN - 41 ELSE NULL END ) THEN + 10 + CASE + CASE + 97 WHEN - 16 + 13 * + 51 THEN - 81 END WHEN 93 THEN MAX ( DISTINCT + 26 ) END ELSE - 54 + 2 END, ( 6 ) / + 5 + - COUNT ( * ) * ( + 33 + - COUNT ( * ) ) )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + CAST( NULLIF ( 59, + 32 ) AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9366
SELECT + CAST ( NULLIF ( 59, + 32 ) AS INTEGER ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT 45 * + COUNT( * ) + - + 37
----
8

skipif mysql # not compatible
query I rowsort label-9367
SELECT 45 * + COUNT ( * ) + - + 37
----
8

query I rowsort
SELECT + - 87 * + - 54
----
4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9369
SELECT ALL - 82 * - 81 * 24 * - + CAST( COUNT( ALL + + 68 ) AS SIGNED ), 14 * - 96 AS col1
----
-159408
-1344

skipif mysql # not compatible
query II rowsort label-9369
SELECT ALL - 82 * - 81 * 24 * - + CAST ( COUNT ( ALL + + 68 ) AS INTEGER ), 14 * - 96 AS col1
----
-159408
-1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9370
SELECT - NULLIF ( + 48, + 19 ) DIV 50 DIV 91 * - ( + 19 ) + 0 + 93 + COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-9370
SELECT - NULLIF ( + 48, + 19 ) / 50 / 91 * - ( + 19 ) + 0 + 93 + COUNT ( * ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT - 78 + ( + - 37 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 78 + ( + - 37 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 25 AS col1, 69
----
25
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT + COUNT( * ) * 19 + + + 78 + - CAST( NULL AS SIGNED ) * 44 + - CASE 74 WHEN 91 / - 34 * - + 25 * 12 THEN NULL WHEN + 34 THEN - COALESCE ( + 42, + 53 * + 43 + + + COUNT( * ) ) * + 87 * + - 6 * 53 + + 65 + + + 73 * - 6 END + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT + COUNT ( * ) * 19 + + + 78 + - CAST ( NULL AS INTEGER ) * 44 + - CASE 74 WHEN 91 / - 34 * - + 25 * 12 THEN NULL WHEN + 34 THEN - COALESCE ( + 42, + 53 * + 43 + + + COUNT ( * ) ) * + 87 * + - 6 * 53 + + 65 + + + 73 * - 6 END + 52
----
NULL

query I rowsort
SELECT DISTINCT + ( - 35 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT + + 24 DIV + 97 + + 23 col2
----
23

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + + 24 / + 97 + + 23 col2
----
23

query I rowsort
SELECT - + 60 * + 2 * + 26 - - 32
----
-3088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL - - MAX( - - 24 ) DIV + - 4 + + 15 col1
----
9

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - - MAX ( - - 24 ) / + - 4 + + 15 col1
----
9

query I rowsort
SELECT DISTINCT 37 * + 4 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL - ( + 60 ) * - + SUM( 17 ) + 70 * ( - + 57 ) AS col1
----
-2970

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - ( + 60 ) * - + SUM ( 17 ) + 70 * ( - + 57 ) AS col1
----
-2970

query II rowsort
SELECT + 60 col1, 42
----
60
42

query II rowsort
SELECT + 86 * + - 91 AS col0, 95
----
-7826
95

query I rowsort
SELECT - 92 * + 66 * + 3
----
-18216

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL - ( + + 44 ) * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - ( + + 44 ) * + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT COALESCE ( - 64, + COUNT( * ), 68 * - - 76 * + 54 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9384
SELECT COALESCE ( - 64, + COUNT ( * ), 68 * - - 76 * + 54 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9385
SELECT ALL + 72 * 19 + - - NULLIF ( COUNT( * ), + - 49 ) - - COUNT( * ) - - 59 + - 82 * CAST( NULL AS SIGNED ) col1, - 46 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL + 72 * 19 + - - NULLIF ( COUNT ( * ), + - 49 ) - - COUNT ( * ) - - 59 + - 82 * CAST ( NULL AS INTEGER ) col1, - 46 AS col0
----
NULL
-46

query I rowsort
SELECT COALESCE ( - 85, - 29 )
----
-85

query I rowsort
SELECT ALL 44 + + 71
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9388
SELECT DISTINCT NULLIF ( 43, 42 ) + CAST( NULL AS SIGNED ) - - + 38 - - - COUNT( * ) * - NULLIF ( CAST( + 24 AS DECIMAL ), COUNT( DISTINCT 25 ) ) * 30 * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT NULLIF ( 43, 42 ) + CAST ( NULL AS INTEGER ) - - + 38 - - - COUNT ( * ) * - NULLIF ( CAST ( + 24 AS REAL ), COUNT ( DISTINCT 25 ) ) * 30 * - 46 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9389
SELECT ALL + 98 + 24 AS col2, - 68 * CAST( NULL AS SIGNED )
----
122
NULL

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL + 98 + 24 AS col2, - 68 * CAST ( NULL AS INTEGER )
----
122
NULL

query I rowsort
SELECT DISTINCT - 43 + + 65 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT DISTINCT - 80 - - + 35, COUNT( * ) col2
----
-45
1

skipif mysql # not compatible
query II rowsort label-9391
SELECT DISTINCT - 80 - - + 35, COUNT ( * ) col2
----
-45
1

query I rowsort
SELECT ALL 20 * + 90 AS col0
----
1800

query I rowsort
SELECT 50 * + ( 23 ) AS col0
----
1150

query I rowsort
SELECT 62 * - 68 + - - 59
----
-4157

query I rowsort
SELECT DISTINCT + ( 17 ) * - 94 * - 4 - + 63 - 5
----
6324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT SUM( ALL - - 41 ) - 81 * COUNT( * ) + 48 - 84 DIV 55 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9396
SELECT SUM ( ALL - - 41 ) - 81 * COUNT ( * ) + 48 - 84 / 55 AS col0
----
7

query I rowsort
SELECT 50 * - 29 * + 19 * - 65 AS col2
----
1790750

query I rowsort
SELECT ALL 77 * + - 89
----
-6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) - - 69
----
70

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) - - 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT - SUM( + - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - SUM ( + - 27 ) AS col2
----
27

query I rowsort
SELECT ALL - - ( - 1 ) * + 76 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + ( - 94 ) * - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9402
SELECT + ( - 94 ) * - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT - COALESCE ( - - ( ( + 86 ) ), + - 98, 86 ) AS col1
----
-86

query I rowsort
SELECT - - COALESCE ( - 32, + 76 )
----
-32

query II rowsort
SELECT - ( - CASE + - 49 WHEN - 29 THEN 70 END ) * AVG ( DISTINCT 17 ), 11 * + 56 col2
----
NULL
616

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT ALL 37 DIV - 39 * - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL 37 / - 39 * - 29 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT - ( + 58 ) DIV COUNT( * ) - - 24
----
-34

skipif mysql # not compatible
query I rowsort label-9407
SELECT - ( + 58 ) / COUNT ( * ) - - 24
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL - 45 + + CAST( NULL AS SIGNED ) + - + 18 * + + 43 + - + COUNT( * ) * + NULLIF ( + 97, 80 + + - 93 * + 6 * + 43 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - 45 + + CAST ( NULL AS INTEGER ) + - + 18 * + + 43 + - + COUNT ( * ) * + NULLIF ( + 97, 80 + + - 93 * + 6 * + 43 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT + COUNT( * ) DIV - 13 - 4
----
-4

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + COUNT ( * ) / - 13 - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - 23 * ( - - 3 ) - - ( + COUNT( * ) ) + + - 69
----
-137

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 23 * ( - - 3 ) - - ( + COUNT ( * ) ) + + - 69
----
-137

query I rowsort
SELECT ALL 68 * - 16
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL SUM( + 59 ) + 69
----
128

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL SUM ( + 59 ) + 69
----
128

query I rowsort
SELECT + - CASE 10 WHEN - 97 THEN + + 20 + - - 29 + 74 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL CAST( NULL AS SIGNED ) + 94 * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL CAST ( NULL AS INTEGER ) + 94 * + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + - SUM( + - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9415
SELECT + - SUM ( + - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9416
SELECT - - 91 * - COUNT( * ) * + + COUNT( * ) + COALESCE ( COALESCE ( - 53, + - 30 ), + - 35 ) + - - 88 col2, 28 / CAST( NULL AS SIGNED ) * 54 col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-9416
SELECT - - 91 * - COUNT ( * ) * + + COUNT ( * ) + COALESCE ( COALESCE ( - 53, + - 30 ), + - 35 ) + - - 88 col2, 28 / CAST ( NULL AS INTEGER ) * 54 col1
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT 45 * - ( - - COUNT( - ( + 31 ) ) ) * - 26
----
1170

skipif mysql # not compatible
query I rowsort label-9417
SELECT 45 * - ( - - COUNT ( - ( + 31 ) ) ) * - 26
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT - MAX( - - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - MAX ( - - 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9419
SELECT CAST( NULL AS DECIMAL ) + - - 25 * 10 + ( + 58 ) + - 91 * 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT CAST ( NULL AS REAL ) + - - 25 * 10 + ( + 58 ) + - 91 * 16 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9420
SELECT 30 * - 98 * + ( + 83 ) + + COUNT( * ), - 9 DIV COUNT( - 89 ) AS col0
----
-244019
-9

skipif mysql # not compatible
query II rowsort label-9420
SELECT 30 * - 98 * + ( + 83 ) + + COUNT ( * ), - 9 / COUNT ( - 89 ) AS col0
----
-244019
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9421
SELECT ALL COUNT( * ) - CASE 93 WHEN - COUNT( * ) THEN - + 24 * + + COUNT( * ) * + + 98 * + + 94 + - COUNT( * ) - - 56 + - 90 * + NULLIF ( + - CAST( NULL AS DECIMAL ), - 15 ) END + - 34 + - - 78 * 95 + AVG ( + 36 ) * - 90 * - 20 + + - COUNT( * ) + + - 23 / + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL COUNT ( * ) - CASE 93 WHEN - COUNT ( * ) THEN - + 24 * + + COUNT ( * ) * + + 98 * + + 94 + - COUNT ( * ) - - 56 + - 90 * + NULLIF ( + - CAST ( NULL AS REAL ), - 15 ) END + - 34 + - - 78 * 95 + AVG ( + 36 ) * - 90 * - 20 + + - COUNT ( * ) + + - 23 / + + 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL - 57 * ( + + 33 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 57 * ( + + 33 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT - 82 * + ( ( + 57 ) ) * 9 + + 75 + - - NULLIF ( CAST( - 89 AS SIGNED ), - 64 * - 96 - + - ( - 4 ) ) * + - 25 * MIN( DISTINCT 79 ) + 68 * - 11 AS col0
----
133036

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 82 * + ( ( + 57 ) ) * 9 + + 75 + - - NULLIF ( CAST ( - 89 AS INTEGER ), - 64 * - 96 - + - ( - 4 ) ) * + - 25 * MIN ( DISTINCT 79 ) + 68 * - 11 AS col0
----
133036

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT 54 + - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9424
SELECT 54 + - + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT COUNT( * ) DIV - COALESCE ( 66, + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT COUNT ( * ) / - COALESCE ( 66, + 14 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9426
SELECT 60 * - 88 * 90 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT 60 * - 88 * 90 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 49 * - + 37 AS col2
----
-1813

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT 26, COUNT( * ) col2
----
26
1

skipif mysql # not compatible
query II rowsort label-9428
SELECT 26, COUNT ( * ) col2
----
26
1

query I rowsort
SELECT ( 41 ) * - 9 AS col2
----
-369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT ( - 30 ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) * + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT ( - 30 ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT 66 + - ( - MIN( DISTINCT + 83 ) )
----
149

skipif mysql # not compatible
query I rowsort label-9431
SELECT 66 + - ( - MIN ( DISTINCT + 83 ) )
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT ALL + 95 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + 95 / + 50
----
1

query I rowsort
SELECT 75 * + ( 11 ) AS col0
----
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT - 11 * CAST( NULL AS SIGNED ) - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT - 11 * CAST ( NULL AS INTEGER ) - + 34 AS col1
----
NULL

query I rowsort
SELECT 95 + + 60
----
155

query I rowsort
SELECT - 55 - + 86 * - 32 AS col0
----
2697

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT + - 54 * - + 28 + + 33 DIV + 99 * + + 67 AS col1
----
1512

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + - 54 * - + 28 + + 33 / + 99 * + + 67 AS col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT + 47 * + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 47 * + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT DISTINCT - - 42 * - - COALESCE ( + 26, + 39, - 54 ) * + 76 + + 33 + 47 AS col2
----
83072

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL + - 79 + - 88 + COUNT( DISTINCT - 61 ) AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + - 79 + - 88 + COUNT ( DISTINCT - 61 ) AS col1
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT DISTINCT - - CASE 66 WHEN - MIN( DISTINCT 19 ) THEN + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN ( - 24 ) * + + ( MAX( ALL + - 63 ) ) THEN NULL ELSE NULL END + - + 87 * - 87 - COALESCE ( - CAST( NULL AS SIGNED ), 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - - CASE 66 WHEN - MIN ( DISTINCT 19 ) THEN + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN ( - 24 ) * + + ( MAX ( ALL + - 63 ) ) THEN NULL ELSE NULL END + - + 87 * - 87 - COALESCE ( - CAST ( NULL AS INTEGER ), 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - NULLIF ( + ( - 85 ), + CASE + 65 WHEN 90 THEN + 93 * 46 ELSE NULL END ) + 32 * COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-9442
SELECT - NULLIF ( + ( - 85 ), + CASE + 65 WHEN 90 THEN + 93 * 46 ELSE NULL END ) + 32 * COUNT ( * )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL - COUNT( * ) * + 66 + - + 72
----
-138

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - COUNT ( * ) * + 66 + - + 72
----
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-9444
SELECT - 83 * + 17 + - 88 + 70 DIV - 34 col1, - 14 - + + 66 AS col1
----
-1501
-80

skipif mysql # not compatible
query II rowsort label-9444
SELECT - 83 * + 17 + - 88 + 70 / - 34 col1, - 14 - + + 66 AS col1
----
-1501
-80

query I rowsort
SELECT DISTINCT - + ( 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + COUNT( * ) * - 44 + + + 82 * 95 AS col0
----
7746

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + COUNT ( * ) * - 44 + + + 82 * 95 AS col0
----
7746

query I rowsort
SELECT + 76 + + + ( - + 89 ) + 93 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT ( + 57 ) * + + CASE - 13 WHEN 60 THEN + SUM( - CASE - 8 WHEN - 43 THEN NULL WHEN - 39 THEN 14 END ) ELSE - COALESCE ( - + ( - 41 ), + + 59 ) END AS col2
----
-2337

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT ( + 57 ) * + + CASE - 13 WHEN 60 THEN + SUM ( - CASE - 8 WHEN - 43 THEN NULL WHEN - 39 THEN 14 END ) ELSE - COALESCE ( - + ( - 41 ), + + 59 ) END AS col2
----
-2337

query II rowsort
SELECT + 32, + 78 AS col0
----
32
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT ALL + 71 DIV + + NULLIF ( + 99, 39 * + - 11 + + 67 * - - 43 + - + 97 * COUNT( * ) DIV - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + 71 / + + NULLIF ( + 99, 39 * + - 11 + + 67 * - - 43 + - + 97 * COUNT ( * ) / - 17 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT ALL 44 * 78 DIV - 83
----
-41

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL 44 * 78 / - 83
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT MIN( ALL + 33 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-9452
SELECT MIN ( ALL + 33 ) col2
----
33

query I rowsort
SELECT - 97 - - 97 * - + CASE 34 WHEN + 64 THEN - ( 26 ) WHEN - + 29 THEN - 19 * + 83 WHEN 9 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT + ( + - 16 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT + ( + - 16 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT MIN( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9455
SELECT MIN ( - 57 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query III rowsort label-9456
SELECT DISTINCT + 21 AS col2, 44 DIV 50 * - 46 AS col0, + 91
----
21
0
91

skipif mysql # not compatible
query III rowsort label-9456
SELECT DISTINCT + 21 AS col2, 44 / 50 * - 46 AS col0, + 91
----
21
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + CASE + 35 WHEN + 14 THEN - 18 * + + 10 WHEN - - 32 THEN NULL END * - + COUNT( * ) - + AVG ( - - 57 ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT + CASE + 35 WHEN + 14 THEN - 18 * + + 10 WHEN - - 32 THEN NULL END * - + COUNT ( * ) - + AVG ( - - 57 ) + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - MIN( - 1 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9458
SELECT - MIN ( - 1 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + ( - - COUNT( * ) ) * + + 45
----
45

skipif mysql # not compatible
query I rowsort label-9459
SELECT + ( - - COUNT ( * ) ) * + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + ( - NULLIF ( 62, - + 55 + 90 + + COUNT( * ) + + + 54 * - ( NULLIF ( - 24, - 11 ) ) * + 37 ) ) + + 30 + - - 42 + + 66 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9460
SELECT + ( - NULLIF ( 62, - + 55 + 90 + + COUNT ( * ) + + + 54 * - ( NULLIF ( - 24, - 11 ) ) * + 37 ) ) + + 30 + - - 42 + + 66 AS col0
----
76

query I rowsort
SELECT - - NULLIF ( + 96, - 14 + + 31 + 52 / + 55 ) AS col1
----
96

query I rowsort
SELECT - - 58 + + + 45 AS col2
----
103

query I rowsort
SELECT - - 0 - + 33
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9464
SELECT ALL - 94 * + 52 DIV - COUNT( * ) DIV + CAST( - COUNT( * ) AS SIGNED ) + + - 8, - 74 col1
----
-4896
-74

skipif mysql # not compatible
query II rowsort label-9464
SELECT ALL - 94 * + 52 / - COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) + + - 8, - 74 col1
----
-4896
-74

query I rowsort
SELECT ALL - 3 + + 91 * - + 85 AS col0
----
-7738

query I rowsort
SELECT - + COALESCE ( - + 21, - 64, 27 ) * + - CASE - 26 WHEN + 41 - + 32 + 11 THEN 54 * + 31 * - + 32 END AS col0
----
NULL

query I rowsort
SELECT ALL ( + 6 ) * - 14
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9468
SELECT DISTINCT + 75 + + + COUNT( * ) DIV + + 79 * - ( + CAST( - 73 AS SIGNED ) ) AS col2, 18 + + 40
----
75
58

skipif mysql # not compatible
query II rowsort label-9468
SELECT DISTINCT + 75 + + + COUNT ( * ) / + + 79 * - ( + CAST ( - 73 AS INTEGER ) ) AS col2, 18 + + 40
----
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 2 + + MAX( ALL + 2 ) * + 94 * 50 + + 5 + - - 18
----
9421

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 2 + + MAX ( ALL + 2 ) * + 94 * 50 + + 5 + - - 18
----
9421

query II rowsort
SELECT ALL 33 AS col1, - 90 + - 30
----
33
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT + + 37 - + + 24 * - 38 DIV - 19 + - - 33
----
22

skipif mysql # not compatible
query I rowsort label-9471
SELECT + + 37 - + + 24 * - 38 / - 19 + - - 33
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT - - 56 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9472
SELECT - - 56 / 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT - 51 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 51 / 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9474
SELECT - + 82 * - COUNT( * ) DIV COUNT( * ) * MIN( - + 88 ) AS col2
----
-7216

skipif mysql # not compatible
query I rowsort label-9474
SELECT - + 82 * - COUNT ( * ) / COUNT ( * ) * MIN ( - + 88 ) AS col2
----
-7216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT - + COUNT( * ) + - + 68 DIV 67
----
-2

skipif mysql # not compatible
query I rowsort label-9475
SELECT - + COUNT ( * ) + - + 68 / 67
----
-2

query I rowsort
SELECT ALL - 18 * - ( + 70 )
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9477
SELECT ALL - 1 - - 69 * + CASE CAST( NULL AS SIGNED ) WHEN + 38 THEN + ( - 53 ) WHEN + 76 * - - 55 THEN + NULLIF ( + 50, + 47 ) DIV + - 39 * + - 93 - 46 + 21 WHEN ( - - 47 ) * - 61 * + AVG ( - 13 ) * - 28 * + + 9 + + ( - 68 ) * - 90 DIV + 96 THEN NULL WHEN COUNT( * ) THEN NULL ELSE COALESCE ( + 81, + + 68 ) * - 84 + 65 * 81 END AS col1
----
-106192

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - 1 - - 69 * + CASE CAST ( NULL AS INTEGER ) WHEN + 38 THEN + ( - 53 ) WHEN + 76 * - - 55 THEN + NULLIF ( + 50, + 47 ) / + - 39 * + - 93 - 46 + 21 WHEN ( - - 47 ) * - 61 * + AVG ( - 13 ) * - 28 * + + 9 + + ( - 68 ) * - 90 / + 96 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE COALESCE ( + 81, + + 68 ) * - 84 + 65 * 81 END AS col1
----
-106192

query II rowsort
SELECT DISTINCT + - 70 AS col2, - 32 - 52 AS col1
----
-70
-84

query I rowsort
SELECT + ( - 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL + 66 * - COALESCE ( + MIN( DISTINCT + 65 ), - 11 + - 41, + - 19, + 12 ) AS col1
----
-4290

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL + 66 * - COALESCE ( + MIN ( DISTINCT + 65 ), - 11 + - 41, + - 19, + 12 ) AS col1
----
-4290

onlyif mysql # aggregate syntax: 
query III rowsort label-9481
SELECT - 21 + + 87, 94 - + + COUNT( * ) + 86 AS col1, - 22 + 80 - 63 AS col2
----
66
179
-5

skipif mysql # not compatible
query III rowsort label-9481
SELECT - 21 + + 87, 94 - + + COUNT ( * ) + 86 AS col1, - 22 + 80 - 63 AS col2
----
66
179
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT - COALESCE ( - - MAX( ALL - CAST( NULL AS SIGNED ) ), 69 ) * - - 66 AS col0
----
-4554

skipif mysql # not compatible
query I rowsort label-9482
SELECT - COALESCE ( - - MAX ( ALL - CAST ( NULL AS INTEGER ) ), 69 ) * - - 66 AS col0
----
-4554

query II rowsort
SELECT ( 94 ) AS col0, + 41
----
94
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT + 3 - + - NULLIF ( - 70, - CAST( NULL AS SIGNED ) ) + - 97
----
-164

skipif mysql # not compatible
query I rowsort label-9484
SELECT + 3 - + - NULLIF ( - 70, - CAST ( NULL AS INTEGER ) ) + - 97
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT - 74 DIV + 92 + - 31 + - 34
----
-65

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 74 / + 92 + - 31 + - 34
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - COUNT( - + 58 ) * - - 53
----
-53

skipif mysql # not compatible
query I rowsort label-9486
SELECT - COUNT ( - + 58 ) * - - 53
----
-53

query II rowsort
SELECT - 49 + - - 46 col1, 13 * + 57
----
-3
741

query I rowsort
SELECT + 92 * + - 7 + - 56
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT ALL 37 * CASE + COALESCE ( 35, + 44 ) WHEN + + CAST( NULL AS SIGNED ) / - + 52 * + COUNT( * ) + + 19 - - 7 * 84 - 0 * - 70 + - 78 + 1 THEN - + 81 END * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL 37 * CASE + COALESCE ( 35, + 44 ) WHEN + + CAST ( NULL AS INTEGER ) / - + 52 * + COUNT ( * ) + + 19 - - 7 * 84 - 0 * - 70 + - 78 + 1 THEN - + 81 END * - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9490
SELECT - 43 + - - CAST( NULL AS SIGNED ), - COUNT( * ) + - COUNT( * ) + + 64 - - 4 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9490
SELECT - 43 + - - CAST ( NULL AS INTEGER ), - COUNT ( * ) + - COUNT ( * ) + + 64 - - 4 AS col1
----
NULL
66

query I rowsort
SELECT ALL 55 * - + 45
----
-2475

query I rowsort
SELECT DISTINCT 73 * 5 + - 80
----
285

query I rowsort
SELECT ALL 31 * 30 * + 50 * 43
----
1999500

query I rowsort
SELECT + 95 + - - 95 - - 23 * - ( - + ( 37 ) ) + + 8 AS col0
----
1049

query I rowsort
SELECT ALL 48 * + 4 + - 39 AS col2
----
153

query II rowsort
SELECT NULLIF ( 5, + + 55 ) AS col0, - 91
----
5
-91

query I rowsort
SELECT + ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + MIN( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9498
SELECT + MIN ( ALL - 36 )
----
-36

query II rowsort
SELECT ALL 95 * - 24 AS col2, + 22
----
-2280
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT + 65 + - 11 AS col1, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-9500
SELECT + 65 + - 11 AS col1, COUNT ( * )
----
54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT + 15 DIV + 32 - + - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 15 / + 32 - + - 3 AS col1
----
3

query I rowsort
SELECT DISTINCT 87 * 62 + + + 63
----
5457

query I rowsort
SELECT ALL + - 8 * + 45 + + 3 + + 81 * + 42 AS col0
----
3045

query I rowsort
SELECT ALL 69 + + + 26 + 98 AS col0
----
193

query I rowsort
SELECT + + 91 + - + 39 AS col1
----
52

query I rowsort
SELECT + + 33 - - 82 + - + 29 - 37 + 23 + + - 90
----
-18

query I rowsort
SELECT + - 27 * + 93
----
-2511

query I rowsort
SELECT ALL - 22 * - 41 + - ( - 62 ) AS col1
----
964

query I rowsort
SELECT - 31 + - ( - 68 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - - NULLIF ( - + COUNT( + 71 ), + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9510
SELECT - - NULLIF ( - + COUNT ( + 71 ), + 58 )
----
-1

query I rowsort
SELECT DISTINCT + 89 * - 83 - - 42
----
-7345

query I rowsort
SELECT 65 * + 11
----
715

query I rowsort
SELECT ALL 58 * - + 41
----
-2378

query II rowsort
SELECT DISTINCT - ( 76 ) AS col2, - 30 AS col0
----
-76
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL COUNT( - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL COUNT ( - 32 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 42 + COUNT( DISTINCT + 61 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9516
SELECT 42 + COUNT ( DISTINCT + 61 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL - 6 DIV + 38 * + + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - 6 / + 38 * + + 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - SUM( ALL 83 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - SUM ( ALL 83 ) col2
----
-83

query II rowsort
SELECT 80 AS col1, 77
----
80
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT + 8 DIV ( + COUNT( * ) ) + + 15 + - + 15
----
8

skipif mysql # not compatible
query I rowsort label-9520
SELECT + 8 / ( + COUNT ( * ) ) + + 15 + - + 15
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT 70 + MIN( DISTINCT + 63 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-9521
SELECT 70 + MIN ( DISTINCT + 63 ) AS col1
----
133

query I rowsort
SELECT 44 * - + 15
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL + 35 * + MIN( - + ( 26 ) ) AS col1
----
-910

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + 35 * + MIN ( - + ( 26 ) ) AS col1
----
-910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT ALL - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 17 * 55
----
-935

query I rowsort
SELECT ALL - COALESCE ( - 98, - + ( + + 58 ) ) col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL - 36 + + - COUNT( * ) * + - 35 * - + ( + 32 ) + 21 + + 14
----
-1121

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - 36 + + - COUNT ( * ) * + - 35 * - + ( + 32 ) + 21 + + 14
----
-1121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9528
SELECT ALL - COALESCE ( 61, 75, - COUNT( * ) DIV - - CASE - - 69 WHEN 44 * COUNT( * ) THEN NULL WHEN + + MAX( ALL 47 ) * + + 97 * - 50 THEN + + CASE + 5 WHEN + + 25 THEN NULL WHEN + - MIN( ALL + 4 ) - 20 THEN 51 END ELSE + 59 + + 32 END ) AS col0, + 11 * + COUNT( * ) * 11
----
-61
121

skipif mysql # not compatible
query II rowsort label-9528
SELECT ALL - COALESCE ( 61, 75, - COUNT ( * ) / - - CASE - - 69 WHEN 44 * COUNT ( * ) THEN NULL WHEN + + MAX ( ALL 47 ) * + + 97 * - 50 THEN + + CASE + 5 WHEN + + 25 THEN NULL WHEN + - MIN ( ALL + 4 ) - 20 THEN 51 END ELSE + 59 + + 32 END ) AS col0, + 11 * + COUNT ( * ) * 11
----
-61
121

query I rowsort
SELECT + 88 * + 8 - - 1 col1
----
705

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT + 17 AS col0, COALESCE ( - + 31, - ( + SUM( ALL + + 54 ) ) ) AS col2
----
17
-31

skipif mysql # not compatible
query II rowsort label-9530
SELECT + 17 AS col0, COALESCE ( - + 31, - ( + SUM ( ALL + + 54 ) ) ) AS col2
----
17
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL + 46 + 29 + 38 + CAST( - 4 AS SIGNED ) + - 2 / ( - + 94 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + 46 + 29 + 38 + CAST ( - 4 AS INTEGER ) + - 2 / ( - + 94 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT + COUNT( * ) + + 52 + + 83 + 4 * + 40
----
296

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + COUNT ( * ) + + 52 + + 83 + 4 * + 40
----
296

onlyif mysql # aggregate syntax: 
query III rowsort label-9533
SELECT ALL - 82, SUM( 86 ) + - + 77 col1, - - 27 AS col1
----
-82
9
27

skipif mysql # not compatible
query III rowsort label-9533
SELECT ALL - 82, SUM ( 86 ) + - + 77 col1, - - 27 AS col1
----
-82
9
27

query I rowsort
SELECT ALL - ( + 42 ) AS col2
----
-42

query I rowsort
SELECT - NULLIF ( - 75, + + AVG ( 88 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9536
SELECT ALL 17 AS col2, + 15 * + COUNT( * )
----
17
15

skipif mysql # not compatible
query II rowsort label-9536
SELECT ALL 17 AS col2, + 15 * + COUNT ( * )
----
17
15

query II rowsort
SELECT - 28 AS col2, - 30 col0
----
-28
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( * ) + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( * ) + + 56 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT - COUNT( * ) * - AVG ( + 44 ) - + COUNT( * ) + - 94 * + + 15 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT - COUNT ( * ) * - AVG ( + 44 ) - + COUNT ( * ) + - 94 * + + 15 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL - 98 AS col0, COUNT( * ) col0
----
-98
1

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL - 98 AS col0, COUNT ( * ) col0
----
-98
1

query I rowsort
SELECT ALL ( + - 29 ) - ( + 98 )
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL SUM ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + MAX( ALL + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + MAX ( ALL + + 95 )
----
95

query I rowsort
SELECT - 48 + - 76
----
-124

query I rowsort
SELECT + 23 * - 53
----
-1219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT 25 + 45 - + + CAST( 32 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9546
SELECT 25 + 45 - + + CAST ( 32 AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT COALESCE ( - + 71, 92 ) + + CAST( NULL AS SIGNED ) / - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT COALESCE ( - + 71, 92 ) + + CAST ( NULL AS INTEGER ) / - 1
----
NULL

query I rowsort
SELECT ALL 62 + 50 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - COUNT( * ) * + - 74 + + + 96 * + + 7 AS col1
----
746

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - COUNT ( * ) * + - 74 + + + 96 * + + 7 AS col1
----
746

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT 40 DIV - + 57 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-9550
SELECT 40 / - + 57 + + 50
----
50

query I rowsort
SELECT ALL 97 * + ( 39 ) + 98 * 81
----
11721

query II rowsort
SELECT 95 - NULLIF ( - 10, + 70 ) col1, 49 col1
----
105
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT 41 * - 11 * + 37 - - - 19 * - 92 * + ( + 82 ) + - - ( - SUM( ALL - - 55 ) )
----
126594

skipif mysql # not compatible
query I rowsort label-9553
SELECT 41 * - 11 * + 37 - - - 19 * - 92 * + ( + 82 ) + - - ( - SUM ( ALL - - 55 ) )
----
126594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT ALL - COUNT( * ) + 60 + + + MAX( - 85 ) * - 61 + ( - 64 ) DIV 66
----
5244

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - COUNT ( * ) + 60 + + + MAX ( - 85 ) * - 61 + ( - 64 ) / 66
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT SUM( ALL + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9555
SELECT SUM ( ALL + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL + 41 + 38 + - + ( - 60 ) + COUNT( 53 ) + + MIN( - 14 ) * - 52 * + - 27 * + 53 * + - 67 AS col1, 44
----
69798596
44

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL + 41 + 38 + - + ( - 60 ) + COUNT ( 53 ) + + MIN ( - 14 ) * - 52 * + - 27 * + 53 * + - 67 AS col1, 44
----
69798596
44

query II rowsort
SELECT 85 * - 47 AS col0, 87 + - + 23 * - + 96 col0
----
-3995
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - CASE - COUNT( * ) WHEN 65 THEN + ( + 11 ) WHEN + 22 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 65 THEN + ( + 11 ) WHEN + 22 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - - 33 * 5 col1, 22
----
165
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL - CASE + COUNT( * ) WHEN - 84 + 18 THEN NULL WHEN - 67 + - MAX( DISTINCT 70 ) THEN + 37 * - + CASE COUNT( DISTINCT 31 ) WHEN - + COUNT( + 83 ) + - 64 THEN - 31 WHEN + 62 - + 47 THEN - 56 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - CASE + COUNT ( * ) WHEN - 84 + 18 THEN NULL WHEN - 67 + - MAX ( DISTINCT 70 ) THEN + 37 * - + CASE COUNT ( DISTINCT 31 ) WHEN - + COUNT ( + 83 ) + - 64 THEN - 31 WHEN + 62 - + 47 THEN - 56 ELSE NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT - MAX( DISTINCT ( CAST( - + 47 AS SIGNED ) ) ) * 74 + NULLIF ( 32, - 39 * - 71 + - + 76 + + 5 ) + - - COUNT( * ) * - 46 AS col2
----
3464

skipif mysql # not compatible
query I rowsort label-9561
SELECT - MAX ( DISTINCT ( CAST ( - + 47 AS INTEGER ) ) ) * 74 + NULLIF ( 32, - 39 * - 71 + - + 76 + + 5 ) + - - COUNT ( * ) * - 46 AS col2
----
3464

query I rowsort
SELECT ALL + - 53 - + 72
----
-125

query I rowsort
SELECT DISTINCT - 88 * - 50 AS col0
----
4400

query I rowsort
SELECT 77 * + - 98 AS col2
----
-7546

query I rowsort
SELECT + 30 + 67 * - 63 + + 83
----
-4108

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT MIN( ALL + 22 ), COUNT( * ) * + 65 AS col1
----
22
65

skipif mysql # not compatible
query II rowsort label-9566
SELECT MIN ( ALL + 22 ), COUNT ( * ) * + 65 AS col1
----
22
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT + CASE - + 33 WHEN + 77 * 77 THEN NULL WHEN + + 13 THEN NULL WHEN + MAX( DISTINCT - - 84 ) THEN - - 35 + 83 ELSE + + ( + 8 ) * - 59 END col2
----
-472

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + CASE - + 33 WHEN + 77 * 77 THEN NULL WHEN + + 13 THEN NULL WHEN + MAX ( DISTINCT - - 84 ) THEN - - 35 + 83 ELSE + + ( + 8 ) * - 59 END col2
----
-472

query II rowsort
SELECT - + 0 * - + 38 col1, 96 AS col2
----
0
96

query I rowsort
SELECT ALL COALESCE ( + 45, + 25 * 48 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT DISTINCT + ( - + 13 ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT + ( - + 13 ) / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL + CASE + + 84 WHEN - ( + + 46 ) THEN + 4 * 61 + - - 63 + - - COUNT( * ) WHEN - + ( + 77 ) + - 15 + 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + CASE + + 84 WHEN - ( + + 46 ) THEN + 4 * 61 + - - 63 + - - COUNT ( * ) WHEN - + ( + 77 ) + - 15 + 25 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 66 + SUM( DISTINCT + 91 )
----
25

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 66 + SUM ( DISTINCT + 91 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT ALL 10 * - 74 + 57 + + 26, - 83 + - SUM( 11 ) AS col2
----
-657
-94

skipif mysql # not compatible
query II rowsort label-9573
SELECT ALL 10 * - 74 + 57 + + 26, - 83 + - SUM ( 11 ) AS col2
----
-657
-94

query I rowsort
SELECT - 80 + 63 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT - - COUNT( DISTINCT - 69 ) AS col2, - 25 + 14 + - 70 + 8 * - 79 + + 62
----
1
-651

skipif mysql # not compatible
query II rowsort label-9575
SELECT - - COUNT ( DISTINCT - 69 ) AS col2, - 25 + 14 + - 70 + 8 * - 79 + + 62
----
1
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT + + 23 DIV - + CAST( + COUNT( * ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + + 23 / - + CAST ( + COUNT ( * ) AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ( + MAX( + NULLIF ( + + 57, + ( - 23 ) + 28 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-9577
SELECT ( + MAX ( + NULLIF ( + + 57, + ( - 23 ) + 28 ) ) )
----
57

query I rowsort
SELECT ALL + 78 * + 27 + - 88
----
2018

query I rowsort
SELECT - - 73 * + - 94 AS col1
----
-6862

query I rowsort
SELECT + + 67 + - 41 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT + 80 + 22 + - 30 * - + COUNT( * ) + - CASE + 0 WHEN COUNT( * ) - - CAST( - COUNT( * ) AS SIGNED ) THEN - 82 END * - SUM( DISTINCT 5 ) AS col2
----
-278

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 80 + 22 + - 30 * - + COUNT ( * ) + - CASE + 0 WHEN COUNT ( * ) - - CAST ( - COUNT ( * ) AS INTEGER ) THEN - 82 END * - SUM ( DISTINCT 5 ) AS col2
----
-278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9582
SELECT - MIN( ALL + - ( - COALESCE ( - - 47, - CAST( NULL AS SIGNED ) ) ) ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT - MIN ( ALL + - ( - COALESCE ( - - 47, - CAST ( NULL AS INTEGER ) ) ) ) / 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL + COALESCE ( + 44, 28 + + ( - COUNT( * ) ) - - 79, 35, - 20 ) + + + ( 0 ) + + - 87 - 25 * + 43 AS col2
----
-1118

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + COALESCE ( + 44, 28 + + ( - COUNT ( * ) ) - - 79, 35, - 20 ) + + + ( 0 ) + + - 87 - 25 * + 43 AS col2
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT - MAX( DISTINCT 14 ) + + 35 * 86 AS col2
----
2996

skipif mysql # not compatible
query I rowsort label-9584
SELECT - MAX ( DISTINCT 14 ) + + 35 * 86 AS col2
----
2996

query I rowsort
SELECT ALL 38 + - 7
----
31

query I rowsort
SELECT + 44 + 56
----
100

query I rowsort
SELECT ALL - NULLIF ( - 82, 34 ) + - 43
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + ( - COUNT( * ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT + ( - COUNT ( * ) ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL COUNT( * ) + + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL COUNT ( * ) + + - 91 AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT - 8 * - 14 * - CAST( + 56 AS SIGNED )
----
-6272

skipif mysql # not compatible
query I rowsort label-9590
SELECT - 8 * - 14 * - CAST ( + 56 AS INTEGER )
----
-6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT COUNT( * ) * - 16 + + 25 * + - CAST( + 60 AS SIGNED ) AS col2
----
-1516

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT COUNT ( * ) * - 16 + + 25 * + - CAST ( + 60 AS INTEGER ) AS col2
----
-1516

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + SUM( ALL 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9592
SELECT + SUM ( ALL 89 ) AS col0
----
89

query I rowsort
SELECT + 66 + - + 75 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9594
SELECT + CASE + COUNT( - CAST( - 30 AS DECIMAL ) ) WHEN 1 THEN COUNT( * ) WHEN - 60 THEN NULL ELSE + ( - 47 ) * + 35 DIV + 86 * + SUM( DISTINCT - - 97 ) END * + 94 - ( 73 )
----
21

skipif mysql # not compatible
query I rowsort label-9594
SELECT + CASE + COUNT ( - CAST ( - 30 AS REAL ) ) WHEN 1 THEN COUNT ( * ) WHEN - 60 THEN NULL ELSE + ( - 47 ) * + 35 / + 86 * + SUM ( DISTINCT - - 97 ) END * + 94 - ( 73 )
----
21

query I rowsort
SELECT DISTINCT + ( + + 67 ) AS col1
----
67

query I rowsort
SELECT + COALESCE ( 72, - - 8, - 26 )
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-9597
SELECT + ( 46 ) DIV - 85 AS col1, 34 AS col0
----
0
34

skipif mysql # not compatible
query II rowsort label-9597
SELECT + ( 46 ) / - 85 AS col1, 34 AS col0
----
0
34

query II rowsort
SELECT 47 AS col1, + 42 - - 59 * + 31 col2
----
47
1871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9599
SELECT - + ( + CAST( + - COUNT( * ) AS SIGNED ) ) * + 64 * - 41, + COALESCE ( + + COUNT( DISTINCT - 9 ), - 67 + + 33, - 99 + NULLIF ( - - COUNT( * ), + 46 + 98 - 82 * + ( COALESCE ( - + 13, + 89 / + COUNT( * ) * - 21 - + 30 ) ) * + 97 ) + + 36 ) AS col1
----
-2624
1

skipif mysql # not compatible
query II rowsort label-9599
SELECT - + ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) * + 64 * - 41, + COALESCE ( + + COUNT ( DISTINCT - 9 ), - 67 + + 33, - 99 + NULLIF ( - - COUNT ( * ), + 46 + 98 - 82 * + ( COALESCE ( - + 13, + 89 / + COUNT ( * ) * - 21 - + 30 ) ) * + 97 ) + + 36 ) AS col1
----
-2624
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT COUNT( ALL 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9600
SELECT COUNT ( ALL 5 ) AS col0
----
1

query I rowsort
SELECT + - 45 + + - 68 col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT + - 29 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT + - 29 / 31
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT ALL MAX( - 16 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL MAX ( - 16 ) / + 83
----
0

query I rowsort
SELECT ALL + + ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - + SUM( 66 ) ) * + 83 / + COALESCE ( + 74, - COUNT( * ) ) * - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - + SUM ( 66 ) ) * + 83 / + COALESCE ( + 74, - COUNT ( * ) ) * - + 66
----
NULL

query I rowsort
SELECT DISTINCT + - 63 * - + 70
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - ( - 53 ) - - COUNT( * ) + 31 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9607
SELECT - ( - 53 ) - - COUNT ( * ) + 31 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9608
SELECT - 78 * - CAST( ( + - 25 ) AS SIGNED ) * - 15 / - 52 + + ( - CASE - 45 WHEN - COUNT( * ) THEN - COUNT( + 33 ) + 96 + 52 ELSE + + CASE + 48 WHEN + COALESCE ( 58, - COUNT( * ) ) THEN + 5 * + 15 * - CAST( 27 AS DECIMAL ) WHEN 97 THEN NULL END END ) + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 78 * - CAST ( ( + - 25 ) AS INTEGER ) * - 15 / - 52 + + ( - CASE - 45 WHEN - COUNT ( * ) THEN - COUNT ( + 33 ) + 96 + 52 ELSE + + CASE + 48 WHEN + COALESCE ( 58, - COUNT ( * ) ) THEN + 5 * + 15 * - CAST ( 27 AS REAL ) WHEN 97 THEN NULL END END ) + 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT + 50 * - CAST( - 70 AS SIGNED ) + - COUNT( * ) + - CASE - + SUM( ALL 24 ) WHEN + + 34 + COUNT( * ) THEN NULL ELSE - 39 * 7 + + + MIN( - - 98 ) END * - 41
----
-3676

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 50 * - CAST ( - 70 AS INTEGER ) + - COUNT ( * ) + - CASE - + SUM ( ALL 24 ) WHEN + + 34 + COUNT ( * ) THEN NULL ELSE - 39 * 7 + + + MIN ( - - 98 ) END * - 41
----
-3676

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + 35 + ( + MAX( + - 61 ) ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 35 + ( + MAX ( + - 61 ) ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - - COUNT( * ) * 12 * + ( + 38 ) AS col1
----
456

skipif mysql # not compatible
query I rowsort label-9611
SELECT - - COUNT ( * ) * 12 * + ( + 38 ) AS col1
----
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT - + 22 * + CAST( + 17 AS SIGNED ) + 79 * + NULLIF ( - 67, ( + 32 ) * - COUNT( * ) * + COUNT( * ) * - MIN( DISTINCT - 69 ) + 64 ) * + - 70 + - 14 * + 4
----
370080

skipif mysql # not compatible
query I rowsort label-9612
SELECT - + 22 * + CAST ( + 17 AS INTEGER ) + 79 * + NULLIF ( - 67, ( + 32 ) * - COUNT ( * ) * + COUNT ( * ) * - MIN ( DISTINCT - 69 ) + 64 ) * + - 70 + - 14 * + 4
----
370080

query I rowsort
SELECT - + 63 - - + 39 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL SUM( DISTINCT - - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL SUM ( DISTINCT - - 21 ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT ( 53 ) + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT ( 53 ) + - COUNT ( * )
----
52

query I rowsort
SELECT ALL + 76 + - - 14
----
90

query I rowsort
SELECT DISTINCT + NULLIF ( - + 65, - 31 ) + - + 33 * + 71 - + 94
----
-2502

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT + 58 + + 57 + + 95 + COUNT( * ) * - - 84
----
294

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + 58 + + 57 + + 95 + COUNT ( * ) * - - 84
----
294

query II rowsort
SELECT 39 col0, - 58
----
39
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + 77 + + SUM( + + ( + + 82 ) ) + 98 + - - 31 + - 65 * 77 * + 19
----
-94807

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + 77 + + SUM ( + + ( + + 82 ) ) + 98 + - - 31 + - 65 * 77 * + 19
----
-94807

query II rowsort
SELECT - NULLIF ( 56, - + 2 ) + + 15 AS col1, 96
----
-41
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT 47, - COUNT( * ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-9623
SELECT 47, - COUNT ( * ) AS col0
----
47
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT - 84 + - + 38 * + 36 * + ( - 60 ) * - 47 AS col0, ( - COUNT( * ) ) * 95 + - 99 AS col1
----
-3857844
-194

skipif mysql # not compatible
query II rowsort label-9624
SELECT - 84 + - + 38 * + 36 * + ( - 60 ) * - 47 AS col0, ( - COUNT ( * ) ) * 95 + - 99 AS col1
----
-3857844
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - COUNT( * ) * 38
----
-38

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - COUNT ( * ) * 38
----
-38

query I rowsort
SELECT - 61 + 78 + - 9
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT + 66 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 66 / + - 78
----
0

query II rowsort
SELECT 33 AS col1, + 62 + + 97 AS col2
----
33
159

query I rowsort
SELECT - 13 * + + 18
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT ALL 25 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL 25 / + 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL + COALESCE ( COALESCE ( - + 22, + - ( 23 ) ), - - ( - COUNT( * ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + COALESCE ( COALESCE ( - + 22, + - ( 23 ) ), - - ( - COUNT ( * ) ) )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9632
SELECT + 24 * + 23 col1, - 12 * - 4 + - CASE - 28 WHEN - 30 + + - 27 THEN CASE + 15 WHEN COUNT( * ) * 45 + - - 36 THEN NULL WHEN - ( - 94 ) THEN - COUNT( * ) + + 90 ELSE NULL END WHEN + ( + 27 ) THEN + 18 ELSE + 70 END DIV - 80 AS col0
----
552
48

skipif mysql # not compatible
query II rowsort label-9632
SELECT + 24 * + 23 col1, - 12 * - 4 + - CASE - 28 WHEN - 30 + + - 27 THEN CASE + 15 WHEN COUNT ( * ) * 45 + - - 36 THEN NULL WHEN - ( - 94 ) THEN - COUNT ( * ) + + 90 ELSE NULL END WHEN + ( + 27 ) THEN + 18 ELSE + 70 END / - 80 AS col0
----
552
48

query I rowsort
SELECT + 83 + 79
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT CAST( - - 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9634
SELECT CAST ( - - 42 AS INTEGER ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9635
SELECT + CASE WHEN NOT NULL <> + 41 THEN NULL WHEN NOT 27 IS NOT NULL THEN - 51 / + MAX( ALL 11 ) END * + CAST( + 6 AS SIGNED ) + - 67 col0, 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-9635
SELECT + CASE WHEN NOT NULL <> + 41 THEN NULL WHEN NOT 27 IS NOT NULL THEN - 51 / + MAX ( ALL 11 ) END * + CAST ( + 6 AS INTEGER ) + - 67 col0, 79 AS col0
----
NULL
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT + 59 - - 40 + + - CAST( NULL AS SIGNED ) / + ( 81 ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 59 - - 40 + + - CAST ( NULL AS INTEGER ) / + ( 81 ) * + 33
----
NULL

query I rowsort
SELECT ALL - 38 * + 10 / + + CASE + - 52 WHEN - 39 + ( 57 ) THEN + 86 END + + 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9638
SELECT + 17 * ( - 15 ) * CAST( - ( 83 ) AS SIGNED ), - 50 col0
----
21165
-50

skipif mysql # not compatible
query II rowsort label-9638
SELECT + 17 * ( - 15 ) * CAST ( - ( 83 ) AS INTEGER ), - 50 col0
----
21165
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT DISTINCT - + 91, COUNT( * ) * + - MIN( ALL + + 72 ) col0
----
-91
-72

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT - + 91, COUNT ( * ) * + - MIN ( ALL + + 72 ) col0
----
-91
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL 65 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL 65 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + 2 * - + CASE - COUNT( * ) WHEN 69 + - + COUNT( * ) THEN 4 * - 15 END + + 82 + 28 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 2 * - + CASE - COUNT ( * ) WHEN 69 + - + COUNT ( * ) THEN 4 * - 15 END + + 82 + 28 + - + 53
----
NULL

query I rowsort
SELECT DISTINCT 14 * + 72 AS col1
----
1008

query II rowsort
SELECT 61 AS col0, 75 AS col0
----
61
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT ( 12 ) DIV 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT ( 12 ) / 27 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT 96 + + SUM( ALL 48 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-9645
SELECT 96 + + SUM ( ALL 48 ) AS col1
----
144

query I rowsort
SELECT + 19 * - 10 col2
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ( - ( + SUM( 92 ) ) ) + - + CASE - 23 WHEN 92 THEN - 76 ELSE NULL END + ( - COUNT( * ) ) + - - 9 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT ( - ( + SUM ( 92 ) ) ) + - + CASE - 23 WHEN 92 THEN - 76 ELSE NULL END + ( - COUNT ( * ) ) + - - 9 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT ALL + ( 86 ) DIV + + 86 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + ( 86 ) / + + 86 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT 42 + + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9649
SELECT 42 + + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT + 3 + - 59 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9651
SELECT DISTINCT + COALESCE ( - 37, - COUNT( * ) - - 65, - 87 ) DIV - - 72 AS col2, 21 * 68 * 57, - 59 + + 16 col0
----
0
81396
-43

skipif mysql # not compatible
query III rowsort label-9651
SELECT DISTINCT + COALESCE ( - 37, - COUNT ( * ) - - 65, - 87 ) / - - 72 AS col2, 21 * 68 * 57, - 59 + + 16 col0
----
0
81396
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL ( - - CAST( + 8 AS SIGNED ) ) + - 1
----
7

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL ( - - CAST ( + 8 AS INTEGER ) ) + - 1
----
7

query I rowsort
SELECT DISTINCT + 59 + + + 74 * - 33 AS col0
----
-2383

query I rowsort
SELECT ALL - 96 * + CASE - 0 WHEN - 5 THEN + 68 + - - 2 ELSE NULL END + + 54 AS col1
----
NULL

query I rowsort
SELECT 69 + + + 66 AS col2
----
135

query I rowsort
SELECT DISTINCT + 72 + - + 5
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT 79 + + 71 DIV + 25
----
81

skipif mysql # not compatible
query I rowsort label-9657
SELECT 79 + + 71 / + 25
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9658
SELECT CAST( + ( ( - 19 ) ) AS SIGNED ) * - CASE + + COUNT( * ) WHEN - 85 THEN 24 WHEN 4 / 78 + + NULLIF ( 80, + NULLIF ( - - COUNT( * ), ( - - COALESCE ( + + 90, + 53 + - COUNT( * ) ) ) * - NULLIF ( + + ( + 55 ), + - COUNT( * ) ) ) ) THEN NULL END, 40 + + CAST( + + 54 AS SIGNED ) col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9658
SELECT CAST ( + ( ( - 19 ) ) AS INTEGER ) * - CASE + + COUNT ( * ) WHEN - 85 THEN 24 WHEN 4 / 78 + + NULLIF ( 80, + NULLIF ( - - COUNT ( * ), ( - - COALESCE ( + + 90, + 53 + - COUNT ( * ) ) ) * - NULLIF ( + + ( + 55 ), + - COUNT ( * ) ) ) ) THEN NULL END, 40 + + CAST ( + + 54 AS INTEGER ) col0
----
NULL
94

query I rowsort
SELECT 95 + 49 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT + MAX( - 90 ) - 8 + 60 * - 41 AS col2
----
-2558

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + MAX ( - 90 ) - 8 + 60 * - 41 AS col2
----
-2558

query I rowsort
SELECT 85 + - - 79 AS col1
----
164

query I rowsort
SELECT 94 + + + 78 + + - 14 + - 90
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT 75 DIV NULLIF ( 37, - 35 * + + 46 * + - 29 + + 51 ) * - 86 AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-9663
SELECT 75 / NULLIF ( 37, - 35 * + + 46 * + - 29 + + 51 ) * - 86 AS col1
----
-172

query I rowsort
SELECT DISTINCT - 28 * - - ( + - 53 )
----
1484

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT 47 DIV ( + 94 ) + + 2
----
2

skipif mysql # not compatible
query I rowsort label-9665
SELECT 47 / ( + 94 ) + + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL - NULLIF ( CASE 18 WHEN 31 + - + 35 THEN NULL WHEN - COUNT( * ) THEN - 71 * + MIN( + 11 ) + 53 + - + 64 END, - - 39 ) * - ( 17 ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - NULLIF ( CASE 18 WHEN 31 + - + 35 THEN NULL WHEN - COUNT ( * ) THEN - 71 * + MIN ( + 11 ) + 53 + - + 64 END, - - 39 ) * - ( 17 ) * - 71 AS col1
----
NULL

query I rowsort
SELECT ALL + 9 * + 72
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT - NULLIF ( + 26, - - 31 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT - NULLIF ( + 26, - - 31 ) / 38
----
0

query I rowsort
SELECT ALL - - ( - 24 ) AS col0
----
-24

query I rowsort
SELECT ALL 54 + + 24
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT 58 DIV - + 14 col0
----
-4

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT 58 / - + 14 col0
----
-4

query I rowsort
SELECT DISTINCT + - 29 + 97 + + - 10
----
58

query I rowsort
SELECT + 51 * + + 10 AS col1
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT - ( + 59 ) DIV + 36 - 72 DIV 64 + - + COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9674
SELECT - ( + 59 ) / + 36 - 72 / 64 + - + COUNT ( * ) AS col0
----
-3

query I rowsort
SELECT 80 + - + 27
----
53

query II rowsort
SELECT 69 * - + 42 col2, - 44 * 30
----
-2898
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9677
SELECT + CASE - 7 WHEN - SUM( + 71 ) * ( 7 ) * - - 82 / - 51 + - CASE MAX( ALL 69 ) WHEN + ( NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) ) ) - 70 * 77 THEN - - CAST( NULL AS SIGNED ) WHEN 67 THEN + 92 - 1 * - 60 END THEN NULL WHEN + - 84 - 57 THEN NULL ELSE - 78 * - 51 + - 41 END AS col2
----
3937

skipif mysql # not compatible
query I rowsort label-9677
SELECT + CASE - 7 WHEN - SUM ( + 71 ) * ( 7 ) * - - 82 / - 51 + - CASE MAX ( ALL 69 ) WHEN + ( NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) ) - 70 * 77 THEN - - CAST ( NULL AS INTEGER ) WHEN 67 THEN + 92 - 1 * - 60 END THEN NULL WHEN + - 84 - 57 THEN NULL ELSE - 78 * - 51 + - 41 END AS col2
----
3937

query I rowsort
SELECT ALL - NULLIF ( - 99, + - 30 )
----
99

query I rowsort
SELECT + ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL 32 + + + 38 + 48 * CASE AVG ( ALL ( + - 57 ) ) WHEN 5 THEN - + COUNT( * ) * + 89 * + 13 ELSE - - 9 END AS col2
----
502

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL 32 + + + 38 + 48 * CASE AVG ( ALL ( + - 57 ) ) WHEN 5 THEN - + COUNT ( * ) * + 89 * + 13 ELSE - - 9 END AS col2
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT COUNT( * ) * - - MIN( + + 25 ) + 40
----
65

skipif mysql # not compatible
query I rowsort label-9681
SELECT COUNT ( * ) * - - MIN ( + + 25 ) + 40
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 88 * + 83 * - + COALESCE ( - 54, - COUNT( 65 ) ) AS col0
----
394416

skipif mysql # not compatible
query I rowsort label-9682
SELECT 88 * + 83 * - + COALESCE ( - 54, - COUNT ( 65 ) ) AS col0
----
394416

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT - 34 AS col0, 84 * + 72 * - MIN( + 16 )
----
-34
-96768

skipif mysql # not compatible
query II rowsort label-9683
SELECT - 34 AS col0, 84 * + 72 * - MIN ( + 16 )
----
-34
-96768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT - COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT - COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT ALL 87, 64 * 75 + - 0 - - + 67 AS col0
----
87
4867

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT 14 DIV 94 * - - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT 14 / 94 * - - 25 AS col2
----
0

query I rowsort
SELECT ALL 49 * - 81 * ( - 42 )
----
166698

query II rowsort
SELECT 77, - 4 AS col0
----
77
-4

query II rowsort
SELECT DISTINCT 4, + 36 AS col0
----
4
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT 13 * + - SUM( + 94 )
----
-1222

skipif mysql # not compatible
query I rowsort label-9690
SELECT 13 * + - SUM ( + 94 )
----
-1222

query I rowsort
SELECT 84 + + 20
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT 7 * + COUNT( * ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT 7 * + COUNT ( * ) / 68 AS col0
----
0

query II rowsort
SELECT ALL 19 AS col0, - 50 AS col1
----
19
-50

query I rowsort
SELECT + 48 + - 45 AS col2
----
3

query I rowsort
SELECT ALL + 47 + 77 AS col1
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT - + CAST( NULL AS SIGNED ) + + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT - + CAST ( NULL AS INTEGER ) + + - 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT 67 * 45 * - - COUNT( * ) - + 14 + + ( + + 32 )
----
3033

skipif mysql # not compatible
query I rowsort label-9697
SELECT 67 * 45 * - - COUNT ( * ) - + 14 + + ( + + 32 )
----
3033

query II rowsort
SELECT ALL - 55 * - 37 + + 27 col1, 91
----
2062
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT - - COUNT( - 6 ) DIV - - ( - MIN( ALL - 30 ) ) - 57 * 60 + 71 + + 42
----
-3307

skipif mysql # not compatible
query I rowsort label-9699
SELECT - - COUNT ( - 6 ) / - - ( - MIN ( ALL - 30 ) ) - 57 * 60 + 71 + + 42
----
-3307

query I rowsort
SELECT - - 17 + - - 19 AS col1
----
36

query I rowsort
SELECT ALL - + 14 * - 50 AS col2
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - 43 * - COUNT( * ) + - 6 + 57
----
94

skipif mysql # not compatible
query I rowsort label-9702
SELECT - 43 * - COUNT ( * ) + - 6 + 57
----
94

query II rowsort
SELECT + + 79 AS col2, 16
----
79
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT - COUNT( * ) DIV + 45 * - - 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT - COUNT ( * ) / + 45 * - - 76 col2
----
0

query II rowsort
SELECT DISTINCT + 53 col1, + ( 69 )
----
53
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT - - 65 + CAST( + 23 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9706
SELECT - - 65 + CAST ( + 23 AS INTEGER ) AS col0
----
88

query I rowsort
SELECT ALL - 59 * - 97 * 68
----
389164

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT DISTINCT + COUNT( * ) * + 33 + + - 66 AS col0, + 43 * - 52
----
-33
-2236

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT + COUNT ( * ) * + 33 + + - 66 AS col0, + 43 * - 52
----
-33
-2236

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT ALL 77 DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 77 / - + 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT SUM( DISTINCT + ( 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9710
SELECT SUM ( DISTINCT + ( 99 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + COUNT( - + ( - 24 ) ) + SUM( + 86 )
----
87

skipif mysql # not compatible
query I rowsort label-9711
SELECT + COUNT ( - + ( - 24 ) ) + SUM ( + 86 )
----
87

query I rowsort
SELECT DISTINCT NULLIF ( 13, - + 4 + - - 1 ) AS col0
----
13

query II rowsort
SELECT ALL 8 * + 82 AS col2, 0 - - 30 * 50 * - 57
----
656
-85500

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - COUNT( * ) * + + COUNT( * ) * + 66
----
-66

skipif mysql # not compatible
query I rowsort label-9714
SELECT - COUNT ( * ) * + + COUNT ( * ) * + 66
----
-66

query I rowsort
SELECT ALL - 55 * + 79 * + 94 AS col2
----
-408430

query I rowsort
SELECT DISTINCT ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - COUNT( ALL - + ( 2 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9717
SELECT - COUNT ( ALL - + ( 2 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + 8 + - + COUNT( * ) - - CASE + 87 WHEN - 8 * - 56 THEN + - 12 + - 45 ELSE NULL END * + 49 * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT + 8 + - + COUNT ( * ) - - CASE + 87 WHEN - 8 * - 56 THEN + - 12 + - 45 ELSE NULL END * + 49 * 59 AS col0
----
NULL

query I rowsort
SELECT + 54 + - 49 AS col0
----
5

query I rowsort
SELECT DISTINCT + 48 + + 79
----
127

query I rowsort
SELECT + 6 * 35
----
210

query I rowsort
SELECT ALL 75 + - 67 + - 49 * 68 + - 24 AS col2
----
-3348

query I rowsort
SELECT - + ( - 41 ) AS col1
----
41

query I rowsort
SELECT + - 60 * 97 - 33 * - 98 AS col1
----
-2586

query II rowsort
SELECT - - 55 * - - 82, 97 * 64 AS col2
----
4510
6208

query I rowsort
SELECT + ( + + 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL - CAST( - ( 69 ) AS SIGNED ) / - MAX( - 1 ) + - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - CAST ( - ( 69 ) AS INTEGER ) / - MAX ( - 1 ) + - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + 81
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 43, + 5 ) AS col2
----
43

query I rowsort
SELECT DISTINCT + + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL + + COUNT( * ) * ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL + + COUNT ( * ) * ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - - 28 * - 58 * 65
----
-105560

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + MIN( - 39 ) + + 11 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9732
SELECT + MIN ( - 39 ) + + 11 AS col1
----
-28

query I rowsort
SELECT + + ( + ( 42 ) ) AS col0
----
42

query I rowsort
SELECT + + 84 + + 14
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9735
SELECT - CAST( - 7 AS SIGNED ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT - CAST ( - 7 AS INTEGER ) / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT - COUNT( * ) * 39 + + CAST( + COUNT( 97 ) AS SIGNED ) + 32
----
-6

skipif mysql # not compatible
query I rowsort label-9736
SELECT - COUNT ( * ) * 39 + + CAST ( + COUNT ( 97 ) AS INTEGER ) + 32
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9737
SELECT ALL 85 * - MIN( ALL + 92 ) - - + 63 + + 10 * CASE + 32 WHEN - 76 THEN + SUM( - + 95 ) ELSE NULL END * + 35 + + + NULLIF ( + 37, CASE 43 WHEN + 46 THEN - 25 WHEN - 38 * - + COUNT( * ) * + + CASE + 5 WHEN + 95 THEN NULL WHEN 58 * - 34 THEN - - 31 WHEN + - 37 / - 50 + + 59 THEN NULL END + 14 + + ( - 86 ) * COUNT( * ) - - CAST( NULL AS DECIMAL ) * + 59 / - - 31 * 95 THEN NULL WHEN 12 THEN NULL WHEN + COUNT( * ) + - MAX( + 74 ) + 19 THEN NULL ELSE NULL END + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL 85 * - MIN ( ALL + 92 ) - - + 63 + + 10 * CASE + 32 WHEN - 76 THEN + SUM ( - + 95 ) ELSE NULL END * + 35 + + + NULLIF ( + 37, CASE 43 WHEN + 46 THEN - 25 WHEN - 38 * - + COUNT ( * ) * + + CASE + 5 WHEN + 95 THEN NULL WHEN 58 * - 34 THEN - - 31 WHEN + - 37 / - 50 + + 59 THEN NULL END + 14 + + ( - 86 ) * COUNT ( * ) - - CAST ( NULL AS REAL ) * + 59 / - - 31 * 95 THEN NULL WHEN 12 THEN NULL WHEN + COUNT ( * ) + - MAX ( + 74 ) + 19 THEN NULL ELSE NULL END + + COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT + 30 AS col2, + 26
----
30
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT - CAST( NULL AS SIGNED ) / - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT - CAST ( NULL AS INTEGER ) / - 38 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL + CAST( - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + CAST ( - 27 AS INTEGER )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT - CAST( NULL AS SIGNED ) * + - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT - CAST ( NULL AS INTEGER ) * + - 65 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT + NULLIF ( - 82, - SUM( - CAST( NULL AS SIGNED ) ) * - - MIN( - 72 ) * - - 79 )
----
-82

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + NULLIF ( - 82, - SUM ( - CAST ( NULL AS INTEGER ) ) * - - MIN ( - 72 ) * - - 79 )
----
-82

query I rowsort
SELECT - 67 + - 43
----
-110

query I rowsort
SELECT 87 + - - 8 + + - 59 * + 55
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT 94 * + - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN + + 54 * - - 78 + + 51 + + - 19 + + 18 + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT 94 * + - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN + + 54 * - - 78 + + 51 + + - 19 + + 18 + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9746
SELECT ALL COALESCE ( - + 92, - SUM( DISTINCT - 73 ) * - + 56 ) * + 52 AS col0, - COUNT( * ) + - 21 + + + 14 DIV - 61 * + 94 AS col1
----
-4784
-22

skipif mysql # not compatible
query II rowsort label-9746
SELECT ALL COALESCE ( - + 92, - SUM ( DISTINCT - 73 ) * - + 56 ) * + 52 AS col0, - COUNT ( * ) + - 21 + + + 14 / - 61 * + 94 AS col1
----
-4784
-22

query I rowsort
SELECT ALL + 24 + + 20
----
44

query I rowsort
SELECT 19 * - 36 AS col1
----
-684

query I rowsort
SELECT DISTINCT ( 64 ) * 31
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL - 52 + SUM( DISTINCT - 59 )
----
-111

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 52 + SUM ( DISTINCT - 59 )
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT COUNT( * ) DIV + + 97 + + 89 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-9751
SELECT COUNT ( * ) / + + 97 + + 89 / - 48
----
-1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9752
SELECT + 43 + - COALESCE ( + 2, + - NULLIF ( COALESCE ( + 4, + 3 * 62 + + 13 ), - + 20 ) DIV ( - + 87 ) * - 14 + + ( - - 1 ) ) + + NULLIF ( - 81, - - 54 * CAST( NULL AS DECIMAL ) ) * - 53 * - 24
----
-102991

skipif mysql # not compatible
query I rowsort label-9752
SELECT + 43 + - COALESCE ( + 2, + - NULLIF ( COALESCE ( + 4, + 3 * 62 + + 13 ), - + 20 ) / ( - + 87 ) * - 14 + + ( - - 1 ) ) + + NULLIF ( - 81, - - 54 * CAST ( NULL AS REAL ) ) * - 53 * - 24
----
-102991

query I rowsort
SELECT + 26 * + 52 AS col2
----
1352

query I rowsort
SELECT + 70 + 3
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT ALL 9 - + SUM( DISTINCT - 71 ) - 34 + - CAST( CASE - COUNT( ALL 52 ) WHEN - COUNT( * ) + - + CAST( + 60 AS SIGNED ) * + COUNT( * ) THEN 7 END AS SIGNED ) - - + COUNT( * ) * + 39 * 73 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL 9 - + SUM ( DISTINCT - 71 ) - 34 + - CAST ( CASE - COUNT ( ALL 52 ) WHEN - COUNT ( * ) + - + CAST ( + 60 AS INTEGER ) * + COUNT ( * ) THEN 7 END AS INTEGER ) - - + COUNT ( * ) * + 39 * 73 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT DISTINCT + 45 DIV + + COALESCE ( + - 43, 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT + 45 / + + COALESCE ( + - 43, 17 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - 92 + + + COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9757
SELECT - 92 + + + COUNT ( * ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + COUNT( * ) * 23 * 67 col2
----
1541

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + COUNT ( * ) * 23 * 67 col2
----
1541

query II rowsort
SELECT ALL - - 36 AS col0, + ( + + 90 )
----
36
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9760
SELECT ALL + CAST( NULL AS DECIMAL ) - - CASE WHEN + 85 IN ( - 5 * - 60, + 58 ) THEN + - 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + CAST ( NULL AS REAL ) - - CASE WHEN + 85 IN ( - 5 * - 60, + 58 ) THEN + - 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT 74 DIV - 22 + + 10 + - + 15
----
-8

skipif mysql # not compatible
query I rowsort label-9761
SELECT 74 / - 22 + + 10 + - + 15
----
-8

query I rowsort
SELECT + + NULLIF ( - + 73, 48 + + 32 - + ( + - NULLIF ( + 29, 4 ) ) )
----
-73

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col0
----
-50

query II rowsort
SELECT + - 34 col0, - NULLIF ( - 83, 22 - - 60 + + 94 )
----
-34
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + 42 * + 56 + COUNT( ALL - - 34 ) * - 9
----
2343

skipif mysql # not compatible
query I rowsort label-9765
SELECT + 42 * + 56 + COUNT ( ALL - - 34 ) * - 9
----
2343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT - 88 * + - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - 88 * + - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT - SUM( DISTINCT - - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - SUM ( DISTINCT - - 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ( - CAST( + - NULLIF ( 20, + 21 ) AS SIGNED ) ) * 23 + - + 85 - + 3 AS col2
----
372

skipif mysql # not compatible
query I rowsort label-9768
SELECT ( - CAST ( + - NULLIF ( 20, + 21 ) AS INTEGER ) ) * 23 + - + 85 - + 3 AS col2
----
372

query I rowsort
SELECT ALL 44 * - + 15 AS col2
----
-660

query II rowsort
SELECT ALL - 59, 42 col1
----
-59
42

query I rowsort
SELECT 4 * - 46 * - NULLIF ( 71, + + 94 + - - 57 ) col0
----
13064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9772
SELECT 74, 47 DIV - COUNT( * ) AS col0
----
74
-47

skipif mysql # not compatible
query II rowsort label-9772
SELECT 74, 47 / - COUNT ( * ) AS col0
----
74
-47

query I rowsort
SELECT ALL 90 + 78 - + 40 * 14 * 96 AS col1
----
-53592

query II rowsort
SELECT 18 AS col0, 52 AS col2
----
18
52

query I rowsort
SELECT 29 * - + NULLIF ( 73, - 11 / - 84 * + 90 + 49 )
----
-2117

query I rowsort
SELECT ALL 54 + - - NULLIF ( - NULLIF ( - - 63, - 72 ), - 37 ) AS col0
----
-9

query I rowsort
SELECT ALL - 65 + 33 + 37
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL 31 * - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL 31 * - COUNT ( * ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT MAX( + ( - ( + 54 ) ) ) + 63
----
9

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT MAX ( + ( - ( + 54 ) ) ) + 63
----
9

query II rowsort
SELECT ALL 62 AS col1, + 62 AS col0
----
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT 29 + + COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-9781
SELECT 29 + + COUNT ( * ) col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT ALL + 20 + 44 + - ( + ( 15 ) ) + + + 94 * 35 DIV 85
----
87

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + 20 + 44 + - ( + ( 15 ) ) + + + 94 * 35 / 85
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT 38 + + - 50 DIV + 22 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9783
SELECT 38 + + - 50 / + 22 AS col1
----
36

query II rowsort
SELECT 98 AS col1, + 47 * + 11
----
98
517

query I rowsort
SELECT COALESCE ( 68, + 59 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - ( + 10 ) + + 86 - - 82 * COUNT( * ) * 51
----
4258

skipif mysql # not compatible
query I rowsort label-9786
SELECT - ( + 10 ) + + 86 - - 82 * COUNT ( * ) * 51
----
4258

query I rowsort
SELECT ALL - - 8 - + - 32 AS col1
----
40

query II rowsort
SELECT 22 AS col2, 72 col2
----
22
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT - SUM( DISTINCT - 8 ), - 56 AS col2
----
8
-56

skipif mysql # not compatible
query II rowsort label-9789
SELECT - SUM ( DISTINCT - 8 ), - 56 AS col2
----
8
-56

query I rowsort
SELECT ALL - 83 * 86 * + - ( 86 )
----
613868

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - ( - + COUNT( + - 32 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9791
SELECT - ( - + COUNT ( + - 32 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + MAX( + ( + 96 ) ) - - COALESCE ( 94, - 52 * + 92, ( 56 ) ) * - 27 AS col1
----
-2442

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + MAX ( + ( + 96 ) ) - - COALESCE ( 94, - 52 * + 92, ( 56 ) ) * - 27 AS col1
----
-2442

query I rowsort
SELECT - - ( 53 ) col0
----
53

query I rowsort
SELECT + 43 - + + 70 AS col1
----
-27

query I rowsort
SELECT 72 * - 67
----
-4824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT + 17 * 62 * - - 86 + CASE + 97 WHEN 51 / COUNT( * ) / - 33 + - - 37 * - 48 THEN NULL WHEN - 2 THEN + SUM( ALL - - 7 ) ELSE + + 15 END + - 6 + + 40 * - 47 * + 29 * - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 17 * 62 * - - 86 + CASE + 97 WHEN 51 / COUNT ( * ) / - 33 + - - 37 * - 48 THEN NULL WHEN - 2 THEN + SUM ( ALL - - 7 ) ELSE + + 15 END + - 6 + + 40 * - 47 * + 29 * - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9797
SELECT ALL - COALESCE ( 90, 12 DIV - - SUM( + + 76 ) ) * - 70 + - COUNT( * ) col2
----
6299

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - COALESCE ( 90, 12 / - - SUM ( + + 76 ) ) * - 70 + - COUNT ( * ) col2
----
6299

query II rowsort
SELECT + 41 AS col0, 89 AS col1
----
41
89

query II rowsort
SELECT ALL - 38 AS col2, - 28 AS col0
----
-38
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + MAX( DISTINCT - + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9800
SELECT + MAX ( DISTINCT - + 23 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT DISTINCT - 40 DIV + 68 col0, 19 col1
----
0
19

skipif mysql # not compatible
query II rowsort label-9801
SELECT DISTINCT - 40 / + 68 col0, 19 col1
----
0
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL - ( + AVG ( ALL - - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - ( + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9803
SELECT ALL + SUM( ALL - 54 ) * + - COUNT( * ) + - - 34 * - 86 * - 45 - - ( - 51 ) + + + 42 / - 11 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + SUM ( ALL - 54 ) * + - COUNT ( * ) + - - 34 * - 86 * - 45 - - ( - 51 ) + + + 42 / - 11 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 98 * - COUNT( + 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-9804
SELECT 98 * - COUNT ( + 99 )
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9805
SELECT ALL 97 / + + CAST( NULL AS DECIMAL ) / + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL 97 / + + CAST ( NULL AS REAL ) / + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT COUNT( - 86 ) AS col1, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-9806
SELECT COUNT ( - 86 ) AS col1, 26 AS col2
----
1
26

query I rowsort
SELECT ALL - ( + - 43 ) * 82 - - + 12 + 90 col0
----
3628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT + MAX( - NULLIF ( + 68, CAST( - 65 AS SIGNED ) + 8 + - + 21 + + 25 ) ) + + 50
----
-18

skipif mysql # not compatible
query I rowsort label-9808
SELECT + MAX ( - NULLIF ( + 68, CAST ( - 65 AS INTEGER ) + 8 + - + 21 + + 25 ) ) + + 50
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT + NULLIF ( - 46, - 12 ) AS col2, - MAX( ALL - ( - - 28 ) ) * + 21 * MIN( - - 92 ) col0
----
-46
54096

skipif mysql # not compatible
query II rowsort label-9809
SELECT + NULLIF ( - 46, - 12 ) AS col2, - MAX ( ALL - ( - - 28 ) ) * + 21 * MIN ( - - 92 ) col0
----
-46
54096

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT COUNT( + + 55 ), 52 + - + 15 AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-9810
SELECT COUNT ( + + 55 ), 52 + - + 15 AS col0
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL ( - COUNT( * ) ) * - - 82
----
-82

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL ( - COUNT ( * ) ) * - - 82
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL 26 * 65 DIV - - 57 + 65 * + + 35 AS col1
----
2304

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 26 * 65 / - - 57 + 65 * + + 35 AS col1
----
2304

query I rowsort
SELECT ALL - 71 * + 9 + - - ( + 47 ) + - 40 - - + 48 + + 34 AS col0
----
-550

query I rowsort
SELECT ALL 7 * + + 52 AS col2
----
364

query I rowsort
SELECT + 77 + 36 * - 8 + - 34 col1
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT SUM( - - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9816
SELECT SUM ( - - 94 ) AS col1
----
94

query II rowsort
SELECT + 65 * 96 AS col0, + 77
----
6240
77

query I rowsort
SELECT + 41 + + + 7
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - 78 * COUNT( * ) + + 25
----
-53

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - 78 * COUNT ( * ) + + 25
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT ALL + 67 DIV + - COUNT( * ) + + + SUM( 73 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + 67 / + - COUNT ( * ) + + + SUM ( 73 ) AS col0
----
6

query I rowsort
SELECT DISTINCT 13 - 93 + - 5 AS col1
----
-85

query I rowsort
SELECT ALL NULLIF ( - 19, + + ( - ( - - 6 ) ) ) col1
----
-19

query I rowsort
SELECT ALL + 18 * + CASE + 14 WHEN + 13 THEN + ( - 69 ) END AS col1
----
NULL

query I rowsort
SELECT + 27 + - 58
----
-31

query I rowsort
SELECT + 41 + + NULLIF ( + 55, - 91 / + + 95 + 49 - - 27 )
----
96

query I rowsort
SELECT - 15 * - 45 AS col2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - 54 + - 91 + + - 85 - - + 39 + + - MIN( - + 81 ) * + 63 * - 49 AS col0
----
-250238

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 54 + - 91 + + - 85 - - + 39 + + - MIN ( - + 81 ) * + 63 * - 49 AS col0
----
-250238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT - + COUNT( 39 ) * + 18 * CAST( 44 AS SIGNED ) * - - COALESCE ( 76, + + 39 ) * + 84 + + MIN( + CAST( NULL AS SIGNED ) ) + 23 * - + 10 * - COUNT( * ) + + + 60 * SUM( - 29 ) / + 67 + 21 + - CAST( NULL AS SIGNED ) + AVG ( + 13 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT - + COUNT ( 39 ) * + 18 * CAST ( 44 AS INTEGER ) * - - COALESCE ( 76, + + 39 ) * + 84 + + MIN ( + CAST ( NULL AS INTEGER ) ) + 23 * - + 10 * - COUNT ( * ) + + + 60 * SUM ( - 29 ) / + 67 + 21 + - CAST ( NULL AS INTEGER ) + AVG ( + 13 ) col2
----
NULL

query I rowsort
SELECT - 68 + - 78 + - 18
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - 10 * + COUNT( * ) * ( - 46 )
----
460

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - 10 * + COUNT ( * ) * ( - 46 )
----
460

query I rowsort
SELECT - 62 * + + 91 AS col1
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - 68 + - 71 * - + 77 * - COUNT( ALL + 96 ) * - 93 + - - 90
----
508453

skipif mysql # not compatible
query I rowsort label-9832
SELECT - 68 + - 71 * - + 77 * - COUNT ( ALL + 96 ) * - 93 + - - 90
----
508453

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - COUNT( * ) * - 31 * 8 + + SUM( + 28 ) AS col0
----
276

skipif mysql # not compatible
query I rowsort label-9833
SELECT - COUNT ( * ) * - 31 * 8 + + SUM ( + 28 ) AS col0
----
276

query II rowsort
SELECT + 81 AS col0, - 85 AS col2
----
81
-85

query I rowsort
SELECT + 61 + - + 80
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT - COUNT( * ) * + COALESCE ( + 67, + - CAST( NULL AS SIGNED ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9836
SELECT - COUNT ( * ) * + COALESCE ( + 67, + - CAST ( NULL AS INTEGER ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL + MIN( DISTINCT - - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + MIN ( DISTINCT - - 54 ) AS col0
----
54

query I rowsort
SELECT ALL - 92 * + 72 AS col1
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT ( + 65 ) * COUNT( - 88 ) + + 91
----
156

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT ( + 65 ) * COUNT ( - 88 ) + + 91
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9840
SELECT DISTINCT + 61 AS col2, 78 + - MAX( DISTINCT - 70 ) - - + 50 DIV + 91 col1
----
61
148

skipif mysql # not compatible
query II rowsort label-9840
SELECT DISTINCT + 61 AS col2, 78 + - MAX ( DISTINCT - 70 ) - - + 50 / + 91 col1
----
61
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT 46 * + MAX( DISTINCT + 15 ) + CASE - 6 WHEN - 96 - 94 THEN NULL WHEN - 50 + - 73 * + COUNT( * ) THEN + 29 WHEN + 39 THEN + ( + MIN( + - 58 ) ) ELSE + 61 - + 68 END
----
683

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT 46 * + MAX ( DISTINCT + 15 ) + CASE - 6 WHEN - 96 - 94 THEN NULL WHEN - 50 + - 73 * + COUNT ( * ) THEN + 29 WHEN + 39 THEN + ( + MIN ( + - 58 ) ) ELSE + 61 - + 68 END
----
683

query II rowsort
SELECT + 4, + 41 + 20 AS col0
----
4
61

query II rowsort
SELECT ALL + 74, + 43 AS col2
----
74
43

query I rowsort
SELECT - 66 * + 66
----
-4356

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + SUM( - 85 ) * 34 * 69 + + 11
----
-199399

skipif mysql # not compatible
query I rowsort label-9845
SELECT + SUM ( - 85 ) * 34 * 69 + + 11
----
-199399

query I rowsort
SELECT - 42 * + 70
----
-2940

query I rowsort
SELECT + 48 * + 38 AS col2
----
1824

query I rowsort
SELECT + 59 + + + 53
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9849
SELECT + 65 + + 59 DIV + COALESCE ( ( - COALESCE ( - ( + 96 ), - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), 43, + - 27 * + SUM( 96 ) + - 49, 60 + 15 ) + 4 * 21 * + - 0 ) ), 54 + - 70 ) * + + 45 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 65 + + 59 / + COALESCE ( ( - COALESCE ( - ( + 96 ), - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), 43, + - 27 * + SUM ( 96 ) + - 49, 60 + 15 ) + 4 * 21 * + - 0 ) ), 54 + - 70 ) * + + 45 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT + + COUNT( * ) * + + 29 - + 16 AS col2, 64 * + ( - 78 ) * - 94 + + - 32 AS col1
----
13
469216

skipif mysql # not compatible
query II rowsort label-9850
SELECT + + COUNT ( * ) * + + 29 - + 16 AS col2, 64 * + ( - 78 ) * - 94 + + - 32 AS col1
----
13
469216

query I rowsort
SELECT - 45 * + 53 + - 70 + + 32
----
-2423

query I rowsort
SELECT DISTINCT 15 * 52 AS col2
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT + COALESCE ( 59, - - NULLIF ( + 99, 52 ) * + ( 0 ) - - - COUNT( * ) ) * + 33 + - COALESCE ( - 86, + + 92 * CASE MIN( - 93 ) WHEN + + 38 + 14 THEN NULL ELSE - MAX( DISTINCT - - 5 ) END - + + 52 * + 85 + - 34 + 26 - + + 77 DIV ( - + 26 ), - - 30 )
----
2033

skipif mysql # not compatible
query I rowsort label-9853
SELECT + COALESCE ( 59, - - NULLIF ( + 99, 52 ) * + ( 0 ) - - - COUNT ( * ) ) * + 33 + - COALESCE ( - 86, + + 92 * CASE MIN ( - 93 ) WHEN + + 38 + 14 THEN NULL ELSE - MAX ( DISTINCT - - 5 ) END - + + 52 * + 85 + - 34 + 26 - + + 77 / ( - + 26 ), - - 30 )
----
2033

query I rowsort
SELECT + 72 + + 27 * + 30 * + - 85
----
-68778

onlyif mysql # DIV for integer division: 
query II rowsort label-9855
SELECT - - 53 col2, 36 DIV - 11
----
53
-3

skipif mysql # not compatible
query II rowsort label-9855
SELECT - - 53 col2, 36 / - 11
----
53
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9856
SELECT + - COUNT( * ) * - 51 * 68 col0, - 93 * - 75
----
3468
6975

skipif mysql # not compatible
query II rowsort label-9856
SELECT + - COUNT ( * ) * - 51 * 68 col0, - 93 * - 75
----
3468
6975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT - - 95 + - 54 * CAST( NULL AS SIGNED ) + CASE + 66 WHEN - 95 * + 83 THEN + + 71 WHEN SUM( 68 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT - - 95 + - 54 * CAST ( NULL AS INTEGER ) + CASE + 66 WHEN - 95 * + 83 THEN + + 71 WHEN SUM ( 68 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT ALL 59 AS col2, SUM( + + 54 ) * + - 12 AS col0
----
59
-648

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL 59 AS col2, SUM ( + + 54 ) * + - 12 AS col0
----
59
-648

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT + 62 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + 62 / 41
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9860
SELECT + 75 * 73 + + COUNT( * ) + + 45 AS col2, 38 - + - MAX( 41 ) DIV 72
----
5521
38

skipif mysql # not compatible
query II rowsort label-9860
SELECT + 75 * 73 + + COUNT ( * ) + + 45 AS col2, 38 - + - MAX ( 41 ) / 72
----
5521
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9861
SELECT DISTINCT + NULLIF ( - 15, + 22 * + 23 * COUNT( * ) ) + + ( + + MAX( DISTINCT + 33 ) ) DIV + - 47 * + + 86 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + NULLIF ( - 15, + 22 * + 23 * COUNT ( * ) ) + + ( + + MAX ( DISTINCT + 33 ) ) / + - 47 * + + 86 AS col0
----
-15

query I rowsort
SELECT DISTINCT - 37 + - + 36 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL SUM( DISTINCT - - 17 ) + - 99 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL SUM ( DISTINCT - - 17 ) + - 99 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT CAST( + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT CAST ( + 0 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 88 * + + 89 AS col1
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT MIN( + 75 ) + 23 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT MIN ( + 75 ) + 23 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL + CAST( NULL AS SIGNED ) + - - 1 + + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 1 + + - 96
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9868
SELECT - 11 DIV 3 - + 74 * - + 62 AS col1, + 14
----
4585
14

skipif mysql # not compatible
query II rowsort label-9868
SELECT - 11 / 3 - + 74 * - + 62 AS col1, + 14
----
4585
14

query I rowsort
SELECT DISTINCT - ( + - 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - 61 * - - 48 * + SUM( - 82 ) * + 12 * - 29 AS col0
----
-83553408

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 61 * - - 48 * + SUM ( - 82 ) * + 12 * - 29 AS col0
----
-83553408

query I rowsort
SELECT 22 + + - 26
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + COUNT( * ) * + 28 + - 3 col2
----
25

skipif mysql # not compatible
query I rowsort label-9872
SELECT + COUNT ( * ) * + 28 + - 3 col2
----
25

query I rowsort
SELECT ALL - CASE WHEN + ( - 16 ) <> 95 THEN COALESCE ( - + 5, ( + + 6 ) + 42 ) END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + 42 * - 42 + - 37 * - + COALESCE ( - 7, + MIN( DISTINCT 58 ) ) + - - NULLIF ( + MIN( DISTINCT 63 ), - - 87 * - 44 * 49 - - 44 ) * + - 1 + + 52 AS col1
----
-2034

skipif mysql # not compatible
query I rowsort label-9874
SELECT + 42 * - 42 + - 37 * - + COALESCE ( - 7, + MIN ( DISTINCT 58 ) ) + - - NULLIF ( + MIN ( DISTINCT 63 ), - - 87 * - 44 * 49 - - 44 ) * + - 1 + + 52 AS col1
----
-2034

query I rowsort
SELECT 44 + + 10
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9876
SELECT - - CASE - 22 WHEN - 11 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - CASE MAX( - 82 ) WHEN + - 63 THEN + + 18 + - + 22 * + COUNT( * ) * - 59 DIV + 69 END + COUNT( * ) THEN - 56 + + 56 DIV + 24 * - 21 + + 89 ELSE - + 87 END
----
-87

skipif mysql # not compatible
query I rowsort label-9876
SELECT - - CASE - 22 WHEN - 11 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - CASE MAX ( - 82 ) WHEN + - 63 THEN + + 18 + - + 22 * + COUNT ( * ) * - 59 / + 69 END + COUNT ( * ) THEN - 56 + + 56 / + 24 * - 21 + + 89 ELSE - + 87 END
----
-87

query I rowsort
SELECT + 70 * + 41 * - + 46 AS col0
----
-132020

query II rowsort
SELECT + 9 + + 11 AS col1, 4
----
20
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL + 35 * 9 + MAX( 28 )
----
343

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + 35 * 9 + MAX ( 28 )
----
343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9880
SELECT - 46 - 84, + 54 / - CASE + 23 WHEN 44 THEN NULL ELSE + CASE - ( - CAST( + - 2 AS SIGNED ) ) WHEN + 52 THEN + 87 + - 75 ELSE NULL END END - + 68 + - + 83 col1
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-9880
SELECT - 46 - 84, + 54 / - CASE + 23 WHEN 44 THEN NULL ELSE + CASE - ( - CAST ( + - 2 AS INTEGER ) ) WHEN + 52 THEN + 87 + - 75 ELSE NULL END END - + 68 + - + 83 col1
----
-130
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT ALL - + 54 + + - 5 + - 67 - + + ( + + CASE + + 97 WHEN - - 55 THEN NULL WHEN + 2 THEN 97 END ) / + ( - 41 ) * + 81 + 2 * - 7 * - + ( + - COUNT( * ) ) + + SUM( + + 98 ) + + 66 * CAST( - 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - + 54 + + - 5 + - 67 - + + ( + + CASE + + 97 WHEN - - 55 THEN NULL WHEN + 2 THEN 97 END ) / + ( - 41 ) * + 81 + 2 * - 7 * - + ( + - COUNT ( * ) ) + + SUM ( + + 98 ) + + 66 * CAST ( - 50 AS INTEGER )
----
NULL

query I rowsort
SELECT 78 - + 69 * + 51
----
-3441

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL + MIN( + - 75 ) + + - 47
----
-122

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + MIN ( + - 75 ) + + - 47
----
-122

query I rowsort
SELECT - CASE - + 49 WHEN - - COALESCE ( - 41, + 87 + - 20 + + 17 / - + AVG ( DISTINCT - + 16 ) + + + 55 ) THEN NULL ELSE + 20 END
----
-20

query I rowsort
SELECT ALL - 8 + 65
----
57

query I rowsort
SELECT 57 + + 84 AS col0
----
141

query I rowsort
SELECT ( - 3 ) + + - 9 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT ALL 78 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL 78 / 44 AS col0
----
1

query I rowsort
SELECT 97 + - - 64
----
161

query I rowsort
SELECT ( + - 15 ) + - - 46
----
31

query I rowsort
SELECT ALL ( 17 ) - + + 72 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT ( + 78 ) + - - 40 * + - 15 * - COUNT( * ) AS col1, COUNT( * ) * + - SUM( ALL - 53 ) * + 40 * ( + NULLIF ( - 17, - ( 59 ) * - 81 ) )
----
678
-36040

skipif mysql # not compatible
query II rowsort label-9892
SELECT ( + 78 ) + - - 40 * + - 15 * - COUNT ( * ) AS col1, COUNT ( * ) * + - SUM ( ALL - 53 ) * + 40 * ( + NULLIF ( - 17, - ( 59 ) * - 81 ) )
----
678
-36040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9893
SELECT COUNT( * ) + + ( - COUNT( - 51 ) ) + + 28 AS col2, CAST( + 27 AS SIGNED ) * + ( 47 ) + 75 - + 42 + + - 39 AS col2
----
28
1263

skipif mysql # not compatible
query II rowsort label-9893
SELECT COUNT ( * ) + + ( - COUNT ( - 51 ) ) + + 28 AS col2, CAST ( + 27 AS INTEGER ) * + ( 47 ) + 75 - + 42 + + - 39 AS col2
----
28
1263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9894
SELECT ALL 36 AS col1, + CAST( - 41 AS SIGNED ) AS col0, + + COALESCE ( + 49, + 32 ) + COUNT( * ) AS col1
----
36
-41
50

skipif mysql # not compatible
query III rowsort label-9894
SELECT ALL 36 AS col1, + CAST ( - 41 AS INTEGER ) AS col0, + + COALESCE ( + 49, + 32 ) + COUNT ( * ) AS col1
----
36
-41
50

query I rowsort
SELECT ALL ( - 32 ) - 68
----
-100

query I rowsort
SELECT 38 * + + CASE - 30 WHEN + - 78 THEN NULL WHEN 33 - + 66 THEN 85 ELSE + 71 END AS col2
----
2698

query I rowsort
SELECT 42 + + + ( + 70 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT COUNT( * ) * - MAX( - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9898
SELECT COUNT ( * ) * - MAX ( - 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT 58 + + + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9899
SELECT 58 + + + COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT ALL - NULLIF ( 50, 3 + + 76 ) DIV - + 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - NULLIF ( 50, 3 + + 76 ) / - + 44 AS col1
----
1

query II rowsort
SELECT 28 * + NULLIF ( - - 52, + ( + 26 ) ), + 67 + + COALESCE ( + ( + 6 ), - - 60 ) AS col2
----
1456
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT MIN( + + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9902
SELECT MIN ( + + 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT NULLIF ( + + 60, + 15 ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9903
SELECT NULLIF ( + + 60, + 15 ) * COUNT ( * )
----
60

query II rowsort
SELECT DISTINCT - 25, + 35 AS col2
----
-25
35

query I rowsort
SELECT ALL + 3 * - 16 AS col2
----
-48

query I rowsort
SELECT 63 + + - 90 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL - + NULLIF ( NULLIF ( - - 10, - + COUNT( * ) ), - - COUNT( * ) + - 69 - 24 )
----
-10

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - + NULLIF ( NULLIF ( - - 10, - + COUNT ( * ) ), - - COUNT ( * ) + - 69 - 24 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT COUNT( - - 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT COUNT ( - - 31 ) AS col1
----
1

query I rowsort
SELECT ALL + 55 * - 11
----
-605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT - ( + 83 ) + + - 19 + + CAST( + 2 AS SIGNED ) * 58 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9910
SELECT - ( + 83 ) + + - 19 + + CAST ( + 2 AS INTEGER ) * 58 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) - + 55 + CAST( + 8 AS SIGNED ) * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + 55 + CAST ( + 8 AS INTEGER ) * 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9912
SELECT ALL + + CAST( NULL AS SIGNED ) + 70 * + + 12 AS col1, - 55 + - 19
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9912
SELECT ALL + + CAST ( NULL AS INTEGER ) + 70 * + + 12 AS col1, - 55 + - 19
----
NULL
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT - + CAST( + - 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - + CAST ( + - 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT ALL + COUNT( + 0 ) + 34 AS col1, - 64 AS col1
----
35
-64

skipif mysql # not compatible
query II rowsort label-9914
SELECT ALL + COUNT ( + 0 ) + 34 AS col1, - 64 AS col1
----
35
-64

query II rowsort
SELECT ALL - NULLIF ( - 29, + 15 / - 23 ) + - 31 AS col1, - 58 AS col1
----
-2
-58

query I rowsort
SELECT DISTINCT + + 52 + + - 41
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT MIN( - 72 ) * + COUNT( * ) + + CAST( 43 AS SIGNED ) * + 95 * - - 89 AS col1
----
363493

skipif mysql # not compatible
query I rowsort label-9917
SELECT MIN ( - 72 ) * + COUNT ( * ) + + CAST ( 43 AS INTEGER ) * + 95 * - - 89 AS col1
----
363493

query I rowsort
SELECT ALL - 12 + ( - 19 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT - - CAST( NULL AS SIGNED ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT - - CAST ( NULL AS INTEGER ) * 2
----
NULL

query I rowsort
SELECT + CASE + 72 WHEN ( - + 4 ) THEN NULL WHEN - 20 THEN + 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT - - 74 * - 66 + - 48, COUNT( * ) * - 29 AS col1
----
-4932
-29

skipif mysql # not compatible
query II rowsort label-9921
SELECT - - 74 * - 66 + - 48, COUNT ( * ) * - 29 AS col1
----
-4932
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - ( - MAX( + 52 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9922
SELECT - ( - MAX ( + 52 ) ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT ALL - 63 * 83 + COALESCE ( - 63, + 55 DIV 80 * 53 ) col0
----
-5292

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - 63 * 83 + COALESCE ( - 63, + 55 / 80 * 53 ) col0
----
-5292

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT - 23 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT - 23 / - 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + 93 + - + CASE 65 WHEN + COUNT( * ) THEN + 2 WHEN 33 * - NULLIF ( - 64, - 49 / 10 ) + + 85 THEN + - ( + ( 89 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 93 + - + CASE 65 WHEN + COUNT ( * ) THEN + 2 WHEN 33 * - NULLIF ( - 64, - 49 / 10 ) + + 85 THEN + - ( + ( 89 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL ( + COALESCE ( - - 72, + + ( COUNT( DISTINCT - - 5 ) ) ) ) * 24 + + COUNT( * ) - 66 AS col0
----
1663

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL ( + COALESCE ( - - 72, + + ( COUNT ( DISTINCT - - 5 ) ) ) ) * 24 + + COUNT ( * ) - 66 AS col0
----
1663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT DISTINCT + ( - - ( - 37 ) ) * + + 19 * CAST( + 56 AS SIGNED ) AS col0
----
-39368

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT + ( - - ( - 37 ) ) * + + 19 * CAST ( + 56 AS INTEGER ) AS col0
----
-39368

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT - 18 - - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - 18 - - COUNT ( * )
----
-17

query I rowsort
SELECT DISTINCT CASE + - 52 WHEN - 39 THEN - 72 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 20 - + - 80 - - 72
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT DISTINCT 74 AS col0, - 30 * + COUNT( * ) AS col0
----
74
-30

skipif mysql # not compatible
query II rowsort label-9931
SELECT DISTINCT 74 AS col0, - 30 * + COUNT ( * ) AS col0
----
74
-30

query II rowsort
SELECT 53 AS col0, - 97 * + 96
----
53
-9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9933
SELECT ALL 32 col1, 36 + - 13 * - + COUNT( DISTINCT + 87 ) - COUNT( * ) DIV + + 47 * - + 95
----
32
49

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL 32 col1, 36 + - 13 * - + COUNT ( DISTINCT + 87 ) - COUNT ( * ) / + + 47 * - + 95
----
32
49

query I rowsort
SELECT ALL 84 - - - 52 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - CASE + + 45 WHEN COALESCE ( - 11, - 48 ) THEN NULL ELSE - MIN( 46 ) * - 16 END AS col0
----
-736

skipif mysql # not compatible
query I rowsort label-9935
SELECT - CASE + + 45 WHEN COALESCE ( - 11, - 48 ) THEN NULL ELSE - MIN ( 46 ) * - 16 END AS col0
----
-736

query I rowsort
SELECT - 66 - + 79 col0
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT - COALESCE ( - 59, - MIN( CAST( NULL AS SIGNED ) ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9937
SELECT - COALESCE ( - 59, - MIN ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + CASE - 29 WHEN - 75 - 74 * - 88 + - - COUNT( * ) THEN NULL WHEN - 52 THEN 58 ELSE - + 61 END AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9938
SELECT + CASE - 29 WHEN - 75 - 74 * - 88 + - - COUNT ( * ) THEN NULL WHEN - 52 THEN 58 ELSE - + 61 END AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9939
SELECT + CASE - 84 WHEN - ( ( + MIN( ALL 86 ) ) ) THEN + - 23 + - + 71 ELSE - 2 / 73 * - 89 / + 43 + - COUNT( DISTINCT + 36 ) / 40 * - 53 * + NULLIF ( + 9, + 22 * + COUNT( * ) + + 34 ) / - - AVG ( ALL + 5 ) + + CAST( NULL AS DECIMAL ) / + - 95 + - + 80 END, + MIN( + 14 ) AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-9939
SELECT + CASE - 84 WHEN - ( ( + MIN ( ALL 86 ) ) ) THEN + - 23 + - + 71 ELSE - 2 / 73 * - 89 / + 43 + - COUNT ( DISTINCT + 36 ) / 40 * - 53 * + NULLIF ( + 9, + 22 * + COUNT ( * ) + + 34 ) / - - AVG ( ALL + 5 ) + + CAST ( NULL AS REAL ) / + - 95 + - + 80 END, + MIN ( + 14 ) AS col0
----
NULL
14

query I rowsort
SELECT ALL 77 * + 84 AS col1
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + 89 - - - COUNT( ALL + 66 )
----
88

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 89 - - - COUNT ( ALL + 66 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9942
SELECT ALL + 28, CAST( NULL AS SIGNED ) * + 44 * - 62 col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9942
SELECT ALL + 28, CAST ( NULL AS INTEGER ) * + 44 * - 62 col1
----
28
NULL

query I rowsort
SELECT + 6 * 26
----
156

query I rowsort
SELECT ALL 71 * + 91 AS col2
----
6461

query II rowsort
SELECT + - 59, + 34 AS col0
----
-59
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9946
SELECT ALL + - 8 AS col0, 6 / CAST( + CASE - - MAX( 97 ) WHEN - 45 THEN NULL WHEN - + 87 * - 44 THEN - AVG ( + - 76 ) END AS SIGNED )
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL + - 8 AS col0, 6 / CAST ( + CASE - - MAX ( 97 ) WHEN - 45 THEN NULL WHEN - + 87 * - 44 THEN - AVG ( + - 76 ) END AS INTEGER )
----
-8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + 78 DIV - 82 * ( 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 78 / - 82 * ( 37 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + AVG ( DISTINCT + 76 ) + - 10 * 85 - + CASE WHEN - 77 BETWEEN - - 5 AND 64 * - ( + - 64 ) THEN + - 99 * + 13 END + + MIN( - 70 ) + + + SUM( - 48 ) / COUNT( * ) * - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT + AVG ( DISTINCT + 76 ) + - 10 * 85 - + CASE WHEN - 77 BETWEEN - - 5 AND 64 * - ( + - 64 ) THEN + - 99 * + 13 END + + MIN ( - 70 ) + + + SUM ( - 48 ) / COUNT ( * ) * - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT + 65, - COUNT( DISTINCT + 35 ) * + 80 AS col1
----
65
-80

skipif mysql # not compatible
query II rowsort label-9949
SELECT + 65, - COUNT ( DISTINCT + 35 ) * + 80 AS col1
----
65
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9950
SELECT + CAST( + + ( + 18 ) AS DECIMAL ) * CASE - - ( 78 ) WHEN - - 72 THEN 90 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT + CAST ( + + ( + 18 ) AS REAL ) * CASE - - ( 78 ) WHEN - - 72 THEN 90 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + 90 * 77 + - + ( + - 5 )
----
6935

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT + SUM( ALL - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + SUM ( ALL - 86 ) AS col1
----
-86

query I rowsort
SELECT ALL + 18 * - 18 + - 12 AS col0
----
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-9954
SELECT DISTINCT ( 77 ) * COUNT( * ) + + - 76 col0, - 73
----
1
-73

skipif mysql # not compatible
query II rowsort label-9954
SELECT DISTINCT ( 77 ) * COUNT ( * ) + + - 76 col0, - 73
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT + 40 * - CASE + COUNT( * ) WHEN - 34 THEN + 65 + COUNT( * ) WHEN 84 THEN - 97 END + - + 55 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + 40 * - CASE + COUNT ( * ) WHEN - 34 THEN + 65 + COUNT ( * ) WHEN 84 THEN - 97 END + - + 55 + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL 62 * - 8 * - COUNT( * ) + - COUNT( * ) + - + 11 + + 75 AS col0
----
559

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 62 * - 8 * - COUNT ( * ) + - COUNT ( * ) + - + 11 + + 75 AS col0
----
559

query I rowsort
SELECT + - 63 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + SUM( DISTINCT - + 92 ) + - 43
----
-135

skipif mysql # not compatible
query I rowsort label-9958
SELECT + SUM ( DISTINCT - + 92 ) + - 43
----
-135

query I rowsort
SELECT DISTINCT - + 49 * - + 79
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9960
SELECT ALL - 97, COUNT( * ) DIV - 70 + 11 AS col2
----
-97
11

skipif mysql # not compatible
query II rowsort label-9960
SELECT ALL - 97, COUNT ( * ) / - 70 + 11 AS col2
----
-97
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + 79 * + 3 + + SUM( ALL 23 ) * - + COALESCE ( 83, + + 97 * 75 + + - ( - + 19 ) ) * 68 + - + 81
----
-129656

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 79 * + 3 + + SUM ( ALL 23 ) * - + COALESCE ( 83, + + 97 * 75 + + - ( - + 19 ) ) * 68 + - + 81
----
-129656

query II rowsort
SELECT 50, 88 * + 71 AS col0
----
50
6248

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT - 82 * 69 DIV + 26 AS col0
----
-217

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 82 * 69 / + 26 AS col0
----
-217

query I rowsort
SELECT ALL - + 74 - + + 91 + - 24 + - 4 + 47
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL COALESCE ( 58, - 65, + 7, - CASE 56 WHEN - - 77 / 44 + + 14 + + 82 THEN - 47 WHEN + - COUNT( * ) THEN + 2 * 66 WHEN + CAST( + 71 AS SIGNED ) THEN + 98 - + - 79 * + 10 END * - - 45 )
----
58

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL COALESCE ( 58, - 65, + 7, - CASE 56 WHEN - - 77 / 44 + + 14 + + 82 THEN - 47 WHEN + - COUNT ( * ) THEN + 2 * 66 WHEN + CAST ( + 71 AS INTEGER ) THEN + 98 - + - 79 * + 10 END * - - 45 )
----
58

query I rowsort
SELECT ALL - 38 - - 41 AS col2
----
3

query I rowsort
SELECT - 79 + 54 + + 17
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT - 91 + - 30 AS col0, COUNT( * ) AS col2
----
-121
1

skipif mysql # not compatible
query II rowsort label-9968
SELECT - 91 + - 30 AS col0, COUNT ( * ) AS col2
----
-121
1

query II rowsort
SELECT - 49 * + 78, - 89 AS col1
----
-3822
-89

query I rowsort
SELECT - 55 * - 45
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT - 73 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT - 73 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT ( + CASE 64 WHEN - + 77 THEN + - 23 / - COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT ( + CASE 64 WHEN - + 77 THEN + - 23 / - COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL ( + NULLIF ( - 78, + CASE + - 97 WHEN + 74 THEN - 47 END + - + COUNT( * ) ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL ( + NULLIF ( - 78, + CASE + - 97 WHEN + 74 THEN - 47 END + - + COUNT ( * ) ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT - COUNT( * ) + NULLIF ( + - 63, + + 39 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - COUNT ( * ) + NULLIF ( + - 63, + + 39 ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT ALL 11 DIV + + 67 + 49 + + COUNT( * ) * - COUNT( * ) DIV - + 69
----
49

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL 11 / + + 67 + 49 + + COUNT ( * ) * - COUNT ( * ) / - + 69
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT DISTINCT + ( MIN( - 26 ) ) AS col2, + 61
----
-26
61

skipif mysql # not compatible
query II rowsort label-9976
SELECT DISTINCT + ( MIN ( - 26 ) ) AS col2, + 61
----
-26
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9977
SELECT ALL 48 DIV 42 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL 48 / 42 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT - 29 * 62, - COUNT( * ) col1
----
-1798
-1

skipif mysql # not compatible
query II rowsort label-9978
SELECT - 29 * 62, - COUNT ( * ) col1
----
-1798
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT - SUM( DISTINCT 94 ) AS col0, 58
----
-94
58

skipif mysql # not compatible
query II rowsort label-9979
SELECT - SUM ( DISTINCT 94 ) AS col0, 58
----
-94
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9980
SELECT ALL + COALESCE ( + - 48, + 38 + + + 58, 96 - - 28 ) DIV - 68 - + COUNT( * ) * + 5 + - 94 + - CAST( + ( 54 ) AS SIGNED ) * + 96 + 51 + + - MAX( ALL - + 13 ) + 91 - + + 0 * - 92 * + + 34
----
-5128

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + COALESCE ( + - 48, + 38 + + + 58, 96 - - 28 ) / - 68 - + COUNT ( * ) * + 5 + - 94 + - CAST ( + ( 54 ) AS INTEGER ) * + 96 + 51 + + - MAX ( ALL - + 13 ) + 91 - + + 0 * - 92 * + + 34
----
-5128

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT + - 67 * - 51 AS col1, 15 * 65 * - - COUNT( DISTINCT - COALESCE ( 31, + 39 ) )
----
3417
975

skipif mysql # not compatible
query II rowsort label-9981
SELECT + - 67 * - 51 AS col1, 15 * 65 * - - COUNT ( DISTINCT - COALESCE ( 31, + 39 ) )
----
3417
975

query I rowsort
SELECT ALL 42 * - 35 * 29
----
-42630

query I rowsort
SELECT + ( - 22 ) + 82 + - + ( 93 ) col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9984
SELECT DISTINCT COUNT( * ) DIV + + 29 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT COUNT ( * ) / + + 29 + COUNT ( * )
----
1

query I rowsort
SELECT 30 + 38
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL 9 * - - 42 + + COUNT( * ) AS col0
----
379

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL 9 * - - 42 + + COUNT ( * ) AS col0
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-9987
SELECT COUNT ( * ) + 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + COUNT( * ) - - + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + COUNT ( * ) - - + 16 AS col0
----
17

query I rowsort
SELECT + 5 * 19 + - 8
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT - CASE - AVG ( DISTINCT + + ( - - 9 ) ) WHEN + 24 + - 94 * + 39 - + 37 THEN + 89 ELSE + COUNT( + 64 ) * + - 19 END AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT - CASE - AVG ( DISTINCT + + ( - - 9 ) ) WHEN + 24 + - 94 * + 39 - + 37 THEN + 89 ELSE + COUNT ( + 64 ) * + - 19 END AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT 78 + - 67, 73 * COUNT( * ) AS col1
----
11
73

skipif mysql # not compatible
query II rowsort label-9991
SELECT 78 + - 67, 73 * COUNT ( * ) AS col1
----
11
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + NULLIF ( - 45, - 51 * + 44 * + + 79 ) - + ( - MAX( 2 ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9992
SELECT + NULLIF ( - 45, - 51 * + 44 * + + 79 ) - + ( - MAX ( 2 ) ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT 32 + - 18 * - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9993
SELECT 32 + - 18 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
50

query II rowsort
SELECT 84 AS col1, + 90
----
84
90

query I rowsort
SELECT 48 + + 25 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9996
SELECT 51 * + CAST( - - 93 AS SIGNED ), + SUM( ALL 23 ) AS col0
----
4743
23

skipif mysql # not compatible
query II rowsort label-9996
SELECT 51 * + CAST ( - - 93 AS INTEGER ), + SUM ( ALL 23 ) AS col0
----
4743
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL - COUNT( * ) * + + 25 * 88 * 46 * - 18 col2
----
1821600

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - COUNT ( * ) * + + 25 * 88 * 46 * - 18 col2
----
1821600

query I rowsort
SELECT ALL - COALESCE ( - + 43, - 78 ) * 3 + - + 76
----
53

query I rowsort
SELECT DISTINCT 67 * 90
----
6030

